:root {
  --color-bg: #FAF9F6;
  --color-surface: #FFFFFF;
  --color-text: #111111;
  --color-text-muted: #4A4A4A;
  --color-border: #D6D6D6;
  --color-accent: #0B8A6F;
  --color-accent-light: #E8F5F1;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1140px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --transition-base: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 排版系统 */
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; color: var(--color-text); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--space-sm); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-bottom: var(--space-xs); }
p { margin-bottom: 1rem; max-width: 68ch; }
a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 4px; transition: color var(--transition-base); }
a:hover { color: #076B56; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

/* 布局容器 */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-sm); }
section { padding: var(--space-lg) 0; }
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media(min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* 交错式版式基础 */
.stagger-row { display: grid; gap: var(--space-lg); align-items: center; }
.stagger-row.reverse { direction: rtl; }
.stagger-row > * { direction: ltr; }
@media(min-width: 768px) { .stagger-row { grid-template-columns: 1.1fr 0.9fr; } }

/* 组件：按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-text); color: #FFF; }
.btn-primary:hover { background: #2A2A2A; box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.btn-secondary { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-text); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* 组件：卡片 */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.card-body { margin-top: var(--space-xs); }
.card-body p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 0; }

/* 组件：表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #F2F2F2; font-weight: 600; white-space: nowrap; }
td { vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFA; }

/* 组件：FAQ */
details { border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; overflow: hidden; background: var(--color-surface); }
summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background var(--transition-base); }
summary:hover { background: #F7F7F7; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.25rem; margin-left: 1rem; flex-shrink: 0; }
details[open] summary::after { content: "−"; }
details[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-content { padding: 1rem 1.25rem; color: var(--color-text-muted); line-height: 1.6; }
.faq-content p { margin-bottom: 0.5rem; }
.faq-content p:last-child { margin-bottom: 0; }

/* 页头 / 页脚 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 246, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.brand-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--color-text); font-weight: 600; font-size: 1.05rem; }
.brand-link img { width: 30px; height: 30px; object-fit: contain; }
nav ul { display: flex; list-style: none; gap: 1.5rem; }
nav a { text-decoration: none; color: var(--color-text-muted); font-weight: 500; padding: 0.4rem 0; position: relative; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-text); }
nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-accent); }
.site-footer { background: var(--color-text); color: #ECECEC; padding: var(--space-xl) 0 var(--space-lg); margin-top: var(--space-lg); }
.footer-inner { display: grid; gap: var(--space-md); }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: #FFF; font-weight: 600; font-size: 1.1rem; }
.footer-brand img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.footer-nav ul { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav a { color: #999; text-decoration: none; }
.footer-nav a:hover { color: #FFF; }
.copyright { color: #777; font-size: 0.85rem; text-align: center; margin-top: var(--space-md); }

/* 移动端导航隐藏逻辑 */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--color-text); }
@media(max-width: 768px) {
  .mobile-toggle { display: block; }
  nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 1rem; display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0.75rem; }
  nav a { padding: 0.6rem 0; }
}

/* SVG 动效系统 */
.svg-container { width: 100%; max-width: 100%; overflow: visible; }
.svg-container svg { width: 100%; height: auto; display: block; }
.line-stroke { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; fill: none; stroke: var(--color-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes drawPath { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.anim-draw { animation: drawPath 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-draw-delay { animation: drawPath 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards; }

@keyframes sweepLight { 0% { transform: translateX(-120%); opacity: 0; } 15% { opacity: 0.4; } 85% { opacity: 0.4; } 100% { transform: translateX(120%); opacity: 0; } }
.sweep-grad { fill: url(#highlightGradient); mix-blend-mode: overlay; }
.anim-sweep { animation: sweepLight 7s linear infinite; transform-box: fill-box; transform-origin: center; }

/* 减少动态效果偏好 */
@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; }
  .anim-draw, .anim-draw-delay { stroke-dashoffset: 0 !important; }
  .anim-sweep { animation: none !important; }
}

/* 区块辅助类 */
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.75rem; }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; background: var(--color-accent-light); color: var(--color-accent); border-radius: 99px; font-size: 0.8rem; font-weight: 600; }
.news-card time { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--color-text-muted); }
.related-list { list-style: none; padding-left: 0; }
.related-list li { margin-bottom: 0.75rem; padding-left: 1rem; border-left: 3px solid var(--color-border); }
.related-list a { text-decoration: none; font-weight: 500; color: var(--color-text); }
.related-list a:hover { color: var(--color-accent); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-text); color: #FFF; font-weight: 700; font-size: 0.9rem; margin-right: 0.6rem; flex-shrink: 0; }
