/* =========================================
   设计变量与基础重置
   ========================================= */
:root {
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-surface-alt: #eef1f5;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border: #d1d5db;
  --color-primary: #25D366;
  --color-primary-dark: #1DA851;
  --color-primary-light: #DCF8C6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
  --font-main: 'PingFang SC', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --container-max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* =========================================
   排版与容器
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section { padding: var(--space-xl) 0; position: relative; }
.section--alt { background: var(--color-surface); }
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.section__desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 720px;
}
.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* =========================================
   页头与导航
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__brand { display: flex; align-items: center; gap: var(--space-sm); font-weight: 600; font-size: 1.1rem; }
.header__brand img { height: 36px; width: auto; object-fit: contain; }
.nav__list { display: flex; gap: var(--space-md); }
.nav__link { font-size: 0.95rem; color: var(--color-text-muted); font-weight: 500; padding: 0.5rem 0; position: relative; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-text); }
.nav__link[aria-current="page"]::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--color-primary);
}
@media (max-width: 768px) {
  .nav__list { display: none; }
}

/* =========================================
   页脚
   ========================================= */
.footer {
  background: var(--color-text);
  color: #d1d5db;
  padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.9rem;
}
.footer__inner { display: flex; flex-direction: column; gap: var(--space-md); align-items: center; text-align: center; }
.footer__links { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; }
.footer__links a:hover { color: #fff; }
.footer__copy { color: #6b7280; font-size: 0.85rem; margin-top: var(--space-sm); }

/* =========================================
   组件：按钮
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-md); font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn--primary:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
.btn--outline { background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn--outline:hover { border-color: var(--color-text); }

/* =========================================
   组件：卡片
   ========================================= */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-md); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card__icon { width: 48px; height: 48px; background: var(--color-surface-alt); border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: var(--space-sm); }
.card__icon svg { width: 24px; height: 24px; stroke: var(--color-text); fill: none; stroke-width: 1.5; }
.card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card__text { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.6; }

/* =========================================
   组件：表格
   ========================================= */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
th { background: var(--color-surface-alt); font-weight: 600; color: var(--color-text); }
tr:last-child td { border-bottom: none; }

/* =========================================
   组件：FAQ (<details>)
   ========================================= */
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item summary {
  padding: 1rem 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2.5rem;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 400; color: var(--color-text-muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--color-surface-alt); }
.faq-item summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.faq-item p { padding: 1rem 1.25rem; color: var(--color-text-muted); line-height: 1.7; background: var(--color-surface); border: 1px solid var(--color-border); border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* =========================================
   组件：新闻卡片
   ========================================= */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card__date { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.news-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.news-card__excerpt { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1rem; flex-grow: 1; line-height: 1.6; }
.news-card__link { font-size: 0.9rem; color: var(--color-primary); font-weight: 600; display: inline-block; }
.news-card__link:hover { text-decoration: underline; }

/* =========================================
   组件：相关链接
   ========================================= */
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-sm); }
.related-item { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: background 0.2s; }
.related-item:hover { background: var(--color-surface-alt); }
.related-item span { font-size: 0.85rem; color: var(--color-text-muted); }

/* =========================================
   SVG 动效系统
   ========================================= */
.svg-animation { width: 100%; height: auto; overflow: visible; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 3s ease forwards; }
.float-node { animation: floatNode 4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.hero-svg { width: 100%; max-width: 560px; margin: 0 auto; }

@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes floatNode {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  .draw-path, .float-node { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* 响应式微调 */
@media (max-width: 640px) {
  .grid--2, .grid--3, .related-list { grid-template-columns: 1fr; }
  .section { padding: var(--space-lg) 0; }
}
