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

:root { --header-offset: 122px; }

/* Header Styles */
.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; background-color: #0A0A0A; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); min-height: 80px; display: flex; align-items: center; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 15px 30px; width: 100%; }

.hamburger-menu { display: none; background: none; border: none; font-size: 30px; color: #FFF6D6; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger-icon { display: block; width: 25px; height: 3px; background-color: #FFF6D6; margin: 5px 0; transition: all 0.3s ease; }
.hamburger-menu.active .hamburger-icon:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-icon:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.logo { font-size: 28px; font-weight: bold; color: #F2C14E; text-decoration: none; flex-shrink: 0; }

.main-nav { flex: 1; display: flex; justify-content: center; gap: 30px; }
.nav-link { color: #FFF6D6; text-decoration: none; font-weight: 500; font-size: 16px; padding: 10px 0; transition: color 0.3s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #F2C14E; }

.desktop-nav-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.mobile-nav-buttons { display: none !important; }

/* Button Styles */
.btn { padding: 10px 20px; border-radius: 25px; font-weight: bold; text-decoration: none; font-size: 15px; text-align: center; white-space: nowrap; transition: all 0.3s ease; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-login, .btn-register { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #3A2A12; }
.btn:hover { filter: brightness(1.1); box-shadow: 0 0 10px #FFD36B; }

/* Footer Styles */
.site-footer { background-color: #111111; color: #FFF6D6; padding: 40px 20px; font-size: 14px; }
.footer-main-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px auto; }
.footer-col h3 { color: #F2C14E; font-size: 18px; margin-bottom: 20px; }
.footer-logo { font-size: 24px; font-weight: bold; color: #F2C14E; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav a { color: #FFF6D6; text-decoration: none; display: block; margin-bottom: 10px; transition: color 0.3s ease; }
.footer-nav a:hover { color: #F2C14E; }
.footer-bottom { text-align: center; border-top: 1px solid #3A2A12; padding-top: 20px; font-size: 13px; color: #FFF6D6; }
.footer-slot-anchor-inner { min-height: 10px; /* Ensures visibility for injection */ }

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

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

  .hamburger-menu { display: block; order: 1; }
  .logo { order: 2; flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; gap: 8px; order: 3; }

  .main-nav {
    display: none; /* Default hidden */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    height: calc(100vh - var(--header-offset));
    background-color: #111111;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }
  .main-nav .nav-link { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left; }
  .main-nav .nav-link:last-child { border-bottom: none; }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    display: none;
    transition: opacity 0.3s ease;
    opacity: 0;
  }
  .mobile-menu-overlay.active { display: block; opacity: 1; }

  body.no-scroll { overflow: hidden; }

  .footer-main-content { grid-template-columns: repeat(2, 1fr); }

  .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: 480px) {
  .footer-main-content { grid-template-columns: 1fr; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
