/* =========================================
   全局设计变量与基础重置
   ========================================= */
:root {
  --color-primary-start: #065c2a;
  --color-primary-mid: #1b9e43;
  --color-primary-end: #8cf56b;
  --color-accent: #0a833c;
  --color-bg: #ffffff;
  --color-surface: #f4f9f5;
  --color-surface-hover: #e8f5ec;
  --color-border: #d1e7da;
  --color-text: #14241d;
  --color-text-secondary: #4a5e53;
  --color-text-muted: #6b7f73;
  --font-display: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px rgba(10, 90, 40, 0.06);
  --shadow-hover: 0 8px 32px rgba(10, 90, 40, 0.12);
  --spacing-section: clamp(3rem, 6vw, 6rem);
  --spacing-container: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  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, a:focus-visible { color: var(--color-primary-mid); }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }

/* =========================================
   排版系统
   ========================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-container); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-text); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0 0 1.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { max-width: 720px; margin: 0 auto 2rem; text-align: center; font-size: 1.125rem; }
@media (max-width: 768px) {
  h1 { margin-bottom: 0.75rem; }
  .section-sub { padding: 0 0.5rem; }
}

/* =========================================
   布局组件
   ========================================= */
.grid-auto { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* 卡片 */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1.5rem; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon { width: 44px; height: 44px; margin-bottom: 1rem; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s ease; text-wrap: balance;
}
.btn-primary {
  background: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-mid));
  color: #fff; box-shadow: 0 4px 12px rgba(10, 131, 60, 0.25);
}
.btn-primary:hover, .btn-primary:focus-visible { background: linear-gradient(90deg, var(--color-primary-mid), var(--color-primary-end)); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10, 131, 60, 0.35); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--color-surface-hover); border-color: var(--color-primary-mid); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
th { font-weight: 600; color: var(--color-primary-start); background: #edf7f0; }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
details {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; transition: box-shadow 0.2s ease;
}
details[open] { box-shadow: var(--shadow-card); }
summary {
  padding: 1.125rem 1.5rem; cursor: pointer; font-weight: 600; list-style: none; position: relative;
  display: flex; align-items: center; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(-45deg) translateY(2px); }
details p { padding: 0 1.5rem 1.25rem; margin: 0; color: var(--color-text-secondary); }
kbd { background: #fff; border: 1px solid var(--color-border); border-radius: 4px; padding: 0.15em 0.4em; font-family: monospace; font-size: 0.85em; }

/* =========================================
   页头与页脚
   ========================================= */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border); padding: 0.75rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--color-text); }
.logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-desktop { display: flex; gap: 1.5rem; }
.nav-link { font-weight: 500; color: var(--color-text-secondary); padding: 0.5rem 0; position: relative; }
.nav-link::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.25s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--color-accent); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--color-primary-start); }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--color-text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { text-align: center; color: var(--color-text-muted); font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }

/* =========================================
   SVG 动效系统
   ========================================= */
.svg-progress-ring { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw-ring {
  0%, 100% { stroke-dashoffset: 1; opacity: 0.4; }
  50% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes arc-flow {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0.2; }
  100% { stroke-dashoffset: 1; }
}
.anim-draw { animation: draw-ring 5s cubic-bezier(0.4, 0, 0.2, 1) infinite; transform-box: fill-box; transform-origin: center; }
.anim-arc { animation: arc-flow 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .anim-draw, .anim-arc { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
  .grid-auto { grid-template-columns: 1fr; }
  .header-actions { display: none; }
}
