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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--background-color);
  color: var(--text-main-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  min-height: 80px; /* Ensures sufficient height for content */
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--text-main-color);
  text-decoration: none;
  flex-shrink: 0;
  padding: 10px 0;
  letter-spacing: 1px;
  text-shadow: 0 0 8px var(--glow-color);
}

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

.nav-link {
  color: var(--text-main-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--glow-color);
}

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

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

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

.btn {
  background: var(--button-gradient);
  color: #000000; /* Ensuring high contrast for text on gradient */
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--text-main-color);
  border-radius: 2px;
  margin: 6px 0;
  transition: all 0.3s ease-in-out;
}

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

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--background-color);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-main-color);
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-main-color);
  text-decoration: none;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px var(--glow-color);
}

.footer-description {
  line-height: 1.6;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: rgba(255, 246, 214, 0.8);
}

.footer-heading {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.footer-nav a {
  color: rgba(255, 246, 214, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: rgba(255, 246, 214, 0.6);
  font-size: 0.85rem;
}

/* Footer slot anchors - ensure visibility */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure it takes up minimal space */
  width: 100%;
}

.footer-mid-slots,
.footer-bottom-slot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  margin-bottom: 20px;
}

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    min-height: 70px;
  }

  .hamburger-menu {
    display: block;
    flex-shrink: 0;
    order: 1;
  }

  .logo {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1.8rem;
    padding: 5px 0;
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-offset));
    background-color: var(--card-bg-color);
    padding: 30px 20px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    align-items: flex-start;
    gap: 15px;
    overflow-y: auto;
  }

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

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none; /* Remove underline for mobile */
  }

  .desktop-nav-buttons {
    display: none !important;
  }

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

  .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 20px;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .footer-logo {
    font-size: 1.8rem;
  }

  .footer-heading {
    font-size: 1.2rem;
  }

  /* Mobile content area 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;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
