:root {
  --color-dark: #19102D;
  --color-paper: #FCFCFD;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #D66EED;
  --radius-card: 0;
  --radius-btn: 0;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --border-thick: 2px solid var(--color-text);
  --shadow-hard: 4px 4px 0 var(--color-text);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-dark); }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.6em; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section {
  padding-block: var(--section-y);
}
.section--paper { background: var(--color-paper); color: var(--color-text); }
.section--paper-light { background: #F5F4FA; color: var(--color-text); }
.section--dark { background: var(--color-dark); color: var(--color-paper); }
.section--dark a { color: var(--color-accent); }
.section--dark a:hover { color: #fff; }
.section--dark .hl { color: var(--color-accent); }
.section--paper .hl, .section--paper-light .hl { color: var(--color-brand); }

/* Typography */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; margin-bottom: 1.2em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 1.4em; }
h3 { font-size: 1.35rem; font-weight: 600; margin-top: 2em; margin-bottom: 0.8em; }
p { max-width: 38em; margin-bottom: 1.2em; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}
.section--paper .eyebrow, .section--paper-light .eyebrow { color: var(--color-brand); }
.section--dark .eyebrow { color: var(--color-accent); }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 252, 253, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(25, 21, 35, 0.08);
  padding: 0.8rem 0;
}
.section--dark .site-header { background: rgba(25, 16, 45, 0.95); border-bottom-color: rgba(214, 110, 237, 0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: inherit; }
.brand img { height: 28px; width: auto; }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { font-weight: 500; font-size: 0.95rem; color: inherit; }
nav a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
.section--dark nav a[aria-current="page"] { color: var(--color-accent); }

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-paper);
  padding: 3rem 0;
  border-top: 2px solid rgba(214, 110, 237, 0.2);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--color-accent); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(252, 252, 253, 0.8); }
.footer-col a:hover { color: #fff; }
.copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(252, 252, 253, 0.1); text-align: center; font-size: 0.85rem; color: rgba(252, 252, 253, 0.6); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0 1.4rem; height: 52px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn--primary {
  background: var(--color-accent); color: var(--color-dark); border-color: var(--color-accent);
}
.btn--primary:hover { transform: translateY(-2px); background: #c95be0; border-color: #c95be0; }
.btn--secondary {
  background: transparent; color: var(--color-text); border-color: var(--color-text);
}
.section--dark .btn--secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn--secondary:hover { background: rgba(25, 21, 35, 0.05); }
.section--dark .btn--secondary:hover { background: rgba(252, 252, 253, 0.1); }

/* Cards & Panels */
.card {
  background: var(--color-paper);
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  padding: 1.5rem;
  margin-bottom: var(--gap);
}
.panel {
  background: var(--color-dark);
  border: 2px solid rgba(252, 252, 253, 0.15);
  padding: 1.5rem;
  margin-bottom: var(--gap);
}

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 600px; table-layout: fixed; }
th, td { padding: 0.8rem 1rem; border-bottom: 2px solid var(--color-text); text-align: left; vertical-align: top; word-break: break-word; }
.section--dark th, .section--dark td { border-bottom-color: rgba(252, 252, 253, 0.2); color: var(--color-paper); }
th { font-weight: 700; background: rgba(25, 21, 35, 0.03); }
.section--dark th { background: rgba(252, 252, 253, 0.05); }

/* FAQ Details */
details {
  border: var(--border-thick);
  margin-bottom: 1rem;
  background: var(--color-paper);
}
.section--dark details { background: rgba(252, 252, 253, 0.05); border-color: rgba(252, 252, 253, 0.3); }
summary {
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 0.6rem;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-weight: 800; font-size: 1.1rem; }
details[open] summary::before { content: "-"; }
details p { padding: 0 1.2rem 1rem; line-height: 1.7; }

/* Timeline & Steps */
.step-list { counter-reset: step; list-style: none; padding-left: 0; }
.step-list li {
  position: relative; padding-left: 3rem; margin-bottom: 2rem;
  counter-increment: step;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem;
  background: var(--color-accent); color: var(--color-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.section--dark .step-list li::before { background: var(--color-accent); color: var(--color-dark); }

/* Grid Utilities */
.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; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 768px) {
  .hero-layout { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* SVG & Animations */
svg { width: 100%; height: auto; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 6s ease forwards; }
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-breathe { animation: breathe 4.5s ease-in-out infinite; }
.anim-slide { animation: slide-in 0.8s ease-out forwards; }
@keyframes draw-line { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes slide-in { 0% { transform: translateX(-20px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .anim-draw, .anim-float, .anim-breathe, .anim-slide { animation: none !important; }
}
.transform-box-fill { transform-box: fill-box; transform-origin: center; }

/* News Cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.news-card { background: var(--color-paper); border: var(--border-thick); box-shadow: var(--shadow-hard); padding: 1.2rem; display: flex; flex-direction: column; }
.news-card time { font-size: 0.8rem; font-weight: 600; color: var(--color-brand); margin-bottom: 0.5rem; display: block; }
.section--dark .news-card { background: rgba(252, 252, 253, 0.08); border-color: rgba(252, 252, 253, 0.3); box-shadow: 4px 4px 0 rgba(252, 252, 253, 0.15); }
.section--dark .news-card time { color: var(--color-accent); }
.news-card h3 { margin-top: 0; font-size: 1.1rem; }
.news-card p { font-size: 0.95rem; margin-bottom: 0; }

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
