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

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

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--button-gradient);
  color: #0A0A0A; /* Contrasting text color for buttons */
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.btn:hover {
  background: linear-gradient(180deg, #FFD86A 0%, #F2C14E 100%); /* Slightly different gradient on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
  color: #0A0A0A; /* Keep text color consistent */
}

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

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

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-main-color);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 1003; /* Above all other header elements on mobile */
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--accent-color);
}

.main-nav {
  flex: 1;
  display: flex; /* Desktop: horizontal menu */
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
}

.main-nav .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main-color);
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

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

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

.mobile-nav-buttons {
  display: none !important; /* Hidden by default 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: 1001; /* Below menu, above header */
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

body.no-scroll {
  overflow: hidden;
}

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

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

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

.site-footer .footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

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

.site-footer .footer-heading {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.site-footer .footer-nav .nav-link {
  color: rgba(255, 246, 214, 0.7);
  transition: color 0.3s ease;
}

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

.site-footer .footer-slot-anchor {
  width: 100%;
  min-height: 1px;
  margin-bottom: 10px;
}

.site-footer .footer-slot-anchor-inner {
  width: 100%;
  min-height: 1px;
  margin-top: 10px;
}

.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: rgba(255, 246, 214, 0.6);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile header offset (no marquee: 60+48) */
  }

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

  /* Mobile Overflow Prevention */
  .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 defined globally and applies */

  /* Header mobile layout */
  .site-header {
    min-height: 50px;
  }

  .header-container {
    width: 100%; /* Full width for mobile container */
    max-width: none; /* Remove max-width for mobile */
    padding: 10px 15px;
    justify-content: space-between;
    position: relative;
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0;
    font-size: 1.8rem;
    padding: 5px;
    margin-right: 10px;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1.5rem;
    order: 1;
    max-width: calc(100% - 100px); /* Leave space for hamburger and buttons */
    height: 40px;
    line-height: 40px; /* Vertically center text logo */
  }

  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 280px;
    height: calc(100% - var(--header-offset));
    background-color: var(--card-bg-color);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Initially off-screen */
    transition: transform 0.3s ease;
    z-index: 1002; /* Above overlay, below hamburger */
    overflow-y: auto;
    align-items: flex-start;
    gap: 15px;
  }

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

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

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

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    order: 2;
    gap: 8px;
    margin-left: 10px;
  }

  /* Footer mobile layout */
  .site-footer .footer-content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer .footer-col {
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-nav {
    align-items: center;
  }

  .site-footer .footer-description {
    text-align: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
