:root {
  --color-bg: #F9F8F6;
  --color-surface: #FFFFFF;
  --color-text-primary: #111111;
  --color-text-secondary: #4A4A4A;
  --color-accent: #25D366;
  --color-accent-hover: #1EBE57;
  --color-border: #E2DFDA;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 6px 16px rgba(0,0,0,0.05);
  --spacing-section: clamp(3.5rem, 7vw, 6.5rem);
  --container-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

/* 排版 */
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
ul, ol { margin-left: 1.5rem; margin-bottom: 1rem; color: var(--color-text-secondary); }
li { margin-bottom: 0.5rem; }

/* 布局 */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--spacing-section) 0; }
.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: 1.5rem; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .split-layout { grid-template-columns: 1fr; } }

/* 页头页脚 */
header nav { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
header .brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.15rem; color: var(--color-text-primary); }
header .brand img { width: 130px; height: auto; }
header ul { display: flex; list-style: none; gap: 1.5rem; }
header a { font-weight: 500; color: var(--color-text-secondary); }
header a:hover, header a[aria-current="page"] { color: var(--color-text-primary); }
footer { border-top: 1px solid var(--color-border); padding: 3rem 0; margin-top: 2rem; text-align: center; color: var(--color-text-secondary); font-size: 0.9rem; }
footer .footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; list-style: none; }

/* 组件 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 2rem; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25); }
.btn-outline { background: transparent; border-color: var(--color-text-primary); color: var(--color-text-primary); }
.btn-outline:hover { background: var(--color-text-primary); color: #fff; }

.card { background: var(--color-surface); padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 1px solid var(--color-border); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.card-icon { width: 24px; height: 24px; stroke: var(--color-accent); }

/* 表格 */
.table-wrapper { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { background: #f5f4f1; font-weight: 600; color: var(--color-text-primary); }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #faf9f7; }

/* FAQ */
details { margin-bottom: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-left: 1.75rem; }
summary::marker { display: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); color: var(--color-accent); font-weight: 700; }
details[open] summary::before { content: "-"; }
details p { padding: 0 1.25rem 1rem; margin: 0; }

/* 焦点状态 */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* SVG 动效基础 */
.svg-anim-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes sweep-line {
  0%, 100% { opacity: 0.15; transform: translateX(-120%) skewX(-18deg); }
  50% { opacity: 0.85; transform: translateX(220%) skewX(-18deg); }
}
@keyframes draw-stroke { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes gentle-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.anim-sweep { animation: sweep-line 7s cubic-bezier(0.4, 0, 0.2, 1) infinite; will-change: transform, opacity; }
.anim-draw { animation: draw-stroke 4s ease forwards; }
.anim-float { animation: gentle-float 4.5s ease-in-out infinite; will-change: transform; transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .anim-sweep, .anim-draw, .anim-float { animation: none !important; }
  .svg-anim-path { stroke-dashoffset: 0 !important; }
}

/* 辅助类 */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.section-desc { max-width: 720px; margin: 0 auto 2.5rem; }
.badge { display: inline-block; padding: 0.35rem 0.75rem; background: #eef7f1; color: var(--color-accent-hover); border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.link-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.link-btn:hover { gap: 0.6rem; }
.date-meta { font-size: 0.85rem; color: #888; margin-bottom: 0.5rem; }
.related-list { list-style: none; margin-left: 0; }
.related-list li { margin-bottom: 0.6rem; padding-left: 1.2rem; position: relative; }
.related-list li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
