:root {
  --color-bg: #f8faf9;
  --color-surface: #ffffff;
  --color-primary-start: #059669;
  --color-primary-end: #a7f3d0;
  --color-accent: #10b981;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-code-bg: #f1f5f9;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, "Courier New", monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --spacing-unit: 1rem;
  --container-width: 1180px;
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 流体排版 */
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--color-text); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; margin-bottom: 0.6em; color: var(--color-text); text-wrap: balance; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; margin-bottom: 0.6em; color: var(--color-text); }
p { margin-bottom: 1.2em; color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.04em; color: var(--color-primary-start); }

/* 布局容器 */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
.section-alt { background-color: #f1f5f3; }

/* 页头与导航 */
header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 249, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--color-text); font-weight: 700; font-size: 1.15rem; }
.brand img { height: 34px; width: auto; display: block; }
nav ul { display: flex; gap: 1.8rem; list-style: none; }
nav a { text-decoration: none; color: var(--color-text-muted); font-weight: 500; transition: color 0.2s, border-bottom-color 0.2s; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary-start); border-bottom-color: var(--color-primary-start); }
@media (max-width: 768px) { nav ul { gap: 1.2rem; font-size: 0.95rem; } }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.8rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s; border: none; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary-start), var(--color-accent)); color: #ffffff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35); }
.btn-secondary { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-primary-start); color: var(--color-primary-start); background: #f8faf9; }
.btn:focus-visible { outline: 2px solid var(--color-primary-start); outline-offset: 2px; }

/* 通用组件 */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.6rem; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.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(280px, 1fr)); gap: 2rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; } }
.badge { display: inline-block; padding: 0.25rem 0.6rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; background: #ecfdf5; color: var(--color-primary-start); margin-bottom: 0.8rem; }

/* 表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; }
th, td { padding: 0.9rem 1.2rem; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { background: #f1f5f9; font-weight: 600; white-space: nowrap; }
tr:nth-child(even) { background: #f8fafc; }

/* FAQ */
details { border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 0.8rem; overflow: hidden; background: var(--color-surface); }
summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; background: #f8fafc; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
summary:hover { background: #f1f5f3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--color-text-muted); }
details[open] summary::after { content: "-"; }
details > div { padding: 1rem 1.2rem; border-top: 1px solid var(--color-border); line-height: 1.6; color: var(--color-text); }
details:focus-within { outline: 2px solid var(--color-primary-start); outline-offset: 1px; }

/* 页脚 */
footer { background: #0f172a; color: #94a3b8; padding: 3.5rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.footer-grid h4 { color: #e2e8f0; margin-bottom: 1rem; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: #ffffff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #1e293b; text-align: center; font-size: 0.9rem; }

/* SVG 动效系统 */
.svg-container { position: relative; width: 100%; height: auto; max-width: 800px; margin: 0 auto; }
.svg-flow path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: flowPath 10s linear infinite; }
@keyframes flowPath { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.svg-dot { animation: pulseDot 3s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 0.5; r: 3.5; } 50% { opacity: 1; r: 4.5; } }
.svg-node { transition: transform 0.3s ease; }
.svg-node:hover { transform: scale(1.1); transform-box: fill-box; transform-origin: center; }
.pulse-ring { animation: ringPulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes ringPulse { 0% { opacity: 0.8; r: 12; } 100% { opacity: 0; r: 24; } }
@media (prefers-reduced-motion: reduce) {
  .svg-flow, .svg-dot, .pulse-ring, .svg-node { animation: none !important; transition: none !important; }
  path, circle, rect, polygon { animation-duration: 0s !important; }
}
