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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--body-bg); 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-height: 60px; 
  display: flex; 
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  flex-shrink: 0;
  text-transform: uppercase;
}

.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;
  flex-shrink: 0;
  z-index: 1001; 
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row; /* Desktop horizontal */
  justify-content: center;
  align-items: center;
  gap: 25px; /* Spacing between nav links */
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

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

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

.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop, important to override global flex */
}

.btn {
  background: var(--button-gradient);
  color: #000; /* Contrast text color for the button gradient */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.4); /* Glow effect */
  border: 1px solid var(--border-color); /* Border for buttons */
}

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

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

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

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

  .header-container {
    padding: 10px 15px; /* Mobile padding */
    width: 100%;
    max-width: none; /* No max-width on mobile */
    justify-content: space-between; /* Re-adjust for mobile */
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
  }

  .logo {
    flex: 1; /* Allows logo to take available space for centering */
    text-align: center; /* Center text logo */
    font-size: 24px;
    margin: 0; /* Remove default margins */
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Mobile vertical */
    position: fixed;
    top: var(--header-offset); /* Below the fixed header */
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg); /* Sidebar background */
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    z-index: 999;
    align-items: flex-start; /* Align nav items to start */
    gap: 15px; /* Spacing between mobile nav links */
  }

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

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

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

  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    gap: 8px;
    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-menu-overlay.active {
    display: block;
  }

  body.no-scroll {
    overflow: hidden;
  }
}

/* Footer */
.site-footer {
  background-color: var(--card-bg); /* Using card BG for footer */
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 14px;
}

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

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

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-description {
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 15px;
  word-wrap: break-word; 
  overflow-wrap: break-word;
}

.footer-title {
  color: var(--secondary-color);
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

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

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

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

.footer-bottom .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Slot anchors - ensure they are visible */
.footer-slot-anchor, .footer-slot-anchor-inner {
  display: block; 
  min-height: 1px; 
  width: 100%;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 0 15px;
  }
  .footer-content-wrapper {
    padding: 0 15px;
  }
  .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .footer-col {
    align-items: center; /* Center align items in columns */
    text-align: center;
  }
  .footer-logo {
    margin-bottom: 10px;
  }
  .footer-description {
    margin-bottom: 10px;
  }
  .footer-title {
    margin-bottom: 15px;
  }
  .footer-bottom {
    padding-top: 15px;
  }
  .footer-bottom .footer-container {
    padding: 0 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;
  }
}
