/* style/slot-games.css */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #F5F7FA); /* Default background */
}

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

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles main offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
}

.page-slot-games__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual flow */
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
  position: relative;
}

.page-slot-games__hero-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size */
  color: #E53935;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

.page-slot-games__hero-cta-buttons,
.page-slot-games__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-slot-games__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-slot-games__section-title--light {
  color: #ffffff;
}

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

.page-slot-games__text-block--light {
  color: #f0f0f0;
}

.page-slot-games__introduction-section,
.page-slot-games__guide-section,
.page-slot-games__why-choose-section,
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-slot-games__dark-section {
  background-color: #E53935;
  padding: 60px 0;
}

.page-slot-games__grid-layout,
.page-slot-games__feature-grid,
.page-slot-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-slot-games__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #E0E0E0; /* Border for contrast */
  color: #333333;
}

.page-slot-games__card--dark-bg {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
}

.page-slot-games__card-image,
.page-slot-games__tip-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: #E53935;
  margin: 20px 15px 10px;
}

.page-slot-games__card--dark-bg .page-slot-games__card-title,
.page-slot-games__tip-title {
  color: #ffffff;
}

.page-slot-games__card-description {
  font-size: 1em;
  color: #333333;
  padding: 0 15px 20px;
}

.page-slot-games__card--dark-bg .page-slot-games__card-description {
  color: #f0f0f0;
}

.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: center;
}

.page-slot-games__step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #E0E0E0;
}

.page-slot-games__step-image {
  max-width: 100%;
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__step-title {
  font-size: 1.8em;
  color: #E53935;
  margin-bottom: 15px;
}

.page-slot-games__step-description {
  font-size: 1em;
  color: #333333;
}

.page-slot-games__center-cta {
  text-align: center;
  margin-top: 40px;
}

.page-slot-games__feature-card {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #E0E0E0;
}

.page-slot-games__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-slot-games__feature-title {
  font-size: 1.3em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 0.95em;
  color: #333333;
}

.page-slot-games__tip-card {
  text-align: center;
  padding-bottom: 20px;
}

.page-slot-games__tip-title {
  font-size: 1.5em;
  color: #ffffff;
  margin: 20px 15px 10px;
}

.page-slot-games__tip-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px;
}

.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__faq-item {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #E53935;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-slot-games__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #E53935;
}

.page-slot-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 10px;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  content: '−'; /* Change to minus sign */
}

.page-slot-games__cta-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__cta-section .page-slot-games__section-title,
.page-slot-games__cta-section .page-slot-games__text-block {
  color: #ffffff;
}

.page-slot-games__cta-buttons {
  margin-top: 40px;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }

  .page-slot-games__hero-image {
    max-height: 300px;
  }

  .page-slot-games__hero-content {
    margin-top: -40px; /* Adjust overlap */
    padding: 20px 15px;
  }

  .page-slot-games__hero-title {
    font-size: 1.8em;
  }

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

  /* 按钮与按钮容器 */
  .page-slot-games__hero-cta-buttons,
  .page-slot-games__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 产品展示图区域 & 通用图片 */
  .page-slot-games__grid-layout,
  .page-slot-games__steps-grid,
  .page-slot-games__feature-grid,
  .page-slot-games__tips-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__card,
  .page-slot-games__step-item,
  .page-slot-games__feature-card,
  .page-slot-games__tip-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__card-image,
  .page-slot-games__tip-image {
    height: 180px;
  }

  .page-slot-games__step-image {
    height: 150px;
  }

  /* 其他内容模块 */
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-slot-games__text-block {
    font-size: 0.95em;
  }

  .page-slot-games__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-slot-games__faq-answer {
    font-size: 0.9em;
  }

  .page-slot-games__introduction-section,
  .page-slot-games__guide-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__faq-section,
  .page-slot-games__dark-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }
}

/* --- Tablet Responsive Styles (Optional, but good practice) --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-slot-games__container {
    padding: 30px 20px;
  }

  .page-slot-games__hero-title {
    font-size: 2.5em;
  }

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

  .page-slot-games__grid-layout,
  .page-slot-games__steps-grid,
  .page-slot-games__tips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-slot-games__feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .page-slot-games__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
}