:root { --header-offset: 122px; --primary: #E53935; --secondary: #FF5A4F; --bg: #F5F7FA; --card-bg: #FFFFFF; --text-main: #333333; --border: #E0E0E0; --btn-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: Arial, 'Helvetica Neue', sans-serif; background: var(--bg); color: var(--text-main); }
.site-header { position: fixed; top: 0; left: 0; width: 100%; max-width: 100%; z-index: 1000; background: #FFFFFF; box-shadow: 0 4px 14px rgba(0,0,0,0.15); overflow-x: hidden; }
.header-top { height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: #FFFFFF; width: 100%; border-bottom: 2px solid var(--primary); }
.header-container { height: 100%; width: 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: 800; color: var(--primary); text-decoration: none; letter-spacing: 1px; line-height: 1; }
.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; }
.mobile-nav-buttons { display: none; min-height: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 8px; font-weight: 700; box-shadow: 0 3px 8px rgba(229,57,53,0.35); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(229,57,53,0.45); }
.btn-login { background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); padding: 9px 22px; font-size: 15px; }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; border: 2px solid transparent; padding: 9px 24px; font-size: 15px; }
.hamburger-menu { display: none; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; z-index: 1002; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; }
.hamburger-menu span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: all 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); }
.main-nav { height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: var(--primary); width: 100%; }
.nav-container { height: 100%; width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.2s ease; border-radius: 4px; }
.nav-link:hover { background: rgba(255,255,255,0.18); }
.nav-overlay { display: none; position: fixed; inset: 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: #FFFFFF; color: var(--text-main); border-top: 4px solid var(--primary); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 44px 0 28px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 28px; font-weight: 800; color: var(--primary); text-decoration: none; margin-bottom: 14px; }
.footer-description { margin: 0; font-size: 14px; line-height: 1.7; color: #555555; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--primary); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-nav li a { color: #444444; text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav li a:hover { color: var(--primary); text-decoration: underline; }
.footer-mid { background: var(--bg); padding: 18px 0; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-bottom { background: #222222; padding: 16px 0; }
.copyright { margin: 0; text-align: center; color: #F0F0F0; font-size: 13px; }
.footer-dynamic-col { min-height: 1px; }
@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; justify-content: center; }
  .logo { display: flex !important; justify-content: center !important; align-items: center !important; flex: 1 !important; text-align: center; }
  .logo img { max-height: 56px !important; display: block !important; max-width: 100%; height: auto; }
  .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: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background: #FFFFFF; border-bottom: 1px solid var(--border); }
  .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; }
  .hamburger-menu { display: flex; }
  .main-nav { height: 48px !important; min-height: 48px !important; display: none; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh !important; min-height: 100vh !important; flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: 70px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; background: #FFFFFF; box-shadow: 4px 0 18px rgba(0,0,0,0.25); overflow-y: auto; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; padding: 0; gap: 0; width: 100%; max-width: none; }
  .nav-link { display: block; width: 100%; height: auto; padding: 14px 20px; color: var(--text-main); border-bottom: 1px solid var(--border); font-size: 15px; border-radius: 0; }
  .nav-link:hover { background: var(--bg); color: var(--primary); }
  .footer-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { padding: 30px 0 20px; }
  .footer-container { padding: 0 16px; }
  .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;
}
