/* Synapse Note 复利笔记 官网样式 2.3 (Mobile Navigation & High-Contrast Polish)
   深色沉浸感 + 浅色高对比度优化，移动端自适应防挤压，发光突触与高质感微交互
   明暗双套：原生暗黑优先 + 精细浅色调，全面通过 WCAG 对比度标准 */

:root {
  /* 默认暗黑主题 */
  --bg: #060b08;
  --bg2: #0b1410;
  --bg-card: rgba(14, 25, 20, 0.75);
  --bg-card-hover: rgba(20, 36, 29, 0.9);
  --ink: #e8f5ee;
  --ink-heading: #ffffff;
  --sub: #8ea89a;
  --sub-light: #5f8072;
  --card: rgba(14, 25, 20, 0.75);
  --line: rgba(46, 230, 160, 0.16);
  --line-bright: rgba(46, 230, 160, 0.45);
  --brand: #2ee6a0;
  --brand-deep: #10c877;
  --brand-glow: rgba(46, 230, 160, 0.35);
  --brand-subtle: rgba(46, 230, 160, 0.08);
  --gradient-text: linear-gradient(135deg, #ffffff 15%, #2ee6a0 100%);
  --accent-cyan: #38ef7d;
  --accent-purple: #a78bfa;
  --accent-amber: #fbbf24;
  --window-header-bg: rgba(0, 0, 0, 0.35);
  --thinking-box-bg: rgba(0, 0, 0, 0.35);
  --thinking-header-bg: rgba(46, 230, 160, 0.05);
  --ref-pill-bg: rgba(255, 255, 255, 0.04);
  --ref-pill-color: var(--sub);
  --insight-box-bg: rgba(0, 0, 0, 0.3);
  --table-th-bg: rgba(0, 0, 0, 0.25);
  --editor-tip-bg: rgba(0, 0, 0, 0.25);
  --danger-tag-bg: rgba(239, 68, 68, 0.15);
  --danger-tag-color: #f87171;
  --danger-text: #f87171;
  --shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 24px rgba(46, 230, 160, 0.08);
  --shadow-glow: 0 0 35px rgba(46, 230, 160, 0.22);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --mono-font: "JetBrains Mono", "SF Mono", Monaco, Menlo, Consolas, monospace;
  --constellation-bg: radial-gradient(circle at 50% 50%, rgba(16, 200, 119, 0.08) 0%, rgba(5, 12, 9, 0.96) 75%);
  --constellation-border: var(--line);
  --constellation-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --constellation-badge-bg: rgba(10, 24, 18, 0.85);
  --constellation-badge-border: rgba(46, 230, 160, 0.35);
  --constellation-badge-color: #2ee6a0;
  --constellation-btn-bg: rgba(15, 30, 22, 0.85);
  --constellation-btn-border: var(--line);
  --constellation-btn-color: var(--ink);
  --constellation-tip-bg: rgba(10, 20, 15, 0.75);
  --constellation-tip-color: var(--sub);
}

/* 浅色模式系统偏好支持 */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5fbf8;
    --bg2: #eaf4ef;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-hover: #ffffff;
    --ink: #0d231a;
    --ink-heading: #051810;
    --sub: #2e4d3f;
    --sub-light: #486e5c;
    --card: #ffffff;
    --line: rgba(16, 180, 105, 0.22);
    --line-bright: rgba(16, 180, 105, 0.65);
    --brand: #0ca35e;
    --brand-deep: #077943;
    --brand-glow: rgba(12, 163, 94, 0.22);
    --brand-subtle: rgba(12, 163, 94, 0.09);
    --gradient-text: linear-gradient(135deg, #051810 10%, #0ca35e 95%);
    --accent-cyan: #088a4e;
    --window-header-bg: rgba(0, 0, 0, 0.04);
    --thinking-box-bg: rgba(12, 163, 94, 0.04);
    --thinking-header-bg: rgba(12, 163, 94, 0.08);
    --ref-pill-bg: rgba(12, 163, 94, 0.08);
    --ref-pill-color: var(--ink);
    --insight-box-bg: rgba(12, 163, 94, 0.06);
    --table-th-bg: rgba(12, 163, 94, 0.08);
    --editor-tip-bg: rgba(12, 163, 94, 0.06);
    --danger-tag-bg: rgba(220, 38, 38, 0.1);
    --danger-tag-color: #b91c1c;
    --danger-text: #b91c1c;
    --shadow: 0 16px 36px -8px rgba(10, 60, 40, 0.1);
    --shadow-glow: 0 0 25px rgba(12, 163, 94, 0.16);
    --constellation-bg: radial-gradient(circle at 50% 50%, #ffffff 0%, #edf7f2 100%);
    --constellation-border: rgba(16, 180, 105, 0.28);
    --constellation-shadow: 0 16px 36px rgba(10, 60, 40, 0.08), inset 0 1px 0 #ffffff;
    --constellation-badge-bg: rgba(255, 255, 255, 0.96);
    --constellation-badge-border: rgba(12, 163, 94, 0.35);
    --constellation-badge-color: #077943;
    --constellation-btn-bg: rgba(255, 255, 255, 0.92);
    --constellation-btn-border: rgba(16, 180, 105, 0.28);
    --constellation-btn-color: #0d231a;
    --constellation-tip-bg: rgba(255, 255, 255, 0.92);
    --constellation-tip-color: #2e4d3f;
  }
}

/* 浅色主题手动切换覆盖 */
:root[data-theme="light"] {
  --bg: #f5fbf8;
  --bg2: #eaf4ef;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --ink: #0d231a;
  --ink-heading: #051810;
  --sub: #2e4d3f;
  --sub-light: #486e5c;
  --card: #ffffff;
  --line: rgba(16, 180, 105, 0.22);
  --line-bright: rgba(16, 180, 105, 0.65);
  --brand: #0ca35e;
  --brand-deep: #077943;
  --brand-glow: rgba(12, 163, 94, 0.22);
  --brand-subtle: rgba(12, 163, 94, 0.09);
  --gradient-text: linear-gradient(135deg, #051810 10%, #0ca35e 95%);
  --accent-cyan: #088a4e;
  --window-header-bg: rgba(0, 0, 0, 0.04);
  --thinking-box-bg: rgba(12, 163, 94, 0.04);
  --thinking-header-bg: rgba(12, 163, 94, 0.08);
  --ref-pill-bg: rgba(12, 163, 94, 0.08);
  --ref-pill-color: var(--ink);
  --insight-box-bg: rgba(12, 163, 94, 0.06);
  --table-th-bg: rgba(12, 163, 94, 0.08);
  --editor-tip-bg: rgba(12, 163, 94, 0.06);
  --danger-tag-bg: rgba(220, 38, 38, 0.1);
  --danger-tag-color: #b91c1c;
  --danger-text: #b91c1c;
  --shadow: 0 16px 36px -8px rgba(10, 60, 40, 0.1);
  --shadow-glow: 0 0 25px rgba(12, 163, 94, 0.16);
  --constellation-bg: radial-gradient(circle at 50% 50%, #ffffff 0%, #edf7f2 100%);
  --constellation-border: rgba(16, 180, 105, 0.28);
  --constellation-shadow: 0 16px 36px rgba(10, 60, 40, 0.08), inset 0 1px 0 #ffffff;
  --constellation-badge-bg: rgba(255, 255, 255, 0.96);
  --constellation-badge-border: rgba(12, 163, 94, 0.35);
  --constellation-badge-color: #077943;
  --constellation-btn-bg: rgba(255, 255, 255, 0.92);
  --constellation-btn-border: rgba(16, 180, 105, 0.28);
  --constellation-btn-color: #0d231a;
  --constellation-tip-bg: rgba(255, 255, 255, 0.92);
  --constellation-tip-color: #2e4d3f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(46, 230, 160, 0.09) 0%, transparent 60%),
    radial-gradient(rgba(46, 230, 160, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px;
  background-attachment: fixed;
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(12, 163, 94, 0.08) 0%, transparent 60%),
    radial-gradient(rgba(12, 163, 94, 0.05) 1px, transparent 1px);
}

a { color: var(--brand-deep); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--brand); text-decoration: none; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; }
section { padding: 96px 0; position: relative; }

/* 顶栏 Navigation (全面强化移动端防折行防挤压) */
nav {
  position: sticky; top: 0; z-index: 100;
  width: 100%;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}
nav > .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
nav .brand {
  font-weight: 800; font-size: 18px; color: var(--ink-heading);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; flex-shrink: 0;
}
nav .brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 12px var(--brand-glow); flex-shrink: 0; }
nav .nav-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; margin-left: auto;
}
nav a {
  font-size: 14px; font-weight: 600; color: var(--sub);
  padding: 6px 12px; border-radius: 8px;
  white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center;
}
nav a:hover { color: var(--ink-heading); background: var(--brand-subtle); }
nav .btn-nav {
  background: var(--brand); color: #041a12 !important; font-weight: 750;
  padding: 8px 18px; border-radius: 999px; box-shadow: 0 2px 14px var(--brand-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
}
nav .btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--brand-glow); }

/* 主视觉 Hero 区域与突触网络 Canvas */
.hero {
  position: relative;
  padding: 100px 0 85px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
#synapse-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: auto; z-index: 1; opacity: 0.95;
}
.hero-content {
  position: relative; z-index: 2; pointer-events: none; max-width: 840px;
}
.hero-content a, .hero-content button, .hero-content .cta {
  pointer-events: auto;
}

/* 呼吸徽章 Pill Badge */
.pulse-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--brand-subtle);
  border: 1px solid var(--line-bright);
  color: var(--brand-deep); font-size: 13.5px; font-weight: 750;
  letter-spacing: 0.5px; margin-bottom: 24px;
  box-shadow: 0 0 20px var(--brand-subtle);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  animation: pulseAnim 2s infinite ease-in-out;
}
@keyframes pulseAnim {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.25; letter-spacing: -1px;
  color: var(--ink-heading); font-weight: 850;
  margin-bottom: 22px;
}
.hero h1 .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  white-space: nowrap;
}
.hero .lead {
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--sub); line-height: 1.7; max-width: 660px; margin-bottom: 34px;
}

/* 酷炫流光 CTA 按钮 */
.cta-group { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; background: linear-gradient(135deg, var(--brand) 0%, var(--accent-cyan) 100%);
  color: #031910; font-weight: 800; font-size: 15.5px;
  border-radius: 999px; box-shadow: 0 4px 24px var(--brand-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden; white-space: nowrap;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--brand-glow);
  color: #02120b; text-decoration: none;
}
.cta::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); animation: shimmer 4s infinite ease-in-out;
}
@keyframes shimmer {
  0% { left: -100%; }
  30%, 100% { left: 160%; }
}
.cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 14.5px;
  backdrop-filter: blur(10px); transition: all 0.2s ease; white-space: nowrap;
}
.cta-secondary:hover {
  border-color: var(--line-bright); background: var(--bg-card-hover);
  color: var(--brand-deep); transform: translateY(-2px);
}

.hero-trust-badges {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub);
}
.trust-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.trust-item strong { color: var(--ink-heading); }

/* 玻璃拟态面板通用 */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.glass-panel:hover {
  border-color: var(--line-bright);
}

/* 核心特性卡片网格 */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: var(--shadow);
}
.card .icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-subtle); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px; color: var(--brand);
}
.card h3 { font-size: 19px; color: var(--ink-heading); margin-bottom: 10px; font-weight: 750; }
.card p { color: var(--sub); font-size: 15px; line-height: 1.7; }

/* 标题通用 */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
h2 {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--ink-heading); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-lead { color: var(--sub); font-size: 17px; }

/* ── 交互演示舱 1: 双链突触互动演练舱 (Interactive Bidirectional Links) ── */
.showcase-container {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px;
  margin-top: 36px;
}
@media (max-width: 860px) {
  .showcase-container { grid-template-columns: 1fr; }
}
.mockup-window {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.window-header {
  height: 40px; background: var(--window-header-bg);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 16px; gap: 8px;
}
.window-dot { width: 10px; height: 10px; border-radius: 50%; }
.window-dot.r { background: #ff5f56; }
.window-dot.y { background: #ffbd2e; }
.window-dot.g { background: #27c93f; }
.window-title { font-size: 12px; font-family: var(--mono-font); color: var(--sub); margin-left: 8px; }
.editor-body { padding: 24px; font-size: 15px; line-height: 1.8; }
.editor-body h4 { font-size: 18px; color: var(--ink-heading); margin-bottom: 14px; }
.editor-tip {
  margin-top: 20px; padding: 12px 14px;
  background: var(--editor-tip-bg);
  border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--sub);
}

/* 双链高光互动按钮 */
.wiki-link {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--brand-subtle);
  border: 1px solid var(--line-bright);
  color: var(--brand-deep); font-weight: 750; cursor: pointer;
  transition: all 0.2s ease; margin: 0 2px;
}
.wiki-link:hover, .wiki-link.active {
  background: var(--brand); color: #021a10;
  box-shadow: 0 0 16px var(--brand-glow);
  transform: translateY(-1px);
}

/* 突触雷达面板 */
.radar-panel {
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.radar-meta-badge {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-subtle); padding: 4px 10px; border-radius: 6px;
  margin-bottom: 14px;
}
.radar-card-preview {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-top: 14px;
  min-height: 180px; transition: all 0.3s ease;
}
.radar-card-preview h5 { font-size: 16px; color: var(--ink-heading); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.radar-card-preview p { font-size: 14px; color: var(--sub); line-height: 1.65; }
.radar-backlinks-list { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.radar-backlinks-list .item { font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.radar-backlinks-list .item strong { color: var(--brand-deep); }

/* ── 交互演示舱 2: 白盒 AI 思考流 (White-Box Reasoning) ── */
.ai-console {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); position: relative;
}
.chat-bubble-user {
  background: var(--brand-subtle); border: 1px solid var(--line);
  border-radius: 14px 14px 2px 14px; padding: 16px 20px;
  color: var(--ink-heading); font-weight: 600; margin-bottom: 22px;
  display: flex; gap: 12px; align-items: flex-start;
}
.chat-bubble-ai {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px 14px 14px 2px; padding: 22px;
}
.ai-hybrid-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--brand-deep); font-family: var(--mono-font);
  background: var(--brand-subtle); padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); margin-bottom: 16px; font-weight: 700;
}

/* 白盒思考流折叠舱 */
.thinking-box {
  background: var(--thinking-box-bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 18px; overflow: hidden;
}
.thinking-header {
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; background: var(--thinking-header-bg);
  font-size: 13px; font-weight: 750; color: var(--brand-deep);
  user-select: none; transition: background 0.2s ease;
}
.thinking-header:hover { background: var(--brand-subtle); }
.thinking-chevron { transition: transform 0.3s ease; }
.thinking-box.collapsed .thinking-chevron { transform: rotate(-90deg); }
.thinking-body {
  padding: 16px; font-size: 13.5px; color: var(--sub);
  line-height: 1.7; font-family: var(--mono-font);
  border-top: 1px solid var(--line);
  transition: all 0.3s ease;
}
.thinking-box.collapsed .thinking-body { display: none; }
.thinking-step { margin-bottom: 8px; display: flex; gap: 8px; }
.thinking-step .step-idx { color: var(--brand-deep); font-weight: 750; }

.ref-quotes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ref-pill {
  font-size: 12px; background: var(--ref-pill-bg);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px;
  color: var(--ref-pill-color); cursor: pointer; transition: all 0.2s ease; font-weight: 600;
}
.ref-pill:hover { border-color: var(--brand-deep); color: var(--brand-deep); }

/* ── 交互演示舱 3: 十维研报矩阵 (10D Research Matrix) ── */
.report-tabs-nav {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: thin; margin-bottom: 24px;
}
.report-tabs-nav::-webkit-scrollbar { height: 4px; }
.report-tabs-nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.report-pill-btn {
  white-space: nowrap; padding: 10px 18px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--sub); font-size: 14px; font-weight: 650; cursor: pointer;
  transition: all 0.2s ease;
}
.report-pill-btn:hover { color: var(--ink-heading); border-color: var(--line-bright); }
.report-pill-btn.active {
  background: var(--brand); color: #021c12; font-weight: 800;
  border-color: var(--brand); box-shadow: 0 0 16px var(--brand-glow);
}
.report-card-view {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; min-height: 260px;
  box-shadow: var(--shadow); transition: opacity 0.3s ease, transform 0.3s ease;
}
.report-dim-badge {
  color: var(--brand-deep); font-family: var(--mono-font); font-size: 13px;
  font-weight: 750; margin-bottom: 8px; display: block;
}
.report-card-view h4 { font-size: 22px; color: var(--ink-heading); margin-bottom: 14px; }
.report-card-view .dim-desc { font-size: 16px; color: var(--sub); margin-bottom: 20px; line-height: 1.7; }
.report-card-view .insight-box {
  background: var(--insight-box-bg); border-left: 3px solid var(--brand);
  padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 14.5px; color: var(--ink);
}

/* ── 交互演示舱 4: LaTeX 数学公式高保真看板 (LaTeX Math Playground) ── */
.math-playground {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.math-selector { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.math-tab {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--sub);
  cursor: pointer; transition: all 0.2s ease;
}
.math-tab.active {
  background: var(--brand-subtle); border-color: var(--brand); color: var(--brand-deep); font-weight: 750;
}
.math-display-stage {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 24px; text-align: center;
  margin-bottom: 20px; min-height: 140px; display: flex; align-items: center; justify-content: center;
  overflow-x: auto;
}
.math-equation {
  font-size: clamp(20px, 3.2vw, 32px); color: var(--ink-heading);
  letter-spacing: 0.5px;
}
.katex-display { margin: 0 !important; }
.katex { font-size: 1.25em !important; color: var(--ink-heading) !important; }

.math-actions {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.export-tags { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--brand-deep); font-weight: 650; }
.export-tag-item { display: inline-flex; align-items: center; gap: 5px; }

/* ── 交互演示舱 5: 红队对抗质询沙盘 (Red-Teaming Sandbox) ── */
.sandbox-deck {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px;
}
@media (max-width: 760px) {
  .sandbox-deck { grid-template-columns: 1fr; }
}
.sandbox-column {
  border-radius: var(--radius); padding: 24px;
  background: var(--bg2); border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.sandbox-column.bad {
  border-color: rgba(239, 68, 68, 0.3);
  background: var(--danger-tag-bg);
}
.sandbox-column.good {
  border-color: var(--line-bright);
  background: var(--brand-subtle);
  box-shadow: 0 0 24px var(--brand-subtle);
}
.sandbox-tag {
  display: inline-block; font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.sandbox-column.bad .sandbox-tag { background: var(--danger-tag-bg); color: var(--danger-tag-color); }
.sandbox-column.good .sandbox-tag { background: var(--brand-subtle); color: var(--brand-deep); }
.sandbox-alert-bad { margin-top: 14px; font-size: 13px; color: var(--danger-text); font-weight: 650; }
.sandbox-alert-good { margin-top: 14px; font-size: 13px; color: var(--brand-deep); font-weight: 700; }

/* 表格重构 */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg-card);
  box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; background: var(--table-th-bg); color: var(--ink-heading); font-size: 16px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--brand-subtle); }
.check-icon { color: var(--brand-deep); font-weight: 900; margin-right: 6px; }
.cross-icon { color: var(--danger-text); font-weight: 800; margin-right: 6px; }

/* FAQ 手风琴升级 */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
  transition: all 0.25s ease;
}
.faq details:hover { border-color: var(--line-bright); }
.faq details[open] { border-color: var(--line-bright); background: var(--bg-card-hover); box-shadow: var(--shadow); }
.faq summary {
  font-weight: 750; font-size: 17px; color: var(--ink-heading);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; font-size: 18px; color: var(--brand-deep); transition: transform 0.25s ease;
}
.faq details[open] summary::after { content: "✕"; transform: rotate(90deg); color: var(--sub); }
.faq p { color: var(--sub); margin-top: 14px; line-height: 1.75; font-size: 15.5px; }

/* 长文与开发日记文章页兼容 */
.prose { padding: 48px 0 72px; max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 14px; color: var(--ink-heading); }
.prose h2 { margin: 34px 0 10px; color: var(--ink-heading); }
.prose h3 { margin: 24px 0 8px; font-size: 18px; color: var(--ink-heading); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 14px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose blockquote {
  border-left: 3px solid var(--brand); padding-left: 14px; color: var(--sub);
  background: var(--brand-subtle); padding: 12px 16px; border-radius: 0 8px 8px 0;
}
.prose code {
  background: var(--bg2); padding: 2px 6px; border-radius: 6px;
  font-size: .92em; font-family: var(--mono-font); color: var(--brand-deep);
}
.prose pre {
  background: var(--bg2); padding: 18px; border-radius: 12px; overflow-x: auto;
  border: 1px solid var(--line);
}
.prose pre code { background: none; padding: 0; color: var(--ink); }
.kicker { color: var(--brand-deep); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.lead { color: var(--sub); font-size: 17px; }
.badge {
  display: inline-block; background: var(--brand-subtle); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 12px; font-size: 12px; color: var(--brand-deep);
}
.pager { display: flex; gap: 18px; margin-top: 40px; }

/* 文章列表 (devlog.html) */
.postlist { list-style: none; padding: 0; }
.postlist li { border-bottom: 1px solid var(--line); transition: background 0.2s ease; }
.postlist li:hover { background: var(--brand-subtle); }
.postlist a { display: block; padding: 22px 14px; color: var(--ink); }
.postlist a:hover { text-decoration: none; }
.postlist a:hover strong { color: var(--brand-deep); }
.postlist .d { display: block; font-size: 13px; color: var(--sub-light); }
.postlist strong { display: block; font-size: 19px; margin: 6px 0; color: var(--ink-heading); }
.postlist .s { color: var(--sub); font-size: 15px; }

/* 页脚 */
footer {
  border-top: 1px solid var(--line); padding: 56px 0 64px;
  background: var(--bg2); color: var(--sub); font-size: 14px;
}
footer a { color: var(--sub); margin: 0 8px; }
footer a:hover { color: var(--brand-deep); }

/* 滚动显现微动画 */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── 移动端极致适配响应式 ── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 64px 0 48px; }
  .wrap { padding: 0 16px; }

  /* 顶栏防折行与紧凑优化 */
  nav > .wrap { height: 56px; gap: 8px; padding: 0 14px; }
  nav .brand { font-size: 16px; gap: 8px; }
  nav .brand img { width: 28px; height: 28px; }
  nav a { padding: 5px 8px; font-size: 13px; }
  nav .btn-nav { padding: 6px 14px; font-size: 13px; }
  .hide-sm { display: none !important; }

  /* Hero 区域移动端微调 */
  .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
  .hero .lead { font-size: 15.5px; margin-bottom: 26px; }
  .cta-group { gap: 10px; }
  .cta, .cta-secondary { padding: 12px 20px; font-size: 14px; width: 100%; justify-content: center; }
  .hero-trust-badges { gap: 12px; font-size: 12.5px; flex-direction: column; align-items: flex-start; }

  /* 卡片与表格 */
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  .report-card-view, .math-playground, .ai-console { padding: 20px; }
  th, td { padding: 12px 14px; font-size: 13.5px; }
}

@media (max-width: 420px) {
  nav > .wrap { height: 52px; gap: 6px; padding: 0 10px; }
  nav .brand span { font-size: 14.5px; }
  nav a { padding: 4px 6px; font-size: 12px; }
  nav .btn-nav { padding: 5px 12px; font-size: 12px; }
}


/* ─────────────────────────────────────────────────────────────
   3D 全景心智星网交互演练舱 (Constellation Cosmos)
   ───────────────────────────────────────────────────────────── */
.constellation-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 36px;
}
.constellation-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--constellation-border);
  background: var(--constellation-bg);
  box-shadow: var(--constellation-shadow);
  min-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.constellation-canvas {
  width: 100%;
  height: 100%;
  flex: 1;
  display: block;
  cursor: grab;
  touch-action: none;
}
.constellation-canvas:active {
  cursor: grabbing;
}
.constellation-hud-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.constellation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--constellation-badge-bg);
  border: 1px solid var(--constellation-badge-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--constellation-badge-color);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.orbit-presets {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}
.orbit-btn {
  background: var(--constellation-btn-bg);
  border: 1px solid var(--constellation-btn-border);
  color: var(--constellation-btn-color);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.orbit-btn:hover, .orbit-btn.active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #ffffff;
}
.constellation-hud-bottom {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--constellation-tip-color);
  pointer-events: none;
  background: var(--constellation-tip-bg);
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  border: 1px solid var(--constellation-border);
}

/* 控制台侧边栏 */
.constellation-telemetry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 36px var(--shadow);
}
.telemetry-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.telemetry-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-deep);
  background: var(--brand-subtle);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}
.telemetry-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-heading);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.telemetry-en {
  font-size: 13px;
  color: var(--sub);
  font-weight: 400;
}
.telemetry-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.telemetry-meta-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.telemetry-meta-k {
  font-size: 11px;
  color: var(--sub-light);
  display: block;
  margin-bottom: 3px;
}
.telemetry-meta-v {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.telemetry-links {
  margin-top: 14px;
}
.telemetry-links h5 {
  font-size: 12px;
  color: var(--sub);
  margin: 0 0 8px 0;
  font-weight: 600;
}
.synapse-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.synapse-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}
.synapse-chip:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-subtle);
  transform: translateY(-1px);
}
.telemetry-note-quote {
  background: var(--bg2);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  margin: 14px 0;
}
.telemetry-note-quote .quote-src {
  display: block;
  font-size: 11.5px;
  color: var(--sub);
  margin-top: 6px;
}
.telemetry-footer-cta {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

/* ─────────────────────────────────────────────────────────────
   方案与定价专区 (Pricing & Subscriptions)
   ───────────────────────────────────────────────────────────── */
.pricing-section {
  padding: 96px 0;
  background: var(--bg);
  position: relative;
}
.pricing-billing-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 36px;
  margin: 28px auto 44px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.billing-btn {
  background: transparent;
  border: none;
  padding: 9px 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sub);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.billing-btn.active {
  background: var(--card-bg);
  color: var(--ink-heading);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .billing-btn.active {
  background: #15261d;
  color: #2ee6a0;
  border: 1px solid rgba(46, 230, 160, 0.3);
}
.discount-pill {
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #10c877, #0ca35e);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(16, 200, 119, 0.35);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 30px var(--shadow);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px var(--shadow);
}
.pricing-card.featured {
  border-color: rgba(16, 200, 119, 0.6);
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--brand-subtle) 100%);
  box-shadow: 0 20px 52px rgba(16, 200, 119, 0.16);
  transform: scale(1.02);
  z-index: 2;
}
.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 60px rgba(16, 200, 119, 0.22);
}
.pricing-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10c877 0%, #059669 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(16, 200, 119, 0.4);
  white-space: nowrap;
}
.pricing-header h3 {
  font-size: 21px;
  color: var(--ink-heading);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-desc {
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.5;
  min-height: 40px;
  margin-bottom: 20px;
}
.pricing-amount-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 24px;
}
.pricing-amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--ink-heading);
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-currency {
  font-size: 22px;
  font-weight: 600;
}
.pricing-period {
  font-size: 14.5px;
  color: var(--sub);
  font-weight: 400;
  margin-left: 2px;
}
.pricing-subtext {
  font-size: 12.5px;
  color: var(--brand-deep);
  font-weight: 600;
  margin-top: 6px;
}
.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex: 1;
}
.pricing-features-list li {
  font-size: 13.5px;
  color: var(--ink);
  padding: 9px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
}
.pricing-features-list li:last-child {
  border-bottom: none;
}
.pricing-features-list .check {
  color: var(--brand-deep);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-features-list .dim {
  color: var(--sub-light);
}
.pricing-cta {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  box-sizing: border-box;
}
.pricing-cta-primary {
  background: var(--brand);
  color: #05140d !important;
  box-shadow: 0 8px 24px rgba(16, 200, 119, 0.35);
}
.pricing-cta-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 200, 119, 0.45);
}
.pricing-cta-secondary {
  background: var(--bg2);
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.pricing-cta-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep) !important;
  background: var(--brand-subtle);
}

.pricing-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}
.pricing-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pricing-trust-icon {
  font-size: 22px;
}
.pricing-trust-item strong {
  font-size: 14.5px;
  color: var(--ink-heading);
}
.pricing-trust-item span {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .constellation-wrapper {
    grid-template-columns: 1fr;
  }
  .constellation-viewport {
    min-height: 420px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  .pricing-trust-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}



/* ── 3D 空间剖析与全息数字孪生舱 ── */
.dissection-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 36px;
}
.dissection-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--constellation-border);
  background: radial-gradient(circle at 50% 50%, #0c1527 0%, #060913 70%, #020408 100%);
  box-shadow: var(--constellation-shadow);
  min-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dissection-canvas {
  width: 100%;
  height: 100%;
  flex: 1;
  display: block;
  cursor: grab;
  touch-action: none;
}
.dissection-canvas:active {
  cursor: grabbing;
}
.dissection-hud-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
  flex-wrap: wrap;
  gap: 8px;
}
.dissection-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--constellation-badge-bg);
  border: 1px solid var(--constellation-badge-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--constellation-badge-color);
  backdrop-filter: blur(8px);
}
.dissection-presets {
  display: flex;
  gap: 6px;
  pointer-events: auto;
  flex-wrap: wrap;
}
.dissection-btn {
  background: var(--constellation-btn-bg);
  border: 1px solid var(--constellation-btn-border);
  color: var(--constellation-btn-color);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.dissection-btn:hover, .dissection-btn.active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #ffffff;
}
.dissection-hud-bottom {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 29, 0.78);
  border: 1px solid rgba(71, 85, 105, 0.35);
  border-radius: 12px;
  padding: 8px 14px;
  backdrop-filter: blur(10px);
  z-index: 2;
  gap: 12px;
}
.dissection-slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
.dissection-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 5px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  cursor: pointer;
}
.dissection-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  cursor: pointer;
}
.slider-val {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #38bdf8;
  min-width: 32px;
}
.hud-square-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(71, 85, 105, 0.45);
  color: #f1f5f9;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hud-square-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
}

/* 右侧全息解剖控制台 */
.dissection-telemetry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 36px var(--shadow);
}
.part-num-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(229, 168, 85, 0.18);
  border: 1.5px solid #e5a855;
  color: #e5a855;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(229, 168, 85, 0.4);
}
.pro-pill-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #b45309;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 12px;
}
.dissection-annotation-box {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0;
}
.annotation-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
}
.annotation-source {
  font-size: 11px;
  font-weight: 600;
  color: var(--sub);
  margin-top: 8px;
  letter-spacing: 0.4px;
}
.dissection-pro-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.feature-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-subtle);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .dissection-wrapper {
    grid-template-columns: 1fr;
  }
  .dissection-viewport {
    min-height: 420px;
  }
}

/* ── 官方宣传片剧场 (#video) ── */
.promo-video-sec {
  padding: 72px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 25%, var(--brand-subtle) 0%, transparent 70%);
}
.video-stage {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1.5px solid var(--line-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--window-header-bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
}
.window-dots-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.window-dots-row .window-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.video-pill-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--brand-subtle);
  color: var(--brand-deep);
  border: 1px solid var(--line);
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060b08;
  overflow: hidden;
}
.promo-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #060b08;
}
.video-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--bg2) 65%, var(--card));
  border-top: 1px solid var(--line);
  justify-content: center;
}
.chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--sub);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.chapter-pill time {
  font-family: var(--mono-font);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand-deep);
  background: var(--brand-subtle);
  padding: 1px 6px;
  border-radius: 6px;
}
.chapter-pill:hover,
.chapter-pill.active {
  background: var(--brand);
  color: #031910;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--brand-glow);
}
.chapter-pill:hover time,
.chapter-pill.active time {
  background: rgba(3, 25, 16, 0.18);
  color: #031910;
}
@media (max-width: 640px) {
  .promo-video-sec { padding: 48px 0 56px; }
  .video-bar { padding: 10px 14px; }
  .video-chapters { padding: 12px 12px; gap: 6px; }
  .chapter-pill { padding: 6px 10px; font-size: 11.5px; }
}
