:root {
  --color-dark: #13102D;
  --color-paper: #D6D4ED;
  --color-text: #171523;
  --color-brand: #2714EB;
  --color-accent: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(23, 21, 35, 0.3);
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--color-paper);
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
section { padding: var(--section-y) 0; }

/* 面与取色覆盖 */
.dark-surface { background: var(--color-dark); color: var(--color-paper); }
.dark-surface h1, .dark-surface h2, .dark-surface h3, .dark-surface p, .dark-surface li { color: var(--color-paper); }
.dark-surface .hl, .dark-surface .eyebrow, .dark-surface a:not(.btn) { color: var(--color-accent); }
.light-card { background: var(--color-paper); color: var(--color-text); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: var(--gap); }
.light-card h1, .light-card h2, .light-card h3, .light-card p, .light-card li { color: var(--color-text); }
.light-card .hl, .light-card .eyebrow, .light-card a:not(.btn) { color: var(--color-brand); }

/* 排版 */
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.25; margin: 0 0 1.5rem; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.75rem; }
p { max-width: 38em; margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.5rem; display: inline-block; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }

/* 组件：按钮 */
.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; text-decoration: none; cursor: pointer;
  border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-secondary { background: transparent; border: 1.5px solid currentColor; }
.dark-surface .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }

/* 组件：表格 */
.table-wrapper { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; min-width: 320px; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(128,128,128,0.2); }
th { font-weight: 700; }
.dark-surface th, .dark-surface td { border-bottom-color: rgba(255,255,255,0.1); }

/* 组件：FAQ */
details { margin-bottom: 0.75rem; border: 1px solid rgba(128,128,128,0.2); border-radius: 12px; padding: 0.75rem 1rem; }
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; font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { margin: 0.75rem 0 0; }
.dark-surface details { border-color: rgba(255,255,255,0.15); }

/* 布局网格 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.flex-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }
.justify-between { justify-content: space-between; }

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); padding: 0.75rem 0; transition: box-shadow 0.3s ease; }
header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dark-surface header { background: var(--color-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; font-weight: 700; font-size: 1.1rem; }
.logo img { height: 32px; width: auto; }
nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
nav a { text-decoration: none; font-weight: 500; opacity: 0.85; transition: opacity 0.2s; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; }
footer { padding: 3rem 0; border-top: 1px solid rgba(128,128,128,0.2); margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { margin: 0 0 0.75rem; font-size: 0.9rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { text-decoration: none; opacity: 0.8; font-size: 0.9rem; }
.footer-col a:hover { opacity: 1; }
.copyright { margin-top: 2rem; font-size: 0.85rem; opacity: 0.7; text-align: center; }

/* SVG 基础与动效 */
svg { width: 100%; height: auto; display: block; }
svg path, svg line, svg rect, svg circle, svg polygon { vector-effect: non-scaling-stroke; }
.anim-spin { animation: spin-slow 20s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-align { animation: align-pulse 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: dash-draw 4s ease forwards; }
.anim-float { animation: float-up 6s ease-in-out infinite; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes align-pulse { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.05) rotate(15deg); } }
@keyframes dash-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes float-up { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-6px); opacity: 0.85; } }

@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) {
  .header-inner { flex-direction: column; gap: 0.75rem; }
  nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .hero-layout { flex-direction: column; }
  .scenario-split { flex-direction: column; }
}
