:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text-main: #1c1e21;
  --color-text-muted: #65676b;
  --color-border: #e4e6eb;
  --color-accent: #25d366;
  --color-accent-dark: #128c7e;
  --color-highlight: #e7f3ef;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.05);
  --shadow-focus: 0 0 0 3px rgba(37,211,102,0.25);
  --container-wide: 1200px;
  --space-section: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); color: var(--color-text-main); background: var(--color-bg); line-height: 1.65; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; transition: color 0.2s ease; }
a:hover, a:focus-visible { outline: none; }
ul, ol { padding-left: 1.25rem; margin: 0; }
button, input[type="submit"] { cursor: pointer; font: inherit; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); margin-top: 2.5rem; margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; max-width: 75ch; }
small { color: var(--color-text-muted); font-size: 0.875rem; }

/* Layout */
.container { width: min(92%, var(--container-wide)); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stagger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 768px) { .stagger { grid-template-columns: 1fr; gap: 2rem; } .stagger.reverse { flex-direction: column-reverse; } }
section { padding: var(--space-section) 0; }

/* Header & Footer */
.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); height: 64px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
nav a { padding: 0.5rem 0; position: relative; }
nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.25s ease; }
nav a:hover::after, nav a[aria-current="page"]::after { width: 100%; }
nav a[aria-current="page"] { font-weight: 500; color: var(--color-accent-dark); }
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer h4 { margin-top: 0; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer-copy { text-align: center; color: var(--color-text-muted); font-size: 0.85rem; border-top: 1px solid var(--color-border); padding-top: 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 500; text-align: center; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.btn-primary { background: var(--color-accent); color: #fff; border: none; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-main); }
.btn-outline:hover { border-color: var(--color-text-main); }
.btn-icon { width: 20px; height: 20px; }

/* Cards & Lists */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.list-clean { list-style: none; padding: 0; }
.list-clean li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; }
.list-clean li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); opacity: 0.7; }
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1rem; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; background: var(--color-highlight); color: var(--color-accent-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; }

/* Tables */
.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.8rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f0f2f5; font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* FAQ Details */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.8rem; padding: 0.1rem; transition: box-shadow 0.2s; }
details[open] { box-shadow: var(--shadow-card); }
summary { cursor: pointer; padding: 1rem; font-weight: 500; list-style: none; display: flex; align-items: center; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
.detail-content { padding: 0 1rem 1rem; color: var(--color-text-muted); }

/* SVG Animations */
.svg-deco { width: 100%; max-width: 320px; margin: 0 auto; }
.orbit-group circle { fill: none; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.orbit-ring { animation: breathe 6s ease-in-out infinite alternate; }
.orbit-ring:nth-child(2) { animation-delay: -1.5s; animation-duration: 8s; }
.orbit-ring:nth-child(3) { animation-delay: -3s; animation-duration: 10s; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStroke 4s ease-in-out forwards; }
@keyframes breathe { 0% { transform: scale(0.96); opacity: 0.6; stroke: #cbd5e1; } 50% { transform: scale(1.02); opacity: 1; stroke: var(--color-accent); } 100% { transform: scale(0.98); opacity: 0.7; stroke: #94a3b8; } }
@keyframes drawStroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .orbit-group circle, .draw-line { animation: none !important; } }

/* Focus & Accessibility */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Mobile Nav Toggle (Minimal JS dependency handled gracefully) */
.mobile-toggle { display: none; background: none; border: none; padding: 0.5rem; }
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  nav { display: none; }
  nav.active { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 1rem; }
  nav ul { flex-direction: column; gap: 0.5rem; }
  .stagger { gap: 1.5rem; }
  section { padding: 3rem 0; }
}
