:root { --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-btn-color: #EA7C07; --header-offset: 122px; }
body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--secondary-color); color: #333; overflow-x: hidden; }

.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.1); box-sizing: border-box; }

.header-top { background-color: #1a8cc7; /* Darker shade of primary for contrast */ color: var(--secondary-color); min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; box-sizing: border-box; }
.header-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; box-sizing: border-box; }
.logo { font-size: 24px; font-weight: bold; color: var(--secondary-color); 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 { padding: 10px 18px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease, transform 0.2s ease; white-space: nowrap; cursor: pointer; border: none; }
.btn-login { background-color: var(--login-btn-color); color: var(--secondary-color); }
.btn-login:hover { background-color: #d16b06; transform: translateY(-2px); }
.btn-register { background-color: var(--primary-color); color: var(--secondary-color); }
.btn-register:hover { background-color: #1f8cbb; transform: translateY(-2px); }

.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; padding: 5px 0; z-index: 1002; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: var(--secondary-color); border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav-buttons { display: none; /* Hidden on desktop */ }

.main-nav { background-color: var(--primary-color); min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; box-sizing: border-box; }
.nav-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; box-sizing: border-box; }
.nav-link { color: var(--secondary-color); text-decoration: none; padding: 10px 15px; font-weight: bold; white-space: nowrap; transition: background-color 0.3s ease; }
.nav-link:hover { background-color: rgba(255, 255, 255, 0.2); border-radius: 3px; }

.site-footer { background-color: #333; color: #f0f0f0; padding: 40px 20px 20px; text-align: center; font-size: 14px; box-sizing: border-box; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-around; max-width: 1200px; margin: 0 auto 30px; text-align: left; }
.footer-col { flex: 1; min-width: 250px; margin: 15px; }
.footer-logo { font-size: 22px; font-weight: bold; color: var(--primary-color); text-decoration: none; margin-bottom: 15px; display: block; }
.footer-col h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 18px; }
.footer-col p { line-height: 1.6; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #f0f0f0; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; margin-top: 20px; text-align: center; color: #aaa; }
.footer-bottom a { text-decoration: none; color: inherit; /* Ensure no links here */ }

@media (max-width: 1024px) {
  .nav-link { padding: 10px 10px; font-size: 14px; }
  .header-container { padding: 0 15px; }
  .nav-container { padding: 0 15px; }
}

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }

  .header-top { min-height: 60px; height: 60px; }
  .header-container { padding: 0 15px; max-width: none; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px); /* Account for hamburger menu */ }
  .logo img { max-height: 56px !important; }

  .desktop-nav-buttons { display: none; }
  .hamburger-menu { display: flex; position: relative; z-index: 1002; }

  .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: #f5f5f5; /* Light background for mobile buttons */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
  .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;
    text-align: center;
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%; /* Adjust as needed */
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #f0f0f0; /* Light background for mobile menu */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    min-height: 48px; height: auto; /* Allow content to dictate height */
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    height: auto;
    max-width: none;
  }
  .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid #e0e0e0; color: #333; }
  .nav-link:last-child { border-bottom: none; }
  .nav-link:hover { background-color: #e0e0e0; }

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

  .footer-grid { flex-direction: column; align-items: center; }
  .footer-col { margin: 15px 0; text-align: center; }
  .footer-logo { margin-bottom: 10px; }

  /* Mobile content overflow prevention */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}

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