:root { --header-offset: 122px; --primary: #F2C14E; --secondary: #FFD36B; --bg-main: #0A0A0A; --bg-card: #111111; --text-main: #FFF6D6; --border-color: #3A2A12; --glow: #FFD36B; --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Arial, sans-serif; background-color: var(--bg-main); color: var(--text-main); }
a { text-decoration: none; color: inherit; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.7); }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #0A0A0A; 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; }
.logo { font-size: 28px; font-weight: 900; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 12px rgba(242,193,78,0.5); display: inline-block; }
.logo:hover { color: var(--secondary); }
.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; padding: 10px 22px; font-size: 14px; font-weight: 700; border-radius: 8px; text-decoration: none; cursor: pointer; transition: all 0.25s ease; border: 1px solid transparent; white-space: nowrap; }
.btn-login { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-login:hover { background: rgba(242,193,78,0.12); color: var(--secondary); border-color: var(--secondary); }
.btn-register { background: var(--btn-gradient); color: #1A1203; border: 1px solid #FFD86A; box-shadow: 0 0 14px rgba(255,211,107,0.45); }
.btn-register:hover { box-shadow: 0 0 22px rgba(255,211,107,0.75); transform: translateY(-1px); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #111111; 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; position: relative; }
.nav-menu { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; flex-wrap: nowrap; }
.nav-link { display: inline-block; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--text-main); border-radius: 6px; transition: all 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--secondary); background: rgba(242,193,78,0.10); }
.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: 24px; height: 3px; background-color: var(--primary); border-radius: 2px; transition: all 0.3s ease; }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.nav-overlay.active { display: block; opacity: 1; }
.site-footer { background-color: var(--bg-card); color: var(--text-main); border-top: 2px solid var(--border-color); }
.footer-top { padding: 50px 20px 30px; }
.footer-container { max-width: 1200px; margin: 0 auto; width: 100%; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col { display: flex; flex-direction: column; }
.footer-logo { font-size: 26px; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; display: inline-block; }
.footer-logo:hover { color: var(--secondary); }
.footer-description { font-size: 14px; line-height: 1.7; color: #C9BE9E; margin: 0 0 10px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: var(--primary); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav li a { font-size: 14px; color: #C9BE9E; transition: color 0.2s ease; }
.footer-nav li a:hover { color: var(--secondary); }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-dynamic-col { justify-content: flex-start; }
.footer-mid { margin: 10px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 16px; }
.footer-mid-cell { min-height: 1px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 18px 20px; background-color: #050505; }
.copyright-text { text-align: center; font-size: 13px; color: #9A8F70; margin: 0; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 22px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #111111; border-bottom: 1px solid var(--border-color); }
  .mobile-nav-buttons .btn { flex: 1; min-width: 0; max-width: calc(50% - 5px); padding: 8px 12px; font-size: 13px; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; }
  .main-nav { min-height: 48px !important; height: 48px !important; }
  .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; justify-content: flex-start; }
  .hamburger-menu { display: flex; position: relative; z-index: 1001; }
  .nav-menu { display: none; position: fixed; top: 0; left: 0; width: 280px; max-width: 80vw; height: 100vh; background-color: #0A0A0A; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 80px 20px 30px; gap: 4px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto; border-right: 1px solid var(--border-color); }
  .nav-menu.active { display: flex; transform: translateX(0); }
  .nav-link { display: block; padding: 14px 16px; font-size: 15px; border-bottom: 1px solid rgba(58,42,18,0.5); border-radius: 0; }
  .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); }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { padding: 36px 15px 20px; }
  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;
}
