:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --header-offset: 122px; /* Desktop: 68px (top) + 52px (main) */
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Important for fixed header */
  background-color: var(--background-color);
  color: var(--text-main-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

a {
  text-decoration: none;
  color: var(--text-main-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  background: var(--button-gradient);
  color: #0A0A0A; /* Dark text for bright button */
  font-weight: bold;
  text-decoration: none;
  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);
  color: #0A0A0A; /* Keep text dark */
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--card-bg); /* Using card_bg for header background, good contrast */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-height: 60px; /* Ensure content fits */
  display: flex; /* For the container */
  align-items: center; /* For the container */
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: 20px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

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

.main-nav {
  display: flex; /* Desktop: visible, row */
  flex-direction: row;
  flex: 1;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav .nav-link {
  color: var(--text-main-color);
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

.main-nav .nav-link:hover {
  color: var(--primary-color);
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

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

.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: 997;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
.site-footer {
  background-color: var(--card-bg);
  padding: 40px 0 20px;
  color: var(--text-main-color);
  font-size: 0.9em;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  box-sizing: border-box;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  color: #bbb;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-heading {
  font-size: 1.2em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav .nav-link {
  color: #bbb;
}

.footer-nav .nav-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  color: #888;
}

.footer-slot-anchor-inner {
  margin-top: 10px; /* Provide some spacing for injected content */
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: 60px (top) + 48px (main) */
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden; /* Added for mobile overflow */
  }

  .site-header {
    min-height: 50px;
  }

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

  .hamburger-menu {
    display: flex; /* Visible on mobile */
    flex-shrink: 0;
    order: 1; /* Hamburger first */
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .logo {
    order: 2; /* Logo second */
    flex: 1; /* Take available space */
    text-align: center; /* Center text logo */
    font-size: 1.8em;
    margin-right: 0; /* Remove desktop margin */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */\    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 250px; /* Mobile menu width */\    height: calc(100vh - var(--header-offset));
    background-color: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 998;
    padding: 20px 0;
    align-items: flex-start; /* Align menu items to left */
  }

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

  .main-nav .nav-link {
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .main-nav .nav-link::after {
    left: 20px; /* Adjust underline position for mobile */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    gap: 8px;
    order: 3; /* Buttons third */
    flex-shrink: 0;
    margin-left: auto; /* Push to right */
  }

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

  /* Mobile overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body.no-scroll {
    overflow: 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;
  }
}
