:root { --primary-color: #017439; --secondary-color: #FFFFFF; --header-top-bg: #004d2b; /* Darker green */ --main-nav-bg: #017439; /* Primary green */ --btn-register-bg: #C30808; --btn-login-bg: #C30808; --btn-text-color: #FFFF00; --text-dark: #333333; --text-light: #FFFFFF; --header-offset: 120px; /* Desktop: header-top (70px) + main-nav (50px) */ } @media (max-width: 768px) { :root { --header-offset: 105px; /* Mobile: header-top (60px) + mobile-nav-buttons (45px) */ } } body { margin: 0; font-family: Arial, sans-serif; color: var(--text-dark); padding-top: var(--header-offset); overflow-x: hidden; background-color: var(--secondary-color); } a { text-decoration: none; color: inherit; } /* Site Header */ .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); background-color: var(--secondary-color); /* Fallback/base for the whole header */ } /* Header Top Section (Desktop) */ .header-top { background-color: var(--header-top-bg); color: var(--text-light); min-height: 70px; /* Desktop height */ display: flex; align-items: center; padding: 10px 0; /* Vertical padding for content within header-top */ } .header-container { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; /* Horizontal padding for desktop container */ box-sizing: border-box; } .logo { font-size: 28px; font-weight: bold; color: var(--secondary-color); padding: 5px 0; /* Ensure clickable area and vertical alignment */ display: block; /* Ensure visibility */ text-decoration: none; white-space: nowrap; /* Prevent logo text from wrapping */ } /* Desktop Navigation Buttons */ .desktop-nav-buttons { display: flex; gap: 15px; } .btn { display: inline-block; padding: 10px 20px; border-radius: 25px; font-weight: bold; text-align: center; transition: background-color 0.3s ease, transform 0.2s ease; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .btn-register { background-color: var(--btn-register-bg); color: var(--btn-text-color); } .btn-register:hover { background-color: #a00606; /* Slightly darker red */ transform: translateY(-2px); } .btn-login { background-color: var(--btn-login-bg); color: var(--btn-text-color); } .btn-login:hover { background-color: #a00606; /* Slightly darker red */ transform: translateY(-2px); } /* Main Navigation (Desktop) */ .main-nav { background-color: var(--main-nav-bg); min-height: 50px; /* Desktop height */ display: flex; /* Default to flex for desktop */ align-items: center; padding: 5px 0; /* Vertical padding for content within main-nav */ } .nav-container { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; flex-direction: row; /* Desktop horizontal */ justify-content: center; align-items: center; padding: 0 20px; /* Horizontal padding for desktop container */ box-sizing: border-box; } .nav-link { color: var(--secondary-color); padding: 10px 15px; font-weight: bold; transition: background-color 0.3s ease, color 0.3s ease; border-radius: 5px; white-space: nowrap; text-decoration: none; } .nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.2); color: var(--secondary-color); } /* Hamburger Menu (Mobile) */ .hamburger-menu { display: none; /* Hidden on desktop */ width: 30px; height: 20px; position: relative; cursor: pointer; z-index: 1001; /* Above other header elements */ } .hamburger-menu span { display: block; width: 100%; height: 3px; background-color: var(--secondary-color); position: absolute; left: 0; transition: all 0.3s ease; border-radius: 2px; } .hamburger-menu span:nth-child(1) { top: 0; } .hamburger-menu span:nth-child(2) { top: 8px; } .hamburger-menu span:nth-child(3) { top: 16px; } .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger-menu.active span:nth-child(2) { opacity: 0; } .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } /* Mobile Navigation Buttons (Hidden on desktop) */ .mobile-nav-buttons { display: none; /* Hidden on desktop, shown on mobile */ } /* Mobile Menu Overlay */ .mobile-menu-overlay { display: none; /* Hidden by default */ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; transition: opacity 0.3s ease; } .mobile-menu-overlay.active { display: block; opacity: 1; } /* Footer */ .site-footer { background-color: var(--primary-color); color: var(--secondary-color); padding: 40px 20px; text-align: center; font-size: 14px; } .footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; text-align: left; gap: 20px; } .footer-col { flex: 1; min-width: 200px; margin-bottom: 20px; } .footer-logo { font-size: 24px; font-weight: bold; color: var(--secondary-color); display: block; margin-bottom: 15px; text-decoration: none; } .site-footer h3 { font-size: 18px; margin-bottom: 15px; color: var(--secondary-color); } .site-footer p { line-height: 1.6; margin: 0; } .footer-nav { list-style: none; padding: 0; margin: 0; } .footer-nav li { margin-bottom: 8px; } .footer-nav a { color: var(--secondary-color); transition: color 0.3s ease; text-decoration: none; } .footer-nav a:hover { color: rgba(255, 255, 255, 0.7); } /* Responsive Styles */ @media (max-width: 768px) { .header-top { min-height: 60px; /* Mobile height */ padding: 5px 0; } .header-container { padding: 0 15px; /* Smaller horizontal padding for mobile */ max-width: none; /* Allow container to take full width */ width: 100%; position: relative; /* For absolute logo positioning */ } /* Mobile logo centering (Method 1: flex + !important) */ .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; /* Adjust font size for mobile */ padding: 0; } /* If logo was an image, this would apply: */ .logo img { display: block !important; max-width: 100%; height: auto; max-height: 40px; } .hamburger-menu { display: block; /* Show hamburger menu on mobile */ order: -1; /* Place hamburger menu on the left */ position: relative; left: 0; margin-right: auto; /* Push logo to center */ padding: 10px 0; } .desktop-nav-buttons { display: none; /* Hide desktop buttons on mobile */ } /* Mobile Navigation Buttons */ .mobile-nav-buttons { display: flex !important; /* Show mobile buttons */ width: 100%; max-width: 100%; box-sizing: border-box; padding: 10px 15px; /* Padding for the button bar */ overflow: hidden; /* Prevent overflow */ gap: 10px; flex-wrap: nowrap; /* Ensure buttons stay in one line */ background-color: var(--header-top-bg); /* Same background as header-top */ box-shadow: 0 2px 5px rgba(0,0,0,0.1); } .mobile-nav-buttons .btn { flex: 1; min-width: 0; max-width: calc(50% - 5px); /* Max width for two buttons with 10px gap */ box-sizing: border-box; padding: 8px 12px; font-size: 13px; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; border-radius: 20px; /* Slightly smaller border-radius for mobile buttons */ } .main-nav { display: none; /* Hidden by default on mobile */ position: fixed; top: var(--header-offset); /* Position below header and mobile buttons */ left: 0; width: 250px; /* Sidebar width */ height: calc(100% - var(--header-offset)); /* Fill remaining height */ background-color: var(--main-nav-bg); flex-direction: column; /* Vertical menu */ padding: 20px 0; transform: translateX(-100%); /* Slide out to the left */ transition: transform 0.3s ease; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); overflow-y: auto; /* Enable scrolling for long menus */ } .main-nav.active { display: flex; /* Show menu when active */ transform: translateX(0); /* Slide in */ } .nav-container { flex-direction: column; align-items: flex-start; /* Align links to the left */ padding: 0 15px; max-width: none; /* Allow container to take full width */ width: 100%; } .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left; white-space: normal; /* Allow text to wrap */ } .nav-link:last-child { border-bottom: none; } .footer-container { flex-direction: column; align-items: center; text-align: center; } .footer-col { width: 100%; min-width: unset; margin-bottom: 30px; } .footer-col:last-child { margin-bottom: 0; } .footer-nav { text-align: center; } /* Prevent content images from overflowing */ .page-content img { max-width: 100% !important; height: auto !important; display: block; } .page-content { overflow-x: hidden; max-width: 100%; } } /* Ensure no-scroll works */ body.no-scroll { overflow: hidden; }
/* Payment Methods 图标容器样式 */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.payment-icons img,
.payment-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Game Providers 图标容器样式 */
.game-providers-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.game-providers-icons img,
.game-provider-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Social Media 图标容器样式 */
.social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.social-media-icons img,
.social-media-icon {
  max-height: 50px;
  height: auto;
  width: 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;
  }
}
