:root {
  /* 色板 */
  --color-dark: #10112D;
  --color-paper: #F5F0E5;
  --color-text: #151523;
  --color-brand: #1416EB;
  --color-accent: #89ED6E;

  /* 设计 Token */
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 1px solid rgba(21, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(64px, 9vw, 120px);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  --line-height-body: 1.65;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { background: var(--color-paper); color: var(--color-text); line-height: var(--line-height-body); font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 容器与网格 */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--gap); }
.min-0 { min-width: 0; }

/* 页面面色控制 */
.surface-dark { background: var(--color-dark); color: var(--color-paper); }
.surface-dark .hl { color: var(--color-accent); }
.surface-dark .brand-link { color: var(--color-accent); }
.surface-dark .card-paper { background: var(--color-paper); color: var(--color-text); border: var(--card-border); border-color: rgba(21, 21, 35, 0.16); }
.surface-dark .card-paper .hl { color: var(--color-brand); }
.surface-paper { background: var(--color-paper); color: var(--color-text); }
.surface-paper .hl { color: var(--color-brand); }
.surface-paper .brand-link { color: var(--color-brand); }

/* 标题与眉标 */
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5em; }
.surface-dark .section-label { color: var(--color-accent); }
.surface-paper .section-label { color: var(--color-brand); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; letter-spacing: 0.02em; margin-bottom: 1em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: 0.8em; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.6em; }
p { margin-bottom: 1em; max-width: 38em; }

/* 组件：按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; height: 52px; padding: 0 24px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-btn); cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; border: none; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-2px); background: #7ae05f; }
.btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-text); }
.surface-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn-secondary:hover { transform: translateY(-2px); background: rgba(0,0,0,0.05); }
.surface-dark .btn-secondary:hover { background: rgba(255,255,255,0.08); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* 组件：卡片 */
.card { background: var(--color-paper); color: var(--color-text); border: var(--card-border); border-radius: var(--radius-card); padding: var(--gap); box-shadow: var(--card-shadow); }
.surface-dark .card { background: var(--color-dark); border-color: rgba(255,255,255,0.1); color: var(--color-paper); }
.card-icon { width: 24px; height: 24px; flex-shrink: 0; stroke-width: 1.5; }

/* 组件：表格 */
.data-table { width: 100%; border-collapse: collapse; margin-top: 1em; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.1); }
.surface-dark .data-table th, .surface-dark .data-table td { border-bottom-color: rgba(255,255,255,0.1); }
.data-table th { font-weight: 700; width: 40%; }

/* 组件：FAQ */
.faq-item { border: var(--card-border); border-radius: var(--radius-card); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.2em; transition: transform 0.2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 16px; font-size: 0.95rem; line-height: 1.7; }

/* 页头与页脚 */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); border-bottom: 1px solid rgba(0,0,0,0.08); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo img { height: 28px; width: auto; }
.nav-list { display: flex; gap: 24px; align-items: center; }
.nav-list a { font-weight: 500; font-size: 0.95rem; padding: 6px 0; position: relative; }
.nav-list a:hover { color: var(--color-brand); }
.surface-dark .nav-list a:hover { color: var(--color-accent); }
.nav-list a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
.surface-dark .nav-list a[aria-current="page"] { color: var(--color-accent); }
@media (max-width: 640px) { .nav-list { display: none; } }

.site-footer { padding: 48px 0; border-top: 1px solid rgba(0,0,0,0.08); margin-top: var(--section-y); font-size: 0.9rem; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-copy { opacity: 0.7; }

/* SVG 基础与动效类 */
.svg-visual { width: 100%; height: auto; max-width: 480px; }
svg path.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
svg .star-point { transform-box: fill-box; transform-origin: center; }
svg .bubble { transform-box: fill-box; transform-origin: center; }
svg .input-dots circle { transform-box: fill-box; transform-origin: center; }

/* 关键帧定义 */
@keyframes drawLine { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes floatUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slideIn { 0% { transform: translateX(20px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }

/* 动效应用 */
.anim-draw { animation: drawLine 3s ease-out forwards; }
.anim-twinkle { animation: twinkle 4s ease-in-out infinite; }
.anim-float { animation: floatUp 5s ease-in-out infinite; }
.anim-breathe { animation: breathe 3s ease-in-out infinite; }
.anim-slide { animation: slideIn 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; }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .hero-layout { flex-direction: column; }
  .scenario-split { flex-direction: column; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
}
