:root { --header-offset: 122px; --primary: #C61F1F; --secondary: #E53030; --primary-dark: #991818; --secondary-dark: #B32424; --button-grad-start: #FFB04A; --button-grad-end: #D86A14; --card-bg: #2A1212; --bg-main: #140C0C; --text-main: #FFF1E8; --border-color: #6A1E1E; --gold: #F3C54D; --deep-red: #7E0D0D; }
body { padding-top: var(--header-offset); margin: 0; background-color: var(--bg-main); color: var(--text-main); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; overflow-x: hidden; }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); border-bottom: 2px solid var(--gold); min-height: auto; }
.header-top { background: var(--primary-dark); width: 100%; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 25px; min-height: 68px; box-sizing: border-box; }
.logo { display: inline-block; font-size: 30px; font-weight: 900; color: var(--gold); text-transform: uppercase; text-decoration: none; letter-spacing: 1px; text-shadow: 0 0 8px rgba(243, 197, 77, 0.4); }
.desktop-nav-buttons { display: flex; gap: 10px; }
.main-nav { background: var(--bg-main); width: 100%; display: flex; border-top: 1px solid var(--border-color); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 15px; min-height: 52px; box-sizing: border-box; gap: 2px; flex-wrap: wrap; }
.nav-link { color: var(--text-main); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 4px; transition: background 0.3s, color 0.3s; white-space: nowrap; }
.nav-link:hover { background: rgba(197, 31, 31, 0.2); color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 6px; font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-register { background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); color: #1a0a00; box-shadow: 0 2px 8px rgba(216, 106, 20, 0.5); }
.btn-login { background: linear-gradient(180deg, #E53030 0%, #991818 100%); color: #FFFFFF; box-shadow: 0 2px 8px rgba(197, 31, 31, 0.4); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(243, 197, 77, 0.4); }
.mobile-nav-buttons { display: none; }
.hamburger-menu { display: none; }
.mobile-menu-overlay { display: none; }
.site-footer { background: var(--primary-dark); border-top: 3px solid var(--gold); margin-top: 40px; padding: 0; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding: 40px 25px; }
.footer-column { flex: 1; min-width: 200px; }
.footer-logo { font-size: 28px; font-weight: 900; color: var(--gold); text-decoration: none; text-transform: uppercase; }
.footer-desc { color: var(--text-main); font-size: 14px; line-height: 1.6; margin-top: 12px; opacity: 0.9; }
.footer-title { color: var(--gold); font-size: 18px; margin-bottom: 15px; position: relative; padding-bottom: 8px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--gold); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text-main); text-decoration: none; font-size: 14px; transition: color 0.3s, padding-left 0.3s; }
.footer-nav a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom { border-top: 1px solid var(--border-color); text-align: center; padding: 18px 20px; color: var(--text-main); font-size: 14px; display: flex; justify-content: center; align-items: center; gap: 15px; }
.footer-bottom p { margin: 0; }
.footer-18 { background: var(--gold); color: #1a0a00; padding: 2px 12px; border-radius: 12px; font-weight: 800; }
@media (max-width: 768px) {
:root { --header-offset: 110px; }
.header-container { width: 100%; max-width: none; padding: 0 15px; min-height: 60px; }
.nav-container { width: 100%; max-width: none; padding: 0 10px; }
.logo { font-size: 24px; }
.hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 36px; height: 36px; cursor: pointer; z-index: 1001; background: transparent; border: none; padding: 0; order: 0; }
.hamburger-menu span { display: block; width: 22px; height: 2px; background: var(--gold); margin: 3px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.desktop-nav-buttons { display: none; }
.header-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { order: 0; }
.hamburger-menu { order: -1; }
.mobile-nav-buttons { display: flex; justify-content: center; gap: 8px; padding: 8px 15px; background: var(--bg-main); border-bottom: 1px solid var(--border-color); width: 100%; box-sizing: border-box; z-index: 1000; }
.mobile-nav-buttons .btn { padding: 8px 16px; font-size: 14px; flex: 0 1 auto; }
.main-nav { display: none; position: fixed; top: 0; left: 0; right: auto; width: 78%; max-width: 320px; height: 100vh; background: var(--bg-main); flex-direction: column; justify-content: flex-start; align-items: center; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1002; padding-top: calc(60px + 48px + 10px); overflow-y: auto; box-shadow: none; border-top: none; }
.main-nav.active { display: flex; transform: translateX(0); }
.nav-container { flex-direction: column; align-items: flex-start; padding: 10px; gap: 0; width: 100%; max-width: none; }
.nav-link { display: block; width: 100%; padding: 12px 20px; font-size: 16px; border-bottom: 1px solid var(--border-color); text-align: left; }
.nav-link:hover { background: rgba(197, 31, 31, 0.2); color: var(--gold); }
.mobile-menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.site-footer { margin-top: 30px; }
.footer-container { flex-direction: column; gap: 25px; padding: 30px 20px; }
.footer-column { min-width: auto; width: 100%; text-align: center; }
.footer-title::after { left: 50%; transform: translateX(-50%); }
.footer-bottom { flex-direction: column; gap: 8px; }
body { padding-top: var(--header-offset); }
.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.no-scroll { overflow: 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;
}
