/* ===========================
   1. Global Variables & Reset
   =========================== */
:root {
  /* Brand Colors: Black & Gold Premium */
  --color-bg-main: #080808;
  --color-bg-surface: #121212;
  --color-bg-elevated: #1c1c1c;
  
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #a1a1a1;
  --color-text-muted: #666666;
  
  --color-accent: #d4af37; /* Metallic Gold */
  --color-accent-hover: #b5952f;
  --color-accent-subtle: rgba(212, 175, 55, 0.1);
  
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-accent: rgba(212, 175, 55, 0.3);

  /* Typography */
  --font-serif: "Playfair Display", "Songti SC", Georgia, serif; /* For premium headlines */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 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: 16px;
  
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Fluid Typography */
h1 { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; font-weight: 600; margin-bottom: var(--space-md); }
h3 { font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; font-weight: 500; margin-bottom: var(--space-sm); }
p { margin-bottom: 1.5rem; max-width: 70ch; color: var(--color-text-secondary); font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem); }

strong { color: var(--color-text-primary); font-weight: 600; }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-padding {
  padding: var(--space-lg) 0;
}

.grid-auto {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* ===========================
   2. Header & Navigation
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.brand-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1); /* Force white logo if dark */
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-primary);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--color-accent);
}

/* Mobile Nav Toggle (Hidden on Desktop) */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
}

/* ===========================
   3. Components
   =========================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #000;
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background-color: var(--color-accent-subtle);
}

/* Cards */
.card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-accent);
}

/* Lists & Icons */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-sm);
}

.icon-box svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

/* Table */
.custom-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.custom-table th, .custom-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.custom-table th {
  background-color: var(--color-bg-elevated);
  color: var(--color-accent);
  font-weight: 600;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table td {
  color: var(--color-text-secondary);
}

/* FAQ / Details */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: var(--space-sm) 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-item p {
  margin-top: var(--space-sm);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* News Cards */
.news-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  flex-grow: 1;
}

.news-footer {
  margin-top: var(--space-md);
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===========================
   4. SVG Animations & Special
   =========================== */
.hero-svg-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Floating Animation */
.float-fast {
  animation: floatY 4s ease-in-out infinite alternate;
}
.float-med {
  animation: floatY 6s ease-in-out infinite alternate;
  animation-delay: -2s;
}
.float-slow {
  animation: floatY 8s ease-in-out infinite alternate;
  animation-delay: -4s;
}

@keyframes floatY {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* Reduced Motion */
@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;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-list { display: none; } /* Simplify for this generation */
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  h1 { font-size: 2.5rem; }
  .grid-auto { grid-template-columns: 1fr; }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
