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

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

.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #1A1A1A; width: 100%; padding: 0 20px; }
.header-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.logo { color: var(--text-main); text-decoration: none; font-size: 28px; font-weight: bold; display: flex; align-items: center; white-space: nowrap; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--card-bg); width: 100%; padding: 0 20px; }

.btn { display: inline-flex; justify-content: center; align-items: center; padding: 10px 20px; border-radius: 25px; background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #000; text-decoration: none; font-weight: bold; font-size: 15px; transition: all 0.3s ease; border: none; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4); }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--border-color); width: 100%; }
.nav-container { box-sizing: border-box; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.main-nav ul li a { color: var(--text-main); text-decoration: none; font-size: 15px; font-weight: bold; padding: 5px 0; transition: color 0.3s ease; white-space: nowrap; }
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--secondary-color); }

.hamburger-menu { display: none; width: 30px; height: 20px; position: relative; cursor: pointer; background: none; border: none; padding: 0; z-index: 1001; margin-left: auto; }
.hamburger-menu span { display: block; height: 2px; width: 100%; background-color: var(--text-main); position: absolute; left: 0; transition: all 0.3s ease; }
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { top: 18px; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

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

.site-footer { background-color: var(--card-bg); padding: 40px 20px 20px; color: var(--text-main); font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: var(--secondary-color); font-size: 16px; margin-bottom: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--secondary-color); }
.footer-logo { color: var(--text-main); text-decoration: none; font-size: 24px; font-weight: bold; display: block; margin-bottom: 15px; }
.footer-description { color: #BBB; line-height: 1.5; }
.footer-slot-anchor-inner { min-height: 10px; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); color: #BBB; }
.footer-bottom p { margin: 0; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }
  
  .header-top { height: 60px !important; padding: 0 15px; }
  .header-container { max-width: none; padding: 0; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { 
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--card-bg);
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); margin-left: 0; }
  .header-top .hamburger-menu { margin-right: 0; }

  .main-nav { 
    height: auto; min-height: 100vh; /* Adjust for full screen menu */
    width: 280px; /* Width of the mobile menu */
    position: fixed; top: 0; left: 0; 
    transform: translateX(-100%); 
    transition: transform 0.3s ease; 
    background-color: #1A1A1A; /* Darker background for mobile menu */
    display: none; /* Hidden by default */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { max-width: none; padding: 20px 15px; flex-direction: column; align-items: flex-start; }
  .main-nav ul { flex-direction: column; width: 100%; gap: 15px; padding-top: 60px; /* Space for fixed header content */ }
  .main-nav ul li { width: 100%; }
  .main-nav ul li a { font-size: 16px; padding: 10px 0; display: block; }

  .footer-top-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-col ul { padding: 0; }

  .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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
