:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --text-primary: #e6e6e6;
  --text-muted: #9a9a9a;
  --gold: #c9a227;
  --gold-light: #f0d060;
  --border-subtle: rgba(201, 162, 39, 0.2);
  --font-serif: "Georgia", "Noto Serif SC", "Songti SC", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", sans-serif;
  --container-width: 1120px;
  --space-section: clamp(4rem, 7vw, 8rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: var(--gold); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold-light); }
img, svg { display: block; max-width: 100%; height: auto; }
.container { width: 92%; max-width: var(--container-width); margin: 0 auto; }
section { padding: var(--space-section) 0; }

/* Header & Nav */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-wrap {
  display: flex; justify-content: space-between; align-items: center;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; color: var(--text-primary); }
.brand img { height: 34px; width: auto; }
nav ul { display: flex; gap: 22px; list-style: none; }
nav a {
  color: var(--text-muted); font-size: 0.92rem; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
nav a:hover, nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* Footer */
footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
  padding: 56px 0 28px; margin-top: var(--space-section);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.footer-col h4 { color: var(--gold); margin-bottom: 14px; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-bottom { text-align: center; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.82rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  border: 1px solid transparent; font-size: 0.95rem;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0a0a0a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(201, 162, 39, 0.25); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(201, 162, 39, 0.1); }

/* Cards & Layout */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 22px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); }
.card-date { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.card-title { color: var(--text-primary); font-weight: 600; margin-bottom: 8px; font-family: var(--font-serif); }
.card-desc { font-size: 0.9rem; margin-bottom: 14px; }
.view-btn { font-size: 0.85rem; padding: 6px 14px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; min-width: 540px; }
th, td { padding: 14px 16px; border: 1px solid var(--border-subtle); text-align: left; }
th { background: var(--bg-secondary); color: var(--gold); font-family: var(--font-serif); font-weight: 500; }
td { color: var(--text-muted); }

/* FAQ */
details { margin-bottom: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; }
summary {
  padding: 16px 20px; background: var(--bg-card); cursor: pointer;
  font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 1.15rem; transition: transform 0.2s; }
details[open] summary::after { content: "−"; }
details[open] summary { background: var(--bg-secondary); }
details > div { padding: 14px 20px; background: var(--bg-primary); color: var(--text-muted); line-height: 1.65; }

/* Links List */
.link-list { list-style: none; display: grid; gap: 12px; }
.link-item a { display: block; padding: 10px 14px; border-left: 2px solid var(--border-subtle); background: var(--bg-card); transition: border-color 0.3s; }
.link-item a:hover { border-left-color: var(--gold); }
.link-title { color: var(--text-primary); font-weight: 500; display: block; margin-bottom: 4px; }
.link-meta { font-size: 0.85rem; color: var(--text-muted); }

/* SVG Animation Utilities */
.svg-visual { width: 100%; max-width: 420px; margin: 0 auto; }
.geom { fill: none; stroke: var(--gold); stroke-width: 1.5; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.transform-box { transform-box: fill-box; transform-origin: center; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes draw-path { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes assemble-geo { from { transform: scale(0.85) translate(-8%, -8%); opacity: 0.7; } to { transform: scale(1) translate(0, 0); opacity: 1; } }

.anim-spin { animation: spin-slow 14s linear infinite; }
.anim-draw { animation: draw-path 3.5s var(--ease) forwards; }
.anim-assemble { animation: assemble-geo 4.5s var(--ease) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Focus */
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Utility */
.text-gold { color: var(--gold); }
.mt-2 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }
.overlay-hero { position: relative; min-height: 85vh; display: flex; align-items: center; background: radial-gradient(circle at 70% 40%, #1a1a1a 0%, var(--bg-primary) 65%); }
.hero-content { max-width: 600px; z-index: 2; }
.hero-svg-container { flex: 1; display: flex; align-items: center; justify-content: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: 0.8rem; font-weight: 600; margin-right: 10px; }
ol.steps { padding-left: 0; list-style: none; counter-reset: step; }
ol.steps li { position: relative; padding-left: 36px; margin-bottom: 16px; counter-increment: step; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--bg-secondary); border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; }
.feature-icon { width: 28px; height: 28px; stroke: var(--gold); stroke-width: 1.5; fill: none; margin-bottom: 12px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); margin: 48px 0; }
