:root {
  --color-primary: #5A8A7E;
  --color-primary-hover: #4A7369;
  --color-secondary: #8BA4A0;
  --color-bg: #F7F8F6;
  --color-surface: #FFFFFF;
  --color-text: #2C3332;
  --color-text-muted: #6B7270;
  --color-border: #E2E5E4;
  --color-accent: #D4CFCB;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(44, 51, 50, 0.06);
  --shadow-hover: 0 8px 32px rgba(44, 51, 50, 0.10);
  --font-heading: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --spacing-section: clamp(64px, 8vw, 120px);
  --spacing-container: clamp(16px, 4vw, 32px);
}

*, *::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);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.02em; text-wrap: balance; color: var(--color-text); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; color: var(--color-text-muted); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Layout */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--spacing-container); }
.section { padding: var(--spacing-section) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Header & Footer */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 251, 249, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; }
.logo img { height: 32px; width: auto; }
nav ul { display: flex; gap: 1.5rem; }
nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted); transition: color 0.2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary); }
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 40px 0 24px; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; font-size: 0.9rem; color: var(--color-text-muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a:hover { text-decoration: underline; }

/* Components */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-weight: 500; cursor: pointer; border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); 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-primary); color: #fff; }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-item { display: flex; flex-direction: column; gap: 12px; }
.feature-icon { width: 44px; height: 44px; color: var(--color-primary); margin-bottom: 4px; }

/* Table */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-bg); font-weight: 600; color: var(--color-text); }
tr:last-child td { border-bottom: none; }
td { color: var(--color-text-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow 0.2s; }
details:hover { box-shadow: var(--shadow-card); }
summary {
  padding: 16px 20px; cursor: pointer; font-weight: 500; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--color-primary); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 20px 16px; color: var(--color-text-muted); }

/* News Card */
.news-date { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 8px; display: block; }
.news-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news-card p { font-size: 0.95rem; margin-bottom: 16px; }

/* SVG Animations */
.svg-anim { width: 100%; height: auto; display: block; }
.flow-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes flowDash {
  0% { stroke-dashoffset: 1; opacity: 0.2; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.2; }
}
.flow-path.animate { animation: flowDash 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.pulse-dot { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

@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; }
  .flow-path.animate, .pulse-dot { animation: none !important; }
}

/* Focus & Accessibility */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--color-primary); color: #fff; padding: 8px 16px; z-index: 200; }
.skip-link:focus { top: 0; }

/* Responsive Tweaks */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 12px; }
  nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  h1 { font-size: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
