/* ============================================================
   「智擎」OPC 赋能系统 · 全局设计系统 V1.0
   主题：深空智能 · 引擎赋能
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* 主色 · 深空 */
  --space-900: #070B1E;
  --space-800: #0B1230;
  --space-700: #111A45;
  --space-600: #1B275E;

  /* 智 · 青蓝 */
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --indigo-500: #6366F1;

  /* 擎 · 金橙 */
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --orange-500: #F97316;

  /* 语义 */
  --danger: #EF4444;
  --warning: #F59E0B;
  --success: #10B981;
  --info: #3B82F6;

  /* 中性 */
  --ink-900: #0B1020;
  --ink-700: #333C57;
  --ink-500: #5B6480;
  --ink-400: #8A93AD;
  --ink-300: #C2C9DA;
  --paper: #F5F7FC;
  --paper-2: #EEF2FA;
  --white: #FFFFFF;

  /* 渐变 */
  --grad-prime: linear-gradient(120deg, #3B82F6 0%, #22D3EE 100%);
  --grad-power: linear-gradient(120deg, #FBBF24 0%, #F97316 100%);
  --grad-hero: radial-gradient(1200px 600px at 75% -10%, rgba(34, 211, 238, .18), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(99, 102, 241, .22), transparent 55%),
               radial-gradient(700px 500px at 50% 110%, rgba(249, 115, 22, .12), transparent 60%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(34, 211, 238, .05));

  /* 形态 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 2px 8px rgba(11, 18, 48, .06);
  --shadow-md: 0 10px 30px rgba(11, 18, 48, .10);
  --shadow-lg: 0 24px 60px rgba(11, 18, 48, .16);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 12px 40px rgba(34, 211, 238, .18);

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* ⚠️ 必须放在所有布局类之前：hidden 属性靠 UA 样式表的 display:none 生效，
   而任何作者样式（如 .auth-form{display:flex}、.ct-toolbar{display:flex}）
   都会把它覆盖掉，导致「本该隐藏的元素一直显示」。
   2026-09-26 修：登录/注册两个表单同时显示、内容页筛选栏在详情页仍显示，都是这个原因。 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: rgba(34, 211, 238, .3); }

/* ---------- Layout ---------- */
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.container-narrow { width: min(880px, calc(100% - 48px)); margin: 0 auto; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--space-800); color: #DCE5FF; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-hero);
  opacity: .8; pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.muted { color: var(--ink-500); }
.section-dark .muted { color: #93A0C8; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.25; font-weight: 700; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.display { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.3px; }
.h3 { font-size: 22px; }
.h4 { font-size: 17px; }

.lead { font-size: 19px; color: var(--ink-500); line-height: 1.8; }
.section-dark .lead { color: #A9B6DE; }

.grad-text {
  background: var(--grad-prime);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  white-space: nowrap;
}
.grad-text-gold {
  background: var(--grad-power);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  white-space: nowrap;
}
/* 维度颜色编码 */
.dim-d1 { color: var(--danger); }
.dim-d2 { color: #F97316; }
.dim-d3 { color: var(--amber-500); }
.dim-d4 { color: var(--blue-600); }
.dim-d5 { color: var(--cyan-500); }
.dim-d6 { color: var(--indigo-500); }
.bg-d1 { background: var(--danger); }
.bg-d2 { background: #F97316; }
.bg-d3 { background: var(--amber-500); }
.bg-d4 { background: var(--blue-600); }
.bg-d5 { background: var(--cyan-500); }
.bg-d6 { background: var(--indigo-500); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  color: var(--blue-600); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-prime); border-radius: 2px; }
.section-dark .eyebrow { color: var(--cyan-400); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-prime); color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 99, 235, .42); }
.btn-gold { background: var(--grad-power); color: #3A2406; box-shadow: 0 8px 24px rgba(245, 158, 11, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(245, 158, 11, .42); }
.btn-ghost { border: 1.5px solid var(--ink-300); color: var(--ink-700); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); background: #fff; }
.section-dark .btn-ghost { border-color: rgba(255,255,255,.25); color: #E8EEFF; background: rgba(255,255,255,.05); }
.section-dark .btn-ghost:hover { border-color: var(--cyan-400); color: #fff; background: rgba(34,211,238,.1); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 36px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(11, 18, 48, .06);
}
.nav.dark { color: #E8EEFF; }
.nav.dark.scrolled { background: rgba(7, 11, 30, .82); box-shadow: 0 1px 0 rgba(255,255,255,.06); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-prime);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .4);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 50%);
}
.brand-mark svg { position: relative; z-index: 1; }
.brand small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 2px; opacity: .65; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-500); transition: color .2s, background .2s;
}
.nav.dark .nav-links a { color: #B3C0E4; }
.nav-links a:hover { color: var(--blue-600); background: rgba(59,130,246,.08); }
.nav.dark .nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--blue-600); background: rgba(59,130,246,.1); font-weight: 600; }
.nav.dark .nav-links a.active { color: var(--cyan-400); background: rgba(34,211,238,.12); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 18, 48, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(59,130,246,.18); }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; }

.card-dark {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 30px; color: #DCE5FF;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.card-dark:hover { transform: translateY(-5px); background: rgba(255,255,255,.08); border-color: rgba(34,211,238,.35); }
.card-dark h3, .card-dark h4 { color: #fff; }
.card-dark p { color: #A9B6DE; }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad-soft); color: var(--blue-600);
}
.icon-box.gold { background: linear-gradient(135deg, rgba(251,191,36,.16), rgba(249,115,22,.1)); color: var(--orange-500); }
.icon-box.cyan { background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(6,182,212,.1)); color: var(--cyan-500); }
.card-dark .icon-box { background: rgba(34,211,238,.12); color: var(--cyan-400); }

/* ---------- Badges / Chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: rgba(59,130,246,.1); color: var(--blue-600);
}
.badge.gold { background: rgba(245,158,11,.14); color: #B45309; }
.badge.green { background: rgba(16,185,129,.13); color: #047857; }
.badge.red { background: rgba(239,68,68,.12); color: #B91C1C; }
.badge.ghost { background: transparent; border: 1px solid var(--ink-300); color: var(--ink-500); }
.badge.cyan { background: rgba(6,182,212,.12); color: #0E7490; }

/* ---------- Stats ---------- */
.stat-num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1; }
.stat-num small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 14px; color: var(--ink-500); margin-top: 10px; }
.section-dark .stat-label { color: #93A0C8; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--space-800); color: #E8EEFF;
  overflow: hidden; padding: 120px 0 80px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 9px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  font-size: 13px; color: #C9D5F7; margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 10px var(--cyan-400); animation: pulse 2s infinite; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 .line2 { display: block; }
.hero p.sub { font-size: 18px; color: #AEBCE3; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 20px; margin-top: 40px; font-size: 13px; color: #8494C4; }
.hero-trust .divider { width: 1px; height: 30px; background: rgba(255,255,255,.12); }

/* Hero 视觉卡片 */
.hero-visual { position: relative; }
.hero-panel {
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl); padding: 26px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero-panel-title { font-size: 14px; font-weight: 600; color: #DCE5FF; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.hero-mini-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 13.5px; }
.hero-mini-row .name { color: #AEBCE3; display: flex; align-items: center; gap: 9px; }
.hero-mini-row .val { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hero-float {
  position: absolute; padding: 14px 18px; border-radius: var(--r-md);
  background: rgba(13, 21, 51, .9); border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg); font-size: 13px;
  animation: float 5s ease-in-out infinite;
}
.hero-float .t { color: #8FA0CF; font-size: 11.5px; margin-bottom: 2px; }
.hero-float .v { font-size: 19px; font-weight: 800; color: #fff; }
.hero-float.f1 { top: -22px; left: -30px; }
.hero-float.f1 .v { color: var(--cyan-400); }
.hero-float.f2 { bottom: -26px; right: -20px; animation-delay: 1.5s; }
.hero-float.f2 .v { color: var(--amber-400); }

/* ---------- Page Hero（内页） ---------- */
.page-hero {
  position: relative; padding: 150px 0 80px;
  background: var(--space-800); color: #E8EEFF; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.page-hero .hero-grid-bg { opacity: .25; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); margin: 18px 0 20px; max-width: 760px; }
.page-hero p { color: #AEBCE3; font-size: 18px; max-width: 640px; }
.crumb { font-size: 13.5px; color: #8494C4; display: flex; gap: 8px; }
.crumb a:hover { color: var(--cyan-400); }

/* ---------- 三层架构图 ---------- */
.layer-stack { display: flex; flex-direction: column; gap: 18px; }
.layer-item {
  position: relative; display: grid; grid-template-columns: 76px 1fr auto; gap: 24px; align-items: center;
  padding: 30px 34px; border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,18,48,.06);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.layer-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.layer-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--grad-prime);
}
.layer-item.l3::before { background: var(--grad-power); }
.layer-num {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 800;
  background: var(--grad-soft); color: var(--blue-600);
}
.layer-item.l3 .layer-num { background: linear-gradient(135deg, rgba(251,191,36,.16), rgba(249,115,22,.1)); color: var(--orange-500); }
.layer-info h3 { margin-bottom: 6px; }
.layer-info p { font-size: 14.5px; color: var(--ink-500); }
.layer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.layer-flow { text-align: center; margin: 6px 0; color: var(--ink-400); font-size: 13px; }

/* ---------- 漏斗三层（首页对外版） ---------- */
.layer-funnel { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 12px; }
.layer-funnel .layer-step {
  position: relative; padding: 36px 40px; border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11,18,48,.06);
  text-align: center; transition: transform .3s, box-shadow .3s;
}
.layer-funnel .layer-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.layer-funnel .layer-step.l1 { width: 100%; background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(34,211,238,.04)); border-color: rgba(59,130,246,.18); border-top: 4px solid var(--blue-500); }
.layer-funnel .layer-step.l2 { width: 78%; margin-top: -10px; background: linear-gradient(135deg, rgba(245,158,11,.06), rgba(249,115,22,.04)); border-color: rgba(245,158,11,.18); border-top: 4px solid var(--amber-500); z-index: 2; }
.layer-funnel .layer-step.l3 { width: 58%; margin-top: -10px; background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(16,185,129,.04)); border-color: rgba(99,102,241,.18); border-top: 4px solid var(--indigo-500); z-index: 3; }
.layer-funnel .layer-step .layer-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}
.layer-funnel .layer-step.l1 .layer-tag { background: rgba(59,130,246,.12); color: var(--blue-600); }
.layer-funnel .layer-step.l2 .layer-tag { background: rgba(245,158,11,.14); color: #B45309; }
.layer-funnel .layer-step.l3 .layer-tag { background: rgba(99,102,241,.12); color: var(--indigo-500); }
.layer-funnel .layer-step h3 { font-size: 22px; margin-bottom: 8px; }
.layer-funnel .layer-step p { font-size: 15px; color: var(--ink-500); max-width: 560px; margin: 0 auto; }
.layer-funnel .layer-arrow {
  font-size: 22px; color: var(--ink-300); margin: -2px 0; z-index: 4; line-height: 1;
}
.layer-funnel .layer-step .layer-cta { margin-top: 18px; }

/* ---------- 提示框（信度/认知偏差） ---------- */
.hint-box {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.6; margin-top: 14px;
}
.hint-box.warn { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: #92400E; }
.hint-box.info { background: rgba(59,130,246,.07); border: 1px solid rgba(59,130,246,.2); color: #1E40AF; }
.hint-box .hint-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }
.hint-box b { font-weight: 700; }

/* 学科依据小角标 */
.science-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--ink-400); font-weight: 500;
  padding: 3px 9px; border-radius: 999px; background: var(--paper-2);
}

/* 行动路径周表增强 */
.path-table .week-phase { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.path-table .week-phase.p1 { background: rgba(239,68,68,.1); color: #B91C1C; }
.path-table .week-phase.p2 { background: rgba(245,158,11,.12); color: #B45309; }
.path-table .week-phase.p3 { background: rgba(16,185,129,.1); color: #047857; }

/* 保存报告按钮区 */
.report-save {
  margin-top: 18px; padding: 16px; border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(34,211,238,.05));
  border: 1px dashed rgba(99,102,241,.25); text-align: center;
}
.report-save .rid { font-family: var(--font-mono); font-size: 13px; color: var(--indigo-500); font-weight: 700; margin-top: 6px; }

/* ---------- 流程链 ---------- */
.chain { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.chain-step {
  flex: 1; min-width: 150px; text-align: center; position: relative; padding: 24px 14px;
}
.chain-step .chain-icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--white); box-shadow: var(--shadow-sm);
  color: var(--blue-600); font-size: 22px; font-weight: 800;
  border: 1px solid rgba(59,130,246,.12);
}
.chain-step h4 { font-size: 15.5px; margin-bottom: 4px; }
.chain-step p { font-size: 13px; color: var(--ink-500); }
.chain-arrow { display: flex; align-items: center; color: var(--ink-300); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; background: var(--paper-2); padding: 6px; border-radius: 999px; width: fit-content; margin: 0 auto 40px; flex-wrap: wrap; justify-content: center; }
.tab-btn {
  padding: 10px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-500); transition: .2s;
}
.tab-btn.active { background: var(--white); color: var(--blue-600); box-shadow: var(--shadow-sm); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .4s ease; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue-500), var(--cyan-400)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -34px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.tl-item.gold .tl-dot { border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(245,158,11,.14); }
.tl-date { font-size: 12.5px; font-weight: 700; color: var(--blue-600); letter-spacing: .5px; }
.tl-item.gold .tl-date { color: var(--orange-500); }
.tl-item h4 { margin: 4px 0 6px; font-size: 16.5px; }
.tl-item p { font-size: 14px; color: var(--ink-500); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background: var(--white); border: 1px solid rgba(11,18,48,.06); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
.data-table th {
  text-align: left; padding: 15px 20px; font-size: 13px;
  color: var(--ink-500); background: var(--paper-2);
  font-weight: 600; white-space: nowrap;
}
.data-table td { padding: 14px 20px; border-top: 1px solid rgba(11,18,48,.06); color: var(--ink-700); }
.data-table tbody tr:hover { background: rgba(59,130,246,.03); }
.data-table .mono { font-family: var(--font-mono); font-size: 13px; color: var(--blue-600); }

.path-table { min-width: 900px; }
.path-table th { white-space: nowrap; }
.path-table td { vertical-align: top; }

/* ---------- 诊断问卷 ---------- */
.diag-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.diag-sidebar { position: sticky; top: 100px; }

.q-group { margin-bottom: 28px; }
.q-group-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--space-700); color: #fff;
}
.q-group-head .gi {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: rgba(34,211,238,.18); color: var(--cyan-400);
}
.q-group-head h3 { color: #fff; font-size: 16.5px; }
.q-group-head .wgt { margin-left: auto; font-size: 12.5px; color: #93A0C8; font-weight: 600; }
.q-list { border: 1px solid rgba(11,18,48,.08); border-top: none; border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; background: var(--white); }

.q-item { padding: 20px 24px; border-top: 1px solid rgba(11,18,48,.06); }
.q-item:first-child { border-top: none; }
.q-title { font-size: 14.5px; font-weight: 600; color: var(--ink-900); margin-bottom: 14px; }
.q-title .qid { color: var(--blue-600); font-family: var(--font-mono); font-size: 13px; margin-right: 8px; }
.opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.opt {
  position: relative; cursor: pointer;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .opt-inner {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 6px 10px; border-radius: var(--r-sm);
  border: 1.5px solid var(--ink-300); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--ink-500);
  transition: .18s; text-align: center; line-height: 1.35;
}
.opt .opt-score {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  background: var(--paper-2); color: var(--ink-500); font-weight: 700;
}
.opt:hover .opt-inner { border-color: var(--blue-500); color: var(--blue-600); }
.opt input:checked + .opt-inner {
  border-color: var(--blue-500); background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(34,211,238,.07));
  color: var(--blue-600); box-shadow: 0 4px 14px rgba(59,130,246,.18);
}
.opt input:checked + .opt-inner .opt-score { background: var(--grad-prime); color: #fff; }
.opt input:focus-visible + .opt-inner { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* ---------- 情境判断题 ---------- */
.scenario-item { background: linear-gradient(135deg, rgba(99,102,241,.045), transparent); }
.scenario-opts { display: flex; flex-direction: column; gap: 9px; }
.scenario-opt { position: relative; cursor: pointer; }
.scenario-opt input { position: absolute; opacity: 0; pointer-events: none; }
.so-inner {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--ink-300); background: var(--white);
  font-size: 13.5px; color: var(--ink-700); line-height: 1.55;
  transition: .18s;
}
.so-inner .opt-score {
  flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--paper-2); color: var(--ink-500); margin-top: 1px;
}
.scenario-opt:hover .so-inner { border-color: var(--indigo-500); }
.scenario-opt input:checked + .so-inner {
  border-color: var(--indigo-500);
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(59,130,246,.06));
  box-shadow: 0 4px 14px rgba(99,102,241,.16);
}
.scenario-opt input:checked + .so-inner .opt-score {
  background: linear-gradient(120deg, #6366F1, #3B82F6); color: #fff;
}
.scenario-opt input:focus-visible + .so-inner { outline: 2px solid var(--indigo-500); outline-offset: 2px; }

/* ---------- 客观数值题 ---------- */
.numeric-item { background: linear-gradient(135deg, rgba(34,211,238,.05), transparent); }
.numeric-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.numeric-input {
  width: 200px; padding: 11px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--ink-300); background: var(--white);
  font-size: 15px; font-weight: 700; color: var(--ink-900);
  transition: .18s;
}
.numeric-input:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 4px rgba(6,182,212,.14); }
.num-score-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--paper-2); color: var(--ink-500); white-space: nowrap;
}
.num-score-chip.filled { background: rgba(6,182,212,.13); color: #0E7490; }
.numeric-hint { margin-top: 10px; font-size: 12px; color: var(--ink-400); line-height: 1.7; }

/* 结果面板 */
.result-panel {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); border: 1px solid rgba(11,18,48,.06);
  padding: 28px;
}
.result-empty { text-align: center; padding: 30px 10px; color: var(--ink-400); font-size: 14px; }
.result-empty .ring {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px dashed var(--ink-300); display: grid; place-items: center;
  color: var(--ink-400);
}
.radar-wrap { position: relative; }
.radar-wrap .total-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.radar-wrap .total-badge .num { font-size: 32px; font-weight: 800; color: var(--ink-900); line-height: 1; }
.radar-wrap .total-badge .lbl { font-size: 11px; color: var(--ink-400); margin-top: 3px; }

.score-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13.5px; }
.score-row .sname { width: 72px; flex-shrink: 0; color: var(--ink-500); }
.score-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s ease, background .3s; }
.score-row .sval { width: 34px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-700); font-size: 13px; }

.bottleneck-box {
  margin-top: 20px; padding: 18px; border-radius: var(--r-md);
  background: var(--paper-2);
}
.bottleneck-box .bk-label { font-size: 12px; font-weight: 700; color: var(--ink-400); letter-spacing: 1px; margin-bottom: 8px; }
.bottleneck-box .bk-main { font-size: 16px; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 8px; }
.progress-complete {
  margin-top: 20px;
}
.progress-complete .pc-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-500); margin-bottom: 8px; }
.progress-complete .pc-track { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.progress-complete .pc-fill { height: 100%; background: var(--grad-prime); border-radius: 99px; transition: width .4s; }

/* ---------- 等级卡片 ---------- */
.level-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.level-card {
  padding: 22px 14px; border-radius: var(--r-md); text-align: center;
  background: var(--white); border: 2px solid transparent; box-shadow: var(--shadow-sm);
  transition: .2s;
}
.level-card .lv { font-size: 13px; font-weight: 800; color: var(--blue-600); letter-spacing: 1px; }
.level-card .sc { font-size: 12px; color: var(--ink-400); margin: 6px 0 8px; }
.level-card .nm { font-size: 15.5px; font-weight: 700; color: var(--ink-900); }
.level-card .desc { font-size: 11.5px; color: var(--ink-500); margin-top: 8px; line-height: 1.5; }
.level-card.l1 { border-color: var(--danger); } .level-card.l1 .lv { color: var(--danger); }
.level-card.l2 { border-color: #F97316; } .level-card.l2 .lv { color: #EA580C; }
.level-card.l3 { border-color: var(--warning); } .level-card.l3 .lv { color: #D97706; }
.level-card.l4 { border-color: var(--blue-500); } .level-card.l4 .lv { color: var(--blue-600); }
.level-card.l5 { border-color: var(--cyan-500); } .level-card.l5 .lv { color: var(--cyan-500); }
.level-card.l6 { border-color: var(--success); } .level-card.l6 .lv { color: var(--success); }

/* ---------- 21天日历 ---------- */
.camp-week { margin-bottom: 36px; }
.camp-week-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.camp-week-head .wk-badge {
  padding: 7px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  background: var(--space-700); color: #fff;
}
.camp-week-head .wk-theme { font-size: 15px; color: var(--ink-500); }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-cell {
  padding: 14px 12px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid rgba(11,18,48,.08);
  font-size: 12.5px; transition: .2s; min-height: 104px;
}
.day-cell:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.day-cell .d-num { font-weight: 800; color: var(--blue-600); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.day-cell .d-num .phase { font-size: 10px; padding: 1px 7px; border-radius: 99px; background: rgba(245,158,11,.14); color: #B45309; font-weight: 700; }
.day-cell .d-theme { margin: 7px 0 5px; font-weight: 600; color: var(--ink-900); font-size: 12.5px; line-height: 1.4; }
.day-cell .d-out { color: var(--ink-400); font-size: 11px; line-height: 1.45; }
.day-cell.intensive { background: linear-gradient(150deg, var(--space-700), var(--space-600)); border-color: transparent; }
.day-cell.intensive .d-num { color: var(--cyan-400); }
.day-cell.intensive .d-theme { color: #fff; }
.day-cell.intensive .d-out { color: #8FA0CF; }
.day-cell.intensive .d-num .phase { background: rgba(34,211,238,.2); color: var(--cyan-400); }

/* ---------- 模块卡 M1-M5 ---------- */
.module-card { position: relative; overflow: hidden; }
.module-card .m-code {
  font-size: 44px; font-weight: 800; line-height: 1;
  background: var(--grad-prime); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; opacity: .9;
}
.module-card .m-q { font-size: 13.5px; color: var(--ink-500); margin: 10px 0 14px; }
.module-card .m-out {
  padding-top: 14px; border-top: 1px dashed rgba(11,18,48,.12);
  font-size: 13px; color: var(--ink-700); display: flex; gap: 8px;
}
.module-card .m-out svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ---------- 定价 ---------- */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured {
  background: linear-gradient(165deg, var(--space-700), var(--space-800));
  border: none; transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.price-card.featured h3, .price-card.featured .price { color: #fff; }
.price-card.featured .price-desc, .price-card.featured li { color: #AEBCE3; }
.price-card .price { font-size: 40px; font-weight: 800; margin: 14px 0 4px; color: var(--ink-900); }
.price-card .price small { font-size: 14px; font-weight: 600; color: var(--ink-400); }
.price-card .price-desc { font-size: 13.5px; color: var(--ink-500); margin-bottom: 22px; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-700); }
.price-card li svg { color: var(--success); flex-shrink: 0; margin-top: 4px; }
.price-card .popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 16px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--grad-power); color: #3A2406; box-shadow: 0 6px 16px rgba(245,158,11,.4);
}

/* ---------- 看板 ---------- */
.kpi-card { display: flex; flex-direction: column; gap: 6px; }
.kpi-card .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-card .kpi-label { font-size: 13px; color: var(--ink-500); }
.kpi-card .kpi-trend { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.kpi-trend.up { background: rgba(16,185,129,.12); color: var(--success); }
.kpi-trend.down { background: rgba(239,68,68,.12); color: var(--danger); }
.kpi-card .kpi-value { font-size: 32px; font-weight: 800; color: var(--ink-900); letter-spacing: -.5px; }
.kpi-card .kpi-value small { font-size: 15px; font-weight: 600; color: var(--ink-400); }

.chart-card .chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.chart-card .chart-head h3 { font-size: 16.5px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-500); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.alert-list { display: flex; flex-direction: column; gap: 12px; }
.alert-item {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 18px; border-radius: var(--r-md); font-size: 13.5px;
  border: 1px solid;
}
.alert-item.red { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.22); color: #991B1B; }
.alert-item.yellow { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); color: #92400E; }
.alert-item .ai { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }
.alert-item.red .ai { background: rgba(239,68,68,.15); }
.alert-item.yellow .ai { background: rgba(245,158,11,.17); }

/* ---------- CTA 带 ---------- */
.cta-band {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--space-800); padding: 72px 64px; text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.cta-band p { color: #AEBCE3; margin-bottom: 32px; font-size: 16.5px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--space-900); color: #8494C4; padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p.f-desc { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer h5 { color: #E8EEFF; font-size: 14px; margin-bottom: 18px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.footer-links a:hover { color: var(--cyan-400); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* ---------- 特性列表 ---------- */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; font-size: 14.5px; }
.check-list .ci {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; margin-top: 2px;
  background: rgba(16,185,129,.13); color: var(--success);
}
.check-list li b { color: var(--ink-900); font-weight: 600; }

/* ---------- 数据条（痛点） ---------- */
.pain-grid .card { text-align: left; }
.pain-num { font-size: 42px; font-weight: 800; line-height: 1; }
.pain-num.hot { color: var(--danger); }
.pain-num.cold { color: var(--blue-600); }
.pain-num.gold { color: var(--amber-500); }
.pain-label { font-size: 14px; color: var(--ink-500); margin-top: 10px; line-height: 1.6; }

/* ---------- 动画 ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .diag-layout { grid-template-columns: 1fr; }
  .diag-sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .level-grid { grid-template-columns: repeat(3, 1fr); }
  .layer-funnel .layer-step.l2 { width: 88%; }
  .layer-funnel .layer-step.l3 { width: 74%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { width: calc(100% - 36px); }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 16px 18px; gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav.dark.menu-open .nav-links { background: var(--space-800); }
  .nav.menu-open .nav-links a { padding: 13px 16px; border-radius: var(--r-sm); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .layer-funnel .layer-step { padding: 26px 20px; }
  .layer-funnel .layer-step.l2, .layer-funnel .layer-step.l3 { width: 96%; margin-top: 10px; }
  .opts { grid-template-columns: repeat(3, 1fr); }
  .layer-item { grid-template-columns: 56px 1fr; }
  .layer-tags { display: none; }
  .chain-arrow { display: none; }
  .cta-band { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-float.f1 { left: 0; } .hero-float.f2 { right: 0; }
}

/* ================================================================
 * 登录态导航（由 assets/js/auth.js 注入）
 * ================================================================ */
.nav-auth { display: inline-flex; align-items: center; gap: 10px; margin-left: 4px; }
.nav-user { display: inline-flex; align-items: center; gap: 7px; }
.nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-prime); color: #fff;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}
.nav-uname {
  font-size: 13.5px; color: #fff; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-mini {
  font-size: 13px; color: #A9B6DE; text-decoration: none;
  padding: 4px 6px; border-radius: 6px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: color .16s, background .16s;
}
.nav-mini:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav-logout:hover { color: #FCA5A5; }

/* 导航登录入口（三层）
 *
 * 第一层 · .nav-guest：写在 HTML 里的静态「登录 / 免费注册」，不依赖任何脚本。
 *   脚本没跑起来时它就是唯一入口，所以**默认可见**；auth.js 渲染成功后隐藏它。
 *   （刻意不用 html.js 类名来藏：内联脚本总能执行，但网络加载的 auth.js 未必，
 *     那样兜底就白做了 —— 必须由「本次渲染确实成功」这个事实来驱动隐藏。）
 * 第二层 · .nav-auth：由 auth.js 在登录后渲染（头像 + 我的报告 + 后台 + 退出）。
 * 第三层 · .nav-links-auth：汉堡菜单里的账号入口，桌面端隐藏、小屏显示。
 */
.nav-links-auth { display: none; }

@media (max-width: 720px) {
  .nav-links-auth { display: block; }
  /* 菜单里的「退出登录」是 button，需显式补齐与 <a> 一致的样式 */
  .nav-links .nav-extra-btn {
    width: 100%; text-align: left;
    padding: 13px 16px; border-radius: var(--r-sm);
    font-size: 14px; font-family: inherit;
    color: #B3C0E4; background: none; border: 0; cursor: pointer;
  }
  .nav-links .nav-extra-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
}

/* 极窄屏：顶栏只留头像，账号项全部交给汉堡菜单，避免把导航挤爆 */
@media (max-width: 420px) {
  .nav-auth .nav-mini { display: none; }
}

/* ================================================================
 * 轻提示
 * ================================================================ */
.zq-toast-root {
  position: fixed; z-index: 9000;
  right: 20px; bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.zq-toast {
  padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  background: var(--ink-900); color: #fff;
  box-shadow: 0 14px 36px rgba(11,16,32,.28);
  animation: zqToastIn .24s ease both;
  max-width: 340px;
}
.zq-toast.ok  { background: linear-gradient(120deg, #059669, #10B981); }
.zq-toast.err { background: linear-gradient(120deg, #DC2626, #EF4444); }
.zq-toast.out { animation: zqToastOut .45s ease both; }
@keyframes zqToastIn  { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes zqToastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ================================================================
 * 登录 / 注册页
 * ================================================================ */
/* 与首页一致的「深空智能」深色主题（2026-09-26 由浅色改为深色） */
body.page-auth { background: var(--space-800); }
.auth-wrap {
  position: relative;
  padding: 128px 0 96px;
  background: var(--space-800);
  color: #E8EEFF;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}
.auth-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.auth-wrap > .container { position: relative; z-index: 1; }

.auth-card {
  max-width: 452px; margin: 0 auto;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 36px 34px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #DCE5FF;
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: rgba(34,211,238,.14); color: var(--cyan-400);
  border: 1px solid rgba(34,211,238,.26);
  margin-bottom: 14px;
}
.auth-title { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 10px; letter-spacing: -.01em; }
.auth-sub { font-size: 13.5px; color: #A9B6DE; margin: 0; line-height: 1.7; }

.auth-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.auth-tab {
  flex: 1; padding: 10px 12px; border: 0; border-radius: 9px;
  background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #9AA7CC;
  font-family: inherit; transition: background .18s, color .18s, box-shadow .18s;
}
.auth-tab:hover { color: #E8EEFF; }
.auth-tab.active {
  background: var(--grad-prime); color: #fff;
  box-shadow: 0 6px 18px rgba(59,130,246,.35);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-label { font-size: 13px; font-weight: 600; color: #C3CEEA; }
.auth-label b { color: #FCA5A5; font-weight: 700; }
.auth-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid rgba(255,255,255,.16); border-radius: 11px;
  font-size: 15px; font-family: inherit; color: #fff;
  background: rgba(255,255,255,.05);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.auth-input::placeholder { color: #6C7AA0; }
.auth-input:focus {
  outline: none; border-color: var(--cyan-400);
  background: rgba(255,255,255,.085);
  box-shadow: 0 0 0 3px rgba(34,211,238,.18);
}
/* Chrome 自动填充会把输入框刷成白底黑字，深色主题下必须覆盖 */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #16203F inset;
  caret-color: #fff;
  transition: background-color 9999s ease-out;
}
.auth-error {
  padding: 11px 14px; border-radius: 10px;
  background: rgba(239,68,68,.13); border: 1px solid rgba(239,68,68,.35);
  color: #FCA5A5; font-size: 13px; line-height: 1.6;
}
.auth-alt { text-align: center; font-size: 13.5px; color: #8794BA; }
.auth-switch { color: var(--cyan-400); text-decoration: none; font-weight: 600; }
.auth-switch:hover { text-decoration: underline; }
.auth-note { font-size: 12px; color: #6C7AA0; line-height: 1.65; margin: 2px 0 0; text-align: center; }
.auth-foot {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.09);
  text-align: center; font-size: 13.5px;
}
.auth-foot a { color: #8794BA; text-decoration: none; }
.auth-foot a:hover { color: var(--cyan-400); }

/* ================================================================
 * 内容页（列表 + 详情）
 * ================================================================ */
.ct-head { padding: 54px 0 26px; background: var(--grad-hero), var(--paper); }
.ct-h1 { font-size: 34px; font-weight: 800; color: var(--ink-900); margin: 0 0 10px; letter-spacing: -.015em; }
.ct-hp { font-size: 15px; color: var(--ink-500); margin: 0 0 22px; }
.ct-toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ct-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-chip {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink-300); background: rgba(255,255,255,.7);
  font-size: 13px; color: var(--ink-700); font-family: inherit;
  transition: all .16s;
}
.ct-chip b { color: var(--ink-400); font-weight: 600; margin-left: 3px; }
.ct-chip:hover { border-color: var(--blue-500); color: var(--blue-600); }
.ct-chip.active { background: var(--grad-prime); border-color: transparent; color: #fff; }
.ct-chip.active b { color: rgba(255,255,255,.8); }
.ct-search { display: flex; gap: 8px; }
.ct-search-input {
  padding: 10px 14px; border: 1.5px solid var(--ink-300); border-radius: 10px;
  font-size: 14px; font-family: inherit; min-width: 210px; background: #fff;
}
.ct-search-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.13); }

.ct-main { padding: 34px 0 76px; background: var(--paper); min-height: 50vh; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 22px; }
.ct-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 15px; text-decoration: none;
  border: 1px solid rgba(11,16,32,.07);
  box-shadow: 0 4px 18px rgba(11,16,32,.05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,16,32,.11); border-color: rgba(59,130,246,.22); }
.ct-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.ct-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-cover-none { display: grid; place-items: center; background: var(--grad-prime); }
.ct-cover-none span { color: rgba(255,255,255,.85); font-size: 15px; font-weight: 800; letter-spacing: .3em; }
.ct-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ct-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-cat { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.ct-cat.c-blue  { background: rgba(59,130,246,.12); color: #1D4ED8; }
.ct-cat.c-cyan  { background: rgba(6,182,212,.13);  color: #0E7490; }
.ct-cat.c-green { background: rgba(16,185,129,.13); color: #047857; }
.ct-cat.c-gold  { background: rgba(245,158,11,.15); color: #B45309; }
.ct-body h3 { font-size: 16.5px; font-weight: 700; color: var(--ink-900); margin: 0; line-height: 1.45; }
.ct-card:hover .ct-body h3 { color: var(--blue-600); }
.ct-sum {
  font-size: 13.5px; color: var(--ink-500); line-height: 1.65; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ct-foot {
  display: flex; gap: 14px; font-size: 12px; color: var(--ink-400);
  padding-top: 10px; border-top: 1px solid var(--paper-2);
}
.ct-loading, .ct-empty { text-align: center; padding: 70px 20px; color: var(--ink-500); }
.ct-empty-ico { font-size: 42px; margin-bottom: 12px; }
.ct-empty .btn { margin-top: 16px; }

/* 详情 */
.ct-back { display: inline-block; font-size: 13.5px; color: var(--ink-500); text-decoration: none; margin-bottom: 20px; }
.ct-back:hover { color: var(--blue-600); }
.ct-article { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 40px 44px; border: 1px solid rgba(11,16,32,.06); box-shadow: 0 6px 28px rgba(11,16,32,.05); }
.ct-title { font-size: 29px; font-weight: 800; color: var(--ink-900); margin: 12px 0 10px; line-height: 1.35; letter-spacing: -.015em; }
.ct-subtitle { font-size: 15.5px; color: var(--ink-500); margin: 0 0 14px; line-height: 1.7; }
.ct-meta { display: flex; gap: 16px; font-size: 13px; color: var(--ink-400); padding-bottom: 20px; border-bottom: 1px solid var(--paper-2); flex-wrap: wrap; }
.ct-hero { margin: 24px 0; border-radius: 12px; overflow: hidden; }
.ct-hero img { width: 100%; display: block; }

.ct-attach { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--paper-2); }
.ct-attach h3 { font-size: 16px; font-weight: 700; color: var(--ink-900); margin: 0 0 14px; }
.ct-attach-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 15px; margin-bottom: 9px;
  border: 1.5px solid var(--ink-300); border-radius: 11px;
  text-decoration: none; color: var(--ink-900);
  transition: border-color .16s, background .16s, transform .16s;
}
.ct-attach-row:hover { border-color: var(--blue-500); background: rgba(59,130,246,.045); transform: translateX(3px); }
.att-ico { font-size: 19px; flex-shrink: 0; }
.att-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { font-size: 12px; color: var(--ink-400); flex-shrink: 0; }
.att-dl { font-size: 12.5px; font-weight: 700; color: var(--blue-600); flex-shrink: 0; }
.ct-end { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--paper-2); text-align: center; }

/* Markdown 正文 */
.md-body { font-size: 15.5px; line-height: 1.85; color: var(--ink-700); margin-top: 26px; word-wrap: break-word; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { color: var(--ink-900); font-weight: 700; line-height: 1.4; }
.md-body h1 { font-size: 23px; margin: 30px 0 14px; }
.md-body h2 { font-size: 20px; margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--blue-500); }
.md-body h3 { font-size: 17px; margin: 24px 0 10px; }
.md-body h4 { font-size: 15.5px; margin: 20px 0 8px; }
.md-body p { margin: 0 0 16px; }
.md-body ul, .md-body ol { margin: 0 0 16px; padding-left: 24px; }
.md-body li { margin-bottom: 7px; }
.md-body a { color: var(--blue-600); text-decoration: none; border-bottom: 1px solid rgba(37,99,235,.28); }
.md-body a:hover { border-bottom-color: var(--blue-600); }
.md-body strong { color: var(--ink-900); font-weight: 700; }
.md-body code {
  background: var(--paper-2); padding: 2px 6px; border-radius: 5px;
  font-size: .9em; font-family: ui-monospace, Menlo, Consolas, monospace;
  color: #B45309;
}
.md-pre {
  background: var(--space-800); border-radius: 11px; padding: 18px 20px;
  overflow-x: auto; margin: 0 0 18px;
}
.md-pre code { background: none; color: #C9D6F5; padding: 0; font-size: 13px; line-height: 1.7; }
.md-body blockquote {
  margin: 0 0 18px; padding: 14px 20px;
  border-left: 4px solid var(--cyan-400);
  background: rgba(34,211,238,.06); border-radius: 0 10px 10px 0;
}
.md-body blockquote p { margin: 0 0 8px; color: var(--ink-700); }
.md-body blockquote p:last-child { margin-bottom: 0; }
.md-body hr { border: 0; border-top: 1px solid var(--paper-2); margin: 28px 0; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 880px) {
  .nav-user .nav-uname { display: none; }
  .nav-auth { gap: 6px; }
}
@media (max-width: 640px) {
  .auth-card { padding: 26px 20px 20px; border-radius: 14px; }
  .auth-title { font-size: 22px; }
  .auth-wrap { padding: 104px 0 64px; }
  .ct-article { padding: 26px 20px; border-radius: 13px; }
  .ct-title { font-size: 23px; }
  .ct-h1 { font-size: 27px; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-toolbar { flex-direction: column; align-items: stretch; }
  .ct-search-input { flex: 1; min-width: 0; }
  .md-body { font-size: 15px; }
}

/* ================================================================
 * V4 诊断结果面板：双指标 / 因果链 / 证据链
 * ================================================================ */
.v4-card {
  margin-top: 14px;
  padding: 14px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,.07), rgba(34,211,238,.045));
  border: 1px solid rgba(59,130,246,.16);
}
.v4-head {
  font-size: 12.5px; font-weight: 700; color: var(--ink-900);
  letter-spacing: .02em; margin-bottom: 11px;
  display: flex; align-items: center; justify-content: space-between;
}
.v4-ver {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(59,130,246,.14); color: var(--blue-600);
}
.v4-rows { display: flex; flex-direction: column; gap: 8px; }
.v4-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 12.5px;
}
.v4-k { color: var(--ink-500); display: flex; flex-direction: column; line-height: 1.35; }
.v4-k em { font-style: normal; font-size: 10.5px; color: var(--ink-400); }
.v4-v { font-weight: 700; color: var(--ink-900); white-space: nowrap; font-size: 13px; }
.v4-v.good { color: #059669; }
.v4-v.mid  { color: #B45309; }
.v4-v.bad  { color: #DC2626; }
.v4-v.grade-a { color: #059669; }
.v4-v.grade-b { color: #2563EB; }
.v4-v.grade-c { color: #B45309; }
.v4-v.grade-d { color: #DC2626; }
.v4-note {
  margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed rgba(59,130,246,.22);
  font-size: 11.8px; line-height: 1.65; color: var(--ink-500);
}

/* 因果链 */
.chain-box {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(245,158,11,.055);
  border: 1px solid rgba(245,158,11,.20);
}
.cb-head {
  font-size: 12.5px; font-weight: 700; color: var(--ink-900);
  margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between;
}
.cb-ver {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(245,158,11,.18); color: #B45309;
}
.cb-row {
  font-size: 12px; line-height: 1.7; color: var(--ink-700);
  padding: 5px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
}
.cb-row + .cb-row { border-top: 1px solid rgba(245,158,11,.13); }
.cb-tag {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(11,16,32,.06); color: var(--ink-500);
}
.cb-tag.ok   { background: rgba(16,185,129,.15); color: #047857; }
.cb-tag.warn { background: rgba(239,68,68,.13);  color: #B91C1C; }
.cb-score { font-size: 11.5px; color: var(--ink-400); }

/* 证据链四层 */
.cb-ev {
  margin-top: 11px; padding-top: 11px;
  border-top: 1px dashed rgba(245,158,11,.25);
}
.cb-ev-head { font-size: 12px; color: var(--ink-700); margin-bottom: 9px; }
.cb-ev-bars { display: flex; flex-direction: column; gap: 6px; }
.cb-ev-item { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.cb-ev-l { width: 30px; color: var(--ink-500); flex-shrink: 0; }
.cb-ev-bar {
  flex: 1; height: 6px; border-radius: 999px;
  background: rgba(11,16,32,.08); overflow: hidden;
}
.cb-ev-bar i { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.cb-ev-v { width: 24px; text-align: right; color: var(--ink-500); flex-shrink: 0; }
.cb-ev-hint { margin-top: 9px; font-size: 11.5px; line-height: 1.6; color: var(--ink-500); }

@media (max-width: 640px) {
  .v4-row { font-size: 12px; }
  .cb-row { font-size: 11.5px; }
}

/* ================================================================
 * 工具包页 · 已上线资源（实时）
 * ================================================================ */
.tk-live { display: flex; flex-direction: column; gap: 26px; }
.tk-loading, .tk-empty {
  text-align: center; padding: 36px 20px; color: var(--ink-500); font-size: 14px;
  background: #fff; border-radius: 14px; border: 1px dashed var(--ink-300);
}
.tk-empty a { color: var(--blue-600); font-weight: 600; }

.tk-group { display: flex; flex-direction: column; gap: 18px; }
.tk-group-head {
  display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(59,130,246,.16);
}
.tk-group-head h3 { font-size: 19px; font-weight: 800; color: var(--ink-900); margin: 0; }
.tk-count { font-size: 12.5px; color: var(--ink-400); }

.tk-type-block { display: flex; flex-direction: column; gap: 11px; }
.tk-type-head { display: flex; align-items: center; gap: 8px; }
.tk-type-badge {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--grad-prime); color: #fff;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800;
}
.tk-type-name { font-size: 14px; font-weight: 700; color: var(--ink-700); }
.tk-type-n { font-size: 12px; color: var(--ink-400); }

.tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: 14px; }
.tk-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px 16px 14px;
  background: #fff; border-radius: 13px;
  border: 1px solid rgba(11,16,32,.07);
  box-shadow: 0 3px 14px rgba(11,16,32,.045);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tk-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(11,16,32,.10); border-color: rgba(59,130,246,.2); }
.tk-card.locked { background: var(--paper-2); }
.tk-card.locked .tk-name { color: var(--ink-500); }

.tk-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk-code { font-size: 11.5px; color: var(--ink-400); font-weight: 600; }
.tk-type {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(59,130,246,.12); color: #1D4ED8;
}
.tk-free {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(16,185,129,.14); color: #047857;
}
.tk-name { font-size: 15px; font-weight: 700; color: var(--ink-900); margin: 2px 0 0; line-height: 1.45; }
.tk-scene { font-size: 12px; color: var(--ink-500); margin: 0; }
.tk-desc {
  font-size: 12.5px; color: var(--ink-500); line-height: 1.65; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.tk-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--paper-2); margin-top: auto;
}
.tk-file {
  font-size: 11.5px; color: var(--ink-400); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-dl {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--blue-600);
  text-decoration: none; padding: 4px 10px; border-radius: 7px;
  background: rgba(59,130,246,.09); transition: background .16s;
}
.tk-dl:hover { background: rgba(59,130,246,.18); }
.tk-lock, .tk-soon { flex-shrink: 0; font-size: 11.5px; color: var(--ink-400); }

.tk-live-foot {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 30px; flex-wrap: wrap;
}
.tk-note { text-align: center; font-size: 12.5px; color: var(--ink-400); margin: 14px 0 0; }
.tk-note a { color: var(--blue-600); font-weight: 600; }

@media (max-width: 640px) {
  .tk-cards { grid-template-columns: 1fr; }
}

/* ================================================================
 * Markdown 表格（内容页正文）
 * ================================================================ */
.md-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--paper-2);
  border-radius: 11px;
}
.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}
.md-table th {
  background: var(--paper-2);
  color: var(--ink-900);
  font-weight: 700;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1.5px solid rgba(59,130,246,.16);
  white-space: nowrap;
}
.md-table td {
  padding: 10px 14px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--paper-2);
  line-height: 1.65;
}
.md-table tbody tr:last-child td { border-bottom: 0; }
.md-table tbody tr:hover { background: rgba(59,130,246,.035); }
.md-table strong { color: var(--ink-900); }

/* ================================================================
 * 法务页面（隐私政策 / 用户协议 / 退款政策 / 免责声明）
 * 深色页头 + 浅色正文卡（长文阅读优先），与内容页保持同一套设计语言
 * ================================================================ */
.legal-head {
  position: relative; overflow: hidden;
  padding: 132px 0 46px;
  background: var(--space-800); color: #E8EEFF;
}
.legal-head::before { content: ''; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.legal-head > .container { position: relative; z-index: 1; }
.legal-eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  background: rgba(34, 211, 238, .14); color: var(--cyan-400);
  border: 1px solid rgba(34, 211, 238, .26); margin-bottom: 16px;
}
.legal-h1 { font-size: 34px; font-weight: 800; color: #fff; margin: 0 0 12px; letter-spacing: -.02em; }
.legal-lead { font-size: 15px; color: #A9B6DE; max-width: 780px; line-height: 1.8; margin: 0; }
.legal-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: #8794BA; }
.legal-meta b { color: #C3CEEA; font-weight: 600; }

.legal-main { padding: 48px 0 88px; background: var(--paper); }
.legal-layout { display: grid; grid-template-columns: 236px 1fr; gap: 40px; align-items: start; }

/* 左侧目录（桌面端吸顶） */
.legal-toc {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid rgba(11, 16, 32, .07);
  border-radius: 14px; padding: 20px 18px; box-shadow: var(--shadow-sm);
}
.legal-toc h4 {
  font-size: 12px; color: var(--ink-400); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px;
}
.legal-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.legal-toc li { counter-increment: toc; margin-bottom: 2px; }
.legal-toc a {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-500); text-decoration: none; line-height: 1.5;
}
.legal-toc a::before { content: counter(toc) ". "; color: var(--ink-300); }
.legal-toc a:hover { background: rgba(59, 130, 246, .07); color: var(--blue-600); }

/* 正文 */
.legal-doc {
  background: #fff; border: 1px solid rgba(11, 16, 32, .06); border-radius: 16px;
  padding: 42px 46px 50px; box-shadow: 0 6px 28px rgba(11, 16, 32, .05);
}
.legal-doc h2 {
  font-size: 19px; font-weight: 700; color: var(--ink-900);
  margin: 36px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--blue-500); line-height: 1.45;
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { font-size: 15.5px; font-weight: 700; color: var(--ink-900); margin: 24px 0 10px; }
.legal-doc p { font-size: 14.5px; line-height: 1.9; color: var(--ink-700); margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 22px; }
.legal-doc ul { list-style: disc; }
.legal-doc ol { list-style: decimal; }
.legal-doc li { font-size: 14.5px; line-height: 1.9; color: var(--ink-700); margin-bottom: 7px; }
.legal-doc li::marker { color: var(--ink-400); }
.legal-doc strong { color: var(--ink-900); font-weight: 700; }
.legal-doc a { color: var(--blue-600); text-decoration: none; border-bottom: 1px solid rgba(37, 99, 235, .28); }
.legal-doc a:hover { border-bottom-color: var(--blue-600); }
.legal-doc code {
  background: var(--paper-2); padding: 2px 6px; border-radius: 5px;
  font-size: .9em; font-family: var(--font-mono); color: #B45309;
}
.legal-doc hr { border: 0; border-top: 1px solid var(--paper-2); margin: 32px 0; }

/* 重点提示块 */
.legal-callout { margin: 0 0 18px; padding: 15px 18px; border-radius: 11px; font-size: 14.5px; line-height: 1.85; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout.warn   { background: rgba(245, 158, 11, .09); border: 1px solid rgba(245, 158, 11, .28); color: #7C4A03; }
.legal-callout.info   { background: rgba(59, 130, 246, .07); border: 1px solid rgba(59, 130, 246, .20); color: #1E40AF; }
.legal-callout.danger { background: rgba(239, 68, 68, .07); border: 1px solid rgba(239, 68, 68, .22); color: #991B1B; }
.legal-callout.ok     { background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .25); color: #065F46; }
.legal-callout strong { color: inherit; }

/* 待填写占位符 —— 交付时必须在页面上「一眼看得见」，避免忘记替换就上线 */
.tbd {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  background: rgba(245, 158, 11, .16); color: #92400E;
  font-weight: 600; font-size: .94em;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .38);
}

/* 表格 */
.legal-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 580px; }
.legal-table th, .legal-table td {
  border: 1px solid var(--paper-2); padding: 10px 12px;
  text-align: left; vertical-align: top; line-height: 1.7;
}
.legal-table th { background: var(--paper); color: var(--ink-900); font-weight: 700; white-space: nowrap; }
.legal-table td { color: var(--ink-700); }

/* 文档结尾签署区 */
.legal-sign { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--paper-2); font-size: 14px; color: var(--ink-500); line-height: 1.9; }
.legal-sign b { color: var(--ink-900); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 22px; }
  .legal-toc { position: static; }
  .legal-head { padding: 108px 0 34px; }
  .legal-h1 { font-size: 26px; }
  .legal-lead { font-size: 14px; }
  .legal-doc { padding: 26px 20px 34px; border-radius: 13px; }
  .legal-doc h2 { font-size: 17.5px; }
  .legal-doc p, .legal-doc li { font-size: 14px; }
}

/* ================================================================
 * 页脚合规模块（全站统一）
 * ================================================================ */
.footer-legal {
  margin-top: 10px; padding: 26px 0 2px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.footer-legal-links a { font-size: 13px; color: #A9B6DE; text-decoration: none; padding: 3px 2px; }
.footer-legal-links a:hover { color: var(--cyan-400); }
.footer-legal-links .sep { color: #3B4670; font-size: 12px; }
.footer-legal-note { margin-top: 12px; font-size: 12px; line-height: 1.9; color: #7C8AB4; }
.footer-legal-note b { color: #A9B6DE; font-weight: 600; }
.footer-legal-note .tbd { background: rgba(245, 158, 11, .22); color: #FCD34D; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .42); }

/* ================================================================
 * 我的报告页（my.html）
 * ================================================================ */
.my-head { padding: 116px 0 40px; background: var(--grad-hero), var(--paper); }
.my-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.my-h1 { font-size: 32px; font-weight: 800; color: var(--ink-900); margin: 10px 0 10px; letter-spacing: -.02em; }
.my-lead { font-size: 15px; color: var(--ink-500); margin: 0; max-width: 640px; line-height: 1.75; }
.my-main { padding: 34px 0 80px; background: var(--paper); min-height: 46vh; }

/* 报告卡片 */
.rep-list { display: flex; flex-direction: column; gap: 12px; }
.rep-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 22px; background: #fff; border-radius: 14px;
  border: 1px solid rgba(11, 16, 32, .07); box-shadow: 0 2px 12px rgba(11, 16, 32, .04);
  cursor: pointer; text-decoration: none; color: inherit; text-align: left; width: 100%;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.rep-item:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 16, 32, .10); border-color: rgba(59, 130, 246, .3); }
.rep-score { text-align: center; }
.rep-score b { display: block; font-size: 27px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.rep-score span { font-size: 11.5px; color: var(--ink-400); }
.rep-meta { min-width: 0; }
.rep-code { font-size: 13px; font-weight: 700; color: var(--ink-900); font-family: var(--font-mono); letter-spacing: -.01em; }
.rep-sub { font-size: 13px; color: var(--ink-500); margin-top: 5px; line-height: 1.6; }
.rep-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rep-go { font-size: 13px; font-weight: 700; color: var(--blue-600); white-space: nowrap; }

/* 报告详情 */
.rep-detail { background: #fff; border: 1px solid rgba(11, 16, 32, .06); border-radius: 16px; padding: 34px 38px 40px; box-shadow: 0 6px 28px rgba(11, 16, 32, .05); }
.rep-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--paper-2); }
.rep-detail-code { font-size: 13px; font-family: var(--font-mono); color: var(--ink-400); }
.rep-detail-h { font-size: 24px; font-weight: 800; color: var(--ink-900); margin: 6px 0 8px; letter-spacing: -.02em; }
.rep-ai-note {
  margin-top: 6px; font-size: 12.5px; color: var(--ink-500); line-height: 1.7;
  background: rgba(59, 130, 246, .06); border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 9px; padding: 10px 13px;
}

.rep-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 24px 0 6px; }
.rep-kpi { padding: 16px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--paper-2); }
.rep-kpi .k { font-size: 12.5px; color: var(--ink-500); margin-bottom: 7px; }
.rep-kpi .v { font-size: 22px; font-weight: 800; color: var(--ink-900); line-height: 1.2; letter-spacing: -.02em; }
.rep-kpi .v small { font-size: 13px; font-weight: 600; color: var(--ink-400); }
.rep-kpi .d { font-size: 12px; color: var(--ink-400); margin-top: 5px; line-height: 1.55; }

.rep-block { margin-top: 28px; }
.rep-block h3 { font-size: 16.5px; font-weight: 700; color: var(--ink-900); margin: 0 0 14px; padding-left: 11px; border-left: 4px solid var(--blue-500); line-height: 1.4; }

/* 六维条形 */
.dim-rows { display: flex; flex-direction: column; gap: 11px; }
.dim-row { display: grid; grid-template-columns: 92px 1fr 46px; gap: 12px; align-items: center; }
.dim-name { font-size: 13px; color: var(--ink-700); font-weight: 600; }
.dim-track { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.dim-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.dim-val { font-size: 13px; font-weight: 700; color: var(--ink-900); text-align: right; font-variant-numeric: tabular-nums; }

.rep-note { font-size: 13.5px; color: var(--ink-500); line-height: 1.8; margin: 0; }
.rep-empty { text-align: center; padding: 72px 20px; color: var(--ink-500); }
.rep-empty-ico { font-size: 42px; margin-bottom: 14px; }
.rep-loading { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.rep-back { display: inline-block; font-size: 13.5px; color: var(--ink-500); text-decoration: none; margin-bottom: 18px; }
.rep-back:hover { color: var(--blue-600); }

@media (max-width: 720px) {
  .my-head { padding: 96px 0 30px; }
  .my-h1 { font-size: 25px; }
  .rep-item { grid-template-columns: 74px 1fr; gap: 14px; padding: 15px 16px; }
  .rep-go { display: none; }
  .rep-detail { padding: 24px 20px 30px; border-radius: 13px; }
  .rep-detail-h { font-size: 20px; }
  .dim-row { grid-template-columns: 78px 1fr 42px; gap: 9px; }
}

/* ================================================================
 * 算法生成内容标识（合规）
 * 《人工智能生成合成内容标识办法》要求对 AI/算法生成内容作显著标识
 * ================================================================ */
.ai-disclaimer {
  margin-top: 18px; padding: 12px 14px;
  font-size: 12px; line-height: 1.75; color: var(--ink-500);
  background: rgba(59, 130, 246, .05);
  border: 1px solid rgba(59, 130, 246, .16);
  border-radius: 10px;
}
.ai-disclaimer a { color: var(--blue-600); text-decoration: none; font-weight: 600; }
.ai-disclaimer a:hover { text-decoration: underline; }
.ai-tag {
  display: inline-block; margin-right: 6px; padding: 1px 8px;
  border-radius: 5px; font-size: 11px; font-weight: 700;
  background: rgba(59, 130, 246, .13); color: var(--blue-600);
  vertical-align: 1px;
}

/* ================================================================
 * 登录 / 注册页的「同意条款」（合规）
 * 复选框不得默认勾选；未勾选时前端抖动提示 + 服务端强制校验
 * ================================================================ */
.auth-consent {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer; transition: border-color .18s, background .18s;
}
.auth-consent:hover { border-color: rgba(34, 211, 238, .45); background: rgba(255, 255, 255, .07); }
.auth-consent input[type="checkbox"] {
  width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--blue-500); cursor: pointer;
}
.auth-consent > span { font-size: 12.5px; line-height: 1.75; color: #A9B6DE; }
.auth-consent a { color: var(--cyan-400); text-decoration: none; font-weight: 600; }
.auth-consent a:hover { text-decoration: underline; }

/* 未勾选时的抖动提示（轻量、不打断） */
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.auth-consent.shake { animation: authShake .5s ease; border-color: rgba(239, 68, 68, .6); }

/* 登录表单下方的同意提示语（登录不再重复要求勾选 —— 注册时已取得同意） */
.auth-consent-note {
  margin: 0; font-size: 12px; line-height: 1.7;
  color: #6C7AA0; text-align: center;
}
.auth-consent-note a { color: #8794BA; text-decoration: none; }
.auth-consent-note a:hover { color: var(--cyan-400); text-decoration: underline; }

/* ================================================================
 * 页脚「联系我们」（保持可见的客服信息）
 * ================================================================ */
.footer-contact {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 22px; margin-top: 14px;
  font-size: 12.5px; line-height: 1.9; color: #8A96BC;
}
.footer-contact b { color: #C3CEEA; font-weight: 600; }
.footer-contact .fc-item { display: inline-flex; align-items: baseline; gap: 7px; }
.footer-contact em { font-style: normal; color: #6C7AA0; }
.footer-contact a { color: #C3CEEA; text-decoration: none; border-bottom: 1px solid rgba(195, 206, 234, .3); }
.footer-contact a:hover { color: var(--cyan-400); border-bottom-color: var(--cyan-400); }
.footer-contact .fc-item > span { color: #C3CEEA; }
@media (max-width: 640px) {
  .footer-contact { gap: 4px 16px; }
}
