/* Base styles for the slot-games page */
.page-slot-games {
  background-color: #0D0E12; /* Custom background color */
  color: #FFF3E6; /* Main text color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF3E6;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-slot-games__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__main-title {
  font-size: 3em;
  font-weight: 900;
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.6);
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  margin-right: 15px;
}

.page-slot-games__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-slot-games__btn-secondary {
  background: #17191F; /* Card BG color */
  color: #FF8C1A; /* Primary color */
  border: 2px solid #A84F0C; /* Border color */
}

.page-slot-games__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
  border-color: #FF8C1A;
}

/* Gameshow Grid Section */
.page-slot-games__gameshow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__gameshow-card {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #A84F0C; /* Border color */
}

.page-slot-games__gameshow-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-slot-games__gameshow-title {
  font-size: 1.6em;
  color: #FFB04D; /* Glow color */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__gameshow-description {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list,
.page-slot-games__promotion-list,
.page-slot-games__feature-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li,
.page-slot-games__promotion-list li,
.page-slot-games__feature-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-slot-games__ordered-list strong {
  color: #FFA53A;
}

/* Features Section */
.page-slot-games__features-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-slot-games__features-text {
  flex: 1;
}

.page-slot-games__features-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #A84F0C;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 30px;
}

.page-slot-games__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF3E6;
}

.page-slot-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #FFA53A;
  outline: none;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  content: "−";
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #FFF3E6;
}

/* CTA Section */
.page-slot-games__cta-section {
  text-align: center;
  padding: 60px 0;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Styles --- */

/* General Mobile Styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 2.5em;
  }

  .page-slot-games__section-title {
    font-size: 2em;
  }

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

  .page-slot-games__features-content {
    flex-direction: column;
  }

  .page-slot-games__features-image {
    max-width: 80%;
  }
}

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

  .page-slot-games__main-title {
    font-size: 2em !important;
    margin-bottom: 15px !important;
  }

  .page-slot-games__hero-description {
    font-size: 1em !important;
    margin-bottom: 25px !important;
  }

  .page-slot-games__hero-image-wrapper {
    margin-bottom: 20px !important;
  }

  /* 产品展示图区域 */
  .page-slot-games__gameshow-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* First 4 in 2x2 grid */
    gap: 20px !important;
    padding: 0 10px !important;
  }

  .page-slot-games__gameshow-card:nth-child(5),
  .page-slot-games__gameshow-card:nth-child(6) {
    grid-column: span 2 !important; /* Last 2 take full width */
  }
  
  .page-slot-games__gameshow-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-slot-games__container,
  .page-slot-games__overview-section,
  .page-slot-games__types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__features-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* 按钮与按钮容器 */
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games 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 !important;
    padding-right: 15px !important;
    margin-right: 0 !important;
  }
  
  .page-slot-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    overflow: hidden !important;
  }

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

  .page-slot-games__text-block {
    font-size: 1em !important;
  }

  .page-slot-games__ordered-list,
  .page-slot-games__unordered-list,
  .page-slot-games__promotion-list,
  .page-slot-games__feature-list {
    margin-left: 20px !important;
  }

  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li,
  .page-slot-games__promotion-list li,
  .page-slot-games__feature-list li {
    font-size: 1em !important;
  }

  .page-slot-games__gameshow-title {
    font-size: 1.4em !important;
  }

  .page-slot-games__gameshow-description {
    font-size: 0.9em !important;
  }

  .page-slot-games__faq-item summary {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }

  .page-slot-games__faq-answer {
    padding: 0 20px 15px !important;
  }

  .page-slot-games__features-image {
    max-width: 100% !important;
    height: auto !important;
  }
}