/* General Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: var(--header-offset); /* Important: Body padding for fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

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

a:hover {
  color: #FFD36B; /* Auxiliary for hover */
}

ul {
  list-style: none;
}

/* Color Variables */
:root {
  --primary-color: #F2C14E;
  --auxiliary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;

  /* Header Offset - No marquee for normal version */
  --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) + 2px buffer */
}

/* Fixed Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  background-color: var(--background-color); /* Overall header background */
}

/* Header Top Section */
.header-top {
  box-sizing: border-box;
  height: 68px; /* Desktop fixed height */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--card-bg); /* Slightly different from overall header */
  width: 100%;
  padding: 0 20px; /* Padding for small screens before container kicks in */
}

.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;
  position: relative; /* For absolute positioning of logo on mobile */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex; /* For potential image logo centering on mobile */
  align-items: center;
  height: 100%;
}

.logo img {
  display: block;
  max-height: 60px; /* Desktop image logo 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 on desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop */
  min-height: 48px; /* Mobile fixed height */
  background-color: var(--background-color); /* Blends with site-header */
  width: 100%;
  padding: 0 15px;
  overflow: hidden; /* Prevent overflow of buttons */
}

/* Main Navigation */
.main-nav {
  box-sizing: border-box;
  height: 52px; /* Desktop fixed height */
  display: flex; /* Desktop default: visible, horizontal */
  align-items: center;
  overflow: hidden;
  background-color: var(--border-color); /* Different from header-top */
  width: 100%;
  position: static; /* Desktop default */
}

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

.nav-list {
  display: flex;
  gap: 25px;
}

.nav-list a {
  padding: 8px 0;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--auxiliary-color);
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  position: relative;
  z-index: 1001; /* Above header */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Hamburger menu active state (X icon) */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* 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: 999; /* Below menu, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* No underline */
  color: #3A2A12; /* Text color for buttons, contrast with gradient */
  background: var(--button-gradient);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap; /* Prevent wrapping on desktop */
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

/* Footer Styles */
.site-footer {
  background-color: var(--card-bg); /* Card BG for footer */
  padding: 40px 20px 20px;
  color: var(--text-main);
  font-size: 14px;
}

.footer-top-row {
  margin-bottom: 30px; /* Placeholder for slot */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.footer-col .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

.footer-col .footer-description {
  line-height: 1.8;
  color: #AAA; /* Slightly darker text for description */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav a {
  color: var(--text-main);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--auxiliary-color);
}

.footer-dynamic-col {
  /* This column is specifically for dynamic injection and should remain empty */
}

.footer-mid-area {
  max-width: 1200px;
  margin: 0 auto 30px;
  /* Additional styling for mid slots if needed */
}

.footer-bottom-area {
  max-width: 1200px;
  margin: 0 auto 20px;
  /* Additional styling for bottom slot if needed */
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #999;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0; /* Remove default paragraph margin */
}

/* Footer slot anchors - ensure they are visible for content injection */
.footer-slot-anchor-inner {
  min-height: 10px; /* Ensure they have some height for visibility */
  width: 100%;
  /* No display: none, visibility: hidden, opacity: 0, height: 0, max-height: 0, overflow: hidden */
}


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

  body {
    overflow-x: hidden;
  }

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

  /* Header Top Section - Mobile */
  .header-top {
    height: 60px !important; /* Mobile fixed height */
    padding: 0 15px; /* Mobile padding */
    justify-content: space-between; /* Hamburger left, Logo center, empty space right */
  }

  .header-container {
    width: 100%;
    max-width: none; /* No max-width on mobile */
    padding: 0; /* Inner container padding handled by header-top */
  }

  .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% - 100px); /* Leave space for hamburger */
    height: 100%;
  }

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

  /* Desktop buttons hidden on mobile */
  .desktop-nav-buttons {
    display: none !important;
  }

  /* Mobile Navigation Buttons - Visible on mobile */
  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    align-items: center;
    justify-content: center;
    min-height: 48px; /* Mobile fixed height */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Mobile padding */
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap; /* Prevent buttons from wrapping */
  }

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

  /* Main Navigation - Mobile (hidden by default, shown with JS) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Below fixed header */
    left: 0;
    width: 280px; /* Menu width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg); /* Menu background */
    flex-direction: column; /* Vertical layout */
    padding: 20px 0;
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    z-index: 1001; /* Above overlay */
    overflow-y: auto; /* Scrollable if content is long */
  }

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

  .nav-container {
    width: 100%;
    max-width: none; /* No max-width on mobile */
    padding: 0;
    flex-direction: column; /* Vertical layout */
    justify-content: flex-start; /* Align menu items to top */
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0; /* Remove gap for vertical list */
  }

  .nav-list li {
    border-bottom: 1px solid var(--border-color); /* Separator */
  }

  .nav-list a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: normal;
  }

  /* Hamburger Menu - Visible on mobile */
  .hamburger-menu {
    display: flex;
    position: relative; /* Keep it in flow */
    z-index: 1002; /* Above logo if absolute */
  }

  /* Footer - Mobile */
  .site-footer {
    padding: 30px 15px 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .footer-col h3 {
    margin-top: 20px;
  }

  .footer-col:first-child h3 {
    margin-top: 0; /* No top margin for first column's title */
  }

  .footer-col .footer-logo {
    font-size: 20px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
