:root {
  /* 色板 */
  --color-dark: #141838;
  --color-paper: #FCFCFD;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #6EAFED;
  /* 结构 token */
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 2px solid var(--color-text);
  --card-shadow: 4px 4px 0 var(--color-text);
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  /* 字体 */
  --font-sans: 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-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

/* 容器 */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 253, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 23, 35, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-brand); }
.nav a[aria-current="page"] { font-weight: 700; }
.header-btn { margin-left: 16px; }

/* 区块通用 */
.section { padding: var(--section-y) 0; }
.section.dark { background: var(--color-dark); color: var(--color-paper); }
.section.dark .micro-label { color: var(--color-accent); }
.section.dark h2, .section.dark h3, .section.dark p { color: var(--color-paper); }
.section.dark .hl { color: var(--color-accent); }
.section.paper { background: var(--color-paper); color: var(--color-text); }
.section.paper .micro-label { color: var(--color-brand); }
.micro-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}
p { margin-bottom: 16px; max-width: 38em; }
.hl { color: var(--color-brand); }
.section.dark .hl { color: var(--color-accent); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}
.section.dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn-secondary:hover { background: rgba(21, 23, 35, 0.05); }
.section.dark .btn-secondary:hover { background: rgba(252, 252, 253, 0.1); }
.icon-btn { width: 20px; height: 20px; flex-shrink: 0; }

/* 卡片与面板 */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-2px); }
.panel {
  background: var(--color-dark);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.section.dark .panel { background: rgba(252, 252, 253, 0.08); border: 1px solid rgba(252, 252, 253, 0.15); }

/* 网格布局 */
.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; }

/* 表格 */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.spec-table th, .spec-table td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(21, 23, 35, 0.1); }
.spec-table th { font-weight: 700; width: 40%; }
.section.dark .spec-table th, .section.dark .spec-table td { border-color: rgba(252, 252, 253, 0.15); color: var(--color-paper); }

/* FAQ */
.faq-item { margin-bottom: 16px; border: var(--card-border); border-radius: var(--radius-card); overflow: hidden; }
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(21, 23, 35, 0.03);
}
.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 .faq-content { padding: 16px 20px; line-height: 1.65; }

/* 页脚 */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(21, 23, 35, 0.1);
  background: var(--color-paper);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-col h4 { font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--color-text); text-decoration: none; margin-bottom: 8px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-brand); }
.copyright { margin-top: 32px; font-size: 0.85rem; color: rgba(21, 23, 35, 0.6); }

/* SVG 动效基础 */
.svg-container { width: 100%; height: auto; max-width: 100%; display: block; }
.hero-svg { width: 100%; height: auto; }
.draw-line {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 3s ease-in-out infinite alternate;
}
.float-up { animation: float-up 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }
.slide-in-panel { animation: slide-in 0.8s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes draw-line {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式 */
@media (max-width: 768px) {
  .nav { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-layout { flex-direction: column; }
  .magazine-layout { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
