/* style/slot-games.css */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.page-slot-games__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-slot-games__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-slot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  text-align: left;
  position: relative;
  overflow: hidden;
  gap: 40px;
}

.page-slot-games__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

.page-slot-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-slot-games__hero-image-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 0;
}

.page-slot-games__hero-image {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

.page-slot-games__section-title {
  font-size: 2.8em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

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

.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, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-slot-games__link {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__link:hover {
  color: #01a355;
  text-decoration: underline;
}

/* Logo Carousel Section */
.page-slot-games__logo-carousel-section {
  padding: 60px 40px;
  background-color: #1a1a1a;
  text-align: center;
}

.page-slot-games__logo-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__logo-item {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-slot-games__logo-item img {
  max-width: 100%;
  max-height: 100%;
  height: auto; /* Ensure image scales within fixed width/height */
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

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

.page-slot-games__logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Content Area */
.page-slot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.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: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-slot-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-slot-games__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-slot-games__card-title a:hover {
  text-decoration: underline;
}

/* How to Access Section */
.page-slot-games__how-to-access-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-slot-games__steps-list {
  list-style-type: decimal;
  padding-left: 30px;
  margin-top: 30px;
  color: #f0f0f0;
}

.page-slot-games__steps-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-slot-games__steps-list li strong {
  color: #017439;
}

/* Games Section */
.page-slot-games__games-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.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: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-slot-games__game-card:hover {
  transform: translateY(-10px);
}

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

.page-slot-games__game-card .page-slot-games__card-title {
  padding: 15px 15px 5px 15px;
  font-size: 1.3em;
}

.page-slot-games__game-card p {
  padding: 0 15px 20px 15px;
  font-size: 0.95em;
  color: #cccccc;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-slot-games__promotion-card {
  background-color: #017439;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-slot-games__promotion-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-slot-games__promotion-card .page-slot-games__card-title {
  padding: 15px 15px 5px 15px;
}

.page-slot-games__promotion-card p {
  padding: 0 15px 20px 15px;
  color: #f0f0f0;
}

.page-slot-games__promotion-card .page-slot-games__btn-primary {
  margin-bottom: 20px;
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-slot-games__tips-list {
  list-style-type: disc;
  padding-left: 30px;
  margin-top: 30px;
  color: #f0f0f0;
}

.page-slot-games__tips-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-slot-games__tips-list li strong {
  color: #017439;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-slot-games__faq-item {
  background-color: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
  background-color: #1a1a1a;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
}

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

.page-slot-games__cta-bottom-section .page-slot-games__cta-buttons {
  justify-content: center;
  margin-top: 40px;
}

/* Global image and button responsive styles (excluding logo-item) */
.page-slot-games img:not(.page-slot-games__logo-item img) {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    gap: 30px;
  }

  .page-slot-games__hero-content {
    max-width: 100%;
  }

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

  .page-slot-games__hero-image-container {
    justify-content: center;
  }

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

  .page-slot-games__logo-carousel {
    gap: 20px;
  }

  .page-slot-games__content-area,
  .page-slot-games__how-to-access-section,
  .page-slot-games__games-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-bottom-section {
    padding: 40px 20px;
  }

  .page-slot-games__games-grid,
  .page-slot-games__promotions-grid,
  .page-slot-games__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding: 40px 15px;
    padding-top: 0; /* Ensures no double padding if shared.css sets body padding */
  }

  .page-slot-games__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

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

  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* LOGO 轮播区域 */
  .page-slot-games__logo-carousel-section {
    padding: 30px 15px;
  }

  .page-slot-games__logo-carousel {
    gap: 15px;
  }

  /* 🚨 LOGO轮播项必须单独设置，保持固定尺寸 */
  .page-slot-games__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    padding: 8px;
  }

  .page-slot-games__logo-item img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
  }

  /* 游戏展示区域 */
  .page-slot-games__games-section {
    padding: 40px 15px;
  }

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

  .page-slot-games__game-image {
    height: 180px;
  }

  /* 通用图片与容器 (须排除 logo-item) */
  .page-slot-games img:not(.page-slot-games__logo-item img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__content-area,
  .page-slot-games__how-to-access-section,
  .page-slot-games__games-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .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: 12px 15px;
    font-size: 1em;
  }

  .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: 0;
    padding-right: 0;
    flex-direction: column;
    gap: 10px;
  }

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

  .page-slot-games__section-description,
  .page-slot-games__text-block,
  .page-slot-games__steps-list li,
  .page-slot-games__tips-list li {
    font-size: 0.95em;
  }

  .page-slot-games__features-grid,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__promotion-card {
    padding: 20px;
  }

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

  .page-slot-games__faq-answer {
    padding: 15px;
  }

  .page-slot-games__cta-bottom-section {
    padding: 40px 15px;
  }
}