: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: 1280px;
  --font-main: 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-main);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-body);
  background: 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: 0 auto;
  padding: 0 var(--gap);
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.5em; }
p { margin-bottom: 1em; max-width: 38em; }
.hl { color: var(--color-brand); }
.bg-dark .hl { color: var(--color-accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.5em;
}
.bg-dark .eyebrow { color: var(--color-accent); }

/* Layout Sections */
.section {
  padding: var(--section-y) 0;
}
.bg-dark { background-color: var(--color-dark); color: var(--color-paper); }
.bg-light { background-color: var(--color-paper); color: var(--color-body); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 233, 234, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 23, 35, 0.1);
}
.bg-dark ~ .site-header { background: rgba(18, 21, 49, 0.95); border-bottom-color: rgba(232, 233, 234, 0.1); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; }
.logo img { height: 32px; width: auto; }
nav { display: flex; gap: 24px; }
nav a { font-weight: 500; font-size: 0.95rem; position: relative; }
nav a:hover { color: var(--color-brand); }
nav a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
.bg-dark ~ .site-header nav a { color: var(--color-paper); }
.bg-dark ~ .site-header nav a:hover, .bg-dark ~ .site-header nav a[aria-current="page"] { color: var(--color-accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-secondary {
  background: transparent;
  color: var(--color-body);
  border: 2px solid var(--color-body);
}
.bg-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn-secondary:hover { transform: translateY(-2px); filter: brightness(0.9); }
.btn:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }

/* Cards */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: 24px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); }

/* Table */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.platform-table th, .platform-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(21, 23, 35, 0.15);
}
.platform-table th { font-weight: 700; width: 40%; }
.platform-table tr:last-child td { border-bottom: none; }

/* FAQ */
details {
  border: var(--card-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 20px 16px; color: var(--color-body); }

/* SVG Animation Base */
svg { width: 100%; height: auto; display: block; }
svg path, svg circle, svg rect, svg polygon { vector-effect: non-scaling-stroke; }
.anim-draw { animation: draw-line 4s ease-in-out infinite alternate; }
.anim-float { animation: float-y 6s ease-in-out infinite; }
.anim-rotate { animation: spin-slow 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-fade-in { animation: fade-up 5s ease-in-out infinite alternate; }
.anim-pulse { animation: pulse-opacity 3s ease-in-out infinite; }

@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes fade-up {
  0% { opacity: 0.4; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-opacity {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-draw, .anim-float, .anim-rotate, .anim-fade-in, .anim-pulse {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(21, 23, 35, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(21, 23, 35, 0.7);
}
.bg-dark .site-footer { border-top-color: rgba(232, 233, 234, 0.1); color: rgba(232, 233, 234, 0.7); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a:hover { text-decoration: underline; }

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
