:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --bg-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --header-offset: 122px; /* Desktop default: 68px top-bar + 52px main-nav */
}

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

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

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color); /* Use a dark background from the scheme */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  min-height: 60px; /* Ensure content adaptation */
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px; /* Desktop padding */
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 60px; /* Ensure content adaptation */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  flex-shrink: 0;
  padding: 10px 0;
  display: block; /* Ensure logo is visible by default */
}

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

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px; /* Spacing between nav links */
  padding: 10px 0;
}

.main-nav .nav-link {
  color: var(--text-main-color);
  font-size: 16px;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent wrapping */
}

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

.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto; /* Push buttons to the right */
  display: flex; /* Show on desktop */
  gap: 10px; /* Spacing between buttons */
}

.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop, !important to override potential other styles */
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none; /* Remove underline for buttons */
  color: #000; /* Text color for buttons */
  background: var(--button-gradient);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px var(--glow-color); /* Glow effect */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--glow-color);
}

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

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

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

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

.footer-description {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  word-wrap: break-word; /* Ensure description wraps */
  overflow-wrap: break-word;
}

.footer-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

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

.footer-mid-slots {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-slot-anchor-inner {
  /* Ensure visibility for injected content */
  min-height: 1px; /* Smallest possible height */
  min-width: 1px; /* Smallest possible width */
  display: block; /* Ensure it takes up space */
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile header offset: 60px top-bar + 48px main-nav */
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden; /* Prevent body horizontal scroll */
  }

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

  .header-container {
    width: 100%;
    max-width: none; /* Crucial: no max-width on mobile container */
    padding: 0 15px; /* Mobile padding */
    min-height: 50px;
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    flex-shrink: 0;
  }

  .logo {
    flex: 1 !important; /* Take available space */
    display: flex !important; /* Use flex to center image/text */
    justify-content: center !important; /* Center content */
    align-items: center !important;
    padding: 5px 0;
    font-size: 24px; /* Adjust logo size for mobile */
  }

  .main-nav {
    display: none; /* Hide main nav by default on mobile */
    flex-direction: column; /* Stack links vertically */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 70%; /* Mobile menu width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg); /* Menu background */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    padding: 20px 0;
    align-items: flex-start; /* Align menu items to the left */
    gap: 15px;
    z-index: 999;
    overflow-y: auto; /* Enable scrolling for long menus */
  }

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

  .main-nav .nav-link {
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
  }

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

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

  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998; /* Below menu, above page content */
    transition: opacity 0.3s ease;
    opacity: 0;
  }

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

  .footer-container {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    padding: 20px 15px;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-col:last-child {
    margin-bottom: 0;
  }

  /* Mobile content overflow protection */
  .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;
  }
}
