/* ==================== 设计变量与基础重置 ==================== */
:root {
  --color-brand: #075E54;
  --color-accent: #25D366;
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-border: #E5E7EB;
  --color-text: #111827;
  --color-text-muted: #4B5563;
  --color-dark: #111827;
  --color-light: #F3F4F6;
  
  --font-serif: "Noto Serif SC", Georgia, "Songti SC", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  
  --container-max: 1140px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

/* ==================== 排版系统 ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-brand);
  text-wrap: balance;
  margin-top: 0;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1.25em; color: var(--color-text); }
strong { font-weight: 600; }
a { color: var(--color-brand); text-decoration-thickness: 1px; transition: color var(--transition-base); }
a:hover { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

/* ==================== 布局容器 ==================== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4.5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ==================== 导航与页脚 ==================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,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: 68px; }
.logo-group { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { width: 36px; height: 36px; object-fit: contain; display: block; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.125rem; color: var(--color-dark); }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2rem; }
.main-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted);
  position: relative; padding-bottom: 4px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-brand); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--color-accent); border-radius: 1px;
}
.site-footer { background: var(--color-dark); color: #D1D5DB; padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; }
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--font-sans); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #9CA3AF; font-size: 0.9rem; }
.footer-col a:hover { color: white; text-decoration: underline; }
.copyright { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #374151; font-size: 0.85rem; color: #6B7280; }

/* ==================== 组件：按钮 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; text-decoration: none; line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary { background: var(--color-brand); color: white; }
.btn-primary:hover { background: #064E46; transform: translateY(-2px); box-shadow: var(--shadow-hover); color: white; }
.btn-secondary { background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-brand); color: var(--color-brand); transform: translateY(-1px); }

/* ==================== 组件：卡片与网格 ==================== */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-card); transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: #D1D5DB; transform: translateY(-3px); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1rem; display: block; }
.card-body { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.6; }

/* ==================== 组件：表格 ==================== */
.table-wrapper { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-light); font-weight: 600; color: var(--color-brand); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFC; }

/* ==================== 组件：FAQ ==================== */
.faq-list { max-width: 800px; margin: 0 auto; }
details { margin-bottom: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
summary {
  padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600;
  background: #F9FAFB; user-select: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; }
summary:focus-visible { outline: 2px solid var(--color-brand); outline-offset: -2px; }
details[open] summary { border-bottom: 1px solid var(--color-border); background: #FFFFFF; }
details p { padding: 1.1rem 1.25rem; margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* ==================== SVG 动效基座 ==================== */
.svg-anim { width: 100%; max-width: 340px; height: auto; margin: 0 auto; display: block; }
.orbit-ring { fill: none; stroke: var(--color-brand); stroke-width: 1.5; opacity: 0.6; transform-box: fill-box; transform-origin: center; }
.orbit-ring--accent { stroke: var(--color-accent); opacity: 0.5; }
.orbit-ring--solid { stroke-width: 2; }
@keyframes breathe {
  0% { transform: scale(0.92) rotate(0deg); opacity: 0.4; }
  100% { transform: scale(1.08) rotate(3deg); opacity: 0.8; }
}
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.animate-breathe-1 { animation: breathe 6s infinite alternate ease-in-out; }
.animate-breathe-2 { animation: breathe 8s infinite alternate ease-in-out 1.2s; }
.animate-breathe-3 { animation: breathe 5s infinite alternate ease-in-out 0.5s; }
.animate-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 3s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .orbit-ring, .animate-draw { animation: none !important; transform: none !important; }
}

/* 移动端导航防溢出处理 */
@media (max-width: 520px) {
  .main-nav { display: none; }
}
