/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f5f7fb url('../images/bg.png') no-repeat left top;
  background-size: 100% auto;
  background-attachment: fixed;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

:root {
  --max-width: 420px;
  --radius: 10px;
  --shadow: 0 4px 12px rgba(15, 23, 42, .1);
  --muted: #6b7280;
  --card: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  /*padding-inline: 16px;*/
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}
.logo { height: 32px; width: 180px; display: inline-block; background: url('../images/LOGO.png') no-repeat left center / contain; }
.badge { height: 26px; width: 100px; display: inline-block; opacity: .95; background: url('../images/官网推荐.png') no-repeat right center / contain; }

/* Hero */
.hero { padding: 0; }

/* Banner Swiper */
.banner { padding: 6px 0 4px; }
.banner-swiper { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.banner-swiper .swiper-pagination { bottom: 1px; }
.banner-swiper .swiper-pagination-bullet { width: 10px; height: 10px; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.8); opacity: 1; }
.banner-swiper .swiper-pagination-bullet-active { background: #ffffff; transform: scale(1.2); }

/* Games grid */
.games { padding: 4px 0 6px; }
.games .container { 
  background: url('../images/top2bg.png') no-repeat center top / 100% 100%; 
  border-radius: var(--radius); 
  padding: 14px 12px 22px; 
  min-height: auto; 
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.game-grid li { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
.game-tile { 
  display: block; 
  width: 70%; 
  margin: 0 auto; 
  aspect-ratio: 1 / 1; 
  border-radius: var(--radius); 
  overflow: hidden; 
  background: #f8f9fa; 
}
.game-img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  display: block; 
}

/* Promos */
.promos { padding: 4px 0 6px; }
.promo-track { display: grid; gap: 8px; }
.promo-link { 
  display: block; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  overflow: hidden; 
  /*aspect-ratio: 16 / 9; */
  background: #f8f9fa; 
}
.promo-img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  display: block; 
  border-radius: var(--radius); 
}

/* Guarantee Section */
.guarantee { padding: 4px 0 6px; }
.guarantee .container { background: url('../images/top2bg.png') no-repeat center top / 100% 100%; border-radius: var(--radius); padding: 12px 10px 30px; }
.guarantee-content { text-align: center; color: #333; font-size: 14px; line-height: 1.5; }

.guarantee-header { margin-bottom: 10px; }
.guarantee-title { color: #333; font-weight: bold; font-size: 16px; }
.guarantee-amount { color: #ff0000; font-weight: bold; margin-left: 2px; font-size: 16px; }
.guarantee-subtitle { display: inline; margin-left: 8px; color: #333; font-size: 16px; font-weight: bold; }

.guarantee-info p { margin: 4px 0; color: #333; font-size: 12px; }
.guarantee-address-title { text-align: left !important; padding-left: 30px; }

.guarantee-addresses { margin: 8px 0; }
.guarantee-addresses p { 
  font-family: 'Courier New', monospace; 
  font-size: 11px; 
  color: #333; 
  margin: 3px 0; 
  word-break: break-all;
  line-height: 1.4;
}

.guarantee-links { margin-top: 8px; }
.usdt-link { color: #333; font-size: 12px; margin: 4px 0; display: block; }
.usdt-link span { color: #0066cc; }

.guarantee-contacts { margin-top: 6px; }
.guarantee-contacts span { 
  display: inline-block; 
  margin: 0 12px; 
  color: #333; 
  font-size: 12px; 
  font-weight: bold;
}

/* Footer badge */
.site-footer { padding: 4px 0 0; text-align: center; }
.f-badge { display: inline-block; width: 95%; max-width: 400px; height: 80px; opacity: 1; background-repeat: no-repeat; background-position: center; background-size: contain; }
.b3 { background-image: url('../images/di.png'); }


/* SweetAlert2 Custom Styles */
.swal2-container {
  padding: 0 !important;
}

@media (min-width: 769px) {
  .swal2-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.custom-swal-popup-mobile {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
  position: relative !important;
  margin: 20px auto !important;
  max-width: 95% !important;
  width: 95% !important;
}

.custom-swal-popup-mobile .swal2-close {
  position: absolute !important;
  top: -10px !important;
  right: -10px !important;
  width: 30px !important;
  height: 30px !important;
  background: rgba(255,255,255,0.95) !important;
  border: 2px solid #f0f0f0 !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  font-weight: bold !important;
  color: #666 !important;
  cursor: pointer !important;
  z-index: 10001 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
}

.custom-swal-popup-mobile .swal2-close:hover {
  background: #f5f5f5 !important;
  color: #333 !important;
  transform: scale(1.1) !important;
}

.custom-swal-popup-desktop {
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative !important;
  margin: 0 auto !important;
  max-width: 420px !important;
  width: 100% !important;
  max-height: 90vh !important;
}
.swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 769px) {
  .custom-swal-popup-desktop {
    position: relative !important;
  }
  
  .custom-swal-popup-desktop .swal2-html-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80vh !important;
    position: relative !important;
  }
  
  .custom-swal-popup-desktop img {
    max-height: 85vh !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
  }

  .custom-swal-popup-desktop .swal2-close {
    display: none !important;
  }
}

/* Fast Animation Classes */
.swal2-show-fast {
  animation: swal2-show-fast 0.2s !important;
}
.swal2-hide-fast {
  animation: swal2-hide-fast 0.15s !important;
}

@keyframes swal2-show-fast {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes swal2-hide-fast {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
