/* ========================
   设计变量与基础重置
   ======================== */
:root {
  --color-bg: #f7f7f8;
  --color-surface: #ffffff;
  --color-text-primary: #111111;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-border: #e0e0e0;
  --color-accent: #25d366;
  --color-accent-hover: #1ebd57;
  --color-accent-subtle: rgba(37, 211, 102, 0.08);
  
  --font-base: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --line-height-base: 1.7;
  --line-height-tight: 1.35;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 18px rgba(0,0,0,0.09);
  
  --max-content: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background: var(--color-bg);
  -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 ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ========================
   排版与通用布局
   ======================== */
.container { width: 100%; max-width: var(--max-content); margin: 0 auto; padding: 0 var(--space-md); }
.text-balance { text-wrap: balance; }
.section { padding: var(--space-xl) 0; }
.section-title {
  font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.85rem);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.section-desc {
  color: var(--color-text-secondary);
  max-width: 680px;
  margin-bottom: var(--space-lg);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
}

/* 导航与页头页脚 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-xs); font-weight: 600; font-size: 1.05rem; }
.brand img { width: 100px; height: 28px; object-fit: contain; }
nav ul { display: flex; gap: var(--space-md); }
nav a { font-size: 0.95rem; color: var(--color-text-secondary); padding: 0.35rem 0; position: relative; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-text-primary); }
nav a[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px;
  background: var(--color-accent); border-radius: 1px;
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: var(--space-sm) 0; }
  nav ul { gap: var(--space-sm); flex-wrap: wrap; }
}

.site-footer {
  background: #111; color: #ccc; padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.9rem; line-height: 1.6;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); margin-bottom: var(--space-md); }
.footer-col h4 { color: #fff; margin-bottom: var(--space-sm); font-size: 0.95rem; }
.footer-col a { display: block; color: #aaa; padding: 0.2rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: var(--space-sm); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); color: #888; }

/* ========================
   按钮与交互组件
   ======================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem; border-radius: var(--radius-md);
  font-weight: 500; font-size: 0.95rem; transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--color-surface); color: var(--color-text-primary); border-color: var(--color-border); }
.btn-secondary:hover { border-color: #bbb; background: #f9f9f9; }
.btn-icon { width: 18px; height: 18px; stroke-width: 2; }

/* ========================
   表格与卡片
   ======================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f4f4f5; font-weight: 600; color: var(--color-text-primary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fcfcfc; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-md); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-time { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; font-weight: 600; line-height: 1.4; }
.card p { color: var(--color-text-secondary); font-size: 0.95rem; margin-bottom: 0.8rem; }
.link-list li { padding: 0.5rem 0; border-bottom: 1px dashed var(--color-border); }
.link-list li:last-child { border-bottom: none; }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; color: var(--color-text-secondary); transition: color 0.2s; }
.link-list a:hover { color: var(--color-accent); }
.link-list .desc { font-size: 0.85rem; color: var(--color-text-muted); display: block; margin-top: 0.15rem; }

/* ========================
   FAQ 样式
   ======================== */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  padding: 1.1rem 0; cursor: pointer; font-weight: 500; font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-weight: 400; color: var(--color-text-muted); transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "-"; }
.faq-item[open] summary { color: var(--color-accent); }
.faq-item .answer { padding-bottom: 1.2rem; color: var(--color-text-secondary); line-height: 1.7; }

/* ========================
   SVG 动效系统
   ======================== */
.svg-stage { width: 100%; height: auto; overflow: visible; }
.wave-path {
  fill: none; stroke-width: 2.5; stroke-linecap: round; pathLength: 1;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.wave-anim {
  animation: waveDraw 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.wave-anim.delay-1 { animation-delay: -1.5s; }
.wave-anim.delay-2 { animation-delay: -3s; }
.wave-anim.delay-3 { animation-delay: -4.5s; }

@keyframes waveDraw {
  0% { stroke-dashoffset: 1; opacity: 0.6; }
  15% { opacity: 1; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: -0.1; }
  100% { stroke-dashoffset: 0; opacity: 0.6; }
}

.icon-svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow-node { transition: transform 0.3s ease; }
.flow-node:hover { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .wave-path { stroke-dashoffset: 0 !important; }
}
