:root { --header-offset: 122px; --primary: #E53935; --secondary: #FF5A4F; --bg: #F5F7FA; --card-bg: #FFFFFF; --text-main: #333333; --border-color: #E0E0E0; --btn-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--header-offset); background-color: var(--bg); color: var(--text-main); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(0,0,0,0.18); }
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #B71C1C 0%, #E53935 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: 24px; padding-right: 24px; }
.logo { display: inline-block; color: #FFFFFF; font-size: 20px; font-weight: 800; line-height: 1.2; text-decoration: none; letter-spacing: 0.2px; max-width: 55%; white-space: normal; word-wrap: break-word; }
.logo:hover { text-decoration: none; color: #FFE082; }
.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; flex-shrink: 0; }
.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; border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; text-align: center; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(229,57,53,0.4); filter: brightness(1.06); text-decoration: none; }
.btn-login { background: #FFFFFF; color: #E53935; padding: 10px 20px; font-size: 14px; border: 2px solid #FFFFFF; }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; padding: 10px 22px; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.22); }

/* Main nav (desktop default) */
.main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; border-bottom: 1px solid var(--border-color); }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 16px; }
.nav-list { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; width: 100%; flex-wrap: nowrap; }
.nav-list li { display: inline-flex; }
.nav-link { display: inline-block; color: var(--text-main); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-link:hover, .nav-link.active { color: #E53935; background-color: rgba(229,57,53,0.08); text-decoration: none; }
.nav-list li:first-child .nav-link { font-weight: 800; color: #E53935; }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; }
.menu-overlay { display: none; }

/* ===== FOOTER ===== */
.site-footer { background-color: #1A1A1A; color: #DDDDDD; margin-top: 40px; }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top { padding: 44px 0 24px; border-bottom: 1px solid #333333; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; color: #FFFFFF; font-size: 19px; font-weight: 800; text-decoration: none; line-height: 1.3; margin-bottom: 14px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-logo:hover { color: #FF8A80; text-decoration: none; }
.footer-description { font-size: 13px; line-height: 1.7; color: #BDBDBD; margin: 0 0 10px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-col-title { font-size: 15px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid #E53935; display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: #BDBDBD; text-decoration: none; font-size: 13px; line-height: 1.5; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: #FF8A80; padding-left: 4px; text-decoration: none; }
.footer-mid { padding: 20px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-bottom { background-color: #111111; padding: 18px 0; border-top: 1px solid #333333; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #9E9E9E; }
.footer-slot-anchor-inner { min-height: 0; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }
  .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 { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; text-align: center; font-size: 15px; max-width: calc(100% - 110px); margin: 0 auto; }
  .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; 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; 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 { height: 48px !important; min-height: 48px !important; background-color: #FFFFFF; position: static; display: block; }
  .nav-container { width: 100%; max-width: none; padding: 0; height: 100%; justify-content: flex-start; position: relative; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 46px; height: 48px; position: relative; z-index: 1002; flex-shrink: 0; }
  .hamburger-menu span { display: block; width: 24px; height: 3px; background-color: #E53935; 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-list { position: fixed; top: 0; left: 0; bottom: 0; width: 78%; max-width: 320px; height: 100vh; background-color: #FFFFFF; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 80px 0 24px; margin: 0; overflow-y: auto; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.25); display: none; }
  .nav-list.active { display: flex; transform: translateX(0); }
  .nav-list li { display: block; width: 100%; border-bottom: 1px solid #F0F0F0; }
  .nav-link { display: block; width: 100%; padding: 14px 22px; font-size: 15px; border-radius: 0; text-align: left; white-space: normal; }
  .nav-list li:first-child .nav-link { font-size: 14px; }
  .menu-overlay { display: block; position: fixed; inset: 0; background-color: rgba(0,0,0,0.55); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
  .menu-overlay.active { opacity: 1; visibility: visible; }
  body.no-scroll { overflow: hidden; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { padding: 32px 0 20px; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
