:root { --header-offset: 122px; --primary: #C91F17; --secondary: #E53935; --card-bg: #D32F2F; --bg: #B71C1C; --text-main: #FFF5E1; --border: #F2B544; --glow: #FFCC66; --gold: #F4D34D; --deep-red: #7A0E0E; --btn-grad: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); } * { box-sizing: border-box; } body { padding-top: var(--header-offset); margin: 0; font-family: Arial, Helvetica, sans-serif; } .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 16px rgba(0,0,0,0.4); background-color: var(--primary); } .header-top { width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-red); box-sizing: border-box; } .header-container { 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; box-sizing: border-box; } .logo { display: inline-block; color: var(--gold); font-size: 32px; font-weight: 900; letter-spacing: 1px; text-decoration: none; text-transform: lowercase; text-shadow: 0 2px 6px rgba(0,0,0,0.5); } .logo:hover { color: var(--glow); } .desktop-nav-buttons { display: flex; gap: 12px; align-items: center; } .mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; } .btn { display: inline-block; padding: 10px 22px; border-radius: 6px; font-size: 15px; font-weight: 700; text-decoration: none; text-align: center; transition: all 0.25s ease; cursor: pointer; border: none; white-space: nowrap; } .btn-login { background: transparent; color: var(--gold); border: 2px solid var(--border); } .btn-login:hover { background-color: rgba(244,211,77,0.15); color: var(--glow); } .btn-register { background: var(--btn-grad); color: var(--deep-red); box-shadow: 0 3px 10px rgba(255,204,102,0.4); } .btn-register:hover { background: linear-gradient(180deg, #FFE58F 0%, #F4D34D 100%); box-shadow: 0 4px 14px rgba(255,204,102,0.6); } .hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 26px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; } .hamburger-menu span { display: block; width: 100%; height: 3px; background-color: var(--gold); border-radius: 2px; transition: all 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 { width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); box-sizing: border-box; } .nav-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; box-sizing: border-box; } .nav-list { display: flex; flex-direction: row; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; flex-wrap: nowrap; } .nav-link { display: block; color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; } .nav-link:hover { background-color: var(--secondary); color: #fff; } .nav-overlay { display: none; } .site-footer { background-color: var(--bg); color: var(--text-main); font-size: 15px; line-height: 1.7; border-top: 3px solid var(--border); } .footer-top { padding: 50px 20px 30px; } .footer-container { max-width: 1200px; margin: 0 auto; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; } .footer-col { min-width: 0; } .footer-logo { display: inline-block; font-size: 30px; font-weight: 900; color: var(--gold); text-decoration: none; margin-bottom: 14px; letter-spacing: 1px; } .footer-logo:hover { color: var(--glow); } .footer-description { color: var(--text-main); opacity: 0.9; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; } .footer-col-title { font-size: 17px; color: var(--gold); margin: 0 0 14px; border-bottom: 2px solid var(--border); padding-bottom: 8px; display: inline-block; } .footer-nav { list-style: none; margin: 0; padding: 0; } .footer-nav li { margin-bottom: 8px; } .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: 12px; } .footer-slot-anchor-inner { min-height: 1px; } .footer-slot-anchor-outer { min-height: 1px; } .footer-bottom { background-color: var(--deep-red); padding: 18px 20px; border-top: 1px solid var(--border); text-align: center; } .footer-copyright { margin: 0; font-size: 14px; color: var(--text-main); opacity: 0.85; } @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 { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: calc(100% - 100px); font-size: 26px; } .desktop-nav-buttons { display: none !important; } .hamburger-menu { display: flex; position: relative; z-index: 2; } .mobile-nav-buttons { display: flex !important; 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; 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; } .main-nav { display: none; position: fixed; top: 108px; left: 0; width: 280px; max-width: 85%; height: 100vh; min-height: 100vh; background-color: var(--deep-red); flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 20px 0; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; box-shadow: 4px 0 16px rgba(0,0,0,0.5); } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { flex-direction: column; align-items: stretch; height: auto; max-width: none; padding: 0; } .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; } .nav-list li { width: 100%; } .nav-link { padding: 14px 24px; font-size: 16px; border-radius: 0; border-bottom: 1px solid rgba(242,181,68,0.2); } .nav-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .nav-overlay.active { opacity: 1; visibility: visible; } body.no-scroll { overflow: hidden; } .footer-top { padding: 30px 15px 20px; } .footer-top-grid { grid-template-columns: 1fr; gap: 24px; } .footer-mid-grid { grid-template-columns: 1fr; } .footer-col-title { font-size: 16px; } .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;
}
