:root {
  --color-bg: #F9FAFB;
  --color-surface: #FFFFFF;
  --color-text: #111827;
  --color-text-secondary: #4B5563;
  --color-text-muted: #9CA3AF;
  --color-border: #E5E7EB;
  --color-brand: #25D366;
  --color-brand-hover: #1EBE57;
  --color-focus-ring: rgba(37, 211, 102, 0.4);
  --font-stack: ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --line-height-base: 1.75;
  --line-height-tight: 1.3;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  --shadow-button: 0 2px 6px rgba(37, 211, 102, 0.25);
  --max-width: 1160px;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { line-height: var(--line-height-tight); color: var(--color-text); margin-bottom: var(--spacing-sm); }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 600; margin-top: var(--spacing-lg); margin-bottom: var(--spacing-md); }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 600; margin-top: var(--spacing-md); }
p { margin-bottom: var(--spacing-sm); color: var(--color-text-secondary); max-width: 65ch; }
a { color: var(--color-brand); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; }
a:hover { color: var(--color-brand-hover); }
a:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: var(--radius-sm); }

/* Layout Utilities */
.container { width: 100%; max-width: var(--max-width); margin-left: auto; margin-right: auto; padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.section { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-md); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mb-md { margin-bottom: var(--spacing-md); }

/* Header & Footer */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249, 250, 251, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height); display: flex; align-items: center;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: var(--spacing-xs); font-weight: 600; color: var(--color-text); }
.brand img { height: 28px; width: auto; }
nav ul { display: flex; list-style: none; gap: var(--spacing-md); margin: 0; padding: 0; }
nav a { color: var(--color-text-secondary); font-size: 0.95rem; padding: 0.25rem 0; }
nav a[aria-current="page"], nav a:hover { color: var(--color-brand); font-weight: 500; }
footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--spacing-lg) 0; margin-top: var(--spacing-xl); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-sm); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-md); list-style: none; margin: 0; }
.footer-copy { color: var(--color-text-muted); font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500;
  border-radius: var(--radius-md); cursor: pointer; border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary {
  background: var(--color-brand); color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover { background: var(--color-brand-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: #F3F4F6; }

/* Cards */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--spacing-md);
  box-shadow: var(--shadow-card); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.card-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: var(--spacing-xs); display: block; }
.card-title { font-size: 1.05rem; font-weight: 600; color: var(--color-text); margin-bottom: var(--spacing-xs); }
.card-desc { font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: var(--spacing-sm); }
.btn-small { font-size: 0.85rem; padding: 0.4rem 0.8rem; }

/* Table */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; 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.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #F9FAFB; font-weight: 600; color: var(--color-text); white-space: nowrap; }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 500; color: var(--color-text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--color-text-muted); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1rem; margin-bottom: 0; font-size: 0.95rem; color: var(--color-text-secondary); }

/* Links List */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: var(--spacing-xs); }
.link-list a { display: flex; flex-direction: column; padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); }
.link-list a:last-child { border-bottom: none; }
.link-title { font-weight: 500; color: var(--color-text); }
.link-desc { font-size: 0.85rem; color: var(--color-text-muted); }

/* SVG Wave Animation Base */
.wave-container { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; overflow: hidden; pointer-events: none; z-index: 1; }
.wave-path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wave-1 { stroke: rgba(37, 211, 102, 0.15); }
.wave-2 { stroke: rgba(37, 211, 102, 0.1); }
.wave-3 { stroke: rgba(37, 211, 102, 0.05); }

@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; }
  .wave-path { animation: none !important; }
}
