/* Base styles for the page-fishing-games */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main, #FFF1E8); /* Default text color from custom palette */
    background-color: var(--color-background-main, #140C0C); /* Default background from custom palette */
    padding-bottom: 50px; /* Ensure space above footer */
}

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

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

.page-fishing-games__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold, #F3C54D);
    line-height: 1.2;
}

.page-fishing-games__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-main, #FFF1E8);
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-deep-red, #7E0D0D);
    overflow: hidden;
}

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

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    opacity: 0.3; /* Slightly transparent to let content stand out */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    padding: 80px 20px;
}

.page-fishing-games__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Using clamp for H1 */
    font-weight: 800;
    color: var(--color-gold, #F3C54D);
    margin-bottom: 20px;
    max-width: 900px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-description {
    font-size: 20px;
    color: var(--color-text-main, #FFF1E8);
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.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: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-fishing-games__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-fishing-games__btn-secondary {
    background: transparent;
    color: var(--color-gold, #F3C54D);
    border: 2px solid var(--color-gold, #F3C54D);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__btn-secondary:hover {
    background-color: var(--color-gold, #F3C54D);
    color: #140C0C;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-fishing-games__introduction-section {
    background-color: var(--color-background-main, #140C0C);
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
    background-color: var(--color-card-bg, #2A1212); /* Dark background for this section */
    color: var(--color-text-main, #FFF1E8);
}

.page-fishing-games__why-choose-section .page-fishing-games__section-title {
    color: var(--color-gold, #F3C54D);
}

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

.page-fishing-games__feature-item {
    background: var(--color-card-bg, #2A1212);
    border: 1px solid var(--color-border, #6A1E1E);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-fishing-games__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold, #F3C54D);
    margin-bottom: 15px;
}

.page-fishing-games__feature-description {
    font-size: 16px;
    color: var(--color-text-main, #FFF1E8);
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
    background-color: var(--color-background-main, #140C0C);
}

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

.page-fishing-games__product-card {
    background: var(--color-card-bg, #2A1212);
    border: 1px solid var(--color-border, #6A1E1E);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove underline for card link */
}

.page-fishing-games__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__product-image {
    width: 100%;
    height: 220px; /* Fixed height for product images */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__product-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-gold, #F3C54D);
    margin: 20px 15px 10px;
}

.page-fishing-games__product-description {
    font-size: 15px;
    color: var(--color-text-main, #FFF1E8);
    padding: 0 15px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-fishing-games__btn-play {
    display: block;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #ffffff;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-top: 1px solid var(--color-border, #6A1E1E);
}

.page-fishing-games__btn-play:hover {
    opacity: 0.9;
}

/* Strategies Section */
.page-fishing-games__strategies-section {
    background-color: var(--color-card-bg, #2A1212); /* Dark background for this section */
    color: var(--color-text-main, #FFF1E8);
}

.page-fishing-games__strategies-section .page-fishing-games__section-title {
    color: var(--color-gold, #F3C54D);
}

.page-fishing-games__article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.page-fishing-games__article-body p {
    font-size: 17px;
    margin-bottom: 1.5em;
    line-height: 1.7;
    color: var(--color-text-main, #FFF1E8);
}

.page-fishing-games__article-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold, #F3C54D);
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Call to Action Section */
.page-fishing-games__cta-section {
    background-color: var(--color-background-main, #140C0C);
    padding: 80px 0;
    text-align: center;
}

.page-fishing-games__section-title--cta {
    color: var(--color-gold, #F3C54D);
    margin-bottom: 25px;
}

.page-fishing-games__cta-content .page-fishing-games__text-block {
    margin-bottom: 40px;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    background-color: var(--color-card-bg, #2A1212); /* Dark background for this section */
    color: var(--color-text-main, #FFF1E8);
}

.page-fishing-games__faq-section .page-fishing-games__section-title {
    color: var(--color-gold, #F3C54D);
}

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--color-border, #6A1E1E);
  overflow: hidden;
  background: var(--color-card-bg, #2A1212);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--color-text-main, #FFF1E8);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: var(--color-deep-red, #7E0D0D); /* Darker hover for dark background */
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-gold, #F3C54D); /* Question text in gold */
}
.page-fishing-games__faq-toggle {
  font-size: 28px; /* Larger for better visibility on dark background */
  font-weight: bold;
  color: var(--color-gold, #F3C54D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Slightly larger toggle area */
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: var(--color-deep-red, #7E0D0D); /* Slightly different background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--color-text-main, #FFF1E8);
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer a {
    color: var(--color-gold, #F3C54D);
    text-decoration: underline;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer a:hover {
    color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__hero-content {
        min-height: 450px;
        padding: 60px 20px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(28px, 4.5vw, 42px);
    }
    .page-fishing-games__hero-description {
        font-size: 18px;
    }
    .page-fishing-games__section-title {
        font-size: 32px;
    }
    .page-fishing-games__article-body h3 {
        font-size: 22px;
    }
    .page-fishing-games__feature-title,
    .page-fishing-games__product-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-fishing-games__hero-section {
        padding-top: 10px; /* Consistent small top padding */
    }
    .page-fishing-games__hero-image {
        object-fit: contain !important; /* Mobile: contain to avoid cropping */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        height: 100% !important; /* Adjust height to fit container with contain */
        width: 100% !important;
    }
    .page-fishing-games__hero-content {
        min-height: 400px;
        padding: 40px 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(28px, 8vw, 38px); /* Adjust clamp for mobile H1 */
        margin-bottom: 15px;
    }
    .page-fishing-games__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* 通用容器和图片 */
    .page-fishing-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__section {
        padding: 40px 0;
    }
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__feature-image,
    .page-fishing-games__product-image {
        min-width: 200px !important;
        min-height: 150px !important; /* Can be slightly smaller for mobile, but still > 200px */
        height: auto !important;
        width: 100% !important;
    }

    /* 产品展示图区域 - 2 列 */
    .page-fishing-games__products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 20px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__product-card {
        padding-bottom: 15px;
    }
    .page-fishing-games__btn-play {
        padding: 10px 0;
        font-size: 15px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-fishing-games__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding: 0 10px;
        line-height: 1.3;
    }
    .page-fishing-games__text-block {
        font-size: 16px;
        padding: 0 10px;
        text-align: left; /* Align text left for better readability on mobile */
    }
    .page-fishing-games__article-body {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__article-body h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-fishing-games__article-body p {
        font-size: 15px;
    }

    /* 按钮与按钮容器 */
    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* FAQ Section */
    details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    .page-fishing-games__faq-qtext {
      font-size: 16px;
      width: calc(100% - 45px); /* Adjust width for toggle */
    }
    .page-fishing-games__faq-toggle {
      font-size: 24px;
      width: 28px;
      height: 28px;
      margin-left: 10px;
    }
    details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
      padding: 0 15px 15px;
    }
    details.page-fishing-games__faq-item .page-fishing-games__faq-answer p {
        font-size: 14px;
    }
}