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

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
}

/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Main text color */
}

a {
  text-decoration: none;
  color: #FFF6D6;
}

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

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  font-weight: bold;
  text-decoration: none; /* No underline for buttons */
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px #FFD36B; /* Glow on hover */
  color: #0A0A0A;
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0A0A0A; /* Background color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  z-index: 1000;
  min-height: 60px; /* Ensure content adaptation */
  display: flex; /* For fixed header to manage content */
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 15px 30px; /* Desktop padding */
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main color for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  order: 1; /* Desktop: Logo first */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 28px;
  color: #F2C14E; /* Main color */
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
  order: 0; /* Mobile: Hamburger first */
  z-index: 1001; /* Above mobile-nav-buttons */
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row; /* Desktop: horizontal */
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  order: 2; /* Desktop: Nav in middle */
}

.main-nav .nav-link {
  font-size: 16px;
  font-weight: bold;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #FFD36B; /* Aux color for underline */
  transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  width: 100%;
}

.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex; /* Desktop: visible */
  gap: 10px;
  order: 3; /* Desktop: Buttons last */
}

.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop */
  flex-shrink: 0;
  gap: 10px;
  order: 4; /* Mobile: Buttons last, after logo */
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

/* Footer */
.site-footer {
  background-color: #111111; /* Card BG color for footer */
  padding: 40px 20px 20px;
  color: #FFF6D6; /* Main text color */
  border-top: 1px solid #3A2A12; /* Border color */
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-col h3 {
  color: #F2C14E; /* Main color for headings */
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

.footer-col .footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

.footer-nav a:hover {
  color: #F2C14E; /* Main color for hover */
}

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

/* Anchor slots must not be hidden */
.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px; /* Ensure they take up at least 1px if empty */
}


/* 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; is already global */

  .site-header {
    min-height: 50px; /* Adjust for mobile */
  }

  .header-container {
    padding: 10px 15px; /* Mobile padding */
    width: 100%;
    max-width: none; /* No max-width on mobile container */
    position: relative; /* For absolute positioning of logo if needed */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0;
    z-index: 1001; /* Higher than other elements */
  }

  .logo {
    flex: 1 !important; /* Take available space for centering */
    display: flex !important; /* Ensure flex for centering */
    justify-content: center !important; /* Center logo text */
    align-items: center !important;
    font-size: 24px; /* Adjust logo size for mobile */
    order: 1;
    max-width: calc(100% - 100px); /* Prevent logo from overlapping buttons/hamburger */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed; /* Fixed position for mobile menu */
    top: var(--header-offset); /* Start below fixed header */
    left: 0;
    width: 75%; /* Menu width */
    max-width: 300px;
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background-color: #111111; /* Card BG for mobile menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 20px;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    z-index: 999;
    gap: 15px;
  }

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

  .main-nav .nav-link {
    font-size: 18px;
    padding: 10px 0;
    color: #FFF6D6;
  }

  .main-nav .nav-link::after {
    bottom: -2px;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    order: 2; /* After logo on mobile */
    margin-left: auto; /* Push to right */
    gap: 8px;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

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

  .footer-col .footer-logo {
    margin-bottom: 10px;
  }

  .footer-col h3 {
    margin-bottom: 10px;
  }

  .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;
  }
}
