/* General Reset & Body */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

/* Header Offset */
:root {
  --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) = 120px, +2px for safety */
}
body {
  padding-top: var(--header-offset);
}

/* Site Header */
.site-header {
  background-color: #1a1a1a; /* A darker background for the header to contrast with text and gold accents */
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  min-height: 60px; /* Ensure content adaptation */
  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: 15px 30px; /* Desktop padding */
}

/* Logo */
.logo {
  flex-shrink: 0;
  color: #F2C14E; /* Primary color for logo */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  display: block; /* Ensure it's visible */
}

/* Main Navigation (Desktop Default) */
.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: static; /* Desktop: normal flow */
}

.main-nav .nav-link {
  color: #FFF6D6; /* Text Main */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.main-nav .nav-link:hover {
  color: #F2C14E; /* Primary color on hover */
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex; /* Desktop: visible */
  gap: 10px;
}

/* Mobile Navigation Buttons (Hidden by default on desktop) */
.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop, important to override other styles */
}

/* Buttons */
.btn {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #000000; /* Text color for buttons */
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none; /* No border for buttons */
  cursor: pointer;
}

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

/* Hamburger Menu (Hidden by default on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001; /* Above other elements */
}

.hamburger-menu .hamburger-icon {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #FFF6D6; /* Text Main */
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu .hamburger-icon:last-child {
  margin-bottom: 0;
}

/* Hamburger menu active state (X icon) */
.hamburger-menu.active .hamburger-icon:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .hamburger-icon:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .hamburger-icon:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay (Hidden by default) */
.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); /* Semi-transparent black */
  z-index: 998; /* Below menu, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer */
.site-footer {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  padding: 40px 0 20px;
  font-size: 14px;
}

.site-footer .footer-top-row {
  padding: 0 30px;
}

.site-footer .footer-main-content {
  padding: 20px 30px;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px; /* Separator from mid slots */
}

.site-footer .footer-col h3 {
  color: #F2C14E; /* Primary color for footer headings */
  font-size: 18px;
  margin-bottom: 15px;
}

.site-footer .footer-logo {
  color: #F2C14E; /* Primary color for footer logo */
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.site-footer .footer-description {
  color: #FFF6D6; /* Text Main */
  line-height: 1.8;
  word-wrap: break-word; /* Ensure full display */
  overflow-wrap: break-word;
}

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

.site-footer .footer-nav a {
  color: #FFF6D6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
  color: #F2C14E; /* Primary color on hover */
}

.site-footer .footer-bottom {
  border-top: 1px solid #3A2A12; /* Border color */
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
  color: #FFF6D6; /* Text Main */
}

/* Footer Slot Anchors - ensure visibility */
.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px; /* Ensure it takes up space even if empty */
  display: block;
  width: 100%;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Header Offset for Mobile */
  :root {
    --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (main-nav) = 108px, +2px for safety */
  }

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

  .header-container {
    width: 100%;
    max-width: none; /* Important: no max-width on mobile */
    padding: 10px 15px; /* Mobile padding */
    justify-content: space-between; /* Hamburger | Logo | Buttons */
  }

  .logo {
    flex: 1 !important; /* Mobile Logo: flex for centering */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }

  /* Hamburger Menu (Visible on mobile) */
  .hamburger-menu {
    display: block;
    flex-shrink: 0;
    margin-right: 15px; /* Space between hamburger and logo */
  }

  /* Desktop Nav Buttons (Hidden on mobile) */
  .desktop-nav-buttons {
    display: none !important;
  }

  /* Mobile Nav Buttons (Visible on mobile) */
  .mobile-nav-buttons {
    flex-shrink: 0;
    display: flex !important; /* Visible on mobile */
    gap: 8px;
    margin-left: 15px; /* Space between logo and buttons */
  }

  /* Main Navigation (Mobile Drawer) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Position below header */
    left: 0;
    width: 80%; /* Drawer width */
    max-width: 300px; /* Max width for drawer */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #111111; /* Card BG */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Scroll for long menus */
    align-items: flex-start; /* Align links to left */
  }

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

  .main-nav .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #3A2A12; /* Border */
  }

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

  /* Footer Mobile Layout */
  .site-footer .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .site-footer .footer-col:first-child {
    margin-bottom: 20px; /* Space after first column */
  }

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

/* Body no-scroll for mobile menu */
body.no-scroll {
  overflow: 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;
  }
}
