/* ==================== 设计 Token ==================== */
:root {
  /* 色板 */
  --color-dark: #19102D;
  --color-paper: #F4F3F7;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #D66EED;
  --color-paper-light: #EAE8F0;
  --color-dark-light: #2A1F45;

  /* 结构约束 */
  --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, "Helvetica Neue", Arial, sans-serif;
  --lh-body: 1.75;
  --tracking-eyebrow: 0.14em;
  --tracking-heading: 0.02em;

  /* 主题变量覆盖层 */
  --bg-surface: var(--color-paper);
  --text-body: var(--color-text);
  --text-heading: var(--color-text);
  --text-muted: var(--color-text);
  --accent-fill: var(--color-brand);
  --accent-stroke: var(--color-brand);
}

/* ==================== 基础重置与排版 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--text-body);
  background-color: var(--bg-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: var(--tracking-heading); 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: 1rem; max-width: 38em; }

/* ==================== 布局容器 ==================== */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.grid-layout {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 768px) {
  .grid-layout.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-layout.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==================== 主题覆盖 ==================== */
.theme-dark {
  --bg-surface: var(--color-dark);
  --text-body: var(--color-paper);
  --text-heading: var(--color-paper);
  --text-muted: rgba(244, 243, 247, 0.8);
  --accent-fill: var(--color-accent);
  --accent-stroke: var(--color-accent);
}
.theme-paper-light {
  --bg-surface: var(--color-paper-light);
  --text-body: var(--color-text);
  --text-heading: var(--color-text);
  --text-muted: var(--color-text);
  --accent-fill: var(--color-brand);
  --accent-stroke: var(--color-brand);
}
.theme-dark-light {
  --bg-surface: var(--color-dark-light);
  --text-body: var(--color-paper);
  --text-heading: var(--color-paper);
  --text-muted: rgba(244, 243, 247, 0.8);
  --accent-fill: var(--color-accent);
  --accent-stroke: var(--color-accent);
}

/* ==================== 眉标与高亮 ==================== */
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent-fill);
  margin-bottom: 0.75rem;
}
.hl { color: var(--accent-fill); }

/* ==================== 按钮 ==================== */
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding-inline: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: var(--accent-fill);
  color: var(--color-dark);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(0.95); }
.btn:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; }
.btn-secondary {
  background-color: transparent;
  border-color: var(--text-body);
  color: var(--text-body);
}
.btn-secondary:hover { background-color: rgba(0,0,0,0.05); }
.theme-dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.theme-dark .btn-secondary:hover { background-color: rgba(255,255,255,0.05); }

/* ==================== 卡片与面板 ==================== */
.card {
  background-color: var(--bg-surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  border-radius: var(--radius-card);
}
.panel {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: var(--gap);
  position: relative;
  overflow: hidden;
}

/* ==================== 表格 ==================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 100%;
    }
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}
th { font-weight: 700; padding-bottom: 1rem; }
td:first-child { font-weight: 600; width: 40%; }

/* ==================== FAQ Details ==================== */
details {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
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: 8px;
  height: 8px;
  background-color: currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::before { transform: rotate(135deg); }
details p { margin-top: 0.75rem; opacity: 0.9; }

/* ==================== SVG 动效 Keyframes ==================== */
@keyframes grid-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes flow-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes float-bubble {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-6px); opacity: 1; }
}
@keyframes slide-in-right {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.grid-node {
  animation: grid-pulse 4s infinite ease-in-out;
  animation-delay: calc(var(--d) * 0.5s);
}
.flow-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: flow-line 3s infinite linear;
}
.bubble {
  animation: float-bubble 5s infinite ease-in-out;
  animation-delay: var(--d);
}
.slide-up {
  animation: slide-in-right 1.5s infinite alternate ease-in-out;
}

/* ==================== 减少动态效果 ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==================== 页头页脚 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid currentColor;
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link {
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; }
.nav-link[aria-current="page"] { font-weight: 700; }
.site-footer {
  border-top: 1px solid currentColor;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.footer-links a:hover { text-decoration: underline; }

/* ==================== 辅助工具类 ==================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.fact-line { font-size: 0.85rem; opacity: 0.7; margin-top: 0.5rem; }
.icon-svg { width: 20px; height: 20px; stroke-width: 1.8; flex-shrink: 0; }
.step-list { counter-reset: step; }
.step-item {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}
.step-item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--accent-fill);
  color: var(--color-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 768px) {
  .scenario-grid { grid-template-columns: 1fr 1fr; }
}
.scenario-box {
  padding: var(--gap);
  border-left: 3px solid var(--accent-fill);
}
.news-card {
  padding: var(--gap);
  border: 1px solid currentColor;
  opacity: 0.9;
}
.news-date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  display: block;
}
.hero-stack { display: flex; flex-direction: column; gap: var(--gap); }
@media (min-width: 768px) {
  .hero-stack { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; min-width: 0; }
  .hero-visual { flex: 1; min-width: 0; }
}
svg { width: 100%; height: auto; }
svg rect, svg circle, svg path, svg line { transform-box: fill-box; transform-origin: center; }
