/* === 设计变量 === */
:root {
  --color-bg: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-text: #1A1D21;
  --color-text-secondary: #4B5563;
  --color-accent: #008069;
  --color-accent-hover: #006653;
  --color-border: #E2E5EA;
  --color-highlight: #E8F5F1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
  --font-heading: Georgia, 'Noto Serif SC', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

/* === 基础重置与排版 === */
*, *::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.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 流体字号与排版层级 */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw + 0.5rem, 3.5rem); color: var(--color-text); margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.6rem, 3vw + 0.2rem, 2.2rem); margin-bottom: var(--space-md); color: var(--color-text); }
h3 { font-size: clamp(1.2rem, 2vw + 0.1rem, 1.5rem); margin-bottom: var(--space-xs); }
p { margin-bottom: var(--space-sm); color: var(--color-text-secondary); }
.text-center { text-align: center; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.bg-white { background: var(--color-surface); }

/* === 布局组件 === */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
@media (max-width: 768px) {
  .split-layout { grid-template-columns: 1fr; }
  .section { padding: var(--space-lg) 0; }
}

/* === 页头与导航 === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand span { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
nav ul { display: flex; gap: var(--space-md); }
nav a {
  font-size: 0.95rem; font-weight: 500; padding: 6px 10px;
  border-radius: var(--radius-sm); transition: background 0.2s;
}
nav a:hover, nav a:focus-visible { background: var(--color-highlight); color: var(--color-accent); }
nav a[aria-current="page"] { color: var(--color-accent); font-weight: 600; }

/* === 通用组件 === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600;
  font-size: 1rem; cursor: pointer; transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent); color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; border-color: var(--color-accent); color: var(--color-accent);
}
.btn-secondary:hover { background: var(--color-highlight); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.table-responsive { overflow-x: auto; margin: var(--space-md) 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #F1F3F5; font-weight: 600; color: var(--color-text); }
tr:last-child td { border-bottom: none; }

/* === FAQ 组件 === */
.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 16px; font-weight: 600; cursor: pointer; user-select: 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.2rem; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 16px 16px 16px; margin: 0; font-size: 0.95rem; }

/* === 页脚 === */
.site-footer {
  background: #F1F3F5; border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0; margin-top: var(--space-xl);
}
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); }
.footer-col h4 { margin-bottom: var(--space-sm); font-size: 1rem; }
.footer-col a { display: block; padding: 4px 0; color: var(--color-text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-copy { text-align: center; padding-top: var(--space-md); border-top: 1px solid var(--color-border); margin-top: var(--space-lg); color: var(--color-text-secondary); font-size: 0.85rem; }

/* === SVG 图标规范 === */
.icon-svg { width: 24px; height: 24px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* === SVG 动效系统 === */
.svg-container { width: 100%; max-width: 800px; margin: 0 auto; }
.contour-path {
  fill: none; stroke: var(--color-accent); stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: contour-flow 6s ease-in-out infinite;
}
.contour-path-alt { stroke: #9CA3AF; animation-duration: 8s; animation-delay: 1s; }
.float-layer { animation: float-y 7s ease-in-out infinite; }
@keyframes contour-flow {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 尊重系统减少动态效果设置 */
@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;
    animation: none !important;
  }
}
