/* Base styles for the slot-games page */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
}

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

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

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-slot-games__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-slot-games__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-slot-games__text-center {
  text-align: center;
}

/* Color Contrast Specifics */
.page-slot-games__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-slot-games__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__section-description,
.page-slot-games__dark-section .page-slot-games__text-block {
  color: #FFFFFF;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-slot-games__hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Clamp for responsive H1, not fixed large value */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

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

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-slot-games__btn-primary:hover {
  background-color: #c46406;
  border-color: #c46406;
}

.page-slot-games__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1a7aa2;
}

.page-slot-games__btn-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
}

.page-slot-games__btn-link:hover {
  color: #1a7aa2;
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-slot-games__feature-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-slot-games__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__feature-text {
  font-size: 0.95em;
  color: #555555;
}

/* Top Games Section */
.page-slot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-slot-games__game-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #26A9E0;
  margin: 15px 10px 5px;
}

.page-slot-games__game-desc {
  font-size: 0.9em;
  color: #555555;
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-slot-games__game-card .page-slot-games__btn-primary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* How to Play Section */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-slot-games__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-slot-games__step-text {
  font-size: 0.95em;
  color: #555555;
}

.page-slot-games__strategy-tip {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: #FFFFFF;
}

.page-slot-games__strategy-tip a {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: bold;
}

.page-slot-games__strategy-tip a:hover {
  color: #e0f4ff;
}

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

.page-slot-games__faq-item {
  background-color: #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: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
}

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

.page-slot-games__faq-question::marker {
  display: none;
}

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eee;
  margin-top: -1px; /* Overlap border for cleaner look */
}

.page-slot-games__faq-answer p {
  margin: 10px 0 0;
}

/* CTA Bottom Section */
.page-slot-games__cta-bottom {
  padding: 60px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Enforce small top padding */
    padding-bottom: 30px;
  }
  .page-slot-games__hero-image-wrapper {
    margin-bottom: 15px;
    max-height: 400px; /* Adjust max height for mobile */
  }
  .page-slot-games__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__hero-content {
    padding: 0 15px; /* Adjust padding for mobile */
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
    margin-bottom: 10px;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 产品展示图区域 */
  .page-slot-games__games-grid {
    grid-template-columns: 1fr; /* Single column layout for games */
    gap: 20px;
    padding: 0 15px; /* Add padding to prevent overflow */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .page-slot-games__game-card {
    margin: 0 auto;
    max-width: 350px;
  }
  .page-slot-games__game-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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__section,
  .page-slot-games__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .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;
    padding-right: 15px;
  }
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column !important; /* Ensure vertical stacking for CTA buttons */
  }

  /* 其他内容模块 */
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-slot-games__section-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-slot-games__features-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr; /* Single column for features and steps */
    gap: 20px;
  }
  .page-slot-games__feature-card,
  .page-slot-games__step-card {
    padding: 20px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 15px;
  }
  .page-slot-games__cta-bottom {
    padding: 40px 15px;
  }
}