:root { --header-offset: 122px; --primary: #E53935; --secondary: #FF5A4F; --bg-main: #F5F7FA; --bg-card: #FFFFFF; --text-main: #333333; --border-color: #E0E0E0; --btn-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); }
*, *::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-main); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ========== HEADER ========== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: #FFFFFF; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); }

.header-top { box-sizing: border-box; height: 68px; min-height: 68px; width: 100%; display: flex; align-items: center; overflow: hidden; background-color: var(--primary); }
.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: 32px; font-weight: 800; letter-spacing: 1px; color: #FFFFFF; text-decoration: none; line-height: 1; text-transform: none; }
.logo:hover { opacity: 0.9; }
.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; box-sizing: border-box; min-height: 48px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; font-size: 15px; font-weight: 700; line-height: 1.2; border-radius: 8px; border: none; cursor: pointer; text-decoration: none; transition: all 0.25s ease; white-space: nowrap; box-sizing: border-box; }
.btn-login { background-color: #FFFFFF; color: var(--primary); border: 2px solid #FFFFFF; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.btn-login:hover { background-color: #FFEBEE; color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; box-shadow: 0 3px 10px rgba(229, 57, 53, 0.4); }
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(229, 57, 53, 0.55); }

.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; width: 100%; display: flex; align-items: center; overflow: hidden; background-color: #FFFFFF; border-bottom: 1px solid var(--border-color); }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; position: relative; }
.nav-list { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; flex-wrap: nowrap; }
.nav-item { margin: 0; padding: 0; }
.nav-link { display: inline-block; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--text-main); text-decoration: none; border-radius: 6px; transition: all 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #FFFFFF; background-color: var(--primary); }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; }
.hamburger-line { display: block; width: 24px; height: 3px; background-color: var(--primary); border-radius: 2px; transition: all 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-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-overlay.active { opacity: 1; visibility: visible; }

body.no-scroll { overflow: hidden; }

/* ========== FOOTER ========== */
.site-footer { background-color: #1A1A2E; color: #E0E0E0; font-size: 14px; line-height: 1.7; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 50px 30px 20px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col { min-width: 0; }
.footer-about { }
.footer-logo { display: inline-block; font-size: 28px; font-weight: 800; color: #FFFFFF; text-decoration: none; margin-bottom: 14px; letter-spacing: 1px; }
.footer-logo:hover { color: var(--secondary); }
.footer-description { margin: 0 0 10px; color: #B0B0C0; font-size: 13px; line-height: 1.7; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 16px; padding-bottom: 10px; position: relative; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--btn-gradient); border-radius: 2px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-link { display: inline-block; color: #B0B0C0; text-decoration: none; font-size: 13px; transition: color 0.2s ease, padding-left 0.2s ease; padding-left: 0; }
.footer-link:hover { color: var(--secondary); padding-left: 4px; }
.footer-dynamic-col { }
.footer-mid-area { margin: 20px 0; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 15px; }
.footer-slot-anchor-inner { min-height: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 30px; text-align: center; background-color: #14142A; }
.footer-copyright { margin: 0; font-size: 13px; color: #9090A0; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }

  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; }
  .logo { font-size: 26px; }
  .logo img { max-height: 56px !important; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !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: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; min-height: 48px; 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: 280px; max-width: 82vw; height: 100vh; min-height: 100vh; background-color: #FFFFFF; display: none; flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18); overflow-y: auto; border-bottom: none; }
  .main-nav.active { display: flex !important; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: 100%; padding: 70px 20px 30px; flex-direction: column; justify-content: flex-start; align-items: stretch; display: flex; }
  .hamburger-menu { display: flex; position: fixed; top: 8px; left: 12px; z-index: 1002; background-color: rgba(255, 255, 255, 0.95); border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
  .nav-list { flex-direction: column; gap: 0; width: 100%; align-items: stretch; }
  .nav-item { width: 100%; border-bottom: 1px solid var(--border-color); }
  .nav-item:last-child { border-bottom: none; }
  .nav-link { display: block; padding: 14px 10px; font-size: 15px; text-align: left; border-radius: 0; width: 100%; }
  .mobile-overlay { display: block; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-container { padding: 30px 18px 16px; }
  .footer-bottom { padding: 16px 18px; }

  .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 (min-width: 769px) {
  .hamburger-menu { display: none !important; }
  .mobile-overlay { display: none !important; }
  .mobile-nav-buttons { display: none !important; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
