:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); margin: 0; font-family: Arial, sans-serif; background-color: #0A0A0A; color: #FFF6D6; overflow-x: hidden; }

/* Site Header - Fixed Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* Header Top Area */
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #111111; /* Card BG */
  width: 100%;
  padding: 0 20px;
}

.header-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
}
.desktop-nav-buttons .btn,
.mobile-nav-buttons .btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  color: #FFF6D6; /* Text Main */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}
.desktop-nav-buttons .btn:hover,
.mobile-nav-buttons .btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Mobile Navigation Buttons (hidden by default on desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop, shown on mobile */
  background-color: #0A0A0A; /* Background */
}

/* Main Navigation */
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0A0A0A; /* Background, different from header-top */
  width: 100%;
  padding: 0 20px;
}

.nav-container {
  box-sizing: border-box;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 25px;
}

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

.nav-link:hover {
  color: #FFD36B; /* Glow */
}

/* Hamburger Menu (hidden by default on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFF6D6; /* Text Main */
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Overlay for 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;
}

/* Footer */
.site-footer {
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
  padding: 40px 20px 20px;
  box-sizing: border-box;
  width: 100%;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  padding-bottom: 20px;
  border-bottom: 1px solid #3A2A12; /* Border */
}

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

.footer-logo {
  font-size: 26px;
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  text-decoration: none;
  margin-bottom: 15px;
}

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

.footer-col h3 {
  font-size: 18px;
  color: #FFD36B; /* Auxiliary Color */
  margin-bottom: 15px;
}

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

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

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

.footer-nav a:hover {
  color: #FFD36B; /* Glow */
}

.footer-dynamic-col .footer-slot-anchor-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.footer-dynamic-row {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border */
}
.footer-dynamic-row:first-of-type {
  border-top: none; /* Remove border for the first dynamic row after grid */
}

.footer-dynamic-row .footer-slot-anchor-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #FFF6D6; /* Text Main */
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border */
}
.footer-bottom p {
  margin: 0;
}


/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  
  /* Mobile Header Top */
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 15px;
  }
  .header-container {
    width: 100%;
    max-width: none; /* Important for mobile */
    padding: 0; /* Remove container padding as header-top has it */
    justify-content: space-between;
  }
  .logo {
    flex: 1 !important; /* Allow logo to take available space */
    display: flex !important;
    justify-content: center !important; /* Center logo */
    align-items: center !important;
    font-size: 24px;
  }
  .logo img {
    max-height: 56px !important; /* Match mobile header-top height */
  }

  /* Hamburger Menu */
  .hamburger-menu {
    display: block; /* Show on mobile */
    order: -1; /* Place it at the beginning */
    margin-right: 10px;
  }
  .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Desktop Nav Buttons - Hide on mobile */
  .desktop-nav-buttons {
    display: none;
  }

  /* Mobile Nav Buttons - Show on mobile */
  .mobile-nav-buttons {
    display: flex !important; /* Show on mobile */
    min-height: 48px;
    align-items: center;
    justify-content: center; /* Center buttons if only one, or for gap */
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Match header-top padding */
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap; /* Ensure buttons stay in one row */
    background-color: #0A0A0A; /* Background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for separation */
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px); /* For two buttons with 10px gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }

  /* Main Navigation - Mobile (hidden by default, slides in) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Start below fixed header */
    left: 0;
    width: 280px; /* Width of the side menu */
    height: calc(100% - var(--header-offset)); /* Fill remaining height */
    background-color: #111111; /* Card BG */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Allow scrolling for long menus */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    min-height: auto !important;
    height: auto !important;
  }
  .main-nav.active {
    display: flex; /* Show the menu */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: none; /* Important for mobile */
    padding: 0;
  }
  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #3A2A12; /* Border */
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Overlay active state */
  .overlay.active {
    display: block;
  }

  /* Footer Mobile Layout */
  .site-footer {
    padding: 30px 15px 15px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 25px;
    margin-bottom: 25px;
    border-bottom: none; /* Remove border for mobile */
  }
  .footer-col {
    padding-bottom: 20px;
    border-bottom: 1px solid #3A2A12; /* Border between columns */
  }
  .footer-col:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-dynamic-row {
    margin: 0 auto 15px auto;
    padding-top: 15px;
  }
  .footer-bottom {
    padding-top: 15px;
  }
  
  /* Mobile content overflow protection */
  .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;
  }
}
