/* style/fishing-games.css */
:root {
  --primary-color: #017439;
  --secondary-color: #C30808; /* For register/login-like buttons */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-light: #ffffff;
  --background-dark: #017439; /* Using primary color as dark background for sections */
  --border-color: #e0e0e0;
  --accent-color: #FFFF00; /* For register/login font */
}

.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light background */
  background: var(--background-light); /* Default page background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-fishing-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-fishing-games__dark-bg {
  background: var(--background-dark);
  color: var(--text-color-light);
}

.page-fishing-games__light-bg {
  background: var(--background-light);
  color: var(--text-color-dark);
}

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-fishing-games__section-title--white {
  color: var(--text-color-light);
}

.page-fishing-games__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__section-description--white {
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Intro Section */
.page-fishing-games__hero-intro-section {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-fishing-games__hero-intro-section .page-fishing-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-fishing-games__main-title {
  font-size: 48px;
  color: var(--text-color-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 900px;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
}

.page-fishing-games__hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  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: var(--secondary-color); /* Register/Login color */
  color: var(--accent-color); /* Register/Login font color */
  border: 2px solid var(--secondary-color);
}

.page-fishing-games__btn-primary:hover {
  background: #a80707; /* Slightly darker red */
  border-color: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--text-color-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__cta-center .page-fishing-games__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__cta-center .page-fishing-games__btn-primary:hover {
  background: #015f30;
  border-color: #015f30;
  color: var(--text-color-light);
}

.page-fishing-games__cta-center--white .page-fishing-games__btn-secondary {
  background: var(--text-color-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__cta-center--white .page-fishing-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
}


/* Features Grid */
.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__feature-item {
  padding: 30px;
  border-radius: 12px;
  background: var(--background-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

.page-fishing-games__feature-item p {
  font-size: 16px;
  color: var(--text-color-dark);
}

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

.page-fishing-games__game-hall-item {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-fishing-games__game-hall-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-fishing-games__game-hall-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color-light);
  margin-bottom: 10px;
}

.page-fishing-games__game-hall-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Guide Steps */
.page-fishing-games__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__guide-item {
  padding: 25px;
  border-radius: 12px;
  background: var(--background-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.page-fishing-games__guide-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

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

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

.page-fishing-games__promotion-item {
  text-align: left;
  padding: 25px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-fishing-games__promotion-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-fishing-games__promotion-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color-light);
  margin-bottom: 10px;
}

.page-fishing-games__promotion-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.page-fishing-games__btn-link {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-fishing-games__btn-link:hover {
  color: var(--text-color-light);
  text-decoration: underline;
}

/* Tips List */
.page-fishing-games__tips-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__tip-item {
  padding: 20px;
  border-radius: 12px;
  background: var(--background-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

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

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  text-align: left; /* Align text within FAQ answer */
  color: var(--text-color-dark);
}

/* 问题样式 */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  text-align: left; /* Align question text */
}

.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
}

/* 切换图标 */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* Final CTA */
.page-fishing-games__cta-final {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 40px;
  }
  .page-fishing-games__section-title {
    font-size: 30px;
  }
  .page-fishing-games__description,
  .page-fishing-games__section-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-fishing-games__section {
    padding: 40px 0;
  }

  .page-fishing-games__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
}