:root {
  --primary-color: #F2C14E;
  --accent-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --body-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --header-offset: 122px; /* Desktop no marquee */
}

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

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

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

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 20px;
  flex-shrink: 0;
  display: block; /* Ensure logo is visible */
}

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

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

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

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

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

.btn {
  background: var(--button-gradient);
  color: var(--card-bg); /* Dark text on bright button */
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.6); /* Glow effect */
  transform: translateY(-2px);
}

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

.site-footer h3 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.site-footer h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  margin-top: 8px;
}

.footer-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr); /* 4 columns, first one wider */
  gap: 30px;
  margin-bottom: 40px;
}

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

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

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

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-mid-section-slots {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex; /* or grid if multiple rows/cols needed */
  flex-wrap: wrap;
  gap: 20px; /* Adjust spacing as needed */
  margin-bottom: 20px;
}

.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility for system injection */
  min-width: 1px; /* Ensure visibility for system injection */
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: #888; /* Slightly muted color for copyright */
  font-size: 13px;
}

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

  .header-container {
    width: 100%;
    max-width: none; /* No max-width on mobile */
    padding: 0 15px; /* Adjusted padding for mobile */
    justify-content: space-between; /* Space out elements */
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
    order: 0; /* Leftmost */
    z-index: 1001; /* Above other header elements */
  }

  .hamburger-menu.active {
    color: var(--accent-color);
  }

  .logo {
    flex: 1 !important; /* Take available space */
    display: flex !important; /* Use flex for centering */
    justify-content: center !important; /* Center horizontally */
    align-items: center !important; /* Center vertically */
    font-size: 24px;
    order: 1; /* Middle */
    padding-left: 10px; /* Adjust for hamburger */
    padding-right: 10px; /* Adjust for buttons */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below fixed header */
    left: 0;
    width: 75%; /* Slide-out menu width */
    height: calc(100vh - var(--header-offset));
    background-color: var(--card-bg);
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    align-items: flex-start; /* Align nav links to left */
    overflow-y: auto; /* Enable scrolling for long menus */
    z-index: 999;
  }

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

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

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

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

  /* Mobile overlay for menu */
  .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 content */
    transition: opacity 0.3s ease-out;
    opacity: 0;
  }

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

  /* Prevent body scrolling when menu is open */
  body.no-scroll {
    overflow: hidden;
  }

  .site-footer h3 {
    font-size: 16px;
  }

  .footer-main-content {
    grid-template-columns: 1fr; /* Single column on mobile */
    padding: 0 15px;
  }

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

  .footer-bottom {
    padding: 20px 15px 0;
  }

  /* Mobile content overflow rules */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: 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;
  }
}
