:root { --header-offset: 122px; --primary-color: #F2C14E; --secondary-color: #FFD36B; --background-color: #0A0A0A; --card-bg-color: #111111; --text-main-color: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; }

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; }

.site-header { background-color: var(--card-bg-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: 0 20px; display: flex; align-items: center; justify-content: space-between; width: 100%; }

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

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

.nav-link { color: var(--text-main-color); text-decoration: none; font-size: 16px; padding: 8px 12px; transition: color 0.3s ease, background-color 0.3s ease; border-radius: 5px; }
.nav-link:hover { color: var(--primary-color); background-color: rgba(255, 255, 255, 0.1); }

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

.btn { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #000000; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 15px; transition: transform 0.2s ease, box-shadow 0.2s ease; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-width: 90px; height: 40px; box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6); }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 24px; position: relative; z-index: 1001; flex-shrink: 0; }
.hamburger-icon { display: block; width: 100%; height: 3px; background-color: var(--text-main-color); margin-bottom: 5px; transition: all 0.3s ease; }
.hamburger-icon:last-child { margin-bottom: 0; }

.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); }

.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: 998; opacity: 0; transition: opacity 0.3s ease; }
.mobile-menu-overlay.visible { display: block; opacity: 1; }

.site-footer { background-color: var(--card-bg-color); padding: 40px 20px 20px; color: var(--text-main-color); font-size: 14px; }
.footer-grid-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h3 { color: var(--primary-color); font-size: 18px; margin-bottom: 15px; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text-main-color); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; color: rgba(255, 246, 214, 0.7); }

.footer-slot-anchor-inner { min-height: 10px; }
.footer-slot-anchor { min-height: 10px; display: block; margin-bottom: 10px; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }

  .header-container { width: 100%; max-width: none; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; height: 60px; /* Ensure a consistent height on mobile */ }

  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 30px; height: 30px; }

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

  .main-nav {
    display: none; /* Default hidden */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--card-bg-color);
    padding-top: var(--header-offset);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    align-items: flex-start;
    gap: 0;
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-link { width: 100%; padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
  .main-nav .nav-link:last-child { border-bottom: none; }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; flex-shrink: 0; gap: 8px; }
  .mobile-nav-buttons .btn { padding: 8px 15px; font-size: 14px; min-width: 80px; height: 36px; border-radius: 20px; }

  .footer-grid-container { grid-template-columns: 1fr; gap: 20px; }
  .footer-col { text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-nav ul { text-align: center; }
  .footer-bottom { margin-top: 20px; padding-top: 15px; }

  .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;
  }
}
