/* =========================================
   设计变量与基础重置
   ========================================= */
:root {
  --bg-primary: #F8F6F3;
  --bg-secondary: #EDEAE5;
  --bg-card: #FFFFFF;
  --text-primary: #2A2F35;
  --text-secondary: #5C636A;
  --text-muted: #8A9199;
  --accent: #6B8F84;
  --accent-hover: #547A6E;
  --accent-light: rgba(107, 143, 132, 0.12);
  --border: #D6D2CD;
  --border-light: #E8E5E0;
  --shadow-sm: 0 2px 8px rgba(42, 47, 53, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 47, 53, 0.06);
  --shadow-lg: 0 16px 40px rgba(42, 47, 53, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-heading: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --space-section: clamp(3.5rem, 6vw, 6rem);
  --container-max: 1180px;
}

*, *::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(--text-primary);
  background: var(--bg-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease; }
button, [role="button"], input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =========================================
   排版系统
   ========================================= */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.2; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4; margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }
ul, ol { padding-left: 1.25rem; margin-bottom: 1.5rem; }
li { margin-bottom: 0.6rem; color: var(--text-secondary); }
small { font-size: 0.875rem; color: var(--text-muted); }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.section { padding: var(--space-section) 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { max-width: 720px; margin: 0.8rem auto 0; font-size: 1.05rem; }

/* =========================================
   布局网格
   ========================================= */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; } }

/* =========================================
   导航与页头页脚
   ========================================= */
.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(--border-light); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--text-primary); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-links { list-style: none; display: flex; gap: 2.2rem; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .site-header .nav-inner { padding: 0 1rem; }
}
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer-col h4 { font-family: var(--font-heading); margin-bottom: 1rem; color: var(--text-primary); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   组件：按钮与卡片
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 2.1rem; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 1rem; cursor: pointer; transition: all 0.25s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 2rem; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.card-icon { width: 40px; height: 40px; margin-bottom: 1.2rem; color: var(--accent); }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; display: block; }
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.75rem; font-weight: 500; background: var(--accent-light); color: var(--accent); margin-bottom: 0.8rem; }

/* =========================================
   组件：表格
   ========================================= */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border-light); }
th { background: var(--bg-secondary); font-weight: 600; color: var(--text-primary); }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(107, 143, 132, 0.04); }

/* =========================================
   组件：FAQ (Details/Summary)
   ========================================= */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
details { border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-card); overflow: hidden; transition: border-color 0.2s; }
details:hover { border-color: var(--border); }
summary {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.5rem 1.2rem; line-height: 1.8; color: var(--text-secondary); }

/* =========================================
   组件：步骤与列表优化
   ========================================= */
.steps-list { counter-reset: step; list-style: none; padding: 0; }
.steps-list li { position: relative; padding-left: 3.2rem; margin-bottom: 1.8rem; counter-increment: step; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; background: var(--accent-light); color: var(--accent);
  border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 0.95rem;
}
.step-title { display: block; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; }

/* =========================================
   SVG 动效通用类
   ========================================= */
.svg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pathDraw 2.5s ease forwards; }
.svg-draw-delay-1 { animation-delay: 0.3s; }
.svg-draw-delay-2 { animation-delay: 0.6s; }
.svg-sweep { animation: highlightSweep 5s ease-in-out infinite alternate; }
.svg-float { animation: gentleFloat 6s ease-in-out infinite; }
@keyframes pathDraw { to { stroke-dashoffset: 0; } }
@keyframes highlightSweep {
  0% { transform: translateX(-120%) skewX(-15deg); opacity: 0.6; }
  40% { opacity: 0.8; }
  100% { transform: translateX(220%) skewX(-15deg); opacity: 0; }
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* 减少动态效果适配 */
@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;
  }
}
/* 辅助类 */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
