:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); margin: 0; font-family: sans-serif; overflow-x: hidden; }

/* Base Styles */
.site-header { position: fixed; top: 0; left: 0; width: 100%; background-color: #0A0A0A; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); min-height: 70px; display: flex; align-items: center; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 25px; display: flex; align-items: center; width: 100%; }
.logo { color: #FFF6D6; font-size: 28px; font-weight: bold; text-decoration: none; flex-shrink: 0; margin-right: 20px; }
.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, .nav-link.active { color: #F2C14E; }

.desktop-nav-buttons { flex-shrink: 0; margin-left: auto; display: flex; gap: 10px; }
.mobile-nav-buttons { display: none !important; }
.btn { text-decoration: none; padding: 10px 20px; border-radius: 25px; font-weight: bold; font-size: 15px; text-align: center; white-space: nowrap; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; display: inline-flex; align-items: center; justify-content: center; }
.btn-login { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #0A0A0A; border: 1px solid #DDA11D; }
.btn-register { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #0A0A0A; border: 1px solid #DDA11D; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(255, 211, 107, 0.3); }

.hamburger-menu { display: none; background: none; border: none; font-size: 30px; color: #FFF6D6; cursor: pointer; padding: 0; line-height: 1; }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 999; }

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

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

  .site-header { min-height: 60px; }
  .header-container { width: 100%; max-width: none; padding: 0 15px; min-height: 60px; position: relative; }
  .hamburger-menu { display: block; flex-shrink: 0; margin-right: 15px; z-index: 1001; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin-right: 0; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 40px; }
  .main-nav { display: none; position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100% - var(--header-offset)); background-color: #111111; flex-direction: column; padding: 20px; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto; align-items: flex-start; gap: 15px; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid #3A2A12; }
  .nav-link:last-child { border-bottom: none; }

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

  .mobile-menu-overlay.active { display: block; }
  body.no-scroll { overflow: hidden; }

  /* Mobile Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-nav { align-items: center; }

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