html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; font-family: 'Arial', sans-serif; line-height: 1.6; color: #333; background-color: #FFFFFF; padding-top: var(--header-offset); }
:root { --header-offset: 122px; --primary-color: #017439; --secondary-color: #FFFFFF; --btn-register-bg: #C30808; --btn-login-bg: #C30808; --btn-text-color: #FFFF00; }

.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.header-top { background-color: var(--primary-color); min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; }
.header-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 100%; }
.logo { color: var(--secondary-color); font-size: 24px; font-weight: bold; text-decoration: none; display: flex; align-items: center; height: 100%; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; gap: 10px; }

.btn { padding: 10px 15px; border-radius: 5px; text-decoration: none; font-weight: bold; text-align: center; white-space: nowrap; transition: background-color 0.3s ease; }
.btn-register { background-color: var(--btn-register-bg); color: var(--btn-text-color); }
.btn-register:hover { background-color: #a30606; }
.btn-login { background-color: var(--btn-login-bg); color: var(--btn-text-color); }
.btn-login:hover { background-color: #a30606; }

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

.main-nav { background-color: #00502a; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; }
.nav-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; height: 100%; }
.nav-link { color: var(--secondary-color); text-decoration: none; padding: 10px 15px; font-weight: bold; transition: color 0.3s ease; white-space: nowrap; }
.nav-link:hover { color: #d4d4d4; }

.hamburger-menu { display: none; cursor: pointer; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; padding: 5px 0; }
.hamburger-menu span { display: block; height: 3px; width: 100%; background-color: var(--secondary-color); border-radius: 3px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 999; }
.overlay.visible { display: block; }

.site-footer { background-color: #222; color: #fff; padding: 40px 20px 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: var(--primary-color); font-size: 18px; margin-bottom: 15px; }
.footer-col p, .footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #bbb; text-decoration: none; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; margin-top: 20px; color: #bbb; }
.footer-bottom p { margin: 0; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); overflow-x: hidden; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }

  .header-top { min-height: 60px; height: 60px; position: relative; }
  .header-container { padding: 0 15px; width: 100%; max-width: none; justify-content: space-between; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none; }
  .hamburger-menu { display: flex; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 1001; }

  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--secondary-color); /* Contrasting background */
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px);
    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 */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 75%; /* Adjust as needed */
    height: calc(100% - var(--header-offset));
    background-color: #00502a;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 0 15px; width: 100%; max-width: none; }
  .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-link:last-child { border-bottom: none; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-col ul li { display: inline-block; margin: 0 5px 8px; }
}

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