:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #11151b;
  --bg-card: #161b22;
  --bg-elevated: #1c2129;
  --text-primary: #f0f2f5;
  --text-secondary: #a8b2c1;
  --text-muted: #7a8594;
  --accent: #00d68f;
  --accent-hover: #00b87a;
  --accent-glow: rgba(0, 214, 143, 0.25);
  --border: #2a3240;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", sans-serif;
  --max-width: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, background 0.2s ease; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-sm); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; color: var(--text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: var(--space-xs); }
p { margin-bottom: var(--space-sm); color: var(--text-secondary); }
ul, ol { padding-left: 1.2rem; margin-bottom: var(--space-sm); color: var(--text-secondary); }
li { margin-bottom: 0.5rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-sm); }
section { padding: var(--space-xl) 0; border-bottom: 1px solid var(--border); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto var(--space-lg); }
.section-header p { font-size: 1.1rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 2rem; font-weight: 600; font-size: 1rem; border-radius: var(--radius-md);
  background: var(--accent); color: #0a0c10; border: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,214,143,0.05); }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-sm); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.card-icon { width: 48px; height: 48px; margin-bottom: var(--space-sm); color: var(--accent); }
.card-body { flex: 1; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: auto; padding-top: var(--space-sm); }

/* Tables */
.table-wrapper { overflow-x: auto; margin: var(--space-sm) 0; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
th, td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-elevated); color: var(--text-primary); font-weight: 600; font-size: 0.95rem; }
td { color: var(--text-secondary); font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* FAQ */
.faq-item { margin-bottom: var(--space-sm); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
summary {
  padding: 1.1rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform 0.2s ease; flex-shrink: 0; margin-left: 1rem; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 1.2rem 1.2rem; color: var(--text-secondary); line-height: 1.7; }

/* Header & Nav */
header { position: sticky; top: 0; z-index: 100; background: rgba(10,12,16,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { height: 32px; width: auto; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { font-weight: 500; opacity: 0.85; font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; color: var(--accent); }

/* Footer */
footer { background: var(--bg-secondary); padding: var(--space-xl) 0 var(--space-md); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { margin-bottom: 1rem; color: var(--text-primary); font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* SVG Animation Base */
.svg-container { width: 100%; max-width: 400px; margin: 0 auto; }
.orbit-group { transform-origin: center; transform-box: fill-box; }
@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 1; }
}
.orbit-ring { animation: orbit-breathe 6s ease-in-out infinite; }
.orbit-ring:nth-child(2) { animation-delay: 2s; animation-duration: 7s; }
.orbit-ring:nth-child(3) { animation-delay: 4s; animation-duration: 8s; }

@keyframes stroke-draw {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: stroke-draw 4s ease forwards; }
@keyframes pulse-shield {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}
.pulse-element { animation: pulse-shield 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .orbit-ring, .pulse-element { animation: none; }
  .draw-path { animation: none; stroke-dashoffset: 0; }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
