:root {
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-primary: #0B192C;
  --color-primary-light: #1A2D47;
  --color-accent: #F27A1A;
  --color-accent-hover: #D96A0F;
  --color-text: #1A202C;
  --color-text-muted: #4A5568;
  --color-border: #E2E8F0;
  --color-surface-alt: #F1F5F9;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 16px rgba(11, 25, 44, 0.05);
  --shadow-hover: 0 8px 24px rgba(11, 25, 44, 0.12);
  --spacing-unit: 1rem;
}

*, *::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: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Typography */
h1, h2, h3, h4 { color: var(--color-primary); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.5vw + 0.5rem, 3.75rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); margin-bottom: 1.5rem; font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem); margin-bottom: 0.75rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--color-text-muted); max-width: 70ch; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--color-text-muted); }
li { margin-bottom: 0.5rem; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus-visible { color: var(--color-accent-hover); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; border-bottom: 1px solid var(--color-border); }
section:last-of-type { border-bottom: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }

/* Header & Nav */
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; color: var(--color-primary); text-decoration: none; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: var(--color-text-muted); font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary); border-color: var(--color-accent); }

/* Footer */
footer { background: var(--color-primary); color: #CBD5E0; padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { color: #FFF; margin-bottom: 1rem; font-size: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #A0AEC0; font-size: 0.95rem; }
.footer-col a:hover { color: #FFF; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.875rem; color: #718096; }

/* Components */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.75rem; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; border: none; 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(-2px); box-shadow: 0 6px 16px rgba(242, 122, 26, 0.35); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--color-primary); color: #FFF; transform: translateY(-1px); }

.card { background: var(--color-surface); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon { width: 40px; height: 40px; margin-bottom: 1rem; color: var(--color-primary); }
.card h3 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { background: var(--color-primary-light); color: #FFF; font-weight: 600; font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
td { color: var(--color-text-muted); font-size: 0.95rem; }

/* FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden; }
summary { padding: 1.25rem 1.5rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: var(--color-surface-alt); transition: background 0.2s; }
summary:hover { background: #EBF2FF; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--color-accent); transition: transform 0.2s ease; flex-shrink: 0; margin-left: 1rem; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 1.25rem 1.5rem 1.5rem; margin: 0; line-height: 1.7; }

/* SVG Animations */
.svg-canvas { width: 100%; height: auto; max-width: 100%; overflow: visible; }
.svg-wave path { animation: wave-undulate 4.5s ease-in-out infinite alternate; }
.svg-wave path:nth-child(2) { animation-delay: -1.2s; }
.svg-wave path:nth-child(3) { animation-delay: -2.4s; }
.svg-wave path:nth-child(4) { animation-delay: -3.6s; }
.svg-draw path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: wave-draw 5s linear infinite; }
@keyframes wave-undulate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes wave-draw {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}
@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; }
  .svg-wave path, .svg-draw path { animation: none; }
}

/* Utilities & Focus */
.highlight-text { color: var(--color-accent); font-weight: 600; }
.canvas-bg { background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: 2rem; border: 1px dashed var(--color-border); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
