:root {
  --color-dark: #19102D;
  --color-paper: #F4F3F7;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #D66EED;
  --color-bg-card-dark: #1e163a;
  --color-bg-card-light: #eaecf2;
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 0;
  --card-shadow: none;
  --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, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background-color: var(--color-paper);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--gap); }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1.5rem; max-width: 38em; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-brand);
}
.dark-section .eyebrow { color: var(--color-accent); }

.hl { color: var(--color-brand); }
.dark-section .hl { color: var(--color-accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  border-radius: var(--radius-btn);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}
.btn-primary:hover { background-color: #c55de0; }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.dark-section .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn-secondary:hover { opacity: 0.85; }

.card {
  background-color: var(--color-bg-card-light);
  padding: var(--gap);
  border-radius: var(--radius-card);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}
.dark-section .card { background-color: var(--color-bg-card-dark); color: var(--color-text); }

.grid { display: grid; gap: var(--gap); }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--gap);
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
th { font-weight: 700; }
.dark-section th, .dark-section td { border-bottom-color: rgba(255,255,255,0.15); }
td a { color: var(--color-brand); text-decoration: underline; }
.dark-section td a { color: var(--color-accent); }

details { margin-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 1rem; }
.dark-section details { border-bottom-color: rgba(255,255,255,0.15); }
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; }
details[open] summary::after { content: "-"; }
details p { margin-top: 0.75rem; }

header { position: sticky; top: 0; z-index: 100; background-color: var(--color-paper); border-bottom: 1px solid rgba(0,0,0,0.08); padding: 16px 0; }
.dark-section header { background-color: var(--color-dark); border-bottom-color: rgba(255,255,255,0.1); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
nav { display: flex; align-items: center; }
nav a { margin-left: 24px; text-decoration: none; color: var(--color-text); font-weight: 500; }
.dark-section nav a { color: var(--color-paper); }
nav a:hover { color: var(--color-brand); }
.dark-section nav a:hover { color: var(--color-accent); }
nav a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
.dark-section nav a[aria-current="page"] { color: var(--color-accent); }

footer { background-color: var(--color-dark); color: var(--color-paper); padding: var(--section-y) 0; text-align: center; }
footer a { color: var(--color-accent); text-decoration: none; }

/* SVG 动效 */
.svg-orbit { transform-origin: center; transform-box: fill-box; animation: orbit-breathe 6s ease-in-out infinite alternate; }
.svg-orbit:nth-child(2) { animation-delay: 1.5s; }
.svg-orbit:nth-child(3) { animation-delay: 3s; }
.svg-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: dash-flow 4s linear infinite; }

@keyframes orbit-breathe {
  0% { transform: scale(0.96); opacity: 0.6; }
  100% { transform: scale(1.04); opacity: 1; }
}
@keyframes dash-flow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .svg-orbit, .svg-draw { animation: none; }
}

@media (max-width: 768px) {
  .grid-cols-3 { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .hero-grid { grid-template-columns: 1fr !important; }
  nav a { margin-left: 16px; font-size: 0.9rem; }
}

/* 兜底：裁掉横向溢出 */
li {
  overflow-x: clip;
}
