:root {
  --dark: #240F29;
  --paper: #F6F3F7;
  --text: #201523;
  --brand: #A711CF;
  --accent: #ED6E73;
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 2px solid var(--text);
  --card-shadow: 4px 4px 0 var(--text);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  --font-main: 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-main);
  color: var(--text);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 排版基础 */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--gap); }
h3 { font-size: 1.25rem; margin-bottom: 0.8em; }
p { max-width: 38em; margin-bottom: 1.2em; }
a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }

/* 表面层变量覆盖 */
.dark-surface { background: var(--dark); color: var(--paper); }
.dark-surface a { color: var(--accent); }
.dark-surface .hl { color: var(--accent); }
.dark-surface .eyebrow { color: var(--accent); }
.paper-surface { background: var(--paper); color: var(--text); }
.paper-surface .hl { color: var(--brand); }
.paper-surface .eyebrow { color: var(--brand); }

/* 容器与区块 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
section { padding-block: var(--section-y); }
.section-header { margin-bottom: calc(var(--gap) * 1.5); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.5em; }
.hl { font-weight: 600; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  height: 52px; padding: 0 1.75em;
  font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { filter: brightness(0.92); transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 2px solid var(--text); color: var(--text); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.dark-surface .btn-secondary { border-color: var(--paper); color: var(--paper); }
.dark-surface .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 卡片 */
.card {
  background: var(--paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  position: relative;
}
.dark-surface .card { background: var(--paper); color: var(--text); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 0.8em 1em; border-bottom: 1px solid var(--text); text-align: left; vertical-align: top; }
th { font-weight: 600; width: 35%; }
td { word-break: break-word; }

/* FAQ */
details { border: var(--card-border); margin-bottom: 1em; }
summary {
  padding: 1em; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
summary:hover { background: rgba(32,21,35,0.03); }
summary::after { content: "+"; font-size: 1.4em; line-height: 1; font-weight: 400; }
details[open] summary::after { content: "-"; }
details > div { padding: 1em; border-top: 1px solid var(--text); line-height: 1.7; }

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid rgba(32,21,35,0.08); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6em; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand img { height: 28px; width: auto; }
.nav-list { display: flex; gap: 1.5em; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--brand); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2em; justify-content: space-between; padding-block: 2em; border-top: 1px solid rgba(246,243,247,0.15); }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.8em; color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5em; }
.footer-col a { color: var(--paper); text-decoration: none; opacity: 0.8; font-size: 0.9rem; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-copy { font-size: 0.8rem; opacity: 0.6; margin-top: 2em; }

/* 布局工具 */
.flex-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--gap); }

/* SVG 动效基础 */
svg { width: 100%; height: auto; }
.svg-transform-target { transform-box: fill-box; transform-origin: center; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.float { animation: float-gentle 6s ease-in-out infinite; }
.breathe { animation: breathe 3s ease-in-out infinite; }
.grid-node { opacity: 0.1; fill: var(--brand); animation: grid-light 12s step-end infinite; }
.grid-node:nth-child(3n+1) { animation-delay: -1s; }
.grid-node:nth-child(3n+2) { animation-delay: -4s; }
.grid-node:nth-child(3n) { animation-delay: -7s; }

@keyframes draw-line {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes grid-light {
  0%, 15% { opacity: 0.1; fill: var(--brand); }
  20%, 35% { opacity: 1; fill: var(--accent); }
  40%, 100% { opacity: 0.1; fill: var(--brand); }
}

/* 减少动态效果 */
@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;
  }
  .draw, .float, .breathe, .grid-node {
    animation: none !important;
    opacity: 1 !important;
    fill: var(--brand) !important;
    stroke-dashoffset: 0 !important;
  }
}

/* 辅助类 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-svg { width: 20px; height: 20px; stroke-width: 1.8; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--accent); color: var(--dark); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.timeline-item { display: flex; gap: 1em; align-items: flex-start; margin-bottom: 2em; }
.timeline-content { flex: 1; }
.feature-item { border: var(--card-border); padding: var(--gap); background: var(--paper); }
.scenario-panel { border: var(--card-border); padding: var(--gap); background: var(--paper); }
.news-date { font-size: 0.8rem; color: var(--text); opacity: 0.7; margin-bottom: 0.5em; display: block; }
