:root { --primary-color: #C0392B; --secondary-color: #F39C12; --header-top-bg: var(--primary-color); --main-nav-bg: #8B251E; --text-color: #ffffff; --header-offset: 110px; }
@media (max-width: 768px) { :root { --header-offset: 116px; } }

body { margin: 0; font-family: 'Arial', sans-serif; background-color: #f4f4f4; color: #333; padding-top: var(--header-offset); }
body.no-scroll { overflow: hidden; }

/* Header */
.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(--header-top-bg); }
.header-top { background-color: var(--header-top-bg); padding: 10px 0; height: 40px; display: flex; align-items: center; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 20px; box-sizing: border-box; }
.logo { color: var(--text-color); font-size: 28px; font-weight: bold; text-decoration: none; display: block; padding: 0; margin: 0; }
.desktop-nav-buttons { display: flex; gap: 10px; margin-left: auto; }
.btn { padding: 10px 18px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; white-space: nowrap; display: inline-block; text-align: center; }
.btn-primary { background-color: var(--secondary-color); color: #fff; border: 1px solid var(--secondary-color); }
.btn-primary:hover { background-color: #e08b00; border-color: #e08b00; }
.btn-secondary { background-color: transparent; color: var(--secondary-color); border: 1px solid var(--secondary-color); }
.btn-secondary:hover { background-color: var(--secondary-color); color: #fff; }

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

.hamburger-menu { display: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 1001; margin-right: 15px; }
.hamburger-menu span { display: block; height: 3px; width: 100%; background-color: var(--text-color); border-radius: 3px; 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: 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); }

.mobile-nav-buttons { display: none; margin: 0; padding: 10px 0; background-color: #A93226; }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.mobile-menu-overlay.active { display: block; opacity: 1; }

/* Footer */
.site-footer { background-color: #222; color: #bbb; padding: 40px 0 20px; font-size: 14px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0 20px; }
.footer-section { flex: 1; min-width: 250px; margin-bottom: 30px; }
.footer-section:last-child { margin-bottom: 0; }
.footer-logo { color: var(--secondary-color); font-size: 24px; font-weight: bold; text-decoration: none; margin-bottom: 15px; display: inline-block; }
.footer-section h3 { color: var(--text-color); font-size: 18px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px; }
.footer-section p { line-height: 1.6; margin-bottom: 10px; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul li a { color: #bbb; text-decoration: none; transition: color 0.3s ease; }
.footer-section ul li a:hover { color: var(--secondary-color); }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #999; }

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

  .header-top { height: 40px; padding: 10px 0; }
  .header-container { padding: 0 15px; width: 100%; max-width: none; justify-content: space-between; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px); /* Account for hamburger menu and potential space */ }
  .hamburger-menu { display: block; order: -1; margin-right: 0; z-index: 1002; }
  .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;
    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; /* Hidden by default, shown with JS */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below header and mobile buttons */
    left: 0;
    width: 280px;
    height: calc(100% - var(--header-offset));
    background-color: var(--main-nav-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
  }
  .main-nav.active {
    display: flex; /* Crucial for visibility */
    transform: translateX(0);
  }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 0; width: 100%; max-width: none; }
  .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; align-items: center; text-align: center; }
  .footer-section { min-width: unset; width: 100%; margin-bottom: 20px; }
  .footer-section h3 { border-bottom: none; padding-bottom: 0; }
  .footer-logo { margin-bottom: 10px; }
}

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