:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-border: #e2e2e2;
  --color-accent: #2b8a5e;
  --color-accent-hover: #23704b;
  --color-highlight: #edf7f2;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", Georgia, 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);
  --spacing-section: 5rem;
  --spacing-mobile: 3rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus-visible { color: var(--color-accent-hover); text-decoration: underline; }
*:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; text-wrap: balance; color: var(--color-text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; max-width: 70ch; }
.text-muted { color: var(--color-text-muted); }
.section-label {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--spacing-section) 0; }
@media (max-width: 768px) { .section { padding: var(--spacing-mobile) 0; } }

/* Header & Footer */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.125rem; color: var(--color-text); text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { font-size: 0.9375rem; color: var(--color-text-muted); font-weight: 500; }
nav a[aria-current="page"], nav a:hover { color: var(--color-accent); text-decoration: none; }
footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3rem 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--color-text-muted); }
.copyright { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); font-size: 0.8125rem; color: var(--color-text-muted); }

/* Components: Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; font-size: 1rem; font-weight: 500; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--color-accent); color: var(--color-accent); }

/* Components: Cards & Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-icon { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--color-accent); }
.card-icon svg { width: 100%; height: 100%; }

/* Components: Table */
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 1.5rem 0; }
th, td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { background: var(--color-highlight); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Components: FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; transition: box-shadow 0.2s; }
details[open] { box-shadow: var(--shadow-card); }
summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.25rem; color: var(--color-text-muted); transition: transform 0.2s; }
details[open] summary::after { content: "−"; }
.faq-content { padding: 0 1.25rem 1rem; color: var(--color-text-muted); }

/* Components: Progress/Steps */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps li { position: relative; padding-left: 2.5rem; margin-bottom: 1.25rem; }
ol.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; background: var(--color-accent); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 0.875rem; }

/* SVG Animations */
.orbit-svg { width: 100%; max-width: 400px; height: auto; margin: 0 auto; }
.orbit-ring { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.orbit-1 { stroke: var(--color-accent); opacity: 0.8; animation: orbit-breathe 8s ease-in-out infinite alternate; }
.orbit-2 { stroke: var(--color-text-muted); opacity: 0.3; animation: orbit-breathe 12s ease-in-out infinite alternate-reverse; }
.orbit-3 { stroke: var(--color-border); opacity: 0.5; animation: orbit-breathe 6s ease-in-out infinite alternate; }
@keyframes orbit-breathe {
  0% { transform: scale(0.95); opacity: 0.3; }
  100% { transform: scale(1.05); opacity: 0.9; }
}
.draw-path { fill: none; stroke: var(--color-accent); stroke-width: 2; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 4s linear forwards; }
@keyframes draw-line { 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; scroll-behavior: auto !important; }
  .orbit-ring { animation: none; transform: none; opacity: 0.7; }
  .draw-path { animation: none; stroke-dashoffset: 0; }
}

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mt-8 { margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
