/* ==================== 设计变量与基础重置 ==================== */
:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-tertiary: #6b7280;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-accent: #0d7a5c;
  --color-accent-hover: #095c44;
  --color-accent-light: #ecfdf5;
  --color-highlight: #fef3c7;
  --font-heading: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.08);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  -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-accent-hover); }
button, [role="button"] { cursor: pointer; font-family: inherit; }

/* ==================== 排版系统 ==================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  text-wrap: balance;
}
.heading-md {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}
.text-body {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}
.text-small {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* ==================== 页头与导航 ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 110px; height: 32px; object-fit: contain; }
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--color-text-primary); }
.nav-list { list-style: none; display: flex; gap: var(--spacing-md); }
.nav-link {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-accent); border-color: var(--color-accent); }

/* ==================== 按钮组件 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 122, 92, 0.2);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(13, 122, 92, 0.3);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--color-bg);
  border-color: var(--color-text-tertiary);
}

/* ==================== 区块通用 ==================== */
.section { padding: var(--spacing-xl) 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-header { margin-bottom: var(--spacing-lg); text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-desc { margin-top: var(--spacing-xs); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--spacing-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-md); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.card-meta { margin-top: var(--spacing-sm); display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--color-text-tertiary); }

/* ==================== 表格样式 ==================== */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-bg); font-weight: 600; color: var(--color-text-primary); }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* ==================== FAQ (Details/Summary) ==================== */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  padding: 16px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--color-text-tertiary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "-"; }
.faq-answer { padding-bottom: 16px; color: var(--color-text-secondary); line-height: 1.7; }

/* ==================== 页脚 ==================== */
.site-footer { background: var(--color-text-primary); color: #9ca3af; padding: var(--spacing-lg) 0 var(--spacing-md); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--spacing-md); margin-bottom: var(--spacing-lg); }
.footer-col h4 { color: #fff; margin-bottom: var(--spacing-sm); font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #9ca3af; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: var(--spacing-md); text-align: center; }

/* ==================== SVG 动效系统 ==================== */
.svg-animated { width: 100%; height: auto; overflow: visible; }
.contour-path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.6;
}
.anim-flow {
  animation: contourFlow 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center;
}
@keyframes contourFlow {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}
.dual-wave {
  animation: waveMove 12s linear infinite alternate;
}
@keyframes waveMove {
  0% { transform: translateX(-8px); }
  100% { transform: translateX(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .anim-flow, .dual-wave { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==================== 响应式微调 ==================== */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .heading-xl { font-size: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--spacing-sm); }
}
