:root { --header-offset: 122px; --primary: #F2C14E; --secondary: #FFD36B; --bg: #0A0A0A; --card-bg: #111111; --text-main: #FFF6D6; --border-color: #3A2A12; --glow: #FFD36B; --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { padding-top: var(--header-offset); background-color: var(--bg); color: var(--text-main); font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--bg); box-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 1px 0 rgba(242,193,78,0.15); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); width: 100%; border-bottom: 1px solid var(--border-color); }
.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; padding-left: 30px; padding-right: 30px; position: relative; }
.logo { font-size: 28px; font-weight: 900; letter-spacing: 1px; color: var(--primary); text-transform: none; display: inline-block; line-height: 1; text-shadow: 0 0 12px rgba(255,211,107,0.35); }
.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; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--btn-gradient); color: #1a1200; border: 1px solid rgba(255,211,107,0.5); border-radius: 8px; padding: 9px 22px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; box-shadow: 0 3px 10px rgba(221,161,29,0.35); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(255,211,107,0.55); }
.btn-login { background: var(--btn-gradient); }
.btn-register { background: var(--btn-gradient); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; z-index: 1001; }
.hamburger-line { display: block; width: 25px; height: 3px; background-color: var(--primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #1a1206; width: 100%; border-bottom: 1px solid var(--border-color); }
.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; gap: 4px; }
.nav-link { color: var(--text-main); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 6px; text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #1a1200; background: var(--btn-gradient); }
.menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.65); z-index: 998; opacity: 0; transition: opacity 0.3s ease; }
.menu-overlay.active { display: block; opacity: 1; }

/* ===== FOOTER ===== */
.site-footer { background-color: var(--card-bg); color: var(--text-main); border-top: 2px solid var(--border-color); margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.footer-top { padding: 40px 0 20px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { min-width: 0; }
.footer-about .footer-logo { display: inline-block; font-size: 26px; font-weight: 900; color: var(--primary); margin-bottom: 12px; text-shadow: 0 0 10px rgba(255,211,107,0.3); }
.footer-description { font-size: 13px; line-height: 1.7; color: #d9cdb0; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 15px; font-weight: 700; color: var(--primary); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #cfc4a8; font-size: 13px; text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--secondary); text-decoration: underline; }
.footer-dynamic-col { min-width: 0; }
.footer-slot-anchor, .footer-slot-anchor-inner { min-height: 1px; }
.footer-mid { padding: 10px 0 20px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-bottom-slot { padding: 0 0 10px; }
.footer-bottom { background-color: #0A0A0A; border-top: 1px solid var(--border-color); padding: 16px 0; }
.footer-bottom .copyright { margin: 0; text-align: center; font-size: 13px; color: #a99a78; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }
  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 12px; padding-right: 12px; }
  .hamburger-menu { display: flex; position: relative; z-index: 2; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--card-bg); border-bottom: 1px solid var(--border-color); }
  .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: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; height: 100vh; width: 80%; max-width: 300px; min-height: 0; background-color: var(--card-bg); flex-direction: column; align-items: stretch; justify-content: flex-start; padding-top: calc(var(--header-offset) + 10px); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; overflow-y: auto; border-right: 1px solid var(--border-color); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 10px 16px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; height: auto; }
  .nav-link { display: block; padding: 12px 14px; font-size: 15px; border-bottom: 1px solid var(--border-color); border-radius: 0; }
  .nav-link:hover, .nav-link.active { background: var(--btn-gradient); color: #1a1200; }
  .footer-container { padding: 0 16px; }
  .footer-top { padding: 28px 0 14px; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  body.no-scroll { overflow: hidden; }
  .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: 480px) {
  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-mid-grid { grid-template-columns: 1fr; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
