:root {
  --color-dark: #21163C;
  --color-paper: #E9E8EA;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #ED926E;
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  --font-sans: 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-sans);
  background: var(--color-paper);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

.container { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gap); }
section { padding-block: var(--section-y); }
.bg-dark { background: var(--color-dark); color: var(--color-paper); }
.bg-dark a { color: var(--color-accent); }
.bg-dark a:hover { color: var(--color-paper); }
.bg-dark .hl { color: var(--color-accent); }
.bg-dark .eyebrow { color: var(--color-accent); }
.bg-dark .timeline-item { border-left-color: var(--color-accent); }
.bg-dark .timeline-item::before { background: var(--color-accent); color: var(--color-dark); }
.bg-dark .step-num { background: var(--color-accent); color: var(--color-dark); }
.bg-dark details { border-color: rgba(233, 232, 234, 0.15); }
.bg-dark details > div { color: var(--color-paper); }
.bg-dark table th, .bg-dark table td { border-bottom-color: rgba(233, 232, 234, 0.15); color: var(--color-paper); }
.bg-dark table th { color: var(--color-accent); }
.bg-dark .news-card { background: rgba(233, 232, 234, 0.05); border-color: rgba(233, 232, 234, 0.1); color: var(--color-paper); }
.bg-dark .news-date { color: var(--color-accent); }
.bg-dark li strong { color: var(--color-paper); }
.bg-dark li span { color: rgba(233, 232, 234, 0.8); }

.bg-paper { background: var(--color-paper); color: var(--color-text); }
.bg-paper .eyebrow { color: var(--color-brand); }
.bg-paper .timeline-item { border-left-color: var(--color-brand); }
.bg-paper .timeline-item::before { background: var(--color-brand); color: #fff; }
.bg-paper .step-num { background: var(--color-accent); color: var(--color-dark); }
.bg-paper details { border-color: rgba(25, 21, 35, 0.1); }
.bg-paper table th, .bg-paper table td { border-bottom-color: rgba(25, 21, 35, 0.1); }
.bg-paper table th { color: var(--color-brand); }
.bg-paper .news-card { background: var(--color-paper); border: 1px solid rgba(25, 21, 35, 0.08); color: var(--color-text); }
.bg-paper .news-date { color: var(--color-brand); }
.bg-paper li strong { color: var(--color-text); }
.bg-paper li span { color: rgba(25, 21, 35, 0.7); }

/* Typography */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; letter-spacing: 0.02em; margin-bottom: var(--gap); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: calc(var(--gap) * 0.75); text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: calc(var(--gap) * 0.5); line-height: 1.3; }
p { margin-bottom: 1rem; max-width: 65ch; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.hl { color: var(--color-brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-btn);
  font-weight: 600; cursor: pointer; border: none; font-size: 1rem;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--color-accent); color: #191523; }
.bg-dark .btn-primary { color: #ffffff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(237, 146, 110, 0.4); }
.btn-secondary { background: transparent; border: 2px solid var(--color-text); color: var(--color-text); }
.bg-dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.bg-dark .btn-secondary:hover { background: rgba(233, 232, 234, 0.1); }

/* Layout Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }

/* Cards */
.paper-card { background: var(--color-paper); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: var(--gap); border: var(--card-border); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-block: var(--gap); }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(25, 21, 35, 0.1); }
th { font-weight: 700; }

/* FAQ Details */
details { margin-bottom: var(--gap); border-radius: var(--radius-card); overflow: hidden; }
summary { padding: 1rem; 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; transition: transform 0.2s; }
details[open] summary::after { content: "-"; transform: rotate(90deg); }
details > div { padding: 0 1rem 1rem; line-height: 1.7; }

/* Timeline */
.timeline-item { position: relative; padding-left: 2rem; border-left: 2px solid var(--color-brand); margin-bottom: var(--gap); }
.timeline-item::before { content: attr(data-time); position: absolute; left: -1.5rem; top: 0; padding: 0.25rem 0.5rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.timeline-item h3 { margin-bottom: 0.5rem; }

/* Steps */
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; margin-bottom: 0.5rem; font-weight: 800; }

/* Header / Footer */
header { position: sticky; top: 0; z-index: 100; background: rgba(233, 232, 234, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(25, 21, 35, 0.08); }
.bg-dark header { background: rgba(33, 22, 60, 0.95); border-bottom-color: rgba(233, 232, 234, 0.1); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; color: inherit; text-decoration: none; }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-brand); }
.bg-dark nav a[aria-current="page"] { color: var(--color-accent); }
footer { background: var(--color-dark); color: var(--color-paper); padding: var(--section-y) 0; text-align: center; }
footer a { color: var(--color-accent); }
footer ul { display: flex; justify-content: center; gap: 2rem; list-style: none; flex-wrap: wrap; margin-bottom: 1.5rem; }
footer p { font-size: 0.85rem; opacity: 0.7; }

/* SVG Responsive Wrapper */
.svg-wrap { width: 100%; height: auto; }
.svg-wrap svg { width: 100%; height: auto; display: block; }

/* SVG Animations */
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes drawLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.svg-orbit { animation: breathe 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.svg-line-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 3s ease forwards; }
.svg-bubble { animation: slideIn 0.8s ease forwards, float 4s ease-in-out infinite 0.8s; transform-origin: center; transform-box: fill-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 兜底：裁掉横向溢出 */
article.paper-card {
  overflow-x: clip;
}
