/* ==================== 设计变量与基础重置 ==================== */
:root {
  --bg-page: #f8f6f3;
  --bg-card: #ffffff;
  --bg-section-alt: #f1efe9;
  --text-heading: #2c2c2c;
  --text-body: #4a4a4a;
  --text-muted: #757575;
  --color-primary: #6b8e73;
  --color-primary-hover: #55755e;
  --color-accent: #8a9ba8;
  --color-border: #e2ded8;
  --color-focus: #5a8a62;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5.5rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08);
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus-visible { color: var(--color-primary-hover); text-decoration: underline; }
ul, ol { padding-left: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ==================== 排版与容器 ==================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-lg);
}
.section--alt {
  background-color: var(--bg-section-alt);
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  color: var(--text-heading);
  margin-bottom: var(--space-md);
  text-wrap: balance;
  letter-spacing: 0.02em;
}
.section__desc {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.grid { display: grid; gap: var(--space-md); }
.grid--cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.grid--cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ==================== 导航与页头页脚 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 246, 243, 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: 72px;
}
.brand { display: flex; align-items: center; gap: var(--space-xs); }
.brand img { width: 128px; height: auto; }
.brand-text { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; color: var(--text-heading); }
.nav-list { display: flex; gap: var(--space-md); }
.nav-link {
  font-size: 0.95rem; color: var(--text-body); padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-primary); border-color: var(--color-primary); text-decoration: none; }
.nav-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 2px; }

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.footer-links { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); }

/* ==================== 按钮与卡片 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 500; cursor: pointer; border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 1rem; text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.btn--primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(107, 142, 115, 0.25);
}
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(107, 142, 115, 0.35); }
.btn--secondary {
  background: transparent; border: 1px solid var(--color-border); color: var(--text-body);
}
.btn--secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }

.card {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: var(--space-md); box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card__icon { width: 48px; height: 48px; margin-bottom: var(--space-sm); color: var(--color-primary); }
.card__title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text-heading); margin-bottom: 0.5rem; }
.card__body { font-size: 0.95rem; color: var(--text-body); line-height: 1.7; }

/* ==================== 表格与详情列表 ==================== */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden;
}
.table th, .table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.table th { background: var(--bg-section-alt); font-weight: 600; color: var(--text-heading); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(107, 142, 115, 0.04); }

details.faq-item {
  background: var(--bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); margin-bottom: var(--space-sm);
  transition: box-shadow 0.2s ease;
}
details.faq-item[open] { box-shadow: var(--shadow-soft); }
.summary {
  padding: 1.2rem; cursor: pointer; font-weight: 500; color: var(--text-heading);
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; user-select: none;
}
.summary::-webkit-details-marker { display: none; }
.summary::after { content: "+"; font-size: 1.2rem; transition: transform 0.2s; }
details[open] .summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.2rem 1.2rem; color: var(--text-body); line-height: 1.7; }

/* ==================== SVG 动效系统 ==================== */
.svg-flow { width: 100%; height: auto; overflow: visible; }
.flow-path { fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: flowDash 6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.flow-dot { fill: var(--color-accent); opacity: 0.8; animation: flowPulse 4s ease-in-out infinite; }
.flow-line { stroke: var(--color-accent); stroke-width: 1.5; stroke-linecap: round; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: flowDashReverse 5s linear infinite; }

@keyframes flowDash {
  0% { stroke-dashoffset: 1; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes flowDashReverse {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes flowPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==================== 响应式微调 ==================== */
@media (max-width: 768px) {
  :root { --space-lg: 2.5rem; --space-xl: 4rem; }
  .nav-list { display: none; } /* 移动端简化导航 */
  .grid--cols-3 { grid-template-columns: 1fr; }
}
