/* style/fishing-games.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main-color: #1F2D3D;
  --text-black-color: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  padding-top: 10px; /* Adjusted to avoid double padding with body */
  padding-bottom: 40px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  background-color: var(--primary-color); /* Fallback if image fails */
}

.page-fishing-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-fishing-games__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

/* General Button Styles */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-fishing-games__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--card-bg);
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

/* Section Titles */
.page-fishing-games__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-black-color);
}

.page-fishing-games__dark-section .page-fishing-games__section-title {
  color: #ffffff;
}

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

.page-fishing-games__dark-section .page-fishing-games__text-block {
  color: #f0f0f0;
}

/* Advantage Cards */
.page-fishing-games__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__advantage-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-fishing-games__advantage-card:hover {
  transform: translateY(-10px);
}

.page-fishing-games__advantage-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-fishing-games__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Game Grid */
.page-fishing-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-10px);
}

.page-fishing-games__game-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-fishing-games__game-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-black-color);
}

.page-fishing-games__game-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Play Steps */
.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__step-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: var(--text-main-color);
}

.page-fishing-games__step-card:hover {
  transform: translateY(-10px);
}

.page-fishing-games__step-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-fishing-games__step-description {
  font-size: 1em;
  margin-bottom: 20px;
}

/* Tips Section */
.page-fishing-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__tip-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-fishing-games__tip-card:hover {
  transform: translateY(-10px);
}

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

.page-fishing-games__promotion-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: var(--text-main-color);
}

.page-fishing-games__promotion-item:hover {
  transform: translateY(-10px);
}

.page-fishing-games__promotion-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-fishing-games__promotion-description {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-fishing-games__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px;
  color: #ffffff;
}

.page-fishing-games__cta-text {
  font-size: 1.4em;
  margin-bottom: 20px;
  font-weight: bold;
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
}

.page-fishing-games__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-fishing-games__faq-answer {
  padding: 20px 30px;
  font-size: 1em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-fishing-games__hero-section {
    min-height: 500px;
  }

  .page-fishing-games__main-title {
    font-size: 2.5em;
  }

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

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

  .page-fishing-games__advantages-grid,
  .page-fishing-games__game-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__tips-grid,
  .page-fishing-games__promotion-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-fishing-games__advantage-card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__tip-card,
  .page-fishing-games__promotion-item {
    padding: 25px;
  }

  .page-fishing-games__faq-question {
    font-size: 1.2em;
    padding: 18px 25px;
  }

  .page-fishing-games__faq-answer {
    padding: 18px 25px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-fishing-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
    min-height: 400px;
  }

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

  .page-fishing-games__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

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

  .page-fishing-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  /* 其他内容模块 - 通用容器 */
  .page-fishing-games__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-fishing-games__text-block {
    font-size: 1em;
  }

  /* 通用图片与容器 */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 / 优势 / 步骤 / 技巧 / 促销 */
  .page-fishing-games__advantages-grid,
  .page-fishing-games__game-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__tips-grid,
  .page-fishing-games__promotion-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-fishing-games__advantage-card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__tip-card,
  .page-fishing-games__promotion-item {
    padding: 20px;
  }

  .page-fishing-games__card-title,
  .page-fishing-games__game-title,
  .page-fishing-games__step-title,
  .page-fishing-games__promotion-title {
    font-size: 1.4em;
  }

  .page-fishing-games__cta-bottom {
    padding: 20px;
  }

  .page-fishing-games__cta-text {
    font-size: 1.2em;
  }

  /* 按钮与按钮容器 */
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .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;
    padding: 12px 15px;
  }

  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* FAQ Section */
  .page-fishing-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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