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

body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--bg-color); color: var(--text-main-color); line-height: 1.6; overflow-x: hidden; }

/* Header Styles */
.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; background-color: var(--bg-color); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); min-height: 60px; display: flex; align-items: center; }

.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 30px; 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; display: block; }

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

.nav-link { color: var(--text-main-color); text-decoration: none; font-size: 16px; padding: 8px 0; position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after { width: 100%; }

.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: 25px; text-decoration: none; font-weight: bold; font-size: 15px; text-align: center; white-space: nowrap; transition: all 0.3s ease; border: none; cursor: pointer; color: var(--text-main-color); }
.btn-register { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4); }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6); }
.btn-login { background-color: rgba(242, 193, 78, 0.2); border: 1px solid var(--primary-color); color: var(--primary-color); }
.btn-login:hover { background-color: var(--primary-color); color: var(--bg-color); transform: translateY(-2px); }

.hamburger-menu { display: none; background: none; border: none; font-size: 28px; color: var(--primary-color); cursor: pointer; padding: 5px; line-height: 1; transition: transform 0.3s ease; z-index: 1001; }
.hamburger-menu.active { transform: rotate(90deg); }

.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; }
.mobile-menu-overlay.active { display: block; }

/* Footer Styles */
.site-footer { background-color: var(--card-bg-color); padding: 40px 0 20px; color: #BBB; font-size: 15px; text-align: center; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 20px 30px; text-align: left; }
.footer-col { margin-bottom: 20px; }
.footer-logo { font-size: 26px; font-weight: bold; color: var(--primary-color); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { font-size: 14px; line-height: 1.8; color: #AAA; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 18px; color: var(--primary-color); margin-bottom: 20px; font-weight: bold; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #AAA; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; margin-top: 30px; font-size: 14px; color: #888; }
.footer-slot-anchor-inner { min-height: 10px; }

/* Media Queries for Mobile */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }
  
  .header-container { width: 100%; max-width: none; padding: 10px 15px; justify-content: flex-start; }
  .hamburger-menu { display: block; flex-shrink: 0; margin-right: 15px; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; max-width: calc(100% - 140px); /* Adjust based on hamburger and button width */ }
  .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: var(--card-bg-color); padding: 20px; box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; align-items: flex-start; gap: 15px; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-link::after { display: none; }
  .nav-link:hover { color: var(--primary-color); }
  
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { flex-shrink: 0; display: flex !important; gap: 8px; margin-left: auto; }
  .btn { padding: 8px 15px; font-size: 14px; }

  .footer-container { grid-template-columns: 1fr; padding: 20px 15px; text-align: center; }
  .footer-col { margin-bottom: 30px; }
  .footer-nav { margin-top: 15px; }
  .footer-logo { text-align: center; }
  .footer-title { text-align: center; }

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