/* Base styles */
.page-jun888link2 {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-jun888link2__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-jun888link2__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #2563eb; /* Brand primary color */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-jun888link2__section-title--white {
  color: #ffffff;
}

.page-jun888link2__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-jun888link2__text-block--white {
  color: #f0f0f0;
}

.page-jun888link2__highlight {
  color: #2563eb;
  font-weight: bold;
}

.page-jun888link2__dark-bg .page-jun888link2__highlight {
  color: #fff;
}

.page-jun888link2__text-link {
  color: #2563eb;
  text-decoration: underline;
}

/* Buttons */
.page-jun888link2__btn-primary,
.page-jun888link2__btn-secondary,
.page-jun888link2__floating-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-jun888link2__btn-primary {
  background-color: #2563eb; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #2563eb;
}

.page-jun888link2__btn-primary:hover {
  background-color: #1e4eaf;
  border-color: #1e4eaf;
}

.page-jun888link2__btn-secondary {
  background-color: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.page-jun888link2__btn-secondary:hover {
  background-color: #2563eb;
  color: #ffffff;
}

/* Hero Section */
.page-jun888link2__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 60px;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.page-jun888link2__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.page-jun888link2__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-jun888link2__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-jun888link2__main-title {
  font-size: clamp(2.2em, 5vw, 3.5em);
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-jun888link2__hero-description {
  font-size: 1.2em;
  color: #64748b;
  margin-bottom: 30px;
}

/* About Section */
.page-jun888link2__about-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* Games Section */
.page-jun888link2__games-section {
  padding: 80px 0;
  background-color: #2563eb;
  color: #ffffff;
}

.page-jun888link2__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-jun888link2__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-jun888link2__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-jun888link2__game-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-jun888link2__game-description {
  font-size: 0.95em;
  color: #64748b;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-jun888link2__game-card .page-jun888link2__btn-secondary {
  margin-top: auto;
  margin-left: 15px;
  margin-right: 15px;
  width: calc(100% - 30px);
}

.page-jun888link2__cta-full-width {
  text-align: center;
  margin-top: 40px;
}

/* Promotions Section */
.page-jun888link2__promotions-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

.page-jun888link2__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-jun888link2__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-jun888link2__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-jun888link2__promo-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-jun888link2__promo-description {
  font-size: 1em;
  color: #64748b;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-jun888link2__promo-card .page-jun888link2__btn-primary,
.page-jun888link2__promo-card .page-jun888link2__btn-secondary {
  margin-top: auto;
  margin-left: 15px;
  margin-right: 15px;
  width: calc(100% - 30px);
}

/* App Section */
.page-jun888link2__app-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-jun888link2__app-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-jun888link2__app-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-jun888link2__app-text .page-jun888link2__section-title {
  text-align: left;
}

.page-jun888link2__app-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-jun888link2__app-qr {
  text-align: center;
}

.page-jun888link2__app-qr-image {
  width: 300px;
  height: 300px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 15px auto;
}

/* FAQ Section */
.page-jun888link2__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-jun888link2__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-jun888link2__faq-item {
  background-color: #f0f2f5;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-jun888link2__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-jun888link2__faq-question:hover {
  background-color: #e0e6ed;
}

.page-jun888link2__faq-qtext {
  pointer-events: none;
  flex-grow: 1;
}

.page-jun888link2__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #2563eb;
  pointer-events: none;
  margin-left: 15px;
}

.page-jun888link2__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  color: #333333;
  font-size: 1em;
}

.page-jun888link2__faq-item.active .page-jun888link2__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-jun888link2__faq-item.active .page-jun888link2__faq-toggle {
  content: '−';
}

/* CTA Bottom Section */
.page-jun888link2__cta-bottom-section {
  padding: 80px 0;
  background-color: #64748b;
  color: #ffffff;
  text-align: center;
}

.page-jun888link2__cta-bottom-section .page-jun888link2__btn-primary {
  margin-top: 30px;
}

/* Floating CTA Button */
.page-jun888link2__floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.page-jun888link2__floating-btn {
  background-color: #ffc107; /* Eye-catching color for promotion */
  color: #333333;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  display: block;
  white-space: normal;
  word-wrap: break-word;
}

.page-jun888link2__floating-btn:hover {
  background-color: #e0a800;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-jun888link2__section-title {
    font-size: 2em;
  }

  .page-jun888link2__hero-description {
    font-size: 1.1em;
  }

  .page-jun888link2__games-grid,
  .page-jun888link2__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-jun888link2__app-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-jun888link2__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-jun888link2__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-jun888link2__hero-description {
    font-size: 1em;
  }

  /* 产品展示图区域 */
  .page-jun888link2__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jun888link2__game-image {
    height: 180px;
  }

  .page-jun888link2__game-card .page-jun888link2__btn-secondary {
    width: calc(100% - 30px) !important;
  }

  .page-jun888link2__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jun888link2__promo-image {
    height: 200px;
  }

  .page-jun888link2__promo-card .page-jun888link2__btn-primary,
  .page-jun888link2__promo-card .page-jun888link2__btn-secondary {
    width: calc(100% - 30px) !important;
  }

  /* 通用图片与容器 */
  .page-jun888link2 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-jun888link2__container,
  .page-jun888link2__hero-content,
  .page-jun888link2__app-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-jun888link2__btn-primary,
  .page-jun888link2__btn-secondary,
  .page-jun888link2 a[class*="button"],
  .page-jun888link2 a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-jun888link2__app-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-jun888link2__cta-full-width .page-jun888link2__btn-primary {
    width: calc(100% - 30px) !important;
  }

  /* Floating CTA Button */
  .page-jun888link2__floating-cta {
    bottom: 15px;
    right: 15px;
    left: 15px;
    width: auto;
  }

  .page-jun888link2__floating-btn {
    font-size: 1em;
    padding: 12px 20px;
    width: 100%;
  }

  /* Other content modules */
  .page-jun888link2__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-jun888link2__text-block {
    font-size: 1em;
  }

  .page-jun888link2__about-section,
  .page-jun888link2__games-section,
  .page-jun888link2__promotions-section,
  .page-jun888link2__app-section,
  .page-jun888link2__faq-section,
  .page-jun888link2__cta-bottom-section {
    padding: 40px 0;
  }

  .page-jun888link2__app-text {
    text-align: center;
  }

  .page-jun888link2__app-text .page-jun888link2__section-title {
    text-align: center;
  }

  .page-jun888link2__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-jun888link2__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-jun888link2__hero-content {
    padding: 0 10px;
  }

  .page-jun888link2__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

  .page-jun888link2__app-qr-image {
    width: 250px;
    height: 250px;
  }
}