/* style/slot-games.css */

:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --primary-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

.page-slot-games__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

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

/* General Section Styling */
.page-slot-games__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-slot-games__section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__highlight {
  color: var(--glow-color);
  font-weight: bold;
}

.page-slot-games__introduction-section,
.page-slot-games__why-choose-section,
.page-slot-games__popular-games-section,
.page-slot-games__strategy-section,
.page-slot-games__promotions-section,
.page-slot-games__guide-section,
.page-slot-games__support-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
  padding: 60px 0;
}

/* Introduction Section */
.page-slot-games__intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-slot-games__intro-content {
  flex: 1;
}

.page-slot-games__intro-content p {
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-slot-games__intro-image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

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

/* Why Choose Section */
.page-slot-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-slot-games__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__benefit-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-slot-games__benefit-description {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

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

.page-slot-games__game-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
  color: var(--text-main-color);
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.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.3rem;
  padding: 20px 15px;
  color: var(--gold-color);
}

/* Strategy Section */
.page-slot-games__strategy-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.page-slot-games__strategy-text {
  flex: 2;
}

.page-slot-games__strategy-text h3 {
  font-size: 1.6rem;
  color: var(--gold-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-slot-games__strategy-text p {
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-slot-games__strategy-image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

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

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

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

.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__promo-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-slot-games__promo-description {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

/* Guide Section */
.page-slot-games__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__guide-card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

.page-slot-games__guide-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-slot-games__guide-description {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

/* Support Section */
.page-slot-games__support-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.page-slot-games__support-image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

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

.page-slot-games__support-text {
  flex: 1;
}

.page-slot-games__support-text p {
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-slot-games__support-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-slot-games__support-list li {
  margin-bottom: 10px;
  color: var(--text-main-color);
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color);
}

/* Conclusion Section */
.page-slot-games__conclusion-section p {
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color);
}

/* Buttons */
.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.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: var(--primary-btn-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
}

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

.page-slot-games__btn-secondary {
  background: none;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-slot-games__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-link {
  display: inline-block;
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-link:hover {
  color: var(--gold-color);
}

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__intro-grid,
  .page-slot-games__strategy-content,
  .page-slot-games__support-content {
    flex-direction: column;
    text-align: center;
  }

  .page-slot-games__intro-image-wrapper,
  .page-slot-games__strategy-image-wrapper,
  .page-slot-games__support-image-wrapper {
    margin-top: 30px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-slot-games__hero-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

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

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

  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
  }

  .page-slot-games__hero-image-wrapper {
    margin-bottom: 20px;
    max-height: 400px;
  }

  .page-slot-games__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

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

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

  /* 产品展示图区域 */
  .page-slot-games__popular-games-section .page-slot-games__games-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 for first 4, then 1 column */
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 确保游戏卡片在移动端适配 */
  .page-slot-games__game-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-slot-games__container,
  .page-slot-games__introduction-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__guide-section,
  .page-slot-games__support-section,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-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__btn-link,
  .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__hero-cta-buttons,
  .page-slot-games__cta-center,
  .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-direction: column !important; /* Ensure buttons stack */
    gap: 15px !important;
  }

  /* 其他内容模块 */
  .page-slot-games__intro-grid,
  .page-slot-games__strategy-content,
  .page-slot-games__support-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-slot-games__intro-image-wrapper,
  .page-slot-games__strategy-image-wrapper,
  .page-slot-games__support-image-wrapper {
    margin-top: 20px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-slot-games__benefits-grid,
  .page-slot-games__promotions-grid,
  .page-slot-games__guide-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-slot-games__benefit-card,
  .page-slot-games__promo-card,
  .page-slot-games__guide-card {
    padding: 25px;
  }

  .page-slot-games__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .page-slot-games__faq-answer {
    padding: 0 20px 18px;
  }

  .page-slot-games__section-title {
    padding-top: 30px;
    font-size: 1.8rem;
  }

  .page-slot-games__section-subtitle {
    margin-bottom: 30px;
  }

  .page-slot-games__introduction-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__guide-section,
  .page-slot-games__support-section,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-section {
    padding: 40px 0;
  }
}