html { scroll-behavior: smooth; } body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); color: #333333; line-height: 1.6; overflow-x: hidden; } :root { --primary-color: #26A9E0; --accent-color: #FFFFFF; --login-button-color: #EA7C07; --background-color: #FFFFFF; --text-color-dark: #333333; --text-color-light: #FFFFFF; --header-offset: 122px; } .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); background-color: var(--primary-color); } .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%; } .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: var(--text-color-light); text-decoration: none; display: block; } .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 { box-sizing: border-box; display: none; min-height: 48px; } .main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--accent-color); 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; flex-wrap: nowrap; } .nav-link { color: var(--text-color-dark); text-decoration: none; padding: 10px 15px; font-weight: 500; white-space: nowrap; transition: color 0.3s ease; } .nav-link:hover, .nav-link.active { color: var(--primary-color); } .hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; z-index: 1002; position: relative; padding: 5px; } .hamburger-menu span { display: block; width: 100%; height: 3px; background-color: var(--text-color-light); transition: all 0.3s ease; border-radius: 2px; } .hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); } .hamburger-menu.active span:nth-child(2) { opacity: 0; } .hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); } .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; display: none; } .overlay.active { display: block; } .btn { padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; white-space: nowrap; display: inline-block; text-align: center; border: none; line-height: 1.2; } .btn:hover { transform: translateY(-2px); } .btn-primary { background-color: var(--login-button-color); color: var(--text-color-light); } .btn-primary:hover { background-color: #d46b00; } .btn-secondary { background-color: var(--primary-color); color: var(--text-color-light); } .btn-secondary:hover { background-color: #1f8ec4; } .site-footer { background-color: #333333; color: #f0f0f0; padding: 40px 0 20px 0; font-size: 14px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .footer-col h3 { color: var(--primary-color); font-size: 16px; margin-bottom: 15px; text-transform: uppercase; } .footer-col p { line-height: 1.6; margin-bottom: 10px; word-wrap: break-word; overflow-wrap: break-word; } .footer-logo { font-size: 20px; font-weight: bold; color: var(--accent-color); text-decoration: none; margin-bottom: 15px; display: block; } .footer-nav { list-style: none; padding: 0; margin: 0; } .footer-nav li { margin-bottom: 8px; } .footer-nav a { color: #f0f0f0; text-decoration: none; transition: color 0.3s ease; } .footer-nav a:hover { color: var(--primary-color); } .footer-bottom { background-color: #222222; text-align: center; padding: 20px 0; font-size: 13px; margin-top: 30px; } .footer-bottom p { margin: 0; color: #cccccc; } @media (max-width: 768px) { :root { --header-offset: 110px; } .header-top { min-height: 60px; height: 60px; padding: 0 15px; } .header-container { padding: 0; justify-content: space-between; width: 100%; max-width: none; position: relative; } .hamburger-menu { display: flex; order: -1; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; } .logo img { max-height: 56px !important; } .desktop-nav-buttons { display: none !important; } .mobile-nav-buttons { display: flex !important; min-height: 48px; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: #f0f0f0; box-shadow: 0 1px 3px rgba(0,0,0,0.08); } .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; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 70%; max-width: 300px; height: calc(100% - var(--header-offset)); background-color: var(--accent-color); z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { flex-direction: column; padding: 20px 15px; align-items: flex-start; width: 100%; max-width: none; } .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid #eee; white-space: normal; } .nav-link:last-child { border-bottom: none; } .site-footer { padding: 30px 0 15px 0; } .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px; } .footer-col { margin-bottom: 20px; } .footer-bottom { margin-top: 20px; padding: 15px 0; } .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.no-scroll { overflow: 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;
  }
}
