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

.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); background-color: #111111; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 15px 30px; min-height: 52px; }

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

.hamburger-menu { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: #FFF6D6; z-index: 1001; padding: 5px; }

.main-nav { flex: 1; display: flex; justify-content: center; gap: 25px; }
.main-nav .nav-link { color: #FFF6D6; text-decoration: none; padding: 10px 0; transition: color 0.3s ease; white-space: nowrap; }
.main-nav .nav-link:hover { color: #FFD36B; }

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

.btn { padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; white-space: nowrap; cursor: pointer; border: none; font-size: 16px; }
.btn.login { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #111111; }
.btn.register { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #111111; }

.site-footer { background-color: #111111; color: #FFF6D6; padding: 40px 0 20px; }
.footer-content-wrapper { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 30px; }
.footer-col { margin-bottom: 20px; }
.footer-logo { font-size: 22px; font-weight: bold; color: #F2C14E; text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { font-size: 0.9em; line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; }
.footer-col h3 { color: #FFD36B; margin-bottom: 15px; font-size: 1.1em; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #FFF6D6; text-decoration: none; font-size: 0.9em; transition: color 0.3s ease; }
.footer-nav a:hover { color: #FFD36B; }
.footer-bottom { border-top: 1px solid #3A2A12; text-align: center; padding-top: 20px; margin-top: 30px; font-size: 0.85em; color: #FFF6D6; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 30px; padding-right: 30px; }

.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 999; display: none; }
.mobile-menu-overlay.active { display: block; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-container { padding: 10px 15px; width: 100%; max-width: none; min-height: 48px; }
  .hamburger-menu { display: block; flex-shrink: 0; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 40px; }
  
  .main-nav { display: none; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 250px; height: calc(100% - var(--header-offset)); background-color: #111111; padding: 20px; box-shadow: 2px 0 10px rgba(0,0,0,0.3); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto; }
  .main-nav.active { display: flex; transform: translateX(0); }

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

  .footer-content-wrapper { grid-template-columns: 1fr; padding: 0 15px; }
  .footer-bottom { padding-left: 15px; padding-right: 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;
  }
}
