:root {
  --bg-base: #0a0a0c;
  --bg-surface: #131316;
  --bg-card: #1a1a1e;
  --bg-elevated: #222226;
  --text-main: #ededed;
  --text-muted: #9a9aa3;
  --accent-gold: #d4af37;
  --accent-gold-hover: #e8c763;
  --accent-gold-subtle: rgba(212, 175, 55, 0.15);
  --border-line: 1px solid rgba(255, 255, 255, 0.08);
  --border-accent: 1px solid rgba(212, 175, 55, 0.35);
  --radius-sm: 4px;
  --radius-md: 8px;
  --font-display: 'Noto Serif SC', 'Songti SC', 'Source Han Serif CN', Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text-main);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.15; margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); color: var(--text-muted); }
a { color: var(--accent-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-gold-hover); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; margin-bottom: var(--space-sm); }
li { margin-bottom: 0.6rem; color: var(--text-muted); }
strong { color: var(--text-main); font-weight: 600; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-sm); }
section { padding: var(--space-xl) 0; border-bottom: var(--border-line); }
section:last-child { border-bottom: none; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Header & Footer */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: var(--border-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 34px; width: auto; }
.brand-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--text-main); }
nav ul { display: flex; list-style: none; gap: var(--space-md); }
nav a {
  display: inline-block; padding: 0.5rem 0;
  color: var(--text-muted); font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
nav a:hover, nav a[aria-current="page"] { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.footer { background: var(--bg-surface); padding: var(--space-xl) 0 var(--space-md); border-top: var(--border-line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-col h4 { font-family: var(--font-display); font-size: 1rem; color: var(--text-main); margin-bottom: var(--space-sm); }
.footer-col a { display: block; padding: 0.4rem 0; color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-gold); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding-top: var(--space-md); border-top: var(--border-line); }

/* Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition-base); border: 1px solid transparent;
}
.btn-primary { background: var(--accent-gold); color: #0b0b0c; }
.btn-primary:hover { background: var(--accent-gold-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25); }
.btn-outline { background: transparent; color: var(--accent-gold); border-color: var(--accent-gold); }
.btn-outline:hover { background: var(--accent-gold-subtle); }
.card {
  background: var(--bg-card); border: var(--border-line); border-radius: var(--radius-md);
  padding: var(--space-md); transition: transform var(--transition-base), border-color var(--transition-base);
}
.card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.4); }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: var(--space-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.9rem 1rem; text-align: left; border: var(--border-line); }
th { background: var(--bg-surface); color: var(--accent-gold); font-family: var(--font-display); font-weight: 500; }
td { color: var(--text-muted); }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* FAQ */
details { background: var(--bg-card); border: var(--border-line); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; }
summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 500; color: var(--text-main); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--accent-gold); font-size: 1.2rem; font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { padding: 0 1.2rem 1.2rem; color: var(--text-muted); line-height: 1.65; }

/* News Cards */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.news-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-main); margin-bottom: 0.5rem; }
.news-excerpt { font-size: 0.9rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 1rem; }
.news-link { font-size: 0.9rem; color: var(--accent-gold); margin-top: auto; display: inline-block; }

/* Decorative */
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent); margin: var(--space-lg) 0; }
.step-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-gold-subtle); color: var(--accent-gold); font-weight: 600; font-size: 0.9rem; margin-right: 0.75rem; flex-shrink: 0; }
.step-item { display: flex; align-items: flex-start; margin-bottom: 1.2rem; }

/* SVG Animation System */
.svg-anim-box { position: relative; width: 100%; height: 320px; overflow: hidden; }
.float-layer-1 { animation: float-y 6s ease-in-out infinite; }
.float-layer-2 { animation: float-y 7.5s ease-in-out infinite; animation-delay: 1.2s; }
.float-layer-3 { animation: float-y 5.5s ease-in-out infinite; animation-delay: 2.4s; }
.stroke-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes draw-stroke {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.draw-path { animation: draw-stroke 2.5s ease forwards; }
.rotate-center { transform-box: fill-box; transform-origin: center; animation: spin-slow 24s linear infinite; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Mobile & Responsive Fixes */
@media (max-width: 768px) {
  /* Reset inline grids to single column to prevent overflow */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Stack header elements */
  .header-inner {
    flex-direction: column;
    padding: 1rem 0;
  }
  .brand { margin-bottom: 0.5rem; }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  nav a { font-size: 0.9rem; }
}

@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;
  }
  .float-layer-1, .float-layer-2, .float-layer-3, .rotate-center, .draw-path {
    animation: none !important;
  }
}
