/* 设计变量与基础重置 */
:root {
  /* 色板 */
  --color-deep: #140E25;
  --color-paper: #F7F5F3;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #C8ED6E;

  /* 组件与布局 token */
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;

  /* 字体与排版 */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --line-height-body: 1.65;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-paper);
  color: var(--color-text);
  line-height: var(--line-height-body);
  -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; }

/* 容器 */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 245, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(25, 21, 35, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background-color: rgba(247, 245, 243, 0.98);
  border-bottom-color: rgba(25, 21, 35, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--color-brand);
}
.nav-link[aria-current="page"] { font-weight: 700; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-deep);
  box-shadow: 0 4px 12px rgba(200, 237, 110, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(200, 237, 110, 0.5); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.btn-secondary:hover { background-color: rgba(25, 21, 35, 0.05); }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* 眉标与标题 */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.paper-surface .section-eyebrow { color: var(--color-brand); }
.deep-surface .section-eyebrow { color: var(--color-accent); }

h1, h2, h3 { line-height: 1.25; font-weight: 600; }
.hero-h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.15;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 24px;
}
.highlight-word { color: var(--color-brand); }
.deep-surface .highlight-word { color: var(--color-accent); }

/* 区块通用 */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.paper-surface { background-color: var(--color-paper); color: var(--color-text); }
.deep-surface { background-color: var(--color-deep); color: var(--color-paper); }
.deep-surface p, .deep-surface li { color: var(--color-paper); opacity: 0.9; }
.deep-surface a { color: var(--color-accent); }
.deep-surface .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }

/* 图文交错 */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.split-row.reverse .split-text { order: 2; }
.split-row.reverse .split-visual { order: 1; }
.split-text h3 { font-size: 1.5rem; margin-bottom: 16px; }
.split-text ul { margin-top: 16px; padding-left: 0; }
.split-text li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.split-text li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background-color: var(--color-brand);
}
.deep-surface .split-text li::before { background-color: var(--color-accent); }

.visual-panel {
  background-color: var(--color-deep);
  border-radius: 16px;
  padding: 32px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* 流程条 */
.flow-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.flow-node {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 16px 24px;
  text-align: center;
  min-width: 180px;
}
.flow-arrow { width: 32px; height: 32px; color: var(--color-accent); }

/* 表格 */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.spec-table th, .spec-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(25, 21, 35, 0.1);
  text-align: left;
}
.spec-table th { font-weight: 700; width: 40%; }
.deep-surface .spec-table th, .deep-surface .spec-table td { border-bottom-color: rgba(247, 245, 243, 0.1); }

/* FAQ */
.faq-list { margin-top: 32px; }
.faq-item {
  border-bottom: 1px solid rgba(25, 21, 35, 0.1);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  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.5rem;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; line-height: 1.7; color: var(--color-text); opacity: 0.85; }
.deep-surface .faq-item { border-bottom-color: rgba(247, 245, 243, 0.1); }
.deep-surface .faq-item p { color: var(--color-paper); }

/* 资讯卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  margin-top: 32px;
}
.news-card {
  background: #fff;
  border: 1px solid rgba(25, 21, 35, 0.08);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.news-card time { font-size: 0.85rem; color: var(--color-brand); font-weight: 600; display: block; margin-bottom: 8px; }
.news-card h4 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.3; }
.news-card p { font-size: 0.95rem; color: var(--color-text); opacity: 0.8; }

/* 快速开始 */
.quick-start-steps { margin-top: 32px; counter-reset: step; }
.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background-color: var(--color-accent);
  color: var(--color-deep);
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.step-content h4 { font-size: 1.1rem; margin-bottom: 6px; }
.step-content p { font-size: 0.95rem; opacity: 0.85; }

/* 页脚 */
.site-footer {
  background-color: var(--color-deep);
  color: var(--color-paper);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(247, 245, 243, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--color-accent); }
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.95rem; opacity: 0.8; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(247, 245, 243, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* SVG 动效 Keyframes & Classes */
@keyframes draw-line {
  0%, 100% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes breathe-opacity {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes slide-in-right {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.draw-path { animation: draw-line 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.float-element { animation: float-gentle 4s ease-in-out infinite; }
.breath-element { animation: breathe-opacity 3s ease-in-out infinite; }
.rotate-geo { animation: rotate-slow 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.slide-in-delay { animation: slide-in-right 0.8s ease-out forwards; animation-delay: 0.3s; opacity: 0; }

svg { width: 100%; height: auto; }
svg g, svg path, svg circle, svg rect, svg line, svg polygon {
  transform-box: fill-box;
  transform-origin: center;
}

/* 响应式 */
@media (max-width: 768px) {
  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse .split-text { order: 1; }
  .split-row.reverse .split-visual { order: 2; }
  .header-inner { height: 56px; }
  .nav-links { gap: 16px; }
  .flow-bar { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

@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;
  }
}
