.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

.page-fishing-games__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for contrast */
}

.page-fishing-games__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit from parent section */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-step,
.page-fishing-games__btn-promo,
.page-fishing-games__btn-faq {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-fishing-games__btn-primary:hover {
  background-color: #d46d06;
  border-color: #d46d06;
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text for dark hero, #26A9E0 for light background */
  border: 2px solid #ffffff;
  margin-left: 15px;
}

.page-fishing-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Override secondary button color for light background sections */
.page-fishing-games__light-bg .page-fishing-games__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-fishing-games__light-bg .page-fishing-games__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #26A9E0;
}

.page-fishing-games__btn-step,
.page-fishing-games__btn-promo,
.page-fishing-games__btn-faq {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-top: 15px;
}

.page-fishing-games__btn-step:hover,
.page-fishing-games__btn-promo:hover,
.page-fishing-games__btn-faq:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  min-height: 550px; /* Adjust min-height as needed */
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-content {
  flex: 1;
  padding: 60px;
  text-align: left;
  z-index: 1;
}

.page-fishing-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-fishing-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-fishing-games__hero-buttons {
  display: flex;
  gap: 15px;
}

.page-fishing-games__hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 0;
}

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

/* Introduction Section */
.page-fishing-games__introduction-section {
  padding: 60px 0;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 60px 0;
}

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

.page-fishing-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__feature-description {
  font-size: 1em;
  text-align: justify;
}

/* Games Showcase Section */
.page-fishing-games__games-showcase {
  padding: 60px 0;
}

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

.page-fishing-games__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for game images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-fishing-games__game-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-fishing-games__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-fishing-games__game-title a:hover {
  text-decoration: underline;
}

.page-fishing-games__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  text-align: justify;
}

.page-fishing-games__cta-center {
  text-align: center;
  margin-top: 30px;
}

/* How-To-Play Section */
.page-fishing-games__how-to-play-section {
  padding: 60px 0;
}

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

.page-fishing-games__step-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__step-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-fishing-games__btn-step {
  width: auto; /* Allow button to size based on content */
  padding-left: 20px;
  padding-right: 20px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 60px 0;
}

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

.page-fishing-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__promo-description {
  font-size: 1em;
  text-align: justify;
  margin-bottom: 20px;
}

.page-fishing-games__btn-promo {
  width: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-fishing-games__disclaimer {
  font-size: 0.9em;
  color: #f0f0f0;
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
}

.page-fishing-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-fishing-games__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: #e0f4ff;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #f9f9f9;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

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

.page-fishing-games__btn-faq {
  margin-top: 10px;
  width: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* CTA Section */
.page-fishing-games__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-fishing-games__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 25px;
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Copyright */
.page-fishing-games__copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #777777;
  background-color: #f0f0f0;
}

/* Image responsiveness for all images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    padding: 40px;
  }

  .page-fishing-games__hero-title {
    font-size: 3em;
  }

  .page-fishing-games__hero-description {
    font-size: 1.2em;
  }

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

  .page-fishing-games__features-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-fishing-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 0; /* shared.css is assumed to handle body padding */
    min-height: auto;
  }

  .page-fishing-games__hero-content {
    padding: 30px 15px;
    order: 2; /* Move content below image on mobile */
  }

  .page-fishing-games__hero-title {
    font-size: 2.2em !important;
    margin-bottom: 15px;
  }

  .page-fishing-games__hero-description {
    font-size: 1em !important;
    margin-bottom: 25px;
  }

  .page-fishing-games__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-fishing-games__hero-image-container {
    order: 1;
    padding: 0;
  }

  /* 产品展示图区域 */
  .page-fishing-games__games-grid {
    grid-template-columns: 1fr 1fr; /* 2x2 layout for first 4, then 1x1 */
    gap: 15px;
    overflow-x: hidden !important;
  }
  
  .page-fishing-games__games-grid .page-fishing-games__game-card:nth-child(n+5) {
    grid-column: span 2; /* Make items 5 and 6 span full width */
  }

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

  .page-fishing-games__container,
  .page-fishing-games__features-section,
  .page-fishing-games__games-showcase,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }

  .page-fishing-games__text-block {
    font-size: 0.95em !important;
  }

  /* 按钮与按钮容器 */
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-step,
  .page-fishing-games__btn-promo,
  .page-fishing-games__btn-faq,
  .page-fishing-games a[class*="button"],
  .page-fishing-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;
    margin-left: 0 !important; /* Remove margin-left for stacked buttons */
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Other content modules */
  .page-fishing-games__features-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__feature-card,
  .page-fishing-games__step-card,
  .page-fishing-games__promo-card {
    padding: 20px;
  }

  .page-fishing-games__feature-image,
  .page-fishing-games__promo-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-fishing-games__faq-question {
    font-size: 1.1em !important;
    padding: 12px 15px;
  }

  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }

  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 12px 15px;
  }

  .page-fishing-games__copyright {
    font-size: 0.8em;
    padding: 15px;
  }
}