:root { --header-offset: 122px; --primary: #C91F17; --secondary: #E53935; --bg-deep-red: #7A0E0E; --bg-main: #B71C1C; --card-bg: #D32F2F; --text-main: #FFF5E1; --border-color: #F2B544; --gold: #F4D34D; --glow: #FFCC66; --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); } * { box-sizing: border-box; } body { padding-top: var(--header-offset); margin: 0; } .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.45); background: var(--primary); } .header-top { height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, #7A0E0E 0%, #C91F17 100%); width: 100%; box-sizing: border-box; } .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: 24px; padding-right: 24px; } .logo { display: inline-block; font-size: 30px; font-weight: 900; letter-spacing: 1px; color: var(--gold); text-decoration: none; text-transform: lowercase; text-shadow: 0 2px 6px rgba(0,0,0,0.5); line-height: 1; } .logo:hover { 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; } .mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; } .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 8px; transition: transform 0.2s ease, filter 0.2s ease; white-space: nowrap; } .btn:hover { transform: translateY(-2px); filter: brightness(1.08); } .btn-login { background: transparent; color: var(--gold); border: 2px solid var(--border-color); padding: 8px 20px; font-size: 15px; } .btn-login:hover { background: rgba(242,181,68,0.12); } .btn-register { background: var(--btn-gradient); color: #5A0A0A; border: 2px solid #FFE9A8; padding: 8px 20px; font-size: 15px; box-shadow: 0 3px 12px rgba(255,204,102,0.4); } .main-nav { height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: #7A0E0E; width: 100%; box-sizing: border-box; border-top: 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; width: 100%; } .nav-menu { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; height: 100%; } .nav-menu li { height: 100%; } .nav-menu li a { display: flex; align-items: center; height: 100%; padding: 0 14px; color: var(--text-main); text-decoration: none; font-size: 15px; font-weight: 600; transition: color 0.2s ease, background 0.2s ease; border-bottom: 3px solid transparent; } .nav-menu li a:hover, .nav-menu li a.active { color: var(--gold); background: rgba(255,204,102,0.12); border-bottom-color: var(--gold); } .hamburger-menu { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; } .hamburger-menu span { display: block; width: 26px; height: 3px; background: 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); } .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; transition: opacity 0.3s ease; } @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; position: relative; } .logo { position: absolute; left: 50%; transform: translateX(-50%); display: flex !important; align-items: center; justify-content: center; 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; min-height: 48px; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background: #7A0E0E; border-top: 1px solid var(--border-color); 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: normal; word-wrap: break-word; overflow-wrap: break-word; } .main-nav { min-height: 48px !important; height: 48px !important; display: none; position: fixed; top: 0; left: 0; width: 100vw; max-width: 100vw; flex-direction: column; align-items: stretch; justify-content: flex-start; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; background: #7A0E0E; overflow-y: auto; padding-top: 70px; } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { width: 100%; max-width: none; padding: 0; flex-direction: column; align-items: stretch; height: auto; } .nav-menu { flex-direction: column; width: 100%; gap: 0; height: auto; padding: 10px 0; } .nav-menu li { width: 100%; height: auto; } .nav-menu li a { width: 100%; padding: 14px 24px; font-size: 16px; border-bottom: 1px solid rgba(242,181,68,0.25); justify-content: flex-start; } .nav-menu li a:hover, .nav-menu li a.active { border-bottom-color: var(--gold); } .hamburger-menu { display: flex; position: relative; z-index: 1002; } .nav-overlay.active { display: block; opacity: 1; } 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; } } .site-footer { background: #7A0E0E; color: var(--text-main); font-size: 15px; line-height: 1.7; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .footer-top { padding: 48px 0 24px; background: linear-gradient(180deg, #7A0E0E 0%, #B71C1C 100%); border-top: 3px solid var(--border-color); } .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; } .footer-logo { display: inline-block; font-size: 30px; font-weight: 900; color: var(--gold); text-decoration: none; margin-bottom: 12px; text-shadow: 0 2px 6px rgba(0,0,0,0.5); } .footer-logo:hover { color: var(--glow); } .footer-description { color: #FFE9C4; font-size: 14px; word-wrap: break-word; overflow-wrap: break-word; margin: 0 0 12px; } .footer-title { font-size: 17px; color: var(--gold); margin: 0 0 16px; font-weight: 700; letter-spacing: 0.5px; border-left: 3px solid var(--border-color); padding-left: 10px; } .footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .footer-nav li a { color: #FFE9C4; text-decoration: none; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; } .footer-nav li a:hover { color: var(--gold); padding-left: 4px; } .footer-mid { padding: 10px 0; } .footer-slot-anchor, .footer-slot-anchor-inner { min-height: 1px; } .footer-bottom { padding: 20px 0; background: #5A0A0A; border-top: 1px solid var(--border-color); text-align: center; } .footer-copyright { margin: 0; font-size: 14px; color: #FFE9C4; } @media (max-width: 768px) { .footer-top-grid { grid-template-columns: 1fr; gap: 24px; } .footer-top { padding: 32px 0 16px; } .footer-container { padding: 0 15px; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
