:root { --primary: #E53935; --primary-light: #FF5A4F; --bg: #F5F7FA; --card-bg: #FFFFFF; --text-main: #333333; --border: #E0E0E0; --header-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); background-color: var(--bg); color: var(--text-main); font-family: 'Segoe UI', Roboto, Helvetica, Arial, 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.15); background-color: #FFFFFF; overflow-x: hidden; }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; width: 100%; border-bottom: 1px solid var(--border); }
.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 { font-size: 28px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; display: inline-block; }
.logo:hover { color: var(--primary-light); }
.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-radius: 6px; font-weight: 600; font-size: 14px; padding: 9px 20px; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; border: none; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229,57,53,0.3); }
.btn-login { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-login:hover { background: rgba(229,57,53,0.08); }
.btn-register { background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); color: #FFFFFF; border: 2px solid transparent; }
.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(--primary); width: 100%; }
.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; width: 100%; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-link { display: block; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 4px; transition: background-color 0.2s ease; white-space: nowrap; }
.nav-link:hover { background-color: rgba(255,255,255,0.18); }
.hamburger-menu { display: none; background: transparent; border: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; padding: 6px; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: #FFFFFF; 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-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.55); 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-color: #1F2328; color: #D5D9DE; width: 100%; overflow-x: hidden; }
.footer-top { padding: 40px 0 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; width: 100%; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; }
.footer-logo { font-size: 26px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 12px; display: inline-block; }
.footer-logo:hover { color: var(--primary-light); }
.footer-description { font-size: 13px; line-height: 1.6; color: #A9B1BA; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 15px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #A9B1BA; text-decoration: none; font-size: 13px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--primary-light); }
.footer-mid { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-mid-grid { display: flex; flex-direction: column; gap: 12px; }
.footer-mid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.footer-bottom { padding: 18px 0; background-color: #171A1E; }
.footer-copyright { margin: 0; font-size: 13px; color: #8B939C; text-align: center; }
.footer-slot-anchor-inner { width: 100%; box-sizing: border-box; }
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; height: 100%; }
  .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: 24px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }
  .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-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; }
  .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; position: fixed; top: 0; left: 0; width: 100%; display: none; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; background-color: var(--primary); overflow-y: auto; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 20px 15px; flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; min-height: 100%; }
  .hamburger-menu { display: flex; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 1002; }
  .nav-menu { flex-direction: column; width: 100%; gap: 2px; margin-top: 20px; align-items: stretch; }
  .nav-link { text-align: left; padding: 12px 14px; font-size: 15px; border-radius: 6px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-row { grid-template-columns: 1fr; }
  .footer-container { padding: 0 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: 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;
}
