html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; margin: 0; padding-top: var(--header-offset); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: var(--primary-color); }
a:hover { color: var(--primary-color); text-decoration: underline; }

:root { --primary-color: #017439; --secondary-color: #FFFFFF; --btn-register-bg: #C30808; --btn-login-bg: #C30808; --btn-text-color: #FFFF00; --header-top-bg: #00502A; /* Darker green */ --main-nav-bg: #017439; /* Primary green */ --footer-bg: #00331A; /* Even darker green */ --text-dark: #333333; --text-light: #F0F0F0; /* Slightly off-white for better contrast */ --header-offset: 115px; /* Desktop: header-top ~65px + main-nav ~50px */ }
@media (max-width: 768px) { :root { --header-offset: 110px; /* Mobile: header-top ~60px + mobile-nav-buttons ~50px */ } }

.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); background-color: var(--secondary-color); }
.header-top { background-color: var(--header-top-bg); color: var(--secondary-color); padding: 10px 0; min-height: 45px; 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: 24px; font-weight: bold; color: var(--secondary-color); text-transform: uppercase; letter-spacing: 1px; display: block; order: 0; white-space: nowrap; }
.logo:hover { color: var(--secondary-color); text-decoration: none; }

.desktop-nav-buttons { display: flex; gap: 10px; order: 1; }
.btn { padding: 10px 18px; border-radius: 25px; font-weight: bold; text-decoration: none; transition: all 0.3s ease; white-space: nowrap; text-align: center; display: inline-block; cursor: pointer; border: none; font-size: 15px; line-height: 1.2; }
.btn-register { background-color: var(--btn-register-bg); color: var(--btn-text-color); box-shadow: 0 4px 10px rgba(195, 8, 8, 0.4); }
.btn-register:hover { background-color: #E00000; box-shadow: 0 6px 15px rgba(195, 8, 8, 0.6); color: var(--btn-text-color); text-decoration: none; }
.btn-login { background-color: var(--btn-login-bg); color: var(--btn-text-color); box-shadow: 0 4px 10px rgba(195, 8, 8, 0.4); }
.btn-login:hover { background-color: #E00000; box-shadow: 0 6px 15px rgba(195, 8, 8, 0.6); color: var(--btn-text-color); text-decoration: none; }

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

.main-nav { background-color: var(--main-nav-bg); padding: 10px 0; min-height: 30px; display: flex; justify-content: center; align-items: center; position: static; }
.nav-container { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; justify-content: center; align-items: center; padding: 0 20px; flex-wrap: wrap; }
.nav-link { color: var(--secondary-color); padding: 8px 15px; font-size: 16px; font-weight: bold; white-space: nowrap; transition: background-color 0.3s ease; border-radius: 5px; }
.nav-link:hover { background-color: rgba(255, 255, 255, 0.1); color: var(--secondary-color); text-decoration: none; }

.hamburger-menu { display: none; /* Hidden by default on desktop */ cursor: pointer; width: 30px; height: 25px; position: relative; z-index: 1001; flex-direction: column; justify-content: space-between; order: -1; }
.hamburger-menu span { display: block; height: 3px; width: 100%; background-color: var(--secondary-color); border-radius: 2px; transition: all 0.3s ease-in-out; }
.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-menu-overlay { display: none; /* Hidden by default on desktop */ 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(--footer-bg); color: var(--text-light); padding: 40px 0 20px; font-size: 14px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { color: var(--secondary-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: var(--text-light); transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary-color); text-decoration: underline; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-light); }

@media (max-width: 768px) {
  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 { padding: 10px 0; min-height: 40px; }
  .header-container { padding: 0 15px; justify-content: space-between; width: 100%; max-width: none; position: relative; }

  .hamburger-menu { display: flex; order: 0; margin-right: auto; }

  .logo { font-size: 20px; order: 1; flex: 1; display: flex; justify-content: center; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px); white-space: normal; text-align: center; line-height: 1.2; }

  .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: var(--header-top-bg); justify-content: center; }
  .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; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 250px; height: calc(100% - var(--header-offset)); background-color: var(--main-nav-bg); padding: 20px 0; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; align-items: flex-start; }
  .main-nav.active { display: flex; transform: translateX(0); }

  .nav-container { flex-direction: column; align-items: flex-start; padding: 0 15px; max-width: none; width: 100%; }
  .nav-link { width: 100%; padding: 12px 15px; text-align: left; white-space: normal; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-link:last-child { border-bottom: none; }

  .footer-container { flex-direction: column; align-items: center; text-align: center; }
  .footer-col { min-width: unset; width: 100%; }
  .footer-col h3 { margin-top: 20px; }
}
/* 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;
  }
}
