:root {
  /* 颜色系统 — 全站仅从此取色 */
  --color-dark: #13102D;
  --color-paper: #F7F5F3;
  --color-text: #171523;
  --color-brand: #2714EB;
  --color-accent: #89ED6E;

  /* 组件变量 */
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(23, 21, 35, 0.3);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 960px;

  /* 排版 */
  --font-heading: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── 容器 ── */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }

/* ── 页头 ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-paper);
  border-bottom: 1px solid rgba(23, 21, 35, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-text); }
.brand img { height: 32px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav a { text-decoration: none; color: var(--color-text); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-brand); }
.nav .btn-nav {
  background: var(--color-accent); color: var(--color-dark);
  padding: 8px 20px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 0.9rem;
}
.nav .btn-nav:hover { opacity: 0.85; }

/* ── 按钮 ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-accent); color: var(--color-dark);
  padding: 14px 32px; border-radius: var(--radius-btn);
  font-size: 1rem; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(137, 237, 110, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(137, 237, 110, 0.4); }
.btn-primary:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--color-text);
  padding: 14px 28px; border-radius: var(--radius-btn);
  font-size: 1rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid currentColor; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { transform: translateY(-1px); opacity: 0.8; }
.btn-secondary:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }

/* ── 眉标 ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.paper-surface .eyebrow { color: var(--color-brand); }
.dark-surface .eyebrow { color: var(--color-accent); }

/* ── 章节序号 ── */
.section-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--color-accent); color: var(--color-dark);
  font-size: 0.85rem; font-weight: 800; margin-bottom: 12px;
}
.paper-surface .section-number { background: var(--color-brand); color: var(--color-paper); }
.dark-surface .section-number { background: var(--color-accent); color: var(--color-dark); }

/* ── 标题 ── */
h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  text-wrap: balance; margin-bottom: 20px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; line-height: 1.25; letter-spacing: -0.02em;
  text-wrap: balance; margin-bottom: 16px;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.hl { font-weight: 800; }
.paper-surface .hl { color: var(--color-brand); }
.dark-surface .hl { color: var(--color-accent); }

/* ── 段落 ── */
p { margin-bottom: 16px; max-width: 38em; }
.text-muted { color: rgba(23, 21, 35, 0.6); }
.dark-surface p, .dark-surface li { color: var(--color-paper); }
.dark-surface .text-muted { color: rgba(247, 245, 243, 0.6); }

/* ── 区块 ── */
.section { padding: var(--section-y) 0; }
.paper-surface { background: var(--color-paper); }
.dark-surface { background: var(--color-dark); }

/* ── 卡片 ── */
.card {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 28px;
  transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 14px 36px -12px rgba(23, 21, 35, 0.35); }
.dark-surface .card { background: var(--color-dark); }

/* ── 两栏 / 三栏 ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 768px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* ── Tab 切换（纯 CSS） ── */
.tab-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-label {
  padding: 10px 20px; border-radius: var(--radius-btn);
  background: rgba(39, 20, 235, 0.08); cursor: pointer;
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
  user-select: none;
}
.tab-label:hover { background: rgba(39, 20, 235, 0.15); }
.tab-input { display: none; }
.tab-panel { display: none; }
.tab-input:checked + .tab-panel { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(23, 21, 35, 0.04);
  border-radius: 16px; overflow: hidden;
}
.dark-surface .faq-item { background: rgba(247, 245, 243, 0.06); }
details summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+'; font-size: 1.2rem; font-weight: 300; transition: transform 0.3s;
}
details[open] summary::after { transform: rotate(45deg); }
details .answer { padding: 0 24px 20px; line-height: 1.7; }

/* ── 表格 ── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(23, 21, 35, 0.1); }
.spec-table th { font-weight: 700; white-space: nowrap; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.dark-surface .spec-table th, .dark-surface .spec-table td { border-color: rgba(247, 245, 243, 0.1); }

/* ── 新闻卡片 ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card {
  background: var(--color-paper); border-radius: var(--radius-card);
  padding: 24px; transition: box-shadow 0.3s;
}
.news-card:hover { box-shadow: var(--card-shadow); }
.dark-surface .news-card { background: rgba(247, 245, 243, 0.06); }
.news-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.news-card time { font-size: 0.8rem; color: rgba(23, 21, 35, 0.5); display: block; margin-bottom: 8px; }
.dark-surface .news-card time { color: rgba(247, 245, 243, 0.5); }
.news-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }

/* ── 步骤 ── */
.step-list { display: flex; flex-direction: column; gap: 24px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: var(--color-accent); color: var(--color-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}
.paper-surface .step-num { background: var(--color-brand); color: var(--color-paper); }
.dark-surface .step-num { background: var(--color-accent); color: var(--color-dark); }
.step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step-content p { font-size: 0.95rem; margin-bottom: 0; }

/* ── 场景走查 ── */
.scene-card {
  background: var(--color-paper); border-radius: var(--radius-card);
  padding: 28px;
}
.dark-surface .scene-card { background: rgba(247, 245, 243, 0.06); }
.scene-card ol { padding-left: 20px; margin-top: 12px; }
.scene-card li { margin-bottom: 8px; line-height: 1.6; }

/* ── 提示框 ── */
.tip-box {
  border-left: 3px solid var(--color-brand);
  padding: 16px 20px; border-radius: 0 12px 12px 0;
  background: rgba(39, 20, 235, 0.04); margin: 16px 0;
}
.dark-surface .tip-box { border-color: var(--color-accent); background: rgba(137, 237, 110, 0.06); }

/* ── 页脚 ── */
.site-footer {
  padding: 48px 0; border-top: 1px solid rgba(23, 21, 35, 0.08);
}
.dark-surface .site-footer { border-color: rgba(247, 245, 243, 0.1); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--color-text); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.paper-surface .footer-links a { color: var(--color-text); }
.dark-surface .footer-links a { color: var(--color-paper); }
.footer-links a:hover { color: var(--color-brand); }
.dark-surface .footer-links a:hover { color: var(--color-accent); }
.copyright { font-size: 0.85rem; color: rgba(23, 21, 35, 0.5); }
.dark-surface .copyright { color: rgba(247, 245, 243, 0.5); }

/* ── 视觉面板 ── */
.visual-panel {
  background: var(--color-dark);
  border-radius: var(--radius-card);
  padding: 32px;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.dark-surface .visual-panel { background: rgba(247, 245, 243, 0.04); }

/* ── SVG 动效 ── */
@keyframes orbit-breathe-1 {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes orbit-breathe-2 {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0.8; }
}
@keyframes orbit-breathe-3 {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.7; }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -1; }
}
@keyframes bubble-in {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-4px); opacity: 1; }
}
@keyframes slide-in-right {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes dot-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.orbit-1 { animation: orbit-breathe-1 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.orbit-2 { animation: orbit-breathe-2 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.orbit-3 { animation: orbit-breathe-3 10s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.float-gentle { animation: float-gentle 5s ease-in-out infinite; }
.dash-flow { animation: dash-flow 3s linear infinite; }
.bubble-in { animation: bubble-in 4s ease-in-out infinite; }
.slide-in-right { animation: slide-in-right 1.5s ease-out both; }
.dot-breathe { animation: dot-breathe 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* ── 减少动效 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .orbit-1, .orbit-2, .orbit-3, .float-gentle, .dash-flow,
  .bubble-in, .slide-in-right, .dot-breathe {
    animation: none !important;
  }
}

/* ── 响应式 ── */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .nav { gap: 16px; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .hero-layout { grid-template-columns: 1fr !important; }
  .visual-panel { order: -1; min-height: 260px; }
}
