:root { --header-offset: 122px; --primary: #C91F17; --secondary: #E53935; --btn-grad: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); --card-bg: #D32F2F; --bg-main: #B71C1C; --text-main: #FFF5E1; --border-color: #F2B544; --glow: #FFCC66; --gold: #F4D34D; --deep-red: #7A0E0E; } * { 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; background: var(--bg-main); box-shadow: 0 4px 18px rgba(0,0,0,0.55); font-family: 'Segoe UI', Roboto, Arial, sans-serif; } .header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background: var(--deep-red); 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: 24px; padding-right: 24px; position: relative; } .logo { display: inline-block; font-size: 30px; font-weight: 900; letter-spacing: 1px; text-decoration: none; color: var(--gold); text-shadow: 0 2px 8px rgba(0,0,0,0.4); line-height: 1; } .logo:hover { color: var(--glow); } .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; border-radius: 8px; font-weight: 700; padding: 9px 20px; font-size: 14px; border: 1px solid transparent; transition: all 0.25s ease; cursor: pointer; line-height: 1.2; } .btn-login { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); } .btn-login:hover { background: rgba(242,181,68,0.15); color: var(--gold); } .btn-register { background: var(--btn-grad); color: var(--deep-red); box-shadow: 0 4px 14px rgba(244,211,77,0.35); } .btn-register:hover { filter: brightness(1.06); transform: translateY(-1px); } .hamburger-menu { display: none; background: none; border: none; padding: 8px; cursor: pointer; z-index: 1002; } .hamburger-menu span { display: block; width: 26px; height: 3px; margin: 5px 0; 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); } .main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: visible; background: var(--primary); width: 100%; border-top: 1px solid rgba(242,181,68,0.35); } .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; } .nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 4px; } .nav-link { display: inline-block; padding: 6px 12px; color: var(--text-main); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 6px; transition: all 0.2s ease; white-space: nowrap; } .nav-link:hover, .nav-link.active { color: var(--glow); background: rgba(255,204,102,0.12); } .nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .nav-overlay.active { display: block; opacity: 1; pointer-events: auto; } .site-footer { background: var(--deep-red); color: var(--text-main); font-family: 'Segoe UI', Roboto, Arial, sans-serif; border-top: 3px solid var(--border-color); } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; } .footer-top { padding: 44px 0 28px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; } .footer-col { min-width: 0; } .footer-logo { display: inline-block; font-size: 28px; font-weight: 900; color: var(--gold); text-decoration: none; margin-bottom: 12px; } .footer-logo:hover { color: var(--glow); } .footer-description { font-size: 14px; line-height: 1.7; color: var(--text-main); opacity: 0.88; word-wrap: break-word; overflow-wrap: break-word; margin: 0 0 10px; } .footer-title { font-size: 16px; font-weight: 800; color: var(--gold); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.5px; } .footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; } .footer-nav a { color: var(--text-main); text-decoration: none; font-size: 14px; transition: color 0.2s ease; } .footer-nav a:hover { color: var(--glow); text-decoration: underline; } .footer-mid { padding: 10px 0 20px; } .footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; } .footer-mid-cell { min-width: 0; } .footer-slot-anchor-inner { min-height: 0; } .footer-bottom { border-top: 1px solid rgba(242,181,68,0.4); padding: 18px 0; text-align: center; } .footer-bottom p { margin: 0; font-size: 13px; color: var(--text-main); opacity: 0.85; } @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; } .hamburger-menu { display: block; position: relative; z-index: 1002; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 26px; } .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: var(--deep-red); } .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: var(--header-offset); left: 0; width: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; background: var(--primary); } .main-nav.active { display: block; transform: translateX(0); } .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; height: auto; display: block; } .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 10px 0; } .nav-list li { border-bottom: 1px solid rgba(242,181,68,0.2); } .nav-link { display: block; padding: 13px 8px; font-size: 15px; border-radius: 0; } .footer-top-grid { grid-template-columns: 1fr; gap: 22px; } .footer-mid-grid { grid-template-columns: repeat(2, 1fr); } .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-header { max-width: 100%; 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;
}
