:root { --header-offset: 122px; --primary: #E53935; --secondary: #FF5A4F; --bg: #F5F7FA; --card-bg: #FFFFFF; --text-main: #333333; --border: #E0E0E0; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { padding-top: var(--header-offset); font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; color: var(--text-main); }
.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.18); background: #fff; }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background: linear-gradient(180deg, #E53935 0%, #C62828 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; font-size: 30px; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: 1px; text-transform: lowercase; line-height: 1; text-shadow: 0 2px 4px rgba(0,0,0,0.25); }
.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; text-decoration: none; border: none; cursor: pointer; font-weight: 700; border-radius: 8px; padding: 10px 22px; font-size: 15px; line-height: 1.2; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; }
.btn-login { background: #ffffff; color: #E53935; border: 2px solid #ffffff; }
.btn-login:hover { background: #FFECEB; transform: translateY(-1px); }
.btn-register { background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); color: #ffffff; box-shadow: 0 4px 14px rgba(229,57,53,0.45); border: 2px solid #FF5A4F; }
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(229,57,53,0.6); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; width: 44px; height: 44px; position: relative; z-index: 1001; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger-line { display: block; width: 24px; height: 3px; background: #fff; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background: #FFFFFF; border-top: 1px solid var(--border); }
.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; gap: 4px; flex-wrap: nowrap; }
.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 0.2s ease; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: #FFF3F2; }
.nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.nav-overlay.active { display: block; opacity: 1; }
body.no-scroll { overflow: hidden; }
.site-footer { background: #1A1A1A; color: #E8E8E8; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; width: 100%; box-sizing: border-box; }
.footer-top { padding: 50px 0 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-col { min-width: 0; }
.footer-about .footer-logo { display: inline-block; font-size: 28px; font-weight: 900; color: #FF5A4F; text-decoration: none; margin-bottom: 14px; letter-spacing: 1px; }
.footer-description { font-size: 14px; line-height: 1.7; color: #BBBBBB; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: #FFFFFF; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #BBBBBB; text-decoration: none; font-size: 14px; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-nav a:hover { color: #FF5A4F; padding-left: 4px; }
.footer-mid { padding: 24px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-slot-top-row, .footer-slot-mid, .footer-slot-bottom { min-height: 1px; }
.footer-bottom { background: #111111; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-copyright { text-align: center; font-size: 13px; color: #999999; margin: 0; }
@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; font-size: 26px; max-width: calc(100% - 100px); }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .hamburger-menu { display: flex; position: relative; z-index: 2; }
  .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: #C62828; }
  .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; display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 78%; max-width: 300px; height: 100vh !important; background: #FFFFFF; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; border-top: none; box-shadow: 4px 0 24px rgba(0,0,0,0.25); }
  .main-nav.active, .main-nav.open { display: block !important; transform: translateX(0); }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; width: 100%; max-width: none; padding: 80px 0 20px; gap: 0; }
  .nav-link { display: block; width: 100%; height: auto; padding: 14px 24px; font-size: 16px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
  .nav-link:hover, .nav-link.active { border-bottom-color: var(--border); border-left-color: var(--primary); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { padding: 0 16px; }
  .footer-top { padding: 36px 0 24px; }
  .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: 400px) {
  .mobile-nav-buttons .btn { font-size: 12px; padding: 8px 8px; }
  .logo { font-size: 22px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
