/* style/slot-games.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the page */
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #DC143C; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Primary color for underline */
  border-radius: 2px;
}

.page-slot-games__paragraph {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-slot-games__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-slot-games__main-title {
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Primary color for main title */
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-slot-games__btn-primary {
  background: #FFD700; /* Primary color */
  color: #333333; /* Dark text for contrast */
}

.page-slot-games__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
  background: #DC143C; /* Auxiliary color */
  color: #ffffff; /* White text for contrast */
}

.page-slot-games__btn-secondary:hover {
  background: #b31032; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* Features Section */
.page-slot-games__features-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.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-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure image content is visible */
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Primary color for feature titles */
  margin-bottom: 15px;
}

.page-slot-games__feature-description {
  font-size: 16px;
  color: #666666;
  text-align: center; /* Override global paragraph alignment */
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-slot-games__game-category-card {
  display: block;
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__category-title {
  font-size: 22px;
  font-weight: bold;
  color: #DC143C; /* Auxiliary color for category titles */
  padding: 20px 20px 10px;
  text-align: center;
}

.page-slot-games__category-description {
  font-size: 16px;
  color: #666666;
  padding: 0 20px 20px;
  text-align: center;
}

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

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-slot-games__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700; /* Primary color */
  color: #333333; /* Dark text for contrast */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #DC143C; /* Auxiliary color */
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-slot-games__step-description {
  font-size: 16px;
  color: #666666;
  text-align: center; /* Override global paragraph alignment */
}

.page-slot-games__step-description a {
  color: #DC143C; /* Link color */
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__step-description a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.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-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700; /* Primary color for promo titles */
  padding: 20px 20px 10px;
  text-align: center;
}

.page-slot-games__promo-title a {
  color: #FFD700; /* Link color for promo titles */
  text-decoration: none;
}

.page-slot-games__promo-title a:hover {
  text-decoration: underline;
}

.page-slot-games__promo-description {
  font-size: 16px;
  color: #666666;
  padding: 0 20px 15px;
  text-align: center;
}

.page-slot-games__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #DC143C; /* Auxiliary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.page-slot-games__promo-button:hover {
  background-color: #b31032;
}

/* Strategy Section */
.page-slot-games__strategy-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  counter-reset: strategy-counter;
}

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

.page-slot-games__strategy-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding-left: 80px; /* Space for counter */
}

.page-slot-games__strategy-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-slot-games__strategy-item::before {
  counter-increment: strategy-counter;
  content: counter(strategy-counter);
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFD700;
  color: #333333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-slot-games__strategy-item-title {
  font-size: 20px;
  font-weight: bold;
  color: #DC143C; /* Auxiliary color for strategy titles */
  margin-bottom: 10px;
}

.page-slot-games__strategy-item-title a {
  color: #DC143C; /* Link color */
  text-decoration: none;
}

.page-slot-games__strategy-item-title a:hover {
  text-decoration: underline;
}

.page-slot-games__strategy-item-description {
  font-size: 16px;
  color: #666666;
  text-align: left; /* Override global paragraph alignment */
}

/* Security Section */
.page-slot-games__security-section {
  padding: 80px 0;
  background-color: #DC143C; /* Auxiliary color as dark background */
  color: #ffffff; /* White text for contrast */
}

.page-slot-games__security-section .page-slot-games__section-title {
  color: #FFD700; /* Primary color for title on dark background */
}

.page-slot-games__security-section .page-slot-games__section-title::after {
  background-color: #FFD700;
}

.page-slot-games__security-section .page-slot-games__paragraph {
  color: #f0f0f0;
}

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

.page-slot-games__security-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__security-item-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Primary color for titles */
  margin-bottom: 15px;
}

.page-slot-games__security-item-description {
  font-size: 16px;
  color: #f0f0f0;
  text-align: center; /* Override global paragraph alignment */
}

.page-slot-games__security-section .page-slot-games__cta-button {
  background-color: #FFD700; /* Primary color for buttons on dark background */
  color: #333333; /* Dark text for contrast */
}

.page-slot-games__security-section .page-slot-games__cta-button:hover {
  background-color: #e6c200;
}

.page-slot-games__security-section .page-slot-games__btn-secondary {
  background-color: #ffffff;
  color: #DC143C;
}

.page-slot-games__security-section .page-slot-games__btn-secondary:hover {
  background-color: #f0f0f0;
}

/* Final CTA Section */
.page-slot-games__final-cta-section {
  padding: 80px 0;
  background-color: #ffffff;
  text-align: center;
}

.page-slot-games__final-cta-container {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 48px;
  }
  .page-slot-games__hero-description {
    font-size: 20px;
  }
  .page-slot-games__section-title {
    font-size: 32px;
  }
  .page-slot-games__paragraph {
    font-size: 17px;
  }
}

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

  .page-slot-games__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-slot-games__main-title {
    font-size: 38px;
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-slot-games__paragraph {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-slot-games__intro-section,
  .page-slot-games__features-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__strategy-section,
  .page-slot-games__security-section,
  .page-slot-games__final-cta-section {
    padding: 50px 0;
  }

  .page-slot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Image responsive */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Card and grid items */
  .page-slot-games__feature-item,
  .page-slot-games__game-category-card,
  .page-slot-games__step-item,
  .page-slot-games__promo-card,
  .page-slot-games__security-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-slot-games__feature-image,
  .page-slot-games__category-image,
  .page-slot-games__promo-image {
    height: auto; /* Allow height to adjust */
  }

  .page-slot-games__feature-title,
  .page-slot-games__category-title,
  .page-slot-games__step-title,
  .page-slot-games__promo-title,
  .page-slot-games__security-item-title {
    font-size: 20px;
  }

  .page-slot-games__strategy-item {
    padding-left: 25px; /* Adjust padding for smaller screens */
  }

  .page-slot-games__strategy-item::before {
    position: static;
    transform: none;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    display: inline-flex;
  }
  .page-slot-games__strategy-item-title {
    display: inline;
  }
  .page-slot-games__strategy-item-description {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 32px;
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__section-title {
    font-size: 24px;
  }
  .page-slot-games__cta-button {
    padding: 10px 20px;
    font-size: 15px;
  }
}