:root {
  --color-dark: #121531;
  --color-paper: #E8E9EA;
  --color-body: #151723;
  --color-brand: #142CEB;
  --color-accent: #ED7D6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 2px solid var(--color-body);
  --card-shadow: 4px 4px 0 var(--color-body);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --font-main: 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-main);
  color: var(--color-body);
  background: var(--color-paper);
  line-height: 1.75;
  font-size: 16px;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; max-width: 38em; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 4px; }

.hl { color: var(--color-brand); }
.dark-section .hl { color: var(--color-accent); }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.paper-section .eyebrow { color: var(--color-brand); }
.dark-section .eyebrow { color: var(--color-accent); }

/* Layout */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-full { width: 100%; }

/* Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0 1.5rem; height: 52px; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-btn); text-decoration: none; cursor: pointer;
  border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { background: #d96b5c; }
.btn-secondary { background: transparent; border: 2px solid var(--color-body); color: var(--color-body); }
.dark-section .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.dark-section .btn-secondary:hover { background: rgba(255,255,255,0.1); }

.card {
  background: var(--color-paper); border: var(--card-border); border-radius: var(--radius-card);
  box-shadow: var(--card-shadow); padding: 1.5rem; position: relative;
}
.dark-section .card { background: #ffffff; border-color: #d0d2d6; box-shadow: 4px 4px 0 #d0d2d6; }

.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table th, .spec-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #ccc; }
.spec-table th { font-weight: 700; width: 40%; }
.dark-section .spec-table th, .dark-section .spec-table td { border-color: #444; }

.faq-item { border: var(--card-border); border-radius: var(--radius-card); margin-bottom: var(--gap); overflow: hidden; background: var(--color-paper); }
.dark-section .faq-item { background: #ffffff; border-color: #d0d2d6; }
.faq-item summary {
  padding: 1.25rem 1.5rem; font-weight: 600; cursor: pointer; 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 .faq-content { padding: 0 1.5rem 1.25rem; line-height: 1.7; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--color-accent); color: var(--color-dark);
  font-weight: 700; border-radius: 8px; margin-right: 0.75rem; flex-shrink: 0;
}

.alert-box {
  border-left: 4px solid var(--color-brand); background: rgba(20, 44, 235, 0.05);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin: 1.5rem 0; font-size: 0.95rem;
}
.dark-section .alert-box { border-left-color: var(--color-accent); background: rgba(237, 125, 110, 0.1); }

/* Header & Footer */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(232, 233, 234, 0.85);
  backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: #ccc; background: rgba(232, 233, 234, 0.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { height: 32px; width: auto; vertical-align: middle; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
.dark-section .nav-links a[aria-current="page"] { color: var(--color-accent); }

.site-footer { background: var(--color-dark); color: var(--color-paper); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-grid a { color: #aab; display: block; margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--color-accent); }
.copyright { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: #778; }

/* SVG Styles */
.svg-wrap { width: 100%; height: auto; max-width: 100%; display: block; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.anim-draw { animation: draw-line 6s ease-in-out infinite alternate; }
.anim-float { animation: float-soft 5s ease-in-out infinite; }
.anim-breathe { animation: breathe-opacity 3s ease-in-out infinite; }
.anim-slide { animation: slide-entry 7s ease-in-out infinite alternate; }
.anim-flow { animation: dash-flow 4s linear infinite; stroke-dasharray: 4 8; }

@keyframes draw-line { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe-opacity { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slide-entry { 0% { transform: translateX(15px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes dash-flow { 0% { stroke-dashoffset: 12; } 100% { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .draw-path { stroke-dashoffset: 0 !important; animation: none !important; }
  .anim-float, .anim-breathe, .anim-slide, .anim-flow { animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
