html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0A0A0A;
  color: #FFF6D6;
  scroll-behavior: smooth;
}

:root {
  --header-offset: 122px; /* Desktop no marquee */
}

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

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  color: #FFF6D6;
  margin-top: 0;
  margin-bottom: 15px;
}

.btn {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  display: block;
}

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

.nav-link {
  color: #FFF6D6; /* Text Main */
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #FFD36B; /* Glow */
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #F2C14E; /* Primary color */
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

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

.hamburger-menu {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #FFF6D6; /* Text Main */
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

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

.site-footer {
  background-color: #111111; /* Card BG */
  padding: 40px 0 20px;
  color: #FFF6D6; /* 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(4, 1fr);
  gap: 30px;
}

.footer-col h3 {
  color: #F2C14E; /* Primary color */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
}

.footer-nav a {
  display: block;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #FFD36B; /* Glow */
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border */
}

.footer-slot-anchor-inner {
  min-height: 10px; /* Ensure visibility for injected content */
  width: 100%;
}

.footer-slot-anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.footer-slot-anchor-row .footer-slot-anchor-inner {
  flex: 1 1 calc(25% - 15px);
  min-width: 100px;
}

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

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    justify-content: flex-start;
  }

  .hamburger-menu {
    display: block;
    flex-shrink: 0;
    margin-right: 10px;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }

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

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

  .mobile-nav-buttons {
    display: flex !important;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 70%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #111111; /* Card BG */
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 9999;
    overflow-y: auto;
  }

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

  .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid #3A2A12; /* Border */
    text-align: left;
  }

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

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

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

  .footer-logo {
    text-align: center;
  }

  .footer-nav a {
    display: inline-block;
    margin: 0 10px 10px;
  }

  .footer-slot-anchor-row {
    flex-direction: column;
    gap: 10px;
  }

  .footer-slot-anchor-row .footer-slot-anchor-inner {
    flex: 1 1 100%;
  }

  /* Mobile content overflow 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;
  }
}
