html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; line-height: 1.6; color: #333; padding-top: var(--header-offset); overflow-x: hidden; }
:root { --header-offset: 122px; }

.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.header-top { background-color: #26A9E0; height: 68px; display: flex; align-items: center; width: 100%; box-sizing: border-box; overflow: hidden; }
.header-container { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 100%; box-sizing: border-box; }

.logo { font-size: 24px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }

.desktop-nav-buttons { display: flex; gap: 10px; }
.btn { background-color: #EA7C07; color: #FFFFFF; padding: 10px 15px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; white-space: nowrap; border: none; cursor: pointer; }
.btn:hover { background-color: #d16b06; }

.mobile-nav-buttons { display: none; }

.main-nav { background-color: #1a8ccb; height: 52px; display: flex; align-items: center; width: 100%; box-sizing: border-box; overflow: hidden; }
.nav-container { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; justify-content: center; align-items: center; height: 100%; box-sizing: border-box; padding: 0 20px; }
.nav-link { color: #FFFFFF; text-decoration: none; padding: 0 15px; font-weight: bold; transition: color 0.3s ease; white-space: nowrap; font-size: 15px; }
.nav-link:hover { color: #e0e0e0; }

.hamburger-menu { display: none; cursor: pointer; padding: 10px; }
.hamburger-menu .bar { width: 25px; height: 3px; background-color: #FFFFFF; margin: 5px 0; transition: 0.4s; }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 999; }
.overlay.active { display: block; }

.no-scroll { overflow: hidden; }

/* Footer Styles */
.site-footer { background-color: #26A9E0; color: #FFFFFF; padding: 40px 0 0; font-size: 14px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 0 20px 30px; }
.footer-col h3 { color: #FFFFFF; font-size: 18px; margin-bottom: 15px; }
.footer-col p { line-height: 1.8; margin-bottom: 15px; }
.footer-logo { font-size: 22px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #FFFFFF; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: #e0e0e0; }
.footer-bottom { background-color: #1a8ccb; text-align: center; padding: 15px 20px; font-size: 13px; }
.footer-bottom p { margin: 0; }

/* Responsive Styles */
@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 { height: 60px; }
  .header-container { padding: 0 15px; width: 100%; max-width: none; position: relative; }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 20px;
  }
  .logo img { max-height: 56px; }

  .desktop-nav-buttons { display: none; }
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #26A9E0; /* Match header-top for seamless look */
  }
  .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; }
  .hamburger-menu.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
  .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed; top: var(--header-offset); left: 0; width: 80%; height: calc(100% - var(--header-offset));
    background-color: #1a8ccb; /* Match desktop main-nav */
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    padding: 20px;
    box-sizing: border-box; overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.3s ease;
    z-index: 1000;
    height: auto; /* Allow content to dictate height */
    max-height: calc(100vh - var(--header-offset)); /* Limit height to viewport */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }
  .nav-container { flex-direction: column; padding: 0; width: 100%; max-width: none; height: auto; }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: left; font-size: 16px; }
  .nav-link:last-child { border-bottom: none; }

  .overlay.active { display: block; z-index: 999; }

  .footer-container { grid-template-columns: 1fr; text-align: center; padding: 0 15px 30px; }
  .footer-col h3 { margin-top: 20px; }
  .footer-col p { text-align: center; }
  .footer-nav li { display: inline-block; margin: 0 10px 10px; }
  .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; }
}

/* 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;
  }
}
