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

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

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

/* Base styles for anchors and buttons */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--button-gradient);
  color: #1a1a1a; /* Dark text for bright button */
  font-weight: bold;
  text-decoration: none !important;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
}

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px; /* Desktop padding */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute items */
  width: 100%; /* Important for max-width to work */
}

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

.logo {
  flex-shrink: 0;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav {
  flex: 1; /* Occupy middle space */
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center nav links */
  align-items: center;
  gap: 30px; /* Spacing between nav links */
  padding: 0 20px; /* Ensure some internal padding */
}

.nav-link {
  color: var(--text-main);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

/* Mobile Menu Overlay */
.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: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none; /* Allow clicks through when hidden */
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto; /* Enable clicks when active */
}

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

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

.footer-col {
  padding: 10px 0;
}

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

.footer-description {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
  word-wrap: break-word; /* Ensure long words break */
  overflow-wrap: break-word;
}

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

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

.footer-link {
  color: var(--text-main);
  font-size: 14px;
  transition: color 0.2s ease-in-out;
}

.footer-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer-slot-anchor-inner {
  /* Placeholder for injected content, ensure it's visible */
  min-height: 1px; /* Small height to ensure it takes space if empty */
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-main);
}

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

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

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

  .header-container {
    width: 100%; /* Full width on mobile */
    max-width: none; /* No max-width restriction */
    padding: 10px 15px; /* Mobile padding */
    justify-content: space-between; /* Distribute items */
    position: relative; /* For absolute logo centering if needed */
  }

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

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2; /* Middle */
    font-size: 24px; /* Adjust font size for mobile */
    max-width: calc(100% - 100px); /* Prevent logo from being too wide if it's text */
  }

  /* If LOGO were an image, this would ensure centering */
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px; /* Adjust max-height for mobile logo */
  }

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

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

  .nav-link {
    font-size: 18px; /* Larger links for mobile */
    color: var(--text-main);
  }

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

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

  .btn {
    padding: 8px 15px; /* Smaller buttons for mobile */
    font-size: 14px;
  }

  .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    text-align: center;
  }

  .footer-col {
    padding: 15px 0;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-nav {
    align-items: center; /* Center footer links on mobile */
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
