:root {
  --header-offset: 120px; /* Desktop: total header + button area height */
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --dark-bg: #1a1a1a;
  --medium-dark-bg: #2a2a2a;
  --light-text: #ffffff;
  --dark-text: #333333;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: total header + marquee + button area height */
  }
}

/* Mobile overflow prevention - MUST */
@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;
  }
}

/* General body styling */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
}

/* Site Header - Fixed, Suspended */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* Header Top - Desktop */
.header-top {
  background-color: var(--dark-bg); /* Dark background for top part */
  padding: 10px 0;
  color: var(--light-text);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Desktop padding */
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--secondary-color); /* Gold color for logo */
  text-decoration: none;
  padding: 5px 0;
  display: block;
}

/* Desktop Nav Buttons */
.desktop-nav-buttons {
  display: flex; /* Show on desktop */
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 1em;
}

.btn-primary {
  background-color: var(--primary-color); /* Red for primary action */
  color: var(--light-text);
  box-shadow: 0 4px 10px rgba(var(--primary-color), 0.4);
}
.btn-primary:hover {
  background-color: #B30000; /* Darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.6);
}

.btn-secondary {
  background-color: var(--secondary-color); /* Gold for secondary action */
  color: var(--dark-text);
  box-shadow: 0 4px 10px rgba(var(--secondary-color), 0.4);
}
.btn-secondary:hover {
  background-color: #E6C200; /* Darker gold */
  color: var(--dark-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.btn-tertiary {
  background-color: #666;
  color: var(--light-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-tertiary:hover {
  background-color: #888;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Main Nav - Desktop */
.main-nav {
  background-color: var(--medium-dark-bg); /* Slightly lighter dark for nav */
  padding: 10px 0;
  display: flex; /* Show on desktop */
  flex-direction: row; /* Horizontal on desktop */
  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: 25px;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 5px 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

/* Hamburger Menu - Hidden on desktop */
.hamburger-menu {
  display: none;
}

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

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

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

.site-footer h3 {
  color: var(--secondary-color);
  font-size: 1.2em;
  margin-bottom: 15px;
}

.site-footer p {
  line-height: 1.8;
}

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

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--secondary-color);
}

.footer-col {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: #888;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    min-height: auto;
  }

  /* Header Top Mobile */
  .header-top {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    justify-content: space-between;
    position: relative;
    min-height: 50px;
  }

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

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

  /* Hamburger Menu - Visible on mobile */
  .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;
    position: relative;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  /* Mobile Nav Buttons - Visible on mobile */
  .mobile-nav-buttons {
    display: block;
    background-color: var(--medium-dark-bg);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 990;
  }

  .mobile-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 15px;
  }

  .mobile-buttons-container .btn {
    flex-shrink: 0;
    font-size: 0.9em;
    padding: 8px 15px;
  }

  /* Main Nav - Mobile (hidden by default, slides in) */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--dark-bg);
    flex-direction: column;
    padding-top: var(--header-offset); /* Push content below fixed header */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

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

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  /* Mobile Menu Overlay */
  .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: 998;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Footer Mobile */
  .site-footer .footer-container {
    flex-direction: column;
    padding: 0 15px;
  }

  .footer-col {
    min-width: unset;
    width: 100%;
  }

  .footer-bottom .footer-container {
    padding: 0 15px;
  }
}
/* 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;
  }
}
