:root {
  --header-offset: 120px; /* Desktop: Header + button area total height */
  --primary-color: #FFD700;
  --secondary-color: #2C3E50;
  --accent-color: #E74C3C;
  --text-light: #FFFFFF;
  --text-dark: #333333;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 200px; /* Mobile: includes marquee/header/button area total height */
  }
}

/* Global styles for desktop (default) */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  min-height: var(--header-offset);
  justify-content: flex-start;
}

.header-top {
  background-color: var(--secondary-color); /* Dark blue */
  width: 100%;
  padding: 10px 0;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color); /* Gold */
  text-transform: uppercase;
  padding: 5px 0;
  display: block;
}

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

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

.btn-login {
  background-color: var(--primary-color); /* Gold */
  color: var(--secondary-color); /* Dark blue text on gold */
  border: 2px solid var(--primary-color);
}

.btn-login:hover {
  background-color: #e0b800; /* Darker gold */
  color: var(--text-dark);
}

.btn-register {
  background-color: var(--accent-color); /* Red */
  color: var(--text-light); /* White text on red */
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
}

.btn-register:hover {
  background-color: #c0392b; /* Darker red */
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.8);
}

.main-nav {
  background-color: var(--primary-color); /* Gold */
  width: 100%;
  padding: 10px 0;
  display: flex;
  flex-direction: row;
  position: static;
}

.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: var(--secondary-color); /* Dark blue text on gold */
  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 {
  background-color: rgba(44, 62, 80, 0.1); /* Slight dark blue tint on hover */
  color: var(--secondary-color);
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1002;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color); /* Gold lines on dark blue header */
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 8px; }
.hamburger-menu span:nth-child(3) { top: 16px; }

.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg); top: 8px; background-color: var(--primary-color); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg); top: 8px; background-color: var(--primary-color); }

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

.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, visibility 0.3s ease;
}

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

.site-footer {
  background-color: var(--secondary-color); /* Dark blue */
  color: var(--text-light); /* White text */
  padding: 40px 0 20px;
  font-size: 14px;
}

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

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  color: var(--primary-color); /* Gold headings */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-col p, .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-light);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-color); /* Gold on hover */
}

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

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .site-header {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
  }

  .header-top {
    padding: 10px 0;
    width: 100%;
  }

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

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: auto;
    align-self: center;
    position: relative;
    z-index: 1002;
  }

  .logo {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: calc(100% - 100px);
  }
  
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

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

  .mobile-nav-buttons {
    display: flex;
    order: 3;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    justify-content: center;
    background-color: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0; /* Will be adjusted by JS */
    left: 0;
    width: 80%;
    height: 100%; /* Will be adjusted by JS */
    background-color: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    z-index: 1001;
    overflow-y: auto;
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 0 15px;
  }

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

  .footer-col h3 {
    margin-top: 20px;
  }
}

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