:root { --header-offset: 122px; --primary-color: #FF8C1A; --accent-color: #FFA53A; --card-bg: #17191F; --site-bg: #0D0E12; --text-main: #FFF3E6; --border-color: #A84F0C; --glow-color: #FFB04D; --deep-orange: #D96800; } body { padding-top: var(--header-offset); margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-main); background-color: var(--site-bg); overflow-x: hidden; } .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.5); } .header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--site-bg); 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-left: 20px; padding-right: 20px; } .logo { display: flex; align-items: center; text-decoration: none; font-size: 24px; font-weight: bold; color: var(--text-main); } .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(--card-bg); width: 100%; padding: 10px 20px; border-top: 1px solid var(--border-color); } .btn { display: inline-block; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: bold; text-align: center; cursor: pointer; transition: all 0.3s ease; background: linear-gradient(180deg, var(--accent-color) 0%, var(--deep-orange) 100%); color: var(--text-main); border: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); white-space: nowrap; } .btn:hover { filter: brightness(1.1); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } .hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; background: none; border: none; padding: 0; } .hamburger-icon { display: block; position: absolute; height: 3px; width: 100%; background: var(--text-main); border-radius: 3px; top: 50%; left: 0; transform: translateY(-50%); transition: all 0.3s ease; } .hamburger-icon::before, .hamburger-icon::after { content: ''; position: absolute; height: 3px; width: 100%; background: var(--text-main); border-radius: 3px; transition: all 0.3s ease; } .hamburger-icon::before { top: -10px; } .hamburger-icon::after { top: 10px; } .hamburger-menu.active .hamburger-icon { background: transparent; } .hamburger-menu.active .hamburger-icon::before { top: 0; transform: rotate(45deg); } .hamburger-menu.active .hamburger-icon::after { top: 0; transform: rotate(-45deg); } .main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); width: 100%; border-top: 1px solid var(--border-color); } .nav-container { box-sizing: border-box; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 25px; } .nav-link { display: block; padding: 10px 0; text-decoration: none; color: var(--text-main); font-weight: bold; transition: color 0.3s ease; white-space: nowrap; } .nav-link:hover { color: var(--primary-color); } .site-footer { background-color: var(--site-bg); padding: 40px 20px 10px; border-top: 1px solid var(--border-color); color: var(--text-main); } .footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px; } .footer-col h3 { color: var(--primary-color); font-size: 18px; margin-bottom: 15px; } .footer-col .footer-nav { list-style: none; padding: 0; margin: 0; } .footer-col .footer-nav li { margin-bottom: 8px; } .footer-col .footer-nav a { text-decoration: none; color: var(--text-main); transition: color 0.3s ease; } .footer-col .footer-nav a:hover { color: var(--primary-color); } .footer-logo { display: inline-block; text-decoration: none; font-size: 28px; font-weight: bold; color: var(--primary-color); margin-bottom: 15px; } .footer-description { font-size: 14px; line-height: 1.8; color: #BBB; word-wrap: break-word; overflow-wrap: break-word; } .footer-slot-anchor-inner { min-height: 1px; } .footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; margin-top: 30px; text-align: center; font-size: 13px; color: #AAA; max-width: 1200px; margin-left: auto; margin-right: auto; } .footer-bottom p { margin: 0; } @media (max-width: 768px) { :root { --header-offset: 110px; } body { overflow-x: hidden; } .page-content img { max-width: 100% !important; height: auto !important; display: block; } .page-content { overflow-x: hidden; max-width: 100%; } .header-top { min-height: 60px; height: 60px; background-color: var(--site-bg); } .header-container { max-width: none; padding-left: 15px; padding-right: 15px; position: relative; } .logo { flex: 1; display: flex; justify-content: center; align-items: center; } .logo img { max-height: 56px; } .desktop-nav-buttons { display: none !important; } .mobile-nav-buttons { display: flex !important; min-height: 48px; align-items: center; width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--card-bg); border-top: 1px solid var(--border-color); } .mobile-nav-buttons .btn { flex: 1; min-width: 0; max-width: calc(50% - 5px); box-sizing: border-box; padding: 8px 12px; font-size: 13px; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; } .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 1001; } .main-nav { display: none; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 80%; max-width: 300px; height: calc(100vh - var(--header-offset)); background-color: var(--card-bg); box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; overflow-y: auto; border-right: 1px solid var(--border-color); } .main-nav.active { display: flex; transform: translateX(0); } .nav-container { flex-direction: column; align-items: flex-start; padding: 20px; gap: 15px; height: auto; } .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .nav-link:last-child { border-bottom: none; } .site-footer { padding: 30px 15px 10px; } .footer-top-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; } .footer-col h3 { margin-top: 20px; } .footer-col .footer-nav { text-align: center; } .footer-bottom { flex-direction: column; gap: 10px; } }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
