/* Base styles for the slot-games page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-color);
}

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

.page-slot-games__section-title {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 4.5em);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 20px;
  text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.5);
}

.page-slot-games__description {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
  background: var(--deep-red-color);
}

.page-slot-games__hero-image-wrap {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-content {
  z-index: 1;
  position: relative;
  padding: 0 15px;
  max-width: 900px;
  text-align: center;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
  color: #ffffff;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

.page-slot-games__btn-secondary {
  background: var(--deep-red-color);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

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

.page-slot-games__center-align {
  justify-content: center;
  text-align: center;
}

/* Intro Section */
.page-slot-games__intro-section {
  background: var(--light-bg);
  padding: 60px 0;
}

.page-slot-games__text-block {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  color: #333333;
}

.page-slot-games__text-block p {
  margin-bottom: 1em;
}

/* Why Us Section */
.page-slot-games__why-us-section {
  background: var(--bg-color);
  padding: 60px 0;
}

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

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

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

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

.page-slot-games__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-slot-games__feature-card p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main);
}

/* Games Section */
.page-slot-games__games-section {
  background: var(--light-bg);
  padding: 60px 0;
}

.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: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

.page-slot-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.page-slot-games__game-card p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 20px;
}

/* Guide Section */
.page-slot-games__guide-section {
  background: var(--deep-red-color);
  padding: 60px 0;
  color: var(--text-main);
}

.page-slot-games__guide-steps {
  list-style: none;
  counter-reset: guide-step;
  max-width: 800px;
  margin: 40px auto;
  padding: 0;
}

.page-slot-games__guide-steps li {
  position: relative;
  padding: 20px 0 20px 60px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__guide-steps li:last-child {
  border-bottom: none;
}

.page-slot-games__guide-steps li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 15px;
  width: 40px;
  height: 40px;
  background: var(--gold-color);
  color: #7A0E0E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-slot-games__guide-steps h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-slot-games__guide-steps p {
  font-size: 1.1em;
  color: var(--text-main);
}

/* Promotions Section */
.page-slot-games__promotions-section {
  background: var(--light-bg);
  padding: 60px 0;
}

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

.page-slot-games__promo-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.page-slot-games__promo-card p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 20px;
}

/* Tips Section */
.page-slot-games__tips-section {
  background: var(--bg-color);
  padding: 60px 0;
  color: var(--text-main);
}

.page-slot-games__tips-list {
  max-width: 900px;
  margin: 40px auto;
  padding: 0;
  list-style: none;
}

.page-slot-games__tips-list li {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__tips-list li h3 {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-slot-games__tips-list li p {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-main);
}

/* Article Section */
.page-slot-games__article-section {
  background: var(--light-bg);
  padding: 60px 0;
}

.page-slot-games__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
  text-align: justify;
}

.page-slot-games__article-body h3 {
  font-size: 2em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-align: center;
}

.page-slot-games__article-body p {
  margin-bottom: 1.5em;
}

.page-slot-games__article-body ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 1.5em;
}

.page-slot-games__article-body ul li {
  margin-bottom: 0.8em;
  color: #333333;
}

.page-slot-games__article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-slot-games__faq-section {
  background: var(--light-bg);
  padding: 60px 0;
}

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

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold-color);
}

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
}

.page-slot-games__faq-answer p {
  margin: 0;
  padding-top: 10px;
  color: var(--text-main);
}

/* Custom Color Variables */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient-start: #FFD86A;
  --button-gradient-end: #E6B800;
  --card-bg: #D32F2F;
  --bg-color: #B71C1C;
  --text-main: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --light-bg: #f9f9f9; /* Fallback for light sections */
  --dark-bg: #0d0d0d; /* Fallback for dark sections */
}

/* Ensure color contrast for light background sections */
.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__description,
.page-slot-games__light-bg .page-slot-games__text-block p,
.page-slot-games__light-bg .page-slot-games__article-body p,
.page-slot-games__light-bg .page-slot-games__article-body ul li,
.page-slot-games__light-bg .page-slot-games__faq-qtext {
  color: #333333;
}

.page-slot-games__light-bg .page-slot-games__card-title,
.page-slot-games__light-bg .page-slot-games__article-body h3,
.page-slot-games__light-bg .page-slot-games__faq-question {
  color: var(--gold-color);
}

.page-slot-games__light-bg .page-slot-games__feature-card,
.page-slot-games__light-bg .page-slot-games__game-card,
.page-slot-games__light-bg .page-slot-games__promo-card,
.page-slot-games__light-bg .page-slot-games__faq-item {
  background: #ffffff; /* White background for cards on light sections */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-slot-games__light-bg .page-slot-games__faq-answer {
  background: #f0f0f0;
}

/* Responsive Design */

/* General image responsiveness */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All containers with images or buttons */
.page-slot-games__container,
.page-slot-games__hero-section,
.page-slot-games__intro-section,
.page-slot-games__why-us-section,
.page-slot-games__games-section,
.page-slot-games__guide-section,
.page-slot-games__promotions-section,
.page-slot-games__tips-section,
.page-slot-games__article-section,
.page-slot-games__faq-section,
.page-slot-games__feature-grid,
.page-slot-games__games-grid,
.page-slot-games__promo-grid,
.page-slot-games__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 1024px) {
  .page-slot-games__section-title {
    font-size: 2.5em;
  }

  .page-slot-games__hero-content {
    padding: 0 20px;
  }

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

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

  .page-slot-games__article-body h3 {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 10px; /* Only small top padding */
    padding-bottom: 40px;
  }
  .page-slot-games__hero-image-wrap {
    margin-bottom: 20px;
  }
  .page-slot-games__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    border-radius: 0;
    box-shadow: none;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }
  .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__container {
    padding: 15px;
  }

  .page-slot-games__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  /* 产品展示图区域 (Feature, Games, Promo Grids) */
  .page-slot-games__feature-grid,
  .page-slot-games__games-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }

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

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

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

  .page-slot-games__text-block,
  .page-slot-games__article-body {
    font-size: 1em;
    text-align: left;
    padding: 0 10px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-slot-games__article-body h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
  }
  .page-slot-games__article-image {
    margin: 20px auto;
  }

  .page-slot-games__guide-steps {
    margin: 30px auto;
  }

  .page-slot-games__guide-steps li {
    padding: 15px 0 15px 50px;
  }

  .page-slot-games__guide-steps li::before {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    top: 12px;
  }

  .page-slot-games__guide-steps h3 {
    font-size: 1.3em;
  }

  .page-slot-games__guide-steps p {
    font-size: 1em;
  }

  /* FAQ */
  details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    padding: 15px;
  }
  .page-slot-games__faq-qtext {
    font-size: 1em;
  }
  .page-slot-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 15px 15px;
  }
  .page-slot-games__faq-answer p {
    padding-top: 8px;
  }

  /* General image and container */
  .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;
    padding-right: 15px;
  }
}