:root {
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-brand: #25d366;
  --color-brand-hover: #1da851;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 18px rgba(0,0,0,0.04);
  --shadow-card: 0 6px 24px rgba(0,0,0,0.06);
  --font-base: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --container-max: 1120px;
  --space-section: 5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; color: var(--color-text); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1.25rem; color: var(--color-text); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-bottom: 0.6rem; color: var(--color-text); }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); font-size: 0.95rem; }

/* Layout */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--space-section) 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-desc { margin: 0 auto; font-size: 1.05rem; }

/* Navigation */
header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; color: var(--color-text); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
nav ul { display: flex; gap: 2rem; }
nav a { font-weight: 500; position: relative; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-brand); }
nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--color-brand); border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 2rem; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; border: none; transition: all 0.25s ease; font-size: 1rem; }
.btn-primary { background: var(--color-brand); color: #fff; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25); }
.btn-primary:hover { background: var(--color-brand-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-brand); color: var(--color-brand); }

/* Cards & Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }
.card { background: var(--color-surface); padding: 1.75rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: transform 0.25s ease, box-shadow 0.25s ease; border: 1px solid var(--color-border); }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.feature-icon { width: 44px; height: 44px; color: var(--color-brand); margin-bottom: 1rem; }

/* Tables */
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); background: var(--color-surface); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f3f4f6; font-weight: 600; color: var(--color-text); }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
details { background: var(--color-surface); margin-bottom: 0.85rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); overflow: hidden; transition: border-color 0.2s; }
details[open] { border-color: var(--color-brand); }
summary { padding: 1.1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--color-text); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; transition: transform 0.2s ease; color: var(--color-brand); }
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--color-text-secondary); line-height: 1.7; }

/* News & Related */
.news-meta { display: flex; gap: 1rem; margin-top: 1rem; font-size: 0.85rem; color: var(--color-text-muted); }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.related-item { padding: 1rem; background: var(--color-surface); border-radius: var(--radius-sm); border: 1px solid var(--color-border); transition: all 0.2s; }
.related-item:hover { border-color: var(--color-brand); background: #f0fdf4; }
.related-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.related-item p { font-size: 0.9rem; margin: 0; }

/* Footer */
footer { background: #0f172a; color: #cbd5e1; padding: 4rem 0 2rem; margin-top: 4rem; }
.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: 1.25rem; font-size: 1.05rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--color-brand); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; text-align: center; font-size: 0.9rem; color: #64748b; }

/* SVG Animation Core */
.wave-svg-container { width: 100%; max-width: 800px; height: 200px; margin: 0 auto; overflow: visible; }
.wave-path { fill: none; stroke-width: 2.5; opacity: 0.5; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes wave-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes dash-pull { 0% { stroke-dashoffset: 1; } 50% { stroke-dashoffset: 0.2; } 100% { stroke-dashoffset: 1; } }
.anim-rise { animation: wave-rise 4.5s ease-in-out infinite; }
.anim-draw { animation: dash-pull 6s linear infinite; }
.anim-delay-1 { animation-delay: 0.2s; }
.anim-delay-2 { animation-delay: 0.4s; }
.anim-delay-3 { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .anim-rise, .anim-draw { animation: none !important; }
  html { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
@media (max-width: 768px) {
  nav ul { gap: 1rem; font-size: 0.9rem; }
  section { padding: 3rem 0; }
  .grid-2 { grid-template-columns: 1fr; }
}
