:root {
  /* 色板 */
  --color-bg-dark: #140E25;
  --color-bg-paper: #F7F5F3;
  --color-text-body: #191523;
  --color-brand: #5214EB;
  --color-accent: #C8ED6E;
  --color-text-on-dark: var(--color-bg-paper);

  /* 圆角与阴影 */
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);

  /* 节奏与密度 */
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 960px;
  --body-lh: 1.65;
}

/* 上下文覆盖：深色面 */
.surface-dark {
  --bg-color: var(--color-bg-dark);
  --text-color: var(--color-text-on-dark);
  --brand-color: var(--color-accent);
  --accent-color: var(--color-accent);
  --card-shadow: 0 10px 28px -14px rgba(247, 245, 243, 0.15);
}

/* 上下文覆盖：浅色卡片 */
.card-light {
  --bg-color: var(--color-bg-paper);
  --text-color: var(--color-text-body);
  --brand-color: var(--color-brand);
  --accent-color: var(--color-accent);
  --card-shadow: var(--card-shadow);
}

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg-paper);
  color: var(--color-text-body);
  line-height: var(--body-lh);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-brand); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.5em; }

/* 布局容器 */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
section { padding-block: var(--section-y); }
.surface-dark section { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.surface-dark a { color: var(--color-accent); }

/* 排版 */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: var(--gap); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: calc(var(--gap) * 0.8); }
h3 { font-size: 1.25rem; margin-bottom: calc(var(--gap) * 0.5); }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); line-height: 1.6; margin-bottom: var(--gap); max-width: 38em; }
.prose p { margin-bottom: 1em; max-width: 38em; }
.prose ul { margin-bottom: 1em; }
.hl { color: var(--brand-color); }
.surface-dark .hl { color: var(--color-accent); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: calc(var(--gap) * 0.4);
  color: var(--color-brand);
}
.surface-dark .eyebrow { color: var(--color-accent); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-btn); font-weight: 600;
  cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none; font-size: 1rem; min-height: 48px; white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg-dark); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(0.92); }
.btn-secondary { border: 1px solid var(--color-text-body); color: var(--color-text-body); background: transparent; }
.surface-dark .btn-secondary { border-color: var(--color-text-on-dark); color: var(--color-text-on-dark); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* 网格与卡片 */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.card {
  background: var(--bg-color, var(--color-bg-paper));
  color: var(--text-color, var(--color-text-body));
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: var(--gap);
}

/* 表格 */
table { width: 100%; border-collapse: collapse; margin-block: var(--gap); }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(25,21,35,0.1); text-align: left; }
th { font-weight: 600; }
.surface-dark th, .surface-dark td { border-bottom-color: rgba(247,245,243,0.1); }

/* FAQ */
details { border: 1px solid rgba(25,21,35,0.1); border-radius: var(--radius-card); margin-bottom: var(--gap); padding: 1rem; }
.surface-dark details { border-color: rgba(247,245,243,0.15); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 0.75rem; }

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: var(--color-bg-paper); border-bottom: 1px solid rgba(25,21,35,0.08); padding: 1rem 0; backdrop-filter: blur(8px); }
.surface-dark header { background: var(--color-bg-dark); border-color: rgba(247,245,243,0.08); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 32px; width: auto; vertical-align: middle; }
nav ul { display: flex; gap: var(--gap); list-style: none; }
nav a { color: inherit; font-weight: 500; padding: 0.5rem 0; }
nav a:hover, nav [aria-current="page"] { color: var(--brand-color); }
.surface-dark nav a:hover, .surface-dark nav [aria-current="page"] { color: var(--color-accent); }
footer { padding: 3rem 0; border-top: 1px solid rgba(25,21,35,0.1); margin-top: var(--section-y); }
.surface-dark footer { border-color: rgba(247,245,243,0.1); }

/* SVG 动效 */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes rotate-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-ccw { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes slide-in { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.anim-float { animation: float 6s ease-in-out infinite; }
.anim-pulse { animation: pulse 4s ease-in-out infinite; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dash 3s ease forwards; }
.anim-rotate-cw { animation: rotate-cw 20s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-rotate-ccw { animation: rotate-ccw 18s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-slide { animation: slide-in 1s 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; }
}

/* 工具类 */
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mb-gap { margin-bottom: var(--gap); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.icon-svg { width: 20px; height: 20px; stroke-width: 1.8; fill: none; stroke: currentColor; }
.flow-arrow { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px; background: var(--color-accent);
  color: var(--color-bg-dark); font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.surface-dark .step-badge { background: var(--color-accent); color: var(--color-bg-dark); }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 768px) { .hero-layout { grid-template-columns: 1fr; } }
.feature-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 768px) { .feature-layout { grid-template-columns: 1fr; } }
.feature-layout.reverse { direction: rtl; }
.feature-layout.reverse > * { direction: ltr; }
.flow-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; justify-content: center; }
.flow-node { padding: 1rem; border: 1px solid rgba(25,21,35,0.1); border-radius: var(--radius-card); background: var(--bg-color, var(--color-bg-paper)); }
.surface-dark .flow-node { border-color: rgba(247,245,243,0.15); }
