:root {
  --color-bg: #0a0a0c;
  --color-surface: #131316;
  --color-border: rgba(212, 175, 55, 0.28);
  --color-gold: #d4af37;
  --color-gold-light: #f2e8c9;
  --color-text: #eaeaea;
  --color-text-muted: #94949a;
  --color-accent: #c29e28;
  --font-heading: "Playfair Display", "Noto Serif SC", "Songti SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.45);
  --transition-base: 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: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - var(--gutter) * 2, var(--max-width)); margin: 0 auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--color-border); }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}
.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 32px; width: auto; }
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.04em; }
nav ul { display: flex; gap: 2rem; align-items: center; }
nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted); position: relative; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-gold); }
nav a[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px;
  background: var(--color-gold); border-radius: 1px;
}
.mobile-toggle { display: none; background: none; border: 1px solid var(--color-border); padding: 0.5rem; border-radius: var(--radius-sm); cursor: pointer; }
.mobile-toggle svg { width: 22px; height: 22px; stroke: var(--color-text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-md); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: all var(--transition-base);
  border: 1.5px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--color-gold), var(--color-accent)); color: #0b0b0d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35); }
.btn-secondary { background: transparent; border-color: var(--color-border); color: var(--color-gold); }
.btn-secondary:hover { background: rgba(212, 175, 55, 0.08); border-color: var(--color-gold); }
.btn-icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Cards & Grid */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.feature-icon {
  width: 44px; height: 44px; margin-bottom: 1.1rem;
  background: rgba(212, 175, 55, 0.06); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); display: grid; place-items: center;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--color-gold); stroke-width: 1.8; fill: none; }
.feature-title { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--color-text); }
.feature-desc { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.65; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: rgba(212, 175, 55, 0.08); font-weight: 600; color: var(--color-gold-light); }
td { color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }

/* FAQ Details */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden; background: var(--color-surface); }
summary {
  padding: 1.15rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--color-text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition-base);
}
summary:hover { background: rgba(255, 255, 255, 0.03); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 1.2rem; color: var(--color-gold); transition: transform var(--transition-base);
  flex-shrink: 0; margin-left: 1rem;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--color-text-muted); line-height: 1.7; }

/* News & Related */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-date { font-size: 0.85rem; color: var(--color-gold); margin-bottom: 0.5rem; }
.news-title { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--color-text); }
.news-excerpt { font-size: 0.95rem; color: var(--color-text-muted); flex-grow: 1; margin-bottom: 1rem; }
.read-link { color: var(--color-gold); font-weight: 500; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.read-link:hover { text-decoration: underline; }
.related-list { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.related-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 0.85rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--color-text); transition: all var(--transition-base);
}
.related-item:hover { border-color: var(--color-gold); color: var(--color-gold-light); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: 3rem 0; margin-top: 2rem; background: var(--color-surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { font-family: var(--font-heading); margin-bottom: 1rem; color: var(--color-gold-light); }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-gold); }
.copyright { text-align: center; margin-top: 2.5rem; color: var(--color-text-muted); font-size: 0.85rem; }

/* SVG Animations */
.draw-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.animate-draw { animation: drawStroke 5s ease-in-out infinite alternate; }
@keyframes drawStroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.float-card { animation: floatY 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.float-card.delay-1 { animation-delay: 1.2s; }
.float-card.delay-2 { animation-delay: 2.8s; }
@keyframes floatY {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
.pulse-ring {
  animation: pulseRing 4s ease-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
@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;
  }
  .animate-draw, .float-card, .pulse-ring { animation: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  nav { display: none; }
  .mobile-toggle { display: block; }
  nav.open { display: flex; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-bg); flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .section-subtitle { margin-left: auto; margin-right: auto; }
}
