/* Header Offset - MUST be first in shared_css as per instructions */
:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); overflow-x: hidden; }

/* General Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: #F2C14E; /* Primary color for links */
}
a:hover {
  color: #FFD36B; /* Glow color for hover */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Default desktop padding */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none; /* Remove underline for buttons */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #333; /* Dark text for contrast on gold button */
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0A0A0A; /* Background color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  z-index: 1000; /* Ensure it's on top */
  min-height: 68px; /* Minimum height for header content */
  display: flex; /* For desktop layout */
  align-items: center; /* Vertically center content */
}
.site-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px; /* Based on header-top height */
}

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  padding: 10px 0;
}
.site-header .logo:hover {
  color: #FFD36B; /* Glow color on hover */
}

/* Desktop Navigation */
.main-nav {
  flex: 1;
  display: flex; /* Desktop default */
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
  gap: 30px; /* Spacing between nav links */
  position: static; /* Desktop default */
  padding: 10px 0; /* To match min-height of main-nav 52px */
}
.main-nav .nav-link {
  color: #FFF6D6; /* Text Main */
  font-size: 16px;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #F2C14E; /* Primary color for active/hover */
}

/* Desktop Buttons */
.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex; /* Desktop default */
  gap: 10px; /* Spacing between buttons */
}
.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop */
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 28px;
  color: #F2C14E; /* Primary color */
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 1001; /* Above mobile nav */
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998; /* Below mobile nav, above content */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Footer */
.site-footer {
  background-color: #0A0A0A; /* Background color */
  padding: 40px 0 20px;
  border-top: 1px solid #3A2A12; /* Border color */
  color: #FFF6D6; /* Text Main */
}
.site-footer .footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.site-footer .footer-col {
  display: flex;
  flex-direction: column;
}
.site-footer .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}
.site-footer .footer-logo:hover {
  color: #FFD36B;
}
.site-footer .footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: #FFF6D6; /* Text Main */
  word-wrap: break-word; /* Ensure long text wraps */
  overflow-wrap: break-word; /* Ensure long text wraps */
}
.site-footer h3 {
  font-size: 18px;
  color: #F2C14E; /* Primary color for headings */
  margin-bottom: 15px;
  font-weight: bold;
}
.site-footer .footer-nav a {
  display: block;
  color: #FFF6D6; /* Text Main */
  font-size: 15px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.site-footer .footer-nav a:hover {
  color: #FFD36B; /* Glow color on hover */
}
.site-footer .footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #FFF6D6; /* Text Main */
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border color */
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer .footer-slot-anchor {
  min-height: 1px;
  width: 100%;
  display: block;
}
.site-footer .footer-slot-anchor-inner {
  min-height: 1px;
  width: 100%;
  display: block;
  margin-top: 15px;
}

/* Body no-scroll for mobile menu */
body.no-scroll {
  overflow: hidden;
}

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

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

  .site-header .header-container {
    width: 100%;
    max-width: none; /* Crucial: no max-width on mobile */
    padding: 10px 15px; /* Smaller padding for mobile */
    min-height: 60px; /* Based on header-top height */
    justify-content: space-between; /* Adjust for hamburger, logo, buttons */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    flex-shrink: 0;
    order: 1; /* Place it first */
    margin-right: 10px;
  }
  .hamburger-menu.active {
    color: #FFD36B; /* Active color */
  }

  .site-header .logo {
    flex: 1; /* Allow logo to take available space */
    text-align: center; /* Center text logo */
    order: 2; /* Place logo second */
    font-size: 24px;
    padding: 0; /* Remove padding for better centering */
    display: block; /* Ensure text logo is block for text-align */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout for mobile menu */
    position: fixed; /* Fixed position for mobile menu */
    top: var(--header-offset); /* Position below header */
    left: 0;
    width: 280px; /* Width of the mobile menu */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #111111; /* Card BG for menu background */
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    z-index: 999; /* Below overlay, above content */
    overflow-y: auto; /* Allow scrolling for long menus */
    align-items: flex-start; /* Align links to the left */
    gap: 15px;
  }
  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide in */
  }
  .main-nav .nav-link {
    font-size: 18px;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid #3A2A12; /* Border for menu items */
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }

  .desktop-nav-buttons {
    display: none !important; /* Hidden on mobile */
  }
  .mobile-nav-buttons {
    flex-shrink: 0;
    display: flex !important; /* Show on mobile */
    gap: 8px; /* Spacing between buttons */
    order: 3; /* Place buttons last */
  }
  .mobile-nav-buttons .btn {
    padding: 8px 12px; /* Smaller buttons for mobile */
    font-size: 14px;
  }

  .mobile-menu-overlay.active {
    display: block; /* Show overlay when menu is active */
  }

  /* Footer Mobile */
  .site-footer .footer-content-wrapper {
    grid-template-columns: 1fr; /* Single column layout for footer */
    gap: 20px;
    padding: 0 15px;
  }
  .site-footer .footer-col {
    margin-bottom: 20px;
  }
  .site-footer .footer-col:last-child {
    margin-bottom: 0;
  }
  .site-footer .footer-bottom {
    padding: 15px 15px 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;
  }
}
