:root { --header-offset: 122px; --primary-color: #017439; --secondary-color: #FFFFFF; --btn-register-bg: #C30808; --btn-login-bg: #C30808; --btn-text-color: #FFFF00; }
body { margin: 0; font-family: Arial, sans-serif; padding-top: var(--header-offset); color: #333; overflow-x: hidden; }

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

/* Header Top Bar */
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); width: 100%; }
.header-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }

/* Logo */
.logo { color: var(--secondary-color); font-size: 28px; font-weight: bold; text-decoration: none; padding-right: 20px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }

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

/* Main Navigation */
.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #005a2e; /* Slightly lighter green for contrast */ width: 100%; }
.nav-container { box-sizing: border-box; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-link { color: var(--secondary-color); text-decoration: none; padding: 10px 15px; font-size: 16px; transition: background-color 0.3s ease; white-space: nowrap; }
.nav-link:hover { background-color: rgba(255, 255, 255, 0.1); border-radius: 4px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; text-align: center; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; white-space: nowrap; cursor: pointer; border: none; }
.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: #e00b0b; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(195, 8, 8, 0.6); }
.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: #e00b0b; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(195, 8, 8, 0.6); }

/* Hamburger Menu */
.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; z-index: 1001; background: none; border: none; padding: 0; }
.hamburger-icon { display: block; position: absolute; height: 3px; width: 100%; background: var(--secondary-color); border-radius: 3px; top: 50%; left: 0; transform: translateY(-50%); transition: background-color 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; position: absolute; height: 3px; width: 100%; background: var(--secondary-color); border-radius: 3px; transition: transform 0.3s ease, top 0.3s ease; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }
.hamburger-menu.active .hamburger-icon { background: transparent; }
.hamburger-menu.active .hamburger-icon::before { transform: rotate(45deg); top: 0; background: var(--secondary-color); }
.hamburger-menu.active .hamburger-icon::after { transform: rotate(-45deg); top: 0; background: var(--secondary-color); }

/* Mobile Nav Buttons (Desktop hidden) */
.mobile-nav-buttons { display: none; }

/* Overlay */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 998; }
.overlay.active { display: block; }

/* Site Footer */
.site-footer { background-color: #222; color: #bbb; padding: 40px 20px; font-size: 14px; line-height: 1.6; text-align: center; }
.footer-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 30px auto; text-align: left; }
.footer-col h3 { color: var(--secondary-color); font-size: 18px; margin-bottom: 15px; }
.footer-col p { margin-bottom: 15px; }
.footer-logo { color: var(--primary-color); font-size: 24px; font-weight: bold; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #bbb; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--secondary-color); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; font-size: 13px; color: #888; }
.footer-bottom p { margin: 0; }

/* Responsive Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }

  /* Mobile Header Top Bar */
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; height: 100%; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; max-width: calc(100% - 100px); /* Account for hamburger width */ padding-right: 0; font-size: 24px; }
  .logo img { max-height: 56px !important; }

  /* Hamburger Menu */
  .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
  .desktop-nav-buttons { display: none; }

  /* Mobile Nav Buttons */
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #016331; /* A contrasting background for mobile buttons */
    box-shadow: 0 2px 5px 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;
  }

  /* Mobile Main Navigation */
  .main-nav { display: none; position: fixed; top: var(--header-offset); left: 0; width: 80%; max-width: 300px; height: calc(100% - var(--header-offset)); background-color: #017439; /* Dark green for mobile menu */ flex-direction: column; 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; z-index: 999; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 0 15px; flex-direction: column; align-items: flex-start; }
  .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 Responsive */
  .footer-top-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { margin-bottom: 20px; }
  .footer-nav { margin-top: 15px; }
  .footer-col:last-child { margin-bottom: 0; }

  /* Mobile content overflow protection */
  .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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
