:root {
  --primary: #C91F17;
  --primary-dark: #B71C1C;
  --accent: #E53935;
  --button-bg: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --button-text: #1a1a1a;
  --text-main: #FFF5E1;
  --border: #F2B544;
  --glow: #FFCC66;
  --gold: #F4D34D;
  --deep-red: #7A0E0E;
  --header-offset: 122px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { padding-top: var(--header-offset); font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif; background-color: #f5f5f5; }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header-top { background: linear-gradient(90deg, var(--deep-red) 0%, var(--primary-dark) 100%); width: 100%; min-height: 68px; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 30px; min-height: 68px; }
.logo { display: inline-block; color: #FFF; font-size: 32px; font-weight: 900; text-decoration: none; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 0 10px var(--glow), 0 0 20px rgba(255,204,102,0.5); }
.logo:hover { color: var(--gold); }
.desktop-nav-buttons { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 50px; font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; border: none; cursor: pointer; transition: all 0.3s ease; }
.btn-register { background: var(--button-bg); color: var(--button-text) !important; box-shadow: 0 2px 10px rgba(255,215,106,0.3); }
.btn-login { background: transparent; color: #FFF !important; border: 2px solid var(--border); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.main-nav { background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%); width: 100%; display: flex; min-height: 52px; }
.nav-container { 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; list-style: none; gap: 4px; }
.nav-menu a { display: inline-block; padding: 16px 16px; color: #FFF; text-decoration: none; font-size: 15px; font-weight: 600; position: relative; transition: color 0.3s; white-space: nowrap; }
.nav-menu a:hover { color: var(--gold); }
.nav-menu a::after { content: ''; position: absolute; bottom: 8px; left: 16px; right: 16px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s; }
.nav-menu a:hover::after { transform: scaleX(1); }
.mobile-nav-buttons { display: none; }
.hamburger-menu { display: none; }
.mobile-menu-overlay { display: none; }
.site-footer { background: var(--deep-red); color: var(--text-main); padding: 50px 0 0; border-top: 3px solid var(--border); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 0 30px 40px; }
.footer-logo { color: #FFF; font-size: 28px; font-weight: 900; text-decoration: none; text-shadow: 0 0 15px var(--glow); }
.footer-brand p { margin-top: 15px; line-height: 1.8; font-size: 14px; opacity: 0.8; }
.footer-col h3 { color: var(--gold); font-size: 18px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--text-main); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom { background: var(--primary-dark); text-align: center; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 14px; color: var(--text-main); }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-container { width: 100%; max-width: none; padding: 10px 15px; min-height: 60px; }
  .nav-container { width: 100%; max-width: none; padding: 0 15px; }
  .header-top { min-height: 60px; }
  .logo { font-size: 24px; }
  .desktop-nav-buttons { display: none; }
  .main-nav { display: none; position: fixed; top: 0; right: 0; height: 100vh; width: 300px; background: linear-gradient(180deg, var(--deep-red) 0%, var(--primary) 100%); z-index: 1002; transform: translateX(100%); transition: transform 0.3s ease-in-out; flex-direction: column; justify-content: flex-start; align-items: stretch; box-shadow: -4px 0 15px rgba(0,0,0,0.2); }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: stretch; padding: 20px 15px; }
  .nav-menu { flex-direction: column; gap: 0; }
  .nav-menu a { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 16px; }
  .nav-menu a::after { display: none; }
  .mobile-nav-buttons { display: flex; flex-direction: column; gap: 10px; padding: 15px 0; }
  .mobile-nav-buttons .btn { display: block; text-align: center; padding: 12px 10px; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; position: fixed; top: 8px; left: 8px; z-index: 1003; padding: 10px; }
  .hamburger-menu span { display: block; width: 24px; height: 3px; background: #FFF; margin: 3px 0; border-radius: 3px; transition: all 0.3s ease; }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: #FFF; }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: #FFF; }
  .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1001; }
  .mobile-menu-overlay.active { display: block; opacity: 1; visibility: visible; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; padding: 0 20px 40px; text-align: center; }
  .site-footer { padding-top: 40px; }
  .footer-col h3 { margin-bottom: 15px; }
  .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: 480px) {
  :root { --header-offset: 110px; }
  .logo { font-size: 20px; }
  .hamburger-menu { top: 10px; left: 5px; }
  .footer-bottom { font-size: 13px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
