:root {
  --bg-root: #08090D;
  --bg-surface: #11131A;
  --bg-card: #161822;
  --bg-card-hover: #1C1E2B;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(37, 211, 102, 0.25);
  --text-primary: #F4F6F9;
  --text-secondary: #8A93A6;
  --text-muted: #5C6377;
  --accent: #25D366;
  --accent-hover: #1EBF5A;
  --accent-glow: rgba(37, 211, 102, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 2px 12px rgba(37, 211, 102, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --container-max: 1180px;
  --space-section: clamp(5rem, 12vw, 9rem);
  --space-block: clamp(2.5rem, 6vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-root);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2rem); }

/* Typography */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; color: var(--text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.5em; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-block { margin-top: var(--space-block); }

/* Layout Utilities */
.grid-auto { display: grid; gap: var(--space-block); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.section-wrapper { padding: var(--space-section) 0; position: relative; }
.section-header { max-width: 720px; margin-bottom: calc(var(--space-block) * 1.2); }
.section-header p { font-size: 1.1rem; margin-top: 0.5rem; }

/* Components: Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.8rem; border-radius: var(--radius-md); font-weight: 500; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent); color: #0A0A0A; box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent; border-color: var(--border-subtle); color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Components: Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 1.8rem; transition: background 0.2s, border-color 0.2s;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border-accent); }
.card-icon { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--accent); }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--text-primary); }
.card-body { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

/* Components: Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th, .data-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.data-table th { background: rgba(255,255,255,0.03); font-weight: 500; color: var(--text-primary); }
.data-table td { color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Components: Details/FAQ */
details { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: 1rem; background: var(--bg-card); overflow: hidden; }
details[open] { border-color: var(--border-accent); }
summary {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 500; color: var(--text-primary);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-muted); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details .faq-answer { padding: 0 1.5rem 1.2rem; color: var(--text-secondary); line-height: 1.7; }

/* Components: List Markers */
.list-custom li { position: relative; padding-left: 1.8rem; margin-bottom: 0.8rem; color: var(--text-secondary); }
.list-custom li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent); opacity: 0.8; transform: rotate(45deg);
}

/* Header & Footer */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(8, 9, 13, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { height: 32px; width: auto; }
.brand-name { font-weight: 600; font-size: 1.1rem; color: var(--text-primary); }
.nav-list { display: flex; gap: 1.5rem; }
.nav-link { font-size: 0.95rem; color: var(--text-secondary); position: relative; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 1px; }

.site-footer { border-top: 1px solid var(--border-subtle); background: var(--bg-surface); padding: 3rem 0 2rem; margin-top: var(--space-section); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer-col a { display: block; margin-bottom: 0.6rem; color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* SVG Animation Base */
.svg-draw { fill: none; stroke: var(--text-secondary); stroke-width: 1.5; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.svg-draw.accent { stroke: var(--accent); }
@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.svg-node { fill: var(--accent); opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; }
@keyframes nodeFloat {
  0%, 100% { transform: scale(0.6) translateY(0); opacity: 0; }
  15% { opacity: 0.9; transform: scale(1) translateY(0); }
  85% { opacity: 0.9; transform: scale(1) translateY(0); }
  100% { transform: scale(0.6) translateY(0); opacity: 0; }
}
.anim-draw { animation: drawLine 3s ease-out forwards; }
.anim-delay-1 { animation-delay: 0.4s; }
.anim-delay-2 { animation-delay: 0.8s; }
.anim-delay-3 { animation-delay: 1.2s; }
.anim-node { animation: nodeFloat 4s ease-in-out infinite alternate; animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .anim-draw, .anim-node { animation: none !important; opacity: 1; transform: scale(1); stroke-dashoffset: 0 !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .grid-auto { grid-template-columns: 1fr; }
  .header-inner { height: 56px; }
}
