:root {
  --primary-color: #F2C14E; /* Black Gold - Main */
  --secondary-color: #FFD36B; /* Black Gold - Accent */
  --bg-color-card: #111111;
  --bg-color-site: #0A0A0A;
  --text-color-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);

  /* Header offset based on no marquee: desktop 120px + 2px */
  --header-offset: 122px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color-main);
  background-color: var(--bg-color-site);
  padding-top: var(--header-offset); /* Important: Body padding for fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-color-site); /* Solid background for fixed header */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  z-index: 1000;
  min-height: 60px; /* Ensure content adaptation */
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute items */
  padding: 15px 30px; /* Generous padding for desktop */
  width: 100%; /* Ensure it spans full width within max-width */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  flex-shrink: 0; /* Prevent logo from shrinking */
  order: 1; /* Desktop order */
  display: block; /* Ensure logo is always visible */
  padding: 5px 0; /* Adjust vertical padding */
}

.main-nav {
  display: flex;
  flex-direction: row; /* Desktop horizontal */
  justify-content: center;
  align-items: center;
  gap: 30px; /* Spacing between nav links */
  flex: 1; /* Occupy middle space */
  order: 2; /* Desktop order */
  padding: 0 20px; /* Padding for nav area */
}

.nav-link {
  color: var(--text-color-main);
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 0;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap; /* Prevent menu items from wrapping */
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px; /* Rounded buttons */
  font-size: 15px;
  font-weight: bold;
  text-decoration: none; /* No underline for buttons */
  color: #000000; /* Dark text for bright buttons for contrast */
  background: var(--button-gradient); /* Gradient button */
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4); /* Glow effect */
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 90px; /* Ensure buttons have minimum width */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
  filter: brightness(1.1);
}

.desktop-nav-buttons {
  display: flex; /* Desktop default */
  gap: 12px; /* Spacing between buttons */
  flex-shrink: 0; /* Prevent buttons from shrinking */
  order: 3; /* Desktop order */
  margin-left: auto; /* Push buttons to the right */
}

.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: var(--text-color-main);
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
  order: 1; /* Mobile order */
  z-index: 1002; /* Above mobile menu */
  line-height: 1;
}

.hamburger-menu.active {
  color: var(--primary-color);
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Footer Styles */
.site-footer {
  background-color: var(--bg-color-card); /* Card BG color for footer */
  color: var(--text-color-main);
  padding: 40px 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col {
  padding-right: 20px; /* Spacing between columns */
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  color: #CCCCCC; /* Slightly lighter text for description */
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-title {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav .nav-link {
  color: #CCCCCC;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 0; /* Remove padding from general nav-link */
}

.footer-nav .nav-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color); /* Separator line */
  color: #AAAAAA;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  :root {
    /* Header offset for mobile: 108px + 2px */
    --header-offset: 110px;
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden; /* Ensure body overflow is hidden on mobile */
  }

  /* Mobile Header */
  .header-container {
    width: 100%; /* Must be 100% on mobile */
    max-width: none; /* No max-width on mobile */
    padding: 10px 15px; /* Smaller padding for mobile */
    justify-content: space-between;
    position: relative; /* For absolute positioning of logo if needed */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Leftmost */
  }

  .logo {
    order: 2; /* Middle position */
    flex: 1 !important; /* Take available space */
    display: flex !important; /* Use flex for centering child img */
    justify-content: center !important; /* Center logo horizontally */
    align-items: center !important;
    font-size: 24px; /* Adjust font size for mobile */
    padding: 0; /* Remove vertical padding for better alignment */
    max-width: calc(100% - 120px); /* Adjust max-width to leave space for buttons and hamburger */
  }

  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px; /* Limit image height */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed; /* Fixed position for mobile menu */
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 250px; /* Menu width */
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background-color: var(--bg-color-card); /* Menu background */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    padding: 20px;
    align-items: flex-start; /* Align links to the left */
    gap: 15px;
    z-index: 999; /* Below hamburger, above content */
    overflow-y: auto; /* Scroll if menu content is long */
  }

  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide into view */
  }

  .nav-link {
    font-size: 18px;
    width: 100%; /* Full width links */
  }

  .desktop-nav-buttons {
    display: none !important; /* Hide desktop buttons on mobile */
  }

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons on mobile */
    gap: 8px; /* Spacing between buttons */
    flex-shrink: 0;
    order: 3; /* Rightmost */
  }

  /* Mobile menu overlay */
  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998; /* Below menu, above content */
  }

  .mobile-menu-overlay.active {
    display: block; /* Show when active */
  }

  /* Footer Mobile */
  .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .footer-col {
    padding-right: 0; /* Remove right padding for single column */
  }

  /* Ensure images in content are responsive */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
