:root {
  --color-dark: #21163C;
  --color-paper: #E9E8EA;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #ED926E;
  --color-text-rgb: 25, 21, 35;
  --border-color: rgba(var(--color-text-rgb), 0.16);
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-shadow: none;
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  --font-h1: clamp(2rem, 4.6vw, 3.4rem);
  --font-h2: clamp(1.6rem, 3vw, 2.4rem);
  --font-body: 16px;
  --line-height-body: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: var(--color-paper);
  color: var(--color-text);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 页头与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(233, 232, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: var(--gap); align-items: center; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: rgba(var(--color-text-rgb), 0.06);
}
.nav-links a[aria-current="page"] { font-weight: 700; }
.btn-nav {
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
}
.btn-nav:hover { filter: brightness(0.95); }

/* 通用排版 */
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin-bottom: var(--gap);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bg-dark .section-title { color: var(--color-accent); }
.section-title::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
h1 {
  font-size: var(--font-h1);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 16px;
}
h2 {
  font-size: var(--font-h2);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}
p { margin: 0 0 12px; }
.hl { color: var(--color-brand); }
.bg-dark .hl { color: var(--color-accent); }

/* 按钮 */
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(0.96); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.bg-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn-secondary:hover { filter: brightness(0.95); }

/* 区块容器 */
section { padding: var(--section-y) 0; }
.bg-dark { background: var(--color-dark); color: var(--color-paper); }
.bg-paper { background: var(--color-paper); color: var(--color-text); }
.bg-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }

/* 卡片与面板 */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: var(--gap);
}
.bg-dark .card { background: var(--color-dark); border-color: rgba(233, 232, 234, 0.2); }
.panel {
  background: var(--color-dark);
  border-radius: var(--radius-card);
  padding: var(--gap);
  position: relative;
  overflow: hidden;
}
.panel-light { background: var(--color-paper); }

/* 图文交错布局 */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.feature-row.reverse .feature-visual { order: 2; }
.feature-row.reverse .feature-text { order: 1; }
@media (max-width: 768px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual { order: 0; }
  .feature-row.reverse .feature-text { order: 0; }
}
.visual-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-text-rgb), 0.03);
  border-radius: calc(var(--radius-card) - 4px);
  padding: 24px;
}
.visual-wrap svg { width: 100%; height: auto; }

/* 时间轴 */
.timeline { position: relative; padding-left: 24px; border-left: 2px solid var(--border-color); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -32px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 3px solid var(--color-paper);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.bg-dark .timeline-marker { border-color: var(--color-dark); }
.timeline-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 4px;
}
.bg-dark .timeline-time { color: var(--color-accent); }

/* 步骤徽标 */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  border-radius: 8px;
  margin-right: 12px;
  font-size: 0.9rem;
}

/* 新闻卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.news-card {
  background: var(--color-paper);
  border: var(--card-border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-date { font-size: 0.8rem; color: var(--color-brand); font-weight: 600; }
.bg-dark .news-date { color: var(--color-accent); }

/* 表格 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.spec-table th, .spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.spec-table th { font-weight: 600; width: 40%; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 16px; margin: 0; color: var(--color-text); }
.bg-dark .faq-item p { color: var(--color-paper); }

/* SVG 动效基础 */
.hero-svg { width: 100%; height: auto; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes drawStroke {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.animate-draw { animation: drawStroke 4s ease forwards; }
.float-slow { animation: floatMove 6s ease-in-out infinite alternate; }
@keyframes floatMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}
.breath-dot { animation: breathOpacity 4s ease-in-out infinite alternate; }
@keyframes breathOpacity {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}
.slide-in { animation: slideIn 5s ease-out forwards; }
@keyframes slideIn {
  0% { transform: translateX(20px); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
.gear-spin {
  animation: spinSlow 12s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@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;
  }
}

/* 页脚 */
.site-footer {
  background: var(--color-dark);
  color: var(--color-paper);
  padding: 48px 0 32px;
  margin-top: 64px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a:hover { color: var(--color-accent); }
.footer-copy { font-size: 0.85rem; opacity: 0.8; margin-top: 16px; }

/* 兜底：裁掉横向溢出 */
div {
  overflow-x: clip;
}
