:root {
  --header-offset: 120px; /* Desktop: total height of header + button area not exceeding this value */
}
@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: total height of marquee/header/button area not exceeding this value */
  }
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #E0E0E0;
  background-color: #1A202C;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

.header-top {
  background-color: #1A202C; /* Primary Dark */
  padding: 15px 0;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Accent Gold */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background-color: #FFD700; /* Accent Gold */
  color: #1A202C;
  border: 2px solid #FFD700;
}

.btn-primary:hover {
  background-color: #E0B500;
  border-color: #E0B500;
}

.btn-secondary {
  background-color: #333C4E; /* Darker Primary Variant */
  color: #FFD700;
  border: 2px solid #FFD700;
}

.btn-secondary:hover {
  background-color: #4C5A7A;
  border-color: #FFD700;
}

.btn-download {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.btn-download:hover {
  background-color: #2A3344;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFD700;
  margin: 5px auto;
  transition: all 0.3s ease;
}

.main-nav {
  background-color: #333C4E; /* Darker Primary Variant, contrasting with header-top */
  padding: 10px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.nav-link {
  color: #E0E0E0;
  font-weight: bold;
  padding: 8px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #1A202C;
  background-color: #FFD700;
}

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

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.site-footer {
  background-color: #1A202C;
  color: #E0E0E0;
  padding: 40px 20px 20px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: left;
  padding-bottom: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 0 15px 30px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

.footer-column h3 {
  color: #FFD700;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li a {
  display: block;
  padding: 5px 0;
  color: #E0E0E0;
  font-size: 14px;
}

.footer-nav li a:hover {
  color: #FFD700;
}

.footer-bottom {
  border-top: 1px solid #333C4E;
  padding-top: 20px;
  font-size: 13px;
  color: #AAAAAA;
}

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

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between; /* Hamburger left, Logo center */
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    order: 2;
  }

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

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: auto; /* Push logo to center */
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    display: none; /* Default hidden for mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Align below header and buttons */
    left: 0;
    width: 280px;
    height: calc(100% - var(--header-offset));
    background-color: #1A202C;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000; /* Below hamburger, above overlay */
    overflow-y: auto;
    padding-top: 20px;
  }

  .main-nav.active {
    display: flex; /* Must set display for it to be visible */
    transform: translateX(0);
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    width: 100%;
    max-width: none;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #333C4E;
    color: #E0E0E0;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover, .nav-link.active {
    background-color: #333C4E;
    color: #FFD700;
  }

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #1A202C; /* Match header-top */
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 998; /* Below main-nav and hamburger */
  }

  .mobile-buttons-area .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    margin: 0 0 30px;
    min-width: unset;
    width: 100%;
  }

  .footer-column:last-child {
    margin-bottom: 0;
  }

  .footer-nav ul {
    text-align: 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;
  }
}
