:root {
  --color-dark: #121531;
  --color-paper: #E8E9EA;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #ED7D6E;
  --color-surface-card-light: rgba(255, 255, 255, 0.55);
  --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-main: system-ui, -apple-system, "PingFang SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 表面取色覆盖规则 */
.surface-dark { background-color: var(--color-dark); color: var(--color-paper); }
.surface-dark .hl { color: var(--color-accent); }
.surface-dark .eyebrow { color: var(--color-accent); }
.surface-dark a:not(.btn):not([href^="#"]) { color: var(--color-accent); }
.surface-paper { background-color: var(--color-paper); color: var(--color-text); }
.surface-paper .hl { color: var(--color-brand); }
.surface-paper .eyebrow { color: var(--color-brand); }
.surface-paper a:not(.btn):not([href^="#"]) { color: var(--color-brand); }
.surface-card { background-color: var(--color-surface-card-light); color: var(--color-text); }
.surface-card .hl { color: var(--color-brand); }
.surface-card .eyebrow { color: var(--color-brand); }
.surface-card a:not(.btn):not([href^="#"]) { color: var(--color-brand); }

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; background-color: var(--color-paper); }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

/* 布局容器 */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gap); }
section { padding-block: var(--section-y); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* 标题与文本 */
h1, h2, h3 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.5em; text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.4em; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.75rem; }
.hl { font-weight: 800; }
p { margin-bottom: 1em; max-width: 38em; }
strong { font-weight: 700; }
.text-muted { opacity: 0.8; }

/* 按钮组件 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; height: 52px; padding-inline: 24px; border-radius: var(--radius-btn); font-weight: 600; cursor: pointer; border: none; transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn-primary { background-color: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-secondary { background: transparent; border: 2px solid currentColor; color: currentColor; }
.surface-dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.btn-secondary:hover { transform: translateY(-2px); background-color: rgba(128,128,128,0.1); }

/* 卡片与面板 */
.card { border-radius: var(--radius-card); padding: var(--gap); background: var(--color-surface-card-light); border: var(--card-border); box-shadow: var(--card-shadow); }
.panel { border-radius: var(--radius-card); padding: var(--gap); background: var(--color-dark); color: var(--color-paper); position: relative; overflow: hidden; }
.surface-dark .panel { background: rgba(255,255,255,0.05); }
.panel-content { position: relative; z-index: 2; }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin-top: 1em; table-layout: fixed; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(128,128,128,0.3); vertical-align: top; overflow-wrap: break-word; word-break: break-word; }
th { font-weight: 700; }
td a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* 折叠面板 (FAQ) */
details { border-radius: var(--radius-card); background: var(--color-surface-card-light); margin-bottom: 12px; overflow: hidden; }
summary { padding: 16px; 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.2em; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 16px 16px; }

/* 导航与页脚 */
header { position: sticky; top: 0; z-index: 100; background: rgba(232, 233, 234, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.surface-dark header { background: rgba(18, 21, 49, 0.92); border-bottom-color: rgba(255,255,255,0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-weight: 500; }
.nav-links a[aria-current="page"] { font-weight: 700; color: var(--color-brand); }
.surface-dark .nav-links a[aria-current="page"] { color: var(--color-accent); }
footer { padding-block: 48px; border-top: 1px solid rgba(128,128,128,0.2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-col h4 { font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; padding-block: 6px; opacity: 0.8; }
.footer-col a:hover { opacity: 1; }
.copyright { margin-top: 32px; text-align: center; opacity: 0.6; font-size: 0.9rem; }

/* SVG 图标基础类 */
.svg-icon { width: 20px; height: 20px; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.hero-svg { width: 100%; height: auto; max-width: 640px; }

/* SVG 动效关键帧 */
@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes dash-flow { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse-breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.star { animation: twinkle 4s ease-in-out infinite alternate; }
.star:nth-child(2n) { animation-delay: 1.5s; }
.star:nth-child(3n) { animation-delay: 3s; }
.line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: dash-flow 6s linear infinite; }
.float-group { animation: float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bubble-enter { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.breathe-dot { animation: pulse-breathe 2.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* 减少动态效果适配 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .star, .line, .float-group, .bubble-enter, .breathe-dot { animation: none !important; }
}
