:root {
  --c-dark: #13102D;
  --c-paper: #D6D4ED;
  --c-text: #171523;
  --c-brand: #2714EB;
  --c-accent: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 1px solid rgba(23, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Surface Themes */
.surface-dark {
  --bg: var(--c-dark);
  --text: var(--c-paper);
  --accent: var(--c-accent);
  --brand: var(--c-accent);
  --border: rgba(214, 212, 237, 0.12);
  background-color: var(--bg);
  color: var(--text);
}
.surface-paper {
  --bg: var(--c-paper);
  --text: var(--c-text);
  --accent: var(--c-accent);
  --brand: var(--c-brand);
  --border: rgba(23, 21, 35, 0.16);
  background-color: var(--bg);
  color: var(--text);
}
.surface-light-card {
  --bg: #FFFFFF;
  --text: var(--c-text);
  --accent: var(--c-accent);
  --brand: var(--c-brand);
  --border: rgba(23, 21, 35, 0.12);
  background-color: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: 38em; }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.hl { color: var(--brand); }
.surface-dark .hl { color: var(--accent); }

/* Badge / Eyebrow */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--brand);
}
.surface-dark .badge { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--c-dark);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-secondary {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
}
.surface-dark .btn-secondary { border-color: var(--text); color: var(--text); }
.btn-secondary:hover { transform: translateY(-2px); opacity: 0.9; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header / Footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(214, 212, 237, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.surface-dark .site-header { background: rgba(19, 16, 45, 0.9); }
.nav-row { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.surface-dark .nav-links a:hover, .surface-dark .nav-links a[aria-current="page"] { color: var(--accent); }
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.85;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--gap); }
.footer-grid a { display: block; margin-bottom: 0.5rem; }
.footer-grid a:hover { text-decoration: underline; }

/* Components */
.card {
  background: var(--bg);
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-2px); }
.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); }

/* Table */
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.spec-table th, .spec-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { font-weight: 600; width: 40%; }
.spec-table tr:last-child td { border-bottom: none; }

/* FAQ */
details {
  margin-bottom: 1rem;
  border: var(--card-border);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  background: var(--bg);
  transition: background 0.2s;
}
details[open] { background: rgba(23, 21, 35, 0.03); }
.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-content { margin-top: 0.75rem; color: var(--text); opacity: 0.9; }
.surface-dark details[open] { background: rgba(214, 212, 237, 0.08); }

/* Steps */
.step-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.step-badge {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--c-dark);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem;
}

/* Scenario Tags */
.scenario-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(39, 20, 235, 0.1);
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.surface-dark .scenario-tag { background: rgba(137, 237, 110, 0.15); color: var(--accent); }

/* SVG Containers & Animations */
.svg-panel {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
  border: var(--card-border);
  padding: 1rem;
}
.anim-float { animation: float 4s ease-in-out infinite; }
.anim-breathe { animation: breathe 2.5s ease-in-out infinite; }
.anim-slide-in { animation: slideIn 0.8s ease-out forwards; }
.anim-twinkle { animation: twinkle 3s ease-in-out infinite; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: dashFlow 2.5s linear infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slideIn { 0% { transform: translateX(24px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.9; } }
@keyframes dashFlow { 0% { stroke-dashoffset: 1; } 50% { stroke-dashoffset: 0.2; } 100% { stroke-dashoffset: 1; } }

/* Focus & Reduced Motion */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.surface-dark :focus-visible { outline-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .step-item { flex-direction: column; }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
