:root {
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-text: #111111;
  --color-text-secondary: #3A3A3A;
  --color-border: #E3E1DB;
  --color-accent: #0B8043;
  --color-accent-hover: #086B38;
  --radius-sm: 6px;
  --radius-md: 10px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3.5rem;
  --spacing-xl: 5.5rem;
  --max-width: 1180px;
  --font-base: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -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 ease; }
a:hover { color: var(--color-accent-hover); }

/* 排版系统 */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-bottom: var(--spacing-sm); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: var(--spacing-sm); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-bottom: var(--spacing-xs); }
p { margin-bottom: var(--spacing-sm); color: var(--color-text-secondary); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }
section { padding: var(--spacing-xl) 0; }
.grid { display: grid; gap: var(--spacing-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-md);
  font-weight: 500; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s ease;
}
.btn-primary { background: var(--color-text); color: #fff; }
.btn-primary:hover { background: var(--color-accent); border-color: var(--color-accent); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-text); background: rgba(0,0,0,0.03); }

/* 卡片 */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.05); }

/* 表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--color-text); background: rgba(0,0,0,0.02); }
td:first-child { font-weight: 500; white-space: nowrap; }

/* FAQ */
.faq-list { border-top: 1px solid var(--color-border); }
details { border-bottom: 1px solid var(--color-border); padding: var(--spacing-sm) 0; }
summary {
  cursor: pointer; font-weight: 500; list-style: none; position: relative;
  padding-right: 1.4rem; font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 0.15rem; font-size: 1.1rem; line-height: 1; color: var(--color-text-secondary); }
details[open] summary::after { content: '−'; }
details p { margin-top: var(--spacing-xs); color: var(--color-text-secondary); line-height: 1.6; }

/* 导航与页脚 */
header {
  position: sticky; top: 0; background: rgba(250,250,247,0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border);
  z-index: 100; padding: var(--spacing-sm) 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.15rem; color: var(--color-text); }
.brand img { width: 30px; height: 30px; object-fit: contain; }
nav ul { display: flex; gap: var(--spacing-md); list-style: none; }
nav a { color: var(--color-text-secondary); font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-text); }

footer { border-top: 1px solid var(--color-border); padding: var(--spacing-lg) 0; margin-top: var(--spacing-xl); font-size: 0.9rem; color: var(--color-text-secondary); }
.footer-inner { display: flex; flex-direction: column; gap: var(--spacing-md); }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* SVG 动效基础 */
.svg-icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.anim-draw { stroke: var(--color-text); stroke-width: 1.5; fill: none; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim-line-1 { animation: dashIn 4.5s ease-in-out infinite; }
.anim-line-2 { animation: dashIn 4.5s ease-in-out 1.2s infinite; }
.anim-line-3 { animation: dashIn 4.5s ease-in-out 2.4s infinite; }

@keyframes dashIn {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

.grid-node { fill: var(--color-border); transition: fill 0.4s ease, r 0.4s ease; }
.grid-line { stroke: var(--color-border); stroke-width: 0.8; fill: none; }
.node-pulse { animation: nodeLight 5s ease-in-out infinite; }
.node-pulse:nth-child(3n) { animation-delay: 0.6s; }
.node-pulse:nth-child(3n+1) { animation-delay: 1.4s; }
.node-pulse:nth-child(3n+2) { animation-delay: 2.2s; }

@keyframes nodeLight {
  0%, 100% { fill: var(--color-border); r: 2.5; }
  50% { fill: var(--color-accent); r: 3.8; }
}

.transform-origin-center { transform-box: fill-box; transform-origin: center; }

/* 无障碍与响应式 */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
@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; }
  .anim-line-1, .anim-line-2, .anim-line-3, .node-pulse { animation: none !important; }
  .grid-node { fill: var(--color-border) !important; r: 2.5 !important; }
}
@media (max-width: 640px) {
  .nav-inner { flex-direction: column; gap: var(--spacing-sm); }
  nav ul { flex-wrap: wrap; justify-content: center; gap: var(--spacing-sm); }
}
