/* === 设计变量与基础重置 === */
:root {
  --c-dark: #13102D;
  --c-paper: #D6D4ED;
  --c-text: #171523;
  --c-brand: #2714EB;
  --c-accent: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(23, 21, 35, 0.3);
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  --line-h: 1.55;
  --font-title: 600;
  --font-body: 400;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background-color: var(--c-paper);
  color: var(--c-text);
  line-height: var(--line-h);
  -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: var(--font-title); line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { font-size: clamp(1rem, 1.1vw, 1.125rem); }

/* === 布局容器 === */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}

/* === 主题色控制 === */
.theme-dark {
  background-color: var(--c-dark);
  color: var(--c-paper);
}
.theme-dark .hl { color: var(--c-accent); }
.theme-dark .brand-link { color: var(--c-accent); }
.card-surface {
  background-color: var(--c-paper);
  color: var(--c-text);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: var(--gap);
}
.card-surface .hl { color: var(--c-brand); }
.card-surface .brand-link { color: var(--c-brand); }

/* === 页头与导航 === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--c-paper);
  border-bottom: 1px solid rgba(23, 21, 35, 0.08);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-logo img { height: 32px; width: auto; }
.nav-list { display: flex; gap: var(--gap); align-items: center; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  background-color: rgba(23, 21, 35, 0.06);
}
.nav-link[aria-current="page"] { font-weight: 700; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.btn-primary {
  background-color: var(--c-accent);
  color: var(--c-dark);
  box-shadow: 0 4px 14px rgba(137, 237, 110, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(137, 237, 110, 0.35); }
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--c-text);
  color: var(--c-text);
}
.theme-dark .btn-secondary {
  border-color: var(--c-paper);
  color: var(--c-paper);
}
.btn-secondary:hover { transform: translateY(-2px); opacity: 0.9; }

/* === 眉标与排版辅助 === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--c-brand);
}
.theme-dark .eyebrow { color: var(--c-accent); }
.hl { font-weight: 700; }
.text-muted { opacity: 0.8; }

/* === 网格与卡片 === */
.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); }
.feature-card {
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-card);
  padding: var(--gap);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -12px rgba(23, 21, 35, 0.35); }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(39, 20, 235, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: var(--c-brand);
}
.theme-dark .feature-icon { background: rgba(137, 237, 110, 0.15); color: var(--c-accent); }

/* === 表格 === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 12px;
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
}
.data-table th { font-weight: 600; opacity: 0.9; }
.data-table tr:last-child td { border-bottom: none; }

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
  padding: 16px 0;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 10px; opacity: 0.9; font-size: 0.95rem; }

/* === 场景对照 === */
.scene-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.scene-left { padding-right: 16px; border-right: 2px solid rgba(23,21,35,0.1); }
.scene-right { padding-left: 16px; }
.step-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--c-accent);
  color: var(--c-dark);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  margin-top: 2px;
}

/* === 新闻卡片 === */
.news-card {
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-card);
  padding: var(--gap);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-meta { font-size: 0.8rem; opacity: 0.7; margin-bottom: 8px; }
.news-card p { font-size: 0.95rem; opacity: 0.9; flex-grow: 1; }

/* === SVG 动效基础 === */
.svg-panel {
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible;
}
.svg-orbit { transform-box: fill-box; transform-origin: center; }
.svg-bubble { transform-box: fill-box; transform-origin: center; }
.svg-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulse-dots {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes slide-in {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.anim-breathe { animation: breathe 4s ease-in-out infinite; }
.anim-breathe-fast { animation: breathe 3s ease-in-out infinite 0.5s; }
.anim-float { animation: float 5s ease-in-out infinite; }
.anim-draw { animation: draw-line 2.5s ease-in-out infinite alternate; }
.anim-pulse { animation: pulse-dots 1.5s ease-in-out infinite; }
.anim-slide { animation: slide-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* === 响应式 === */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .mobile-toggle { display: block; }
  .scene-block { grid-template-columns: 1fr; }
  .scene-left { border-right: none; border-bottom: 2px solid rgba(23,21,35,0.1); padding-right: 0; padding-bottom: 16px; }
  .scene-right { padding-left: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* === 减少动态效果 === */
@media (prefers-reduced-motion: reduce) {
  .anim-breathe, .anim-breathe-fast, .anim-float, .anim-draw, .anim-pulse, .anim-slide {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
