:root {
  --color-dark: #121531;
  --color-paper: #E8E9EA;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #ED7D6E;

  --bg-dark-text: var(--color-paper);
  --bg-dark-link: var(--color-accent);
  --bg-dark-accent: var(--color-accent);

  --bg-paper-text: var(--color-text);
  --bg-paper-link: var(--color-brand);
  --bg-paper-brand: var(--color-brand);

  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--line-height);
  color: var(--bg-paper-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 背景修饰类 */
.bg-dark { background-color: var(--color-dark); color: var(--bg-dark-text); }
.bg-dark .brand { color: var(--bg-dark-accent); }
.bg-dark .link { color: var(--bg-dark-link); }
.bg-dark .hl { color: var(--bg-dark-accent); }
.bg-dark .btn-secondary { color: var(--bg-dark-text); border-color: var(--bg-dark-text); }

.bg-paper { background-color: var(--color-paper); color: var(--bg-paper-text); }
.bg-paper .brand { color: var(--bg-paper-brand); }
.bg-paper .link { color: var(--bg-paper-link); }
.bg-paper .hl { color: var(--bg-paper-brand); }

/* 排版 */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.bg-paper .eyebrow { color: var(--bg-paper-brand); }
.bg-dark .eyebrow { color: var(--bg-dark-accent); }

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 var(--gap) 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 var(--gap) 0; text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.3; margin: 0 0 0.8em 0; }
p { margin: 0 0 var(--gap) 0; max-width: 38em; }
strong { font-weight: 600; }

/* 布局辅助 */
.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); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--gap); }
.mb-md { margin-bottom: calc(var(--gap) * 1.5); }

/* 组件：按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.75em 1.75em; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 48px;
}
.btn-primary { background-color: var(--color-accent); color: var(--color-dark); }
.btn-secondary { background: transparent; border: 2px solid currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* 组件：卡片 */
.card {
  border-radius: var(--radius-card);
  padding: var(--gap);
  background: rgba(255, 255, 255, 0.6);
}
.bg-dark .card { background: rgba(255, 255, 255, 0.08); }

/* 组件：表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: 1em; text-align: left; border-bottom: 1px solid currentColor; vertical-align: top; }
th { font-weight: 600; opacity: 0.85; }
td:first-child { font-weight: 600; }

/* 组件：FAQ */
details {
  border-radius: var(--radius-card);
  padding: 0;
  margin-bottom: var(--gap);
  background: rgba(255, 255, 255, 0.5);
}
.bg-dark details { background: rgba(255, 255, 255, 0.06); }
summary {
  padding: 1.2em 1.5em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute; right: 1.5em; top: 50%; transform: translateY(-50%);
  font-weight: 400; opacity: 0.6;
}
details[open] summary::after { content: "−"; }
.details-content { padding: 0 1.5em 1.2em; }

/* 组件：步骤徽标 */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background-color: var(--color-accent); color: var(--color-dark);
  font-weight: 700; font-size: 0.9rem; margin-right: 0.6em;
}

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); background: rgba(232,233,234,0.85); border-bottom: 1px solid rgba(0,0,0,0.06); }
.bg-dark header { background: rgba(18,21,49,0.9); border-bottom-color: rgba(255,255,255,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.6em; font-weight: 800; font-size: 1.2rem; }
.logo img { width: 28px; height: 28px; object-fit: contain; }
nav ul { display: flex; gap: 1.5em; }
nav a { font-weight: 500; opacity: 0.85; transition: opacity 0.2s; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; }
.mobile-toggle { display: none; }

footer { padding: var(--section-y) 0; border-top: 1px solid currentColor; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.8em; opacity: 0.8; }
.footer-col a { display: block; padding: 0.3em 0; opacity: 0.75; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.copyright { margin-top: var(--section-y); text-align: center; opacity: 0.6; font-size: 0.85rem; }

/* SVG 动效基础 */
svg.anim-svg { width: 100%; height: auto; max-width: 100%; overflow: visible; }
svg.anim-svg path, svg.anim-svg rect, svg.anim-svg circle, svg.anim-svg polyline, svg.anim-svg line {
  stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.draw-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 4s ease forwards;
}
.float-el { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.breathe-el { animation: breathe 5s ease-in-out infinite; }
.slide-up-el { animation: slide-up 1.2s ease-out forwards; }

@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes slide-up {
  0% { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@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, .float-el, .breathe-el, .slide-up-el { animation: none !important; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .mobile-toggle { display: block; }
  .header-inner { position: relative; }
}
