:root {
  /* 色板 */
  --bg-deep: #13102D;
  --bg-paper: #F7F5F3;
  --text-body: #171523;
  --brand: #2714EB;
  --accent: #89ED6E;
  --paper-text: #F7F5F3;
  --deep-accent: #89ED6E;

  /* 结构 Token */
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 1px solid;
  --card-shadow: none;
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  --line-h: 1.55;

  /* 字体 */
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: var(--line-h);
  color: var(--text-body);
  background: var(--bg-paper);
  overflow-x: hidden;
}

/* 排版 */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--gap); }
h3 { font-size: 1.25rem; margin-bottom: calc(var(--gap) * 0.75); }
p { margin-bottom: var(--gap); max-width: 38em; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.2em; margin-bottom: var(--gap); }
li { margin-bottom: calc(var(--gap) * 0.5); }

/* 容器 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section-y) 0; }
.section-dark { background: var(--bg-deep); color: var(--paper-text); }
.section-paper { background: var(--bg-paper); color: var(--text-body); }

/* 眉标 */
.breadcrumb {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: calc(var(--gap) * 0.5);
  text-transform: uppercase;
}
.section-paper .breadcrumb { color: var(--brand); }
.section-dark .breadcrumb { color: var(--accent); }

/* 强调词 */
.hl { font-weight: 800; }
.section-paper .hl { color: var(--brand); }
.section-dark .hl { color: var(--accent); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(0.95); }
.btn-secondary {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.section-paper .btn-secondary { color: var(--text-body); border-color: var(--text-body); }
.section-dark .btn-secondary { color: var(--paper-text); border-color: var(--paper-text); }
.btn-secondary:hover { transform: translateY(-2px); opacity: 0.85; }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 卡片 */
.card {
  background: var(--bg-paper);
  border: var(--card-border);
  border-color: rgba(23, 21, 35, 0.16);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: var(--gap);
  transition: transform 0.2s ease;
}
.section-dark .card {
  background: #1A1738;
  border-color: rgba(247, 245, 243, 0.12);
}

/* 表格 */
.table-wrap { overflow-x: auto; margin-bottom: var(--gap); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(23, 21, 35, 0.1); }
.section-dark th, .section-dark td { border-bottom-color: rgba(247, 245, 243, 0.1); }
th { font-weight: 600; }

/* FAQ */
details {
  background: rgba(23, 21, 35, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary::-webkit-details-marker { display: none; }
.summary::after { content: "+"; font-size: 1.2em; transition: transform 0.2s; }
details[open] .summary::after { transform: rotate(45deg); }
.detail-content { padding: 0 20px 16px; line-height: var(--line-h); }

/* 横向滚动功能带 */
.features-scroll {
  display: flex;
  overflow-x: auto;
  gap: var(--gap);
  padding: var(--gap) 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.features-scroll::-webkit-scrollbar { height: 6px; }
.features-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
.feature-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-icon { width: 32px; height: 32px; stroke: var(--accent); }
.feature-title { font-weight: 700; color: var(--paper-text); }
.feature-desc { font-size: 0.9rem; color: rgba(247,245,243,0.8); }

/* 步骤徽标 */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 8px;
  font-weight: 800;
  margin-right: 12px;
}

/* 新闻卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.news-card { display: flex; flex-direction: column; gap: 8px; }
.news-date { font-size: 0.85rem; opacity: 0.7; }
.news-title { font-weight: 700; line-height: 1.3; }
.news-excerpt { font-size: 0.95rem; opacity: 0.9; }

/* 页头页脚 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--brand); }
.footer { background: var(--bg-deep); color: var(--paper-text); padding: 48px 0; margin-top: var(--section-y); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-col h4 { margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { opacity: 0.8; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }

/* SVG 基础与动效 */
.svg-panel { width: 100%; height: auto; max-width: 100%; }
svg { width: 100%; height: auto; display: block; }
.node { opacity: 0.4; transform: scale(0.9); }
@keyframes grid-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
.node-1 { animation: grid-pulse 5s ease-in-out infinite 0s; }
.node-2 { animation: grid-pulse 5s ease-in-out infinite 0.5s; }
.node-3 { animation: grid-pulse 5s ease-in-out infinite 1s; }
.node-4 { animation: grid-pulse 5s ease-in-out infinite 1.5s; }
.node-5 { animation: grid-pulse 5s ease-in-out infinite 2s; }
.node-6 { animation: grid-pulse 5s ease-in-out infinite 2.5s; }
.node-7 { animation: grid-pulse 5s ease-in-out infinite 3s; }
.node-8 { animation: grid-pulse 5s ease-in-out infinite 3.5s; }
.node-9 { animation: grid-pulse 5s ease-in-out infinite 4s; }

.draw-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 4s ease-in-out infinite alternate;
}
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

.float-up {
  animation: float 6s ease-in-out infinite alternate;
}
@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* 响应式与无障碍 */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; }
  .nav-links { gap: 16px; margin-top: 8px; }
  .features-scroll { flex-wrap: wrap; }
  .feature-item { flex: 1 1 100%; }
  .news-grid { grid-template-columns: 1fr; }
  .scenario-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
