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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  padding-top: var(--header-offset); /* Fixed header offset */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none; /* Remove underline for buttons */
  color: #000; /* Buttons text color */
  background: var(--button-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--card-bg); /* Using card-bg for header for contrast */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-height: 60px; /* Ensure content adaptation */
  display: flex;
  align-items: center;
  padding: 10px 0; /* Vertical padding for header content */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  margin-right: 20px; /* Spacing between logo and nav */
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--text-main);
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

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

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

.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  gap: 12px;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: var(--text-main);
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 1001; /* Above other mobile elements */
  flex-shrink: 0;
}

.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: 998; /* Below menu, above content */
}

/* Mobile specific styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile without marquee */
  }

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

  .site-header {
    padding: 8px 0;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    padding: 0 15px;
    justify-content: space-between;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-right: 0;
    font-size: 24px;
    text-align: center; /* Fallback for text-based logo */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Align with header bottom */
    left: 0;
    width: 75%; /* Slide-in menu width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    padding: 20px;
    align-items: flex-start;
    gap: 15px;
    z-index: 999; /* Below hamburger, above overlay */
    overflow-y: auto;
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none; /* No underline animation on mobile menu */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    gap: 8px;
    margin-left: 15px; /* Spacing between logo and buttons */
    flex-shrink: 0;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
    margin-right: 15px; /* Spacing between hamburger and logo */
  }

  .hamburger-menu.active {
    color: var(--primary-color);
  }

  .mobile-menu-overlay.active {
    display: block; /* Show overlay when active */
  }
}

/* Footer Styles */
.site-footer {
  background-color: var(--card-bg);
  padding: 40px 20px 20px;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
}

.footer-main-content {
  margin-bottom: 30px;
}

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

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-heading {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

.footer-nav .nav-link {
  font-size: 14px;
  color: var(--text-main);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 246, 214, 0.7); /* Slightly faded copyright text */
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Footer mobile responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr; /* Two columns on mobile */
    gap: 20px;
  }
  .footer-col:nth-child(1) {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr; /* Single column on smaller mobile */
  }
  .footer-col:nth-child(1) {
    grid-column: span 1;
  }
}

/* Ensure data-slot-anchor-inner is visible */
.footer-slot-anchor-inner {
  min-height: 10px; /* Give it some minimal height to be visible for injection */
  width: 100%;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
