/* style/slot-games.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #1a1a1a;
  --button-login-color: #EA7C07;
}

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

.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 40px;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly darken image for text readability */
}

.page-slot-games__hero-content {
  position: relative; /* Changed from absolute to relative to be below image */
  padding: 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
  background: rgba(var(--primary-color), 0.9); /* Use primary color with transparency */
  border-radius: 10px;
  color: var(--text-color-light);
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-slot-games__btn-primary {
  display: inline-block;
  background: var(--button-login-color);
  color: var(--text-color-light);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary:hover {
  background: darken(var(--button-login-color), 10%);
}

.page-slot-games__btn-secondary {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-slot-games__btn--center {
  margin: 20px auto 0 auto;
  display: block;
  width: fit-content;
}

.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-slot-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark);
}

.page-slot-games__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-slot-games__card {
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: var(--text-color-dark);
}

.page-slot-games__card--dark {
  background: rgba(var(--primary-color), 0.1);
  color: var(--text-color-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__card--dark .page-slot-games__card-title {
  color: var(--text-color-light);
}

.page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-slot-games__card-text {
  font-size: 1em;
  line-height: 1.5;
}

.page-slot-games__dark-section {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: var(--text-color-light);
}

.page-slot-games__dark-section .page-slot-games__paragraph {
  color: var(--text-color-light);
}

.page-slot-games__light-bg {
  background: var(--background-light);
  color: var(--text-color-dark);
}

.page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-slot-games__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is readable on smaller desktops */
}

.page-slot-games__table th,
.page-slot-games__table td {
  padding: 15px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.page-slot-games__table th {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  font-weight: bold;
}

.page-slot-games__table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.page-slot-games__table tr:hover {
  background-color: #e0e0e0;
}

.page-slot-games__table-wrapper .page-slot-games__table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05); /* For dark sections */
}

.page-slot-games__table-wrapper .page-slot-games__table tr:hover {
  background-color: rgba(255, 255, 255, 0.15); /* For dark sections */
}

.page-slot-games__table-wrapper .page-slot-games__table th {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-slot-games__step-card {
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-slot-games__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-slot-games__step-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__list-item {
  background: var(--secondary-color);
  border-left: 5px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: var(--text-color-dark);
}

.page-slot-games__list-item strong {
  color: var(--primary-color);
}

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

.page-slot-games__faq-item {
  background: var(--secondary-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-color-dark);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  list-style: none; /* Remove default marker for details summary */
}

.page-slot-games__faq-item[open] > .page-slot-games__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-color-dark);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

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

  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* 强制小顶距 */
    padding-bottom: 30px !important;
  }

  .page-slot-games__hero-content {
    padding: 15px !important;
    margin-top: 15px !important;
  }

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

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

  /* 产品展示图区域 */
  .page-slot-games__grid--2-cols {
    grid-template-columns: 1fr !important; /* 单列布局 */
    gap: 20px !important;
  }

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

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

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-slot-games__table-wrapper {
    margin-left: -15px !important; /* Adjust for container padding */
    margin-right: -15px !important;
    width: calc(100% + 30px) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .page-slot-games__table {
    min-width: 500px !important; /* Ensure table content is still readable */
  }

  /* 按钮与按钮容器 */
  .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-bottom: 10px !important; /* Add space between stacked buttons */
  }

  .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 !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  .page-slot-games__btn--center {
    width: 100% !important;
  }

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

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

  .page-slot-games__card {
    padding: 20px !important;
  }

  .page-slot-games__card-title {
    font-size: 1.3em !important;
  }

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

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

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