:root {
  --color-primary: #7a9e9e;
  --color-primary-dark: #5c7e7e;
  --color-secondary: #b5c4be;
  --color-bg: #f4f6f5;
  --color-surface: #ffffff;
  --color-text: #2c3338;
  --color-text-muted: #5a6670;
  --color-border: #dfe5e3;
  --color-accent: #8fa8a3;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 0.75rem;
  --shadow-sm: 0 2px 8px rgba(44, 51, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 51, 56, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 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.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xl) 0; }
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--radius); font-weight: 500; font-size: 1rem;
  cursor: pointer; transition: all var(--transition); border: none; text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-secondary:hover { background: rgba(122, 158, 158, 0.08); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-md); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: var(--space-xs); }
.card-title { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-xs); color: var(--color-text); }
.card-body { font-size: 0.95rem; color: var(--color-text-muted); }
.card-footer { margin-top: var(--space-sm); }

table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; font-size: 0.95rem; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { font-weight: 600; color: var(--color-text-muted); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }

details { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--color-surface); }
summary { padding: 1rem; cursor: pointer; font-weight: 500; list-style: none; position: relative; padding-right: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 400; }
details[open] summary::after { content: '-'; }
details > div { padding: 0 1rem 1rem; color: var(--color-text-muted); }

header { position: sticky; top: 0; z-index: 100; background: rgba(244, 246, 245, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); padding: 0.75rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary); }

footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-lg) 0; margin-top: var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); }
.footer-col h4 { font-size: 1rem; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.copyright { text-align: center; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.875rem; }

.section-header { text-align: center; max-width: 70ch; margin: 0 auto var(--space-lg); }
.section-subtitle { color: var(--color-text-muted); max-width: 60ch; margin: 0 auto; }

/* SVG Animations */
@keyframes sweep { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(200%) rotate(45deg); } }
@keyframes draw { 0% { stroke-dashoffset: 1; opacity: 0; } 10% { opacity: 1; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.svg-sweep { animation: sweep 7s ease-in-out infinite; }
.svg-draw { animation: draw 8s linear infinite; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.svg-float { animation: float 5s ease-in-out infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .svg-sweep, .svg-draw, .svg-float { animation: none !important; }
}
.mt-lg { margin-top: var(--space-lg); }
