:root { --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) + 2px buffer */ --color-primary: #113B7A; --color-secondary: #1D5FD1; --color-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); --color-card-bg: #10233F; --color-text-main: #F3F8FF; --color-text-secondary: #AFC4E8; --color-border: #244D84; --color-glow: #4FA8FF; --color-gold: #F2C14E; --color-divider: #1B3357; --color-deep-navy: #08162B; } html { scroll-behavior: smooth; } body { margin: 0; font-family: Arial, sans-serif; color: var(--color-text-main); background-color: var(--color-deep-navy); padding-top: var(--header-offset); overflow-x: hidden; } body.no-scroll { overflow: hidden; } /* --- Header Styles --- */ .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); background-color: var(--color-deep-navy); } .header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; background-color: var(--color-deep-navy); padding: 0 20px; } .header-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 100%; } .logo { font-size: 28px; font-weight: bold; color: var(--color-gold); text-decoration: none; display: flex; align-items: center; line-height: 1; } .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(--color-primary); padding: 0 15px; } .btn { padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 15px; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; border: none; color: var(--color-text-main); display: inline-block; box-sizing: border-box; } .btn-register { background: var(--color-button-gradient); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); } .btn-register:hover { filter: brightness(1.1); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); } .btn-login { background-color: var(--color-secondary); border: 1px solid var(--color-border); } .btn-login:hover { background-color: var(--color-primary); } .main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; background-color: var(--color-primary); overflow: hidden; } .nav-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; height: 100%; padding: 0 20px; } .nav-link { color: var(--color-text-secondary); text-decoration: none; padding: 0 15px; font-size: 15px; font-weight: bold; transition: color 0.3s ease; white-space: nowrap; height: 100%; display: flex; align-items: center; } .nav-link:hover, .nav-link.active { color: var(--color-gold); } .hamburger-menu { display: none; background: none; border: none; font-size: 28px; color: var(--color-text-main); cursor: pointer; padding: 0; z-index: 1002; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; } .hamburger-menu.active { color: var(--color-gold); } .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 999; } /* --- Footer Styles --- */ .site-footer { background-color: var(--color-card-bg); color: var(--color-text-secondary); padding: 40px 0 20px; font-size: 14px; } .footer-slot-anchor { display: block; min-height: 1px; } .footer-slot-anchor-inner { display: block; min-height: 1px; } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; border-bottom: 1px solid var(--color-divider); padding-bottom: 30px; margin-bottom: 30px; } .footer-col { padding: 10px 0; } .footer-logo { font-size: 24px; font-weight: bold; color: var(--color-gold); text-decoration: none; display: block; margin-bottom: 15px; } .footer-description { line-height: 1.6; color: var(--color-text-secondary); word-wrap: break-word; overflow-wrap: break-word; } .site-footer h4 { color: var(--color-text-main); font-size: 16px; margin-bottom: 15px; font-weight: bold; } .footer-nav { list-style: none; padding: 0; margin: 0; } .footer-nav li { margin-bottom: 8px; } .footer-nav a { color: var(--color-text-secondary); text-decoration: none; transition: color 0.3s ease; } .footer-nav a:hover { color: var(--color-gold); } .footer-bottom { text-align: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; color: var(--color-text-secondary); } .footer-bottom p { margin: 0; } .site-footer a, .site-footer h4, .footer-description { color: var(--color-text-secondary); } .site-footer h4 { color: var(--color-text-main); } /* --- Responsive Styles (Mobile First Override) --- */ @media (max-width: 768px) { :root { --header-offset: 110px; } 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 { height: 60px; padding: 0 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: static !important; transform: none !important; margin: 0 auto !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: var(--color-deep-navy); } .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; } .main-nav { height: 100vh; width: 280px; position: fixed; top: 0; left: 0; background-color: var(--color-primary); flex-direction: column; justify-content: flex-start; padding-top: 80px; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3); display: none; overflow-y: auto; box-sizing: border-box; } .main-nav.active { transform: translateX(0); display: flex; } .nav-container { flex-direction: column; align-items: flex-start; width: 100%; max-width: none; padding: 0 20px; height: auto; } .nav-link { width: 100%; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--color-divider); justify-content: flex-start; } .nav-link:last-child { border-bottom: none; } .hamburger-menu { display: flex; position: relative; z-index: 1002; margin-right: 0; color: var(--color-text-main); } .hamburger-menu.active { color: var(--color-gold); } .overlay.active { display: block; } .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px; } .footer-col { padding: 15px 0; } .footer-bottom { padding: 0 15px; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
