:root {
  --color-dark: #19102D;
  --color-paper: #FCFCFD;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #D66EED;
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 2px solid var(--color-text);
  --card-shadow: 4px 4px 0 var(--color-text);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--color-paper);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); border-bottom: 1px solid rgba(25, 21, 35, 0.12); }
.section:last-of-type { border-bottom: none; }

/* Typography */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
p { margin-bottom: 1em; max-width: 38em; }
.subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--color-text); opacity: 0.85; margin-bottom: 1.5em; line-height: 1.5; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.paper-surface .eyebrow { color: var(--color-brand); }
.dark-surface .eyebrow { color: var(--color-accent); }
.hl { font-weight: 800; }
.paper-surface .hl { color: var(--color-brand); }
.dark-surface .hl { color: var(--color-accent); }

/* Header & Nav */
header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); border-bottom: 1px solid rgba(25, 21, 35, 0.1); padding: 1rem 0; }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.2rem; }
nav ul { display: flex; gap: 1.5rem; }
nav a { font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0; position: relative; }
nav a[aria-current="page"] { color: var(--color-brand); }
.paper-surface nav a:hover { color: var(--color-brand); }
.dark-surface nav a { color: var(--color-paper); }
.dark-surface nav a:hover { color: var(--color-accent); }

/* Buttons */
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 52px; padding: 0 2rem; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: none; transition: transform 0.2s ease, filter 0.2s ease; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-secondary { background: transparent; border: 2px solid var(--color-text); color: var(--color-text); }
.dark-surface .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.dark-surface .btn-secondary:hover { background: rgba(252, 252, 253, 0.1); }

/* Cards & Panels */
.card { background: var(--color-paper); border: var(--card-border); box-shadow: var(--card-shadow); padding: 1.5rem; }
.panel { background: var(--color-dark); padding: 2rem; }
.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 */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 1rem; border-bottom: 1px solid rgba(25, 21, 35, 0.15); white-space: normal; word-break: break-word; }
th { font-weight: 700; }
td:first-child { font-weight: 600; color: var(--color-brand); }

/* FAQ */
details { margin-bottom: 1rem; border: var(--card-border); box-shadow: var(--card-shadow); background: var(--color-paper); }
summary { padding: 1rem 1.5rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-weight: 800; color: var(--color-brand); }
details[open] summary::before { content: "-"; }
details p { padding: 0 1.5rem 1rem; line-height: 1.7; }

/* SVG Animations */
@keyframes drawFlow { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slideIn { 0% { transform: translateY(20px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.anim-flow { animation: drawFlow 5s linear infinite; stroke-dasharray: 1; stroke-dashoffset: 0; pathLength: 1; }
.anim-breathe { animation: breathe 2.5s ease-in-out infinite; }
.anim-slide { animation: slideIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-float { animation: float 4s ease-in-out infinite; }
svg { width: 100%; height: auto; overflow: visible; }
svg * { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; animation-name: none !important; }
}
@media (max-width: 768px) {
  .nav-wrap { flex-direction: column; gap: 1rem; }
  nav ul { flex-wrap: wrap; justify-content: center; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-layout { flex-direction: column; }
}
/* 修复 Hero 区域浅色背景上的文字对比度 */
.section.dark-surface .container.hero-layout .btn-group a.btn.btn-secondary {
  color: #191523;
}
.section.dark-surface .container.hero-layout span.eyebrow {
  color: #191523;
}
.section.dark-surface .container.hero-layout span.hl {
  color: #191523;
}
