/* General Reset & Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  padding-top: var(--header-offset); /* Fixed header offset */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}
a {
  text-decoration: none;
  color: #FFF3E6; /* Text Main */
}
a:hover {
  color: #FFA53A; /* Auxiliary color for hover */
}

/* Header Styles */
:root {
  --header-offset: 122px; /* Desktop: header-top (68) + main-nav (52) */
}
.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);
  background-color: #0D0E12; /* Overall header background, actual sections will override */
  box-sizing: border-box;
}

/* Header Top */
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #D96800; /* Deep Orange */
  width: 100%;
}
.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;
  padding: 0 20px; /* Padding for logo and buttons */
}
.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  text-transform: uppercase;
  display: block; /* For text logo */
  line-height: 1;
}

/* Desktop Nav Buttons */
.desktop-nav-buttons {
  display: flex; /* Global (desktop default) */
  gap: 12px;
  align-items: center;
}
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  font-weight: bold;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px #FFB04D; /* Glow */
  color: #FFF3E6; /* Ensure text remains visible */
}

/* Mobile Nav Buttons (hidden by default on desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Global (desktop default) */
  min-height: 48px;
  background-color: #FF8C1A; /* Primary color, distinct from header-top */
  width: 100%;
  padding: 0 15px; /* Adjust padding for mobile */
}

/* Main Navigation */
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex; /* Global (desktop default) */
  align-items: center;
  overflow: hidden;
  background-color: #FF8C1A; /* Primary color */
  width: 100%;
}
.nav-container {
  box-sizing: border-box;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}
.nav-link {
  padding: 10px 15px;
  color: #FFF3E6; /* Text Main */
  font-weight: bold;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover {
  color: #D96800; /* Deep Orange for hover */
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

/* Hamburger Menu (hidden by default on desktop) */
.hamburger-menu {
  display: none; /* Global (desktop default) */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #FFF3E6; /* Text Main */
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

/* Hamburger Menu Active State */
.hamburger-menu.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile Spacer (hidden by default on desktop) */
.mobile-spacer {
  display: none; /* Global (desktop default) */
  width: 30px; /* Match hamburger width */
  height: 24px;
  flex-shrink: 0;
}

/* Overlay for Mobile Menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none; /* Hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease;
}
.overlay.visible {
  display: block;
  opacity: 1;
}

/* Footer Styles */
.site-footer {
  background-color: #0D0E12; /* Background */
  padding: 40px 20px 20px;
  color: #FFF3E6; /* Text Main */
  font-size: 14px;
  box-sizing: border-box;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px;
  box-sizing: border-box;
}
.footer-col {
  background-color: #17191F; /* Card BG */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.footer-col h3 {
  color: #FFA53A; /* Auxiliary color */
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 15px;
}
.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53E; /* A variation for footer logo */
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}
.footer-description {
  margin-bottom: 15px;
  line-height: 1.6;
  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: #FFF3E6; /* Text Main */
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: #FF8C1A; /* Primary color for hover */
}
.footer-slot-anchor-inner, .footer-slot-anchor-outer {
  min-height: 1px; /* Ensure they take up minimal space */
  width: 100%;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #A84F0C; /* Border */
  font-size: 13px;
  color: #FFF3E6; /* Text Main */
}
.footer-bottom p {
  margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Header Offset */
  :root {
    --header-offset: 110px; /* Mobile: header-top (60) + mobile-nav-buttons (48) */
  }
  body {
    padding-top: var(--header-offset);
    overflow-x: hidden; /* Ensure body overflow is hidden for mobile */
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Header Top Mobile */
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
  }
  .header-container {
    padding: 0 15px; /* Smaller padding for mobile */
    justify-content: space-between; /* Space between hamburger, logo, spacer */
  }
  /* Mobile Hamburger */
  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Left side */
  }
  /* Mobile Logo Centering (Flex method for text logo) */
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2; /* Center */
  }
  .mobile-spacer {
    display: block; /* Show spacer on mobile */
    order: 3; /* Right side, balances hamburger */
  }
  .desktop-nav-buttons {
    display: none !important; /* Hide desktop buttons on mobile */
  }

  /* Mobile Nav Buttons */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons on mobile */
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #FF8C1A; /* Primary color */
  }
  .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 (Slide-out menu) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 80%; /* Adjust width as needed */
    max-width: 300px; /* Max width for slide-out */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #17191F; /* Card BG for slide-out menu */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    z-index: 1001; /* Above overlay, below hamburger */
    overflow-y: auto; /* Allow scrolling if menu content is long */
  }
  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container {
    width: 100%;
    max-width: none; /* No max-width for mobile container */
    flex-direction: column; /* Stack links vertically */
    align-items: flex-start;
    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-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 15px;
  }
  .footer-col {
    padding: 15px;
  }
  .footer-bottom {
    padding-top: 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
