/* style/slot-games.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --border-color: #E0E0E0;
  --dark-text-on-brand: #ffffff;
  --light-text-on-dark: #ffffff;
}

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

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small padding, relying on body padding-top from shared.css */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-slot-games__hero-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__hero-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 300px; /* Limit button width on larger screens */
  text-align: center;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--light-text-on-dark);
  border: none;
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-slot-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-on-dark);
  transform: translateY(-2px);
}

.page-slot-games__section {
  padding: 60px 0;
}

.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;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

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

.page-slot-games__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-slot-games__card-description {
  font-size: 0.95em;
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-slot-games__list-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  font-size: 1.05em;
  color: var(--text-main-color);
  display: flex;
  align-items: center;
}

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

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

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__text-block,
.page-slot-games__dark-section .page-slot-games__step-title,
.page-slot-games__dark-section .page-slot-games__step-description,
.page-slot-games__dark-section .page-slot-games__feature-title,
.page-slot-games__dark-section .page-slot-games__feature-description {
  color: var(--dark-text-on-brand);
}

.page-slot-games__dark-section .page-slot-games__link-inline {
  color: var(--secondary-color);
}

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

.page-slot-games__step-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-slot-games__step-description {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-slot-games__button-group {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.page-slot-games__link-inline {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-slot-games__link-inline:hover {
  color: var(--secondary-color);
}

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

.page-slot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
}

.page-slot-games__feature-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-slot-games__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-slot-games__faq-list {
  margin-top: 30px;
}

.page-slot-games__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid var(--border-color);
  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-qtext {
  flex-grow: 1;
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-slot-games__faq-answer p:last-child {
  margin-bottom: 0;
}

/* General Image Styling */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default object-fit */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin: 30px auto;
  }

  .page-slot-games__hero-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
  }

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

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

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

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

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

  .page-slot-games__hero-title {
    font-size: clamp(1.5em, 6vw, 2em) !important;
  }

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

  .page-slot-games__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 产品展示图区域 */
  .page-slot-games__grid {
    grid-template-columns: 1fr !important; /* Single column for cards */
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-slot-games__game-type-grid .page-slot-games__card:nth-child(-n+4) {
    /* For the first 4 cards, if a 2x2 layout was needed, would be handled here. Defaulting to 1fr for all */
    /* As per general grid, it defaults to 1fr, no special rule needed for 2x2 */
  }

  .page-slot-games__steps-grid,
  .page-slot-games__features-grid {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* 通用图片与容器 */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__card-image,
  .page-slot-games__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__step-card,
  .page-slot-games__feature-item,
  .page-slot-games__list-item,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

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

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

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

  .page-slot-games__card-description {
    font-size: 0.9em;
  }

  .page-slot-games__list-item {
    font-size: 1em;
    padding: 12px 15px;
  }

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

  .page-slot-games__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }
}