/* style/slot-games.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --section-bg: #B71C1C;
  --text-main: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red: #7A0E0E;
  --dark-text: #333333;
  --light-text: #ffffff;
  --light-bg: #ffffff;
  --dark-bg: #0d0d0d; /* Assuming a dark body background from shared.css */
}

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

.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-slot-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background-color: var(--deep-red);
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(0deg, var(--deep-red) 0%, rgba(0,0,0,0.5) 100%);
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: var(--deep-red);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

.page-slot-games__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--gold-color);
  color: var(--deep-red);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-tertiary {
  background: var(--gold-color);
  color: var(--deep-red);
  border: 1px solid var(--gold-color);
  font-size: 0.9em;
  padding: 10px 20px;
}

.page-slot-games__btn-tertiary:hover {
  background: var(--text-main);
  transform: translateY(-2px);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__text-block {
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__intro-section,
.page-slot-games__guide-section,
.page-slot-games__security-section,
.page-slot-games__conclusion-section {
  background-color: var(--section-bg);
  padding: 60px 0;
}

.page-slot-games__promotions-section {
  background-color: var(--deep-red);
  padding: 60px 0;
}

.page-slot-games__faq-section {
  background-color: var(--dark-bg);
  padding: 60px 0;
}

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

.page-slot-games__game-card,
.page-slot-games__promotion-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__game-image,
.page-slot-games__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-slot-games__game-title,
.page-slot-games__promotion-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__game-description,
.page-slot-games__promotion-description {
  font-size: 1em;
  color: var(--text-main);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-slot-games__guide-list li {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.page-slot-games__guide-item-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

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

.page-slot-games__guide-list ul {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--text-main);
}

.page-slot-games__guide-list strong {
  color: var(--gold-color);
}

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

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

.page-slot-games__feature-item {
  text-align: center;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-icon {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__feature-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-slot-games__feature-item p {
  color: var(--text-main);
  font-size: 0.95em;
}

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

.page-slot-games__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
  background-color: var(--deep-red);
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For <details> summary */
}

.page-slot-games__faq-question::-webkit-details-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(--gold-color);
}

.page-slot-games__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-main);
  background-color: var(--card-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop specific adjustments */
@media (min-width: 769px) {
  .page-slot-games__hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px;
    background: linear-gradient(0deg, var(--deep-red) 0%, rgba(0,0,0,0.5) 100%);
  }
}

/* Tablet and Mobile styles */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
}

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

  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Enforce small top padding */
  }
  .page-slot-games__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__hero-content {
    padding: 30px 15px;
    position: static; /* Remove absolute positioning on mobile */
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 产品展示图区域 */
  .page-slot-games__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-slot-games__game-card,
  .page-slot-games__promotion-card {
    margin: 0 auto;
    width: 100%;
    max-width: 400px; /* Constrain card width for better readability */
  }

  /* 通用图片与容器 */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__container,
  .page-slot-games__intro-section,
  .page-slot-games__games-section,
  .page-slot-games__guide-section,
  .page-slot-games__promotions-section,
  .page-slot-games__security-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-tertiary,
  .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;
    text-align: center; /* Center text within button */
  }
  .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-wrap: wrap !important;
    gap: 15px; /* Adjust gap for column layout */
    flex-direction: column; /* Ensure buttons stack */
  }
  .page-slot-games__cta-buttons--center {
    padding-left: 0;
    padding-right: 0;
  }

  /* 其他内容模块 */
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-slot-games__text-block {
    font-size: 1em;
  }
  .page-slot-games__games-grid {
    grid-template-columns: 1fr;
  }
  .page-slot-games__security-features {
    grid-template-columns: 1fr;
  }
  .page-slot-games__guide-list li {
    padding: 20px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-slot-games__faq-answer {
    padding: 15px 20px;
  }
}