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

/* Global styles */
a { color: #FFF6D6; text-decoration: none; }
a:hover { color: #FFD36B; }
ul { list-style: none; padding: 0; margin: 0; }

/* Header styles */
.site-header { position: fixed; top: 0; width: 100%; background-color: #0A0A0A; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); z-index: 1000; min-height: 60px; 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%; box-sizing: border-box; }

.logo { font-size: 28px; font-weight: bold; color: #F2C14E; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.logo:hover { color: #FFD36B; }

.main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 30px; }
.nav-link { font-size: 16px; font-weight: 500; padding: 5px 0; transition: color 0.3s ease; }
.nav-link:hover { color: #FFD36B; }

.desktop-nav-buttons { display: flex; gap: 10px; flex-shrink: 0; margin-left: auto; }
.mobile-nav-buttons { display: none !important; /* Hidden by default on desktop */ }

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

.hamburger-menu { display: none; /* Hidden by default on desktop */ background: none; border: none; font-size: 30px; color: #FFF6D6; cursor: pointer; padding: 0 10px; line-height: 1; z-index: 1001; transition: transform 0.3s ease; }
.hamburger-menu.active { transform: rotate(90deg); }

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

/* Footer styles */
.site-footer { background-color: #0A0A0A; padding: 40px 20px 20px; border-top: 1px solid #3A2A12; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h3 { color: #F2C14E; font-size: 18px; margin-bottom: 15px; }
.footer-col p { font-size: 14px; line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; color: #FFF6D6; }
.footer-logo { font-size: 24px; font-weight: bold; color: #F2C14E; text-transform: uppercase; display: block; margin-bottom: 15px; }
.footer-logo:hover { color: #FFD36B; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 14px; color: #FFF6D6; }
.footer-nav a:hover { color: #FFD36B; }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; text-align: center; padding-top: 20px; border-top: 1px solid #3A2A12; font-size: 13px; color: #FFF6D6; }

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

  .header-container { width: 100%; max-width: none; padding: 8px 15px; justify-content: flex-start; /* Adjust to ensure hamburger is left */ }
  
  .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;
    max-width: calc(100% - 120px); /* Account for hamburger and buttons */
    font-size: 24px;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-offset));
    flex-direction: column;
    background-color: #111111; /* Card BG */
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav a { padding: 10px 0; font-size: 18px; border-bottom: 1px solid #3A2A12; }
  .main-nav a:last-child { border-bottom: none; }
  
  .main-nav.active {
    display: flex; /* Show menu */
    transform: translateX(0);
  }

  .desktop-nav-buttons { display: none !important; /* Hidden on mobile */ }
  .mobile-nav-buttons { display: flex !important; /* Visible on mobile */ gap: 8px; flex-shrink: 0; margin-left: auto; }
  .mobile-nav-buttons .btn { padding: 8px 15px; font-size: 14px; }

  .footer-container { grid-template-columns: 1fr; gap: 20px; }
  .footer-col { text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 15px; }
  .footer-nav li { margin-bottom: 0; }
  .footer-nav a { font-size: 13px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
