:root { --primary-color: #F2C14E; --secondary-color: #FFD36B; --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); --card-bg: #111111; --background-color: #0A0A0A; --text-main-color: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; --header-offset: 122px; } body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--background-color); color: var(--text-main-color); line-height: 1.6; overflow-x: hidden; } .site-header { position: fixed; top: 0; width: 100%; background-color: var(--background-color); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); z-index: 1000; min-height: 60px; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); } .header-container { max-width: 1200px; margin: 0 auto; padding: 15px 30px; display: flex; align-items: center; width: 100%; gap: 20px; } .logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-decoration: none; flex-shrink: 0; display: block; } .main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 25px; } .nav-link { color: var(--text-main-color); text-decoration: none; font-size: 17px; padding: 5px 0; position: relative; transition: color 0.3s ease; } .nav-link:hover { color: var(--secondary-color); } .nav-link::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background-color: var(--secondary-color); transition: width 0.3s ease; } .nav-link:hover::after { width: 100%; } .desktop-nav-buttons { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; } .mobile-nav-buttons { display: none !important; } .btn { background: var(--button-gradient); color: #0A0A0A; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4); } .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6); } .hamburger-menu { display: none; background: none; border: none; font-size: 30px; color: var(--primary-color); cursor: pointer; padding: 0; line-height: 1; z-index: 1001; position: relative; transition: transform 0.3s ease; flex-shrink: 0; } @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%; } .header-container { width: 100%; max-width: none; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; } .hamburger-menu { display: block; order: 1; } .logo { order: 2; flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; } .desktop-nav-buttons { display: none !important; } .mobile-nav-buttons { display: flex !important; order: 3; gap: 8px; flex-shrink: 0; } .main-nav { display: none; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100% - var(--header-offset)); background-color: var(--background-color); box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); transform: translateX(-100%); transition: transform 0.3s ease-out; padding: 20px; overflow-y: auto; z-index: 999; align-items: flex-start; } .main-nav.active { display: flex; transform: translateX(0); } .main-nav .nav-link { width: 100%; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--border-color); } .main-nav .nav-link:last-child { border-bottom: none; } .main-nav .nav-link::after { height: 0; } .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; opacity: 0; transition: opacity 0.3s ease-out; } .mobile-menu-overlay.active { display: block; opacity: 1; } } .site-footer { background-color: var(--card-bg); padding: 40px 0 20px; color: var(--text-main-color); font-size: 15px; border-top: 1px solid var(--border-color); } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; } .footer-cols-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 40px; } .footer-col h3 { color: var(--primary-color); font-size: 18px; margin-bottom: 20px; position: relative; } .footer-col h3::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 40px; height: 2px; background-color: var(--secondary-color); } .footer-logo { font-size: 26px; font-weight: bold; color: var(--primary-color); text-decoration: none; margin-bottom: 15px; display: inline-block; } .footer-description { font-size: 14px; line-height: 1.8; color: #BBB; word-wrap: break-word; overflow-wrap: break-word; } .footer-nav { display: flex; flex-direction: column; gap: 10px; } .footer-nav .nav-link { color: #BBB; text-decoration: none; transition: color 0.3s ease; } .footer-nav .nav-link:hover { color: var(--secondary-color); } .footer-bottom { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 14px; color: #AAA; } .footer-slot-anchor, .footer-slot-anchor-inner { min-height: 1px; width: 100%; } @media (max-width: 768px) { .footer-container { padding: 0 15px; } .footer-cols-wrapper { grid-template-columns: 1fr; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
