:root { --header-offset: 122px; --primary: #C91F17; --secondary: #E53935; --card-bg: #D32F2F; --bg-main: #B71C1C; --text-main: #FFF5E1; --border-color: #F2B544; --glow: #FFCC66; --gold: #F4D34D; --deep-red: #7A0E0E; --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); background-color: var(--bg-main); font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text-main); }
.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.5); background-color: var(--deep-red); border-bottom: 2px solid var(--border-color); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: var(--deep-red); }
.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 { display: inline-block; font-size: 30px; font-weight: 900; color: var(--gold); text-decoration: none; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,0.4); flex-shrink: 0; }
.logo:hover, .logo:focus { color: var(--glow); }
.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; text-decoration: none; font-weight: 700; border-radius: 8px; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; border: 1px solid var(--border-color); }
.btn-login { background: transparent; color: var(--text-main); border: 2px solid var(--border-color); padding: 8px 20px; font-size: 15px; }
.btn-login:hover { background-color: rgba(255,255,255,0.1); color: var(--glow); }
.btn-register { background: var(--btn-gradient); color: #5A0A0A; padding: 9px 22px; font-size: 15px; box-shadow: 0 2px 10px rgba(255,204,102,0.4); }
.btn-register:hover { filter: brightness(1.1); box-shadow: 0 4px 16px rgba(255,204,102,0.6); transform: translateY(-1px); }
.mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; z-index: 1001; }
.hamburger-menu span { display: block; width: 26px; height: 3px; background-color: var(--gold); border-radius: 2px; 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); }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: var(--primary); border-top: 1px solid rgba(242,181,68,0.4); }
.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 15px; gap: 2px; flex-wrap: nowrap; }
.nav-link { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; border-radius: 4px; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--gold); background-color: rgba(0,0,0,0.2); }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 3px; background: var(--btn-gradient); border-radius: 2px 2px 0 0; }
.menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.6); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.menu-overlay.active { display: block; opacity: 1; }
body.no-scroll { overflow: hidden; }
.site-footer { background-color: var(--deep-red); color: var(--text-main); border-top: 3px solid var(--border-color); margin-top: 40px; }
.footer-top { padding: 50px 0 30px; background-color: var(--deep-red); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: inline-block; font-size: 28px; font-weight: 900; color: var(--gold); text-decoration: none; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.footer-logo:hover { color: var(--glow); }
.footer-description { font-size: 14px; line-height: 1.7; color: #F0D9C0; margin: 0; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 17px; font-weight: 800; color: var(--gold); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid rgba(242,181,68,0.35); letter-spacing: 0.5px; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-nav li { margin: 0; }
.footer-nav a { color: #F0D9C0; text-decoration: none; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: var(--gold); padding-left: 4px; }
.footer-info-text { font-size: 14px; line-height: 1.7; color: #F0D9C0; margin: 0; word-wrap: break-word; overflow-wrap: break-word; }
.footer-dynamic-col { min-height: 10px; }
.footer-mid { padding: 20px 0; background-color: var(--deep-red); }
.footer-bottom-wrap { padding: 10px 0; background-color: var(--deep-red); }
.footer-bottom { background-color: #4A0808; padding: 20px 0; border-top: 1px solid rgba(242,181,68,0.3); }
.footer-copyright { text-align: center; font-size: 13px; color: #D9C0A8; margin: 0; }
.footer-slot-anchor, .footer-slot-anchor-inner { display: block; width: 100%; }
@media (max-width: 992px) {
  .footer-top-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .nav-link { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 26px; }
  .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%; box-sizing: border-box; padding: 8px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--deep-red); border-top: 1px solid rgba(242,181,68,0.3); min-height: 48px; }
  .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: flex; position: relative; z-index: 1001; order: -1; flex-shrink: 0; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; width: 80%; max-width: 300px; height: 100vh; min-height: 100vh; background-color: var(--primary); flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 80px 0 30px; overflow-y: auto; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease; border-right: 2px solid var(--border-color); }
  .main-nav.active, .main-nav.open { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; max-width: none; width: 100%; padding: 0; gap: 0; }
  .nav-link { display: block; height: auto; padding: 14px 24px; font-size: 15px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: normal; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background-color: rgba(0,0,0,0.25); border-left: 4px solid var(--gold); }
  .site-header { overflow-x: hidden; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-container { padding: 0 18px; }
  .footer-top { padding: 36px 0 24px; }
  .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;
}
