/* =========================================
   Global Design System & Reset
   ========================================= */
:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-alt: #181818;
  --color-border: rgba(212, 175, 55, 0.2);
  --color-border-strong: rgba(212, 175, 55, 0.5);
  --color-accent: #d4af37;
  --color-accent-hover: #e5c152;
  --color-text: #eaeaea;
  --color-text-muted: #9a9a9a;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --space-section: clamp(3.5rem, 8vw, 6.5rem);
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Typography */
.text-serif { font-family: var(--font-serif); }
.display-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin-bottom: clamp(1rem, 3vw, 1.8rem);
  position: relative;
  padding-left: 1.2rem;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0.25em; bottom: 0.25em;
  width: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--color-text-muted); max-width: 68ch; }

/* Layout Grid */
.grid-auto {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Components: Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 1rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #b8942e 100%);
  color: #0a0a0a;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}
.btn-outline {
  border: 1px solid var(--color-border-strong);
  color: var(--color-accent);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--color-accent);
}

/* Components: Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.2rem, 3vw, 1.6rem);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.card:hover { border-color: var(--color-border-strong); transform: translateY(-3px); }
.card-icon {
  width: 40px; height: 40px; margin-bottom: 1rem;
  color: var(--color-accent);
}
.card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--color-text); }
.card-body { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.65; }

/* Components: Table */
.table-wrapper { 
  width: 100%;
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
  border: 1px solid var(--color-border); 
  border-radius: var(--radius-md); 
}
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface-alt); color: var(--color-accent); font-weight: 600; }
td { color: var(--color-text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.03); }

/* Components: FAQ */
details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color var(--transition-base);
}
details[open] { border-color: var(--color-border-strong); }
summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.4rem; color: var(--color-accent); transition: transform var(--transition-base);
}
details[open] summary::after { transform: rotate(45deg); }
.summary-content { padding: 0 1.2rem 1rem; color: var(--color-text-muted); line-height: 1.7; }

/* Components: Header & Footer */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 70px;
}
.brand-logo img { height: 36px; width: auto; object-fit: contain; filter: grayscale(0.1) brightness(1.1); }
.nav-list { display: flex; gap: 1.8rem; flex-wrap: wrap; align-items: center; min-width: 0; }
.nav-link { font-size: 0.95rem; color: var(--color-text-muted); position: relative; padding: 0.3rem 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-accent); }
.nav-link[aria-current="page"]::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--color-accent);
}
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  margin-top: var(--space-section);
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h3 { font-size: 1rem; color: var(--color-accent); margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-text); }
.footer-copy { text-align: center; margin-top: 2rem; color: var(--color-text-muted); font-size: 0.85rem; }

/* Components: News Cards */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-date { font-size: 0.85rem; color: var(--color-accent); margin-bottom: 0.5rem; }
.news-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--color-text); }
.news-excerpt { font-size: 0.9rem; color: var(--color-text-muted); flex-grow: 1; margin-bottom: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Components: Related Links */
.related-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex; justify-content: space-between; align-items: baseline;
}
.related-list a { font-weight: 500; color: var(--color-text); }
.related-list a:hover { color: var(--color-accent); }
.related-desc { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.3rem; }

/* SVG Animation Classes */
.geo-shape { transform-box: fill-box; transform-origin: center; }
.shape-rotate-slow { animation: spin-calm 18s linear infinite; }
.shape-rotate-reverse { animation: spin-calm 22s linear infinite reverse; }
.shape-pulse { animation: pulse-opacity 6s ease-in-out infinite alternate; }
.path-draw {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 8s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes spin-calm {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes pulse-opacity {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
@keyframes draw-line {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

/* Utility & Focus */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.mt-sm { margin-top: 1rem; } .mt-md { margin-top: 2rem; } .mb-lg { margin-bottom: 2rem; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--color-border); margin: var(--space-section) 0; }

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
