/* === 设计变量 === */
:root {
  --color-dark: #21163C;
  --color-paper: #F4F3F7;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #ED926E;
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 1px solid rgba(25, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1120px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", 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-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-paper);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* === 布局容器 === */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.surface-paper { background-color: var(--color-paper); color: var(--color-text); }
.surface-dark { background-color: var(--color-dark); color: var(--color-paper); }
.surface-dark .hl { color: var(--color-accent); }
.surface-dark .eyebrow, .surface-dark a.link-highlight { color: var(--color-accent); }
.surface-paper .hl { color: var(--color-brand); }
.surface-paper .eyebrow, .surface-paper a.link-highlight { color: var(--color-brand); }

/* === 标题与眉标 === */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
p { margin-bottom: 1rem; max-width: 38em; }

/* === 按钮 === */
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(0.95); }
.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text);
}
.surface-dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.surface-dark .btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* === 卡片与面板 === */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.surface-dark .card { background: var(--color-paper); color: var(--color-text); }
.visual-panel {
  background: var(--color-dark);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}
.surface-paper .visual-panel { background: var(--color-dark); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }

/* === 表格 === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  border-bottom: var(--card-border);
  text-align: left;
}
.data-table th { font-weight: 700; width: 40%; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 1.25rem 1rem;
  line-height: 1.7;
}

/* === 步骤条 === */
.steps-row { display: flex; flex-wrap: wrap; gap: 1.5rem; counter-reset: step; }
.step-item {
  flex: 1 1 240px;
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
}
.step-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.surface-dark .step-item::before { background: var(--color-accent); color: var(--color-dark); }

/* === 时间轴 === */
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid currentColor; opacity: 0.85; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.55rem; top: 0.35rem;
  width: 12px; height: 12px; border-radius: 50%; background: currentColor;
}
.timeline-time { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; opacity: 0.8; }

/* === 页头页脚 === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 243, 247, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.surface-dark .site-header { background: rgba(33, 22, 60, 0.9); border-bottom-color: rgba(255,255,255,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { opacity: 0.8; }
.nav-links a[aria-current="page"] { font-weight: 700; }
.site-footer { padding: 3rem 0; border-top: 1px solid var(--card-border); margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-copy { font-size: 0.85rem; opacity: 0.7; margin-top: 1rem; }

/* === SVG 动效系统 === */
.svg-container { width: 100%; height: auto; }
.svg-container svg { width: 100%; height: auto; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw-cycle {
  from { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 1; }
}
.anim-draw { animation: draw-cycle 6s ease-in-out infinite; }
@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.anim-float { animation: float-subtle 5s ease-in-out infinite; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}
.node-light { animation: node-pulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.node-light:nth-child(odd) { animation-delay: 0.5s; }
.node-light:nth-child(even) { animation-delay: 1s; }
@keyframes breathe {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.anim-breathe { animation: breathe 3s ease-in-out infinite; }
@keyframes slide-in {
  from { transform: translateX(-12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.anim-slide { animation: slide-in 0.8s ease-out forwards; }

/* === 无障碍：减少动态效果 === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .draw-path { stroke-dashoffset: 0; }
  .node-light { opacity: 1; transform: scale(1); }
}

/* === 响应式微调 === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
