:root {
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-text-dark: #2C3338;
  --color-text-light: #5A636A;
  --color-primary: #5C7A68;
  --color-primary-hover: #4A6556;
  --color-accent: #A8B5A5;
  --color-border: #E8E4DF;
  --color-highlight: rgba(92, 122, 104, 0.15);
  
  --font-heading: 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 4px 16px rgba(44, 51, 56, 0.06);
  --shadow-hover: 0 8px 24px rgba(44, 51, 56, 0.10);
}

*, *::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(--color-text-dark);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-primary-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 2px; }
ul, ol { padding-left: 0; list-style: none; }
p { margin-bottom: 1em; }

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-text-dark); line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: var(--space-sm); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: var(--space-xs); }
.section-desc { font-size: 1.1rem; color: var(--color-text-light); max-width: 720px; margin-bottom: var(--space-lg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xl) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Header & Footer */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 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: 72px; }
.brand { display: flex; align-items: center; gap: var(--space-xs); font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--color-text-dark); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; gap: var(--space-md); }
nav a { font-size: 0.95rem; font-weight: 500; padding: 6px 0; position: relative; }
nav a[aria-current="page"] { color: var(--color-primary); }
nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--color-primary); }
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-lg) 0 var(--space-md); margin-top: var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-col h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: var(--space-sm); color: var(--color-text-dark); }
.footer-col a { display: block; font-size: 0.9rem; color: var(--color-text-light); padding: 4px 0; }
.footer-col a:hover { color: var(--color-primary); }
.copyright { text-align: center; font-size: 0.85rem; color: var(--color-text-light); border-top: 1px solid var(--color-border); padding-top: var(--space-md); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 1rem; font-weight: 500; border-radius: var(--radius-md);
  cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-highlight); }

/* Cards & Components */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-md); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card-icon { width: 48px; height: 48px; margin-bottom: var(--space-sm); color: var(--color-primary); }
.feature-item { display: flex; flex-direction: column; height: 100%; }
.feature-item p { color: var(--color-text-light); font-size: 0.95rem; margin-top: auto; }

/* Table */
.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: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #F4F2EF; font-weight: 600; color: var(--color-text-dark); }
td { color: var(--color-text-light); }
tr:last-child td { border-bottom: none; }

/* FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: var(--space-xs); overflow: hidden; }
summary { padding: 16px 20px; font-weight: 500; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--color-text-light); transition: transform 0.2s; }
details[open] summary::after { content: "-"; }
details p { padding: 0 20px 16px; color: var(--color-text-light); font-size: 0.95rem; line-height: 1.6; }

/* News & Related */
.news-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.news-card time { font-size: 0.8rem; color: var(--color-text-light); display: block; margin-bottom: 8px; }
.news-card p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 12px; }
.related-list li { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: 0.95rem; display: block; }
.related-list span { font-size: 0.85rem; color: var(--color-text-light); display: block; margin-top: 2px; }

/* SVG Animation Base */
.svg-container { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.svg-container svg { width: 100%; height: auto; overflow: visible; }
.draw-line { fill: none; stroke: var(--color-primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.highlight-sweep { opacity: 0.6; mix-blend-mode: screen; }
.transform-center { transform-box: fill-box; transform-origin: center; }

@keyframes draw-on-off {
  0%, 100% { stroke-dashoffset: 1; }
  40%, 60% { stroke-dashoffset: 0; }
}
@keyframes sweep-across {
  0% { transform: translateX(-150%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}
.animate-draw { animation: draw-on-off 8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.animate-sweep { animation: sweep-across 10s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .animate-draw { stroke-dashoffset: 0; }
  .animate-sweep { transform: none; }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 16px 0; }
  nav ul { gap: var(--space-sm); margin-top: 12px; flex-wrap: wrap; justify-content: center; }
  section { padding: var(--space-lg) 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
