/* style/fishing-games.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color-dark: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Body background is dark, so text is light */
  background-color: var(--background-color-dark);
  line-height: 1.6;
}

.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background: var(--background-color-dark);
  color: var(--text-main-color);
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-fishing-games__hero-content {
  position: relative; /* Ensure content is above image filter if any */
  z-index: 10;
  padding: 0 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content slightly over the bottom of the image for visual flow, NOT overlapping text on image */
  background: linear-gradient(to top, var(--background-color-dark) 0%, transparent 100%); /* Gradient to blend with background */
  padding-top: 150px; /* Compensate for negative margin */
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main-color);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-fishing-games__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.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, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--background-color-dark);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-fishing-games__section {
  padding: 80px 20px;
  background-color: var(--background-color-dark);
  color: var(--text-main-color);
  text-align: center;
}

.page-fishing-games__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-fishing-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-color);
  position: relative;
  padding-bottom: 10px;
}

.page-fishing-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--glow-color);
  border-radius: 2px;
}

.page-fishing-games__section-intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary-color);
}

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

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

.page-fishing-games__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--glow-color);
}

.page-fishing-games__card-text {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

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

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

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

.page-fishing-games__game-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--glow-color);
}

.page-fishing-games__game-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__how-to-play {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--divider-color);
}

.page-fishing-games__subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-fishing-games__text-block {
  font-size: 1rem;
  color: var(--text-secondary-color);
  max-width: 900px;
  margin: 0 auto;
}

.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-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-fishing-games__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--glow-color);
}

.page-fishing-games__step-text {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__tip-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-fishing-games__promotions {
  background-color: var(--background-color-dark);
}

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

.page-fishing-games__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--glow-color);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none;
}

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

.page-fishing-games__faq-question:hover {
  background-color: var(--deep-green-color);
  filter: brightness(1.2);
}

.page-fishing-games__faq-qtext {
  flex-grow: 1;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-fishing-games__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--text-secondary-color);
  line-height: 1.6;
  background-color: var(--card-bg);
}

.page-fishing-games__call-to-action {
  padding-bottom: 80px;
}

/* 智能文字颜色选择器 - 必须实现（使用BEM命名规则） */
.page-fishing-games__dark-bg {
  color: var(--text-main-color); /* 深色背景配浅色文字 */
  background: var(--background-color-dark);
}

.page-fishing-games__light-bg {
  color: #333333; /* 浅色背景配深色文字 */
  background: #ffffff;
}

/* 正文内容区域 - 最高优先级（使用BEM命名规则） */
.page-fishing-games__content-area,
.page-fishing-games__text-block {
  color: var(--text-main-color);
  background: var(--background-color-dark);
}

/* 页面内容区域内的段落和列表项 */
.page-fishing-games p,
.page-fishing-games li {
  color: var(--text-secondary-color);
}

/* 移动端强制适配 */
@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fishing-games__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding-top: 80px;
  }

  .page-fishing-games__main-title {
    font-size: 2rem;
  }

  .page-fishing-games__hero-description {
    font-size: 1rem;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    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-fishing-games__section {
    padding: 40px 15px;
  }

  .page-fishing-games__section-title {
    font-size: 1.8rem;
  }

  .page-fishing-games__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-fishing-games__grid,
  .page-fishing-games__game-list,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__tip-card,
  .page-fishing-games__promo-card {
    padding: 20px;
    text-align: center;
    align-items: center;
  }

  .page-fishing-games__card-image,
  .page-fishing-games__game-image {
    height: 180px;
  }

  .page-fishing-games__card-title,
  .page-fishing-games__game-title,
  .page-fishing-games__step-title,
  .page-fishing-games__subtitle {
    font-size: 1.25rem;
  }

  .page-fishing-games__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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

  /* 移动端图片适配 */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__hero-content,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__game-list,
  .page-fishing-games__game-card,
  .page-fishing-games__how-to-play,
  .page-fishing-games__steps-grid,
  .page-fishing-games__step-card,
  .page-fishing-games__tip-card,
  .page-fishing-games__promotions,
  .page-fishing-games__promo-grid,
  .page-fishing-games__promo-card,
  .page-fishing-games__faq,
  .page-fishing-games__faq-list,
  .page-fishing-games__faq-item,
  .page-fishing-games__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-fishing-games__hero-section,
  .page-fishing-games__video-section { /* Video section not present, but for consistency */
    padding-top: 10px !important;
  }
}