:root { --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-button-color: #EA7C07; --text-color-dark: #333333; --text-color-light: #FFFFFF; --header-offset: 122px; } body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); color: var(--text-color-dark); background-color: var(--secondary-color); overflow-x: hidden; } .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); background-color: var(--secondary-color); } .header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #1A7FB2; width: 100%; padding: 0 20px; } .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: 0 20px; } .logo { display: flex; align-items: center; font-size: 24px; font-weight: bold; color: var(--secondary-color); text-decoration: none; white-space: nowrap; height: 100%; } .logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; } .hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; position: relative; z-index: 1001; } .hamburger-menu .bar { display: block; width: 25px; height: 3px; background-color: var(--secondary-color); margin: 5px 0; transition: all 0.3s ease; } .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger-menu.active .bar:nth-child(2) { opacity: 0; } .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } .desktop-nav-buttons { display: flex; gap: 12px; align-items: center; } .mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #208DC9; } .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; white-space: nowrap; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } .btn-login { background-color: var(--login-button-color); color: var(--secondary-color); } .btn-login:hover { background-color: #D46F06; transform: translateY(-1px); } .btn-register { background-color: var(--primary-color); color: var(--secondary-color); } .btn-register:hover { background-color: #1F8CBF; transform: translateY(-1px); } .main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); width: 100%; padding: 0 20px; } .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: 25px; } .nav-link { color: var(--secondary-color); text-decoration: none; font-weight: bold; padding: 5px 0; white-space: nowrap; transition: color 0.3s ease; font-size: 15px; } .nav-link:hover { color: #E0E0E0; } .menu-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; } .menu-overlay.active { opacity: 1; visibility: visible; } .site-footer { background-color: #1A7FB2; color: var(--secondary-color); padding: 40px 20px 20px; font-size: 14px; line-height: 1.6; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; } .footer-col { display: flex; flex-direction: column; } .footer-col h3 { color: var(--secondary-color); font-size: 18px; margin-bottom: 15px; white-space: nowrap; } .footer-logo { font-size: 24px; font-weight: bold; color: var(--secondary-color); text-decoration: none; margin-bottom: 15px; } .footer-description { margin-bottom: 15px; word-wrap: break-word; overflow-wrap: break-word; } .footer-nav { list-style: none; padding: 0; margin: 0; } .footer-nav li { margin-bottom: 8px; } .footer-nav a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; } .footer-nav a:hover { color: var(--primary-color); } .footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .copyright { margin: 0; color: rgba(255, 255, 255, 0.7); } .footer-slot-anchor-inner { min-height: 1px; width: 100%; } @media (max-width: 768px) { :root { --header-offset: 110px; } body { padding-top: var(--header-offset); overflow-x: hidden; } .page-content img { max-width: 100% !important; height: auto !important; display: block; } .page-content { overflow-x: hidden; max-width: 100%; } body { overflow-x: hidden; } .header-top { min-height: 60px !important; height: 60px !important; padding: 0 15px; } .header-container { width: 100%; max-width: none; padding: 0; justify-content: space-between; } .hamburger-menu { display: block; order: -1; z-index: 1001; padding-left: 0; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 20px; height: 100%; } .logo img { max-height: 56px !important; max-width: calc(100% - 60px); } .desktop-nav-buttons { display: none !important; } .mobile-nav-buttons { display: flex !important; min-height: 48px; height: 48px; align-items: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; justify-content: center; background-color: #208DC9; box-shadow: 0 2px 3px rgba(0,0,0,0.1); } .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 { display: none; position: fixed; top: var(--header-offset); left: 0; width: 250px; height: calc(100vh - var(--header-offset)); background-color: #1A7FB2; flex-direction: column; align-items: flex-start; padding: 20px 0; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); z-index: 1000; overflow-y: auto; } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { flex-direction: column; align-items: flex-start; padding: 0 20px; width: 100%; max-width: none; gap: 15px; } .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .nav-link:last-child { border-bottom: none; } .footer-top-grid { grid-template-columns: 1fr; text-align: center; } .footer-col { align-items: center; margin-bottom: 20px; } .footer-col:last-of-type { margin-bottom: 0; } .footer-col h3 { margin-top: 20px; } .footer-nav { width: 100%; } .footer-nav li { margin-bottom: 5px; } .footer-bottom { flex-direction: column; text-align: center; } .footer-legal-nav { flex-direction: column; gap: 5px; margin-bottom: 15px; } } body.no-scroll { overflow: hidden; } .footer-slot-anchor-inner { min-height: 1px; width: 100%; }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
