.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15); } .header-top { background-color: #26A9E0; width: 100%; } .header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; min-height: 68px; } .logo { display: block; font-size: 32px; font-weight: 900; color: #ffffff; text-decoration: none; letter-spacing: 1px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); } .logo:hover { color: #ffffff; text-decoration: none; } .main-nav { background-color: #f0f8ff; width: 100%; display: flex; } .nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 8px 20px; gap: 5px; width: 100%; } .nav-link { display: block; color: #1a1a1a; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 4px; transition: color 0.3s ease, background-color 0.3s ease; white-space: nowrap; } .nav-link:hover, .nav-link.active { color: #26A9E0; background-color: rgba(38, 169, 224, 0.1); text-decoration: none; } .desktop-nav-buttons { display: flex; gap: 10px; align-items: center; } .desktop-nav-buttons .btn { display: inline-block; text-decoration: none; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; } .btn-register { background: linear-gradient(135deg, #ff6b35, #EA7C07); color: #ffffff; box-shadow: 0 4px 12px rgba(234, 124, 7, 0.3); } .btn-login { background: #ffffff; color: #26A9E0; border: 2px solid #26A9E0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .btn-register:hover, .btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); } .btn-register:hover { color: #ffffff; text-decoration: none; } .btn-login:hover { color: #26A9E0; text-decoration: none; } .mobile-menu-overlay { display: none; } .mobile-nav-buttons { display: none; } .site-footer { background-color: #1a1a2e; color: #ffffff; padding: 0; margin-top: 0; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 50px 20px 30px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } .footer-logo { display: inline-block; font-size: 28px; font-weight: 900; color: #26A9E0; text-decoration: none; margin-bottom: 15px; } .footer-logo:hover { color: #26A9E0; text-decoration: none; } .footer-column p { color: #b0b0b0; font-size: 14px; line-height: 1.6; margin-top: 10px; } .footer-column h3 { color: #ffffff; font-size: 18px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 10px; } .footer-column h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: linear-gradient(to right, #26A9E0, #EA7C07); } .footer-nav { display: flex; flex-direction: column; gap: 12px; } .footer-nav a { color: #b0b0b0; text-decoration: none; font-size: 14px; transition: color 0.3s ease, padding-left 0.3s ease; } .footer-nav a:hover { color: #26A9E0; padding-left: 8px; text-decoration: none; } .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; padding: 20px; background-color: rgba(0, 0, 0, 0.2); } .footer-bottom p { color: #b0b0b0; font-size: 14px; } :root { --header-offset: 0px; } body { padding-top: var(--header-offset); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; } @media (max-width: 768px) { :root { --header-offset: 0px; } .header-container { width: 100%; max-width: none; padding: 8px 15px; justify-content: space-between; min-height: 60px; } .desktop-nav-buttons { display: none; } .logo { font-size: 26px; flex: 1; text-align: center; } .mobile-nav-buttons { display: flex; justify-content: center; gap: 12px; padding: 10px 15px; background-color: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .mobile-nav-buttons .btn { display: inline-block; text-decoration: none; padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; text-align: center; } .mobile-nav-buttons .btn:hover { text-decoration: none; } .main-nav { display: none; flex-direction: column; position: fixed; top: 0; left: 0; width: 80%; max-width: 320px; height: 100%; background-color: #ffffff; box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15); transform: translateX(-100%); transition: transform 0.3s ease, display 0s linear 0.3s; z-index: 1002; overflow-y: auto; } .main-nav.active, .main-nav.open { display: flex; transform: translateX(0); transition: transform 0.3s ease; } .nav-container { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: 60px 20px 20px; width: 100%; max-width: none; } .nav-link { display: block; width: 100%; padding: 15px 10px; font-size: 16px; color: #333333; border-bottom: 1px solid #f0f0f0; white-space: normal; } .nav-link:hover, .nav-link.active { background-color: #f0f8ff; color: #26A9E0; } .mobile-menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; } .mobile-menu-overlay.active, .mobile-menu-overlay.visible { opacity: 1; visibility: visible; transition: opacity 0.3s ease; } body.no-scroll { overflow: hidden; } .desktop-hamburger { display: none; } .hamburger-menu { display: flex; width: 40px; height: 40px; background: none; border: none; cursor: pointer; z-index: 1003; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; position: relative; } .hamburger-menu .bar { display: block; width: 22px; height: 2px; background-color: #ffffff; border-radius: 2px; transition: all 0.3s ease; } .hamburger-menu.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); } .hamburger-menu.active .bar:nth-child(2) { opacity: 0; } .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } .site-footer .footer-container { grid-template-columns: 1fr; gap: 30px; padding: 40px 15px 20px; } .footer-column { text-align: left; } .footer-bottom p { font-size: 13px; } .header-top { min-height: auto; } .hamburger-wrap { display: flex; align-items: center; } .header-top .header-container { display: flex; justify-content: space-between; align-items: center; } } @media (min-width: 769px) { .hamburger-wrap { display: none; } .hamburger-menu { display: none; } .mobile-menu-overlay { display: none; } .mobile-nav-buttons { display: none; } .main-nav { display: flex; position: static; transform: none; transition: none; width: 100%; height: auto; } .main-nav.active, .main-nav.open { display: flex; transform: none; } .site-header .header-top .hamburger-wrap, .site-header .hamburger-menu { display: none; } .main-nav .nav-container .hamburger-close { display: none; } } .page-content { overflow-x: hidden; max-width: 100%; } .page-content img { max-width: 100%; height: auto; display: block; }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
