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

  /* Header offset - no marquee */
  --header-offset: 122px;
}

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

a {
  text-decoration: none;
  color: var(--text-main);
}

/* Header Styles */
.site-header {
  background-color: var(--card-bg); /* Using card-bg for header for contrast with site-bg */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  min-height: 60px; /* Ensure content adaptation */
  display: flex; /* Flex container for direct children if not using a wrapper */
  align-items: center; /* Vertically align items in header */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  width: 100%; /* Ensure container takes full width up to max-width */
  justify-content: space-between; /* Distribute items */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0; /* Prevent logo from shrinking */
  order: 1; /* Desktop order */
}

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

/* Main Navigation - Desktop Styles */
.main-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex: 1; /* Takes up available space */
  gap: 30px;
  order: 2; /* Desktop order */
}

.main-nav .nav-link {
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* Remove underline */
  color: #333; /* Darker text for gradient buttons */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background: var(--button-gradient);
}

.btn:hover {
  opacity: 0.9;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 12px;
  flex-shrink: 0;
  order: 3; /* Desktop order */
}

/* Mobile Navigation Buttons - Hidden on desktop */
.mobile-nav-buttons {
  display: none !important; /* Hidden by default on desktop, !important for override */
  gap: 8px;
  flex-shrink: 0;
  order: 2; /* Mobile order */
}

/* Mobile Menu Overlay - Hidden on desktop */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer Styles */
.site-footer {
  background-color: var(--card-bg);
  color: var(--text-main);
  padding: 40px 20px 20px;
  border-top: 1px solid var(--border-color);
}

.footer-slot-anchor {
    display: block;
    min-height: 1px;
}

.footer-slot-anchor-inner {
    display: block;
    min-height: 1px;
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-col h3 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 15px;
}

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

.footer-about .footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile header offset */
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden; /* Ensure body itself doesn't cause horizontal scroll */
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .site-header {
    min-height: 50px; /* Adjust min-height for mobile */
  }

  .header-container {
    width: 100%; /* Full width for mobile container */
    max-width: none; /* No max-width restriction */
    padding: 10px 15px; /* Smaller padding for mobile */
    justify-content: space-between; /* Space out items */
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu on mobile */
    z-index: 1001; /* Ensure it's above other elements */
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px; /* Adjust logo size for mobile */
    order: 1; /* Mobile order */
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px; /* Adjust max-height as needed */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 280px; /* Sidebar width */
    height: calc(100% - var(--header-offset));
    background-color: var(--card-bg); /* Match header background */
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    z-index: 999; /* Below overlay, above content */
    align-items: flex-start; /* Align links to the left */
    gap: 15px; /* Spacing between links */
  }

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

  .main-nav .nav-link {
    font-size: 18px; /* Larger links for mobile */
    width: 100%; /* Full width links */
    padding: 10px 0;
  }
  .main-nav .nav-link::after {
    bottom: 0; /* Adjust underline position */
  }

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

  /* Mobile buttons visible on mobile */
  .mobile-nav-buttons {
    display: flex !important;
    order: 2; /* Mobile order */
    gap: 8px;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  /* Footer mobile layout */
  .footer-content-wrapper {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    gap: 20px;
  }
  .footer-col h3 {
    margin-top: 20px;
  }
  .footer-about .footer-logo {
    font-size: 22px;
  }
  .footer-bottom {
    padding-top: 15px;
  }
}

/* Prevent body scroll when menu is active */
body.no-scroll {
  overflow: hidden;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
