:root { --primary-color: #2F6BFF; --secondary-color: #6FA3FF; --text-main: #1F2D3D; --bg-card: #FFFFFF; --bg-main: #F4F7FB; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --border-color: #D6E2FF; --glow-color: #A5C4FF; --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) */ } body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--bg-main); color: var(--text-main); overflow-x: hidden; } a { text-decoration: none; color: var(--primary-color); } ul { list-style: none; padding: 0; margin: 0; } .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); background-color: var(--bg-card); } .header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); width: 100%; color: white; } .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 { font-size: 24px; font-weight: bold; color: white; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; height: 100%; } .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 { background: var(--btn-gradient); color: white; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 15px var(--glow-color); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; } .btn:hover { opacity: 0.9; transform: translateY(-1px); } .hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; } .hamburger-menu .bar { display: block; width: 25px; height: 3px; background-color: white; margin: 5px 0; transition: 0.4s; } .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); } .mobile-nav-buttons { box-sizing: border-box; display: none; /* Hidden on desktop, shown on mobile */ min-height: 48px; background-color: var(--bg-main); padding: 10px 20px; justify-content: center; align-items: center; gap: 10px; width: 100%; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); } .main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; /* Desktop default: flex */ align-items: center; overflow: hidden; background-color: var(--secondary-color); width: 100%; color: white; } .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: white; font-weight: bold; padding: 5px 0; transition: color 0.3s ease; white-space: nowrap; } .nav-link:hover { color: var(--glow-color); } .overlay { display: none; /* Hidden by default */ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 998; } .site-footer { background-color: var(--primary-color); color: white; padding: 40px 0 0; font-size: 14px; } .site-footer h3 { color: white; font-size: 18px; margin-bottom: 20px; position: relative; } .site-footer h3::after { content: ''; display: block; width: 40px; height: 2px; background-color: var(--secondary-color); margin-top: 5px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; } .footer-col { display: flex; flex-direction: column; } .footer-logo { font-size: 22px; font-weight: bold; color: white; text-transform: uppercase; margin-bottom: 15px; } .footer-description { line-height: 1.6; color: rgba(255, 255, 255, 0.8); word-wrap: break-word; overflow-wrap: break-word; } .site-footer .footer-nav li { margin-bottom: 10px; } .site-footer .footer-nav a { color: rgba(255, 255, 255, 0.8); transition: color 0.3s ease; } .site-footer .footer-nav a:hover { color: var(--glow-color); } .footer-bottom { background-color: #2659D9; padding: 20px 0; } .footer-bottom .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; text-align: center; } .footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.7); flex-grow: 1; } .footer-slot-anchor-inner { min-height: 1px; width: 100%; } @media (max-width: 768px) { :root { --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (main-nav) + 2px buffer */ } 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-left: 15px; padding-right: 15px; justify-content: space-between; } .header-container { width: 100%; max-width: none; padding: 0; position: relative; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; max-width: calc(100% - 100px); } .logo img { max-height: 56px !important; max-width: 100%; } .desktop-nav-buttons { display: none !important; } .hamburger-menu { display: block; order: -1; color: white; } .mobile-nav-buttons { display: flex !important; min-height: 48px; align-items: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--bg-main); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); } .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; text-align: center; } .main-nav { display: none; /* Hidden by default on mobile */ flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 70%; height: calc(100% - var(--header-offset)); background-color: var(--primary-color); transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); z-index: 999; } .main-nav.active { display: flex; /* Show menu when active */ transform: translateX(0); } .nav-container { flex-direction: column; align-items: flex-start; padding: 20px 15px; gap: 15px; width: 100%; max-width: none; height: auto; } .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .nav-link:last-child { border-bottom: none; } .overlay.active { display: block; } .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px 30px; } .footer-col { margin-bottom: 20px; } .footer-bottom .footer-container { flex-direction: column; text-align: center; padding: 0 15px; } .footer-bottom p { margin-bottom: 10px; } .site-footer h3 { text-align: center; } .site-footer h3::after { margin: 5px auto 0; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
