:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); overflow-x: hidden; font-family: Arial, sans-serif; margin: 0; background-color: #0A0A0A; color: #FFF6D6; }

/* Header Styles */
.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.5); background-color: #111111; min-height: 60px; display: flex; align-items: center; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 10px 30px; width: 100%; }
.hamburger-menu { display: none; font-size: 24px; background: none; border: none; color: #FFF6D6; cursor: pointer; padding: 5px; line-height: 1; }
.logo { font-size: 28px; font-weight: bold; color: #F2C14E; text-decoration: none; flex-shrink: 0; }
.main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 25px; }
.nav-link { color: #FFF6D6; text-decoration: none; font-size: 16px; padding: 10px 0; transition: color 0.3s ease; white-space: nowrap; }
.nav-link:hover { color: #FFD36B; }
.desktop-nav-buttons { flex-shrink: 0; margin-left: auto; display: flex; gap: 10px; }
.mobile-nav-buttons { display: none !important; }
.btn { padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; color: #111111; background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); border: none; cursor: pointer; white-space: nowrap; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }
.mobile-menu-overlay { display: none; }

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

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }

  .header-container { width: 100%; max-width: none; padding: 8px 15px; }
  .hamburger-menu { display: block; }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #111111;
    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;
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-link { padding: 15px 0; border-bottom: 1px solid #3A2A12; text-align: left; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { flex-shrink: 0; display: flex !important; gap: 8px; }
  .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; }
  .mobile-menu-overlay.active { display: block; }

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