/* ============================================================
   PAYATHON 2026 · 教资面试模拟
   设计令牌 + 基础样式。Linear 风格，深色单主题。
   约束：无 Web 字体、无组件库、动效只用 CSS transition。
   ============================================================ */

:root {
  /* 背景三层 */
  --bg: #08090a;
  --card: #0f1011;
  --float: #16181a;

  /* 文本四级 */
  --t1: #f7f8f8;
  --t2: #8a8f98;
  --t3: #62666d;
  --link: #7b85e8;

  /* 品牌色 */
  --brand: #5e6ad2;
  --brand-h: #6e79db;
  --brand-a: #4f5ac0;

  /* 语义色 */
  --ok: #4cb782;
  --warn: #f2c94c;
  --err: #eb5757;

  /* 边框 */
  --bd: rgba(255, 255, 255, 0.08);
  --bd2: rgba(255, 255, 255, 0.14);
  --div: rgba(255, 255, 255, 0.06);

  /* 圆角 */
  --r-btn: 6px;
  --r-in: 8px;
  --r-card: 8px;
  --r-modal: 12px;

  /* 布局 */
  --maxw: 1120px;
  --pad-x: 20px;

  /* 动效 */
  --dur: 180ms;
  --ease: cubic-bezier(0, 0, 0.2, 1);

  /* 系统字体栈：不加载任何 Web 字体文件 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 721px) {
  :root {
    --pad-x: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--brand-h);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(94, 106, 210, 0.35);
  color: var(--t1);
}

:focus-visible {
  outline: 1px solid rgba(94, 106, 210, 0.5);
  outline-offset: 1px;
  border-radius: var(--r-btn);
}

/* ============================ 字号阶梯 ============================
   注意：中文字体（PingFang SC / Microsoft YaHei）只有 400 与 700 两级，
   500/590/450 在 Windows 上会被就近取整。因此这里只使用 400 / 600，
   层级靠字号与颜色区分。中文标题字距为 0（负字距只给数字和拉丁字母）。
   ================================================================ */
.t40 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
}
.t28 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.28;
}
.t20 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.t16 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}
.t14 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}
.t13 {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}
.t12 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.t11 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

/* 数字专用：拉丁/数字才吃负字距，且等宽对齐 */
.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.c1 {
  color: var(--t1);
}
.c2 {
  color: var(--t2);
}
.c3 {
  color: var(--t3);
}
.cl {
  color: var(--link);
}

@media (max-width: 720px) {
  .t40 {
    font-size: 30px;
  }
  .t28 {
    font-size: 22px;
  }
  .t20 {
    font-size: 18px;
  }
}

/* ============================ 布局原语 ============================ */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 721px) {
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.col {
  display: flex;
  flex-direction: column;
}
.between {
  justify-content: space-between;
}
.center {
  justify-content: center;
  align-items: center;
}
.wrap {
  flex-wrap: wrap;
}
.g4 {
  gap: 4px;
}
.g6 {
  gap: 6px;
}
.g8 {
  gap: 8px;
}
.g12 {
  gap: 12px;
}
.g16 {
  gap: 16px;
}
.g24 {
  gap: 24px;
}
.g32 {
  gap: 32px;
}
.g48 {
  gap: 48px;
}
.mt4 {
  margin-top: 4px;
}
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt16 {
  margin-top: 16px;
}
.mt24 {
  margin-top: 24px;
}
.mt32 {
  margin-top: 32px;
}
.mt48 {
  margin-top: 48px;
}
.full {
  width: 100%;
}
.grow {
  flex: 1 1 auto;
  min-width: 0;
}

/* ============================ 导航 ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 9, 10, 0.86);
  border-bottom: 1px solid var(--div);
  backdrop-filter: none;
}

.nav-in {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--t1);
  font-size: 14px;
  font-weight: 600;
}
.brand:hover {
  color: var(--t1);
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--bd2);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--card);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 10px;
  border-radius: var(--r-btn);
  color: var(--t2);
  font-size: 13px;
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-link:hover {
  color: var(--t1);
}
.nav-link.on {
  color: var(--t1);
  border-color: var(--bd);
  background: var(--card);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--t3);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ============================ 按钮 ============================ */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--t1);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-btn);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* 主按钮是渐变，不是纯色 —— 这是 Linear 最容易被认出来的一处。
   交互用 opacity 而不是换色（参考站原话：用 opacity 变化而非颜色变化，duration 150ms）。 */
.btn--primary {
  --btn-bg: linear-gradient(90deg, #5e6ad2 0%, #8b5cf6 100%);
  --btn-fg: #fff;
  --btn-bd: transparent;
}
.btn--primary:hover:not(:disabled) {
  opacity: 0.92;
}
.btn--primary:active:not(:disabled) {
  opacity: 0.84;
}

.btn--secondary {
  --btn-bg: rgba(255, 255, 255, 0.045);
  --btn-fg: var(--t1);
  --btn-bd: rgba(255, 255, 255, 0.14);
}
.btn--secondary:hover:not(:disabled) {
  --btn-bg: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--t2);
  --btn-bd: transparent;
}
.btn--ghost:hover:not(:disabled) {
  --btn-fg: var(--t1);
}

.btn--danger {
  --btn-bg: transparent;
  --btn-fg: var(--err);
  --btn-bd: rgba(235, 87, 87, 0.32);
}
.btn--danger:hover:not(:disabled) {
  --btn-bg: rgba(235, 87, 87, 0.08);
}

.btn--sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}
.btn--lg {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.btn--block {
  width: 100%;
}

/* ============================ 卡片 ============================ */
.card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  padding: 20px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card--flat {
  background: transparent;
}
.card--pad8 {
  padding: 8px;
}
.card--sel {
  border-color: var(--bd2);
  background: var(--float);
}
.card--hover:hover {
  border-color: var(--bd2);
}

.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: 20px;
  }
}

/* ============================ 徽章 ============================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid var(--bd);
  color: var(--t2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge--brand {
  color: var(--link);
  border-color: rgba(123, 133, 232, 0.32);
  background: rgba(94, 106, 210, 0.12);
}
.badge--ok {
  color: var(--ok);
  border-color: rgba(76, 183, 130, 0.32);
  background: rgba(76, 183, 130, 0.1);
}
.badge--warn {
  color: var(--warn);
  border-color: rgba(242, 201, 76, 0.32);
  background: rgba(242, 201, 76, 0.1);
}
.badge--err {
  color: var(--err);
  border-color: rgba(235, 87, 87, 0.32);
  background: rgba(235, 87, 87, 0.1);
}
.badge--mute {
  color: var(--t3);
}

/* ============================ 表单 ============================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
}
.hint {
  font-size: 12px;
  color: var(--t3);
}

.input,
.textarea,
.select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r-in);
  padding: 10px 12px;
  color: var(--t1);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--bd2);
  background: var(--float);
}
.textarea {
  resize: vertical;
  min-height: 220px;
  line-height: 1.8;
}
.select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--t3) 50%),
    linear-gradient(135deg, var(--t3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.select option {
  background: var(--float);
  color: var(--t1);
}

.counter {
  font-size: 12px;
  color: var(--t3);
  font-variant-numeric: tabular-nums;
}
.counter.warn {
  color: var(--warn);
}
.counter.ok {
  color: var(--ok);
}

/* ============================ Chips ============================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-btn);
  border: 1px solid var(--bd);
  background: transparent;
  color: var(--t2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.chip:hover {
  color: var(--t1);
  border-color: var(--bd2);
}
.chip.on {
  color: var(--t1);
  border-color: var(--bd2);
  background: var(--float);
}
.chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================ 进度条 / 维度条 ============================ */
.meter {
  height: 4px;
  width: 100%;
  background: var(--div);
  border-radius: 2px;
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  background: var(--t2);
  border-radius: 2px;
  transition: width 240ms var(--ease);
}
.meter--brand > i {
  background: var(--brand);
}

/* ============================ 步骤 ============================ */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--t3);
  font-size: 12px;
}
.step {
  display: flex;
  align-items: center;
  gap: 6px;
}
.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t3);
}
.step.on .step-dot {
  background: var(--brand);
}
.step.on {
  color: var(--t2);
}
.step-line {
  width: 16px;
  height: 1px;
  background: var(--div);
}

/* ============================ 弹层 ============================ */
.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 4, 5, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in var(--dur) var(--ease);
}
.modal {
  width: 100%;
  max-width: 440px;
  background: var(--float);
  border: 1px solid var(--bd2);
  border-radius: var(--r-modal);
  padding: 24px;
  animation: rise var(--dur) var(--ease);
}
.modal-hd {
  margin-bottom: 12px;
}
.modal-ft {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
}
@media (max-width: 720px) {
  .modal-ft {
    flex-direction: column-reverse;
  }
  .modal-ft .btn {
    width: 100%;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================ 加载点 ============================ */
.dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--t3);
  animation: pulse 1.2s var(--ease) infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* ============================ 骨架 ============================ */
.skel {
  background: var(--div);
  border-radius: var(--r-in);
  animation: breathe 1.6s var(--ease) infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

/* ============================ 分割线 ============================ */
.divider {
  height: 1px;
  background: var(--div);
  border: 0;
  margin: 0;
}

/* ============================ 页脚 ============================ */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--div);
  padding: 32px 0 48px;
  color: var(--t3);
}
.footer a {
  color: var(--t3);
}
.footer a:hover {
  color: var(--t2);
}

/* ============================ KPI（看板） ============================ */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--div);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  overflow: hidden;
}
.kpi {
  background: var(--card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-l {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--t3);
}
.kpi-n {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--t1);
}
.kpi-n > b {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi-u {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--t3);
}
@media (max-width: 900px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .kpis {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================ 漏斗 ============================ */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fr {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 12px;
}
.fr-l {
  font-size: 13px;
  color: var(--t2);
}
.fr-t {
  height: 28px;
  background: var(--div);
  border-radius: 4px;
  overflow: hidden;
}
.fr-t > i {
  display: block;
  height: 100%;
  background: var(--brand);
  opacity: 0.9;
  transition: width 240ms var(--ease);
}
.fr-v {
  text-align: right;
  font-size: 13px;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .fr {
    grid-template-columns: 72px minmax(0, 1fr) 64px;
    gap: 8px;
  }
}

/* ============================ 考场 ============================ */
.qcard {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  padding: 28px;
}
@media (max-width: 720px) {
  .qcard {
    padding: 20px;
  }
}
.qtext {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--t1);
  margin: 0;
}
@media (max-width: 720px) {
  .qtext {
    font-size: 18px;
  }
}

.tipbox {
  border-left: 2px solid var(--div);
  padding: 4px 0 4px 14px;
  color: var(--t2);
  font-size: 13px;
}

/* ============================ 报告 ============================ */
.score {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.score-n {
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--t1);
}
.score-d {
  font-size: 11px;
  color: var(--t3);
  padding-bottom: 8px;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .score-n {
    font-size: 44px;
  }
}

.dim {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--div);
}
.dim-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.dim-v {
  font-size: 14px;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}

.ded {
  padding: 16px 0;
  border-top: 1px solid var(--div);
  display: flex;
  gap: 12px;
}
.ded-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--err);
  margin-top: 9px;
  flex: 0 0 auto;
}
.ded-q {
  font-size: 13px;
  color: var(--t2);
  border-left: 2px solid var(--div);
  padding-left: 10px;
  margin: 8px 0;
  line-height: 1.7;
  word-break: break-word;
}

.lock {
  position: relative;
  border: 1px dashed var(--bd2);
  border-radius: var(--r-card);
  padding: 20px;
  background: linear-gradient(180deg, rgba(22, 24, 26, 0.2), rgba(22, 24, 26, 0.6));
}
.lock-in {
  opacity: 0.28;
  filter: none;
  pointer-events: none;
  user-select: none;
  max-height: 168px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

/* ============================ 展示物料 ============================ */
.art {
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.art-in {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.art-16x9 {
  width: 1120px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
.art-1x1 {
  width: 720px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}
.scrollbox {
  overflow: auto;
  border: 1px solid var(--div);
  border-radius: var(--r-card);
  padding: 16px;
  background: var(--card);
}

/* 唯一允许的一处装饰：≤6% 径向光晕 */
.glow::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 420px;
  background: radial-gradient(
    60% 60% at 50% 0%,
    rgba(94, 106, 210, 0.06) 0%,
    rgba(94, 106, 210, 0) 70%
  );
  pointer-events: none;
}

/* ============================ 杂项 ============================ */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}
.pre {
  white-space: pre-wrap;
  word-break: break-word;
}

a.btn {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================ B 端应用骨架 ============================
   参照 Linear 的 app 形态，不是它的 marketing 页：
   - 左侧栏 + 内容区；侧栏主动降权（暗一档、字小一号），注意力回主内容
   - 正文 13px / 行高 1.4；列表行 32–36px；间距走 4px 网格
   - 没有大标题，页面头 16px + 1px 分割线
   - 品牌色只给主行动、激活态、焦点
   ================================================================ */

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--div);
  padding: 12px 8px 10px;
  gap: 4px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  margin-bottom: 8px;
  color: var(--t2);
  font-size: 13px;
  font-weight: 600;
}
.side-brand:hover {
  color: var(--t1);
}

.side-group {
  padding: 10px 8px 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--t3);
}

.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--r-btn);
  color: var(--t2);
  font-size: 13px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--t1);
}
.side-item.on {
  background: var(--float);
  color: var(--t1);
  font-weight: 600;
}
.side-item .badge {
  margin-left: auto;
}

.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--div);
  padding: 12px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quota {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--t3);
}
.quota b {
  color: var(--t1);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.canvas {
  min-width: 0;
  background: var(--bg);
}

/* 应用区内的卡片按 B 端密度收紧，不留 marketing 的 24px 内边距 */
.canvas .card {
  padding: 18px;
}
.canvas .qcard {
  padding: 22px;
}
.canvas .kpi {
  padding: 16px;
}

/* 页面容器：不是 marketing 的 container，密度按 B 端来 */
.page {
  max-width: 1120px;
  padding: 20px var(--pad-x) 48px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--div);
  margin-bottom: 20px;
}
.page-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--t1);
}
.page-sub {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--t3);
}
.page-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t3);
}

/* 密集列表行：32–36px */
.lr {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 6px 0;
  border-bottom: 1px solid var(--div);
}
.lr:last-child {
  border-bottom: 0;
}
.lr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* 紧凑卡片：B 端不用 24px 内边距 */
.card--tight {
  padding: 14px 16px;
}

/* 侧栏在窄屏变横向条 */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--div);
    gap: 2px;
  }
  .side-brand {
    margin-bottom: 0;
    margin-right: 8px;
    flex: 0 0 auto;
  }
  .side-group,
  .side-foot {
    display: none;
  }
  /* 移动端侧栏是一条横向滚动条，不是竖列表 */
  .sidebar nav {
    display: flex;
    flex-direction: row;
    gap: 2px;
  }
  .sidebar nav .side-item {
    flex: 0 0 auto;
  }
  /* 面包屑在小屏上没有信息量，只会换行 */
  .page-crumbs {
    display: none;
  }
  .side-item {
    flex: 0 0 auto;
    height: 30px;
  }
  .page {
    padding: 16px var(--pad-x) 40px;
  }
}

/* ============================ Linear 的两个细节 ============================
   1. 渐变描边：mask 做出 1px 渐变边框，不引库、不加阴影。
   2. hover 高光：4.5% 径向高光，只在可点卡片上出现。

   这两个是「描边」和「高光」，不是「外发光」，不违反
   「阴影基本不用 / 不要发光」那条规范。
   ================================================================ */

.edge-grad {
  position: relative;
  border-color: transparent;
}
.edge-grad::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(94, 106, 210, 0.3) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.card--hover {
  position: relative;
}
.card--hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.045), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.card--hover:hover::after {
  opacity: 1;
}

/* 两栏：左主右辅。把宽度用起来，避免右侧一片空白 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1040px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================ 打印（替代前端 PDF 库） ============================ */
@media print {
  :root {
    --bg: #fff;
    --card: #fff;
    --float: #fff;
    --t1: #111;
    --t2: #444;
    --t3: #666;
    --bd: rgba(0, 0, 0, 0.16);
    --bd2: rgba(0, 0, 0, 0.28);
    --div: rgba(0, 0, 0, 0.12);
  }
  body {
    background: #fff;
    color: #111;
  }
  .no-print {
    display: none !important;
  }
  .card,
  .qcard {
    break-inside: avoid;
  }
  .lock-in {
    display: none;
  }
  .lock {
    border-color: rgba(0, 0, 0, 0.3);
  }
}

/* 补充：移动端侧栏是横向滚动条，隐藏原生滚动条（桌面窄窗口下很难看） */
@media (max-width: 900px) {
  .sidebar {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

/* 修复：窄屏下 .shell 只有一列两行，min-height:100vh 会让第一行被拉伸，
   把 .canvas 推下去 129px。改成 auto + 1fr 并让内容顶对齐。 */
@media (max-width: 900px) {
  .shell {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
  }
}

/* 修复：维度条几乎看不见。轨道和填充对比度都太低，量不出差距。 */
.meter {
  background: rgba(255, 255, 255, 0.08);
}
.meter > i {
  background: rgba(255, 255, 255, 0.55);
}

/* ==================================================================
   Linear 视觉层（覆盖前面的扁平部分）
   目标：背景有层次、有方向光，卡片有实体感，而不是一块死黑。
   Linear 的深色不是"纯黑"，是：
   ① 极轻的纵向渐变打底
   ② 顶部一层靛蓝环境光
   ③ 一层几乎看不见的噪点（3%），让大面积暗部不"塑料"
   ④ 卡片表面是白色透明度叠加，顶部一道 1px 内高光
   ================================================================== */

/* ① ② 背景：纵向渐变 + 顶部环境光 */
body {
  background-color: #08090a;
  background-image:
    radial-gradient(1100px 620px at 50% -180px, rgba(94, 106, 210, 0.16) 0%, rgba(94, 106, 210, 0) 62%),
    radial-gradient(760px 520px at 88% -60px, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 60%),
    radial-gradient(900px 700px at 8% 105%, rgba(94, 106, 210, 0.06) 0%, rgba(94, 106, 210, 0) 60%),
    linear-gradient(180deg, #0b0c10 0%, #090a0c 42%, #08090a 72%, #07080a 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  background-repeat: no-repeat;
}

/* 画布不能盖住 body 的光 */
.canvas {
  background: transparent;
}

/* ③ 噪点：几乎看不见，但拿掉之后大面积暗部会立刻变"塑料" */
.app::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ④ 卡片：白色透明度叠加 + 顶部内高光，不再是实心色块 */
.card,
.qcard,
.kpi,
.modal,
.art {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.052) 0%,
    rgba(255, 255, 255, 0.024) 46%,
    rgba(255, 255, 255, 0.016) 100%
  );
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

/* 选中 / 推荐档：再亮一档，并且描边更实 */
.card--sel {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(255, 255, 255, 0.035) 50%,
    rgba(255, 255, 255, 0.022) 100%
  );
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 侧栏：方向光 + 和主区拉开 */
.sidebar {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.014) 38%,
    rgba(255, 255, 255, 0.008) 100%
  );
  border-right-color: rgba(255, 255, 255, 0.075);
}

.side-item.on {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.045) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 主按钮：内高光让它有实体，不是一块颜色 */
.btn--primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 输入区：凹下去，和卡片区分开 */
.input,
.textarea,
.select {
  background-color: rgba(0, 0, 0, 0.28);
  background-image: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
.input:focus,
.textarea:focus,
.select:focus {
  background-color: rgba(0, 0, 0, 0.34);
  border-color: rgba(94, 106, 210, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(94, 106, 210, 0.12);
}

/* KPI 分区：靠明度差分层，不用阴影 */
.kpis {
  background: rgba(255, 255, 255, 0.07);
}
.kpi {
  background-color: #0d0e11;
}

/* 顶栏：一层半透明 + 底部发丝 */
.nav {
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

/* 首页 hero 的光：从"最多 6%"放宽到能看见的环境光 */
.glow::before {
  inset: -55% -12% auto -12%;
  height: 720px;
  background:
    radial-gradient(46% 54% at 42% 34%, rgba(94, 106, 210, 0.22) 0%, rgba(94, 106, 210, 0) 68%),
    radial-gradient(34% 40% at 72% 12%, rgba(139, 92, 246, 0.14) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(8px);
}

/* 分割线统一提亮一档 */
.divider {
  background: rgba(255, 255, 255, 0.07);
}

/* 展示物料里 .art 自成一块画布，不要跟着页面发光 */
.art {
  background-image: linear-gradient(180deg, #0c0d10 0%, #08090a 100%);
}

@media print {
  body {
    background-image: none !important;
    background: #fff !important;
  }
  .app::after {
    display: none !important;
  }
}

/* 调光：第一版顶部那道靛蓝在窄屏上像一条色带，把光源抬高、半径放大、峰值降低 */
body {
  background-image:
    radial-gradient(1500px 900px at 50% -380px, rgba(94, 106, 210, 0.2) 0%, rgba(94, 106, 210, 0) 62%),
    radial-gradient(1000px 700px at 86% -220px, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0) 60%),
    radial-gradient(1100px 800px at 6% 108%, rgba(94, 106, 210, 0.07) 0%, rgba(94, 106, 210, 0) 62%),
    linear-gradient(180deg, #0b0c10 0%, #090a0c 42%, #08090a 72%, #07080a 100%);
}

/* ================= 命令面板（⌘K） ================= */
.pal-veil {
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.pal {
  width: 100%;
  max-width: 520px;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.028) 100%);
  background-color: #101114;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: rise var(--dur) var(--ease);
}
.pal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--t3);
}
.pal-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--t1);
  font-size: 14px;
}
.pal-input::placeholder {
  color: var(--t3);
}
.pal-kbd {
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--t3);
  background: rgba(255, 255, 255, 0.04);
}
.pal-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}
.pal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--t2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pal-item.on {
  background: rgba(255, 255, 255, 0.07);
  color: var(--t1);
}
.pal-label {
  flex: 1 1 auto;
}
.pal-group {
  font-size: 11px;
  color: var(--t3);
}
.pal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: var(--t3);
}
.pal-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--t3);
}
.pal-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--t3);
  font-size: 11px;
  cursor: pointer;
}
.pal-hint:hover {
  color: var(--t2);
  background: rgba(255, 255, 255, 0.04);
}

/* 命令面板的遮罩要更沉，否则背后页面会透上来，和面板抢注意力 */
.pal-veil {
  background: rgba(3, 3, 4, 0.84);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* 首页 hero 的细点阵：Linear 官网很典型的一层，靠 mask 从中心淡出，
   只给 hero，不铺全站，否则会变"素材网站" */
.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(62% 58% at 46% 34%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 78%);
  mask-image: radial-gradient(62% 58% at 46% 34%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 78%);
  opacity: 0.55;
}

/* 点阵第一版太淡，压缩后基本看不见，提一档到"能看出来有纹理" */
.glow::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.8;
}

/* ==================================================================
   背景渐变流光
   三团极慢漂移的径向渐变（因为用了 filter: blur，只吃合成层，不重排）
   + 一道扫过顶部的光带。纯 CSS，零 JS，零请求。
   形状靠 transform 变化，不参与布局。
   ================================================================== */

html,
body {
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.95;
}

.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* 靛蓝：主场光，压在左上 */
.aurora i:nth-child(1) {
  width: 78vmax;
  height: 78vmax;
  top: -34vmax;
  left: -14vmax;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(94, 106, 210, 0.46) 0%,
    rgba(94, 106, 210, 0.16) 38%,
    rgba(94, 106, 210, 0) 66%
  );
  animation: aurora-a 38s ease-in-out infinite alternate;
}

/* 紫罗兰：右上，和靛蓝混出第二个色相 */
.aurora i:nth-child(2) {
  width: 64vmax;
  height: 64vmax;
  top: -26vmax;
  right: -12vmax;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(139, 92, 246, 0.38) 0%,
    rgba(139, 92, 246, 0.13) 40%,
    rgba(139, 92, 246, 0) 68%
  );
  animation: aurora-b 46s ease-in-out infinite alternate;
}

/* 深蓝：底部，让滚动时有第三段色 */
.aurora i:nth-child(3) {
  width: 70vmax;
  height: 70vmax;
  bottom: -42vmax;
  left: 18vmax;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(45, 156, 219, 0.24) 0%,
    rgba(45, 156, 219, 0.09) 42%,
    rgba(45, 156, 219, 0) 70%
  );
  animation: aurora-c 52s ease-in-out infinite alternate;
}

/* 扫过顶部的那道光带 */
.aurora::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 220px;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0) 0%,
    rgba(139, 92, 246, 0.09) 45%,
    rgba(94, 106, 210, 0.12) 55%,
    rgba(139, 92, 246, 0) 100%
  );
  filter: blur(18px);
  animation: aurora-sweep 22s linear infinite;
}

@keyframes aurora-a {
  from {
    transform: translate3d(-4%, -3%, 0) scale(0.94);
  }
  to {
    transform: translate3d(7%, 5%, 0) scale(1.08);
  }
}
@keyframes aurora-b {
  from {
    transform: translate3d(4%, 2%, 0) scale(1.06);
  }
  to {
    transform: translate3d(-7%, -4%, 0) scale(0.93);
  }
}
@keyframes aurora-c {
  from {
    transform: translate3d(0, 4%, 0) scale(1);
  }
  to {
    transform: translate3d(5%, -6%, 0) scale(1.12);
  }
}
@keyframes aurora-sweep {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    transform: translate3d(360%, 0, 0);
    opacity: 0;
  }
}

/* 小屏：光团缩小、模糊降低，别让手机发烫 */
@media (max-width: 720px) {
  .aurora i {
    filter: blur(40px);
  }
  .aurora i:nth-child(1) {
    width: 110vmax;
    height: 110vmax;
    top: -50vmax;
    left: -40vmax;
  }
  .aurora i:nth-child(2) {
    width: 95vmax;
    height: 95vmax;
    top: -40vmax;
    right: -35vmax;
  }
  .aurora i:nth-child(3) {
    width: 100vmax;
    height: 100vmax;
    bottom: -55vmax;
    left: -10vmax;
  }
}

/* 打印时不要光 */
@media print {
  .aurora {
    display: none !important;
  }
}

/* 第一版光太散：整屏发紫，下半屏也该是黑的。
   改法是给整层加一个纵向遮罩，光只留在顶部 40%，往下快速衰减。 */
.aurora {
  opacity: 0.72;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.18) 62%, transparent 84%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.18) 62%, transparent 84%);
}

/* 光团改用固定像素，不再跟视口一起放大（2558px 宽时 vmax 会变成 2000px，糊满全屏） */
.aurora i:nth-child(1) {
  width: 1180px;
  height: 880px;
  top: -430px;
  left: -180px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(94, 106, 210, 0.34) 0%,
    rgba(94, 106, 210, 0.11) 40%,
    rgba(94, 106, 210, 0) 68%
  );
}
.aurora i:nth-child(2) {
  width: 980px;
  height: 760px;
  top: -360px;
  right: -140px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(139, 92, 246, 0.26) 0%,
    rgba(139, 92, 246, 0.09) 42%,
    rgba(139, 92, 246, 0) 70%
  );
}
.aurora i:nth-child(3) {
  width: 1100px;
  height: 820px;
  bottom: -520px;
  left: 22%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(45, 156, 219, 0.18) 0%,
    rgba(45, 156, 219, 0.06) 44%,
    rgba(45, 156, 219, 0) 72%
  );
}

@media (max-width: 720px) {
  .aurora i:nth-child(1) {
    width: 760px;
    height: 620px;
    top: -300px;
    left: -240px;
  }
  .aurora i:nth-child(2) {
    width: 660px;
    height: 560px;
    top: -280px;
    right: -220px;
  }
  .aurora i:nth-child(3) {
    width: 720px;
    height: 600px;
    bottom: -420px;
    left: 10%;
  }
}

/* 演示保险开关：?motion=1（或 #/xxx?motion=1）
   有些演示机系统开着「减少动态效果」，流光会静默失效。这个类强制开。
   只覆盖背景流光，不动其他动效，无障碍语义仍然保留。 */
html.force-motion .aurora i {
  animation-duration: 38s !important;
  animation-iteration-count: infinite !important;
}
html.force-motion .aurora i:nth-child(2) {
  animation-duration: 46s !important;
}
html.force-motion .aurora i:nth-child(3) {
  animation-duration: 52s !important;
}
html.force-motion .aurora::after {
  animation-duration: 22s !important;
  animation-iteration-count: infinite !important;
}

/* ========== 流光加强版 ==========
   上一版的问题：38 秒一个来回、alpha 0.34、还被遮掉一半。
   结论是"技术上有，肉眼没有"。这一版：
   - 周期压到 20/26/32 秒，位移加大
   - 亮度提到 0.55/0.42/0.28
   - 遮罩下限从 84% 放到 92%，光能盖到首屏底部
   - 顶部扫光更快更亮
   ================================= */
.aurora {
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.86) 28%,
    rgba(0, 0, 0, 0.42) 58%,
    rgba(0, 0, 0, 0.1) 78%,
    transparent 92%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.86) 28%,
    rgba(0, 0, 0, 0.42) 58%,
    rgba(0, 0, 0, 0.1) 78%,
    transparent 92%
  );
}

.aurora i {
  filter: blur(56px);
}

.aurora i:nth-child(1) {
  width: 1300px;
  height: 950px;
  top: -460px;
  left: -200px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(94, 106, 210, 0.55) 0%,
    rgba(94, 106, 210, 0.2) 38%,
    rgba(94, 106, 210, 0) 66%
  );
  animation: aurora-a 20s ease-in-out infinite alternate;
}

.aurora i:nth-child(2) {
  width: 1060px;
  height: 820px;
  top: -380px;
  right: -160px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(139, 92, 246, 0.42) 0%,
    rgba(139, 92, 246, 0.15) 40%,
    rgba(139, 92, 246, 0) 68%
  );
  animation: aurora-b 26s ease-in-out infinite alternate;
}

.aurora i:nth-child(3) {
  width: 1180px;
  height: 880px;
  bottom: -540px;
  left: 18%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(45, 156, 219, 0.3) 0%,
    rgba(45, 156, 219, 0.1) 42%,
    rgba(45, 156, 219, 0) 70%
  );
  animation: aurora-c 32s ease-in-out infinite alternate;
}

/* 位移加大：原来只飘 7%，等于没动 */
@keyframes aurora-a {
  from {
    transform: translate3d(-12%, -6%, 0) scale(0.9);
  }
  to {
    transform: translate3d(16%, 10%, 0) scale(1.14);
  }
}
@keyframes aurora-b {
  from {
    transform: translate3d(10%, 4%, 0) scale(1.12);
  }
  to {
    transform: translate3d(-14%, -8%, 0) scale(0.9);
  }
}
@keyframes aurora-c {
  from {
    transform: translate3d(-6%, 8%, 0) scale(0.96);
  }
  to {
    transform: translate3d(10%, -10%, 0) scale(1.16);
  }
}

/* 扫光：更高更亮更快 */
.aurora::after {
  width: 34%;
  height: 300px;
  filter: blur(26px);
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0) 0%,
    rgba(139, 92, 246, 0.2) 42%,
    rgba(94, 106, 210, 0.26) 56%,
    rgba(139, 92, 246, 0) 100%
  );
  animation: aurora-sweep 13s linear infinite;
}

/* 强制开时也要覆盖到新周期 */
html.force-motion .aurora i:nth-child(1) {
  animation-duration: 20s !important;
}
html.force-motion .aurora i:nth-child(2) {
  animation-duration: 26s !important;
}
html.force-motion .aurora i:nth-child(3) {
  animation-duration: 32s !important;
}
html.force-motion .aurora::after {
  animation-duration: 13s !important;
}

@media (prefers-reduced-motion: reduce) {
  html.force-motion .aurora i,
  html.force-motion .aurora::after {
    animation-iteration-count: infinite !important;
  }
}

/* 尺寸自适应：固定 px 会让强度随视口宽度剧烈变化
   （492px 上糊满全屏，2558px 上又几乎看不见）。用 min() 跟视口挂钩。 */
.aurora i:nth-child(1) {
  width: min(1300px, 106vw);
  height: min(950px, 78vw);
}
.aurora i:nth-child(2) {
  width: min(1060px, 92vw);
  height: min(820px, 72vw);
}
.aurora i:nth-child(3) {
  width: min(1180px, 100vw);
  height: min(880px, 74vw);
}

@media (max-width: 720px) {
  .aurora {
    opacity: 0.78;
  }
}

/* 用纯 vw 定尺寸，让"光的相对覆盖面积"在任何宽度下都一样。
   之前用 px，1436px 上刚好，2558px 上就淡了，492px 上又糊满。 */
.aurora i:nth-child(1) {
  width: 90vw;
  height: 66vw;
  top: -32vw;
  left: -14vw;
}
.aurora i:nth-child(2) {
  width: 74vw;
  height: 57vw;
  top: -26vw;
  right: -12vw;
}
.aurora i:nth-child(3) {
  width: 82vw;
  height: 61vw;
  bottom: -38vw;
  left: 18vw;
}

/* ==================================================================
   流光最终版：五团不同色相的光互相渗透
   上一版三团是"各自为政"，颜色之间不混，看起来像三块紫。
   这一版把它们压在同一个区域重叠，让边界互相吃掉，才会"流"。
   色相链：靛蓝 → 紫罗兰 → 品红 → 青 → 深蓝
   ================================================================== */

.aurora {
  opacity: 1;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.92) 26%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.18) 74%,
    transparent 94%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.92) 26%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.18) 74%,
    transparent 94%
  );
}

.aurora i {
  filter: blur(64px);
  mix-blend-mode: screen;
}

/* 1 靛蓝：左上主场 */
.aurora i:nth-child(1) {
  width: 96vw;
  height: 70vw;
  top: -34vw;
  left: -18vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(94, 106, 210, 0.62) 0%,
    rgba(94, 106, 210, 0.24) 36%,
    rgba(94, 106, 210, 0) 64%
  );
  animation: aurora-a 19s ease-in-out infinite alternate;
}

/* 2 紫罗兰：右上方，和靛蓝咬在一起 */
.aurora i:nth-child(2) {
  width: 82vw;
  height: 62vw;
  top: -30vw;
  right: -14vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(139, 92, 246, 0.52) 0%,
    rgba(139, 92, 246, 0.2) 38%,
    rgba(139, 92, 246, 0) 66%
  );
  animation: aurora-b 23s ease-in-out infinite alternate;
}

/* 3 品红：右侧偏下，给整片光一个暖的出口（Linear 的粉紫来自这里） */
.aurora i:nth-child(3) {
  width: 64vw;
  height: 50vw;
  top: 2vw;
  right: -22vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(217, 70, 239, 0.34) 0%,
    rgba(217, 70, 239, 0.12) 40%,
    rgba(217, 70, 239, 0) 68%
  );
  animation: aurora-c 27s ease-in-out infinite alternate;
}

/* 4 青：左下，压住画面别一路发紫 */
.aurora i:nth-child(4) {
  width: 74vw;
  height: 56vw;
  bottom: -30vw;
  left: -8vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(34, 211, 238, 0.22) 0%,
    rgba(34, 211, 238, 0.08) 42%,
    rgba(34, 211, 238, 0) 70%
  );
  animation: aurora-d 33s ease-in-out infinite alternate;
}

/* 5 深蓝：底部中央，让滚到第二屏时还有点颜色 */
.aurora i:nth-child(5) {
  width: 88vw;
  height: 64vw;
  bottom: -46vw;
  left: 14vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(45, 156, 219, 0.34) 0%,
    rgba(45, 156, 219, 0.12) 40%,
    rgba(45, 156, 219, 0) 68%
  );
  animation: aurora-e 29s ease-in-out infinite alternate;
}

/* 关键：轨迹互相穿过，不是各自转圈 */
@keyframes aurora-a {
  0% {
    transform: translate3d(-6%, -4%, 0) scale(0.92);
  }
  50% {
    transform: translate3d(14%, 6%, 0) scale(1.12);
  }
  100% {
    transform: translate3d(2%, 12%, 0) scale(1.02);
  }
}
@keyframes aurora-b {
  0% {
    transform: translate3d(8%, 2%, 0) scale(1.1);
  }
  50% {
    transform: translate3d(-12%, 8%, 0) scale(0.94);
  }
  100% {
    transform: translate3d(-4%, -6%, 0) scale(1.06);
  }
}
@keyframes aurora-c {
  0% {
    transform: translate3d(0, 6%, 0) scale(1);
  }
  50% {
    transform: translate3d(-16%, -4%, 0) scale(1.14);
  }
  100% {
    transform: translate3d(-6%, 10%, 0) scale(0.96);
  }
}
@keyframes aurora-d {
  0% {
    transform: translate3d(-4%, 2%, 0) scale(1.04);
  }
  50% {
    transform: translate3d(10%, -8%, 0) scale(0.9);
  }
  100% {
    transform: translate3d(-2%, -2%, 0) scale(1.08);
  }
}
@keyframes aurora-e {
  0% {
    transform: translate3d(4%, 4%, 0) scale(0.98);
  }
  50% {
    transform: translate3d(-8%, -6%, 0) scale(1.1);
  }
  100% {
    transform: translate3d(6%, -2%, 0) scale(1);
  }
}

/* 扫光加强：这是"流光"最直白的一层 */
.aurora::after {
  width: 38%;
  height: 340px;
  filter: blur(30px);
  opacity: 1;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0) 0%,
    rgba(139, 92, 246, 0.26) 38%,
    rgba(167, 139, 250, 0.34) 52%,
    rgba(94, 106, 210, 0.2) 64%,
    rgba(139, 92, 246, 0) 100%
  );
  animation: aurora-sweep 11s linear infinite;
}

/* 强制开时的周期同步 */
html.force-motion .aurora i:nth-child(1) { animation-duration: 19s !important; }
html.force-motion .aurora i:nth-child(2) { animation-duration: 23s !important; }
html.force-motion .aurora i:nth-child(3) { animation-duration: 27s !important; }
html.force-motion .aurora i:nth-child(4) { animation-duration: 33s !important; }
html.force-motion .aurora i:nth-child(5) { animation-duration: 29s !important; }
html.force-motion .aurora::after { animation-duration: 11s !important; }

@media (prefers-reduced-motion: reduce) {
  html.force-motion .aurora i,
  html.force-motion .aurora::after {
    animation-iteration-count: infinite !important;
  }
}

/* 小屏：别让五层大模糊把手机拖死 */
@media (max-width: 720px) {
  .aurora i {
    filter: blur(40px);
  }
}

/* 工具页（考场/付费/支付/看板）把光压到 45%，保证表单可读；
   营销页（首页/展示物料）吃满。 */
html.is-app .aurora {
  opacity: 0.45;
}
html.is-app .aurora::after {
  display: none;
}

/* ==================================================================
   营销页改版（照参考图）
   差异：胶囊按钮 / hero 居中 / 导航居中 / 产品截图模块 / 横向光带 / 整体放大
   ================================================================== */

/* 容器放大：1120 → 1240，并给营销页单独的节奏 */
.container {
  max-width: 1240px;
}

/* 胶囊按钮 */
.btn--pill {
  border-radius: 999px;
  height: 38px;
  padding: 0 18px;
}
.btn--pill.btn--lg {
  height: 44px;
  padding: 0 22px;
}

/* 导航：三栏，链接居中 */
.nav-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
}
.nav-links {
  justify-self: center;
}
.nav-meta {
  justify-self: end;
}

/* 顶部公告胶囊 */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 6px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--t2);
  font-size: 12px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.announce:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.announce b {
  color: var(--t1);
  font-weight: 600;
}
.announce span.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  font-size: 11px;
}

/* hero 居中 */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero-title {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 880px;
  color: var(--t1);
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--t2);
  margin: 0;
  max-width: 620px;
  font-weight: 400;
}
@media (max-width: 900px) {
  .hero-title {
    font-size: 36px;
  }
  .hero-sub {
    font-size: 15px;
  }
}

/* 横向紫色光带（参考图里那条横穿整页的线） */
.hero-line {
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  margin-left: -50vw;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0) 0%,
    rgba(139, 92, 246, 0.55) 18%,
    rgba(167, 139, 250, 0.95) 50%,
    rgba(139, 92, 246, 0.55) 82%,
    rgba(139, 92, 246, 0) 100%
  );
  box-shadow: 0 0 32px 6px rgba(124, 92, 246, 0.35), 0 0 90px 20px rgba(94, 106, 210, 0.18);
}

/* 产品截图模块 */
.shot-wrap {
  position: relative;
  margin-top: 8px;
}
.shot {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.shot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.shot-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--t3);
}
.shot-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 260px;
  min-height: 380px;
}
.shot-side {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.015);
}
.shot-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--t3);
  font-size: 11.5px;
}
.shot-side-item.on {
  background: rgba(255, 255, 255, 0.07);
  color: var(--t1);
}
.shot-main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shot-tag {
  align-self: flex-start;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--t3);
}
.shot-q {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--t1);
}
.shot-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shot-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.shot-report {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.shot-score {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--t1);
  line-height: 1;
}
.shot-score small {
  font-size: 11px;
  color: var(--t3);
  font-weight: 400;
  margin-left: 4px;
}
.shot-dim {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shot-dim-h {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--t3);
}
.shot-bar-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.shot-bar-track i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
}
@media (max-width: 1000px) {
  .shot-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .shot-side,
  .shot-report {
    display: none;
  }
}

/* 渐入渐出 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 区块大标题（参考图第二屏那种） */
.section-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--t1);
}
@media (max-width: 900px) {
  .section-title {
    font-size: 28px;
  }
}
.center-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* 产品截图模块补实：底色压实 + 补一块扣分点列表，别让它像线框 */
.shot {
  background-image: linear-gradient(180deg, #101116 0%, #0b0c10 100%);
  background-color: #0b0c10;
}
.shot-body {
  min-height: 340px;
}
.shot-side {
  background: rgba(0, 0, 0, 0.18);
}
.shot-report {
  background: rgba(0, 0, 0, 0.18);
}
.shot-side-item {
  font-size: 12px;
  height: 28px;
}
.shot-deds {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.shot-ded {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--t2);
}
.shot-ded-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #eb5757;
  flex: 0 0 auto;
}
.shot-ded b {
  margin-left: auto;
  color: #eb5757;
  font-weight: 600;
  font-size: 11px;
}

/* 流光改成锚在文档顶部，不是跟着视口走。
   原来 position:fixed，滚到第三屏背景还在发光，下面的内容永远泡在紫雾里。 */
body {
  position: relative;
}
.aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: 1420px;
}
@media (max-width: 720px) {
  .aurora {
    height: 1000px;
  }
}

/* ==================================================================
   磨砂玻璃方案（四档，用 ?glass=a|b|c|d 切换）
   a 只降不透明、不加模糊（对照组）
   b 轻磨砂
   c 中磨砂
   d 重磨砂
   ================================================================== */

html[data-glass] {
  --g-bg: rgba(255, 255, 255, 0.06);
  --g-bg-sel: rgba(255, 255, 255, 0.09);
  --g-blur: 14px;
  --g-sat: 140%;
  --g-bd: rgba(255, 255, 255, 0.12);
  --g-bd-sel: rgba(255, 255, 255, 0.17);
  --g-hi: 0.07;
  --g-shadow: none;
}

/* a · 只降不透明度，不加模糊 */
html[data-glass='a'] {
  --g-bg: rgba(255, 255, 255, 0.05);
  --g-bg-sel: rgba(255, 255, 255, 0.075);
  --g-blur: 0px;
  --g-sat: 100%;
  --g-bd: rgba(255, 255, 255, 0.105);
  --g-bd-sel: rgba(255, 255, 255, 0.15);
  --g-hi: 0.05;
}

/* b · 轻磨砂 */
html[data-glass='b'] {
  --g-bg: rgba(255, 255, 255, 0.062);
  --g-bg-sel: rgba(255, 255, 255, 0.095);
  --g-blur: 16px;
  --g-sat: 145%;
  --g-bd: rgba(255, 255, 255, 0.13);
  --g-bd-sel: rgba(255, 255, 255, 0.18);
  --g-hi: 0.08;
}

/* c · 中磨砂 */
html[data-glass='c'] {
  --g-bg: rgba(255, 255, 255, 0.085);
  --g-bg-sel: rgba(255, 255, 255, 0.125);
  --g-blur: 26px;
  --g-sat: 165%;
  --g-bd: rgba(255, 255, 255, 0.16);
  --g-bd-sel: rgba(255, 255, 255, 0.22);
  --g-hi: 0.11;
}

/* d · 重磨砂 + 外侧柔影（唯一用阴影的一档） */
html[data-glass='d'] {
  --g-bg: rgba(255, 255, 255, 0.1);
  --g-bg-sel: rgba(255, 255, 255, 0.145);
  --g-blur: 34px;
  --g-sat: 180%;
  --g-bd: rgba(255, 255, 255, 0.19);
  --g-bd-sel: rgba(255, 255, 255, 0.26);
  --g-hi: 0.14;
  --g-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* 统一施加：去掉原来的实心渐变，换成半透明 + 背景模糊 */
html[data-glass] .card,
html[data-glass] .qcard,
html[data-glass] .kpi,
html[data-glass] .modal,
html[data-glass] .shot,
html[data-glass] .announce,
html[data-glass] .lock {
  background-image: none;
  background-color: var(--g-bg);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat));
  backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat));
  border-color: var(--g-bd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--g-hi)), var(--g-shadow);
}

html[data-glass] .card--sel {
  background-color: var(--g-bg-sel);
  border-color: var(--g-bd-sel);
}

/* 侧栏也玻璃化，和主区同一套 */
html[data-glass] .sidebar {
  background-image: none;
  background-color: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(calc(var(--g-blur) * 0.8)) saturate(var(--g-sat));
  backdrop-filter: blur(calc(var(--g-blur) * 0.8)) saturate(var(--g-sat));
  border-right-color: var(--g-bd);
}

/* 侧栏激活项在玻璃上要更实一点，否则看不出选中 */
html[data-glass] .side-item.on {
  background-image: none;
  background-color: rgba(255, 255, 255, 0.1);
}

/* 输入框继续保持凹陷感，不跟卡片走 */
html[data-glass] .input,
html[data-glass] .textarea,
html[data-glass] .select {
  background-color: rgba(0, 0, 0, 0.32);
}

/* 打印时取消模糊 */
@media print {
  html[data-glass] .card,
  html[data-glass] .shot,
  html[data-glass] .kpi,
  html[data-glass] .qcard {
    background-color: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
}

/* ==================================================================
   第四轮修正
   1. 默认磨砂档位定为 C
   2. 横向光带加粗
   3. 流光范围放大，并铺到整页（滑下去不再是纯黑）
   ================================================================== */

/* 光带：1px → 2px，光晕加大 */
.hero-line {
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0) 0%,
    rgba(139, 92, 246, 0.7) 16%,
    rgba(180, 150, 255, 1) 50%,
    rgba(139, 92, 246, 0.7) 84%,
    rgba(139, 92, 246, 0) 100%
  );
  box-shadow: 0 0 44px 10px rgba(124, 92, 246, 0.45), 0 0 130px 34px rgba(94, 106, 210, 0.24);
}

/* 流光铺满整页：高度改 100%，遮罩改成"顶部亮 → 中间收 → 底部再亮"，
   这样滚到页面底部也不会掉进纯黑 */
.aurora {
  inset: 0;
  height: auto;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.92) 9%,
    rgba(0, 0, 0, 0.5) 22%,
    rgba(0, 0, 0, 0.16) 40%,
    rgba(0, 0, 0, 0.1) 62%,
    rgba(0, 0, 0, 0.34) 82%,
    rgba(0, 0, 0, 0.62) 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.92) 9%,
    rgba(0, 0, 0, 0.5) 22%,
    rgba(0, 0, 0, 0.16) 40%,
    rgba(0, 0, 0, 0.1) 62%,
    rgba(0, 0, 0, 0.34) 82%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

/* 光团加大约 25%，并把两团挪到页面底部，管住下半屏 */
.aurora i:nth-child(1) {
  width: 118vw;
  height: 88vw;
  top: -42vw;
  left: -22vw;
}
.aurora i:nth-child(2) {
  width: 96vw;
  height: 74vw;
  top: -34vw;
  right: -20vw;
}
.aurora i:nth-child(3) {
  width: 74vw;
  height: 58vw;
  top: auto;
  bottom: -16vw;
  right: -24vw;
}
.aurora i:nth-child(4) {
  width: 92vw;
  height: 70vw;
  top: auto;
  bottom: -20vw;
  left: -16vw;
}
.aurora i:nth-child(5) {
  width: 104vw;
  height: 76vw;
  top: auto;
  bottom: -34vw;
  left: 16vw;
}

/* 底部的暗也不是纯黑：留一层很淡的冷色 */
body {
  background-color: #090a0d;
}

@media (max-width: 720px) {
  .aurora {
    height: auto;
  }
}

/* 网格项会被拉伸：品牌链接占满整栏，点空白处也会跳首页。收回内容宽度。 */
.nav-in > .brand {
  justify-self: start;
}

/* 下半屏补光：底部两团往上提、亮度加，中间那段遮罩也抬一档 */
.aurora {
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.94) 9%,
    rgba(0, 0, 0, 0.58) 22%,
    rgba(0, 0, 0, 0.26) 40%,
    rgba(0, 0, 0, 0.2) 62%,
    rgba(0, 0, 0, 0.46) 82%,
    rgba(0, 0, 0, 0.88) 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.94) 9%,
    rgba(0, 0, 0, 0.58) 22%,
    rgba(0, 0, 0, 0.26) 40%,
    rgba(0, 0, 0, 0.2) 62%,
    rgba(0, 0, 0, 0.46) 82%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.aurora i:nth-child(3) {
  bottom: -6vw;
  right: -22vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(217, 70, 239, 0.42) 0%,
    rgba(217, 70, 239, 0.16) 40%,
    rgba(217, 70, 239, 0) 68%
  );
}
.aurora i:nth-child(4) {
  bottom: -8vw;
  left: -14vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(34, 211, 238, 0.3) 0%,
    rgba(34, 211, 238, 0.11) 42%,
    rgba(34, 211, 238, 0) 70%
  );
}
.aurora i:nth-child(5) {
  bottom: -16vw;
  left: 14vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(45, 156, 219, 0.44) 0%,
    rgba(45, 156, 219, 0.16) 40%,
    rgba(45, 156, 219, 0) 68%
  );
}

/* 1. 中间那道线加高斯模糊：从硬边变成一条柔光带 */
.hero-line {
  height: 2px;
  filter: blur(3px);
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0) 0%,
    rgba(150, 110, 250, 0.85) 14%,
    rgba(196, 170, 255, 1) 50%,
    rgba(150, 110, 250, 0.85) 86%,
    rgba(139, 92, 246, 0) 100%
  );
  box-shadow: 0 0 50px 14px rgba(124, 92, 246, 0.4), 0 0 150px 40px rgba(94, 106, 210, 0.2);
}

/* 2. 渐入范围加大 + 错峰：
   - 起点不是全隐，留 15% 让内容隐约可见
   - 位移加大到 28px
   - 同一组里的元素依次延迟，不一起冒出来 */
.reveal {
  opacity: 0.15;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.in:nth-child(2) {
  transition-delay: 70ms;
}
.reveal.in:nth-child(3) {
  transition-delay: 140ms;
}
.reveal.in:nth-child(4) {
  transition-delay: 210ms;
}
.reveal.in:nth-child(5) {
  transition-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 修复：html/body 上的 overflow-x:hidden 会创建滚动容器，
   把 position:sticky 的吸顶导航废掉（滚动后直接消失）。
   overflow-x: clip 不创建滚动容器，同时仍能裁掉 100vw 造成的横向溢出。 */
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* ================= 产品截图轮播 ================= */
.shot-stage {
  position: relative;
  min-height: 342px;
}
.shot-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.995);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  pointer-events: none;
}
.shot-slide.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* 两栏变体（付费墙那屏不需要右侧面板） */
.shot-body--wide {
  grid-template-columns: 190px minmax(0, 1fr);
}

/* 输入区示意 */
.shot-answer {
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.shot-answer .shot-line {
  height: 7px;
  background: rgba(255, 255, 255, 0.09);
}
.shot-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--t3);
}
.shot-meta-row b {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* 价格档位示意 */
.shot-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.shot-plan {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shot-plan.on {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}
.shot-plan-label {
  font-size: 10px;
  color: var(--t3);
}
.shot-plan-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}
.shot-plan-cta {
  margin-top: 4px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}
.shot-plan.on .shot-plan-cta {
  background: linear-gradient(90deg, #5e6ad2, #8b5cf6);
  color: #fff;
}

/* 看板 KPI 示意 */
.shot-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.shot-kpi {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
}
.shot-kpi-l {
  font-size: 10px;
  color: var(--t3);
}
.shot-kpi-v {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 600;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
}

/* 轮播指示点 */
.shot-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 300ms var(--ease), width 300ms var(--ease);
}
.slide-dot.on {
  width: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.8);
}
@media (max-width: 1000px) {
  .shot-stage {
    min-height: 300px;
  }
  .shot-plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 左右切换按钮：默认隐身，鼠标移上去才出现（触屏常显） */
.shot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 13, 18, 0.72);
  color: var(--t2);
  cursor: pointer;
  opacity: 0;
  z-index: 3;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease);
}
.shot:hover .shot-nav {
  opacity: 1;
}
.shot-nav:hover {
  color: var(--t1);
  background: rgba(22, 24, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.24);
}
.shot-nav.prev {
  left: 10px;
}
.shot-nav.prev svg {
  transform: rotate(180deg);
}
.shot-nav.next {
  right: 10px;
}

/* 触屏没有 hover，按钮要常显 */
@media (hover: none) {
  .shot-nav {
    opacity: 0.9;
  }
}

/* 导航栏 Logo：去掉原来的方框，直接放团队标 */
.brand-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.brand-logo img {
  width: 22px;
  height: auto;
  display: block;
}
.side-brand .brand-logo img {
  width: 20px;
}

/* 书法标在 22px 上糊成一团，放大到 26px 才认得出是圆环 */
.brand-logo,
.brand-logo img {
  width: 26px;
}
.brand-logo {
  height: 26px;
}
.nav .brand-logo img,
.nav .brand-logo {
  width: 28px;
}
.nav .brand-logo {
  height: 28px;
}
.side-brand .brand-logo,
.side-brand .brand-logo img {
  width: 22px;
  height: 22px;
}

/* 左上角品牌 lockup：首席考官 | 教资面试模拟
   分隔线用 1px 竖线，不用竖线字符——字符的对齐和间距在不同系统字体下会飘。 */
.brand-name {
  font-weight: 600;
  color: var(--t1);
}
.brand-div {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 10px;
  flex: 0 0 auto;
}
.brand-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--t2);
  white-space: nowrap;
}

/* 侧栏窄，字号和间距收一档 */
.side-brand .brand-name {
  font-size: 13px;
}
.side-brand .brand-div {
  height: 11px;
  margin: 0 7px;
}
.side-brand .brand-sub {
  font-size: 11px;
  color: var(--t3);
}

/* 手机上 4+6 个字加分隔线会挤，副标隐藏 */
@media (max-width: 720px) {
  .brand-div,
  .brand-sub {
    display: none;
  }
}

/* 移动端导航：品牌名不能断行 */
.brand {
  min-width: 0;
}
.brand-name {
  white-space: nowrap;
}

/* 小屏导航：按钮收一档，给品牌让位 */
@media (max-width: 720px) {
  .nav-in {
    height: 56px;
    gap: 10px;
  }
  .nav-meta {
    gap: 8px;
  }
  .nav-meta .t12 {
    display: none; /* 「剩余 N 次」在侧栏/页面里还有，导航里省掉 */
  }
  .brand {
    font-size: 13px;
  }
}

/* ============ 移动端适配 ============ */

/* 1. 轮播裁切修复：窄屏下三个档位不能竖排（竖排后高 353px，容器只有 300px，被裁掉一半） */
@media (max-width: 1000px) {
  .shot-stage {
    min-height: 318px;
  }
  .shot-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .shot-plan {
    padding: 8px 8px 10px;
  }
  .shot-plan-price {
    font-size: 15px;
  }
  .shot-plan-cta {
    height: 20px;
    font-size: 9px;
  }
  .shot-main {
    padding: 16px 14px;
    gap: 10px;
  }
  .shot-bar {
    height: 30px;
  }
  .shot-title {
    font-size: 10px;
  }
  .shot-q {
    font-size: 14px;
  }
  .shot-score {
    font-size: 26px;
  }
}

/* 2. 手机上触控目标放大 */
@media (max-width: 720px) {
  .chip {
    height: 36px;
    padding: 0 14px;
  }
  .btn {
    height: 40px;
  }
  .btn--sm {
    height: 34px;
  }
  .shot-nav {
    width: 34px;
    height: 34px;
    opacity: 0.92;
  }
  .shot-dots {
    padding: 8px 12px;
    bottom: 8px;
  }
  .slide-dot {
    width: 7px;
    height: 7px;
  }
  .slide-dot.on {
    width: 18px;
    height: 7px;
  }
  /* 3. 顶部横向导航条：右边加一层渐隐，提示还能往右滑 */
  .sidebar {
    position: relative;
  }
  .sidebar::after {
    content: '';
    position: sticky;
    right: 0;
    flex: 0 0 28px;
    margin-left: -28px;
    background: linear-gradient(90deg, rgba(8, 9, 10, 0), rgba(8, 9, 10, 0.95));
    pointer-events: none;
  }
  /* 4. 侧栏底部被隐藏后，页面顶部需要留一点空间 */
  .page {
    padding-top: 14px;
  }
}

/* 5. 极窄屏（≤380）再收一档 */
@media (max-width: 380px) {
  .hero-title {
    font-size: 30px;
  }
  .section-title {
    font-size: 24px;
  }
  .shot-stage {
    min-height: 300px;
  }
}

/* 刚才 318 还差 22px：付费墙那屏内容 340。抬到 352 */
@media (max-width: 1000px) {
  .shot-stage {
    min-height: 352px;
  }
}
@media (max-width: 380px) {
  .shot-stage {
    min-height: 336px;
  }
}

/* 展示物料页在手机上：固定 16:9 的画布塞不下内容，
   内边距和字号一起降，并允许画布变成自适应高度 */
@media (max-width: 720px) {
  .art-in {
    padding: 20px !important;
  }
  .art-16x9,
  .art-1x1 {
    aspect-ratio: auto;
    min-height: 260px;
  }
  .art .t40 {
    font-size: 22px;
    line-height: 1.25;
  }
  .art .t28 {
    font-size: 17px;
    line-height: 1.3;
  }
  .art .t20 {
    font-size: 15px;
  }
  .art .t16 {
    font-size: 12px;
    line-height: 1.5;
  }
  .art .row.g32 {
    gap: 8px;
    flex-wrap: wrap;
  }
  .art .col[style*='min-width'] {
    min-width: 0 !important;
  }
  /* 数据看板：KPI 单列 */
  .kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 漏斗行：标签列收窄 */
  .fr {
    grid-template-columns: 64px minmax(0, 1fr) 56px;
  }
}

/* 覆盖掉上一条用 ::after 做渐隐的写法——在横向滚动的 flex 里 sticky 不生效。
   改成对容器加 mask，右边渐隐，提示还能往右滑。 */
@media (max-width: 900px) {
  .sidebar::after {
    content: none;
    display: none;
  }
  .sidebar {
    -webkit-mask-image: linear-gradient(90deg, #000 0 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 88%, transparent 100%);
  }
}
