/* ==================== 设计变量与基础重置 ==================== */
:root {
  --bg-page: #0a0c10;
  --bg-section: #0f1117;
  --bg-card: #161922;
  --bg-card-hover: #1e222f;
  --border-card: #2a2f3e;
  --accent: #25D366;
  --accent-hover: #1fbe57;
  --accent-glow: rgba(37, 211, 102, 0.25);
  --text-primary: #e8eaed;
  --text-secondary: #9aa0ab;
  --text-muted: #6b7280;
  --font-title: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 0 16px var(--accent-glow);
  --container-max: 1120px;
  --header-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ==================== 排版与容器 ==================== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }
.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 32px;
}
.text-accent { color: var(--accent); }

/* ==================== 头部与导航 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  display: flex; align-items: center;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; }
.brand-img { width: 36px; height: 36px; object-fit: contain; }
.main-nav { display: flex; gap: 24px; }
.nav-link {
  font-size: 0.95rem; color: var(--text-secondary);
  padding: 8px 4px; position: relative; transition: color 0.2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text-primary); }
.nav-link[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 4px; left: 0; width: 100%; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* ==================== 按钮与组件 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-weight: 600; cursor: pointer; transition: all 0.25s;
  font-size: 1rem; border: none; outline: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline {
  background: transparent; border: 1px solid var(--border-card); color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.card {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-card); }

/* ==================== 表格样式 ==================== */
.table-wrapper { overflow-x: auto; margin-top: 24px; border-radius: var(--radius-md); border: 1px solid var(--border-card); }
table { width: 100%; min-width: 500px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-card); }
th { background: rgba(0,0,0,0.25); font-weight: 600; color: var(--text-primary); }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

/* ==================== FAQ 手风琴 ==================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
details {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-md); padding: 16px 20px;
  transition: border-color 0.2s;
}
details[open] { border-color: var(--accent); }
summary {
  cursor: pointer; font-weight: 600; color: var(--text-primary);
  list-style: none; display: flex; align-items: center; gap: 10px;
}
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; }
summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
  font-size: 0.85rem; transition: transform 0.2s;
}
details[open] summary::before { content: "−"; background: var(--accent); color: #000; transform: rotate(90deg); }
.details-content { margin-top: 12px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ==================== 新闻卡片与相关链接 ==================== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.news-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; }
.news-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.news-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.news-excerpt { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; flex-grow: 1; }
.link-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.link-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--border-card);
  transition: color 0.2s;
}
.link-item:hover { color: var(--accent); }
.link-item span { color: var(--text-secondary); font-size: 0.9rem; }

/* ==================== SVG 动效 ==================== */
.svg-canvas { width: 100%; height: auto; overflow: visible; }
.draw-line {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawPath 5s ease-in-out infinite alternate;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.float-node {
  animation: floatUp 3.5s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes drawPath {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes floatUp {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .draw-line, .float-node { animation: none !important; }
}

/* ==================== 响应式微调 ==================== */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .main-nav { gap: 14px; }
  .nav-link { font-size: 0.88rem; padding: 6px 2px; }
}
