/* ==================== 基础变量与重置 ==================== */
:root {
  /* 色板 */
  --color-bg-dark: #140E25;
  --color-bg-paper: #FCFCFD;
  --color-text-body: #191523;
  --color-brand: #5214EB;
  --color-accent: #6EEDD2;
  
  /* 结构 Token */
  --radius-card: 8px;
  --radius-btn: 6px;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1120px;
  --line-height: 1.65;
  
  /* 字体 */
  --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; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--line-height);
  color: var(--color-text-body);
  background: var(--color-bg-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
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);
}

.face-paper {
  --c-bg: var(--color-bg-paper);
  --c-text: var(--color-text-body);
  --c-brand: var(--color-brand);
  --c-accent: var(--color-accent);
  background: var(--c-bg);
  color: var(--c-text);
}

.face-dark {
  --c-bg: var(--color-bg-dark);
  --c-text: var(--color-bg-paper);
  --c-brand: var(--color-accent);
  --c-accent: var(--color-accent);
  background: var(--c-bg);
  color: var(--c-text);
}

.card-light {
  --c-bg: var(--color-bg-paper);
  --c-text: var(--color-text-body);
  --c-brand: var(--color-brand);
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: var(--radius-card);
  padding: var(--gap);
}

/* ==================== 排版系统 ==================== */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: var(--gap);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: var(--section-y);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: var(--gap);
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; max-width: 38em; }
strong { font-weight: 600; }

.hl { color: var(--c-brand); }
.face-dark .hl { color: var(--c-accent); }

/* ==================== 组件：按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.btn-primary {
  background: var(--c-accent);
  color: var(--color-bg-dark);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--c-text);
  color: var(--c-text);
}

/* ==================== 组件：卡片与网格 ==================== */
.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); }
.flex-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }

.card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
  padding: var(--gap);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-2px); }

/* ==================== 组件：表格 ==================== */
.table-wrap { overflow-x: auto; margin-top: var(--gap); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
th { font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ==================== 组件：FAQ ==================== */
details {
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  padding: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-brand);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::before { transform: rotate(135deg); }
details p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--c-text); opacity: 0.9; }

/* ==================== 页头与页脚 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 253, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list { display: flex; gap: 1.5rem; }
.nav-link { font-weight: 500; font-size: 0.95rem; }
.nav-link[aria-current="page"] { color: var(--color-brand); font-weight: 700; }

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-bg-paper);
  padding: var(--section-y) 0;
  margin-top: var(--section-y);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
}
.footer-col h4 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--color-accent); }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { opacity: 0.8; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.copyright {
  margin-top: var(--gap);
  padding-top: var(--gap);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ==================== SVG 动效 ==================== */
.svg-hero {
  width: 100%;
  height: auto;
  max-width: 520px;
}
.anim-float-slow { animation: floatSlow 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-float-fast { animation: floatFast 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLoop 5s ease-in-out infinite; }
.anim-breathe { animation: breathe 3s ease-in-out infinite; }
.anim-slide-up { animation: slideUp 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatFast {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes drawLoop {
  0%, 100% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
}
@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes slideUp {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
