:root {
  --color-primary: #25D366;
  --color-primary-dark: #128C7E;
  --color-bg: #FFFFFF;
  --color-surface: #F8F9FB;
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-border: #E2E4E8;
  --color-accent-light: #EBFDF2;
  --font-heading: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 16px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 排版系统 */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; text-wrap: balance; margin-top: 0; color: var(--color-text); }
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.125rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.125rem, 2vw + 0.25rem, 1.5rem); margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--color-text); }

/* 容器与布局 */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-surface); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-lg { margin-top: 2.5rem; }

/* 页头与页脚 */
.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: 0.75rem; text-decoration: none; color: var(--color-text); font-weight: 700; font-size: 1.125rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.main-nav a { text-decoration: none; color: var(--color-text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-primary); }
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { text-decoration: none; color: var(--color-text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-text); }
.copyright { text-align: center; color: #888; font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }

/* 组件：按钮 */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.6rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s ease; }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 2px 6px rgba(37,211,102,0.25); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,211,102,0.3); }
.btn-secondary { background: #fff; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-surface); border-color: #ccc; }
.btn-icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

/* 组件：卡片 */
.card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-card); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-meta { font-size: 0.8rem; color: #888; margin-bottom: 0.5rem; display: block; }
.card-actions { margin-top: 1rem; }
.link-arrow { color: var(--color-primary-dark); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.link-arrow:hover { text-decoration: underline; }

/* 组件：表格 */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface); font-weight: 600; color: var(--color-text); white-space: nowrap; }
td { color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }

/* 组件：FAQ */
.faq-list details { margin-bottom: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-list summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; color: var(--color-text); outline: none; position: relative; padding-left: 2rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--color-primary); font-weight: 700; transition: transform 0.2s; }
.faq-list details[open] summary::before { content: "−"; }
.faq-list details > div { padding: 0 1.25rem 1rem; color: var(--color-text-muted); }

/* SVG 动效基础 */
.svg-inline { width: 100%; height: auto; max-width: 100%; display: block; }
.orbit-layer { fill: none; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%, 100% { transform: scale(0.97); opacity: 0.5; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes drawLine { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.anim-breathe-1 { animation: breathe 6s ease-in-out infinite; }
.anim-breathe-2 { animation: breathe 7s ease-in-out infinite -2s; }
.anim-breathe-3 { animation: breathe 8s ease-in-out infinite -4s; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 3.5s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .anim-breathe-1, .anim-breathe-2, .anim-breathe-3, .anim-draw { animation: none !important; }
}

/* 焦点可见性 */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 2px; }

/* 响应式微调 */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .grid-auto { grid-template-columns: 1fr; }
  .header-inner { padding: 0 1rem; }
}
