/* =========================================
   全局设计变量与基础重置
   ========================================= */
:root {
  --color-bg: #090d14;
  --color-surface: #111722;
  --color-surface-hover: #161e2d;
  --color-border: #1f2937;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-accent: #00e676;
  --color-accent-hover: #00c853;
  --color-accent-subtle: rgba(0, 230, 118, 0.12);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: "Noto Sans SC Condensed", "PingFang SC", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --transition-base: 0.25s 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: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* 辅助类 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section-header { margin-bottom: 48px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
}

/* =========================================
   页头与导航
   ========================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.nav-list { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.95rem; color: var(--color-text-secondary);
  position: relative; padding: 4px 0;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-text-primary); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px;
  background: var(--color-accent); border-radius: 1px;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 768px) {
  .nav-list { display: none; }
  .mobile-toggle { display: block; }
}

/* =========================================
   通用组件：按钮 / 卡片 / 表格 / FAQ
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 99px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition-base);
}
.btn-primary {
  background: var(--color-accent); color: #001a0f;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent; border-color: var(--color-border); color: var(--color-text-secondary);
}
.btn-outline:hover { border-color: var(--color-text-primary); color: var(--color-text-primary); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 24px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.table-wrapper { overflow-x: auto; margin-top: 24px; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th, .data-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
.data-table th { background: var(--color-surface-hover); font-weight: 600; color: var(--color-text-primary); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }

details.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden;
}
details.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 500; user-select: none;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; font-size: 1.2rem; transition: transform var(--transition-base);
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-content { padding: 0 20px 16px; color: var(--color-text-secondary); line-height: 1.65; }

/* =========================================
   SVG 动效系统
   ========================================= */
.svg-anim-container { position: relative; width: 100%; overflow: hidden; }
.svg-path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stroke-animated {
  pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0;
}
@keyframes drawPath {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.draw-line { animation: drawPath 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.float-node { animation: floatNode 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.delay-1 { animation-delay: 0.6s; }
.delay-2 { animation-delay: 1.2s; }
.delay-3 { animation-delay: 1.8s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .draw-line, .float-node { animation: none !important; }
  .svg-path { stroke-dashoffset: 0 !important; }
}

/* =========================================
   焦点与无障碍
   ========================================= */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--color-accent); color: #001a0f; padding: 8px 16px; z-index: 200; }
.skip-link:focus { top: 0; }

/* 隐藏滚动条但保留功能 */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
