/* 设计变量 */
:root {
  --bg-canvas: #F7F6F3;
  --bg-surface: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --border-subtle: #E5E3DE;
  --accent-green: #0B8A4A;
  --accent-hover: #086B39;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
  --radius-md: 12px;
  --radius-lg: 20px;
  --container-max: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-stack);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p { margin-bottom: var(--space-sm); color: var(--text-secondary); }
.text-balance { text-wrap: balance; }

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section { padding: var(--space-lg) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* 页头 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.nav-list { display: flex; gap: var(--space-md); }
.nav-link {
  font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
  padding: 0.4rem 0; position: relative;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text-primary); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--text-primary); transform: scaleX(1); transition: transform 0.3s ease;
}
.mobile-toggle { display: block; }
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
  .nav-list { display: flex; }
}

/* 页脚 */
.site-footer {
  background: var(--text-primary); color: #EAEAEA; padding: var(--space-lg) 0 var(--space-md); margin-top: var(--space-lg);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.footer-title { color: #FFF; font-weight: 600; margin-bottom: var(--space-sm); }
.footer-link { display: block; color: #CCC; font-size: 0.95rem; margin-bottom: 0.5rem; }
.footer-link:hover { color: #FFF; }
.copyright { font-size: 0.85rem; color: #888; text-align: center; border-top: 1px solid #333; padding-top: var(--space-md); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--accent-green); color: #FFF; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 2px; }

/* 卡片 */
.card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: var(--space-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card-img-placeholder {
  width: 100%; aspect-ratio: 16/9; background: #F0EFEA; border-radius: 6px; margin-bottom: var(--space-sm);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem;
}
.meta-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; display: block; }
.card-link { color: var(--accent-green); font-weight: 500; font-size: 0.95rem; }
.card-link:hover { text-decoration: underline; }

/* 表格 */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: #F0EFEA; font-weight: 600; color: var(--text-primary); }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item summary {
  padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: 1.1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 300; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.2rem; color: var(--text-secondary); }

/* SVG 动效基础 */
.svg-icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes drawStroke {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.animate-draw { animation: drawStroke 6s ease-in-out infinite alternate; }
@keyframes scanSweep {
  0% { transform: translateX(-150px); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(800px); opacity: 0; }
}
.sweep-highlight { filter: url(#softGlow); animation: scanSweep 8s linear infinite; }
@keyframes pulseNode {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}
.node-pulse { animation: pulseNode 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
