/* Base Styles & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0D0E12;
  color: #FFF3E6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Header Offset */
:root {
  --header-offset: 122px;
}
body {
  padding-top: var(--header-offset);
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0D0E12; /* Fallback, actual colors defined per section */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
}

/* Header Top */
.header-top {
  background-color: #0D0E12; /* Dark background */
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}
.header-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Padding for logo and buttons */
}
.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FF8C1A; /* Primary color for logo text */
  text-transform: uppercase;
  display: block; /* Ensure it's a block for styling */
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* Desktop Nav Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  font-weight: bold;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.3);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.5);
}

/* Mobile Nav Buttons (hidden by default on desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  min-height: 48px; /* Fixed height for mobile */
  background-color: #17191F; /* Card BG for mobile button bar */
}

/* Main Navigation */
.main-nav {
  background-color: #17191F; /* Card BG for main nav */
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}
.nav-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}
.nav-link {
  padding: 0 15px;
  color: #FFF3E6;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #FFA53A; /* Secondary color on hover */
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Above header */
}
.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #FFF3E6;
  transition: all 0.3s ease-in-out;
}
.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);
}

/* 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;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer Styles */
.site-footer {
  background-color: #17191F; /* Card BG for footer */
  color: #FFF3E6;
  padding: 40px 20px 20px;
  border-top: 1px solid #A84F0C; /* Border color */
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
}
.footer-col h3 {
  color: #FF8C1A; /* Primary color for headings */
  font-size: 18px;
  margin-bottom: 15px;
}
.footer-col ul {
  padding: 0;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: #FFF3E6;
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: #FFA53A;
}
.footer-about .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C1A;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}
.footer-description {
  font-size: 14px;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-legal-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px; /* Adjust gap as needed */
    font-size: 14px;
}
.footer-legal-links a {
    color: #FFF3E6;
}
.footer-bottom {
  text-align: center;
  padding: 20px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
}
.footer-bottom p {
    margin: 0;
}
/* Footer slot anchors should not hide content */
.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px;
  width: 100%;
}


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

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

  /* Header Top Mobile */
  .site-header {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
  }
  .header-container {
    padding: 0 15px; /* Smaller padding for mobile */
    max-width: none; /* No max-width on mobile */
    width: 100%; /* Full width */
    position: relative; /* For absolute logo positioning */
  }

  /* Hamburger Menu Mobile */
  .hamburger-menu {
    display: block; /* Show on mobile */
    order: -1; /* Place at the beginning */
    margin-right: auto; /* Push logo to center */
  }

  /* Logo Mobile Centering (Method 1: Flexbox with !important) */
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute; /* Take out of flow to center */
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px); /* Account for hamburger and potential right element */
  }
  .logo img {
    max-height: 56px !important; /* Smaller logo for mobile */
  }

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

  /* Mobile Nav Buttons (Show on mobile) */
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Smaller padding for mobile */
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    background-color: #17191F; /* Card BG for mobile button bar */
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Max width for two buttons with gap */
    box-sizing: border-box;
    padding: 8px 12px; /* Smaller padding for mobile buttons */
    font-size: 13px; /* Smaller font size for mobile buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Main Nav Mobile (Hamburger Menu Content) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Start below header */
    left: 0;
    width: 80%; /* Menu width */
    height: calc(100% - var(--header-offset)); /* Fill remaining height */
    background-color: #0D0E12; /* Background color for mobile menu */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Scroll if content is long */
    min-height: auto !important;
    height: auto !important;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    max-width: none; /* No max-width on mobile */
    width: 100%; /* Full width */
    padding: 0;
  }
  .nav-link {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 30px 15px 15px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
    padding-bottom: 20px;
  }
  .footer-legal-section {
      padding: 15px 0;
  }
  .footer-legal-links {
      flex-direction: column;
      gap: 10px;
      align-items: center;
  }
  .footer-bottom {
    padding: 15px 0 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;
  }
}
