:root {
  --primary-color: #F2C14E;
  --secondary-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 (No marquee) */
  --header-offset: 122px;
}

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

/* Base styles for links 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: 25px;
  background: var(--button-gradient);
  color: #000; /* Text color for buttons */
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a; /* Dark background for header, contrasting with gold/red logo */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-height: 60px; /* Ensure content fits */
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
}

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

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

.main-nav {
  display: flex; /* Desktop: visible, row */
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex: 1; /* Take central space */
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

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

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

/* Mobile specific elements (hidden by default on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  flex-shrink: 0;
}

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

.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;
  opacity: 0;
}

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

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

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

.footer-cols-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

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

.footer-col p {
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

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

.footer-nav a {
  color: #ccc;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  color: #999;
}

.footer-slot-anchor {
  /* This is for external content injection, should not affect layout */
  display: block;
  width: 100%;
  min-height: 1px; /* Ensure it takes up minimal space if empty */
}

.footer-slot-anchor-inner {
  /* For injection inside columns, similar to above */
  display: block;
  width: 100%;
  min-height: 1px;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  :root {
    /* Header Offset (No marquee) */
    --header-offset: 110px;
  }

  body {
    padding-top: var(--header-offset);
  }
  
  .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;
  }

  .header-container {
    width: 100%; /* Important: no max-width */
    max-width: none; /* Important: no max-width */
    padding: 10px 15px; /* Smaller padding for mobile */
    justify-content: flex-start; /* Align items for mobile layout */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    z-index: 1001; /* Above other elements */
    order: 1; /* First element */
  }

  .logo {
    order: 2; /* Second element */
    flex: 1 !important; /* Take central space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: var(--header-offset); /* Start below fixed header */
    left: 0;
    width: 280px; /* Mobile menu width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #222; /* Menu background */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 999; /* Below overlay */
    overflow-y: auto; /* Scroll if content is long */
  }

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

  .main-nav .nav-link {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

  .main-nav .nav-link::after {
    display: none; /* Hide underline effect on mobile */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    order: 3; /* Third element */
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto; /* Push to right */
  }
  
  .mobile-nav-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
  }

  /* Hamburger menu icon animation */
  .hamburger-menu.active {
    /* Optional: style for active state, e.g., turning into an X */
  }

  .footer-cols-wrapper {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .footer-col {
    text-align: center; /* Center footer content on mobile */
  }

  .footer-col .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 10px;
  }
  .logo {
    font-size: 22px;
  }
  .mobile-nav-buttons .btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .site-footer .footer-container {
    padding: 0 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
