/* style/fishing-games.css */
/* Variables for colors and spacing from shared.css */
/* Ensure text colors contrast with body background (which is var(--secondary-color) - white) */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background */
}

.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__light-bg {
    background-color: var(--secondary-color); /* White */
    color: #333333;
}

.page-fishing-games__dark-section {
    background-color: var(--primary-color); /* #017439 */
    color: #ffffff;
}

.page-fishing-games__section-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherits from parent section */
}

.page-fishing-games__text-block {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    /* 🚨 顶部间距以公用片段约定为准，使用 var(--header-offset)，避免被固定页头盖住 */
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, #017439, #00C853); /* Gradient for visual appeal */
    overflow: hidden; /* Ensure no image overflow */
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    z-index: 1;
}

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

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff;
    padding: 20px 0;
}

.page-fishing-games__main-title {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive flex */
    max-width: 600px; /* Limit overall width for aesthetics */
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px; /* Ensure buttons have a minimum width */
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-fishing-games__btn-register {
    background: #C30808; /* Red for Register */
    color: #FFFF00; /* Yellow font for Register */
    border: 2px solid #FFFF00;
}

.page-fishing-games__btn-register:hover {
    background: #FF3333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-login {
    background: #C30808; /* Red for Login */
    color: #FFFF00; /* Yellow font for Login */
    border: 2px solid #FFFF00;
}

.page-fishing-games__btn-login:hover {
    background: #FF3333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-fishing-games__btn-primary {
    background: var(--primary-color); /* #017439 */
    color: #ffffff;
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-sizing: border-box;
}

.page-fishing-games__btn-primary:hover {
    background: #00A040;
    border-color: #00A040;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-fishing-games__btn-secondary {
    background: #ffffff;
    color: var(--primary-color); /* #017439 */
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-sizing: border-box;
}

.page-fishing-games__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

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

.page-fishing-games__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-fishing-games__feature-item:hover {
    transform: translateY(-5px);
}

.page-fishing-games__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    object-fit: cover;
}

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

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

.page-fishing-games__game-card,
.page-fishing-games__promo-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff; /* Text color for dark section */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-fishing-games__game-card:hover,
.page-fishing-games__promo-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-fishing-games__game-card img,
.page-fishing-games__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    object-fit: cover;
}

.page-fishing-games__card-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for card titles in dark section */
}

.page-fishing-games__game-card p,
.page-fishing-games__promo-card p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Tips List */
.page-fishing-games__tips-list {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 40px auto;
    list-style: none;
    padding: 0;
}

.page-fishing-games__tips-list li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    font-size: 17px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #333333;
}

.page-fishing-games__tips-list li strong {
    color: var(--primary-color);
}

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

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

.page-fishing-games__info-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #333333;
}

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

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

/* 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;
  color: #333333;
}

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

.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: #333333; /* Ensure contrast for question text */
}

/* 切换图标 */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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); /* Rotate for 'x' effect */
}


/* Final Call to Action */
.page-fishing-games__final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #017439, #00C853);
}

.page-fishing-games__final-cta .page-fishing-games__section-title {
    color: #FFFF00;
}

.page-fishing-games__final-cta .page-fishing-games__text-block {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__section-title {
        font-size: 32px;
    }
    .page-fishing-games__main-title {
        font-size: 40px;
    }
    .page-fishing-games__hero-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__section {
        padding: 40px 0;
    }
    .page-fishing-games__container {
        padding: 0 15px;
    }
    .page-fishing-games__section-title {
        font-size: 28px;
    }
    .page-fishing-games__text-block {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-fishing-games__hero-section {
        padding: 40px 15px;
        /* ⚠️ 移动端必须重新设置padding-top，覆盖桌面端样式 */
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-fishing-games__main-title {
        font-size: 32px;
    }
    .page-fishing-games__hero-description {
        font-size: 16px;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }
    .page-fishing-games__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
        min-width: unset; /* Remove min-width for mobile */
    }

    /* Image responsive rules */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-container,
    .page-fishing-games__game-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__feature-item,
    .page-fishing-games__info-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    .page-fishing-games__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-fishing-games__faq-question h3 {
      font-size: 15px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    
    .page-fishing-games__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    
    .page-fishing-games__faq-answer {
      padding: 0 15px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
      padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__main-title {
        font-size: 28px;
    }
    .page-fishing-games__cta-button {
        font-size: 15px;
        padding: 10px 15px;
    }
    .page-fishing-games__section-title {
        font-size: 24px;
    }
}

/* Global image styles - ensure min size and no filters */
.page-fishing-games img {
    filter: none !important; /* Absolutely no filters */
}

/* Content area image minimum size check */
/* This rule applies to any img within .page-fishing-games, ensuring it's not too small */
.page-fishing-games img:not(.shared-logo, .shared-icon) { /* Exclude shared components */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space nicely */
}

/* Specific override for card images, if needed, but min-width/height is handled above */
.page-fishing-games__game-card img,
.page-fishing-games__promo-card img,
.page-fishing-games__feature-item img {
    width: 100%; /* Ensure they take full card width */
    height: 250px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
}