:root {
  --bg-body: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F1F3F5;
  --text-primary: #1A1D21;
  --text-secondary: #4A5057;
  --text-muted: #6C757D;
  --border-light: #DEE2E6;
  --border-medium: #CED4DA;
  --accent: #25D366;
  --accent-hover: #1DA851;
  --accent-subtle: rgba(37, 211, 102, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
  --container-max: 1120px;
  --space-section: 96px;
  --space-grid: 32px;
  --font-main: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.015em;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 排版系统 */
h1, h2, h3, h4 { line-height: 1.25; margin-top: 0; margin-bottom: 0.6em; font-weight: 600; color: var(--text-primary); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); text-wrap: balance; margin-bottom: 0.8em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-wrap: balance; margin-bottom: 0.5em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); text-wrap: balance; margin-bottom: 0.4em; }
p { margin: 0 0 1em 0; color: var(--text-secondary); }
a { color: inherit; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 600; color: var(--text-primary); }

/* 布局容器 */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; }
.section--alt { background-color: var(--bg-surface); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-grid); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.offset-right { margin-left: auto; }

/* 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: var(--radius-md); font-weight: 500; font-size: 1rem;
  border: none; cursor: pointer; transition: all 0.2s ease; line-height: 1.4;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.btn--primary { background-color: var(--accent); color: #fff; }
.btn--primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--secondary { background-color: transparent; border: 1px solid var(--border-medium); color: var(--text-primary); }
.btn--secondary:hover { background-color: var(--bg-elevated); }

.card {
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 28px; transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card__icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--accent); }
.card__icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* 表格 */
.table-wrapper { overflow-x: auto; margin: 24px 0; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
th { background-color: var(--bg-elevated); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 500; color: var(--text-primary); }

/* 导航与页脚 */
header { background: var(--bg-surface); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.logo-group { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; }
.logo-img { height: 36px; width: auto; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 8px; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.95rem; transition: background 0.2s, color 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { background-color: var(--bg-elevated); color: var(--text-primary); font-weight: 500; }
footer { background-color: var(--bg-surface); border-top: 1px solid var(--border-light); padding: 48px 0; margin-top: 40px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-brand { margin-bottom: 12px; }
.footer-links { margin: 16px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }
.footer-legal { margin-top: 24px; font-size: 0.85rem; }

/* FAQ 样式 */
.faq-item { margin-bottom: 12px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.faq-summary { padding: 16px 20px; cursor: pointer; font-weight: 500; list-style: none; position: relative; color: var(--text-primary); }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { display: none; content: ""; }
.faq-summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--text-muted); transition: transform 0.2s; }
.faq-item[open] .faq-summary::after { content: "−"; }
.faq-content { padding: 0 20px 16px 20px; color: var(--text-secondary); line-height: 1.75; }

/* 新闻卡片 */
.news-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; display: block; }
.news-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; display: block; color: var(--text-primary); }
.news-excerpt { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 12px; }
.news-link { font-size: 0.9rem; color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-link:hover { color: var(--accent-hover); }

/* 关联链接 */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-item { padding: 10px 0; border-bottom: 1px dashed var(--border-light); }
.related-item:last-child { border-bottom: none; }
.related-link { display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); font-weight: 500; }
.related-desc { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }

/* SVG 动效系统 */
.wave-path { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.anim-wave { animation: waveFloat 6s cubic-bezier(0.4, 0, 0.6, 1) infinite; transform-box: fill-box; transform-origin: center; }
.anim-wave:nth-child(1) { animation-delay: 0s; opacity: 0.9; }
.anim-wave:nth-child(2) { animation-delay: -1.5s; opacity: 0.7; }
.anim-wave:nth-child(3) { animation-delay: -3s; opacity: 0.5; }
.anim-wave:nth-child(4) { animation-delay: -4.5s; opacity: 0.3; }

@keyframes waveFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.draw-path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStroke 4s ease-in-out forwards; }
@keyframes drawStroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim-wave, .draw-path { animation: none !important; transform: none !important; }
}
