:root {
  --header-offset: 110px; /* Desktop: header-top (70px) + main-nav (40px) */
}
body {
  padding-top: var(--header-offset);
}
body.no-scroll {
  overflow: hidden;
}
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: transparent;
}
.header-top {
  background-color: #000000; /* Primary color for header top */
  color: #FFFFFF; /* Text color for header top */
  padding: 15px 0;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFFFFF; /* White text for logo on black background */
  text-decoration: none;
  line-height: 1;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}
.hamburger-menu, .mobile-buttons-bar {
  display: none;
}
.main-nav {
  background-color: #FFFFFF; /* Auxiliary color for main nav */
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 20px;
}
.nav-link {
  color: #000000; /* Black text for nav links on white background */
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #FCBC45;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-login {
  background-color: #FCBC45;
  color: #000000;
}
.btn-login:hover {
  background-color: #e0a73d;
}
.btn-register {
  background-color: #FFFFFF;
  color: #000000;
  border: 1px solid #FCBC45;
}
.btn-register:hover {
  background-color: #f0f0f0;
  border-color: #e0a73d;
}
.site-footer {
  background-color: #000000;
  color: #FFFFFF;
  padding: 40px 0;
  font-size: 15px;
}
.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-col {
  flex: 1;
  min-width: 250px;
}
.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #FFFFFF;
}
.footer-col .logo {
  font-size: 24px;
  margin-bottom: 15px;
  display: inline-block;
}
.footer-col p {
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: #FCBC45;
}
.copyright {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 140px; /* Mobile: header-top (70px) + mobile-buttons-bar (70px) */
  }
  .header-top {
    padding: 15px 0;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    justify-content: space-between;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  .hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
  }
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    color: #FFFFFF;
    padding-right: 30px;
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .mobile-buttons-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    padding: 15px 0;
    width: 100%;
  }
  .mobile-buttons-container {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: none;
    justify-content: center;
    padding: 0 15px;
  }
  .mobile-buttons-bar .btn {
    flex: 1;
    max-width: 150px;
    padding: 10px 15px;
    font-size: 14px;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 75%;
    height: calc(100% - var(--header-offset));
    background-color: #FFFFFF;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    align-items: flex-start;
    padding: 20px 0;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    width: 100%;
    max-width: none;
    gap: 15px;
  }
  .main-nav .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #000000;
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease-out;
    opacity: 0;
  }
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .site-footer {
    padding: 30px 0;
  }
  .footer-content-wrapper {
    padding: 0 15px;
  }
  .footer-columns {
    flex-direction: column;
    gap: 20px;
  }
  .footer-col {
    min-width: unset;
    width: 100%;
    text-align: center;
  }
  .footer-col h3 {
    margin-bottom: 15px;
  }
  .footer-col .logo {
    margin-bottom: 10px;
  }
  .footer-nav {
    align-items: 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;
  }
}
