/* =========================================
   全局设计变量与基础重置
   ========================================= */
:root {
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-text: #0f172a;
  --c-text-muted: #475569;
  --c-brand-deep: #064e3b;
  --c-brand-mid: #10b981;
  --c-brand-light: #d1fae5;
  --c-border: #e2e8f0;
  --c-focus: #0ea5e9;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(6, 78, 59, 0.06);
  --shadow-hover: 0 12px 32px rgba(6, 78, 59, 0.12);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--ease-out) 0.2s; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 6vw, 96px) 0; position: relative; overflow: hidden; }
.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(16px, 2vw, 24px);
  color: var(--c-brand-deep);
  text-wrap: balance;
}
.section-desc {
  max-width: 680px;
  color: var(--c-text-muted);
  margin-bottom: clamp(24px, 3vw, 40px);
  line-height: 1.7;
}

/* =========================================
   页头与导航
   ========================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; }
.nav-list { display: flex; gap: 24px; font-size: 0.95rem; }
.nav-link { position: relative; padding: 4px 0; font-weight: 500; }
.nav-link[aria-current="page"], .nav-link:hover { color: var(--c-brand-mid); }
.nav-link::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--c-brand-mid); transform: scaleX(0);
  transition: transform var(--ease-out) 0.2s;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 768px) {
  .nav-list { display: none; }
  .mobile-toggle { display: block; background: none; border: none; cursor: pointer; }
}

/* =========================================
   通用组件：按钮 / 卡片 / 表格 / FAQ
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600;
  border: none; cursor: pointer; transition: all var(--ease-out) 0.2s;
  text-wrap: balance;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-brand-deep), var(--c-brand-mid));
  color: #fff; box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6, 78, 59, 0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--c-border); color: var(--c-text); }
.btn-outline:hover { border-color: var(--c-brand-mid); color: var(--c-brand-mid); }

.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: clamp(20px, 2vw, 28px);
  transition: transform var(--ease-out) 0.2s, box-shadow var(--ease-out) 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-grid { display: grid; gap: 24px; }
.card-grid.two-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid.three-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.table-wrapper { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--c-surface); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--c-border); }
th { background: #f1f5f9; font-weight: 600; font-size: 0.9rem; color: var(--c-text-muted); }
tr:last-child td { border-bottom: none; }
td { font-size: 0.95rem; }

details {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden;
  transition: box-shadow var(--ease-out) 0.2s;
}
details[open] { box-shadow: var(--shadow-card); }
summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; display: inline-block; width: 20px; height: 20px;
  font-family: var(--font-mono); font-weight: 700; color: var(--c-brand-mid);
  transition: transform var(--ease-out) 0.2s;
}
details[open] summary::after { transform: rotate(45deg); content: "+"; }
.details-body { padding: 0 20px 20px; color: var(--c-text-muted); line-height: 1.7; }

/* =========================================
   图标系统 (内联 SVG)
   ========================================= */
.icon-svg { width: 24px; height: 24px; stroke-width: 1.8; stroke: currentColor; fill: none; }
.icon-lg { width: 40px; height: 40px; }

/* =========================================
   SVG 动效规范
   ========================================= */
.svg-flow {
  fill: none; stroke: var(--c-brand-mid); stroke-width: 2;
  pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: pathDraw 6s linear infinite;
}
.svg-dot {
  fill: var(--c-brand-light); stroke: var(--c-brand-deep); stroke-width: 1.5;
  transition: transform 0.3s ease;
}
.svg-group { transform-box: fill-box; transform-origin: center; }

@keyframes pathDraw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.anim-float { animation: floatNode 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =========================================
   页脚
   ========================================= */
.site-footer {
  background: #0f172a; color: #cbd5e1; padding: clamp(48px, 5vw, 80px) 0 24px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--c-brand-mid); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; text-align: center; color: #64748b; font-size: 0.85rem; }
