:root { --primary: #C61F1F; --secondary: #E53030; --bg-dark: #140C0C; --card-bg: #2A1212; --text-main: #FFF1E8; --border-color: #6A1E1E; --gold: #F3C54D; --deep-red: #7E0D0D; --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); --header-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding: 0; padding-top: var(--header-offset); background-color: var(--bg-dark); font-family: 'Segoe UI', Roboto, Arial, sans-serif; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--bg-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.5); border-bottom: 2px solid var(--border-color); }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-red); width: 100%; }
.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; color: var(--gold); font-size: 26px; font-weight: 800; text-decoration: none; letter-spacing: 0.5px; text-transform: lowercase; text-shadow: 0 2px 4px rgba(0,0,0,0.4); white-space: nowrap; }
.logo:hover { color: #FFD97A; }
.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; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all 0.25s ease; border: none; cursor: pointer; }
.btn-login { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-login:hover { background: var(--gold); color: var(--deep-red); }
.btn-register { background: var(--btn-gradient); color: #2A1212; box-shadow: 0 3px 12px rgba(216,106,20,0.45); }
.btn-register:hover { filter: brightness(1.1); box-shadow: 0 5px 18px rgba(216,106,20,0.65); }
.btn:active { transform: translateY(1px); }

.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); width: 100%; 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; position: relative; }
.nav-list { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; height: 100%; }
.nav-list li { height: 100%; display: flex; align-items: center; }
.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: color 0.2s ease, background-color 0.2s ease; border-bottom: 3px solid transparent; }
.nav-link:hover { color: var(--gold); background-color: rgba(243,197,77,0.1); border-bottom-color: var(--gold); }
.nav-link.active { color: var(--gold); border-bottom-color: var(--gold); }

.hamburger-wrapper { display: none; }
.hamburger-menu { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 24px; 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(10.5px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

.mobile-menu-header { display: none; }
.nav-overlay { display: none; }

/* ===== FOOTER ===== */
.site-footer { background-color: var(--card-bg); color: var(--text-main); border-top: 3px solid var(--primary); margin-top: 40px; }
.footer-top { padding: 40px 0 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; color: var(--gold); font-size: 24px; font-weight: 800; text-decoration: none; margin-bottom: 14px; text-transform: lowercase; text-shadow: 0 2px 4px rgba(0,0,0,0.4); }
.footer-logo:hover { color: #FFD97A; }
.footer-description { color: var(--text-main); font-size: 14px; line-height: 1.7; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; opacity: 0.9; }
.footer-heading { color: var(--gold); font-size: 16px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border-color); }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text-main); text-decoration: none; font-size: 14px; transition: color 0.2s ease; opacity: 0.9; }
.footer-nav a:hover { color: var(--gold); opacity: 1; padding-left: 4px; }
.footer-dynamic-col { min-height: 20px; }
.footer-mid { padding: 10px 0; background-color: rgba(126,13,13,0.15); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-slot-anchor-inner { display: block; }
.footer-bottom { background-color: var(--deep-red); padding: 18px 0; border-top: 1px solid var(--border-color); }
.footer-copyright { color: var(--text-main); font-size: 13px; text-align: center; margin: 0; opacity: 0.85; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }

  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 20px; }
  .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; min-height: 48px; align-items: center; width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: 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: 0; left: 0; width: 100%; height: 100vh !important; min-height: 100vh !important; background-color: var(--card-bg); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; min-height: 100vh; padding-top: 20px; }
  .hamburger-wrapper { display: flex; align-items: center; justify-content: flex-start; position: absolute; left: 15px; top: 15px; z-index: 1002; }
  .hamburger-menu { display: flex; }
  .mobile-menu-header { display: block; text-align: center; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--border-color); }
  .mobile-menu-title { color: var(--gold); font-size: 18px; font-weight: 700; }
  .nav-list { flex-direction: column; width: 100%; height: auto; gap: 0; }
  .nav-list li { width: 100%; height: auto; border-bottom: 1px solid var(--border-color); }
  .nav-link { display: block; width: 100%; height: auto; padding: 14px 12px; font-size: 15px; border-bottom: none; border-left: 3px solid transparent; }
  .nav-link:hover, .nav-link.active { border-left-color: var(--gold); background-color: rgba(243,197,77,0.08); border-bottom-color: transparent; }

  .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 1000; }
  .nav-overlay.active { display: block; }

  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { padding: 0 15px; }
  .footer-heading { margin-top: 10px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-link { padding: 0 8px; font-size: 13px; }
  .header-container { padding-left: 20px; padding-right: 20px; }
  .footer-container { padding: 0 20px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
