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

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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Important for fixed header */
  background-color: var(--page-bg);
  color: var(--text-main);
  overflow-x: hidden; /* For general mobile overflow */
}

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

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--card-bg); /* Using card-bg for header, or a darker shade for contrast */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-height: 80px; /* Base height for header content */
  display: flex; /* Ensures header-container takes full height */
  align-items: center; /* Vertically center content */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px 30px; /* Adjusted padding for desktop */
  min-height: 50px; /* Minimum height for the container content */
}

.logo {
  flex-shrink: 0;
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255, 211, 107, 0.5); /* Subtle glow */
  display: block; /* Ensure logo is visible */
  padding-right: 20px; /* Space between logo and nav */
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0 20px; /* Padding for nav links */
}

.nav-link {
  font-size: 1.1em;
  font-weight: bold;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent wrapping */
}

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

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

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

.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex; /* Default for desktop */
  gap: 10px;
}

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

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  color: #000; /* Dark text for bright buttons */
  background: var(--btn-gradient);
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
  transition: all 0.3s ease;
  text-decoration: none; /* Remove underline */
  white-space: nowrap; /* Prevent wrapping */
  border: none; /* No border */
  cursor: pointer;
  font-size: 1em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.btn-login {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%); /* Slightly different gradient for login */
  color: #333; /* Darker text for slightly different button */
}

.hamburger-menu {
  display: none; /* Hidden by default for desktop */
  background: none;
  border: none;
  font-size: 2em;
  color: var(--text-main);
  cursor: pointer;
  padding: 5px;
  z-index: 1001; /* Above other header elements */
  flex-shrink: 0;
  margin-right: 15px; /* Space between hamburger and logo */
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998; /* Below menu, above content */
  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);
  padding: 40px 20px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.9em;
}

.footer-main-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255, 211, 107, 0.5);
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  line-height: 1.6;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-heading {
  font-size: 1.2em;
  color: var(--accent-color);
  margin-bottom: 15px;
}

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

.footer-nav .nav-link {
  color: var(--text-main);
  font-weight: normal;
  font-size: 1em;
  padding: 0;
}

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

.footer-nav .nav-link::after {
  display: none;
}

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

.footer-slot-anchor {
  margin-bottom: 20px;
}

.footer-slot-anchor-inner {
  display: block;
  min-height: 10px;
  margin-top: 10px;
}

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

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden;
  }

  .site-header {
    min-height: 60px; /* Adjusted mobile header height */
  }

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile */
    padding: 10px 15px; /* Adjusted padding for mobile */
    justify-content: space-between; /* Space out items */
    position: relative; /* For absolute positioning of logo if needed */
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1; /* First item */
  }

  .logo {
    order: 2; /* Second item */
    flex: 1 !important; /* Take available space to help centering */
    display: flex !important; /* Use flex for centering logic */
    justify-content: center !important;
    align-items: center !important;
    font-size: 2em;
    padding: 0 10px; /* Reduce padding */
  }

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

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Start below the fixed header */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px;
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    z-index: 999; /* Below overlay if overlay is 998 */
    overflow-y: auto; /* Enable scrolling for long menus */
    align-items: flex-start; /* Align links to the left */
    padding: 20px 0;
  }

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

  .main-nav .nav-link {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

  .main-nav .nav-link::after {
    display: none;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    order: 3; /* Third item */
    gap: 8px;
    margin-left: auto; /* Push to the right */
  }

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

  .footer-cols-wrapper {
    grid-template-columns: 1fr; /* Single column layout for mobile */
  }
  .footer-col {
    margin-bottom: 20px;
  }
  .footer-col:last-child {
    margin-bottom: 0;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
