:root { --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-button-color: #EA7C07; --header-top-bg: var(--primary-color); --main-nav-bg: #1a1a1a; --text-color-dark: #333333; --text-color-light: #FFFFFF; --header-offset: 122px; } html { scroll-behavior: smooth; } body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); line-height: 1.6; color: var(--text-color-dark); background-color: var(--secondary-color); overflow-x: hidden; } a { text-decoration: none; color: var(--primary-color); } a:hover { text-decoration: underline; } .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 5px; font-weight: bold; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color 0.3s ease, transform 0.2s ease; color: var(--text-color-light); border: none; } .btn:hover { transform: translateY(-2px); text-decoration: none; } .btn-login { background-color: var(--login-button-color); } .btn-login:hover { background-color: #d66f06; } .btn-register { background-color: var(--primary-color); } .btn-register:hover { background-color: #2087b2; } .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(--secondary-color); } .header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--header-top-bg); 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; } .logo { display: flex; align-items: center; font-size: 24px; font-weight: bold; color: var(--text-color-light); text-decoration: none; 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; } .mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--header-top-bg); width: 100%; padding: 0 15px; } .main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--main-nav-bg); 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; } .nav-link { display: block; padding: 10px 15px; color: var(--text-color-light); font-weight: bold; white-space: nowrap; transition: background-color 0.3s ease; height: 100%; display: flex; align-items: center; } .nav-link:hover { background-color: rgba(255, 255, 255, 0.1); text-decoration: none; } .hamburger-menu { display: none; cursor: pointer; padding: 10px; z-index: 1001; } .hamburger-menu span { display: block; width: 25px; height: 3px; background-color: var(--text-color-light); margin: 5px 0; transition: all 0.3s ease; } .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger-menu.active span:nth-child(2) { opacity: 0; } .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; } .site-footer { background-color: var(--main-nav-bg); color: rgba(255, 255, 255, 0.7); padding: 40px 20px 20px; font-size: 14px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; } .footer-col h3 { color: var(--text-color-light); font-size: 16px; margin-bottom: 15px; } .footer-logo { display: block; font-size: 20px; font-weight: bold; color: var(--text-color-light); margin-bottom: 15px; text-decoration: none; } .footer-description { line-height: 1.8; 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: rgba(255, 255, 255, 0.7); transition: color 0.3s ease; } .footer-nav a:hover { color: var(--primary-color); text-decoration: underline; } .footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.5); } .footer-slot-anchor, .footer-slot-anchor-inner { min-height: 1px; display: block; } @media (max-width: 768px) { :root { --header-offset: 110px; } body { padding-top: var(--header-offset); overflow-x: hidden; } .site-header { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); } .header-top { min-height: 60px; height: 60px; padding: 0 15px; position: relative; } .header-container { padding: 0; justify-content: center; height: 100%; } .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 1001; } .logo { flex: 0 1 auto !important; display: flex !important; justify-content: center !important; align-items: center !important; height: 100%; } .logo img { max-height: 56px !important; max-width: 100%; } .desktop-nav-buttons { display: none !important; } .mobile-nav-buttons { display: flex !important; min-height: 48px; align-items: center; justify-content: center; background-color: var(--header-top-bg); width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; } .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-overflow: clip; } .main-nav { display: none; position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100% - var(--header-offset)); background-color: var(--main-nav-bg); flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; z-index: 1000; } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { flex-direction: column; align-items: flex-start; padding: 20px 0; width: 100%; max-width: none; } .nav-link { width: 100%; padding: 12px 20px; color: var(--text-color-light); border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .nav-link:last-child { border-bottom: none; } .overlay.active { display: block; } .site-footer { padding: 30px 15px 15px; } .footer-top-grid { grid-template-columns: 1fr; gap: 30px; margin-bottom: 20px; } .footer-bottom { padding-top: 15px; } .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;
  }
}
