:root { --header-offset: 122px; --primary-color: #F2C14E; --secondary-color: #FFD36B; --background-color: #0A0A0A; --card-bg: #111111; --text-main: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); }

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

.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: var(--background-color); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); min-height: 60px; display: flex; align-items: center; }

.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 30px; display: flex; align-items: center; width: 100%; box-sizing: border-box; }

.logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-decoration: none; flex-shrink: 0; display: block; margin-right: 20px; }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; margin-right: 15px; z-index: 1001; }

.hamburger-icon { display: block; width: 25px; height: 3px; background-color: var(--text-main); margin: 5px 0; transition: all 0.3s ease; }

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

.nav-link { color: var(--text-main); 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; cursor: pointer; transition: all 0.3s ease; border: none; background: var(--button-gradient); color: #000; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); filter: brightness(1.1); }
.btn-login { color: var(--background-color); }
.btn-register { color: var(--background-color); }

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

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

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }
  .site-header { padding-top: 0; }
  .header-container { width: 100%; max-width: none; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; }

  .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; z-index: 1001; }
  .hamburger-menu.active .hamburger-icon:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger-menu.active .hamburger-icon:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .hamburger-icon:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0;
    font-size: 24px;
  }
  .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: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    flex-direction: column;
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    z-index: 999;
    overflow-y: auto;
    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 var(--border-color); }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }

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

  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .footer-col { text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-nav { margin-top: 10px; }

  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
