:root { --header-offset: 122px; --primary-color: #F2C14E; --secondary-color: #FFD36B; --card-bg: #111111; --body-bg: #0A0A0A; --text-main: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; } body { margin: 0; font-family: Arial, sans-serif; color: var(--text-main); background-color: var(--body-bg); padding-top: var(--header-offset); } .site-header { background-color: var(--body-bg); width: 100%; position: fixed; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); min-height: 60px; display: flex; align-items: center; } .header-container { max-width: 1200px; margin: 0 auto; padding: 15px 30px; display: flex; align-items: center; width: 100%; } .logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-decoration: none; flex-shrink: 0; padding-right: 20px; } .main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 30px; } .nav-link { color: var(--text-main); text-decoration: none; font-size: 16px; padding: 8px 0; position: relative; transition: color 0.3s ease; } .nav-link:hover { color: var(--primary-color); } .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 15px; color: var(--text-main); background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color); } .desktop-nav-buttons { flex-shrink: 0; margin-left: auto; display: flex; gap: 12px; } .mobile-nav-buttons { display: none !important; } .hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 24px; position: relative; flex-shrink: 0; margin-right: 15px; z-index: 1001; } .hamburger-icon { display: block; width: 100%; height: 3px; background-color: var(--text-main); position: absolute; left: 0; transition: transform 0.3s ease, opacity 0.3s ease; } .hamburger-icon:nth-child(1) { top: 0; } .hamburger-icon:nth-child(2) { top: 10px; } .hamburger-icon:nth-child(3) { top: 20px; } .hamburger-menu.active .hamburger-icon:nth-child(1) { transform: translateY(10px) rotate(45deg); } .hamburger-menu.active .hamburger-icon:nth-child(2) { opacity: 0; } .hamburger-menu.active .hamburger-icon:nth-child(3) { transform: translateY(-10px) rotate(-45deg); } .site-footer { background-color: var(--card-bg); padding: 40px 0 20px; color: var(--text-main); font-size: 14px; border-top: 1px solid var(--border-color); } .footer-content-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 30px; } .footer-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; } .footer-col { display: flex; flex-direction: column; } .footer-logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-decoration: none; margin-bottom: 15px; } .footer-description { line-height: 1.6; margin-bottom: 20px; word-wrap: break-word; overflow-wrap: break-word; } .footer-title { font-size: 18px; color: var(--primary-color); margin-bottom: 20px; } .footer-nav { display: flex; flex-direction: column; gap: 10px; } .footer-link { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; } .footer-link:hover { color: var(--primary-color); } .footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 13px; color: rgba(255, 246, 214, 0.7); } @media (max-width: 768px) { :root { --header-offset: 110px; } .page-content img { max-width: 100% !important; height: auto !important; display: block; } .page-content { overflow-x: hidden; max-width: 100%; } body { overflow-x: hidden; } .site-header { min-height: 50px; } .header-container { width: 100%; max-width: none; padding: 10px 15px; justify-content: space-between; position: relative; } .hamburger-menu { display: block; } .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; padding-right: 0; } .main-nav { display: none; position: fixed; top: var(--header-offset); left: 0; width: 70%; max-width: 300px; height: calc(100vh - var(--header-offset)); background-color: var(--card-bg); flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; overflow-y: auto; padding: 20px; align-items: flex-start; gap: 15px; } .main-nav.active { display: flex; transform: translateX(0); } .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255, 246, 214, 0.1); } .nav-link:last-child { border-bottom: none; } .desktop-nav-buttons { display: none !important; } .mobile-nav-buttons { display: flex !important; gap: 8px; } .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 998; } .mobile-menu-overlay.active { display: block; } .footer-container { grid-template-columns: 1fr; } .footer-col { margin-bottom: 30px; } .footer-col:last-child { margin-bottom: 0; } } 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;
  }
}
