:root {
  --primary-color: #1A237E;
  --secondary-color: #FFD700;
  --text-color-light: #FFFFFF;
  --text-color-dark: #333333;
  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --mobile-button-height: 50px;
  --header-offset: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop)); /* Desktop: 60px + 50px = 110px */
}

@media (max-width: 768px) {
  :root {
    --header-top-height-mobile: 60px;
    --mobile-button-area-height: 50px;
    --header-offset: calc(var(--header-top-height-mobile) + var(--mobile-button-area-height)); /* Mobile: 60px + 50px = 110px */
  }
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

/* ==================== Header Styles ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-color);
}

.header-top {
  background-color: var(--primary-color); /* Deep Indigo */
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
  padding: 0 20px; /* Padding for the entire top bar */
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* Bright Gold */
  text-decoration: none;
  padding: 10px 0;
  line-height: 1;
  display: block;
}

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

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color); /* Bright Gold */
  color: var(--primary-color); /* Deep Indigo */
}

.btn-primary:hover {
  background-color: #e6c200;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
  background-color: #2c3e50; /* A darker shade for contrast */
  color: var(--text-color-light); /* White */
}

.btn-secondary:hover {
  background-color: #3f546a;
  box-shadow: 0 0 10px rgba(44, 62, 80, 0.5);
}

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

.main-nav {
  background-color: #2c3e50; /* A darker shade for the nav bar */
  min-height: var(--main-nav-height-desktop);
  display: flex;
  align-items: center;
  width: 100%;
}

.main-nav .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: var(--text-color-light); /* White */
  text-decoration: none;
  padding: 15px 20px;
  font-size: 16px;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color); /* Bright Gold */
}

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

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

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

/* ==================== Footer Styles ==================== */
.site-footer {
  background-color: var(--primary-color); /* Deep Indigo */
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 20px 20px;
  font-size: 14px;
}

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

.footer-col {
  flex: 1;
  min-width: 250px;
  max-width: 30%;
}

.footer-col:first-child {
  max-width: 35%;
}

.footer-logo {
  font-size: 26px;
  font-weight: bold;
  color: var(--secondary-color); /* Bright Gold */
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
}

.site-footer h3 {
  color: var(--text-color-light); /* White */
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.site-footer h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
  margin-top: 5px;
}

.site-footer p {
  margin: 0 0 10px;
}

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

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ==================== Mobile Styles ==================== */
@media (max-width: 768px) {
  .site-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .header-top {
    min-height: var(--header-top-height-mobile);
    padding: 0 15px;
    position: relative; /* For absolute positioning of logo if needed */
  }

  .header-container {
    padding: 0;
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block;
    order: 1;
    color: var(--secondary-color);
    padding-left: 0;
  }

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

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

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

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

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

  .mobile-nav-buttons {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #34495e; /* A slightly different background for the button bar */
    min-height: var(--mobile-button-area-height);
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* 50% minus half of the gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset); /* Position below header and mobile buttons */
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset));
    background-color: var(--primary-color); /* Deep Indigo */
    flex-direction: column;
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    align-items: flex-start;
    padding: 20px 0;
  }

  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

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

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

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

  .footer-col:first-child {
    max-width: 100%;
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: 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;
  }
}
