:root {
  /* 色板 */
  --color-dark: #1B1231;
  --color-paper: #F4F3F7;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #9977EE;

  /* 结构性 Token */
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 2px solid var(--color-text);
  --card-shadow: 4px 4px 0 var(--color-text);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;

  /* 排版 */
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* 布局容器 */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-block: var(--section-y);
  padding-inline: var(--gap);
}

.section {
  background-color: var(--color-paper);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-paper);
}

.section--dark .hl {
  color: var(--color-accent);
}

.section--dark .eyebrow {
  color: var(--color-accent);
}

.section--dark .card {
  background-color: var(--color-paper);
  color: var(--color-text);
  border-color: var(--color-text);
  box-shadow: var(--card-shadow);
}

.section--dark .card--outline {
  background-color: transparent;
  border-color: var(--color-paper);
  box-shadow: 4px 4px 0 var(--color-paper);
}

/* 排版组件 */
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-brand);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

p {
  max-width: 38em;
  margin-bottom: 1rem;
}

.hl {
  color: var(--color-brand);
}

.section--dark .hl {
  color: var(--color-accent);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text);
}

.section--dark .btn--secondary {
  border-color: var(--color-paper);
  color: var(--color-paper);
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* 卡片与面板 */
.card {
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  background-color: var(--color-paper);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.panel {
  border-radius: var(--radius-card);
  padding: var(--gap);
  background-color: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.1);
}

/* 网格系统 */
.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);
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: center;
}

/* 表格 */
.table-wrapper {
  overflow-x: auto;
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--color-text);
}

.section--dark th, .section--dark td {
  border-bottom-color: var(--color-paper);
}

td:first-child {
  font-weight: 600;
  width: 30%;
}

a.link-accent {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--dark a.link-accent {
  color: var(--color-accent);
}

/* 导航与页头 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-paper);
  border-bottom: 1px solid rgba(25,21,35,0.08);
  transition: box-shadow 0.2s ease;
}

.header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0.75rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
  color: var(--color-brand);
}

/* 页脚 */
.footer {
  border-top: 2px solid var(--color-text);
  padding-block: var(--gap);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-col h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq-item {
  border-bottom: 2px solid var(--color-text);
}

.section--dark .faq-item {
  border-bottom-color: var(--color-paper);
}

.faq-item summary {
  padding: 1rem 0;
  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;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: inherit;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-text);
}

.section--dark .timeline::before {
  background-color: var(--color-paper);
}

.timeline-step {
  position: relative;
  margin-bottom: 2rem;
}

.step-num {
  position: absolute;
  left: -2.8rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-weight: 800;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* SVG 基础 */
.svg-container {
  width: 100%;
  height: auto;
  max-width: 100%;
}

svg {
  overflow: visible;
}

/* SVG 动效 Keyframes */
@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes dash-flow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

@keyframes float-bubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.anim-orbit circle {
  animation: orbit-breathe 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.anim-orbit-delay-1 circle { animation-delay: -2s; }
.anim-orbit-delay-2 circle { animation-delay: -4s; }

.anim-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: dash-flow 4s linear infinite;
}

.anim-float {
  animation: float-bubble 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.anim-pulse {
  animation: pulse-dot 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* 减少动态效果 */
@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;
  }
  .anim-orbit circle, .anim-draw, .anim-float, .anim-pulse {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column;
  }
  .hero-visual {
    order: -1;
    max-width: 90%;
    margin: 0 auto;
  }
  .nav-links {
    display: none;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}
