:root { --primary: #E53935; --secondary: #FF5A4F; --bg-card: #FFFFFF; --bg-page: #F5F7FA; --text-main: #333333; --border-color: #E0E0E0; --header-offset: 122px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-page); color: var(--text-main); }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.15); background-color: #FFFFFF; }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; border-bottom: 1px solid var(--border-color); 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: 24px; padding-right: 24px; }
.logo { display: inline-block; font-size: 28px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; 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; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; transition: opacity 0.2s ease, transform 0.2s ease; white-space: nowrap; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-login { background-color: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); }
.btn-register { background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); color: #FFFFFF; box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3); }
.hamburger-menu { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger-menu span { display: block; width: 26px; height: 3px; background-color: var(--primary); 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); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; width: 100%; background-color: #FFFFFF; border-bottom: 1px solid var(--border-color); padding: 6px 15px; gap: 10px; }
.mobile-nav-buttons .btn { flex: 1; min-width: 0; max-width: calc(50% - 5px); padding: 8px 12px; font-size: 13px; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; }
.main-nav { box-sizing: border-box; height: 52px; min-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; gap: 4px; }
.nav-link { display: inline-block; padding: 8px 12px; color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
.nav-link:hover { background-color: rgba(255,255,255,0.2); }
.nav-link.active { background-color: #FFFFFF; color: var(--primary); }
.nav-overlay { display: none; }
.site-footer { background-color: #1A1A1A; color: #DDDDDD; }
.footer-top { padding: 48px 0 24px; }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.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: 26px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 14px; letter-spacing: -0.5px; }
.footer-description { font-size: 14px; line-height: 1.7; color: #BBBBBB; margin: 0 0 14px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #BBBBBB; text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--secondary); }
.footer-dynamic-col { min-width: 0; }
.footer-slot-anchor-inner { min-height: 0; }
.footer-mid { margin-top: 24px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0; }
.footer-slot-bottom { margin: 16px 0; }
.footer-bottom { background-color: #111111; border-top: 1px solid #2A2A2A; padding: 18px 0; }
.footer-copyright { margin: 0; text-align: center; font-size: 13px; color: #999999; }
@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 { display: flex !important; flex: 1 !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .logo img { max-height: 56px !important; display: block !important; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: flex; order: -1; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; flex-wrap: nowrap; overflow: hidden; }
  .main-nav { position: fixed; top: 0; left: 0; width: 280px; max-width: 80%; height: 100vh; min-height: auto; display: none; flex-direction: column; justify-content: flex-start; background-color: #FFFFFF; z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.2); overflow-y: auto; padding-top: 80px; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 10px 16px; gap: 4px; height: auto; max-width: none; width: 100%; }
  .nav-link { color: var(--text-main); font-size: 16px; padding: 12px 14px; border-bottom: 1px solid var(--border-color); border-radius: 0; white-space: normal; }
  .nav-link:hover { background-color: var(--bg-page); }
  .nav-link.active { background-color: var(--primary); color: #FFFFFF; }
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 999; }
  .nav-overlay.active { display: block; }
  body.no-scroll { overflow: hidden; }
  .footer-top { padding: 32px 0 16px; }
  .footer-container { padding-left: 15px; padding-right: 15px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-title { font-size: 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;
}
