:root { --header-offset: 122px; --primary: #E53935; --secondary: #FF5A4F; --text-main: #333333; --bg-page: #F5F7FA; --card-bg: #FFFFFF; --border-color: #E0E0E0; --footer-bg: #1F2937; --footer-text: #E5E7EB; --footer-muted: #9CA3AF; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text-main); background-color: var(--bg-page); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--card-bg); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; border-bottom: 3px solid var(--primary); }
.header-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-block; font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--primary); text-decoration: none; line-height: 1; white-space: nowrap; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; align-items: center; gap: 12px; }
.mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; }
.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 20px; font-size: 14px; line-height: 1.2; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; text-align: center; }
.btn:focus-visible { outline: 3px solid #111827; outline-offset: 2px; }
.btn-login { background-color: var(--card-bg); color: var(--primary); border: 2px solid var(--primary); }
.btn-login:hover { background-color: #FFF1F0; transform: translateY(-1px); }
.btn-register { background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); color: #FFFFFF; box-shadow: 0 6px 14px rgba(229,57,53,0.28); }
.btn-register:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(229,57,53,0.36); }
.main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #1F2937; }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 4px; }
.hamburger-menu { display: none; }
.nav-link { display: inline-block; color: #F9FAFB; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 6px; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.nav-link:hover { background-color: var(--primary); color: #FFFFFF; }
.nav-home { color: #FFD1CE; font-weight: 800; }
.menu-overlay { display: none; }
.site-footer { background-color: var(--footer-bg); color: var(--footer-text); margin-top: 40px; }
.footer-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 48px 0 28px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 24px; font-weight: 800; letter-spacing: 1px; color: #FFD1CE; text-decoration: none; margin-bottom: 14px; }
.footer-description { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--footer-muted); word-wrap: break-word; overflow-wrap: break-word; }
.footer-col-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: #FFFFFF; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--footer-muted); font-size: 14px; transition: color 0.2s ease; display: inline-block; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-mid { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-mid-cell { min-width: 0; }
.footer-slot-anchor, .footer-slot-anchor-inner { width: 100%; }
.footer-bottom { padding: 20px 0; background-color: #111827; }
.footer-copyright { margin: 0; font-size: 13px; color: var(--footer-muted); text-align: center; }
@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 { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; text-align: center; font-size: 22px; }
  .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-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #FFFFFF; border-bottom: 1px solid var(--border-color); }
  .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 { position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh !important; min-height: 100vh !important; display: none; flex-direction: column; justify-content: flex-start; align-items: stretch; background-color: #1F2937; padding: 78px 18px 24px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; box-sizing: border-box; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; padding: 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: transparent; border: none; cursor: pointer; position: fixed; top: 8px; left: 12px; z-index: 1002; }
  .hamburger-line { display: block; width: 24px; height: 3px; background-color: var(--primary); 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); }
  .nav-link { display: block; width: 100%; color: #F9FAFB; font-size: 15px; padding: 12px 14px; border-radius: 8px; }
  .nav-link:hover { background-color: var(--primary); }
  .menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.55); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
  .menu-overlay.active { display: block; opacity: 1; }
  body.no-scroll { overflow: hidden; }
  .footer-top { padding: 36px 0 22px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .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;
}
