/* General styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
}

a:hover {
  color: #F2C14E; /* Primary color for hover */
}

/* Header offset */
:root {
  --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) + 2px buffer */
}

body {
  padding-top: var(--header-offset);
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

/* Logo */
.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-transform: uppercase;
  display: flex; /* Use flex for potential image logo alignment */
  align-items: center;
  height: 100%;
}

.logo img {
  display: block;
  max-height: 60px; /* Desktop max height */
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Mobile Navigation Buttons (hidden by default) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop */
  min-height: 48px; /* Mobile height */
  background-color: #111111; /* Card BG */
  border-top: 1px solid #3A2A12; /* Border */
}

/* Main Navigation */
.main-nav {
  background-color: #0A0A0A; /* Background */
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

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

.nav-link {
  padding: 0 15px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
  height: 100%; /* Ensure link fills height for vertical alignment */
  display: flex;
  align-items: center;
}

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

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001; /* Above header */
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #FFF6D6; /* Text Main */
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 10px; }
.hamburger-menu span:nth-child(3) { top: 20px; }

.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

/* Overlay (hidden on desktop) */
.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: 999; /* Below menu, above content */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  color: #111111; /* Dark text for bright buttons */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4); /* Glow effect */
  text-decoration: none; /* Remove underline for buttons */
  white-space: nowrap; /* Prevent buttons text from wrapping on desktop */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.footer-top-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.footer-cols-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3 {
  font-size: 18px;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-transform: uppercase;
  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: 8px;
}

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

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

.footer-mid-slots, .footer-slot-anchor-inner {
  display: block;
  min-height: 1px;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid #3A2A12; /* Border */
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #FFF6D6; /* Text Main */
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Header offset for mobile */
  :root {
    --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (mobile-nav-buttons) + 2px buffer */
  }

  .site-header {
    overflow-x: hidden;
  }

  /* Header Top Area */
  .header-top {
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .header-container {
    padding: 0; /* Handled by header-top padding */
    max-width: none; /* Remove max-width on mobile */
    width: 100%;
    position: relative; /* For absolute positioning of logo */
    justify-content: flex-start; /* Aligns hamburger to start */
  }

  /* Hamburger Menu */
  .hamburger-menu {
    display: block;
    position: relative;
    z-index: 2; /* Above logo */
    order: -1; /* Place it first in flex order */
  }

  /* Logo Centering (Method 2: Absolute Positioning) */
  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: calc(100% - 60px); /* Leave space for hamburger (30px) + mirror space (30px) */
    z-index: 1; /* Below hamburger */
    font-size: 24px;
  }

  .logo img {
    max-height: 56px !important; /* Mobile max height */
  }

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

  /* Mobile Nav Buttons (show on mobile) */
  .mobile-nav-buttons {
    display: flex !important; /* Show on mobile */
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Adjust padding */
    min-height: 48px;
    background-color: #111111; /* Card BG */
    border-top: 1px solid #3A2A12; /* Border */
    gap: 10px; /* Gap between buttons */
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Main Navigation (mobile sidebar) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: #111111; /* Card BG */
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: var(--header-offset); /* Push content below header */
    overflow-y: auto;
    z-index: 1001; /* Above overlay */
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
    max-width: none;
  }

  .nav-link {
    padding: 10px 0;
    width: 100%;
    justify-content: flex-start;
  }

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

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

  .footer-col {
    text-align: center;
  }

  .footer-col:not(:last-child) {
    margin-bottom: 20px;
  }

  .footer-col h3, .footer-logo {
    text-align: center;
  }

  .footer-nav {
    text-align: center;
  }

  .footer-nav li {
    display: inline-block;
    margin: 0 8px 8px 8px;
  }

  .footer-description {
    text-align: center;
  }

  .footer-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
