:root {
  --bg-root: #0a0a0d;
  --bg-surface: #131318;
  --bg-card: #1a1a21;
  --bg-elevated: #22222a;
  --text-main: #ececf1;
  --text-muted: #8b8b96;
  --accent: #00d68f;
  --accent-hover: #00b87a;
  --accent-glow: rgba(0, 214, 143, 0.15);
  --border: #2a2a35;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-container: 1200px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg-root);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; color: var(--text-main); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-stretch: condensed; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); margin-bottom: 0.8rem; }
p { color: var(--text-muted); margin-bottom: 1.2rem; max-width: 68ch; }
ul, ol { padding-left: 1.5rem; color: var(--text-muted); }
li { margin-bottom: 0.6rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
strong { color: var(--text-main); font-weight: 600; }

/* Layout */
.container { max-width: var(--space-container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.text-center { text-align: center; }
.mb-large { margin-bottom: 48px; }

/* Header & Nav */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(10, 10, 13, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 100; height: 72px;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand span { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }
nav ul { list-style: none; display: flex; gap: 8px; }
nav a {
  display: block; padding: 8px 16px; font-size: 0.95rem; color: var(--text-muted);
  border-radius: var(--radius-sm); transition: all var(--transition-fast);
}
nav a:hover, nav a[aria-current="page"] { color: var(--text-main); background: rgba(255,255,255,0.06); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all var(--transition-base); border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; transition: transform var(--transition-base), border-color var(--transition-base);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon { width: 48px; height: 48px; margin-bottom: 16px; color: var(--accent); }
.card-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Tables */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: rgba(255,255,255,0.03); font-weight: 600; color: var(--text-main); }
td { color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
.table-link { color: var(--accent); text-decoration: none; }
.table-link:hover { text-decoration: underline; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
details { margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); }
summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--text-main);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; transition: transform var(--transition-fast); }
details[open] summary { border-bottom: 1px solid var(--border); }
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 18px 24px; color: var(--text-muted); line-height: 1.8; }

/* News & Related */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; display: block; }
.news-card .btn { margin-top: auto; align-self: flex-start; }
.related-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.related-item { display: flex; gap: 12px; align-items: start; padding: 12px; border-radius: var(--radius-sm); transition: background var(--transition-fast); }
.related-item:hover { background: var(--bg-elevated); }
.related-item strong { display: block; margin-bottom: 4px; color: var(--text-main); font-weight: 500; }
.related-item small { color: var(--text-muted); font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 60px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--text-main); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 0.9rem; }

/* SVG Animations */
.svg-anim-group { width: 100%; max-width: 600px; margin: 0 auto; }
.draw-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes traceRoute {
  0% { stroke-dashoffset: 0; }
  15% { stroke-dashoffset: 1; }
  30% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
.trace-route { animation: traceRoute 6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

.float-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeFloat 4s ease-in-out infinite;
}
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .trace-route, .float-node { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-split { grid-template-columns: 1fr; gap: 40px; }
  .grid-gallery { grid-template-columns: 1fr 1fr; }
  nav ul { gap: 4px; }
  nav a { padding: 8px 10px; font-size: 0.85rem; }
}
@media (max-width: 600px) {
  .grid-gallery { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
}
