/* 设计变量与基础重置 */
:root {
  --color-bg: #f4f7f5;
  --color-surface: #ffffff;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-brand-dark: #064e3b;
  --color-brand-mid: #059669;
  --color-brand-light: #34d399;
  --color-lime: #a7f3d0;
  --gradient-brand: linear-gradient(135deg, var(--color-brand-dark), var(--color-brand-mid));
  --radius-base: 0.75rem;
  --radius-lg: 1rem;
  --shadow-card: 0 4px 12px rgba(6, 78, 59, 0.08);
  --shadow-hover: 0 8px 24px rgba(6, 78, 59, 0.12);
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --container-max: 1120px;
  --space-section: clamp(3rem, 6vw, 5rem);
  --space-component: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.65;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

/* 排版系统 */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--color-brand-dark); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.4em; }
p { margin-bottom: 1em; color: var(--color-text-secondary); }
a { color: var(--color-brand-mid); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.2s; }
a:hover, a:focus-visible { color: var(--color-brand-dark); }
.container { width: 100%; 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: 800px; margin: 0 auto 2.5rem; }

/* 页头与页脚 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand img { height: 36px; width: auto; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.125rem; color: var(--color-brand-dark); }
.nav { display: flex; gap: 1.5rem; list-style: none; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-secondary); text-decoration: none; padding: 0.25rem 0; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-brand-dark); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: var(--color-brand-mid); border-radius: 2px; }
@media(max-width: 768px) { .nav { display: none; } }

.site-footer { background: var(--color-surface); border-top: 1px solid rgba(0,0,0,0.08); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--color-brand-dark); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.9rem; color: var(--color-text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--color-brand-mid); }
.footer-bottom { text-align: center; font-size: 0.85rem; color: var(--color-text-secondary); padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.06); }

/* 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-base); font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(5, 150, 105, 0.4); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-brand-mid); color: var(--color-brand-mid); }
.btn-outline:hover { background: rgba(5, 150, 105, 0.05); }

.card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-card); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-base); border: 1px solid rgba(0,0,0,0.08); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); }
th { background: rgba(6, 78, 59, 0.04); font-weight: 600; color: var(--color-brand-dark); }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(52, 211, 153, 0.06); }

/* FAQ 原生细节样式 */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--color-surface); border-radius: var(--radius-base); border: 1px solid rgba(0,0,0,0.06); overflow: hidden; }
.faq-item summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--color-brand-dark);
  list-style: none; position: relative; user-select: none; outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--color-brand-mid); transition: transform 0.2s; }
.faq-item[open] summary::after { content: "-"; }
.faq-item summary:hover { background: rgba(0,0,0,0.02); }
.faq-item summary:focus-visible { outline: 2px solid var(--color-brand-mid); outline-offset: -2px; }
.faq-item .faq-content { padding: 0 1.25rem 1.25rem; color: var(--color-text-secondary); line-height: 1.7; }

/* SVG 图标工具类 */
.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; fill: none; vertical-align: middle; }
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }

/* SVG 动画关键帧 */
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 0.8; transform: scale(1.02); }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.anim-draw { animation: draw-line 6s ease-in-out infinite alternate; }
.anim-pulse { animation: pulse-ring 4s ease-in-out infinite; }
.anim-float { animation: float-gentle 5s 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; scroll-behavior: auto !important; }
  .anim-draw, .anim-pulse, .anim-float { animation: none; }
}

/* 响应式微调 */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
}
