:root { --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-button-color: #EA7C07; --text-color-dark: #000000; --text-color-light: #FFFFFF; --header-offset: 122px; /* Desktop: header-top (68px) + main-nav (52px) + buffer */ } body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--secondary-color); color: var(--text-color-dark); 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); box-sizing: border-box; overflow: hidden; } .header-top { box-sizing: border-box; height: 68px; /* Desktop fixed height */ display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); /* Distinct background for header-top */ color: var(--text-color-light); 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; /* Padding for content inside container */ } .logo { font-size: 28px; font-weight: bold; color: var(--text-color-light); text-decoration: none; display: flex; align-items: center; height: 100%; } .logo img { display: block; max-height: 60px; /* Max height for desktop logo */ 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; /* Hidden by default on desktop */ min-height: 48px; /* Mobile fixed height */ background-color: #F0F0F0; width: 100%; padding: 0 15px; overflow: hidden; } .main-nav { box-sizing: border-box; height: 52px; /* Desktop fixed height */ display: flex; /* Desktop default: flex row */ align-items: center; overflow: hidden; background-color: #208DC9; /* A slightly different shade of blue for main-nav */ width: 100%; } .nav-container { box-sizing: border-box; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; /* Desktop default: row */ justify-content: center; align-items: center; padding: 0 20px; } .nav-link { color: var(--text-color-light); text-decoration: none; padding: 10px 15px; font-size: 16px; transition: background-color 0.3s ease; white-space: nowrap; } .nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.2); border-radius: 4px; } .hamburger-menu { display: none; /* Hidden by default on desktop */ flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; z-index: 1001; } .hamburger-menu .bar { width: 100%; height: 3px; background-color: var(--text-color-light); transition: all 0.3s ease; border-radius: 2px; } .hamburger-menu.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); } .hamburger-menu.active .bar:nth-child(2) { opacity: 0; } .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); } .btn { display: inline-flex; align-items: center; justify-content: center; 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; border: none; text-align: center; } .btn-login { background-color: var(--login-button-color); /* Orange */ color: var(--text-color-light); } .btn-register { background-color: var(--secondary-color); /* White */ color: var(--primary-color); border: 1px solid var(--primary-color); } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; display: none; } .site-footer { background-color: #333; color: #fff; padding: 40px 20px 20px; font-size: 14px; line-height: 1.6; box-sizing: border-box; } .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(--primary-color); font-size: 18px; margin-bottom: 15px; } .footer-col .footer-logo { font-size: 28px; font-weight: bold; color: var(--text-color-light); text-decoration: none; display: block; margin-bottom: 15px; } .footer-col .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: #ccc; text-decoration: none; transition: color 0.3s ease; } .footer-nav a:hover { color: var(--primary-color); } .footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #555; margin-top: 20px; color: #ccc; } .footer-slot-anchor-inner { min-height: 1px; } @media (max-width: 768px) { :root { --header-offset: 110px; /* Mobile: header-top (60px) + mobile-nav-buttons (48px) + 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%; } .site-header { width: 100%; max-width: 100%; overflow-x: hidden; } .header-top { height: 60px !important; /* Mobile fixed height */ padding-left: 15px; padding-right: 15px; } .header-container { padding: 0; width: 100%; max-width: none; justify-content: space-between; position: relative; /* For absolute positioning of logo */ } .hamburger-menu { display: flex; /* Show hamburger menu on mobile */ position: relative; z-index: 1002; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px); } .logo img { max-height: 56px !important; /* Max height for mobile logo */ } .desktop-nav-buttons { display: none !important; /* Hide desktop buttons on mobile */ } .mobile-nav-buttons { display: flex !important; /* Show mobile buttons */ height: auto; min-height: 48px; /* Mobile fixed height */ align-items: center; justify-content: center; background-color: #F0F0F0; padding: 8px 15px; gap: 10px; flex-wrap: nowrap; /* Ensure buttons stay in one line */ box-sizing: border-box; width: 100%; max-width: 100%; overflow: hidden; } .mobile-nav-buttons .btn { flex: 1; min-width: 0; max-width: calc(50% - 5px); padding: 8px 12px; font-size: 13px; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; box-sizing: border-box; } .main-nav { height: auto; min-height: 100vh; position: fixed; top: 0; left: 0; width: 80%; max-width: 300px; background-color: #262626; flex-direction: column; justify-content: flex-start; padding-top: calc(var(--header-offset) + 20px); transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); display: none; /* Hidden by default */ overflow-y: auto; align-items: stretch; } .main-nav.active { transform: translateX(0); /* Slide menu into view */ display: flex; /* Show menu when active */ } .nav-container { flex-direction: column; padding: 0 15px; height: auto; max-width: none; align-items: stretch; } .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left; font-size: 15px; } .nav-link:last-child { border-bottom: none; } .overlay.active { display: block; /* Show overlay when menu is active */ } .footer-top-grid { grid-template-columns: 1fr; /* Single column layout for footer on mobile */ } .footer-col { margin-bottom: 20px; } .footer-col:last-child { margin-bottom: 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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
