:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-alt: #1c1c1c;
  --color-border: rgba(212, 175, 55, 0.25);
  --color-gold: #d4af37;
  --color-gold-light: #f1d985;
  --color-text: #e8e8e8;
  --color-text-muted: #a0a0a0;
  --font-heading: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', Inter, system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --transition-base: 0.2s 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(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: var(--space-sm); color: var(--color-gold); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); margin-bottom: var(--space-xs); }
p { margin-bottom: 1rem; max-width: 65ch; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition-base); }
a:hover, a:focus-visible { color: var(--color-gold-light); outline: 2px solid var(--color-gold); outline-offset: 2px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-sm); }
section { padding: var(--space-lg) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Header & Footer */
header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,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; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-text); }
.brand img { height: 32px; width: auto; }
nav ul { display: flex; list-style: none; gap: var(--space-md); padding: 0; }
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-gold); }
footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-md) 0; margin-top: var(--space-lg); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); text-align: center; color: var(--color-text-muted); font-size: 0.875rem; }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition-base); border: none; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, #b8860b, #d4af37); color: #000; }
.btn-primary:hover { background: linear-gradient(135deg, #d4af37, #f1d985); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(212,175,55,0.3); color: #000; }
.btn-secondary { background: transparent; border: 1px solid var(--color-gold); color: var(--color-gold); }
.btn-secondary:hover { background: rgba(212,175,55,0.1); color: var(--color-gold-light); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-md); transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.section-header { text-align: center; margin-bottom: var(--space-md); }
.divider { height: 1px; background: var(--color-border); margin: var(--space-lg) 0; opacity: 0.5; }
.badge { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; border-radius: 999px; background: rgba(212,175,55,0.15); color: var(--color-gold); border: 1px solid var(--color-border); margin-bottom: 0.5rem; }
.news-date { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.25rem; }
.text-gold { color: var(--color-gold); }

/* Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); min-width: 600px; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface-alt); font-weight: 600; color: var(--color-gold); }
tr:last-child td { border-bottom: none; }

/* FAQ */
details { margin-bottom: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
summary { padding: 1rem; cursor: pointer; font-weight: 600; background: var(--color-surface-alt); color: var(--color-text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.25rem; color: var(--color-gold); transition: transform var(--transition-base); }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--color-border); }
details div { padding: 1rem; background: var(--color-surface); }

/* Related Links */
.related-link { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
.related-link:hover { color: var(--color-gold-light); }
.related-link span { color: var(--color-text-muted); font-size: 0.85rem; }

/* Icons */
.icon-svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* SVG Animations */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes draw-line {
  0%, 100% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
}
.svg-animated .card-shape-1 { animation: float-y 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svg-animated .card-shape-2 { animation: float-delayed 7s ease-in-out infinite 1s; transform-box: fill-box; transform-origin: center; }
.svg-animated .card-shape-3 { animation: float-y 8s ease-in-out infinite 2s; transform-box: fill-box; transform-origin: center; }
.svg-animated .draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .svg-animated * { animation: none !important; }
  html { scroll-behavior: auto; }
}
