/* style/fishing-games.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #121212;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --login-color: #EA7C07;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-color);
}

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__keyword-highlight {
    color: var(--primary-color);
    font-weight: bold;
}

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

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

.page-fishing-games__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: #f0f0f0;
    color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-fishing-games__btn-primary--large,
.page-fishing-games__btn-secondary--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__cta-buttons--centered {
    justify-content: center;
}

/* Image Styles */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: var(--header-offset, 120px) 0 0; /* Assume shared handles body padding, so hero padding-top is 0 or small for desktop */
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
}

.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;
    filter: brightness(0.5); /* Darken image for text readability */
    border-radius: 0; /* Hero image typically full width */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    color: var(--light-text-color);
    max-width: 900px;
    padding: 20px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Introduction Section */
.page-fishing-games__introduction-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-fishing-games__introduction-section .page-fishing-games__text-block {
    color: var(--dark-text-color);
}

/* Game Types Section */
.page-fishing-games__game-types-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

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

.page-fishing-games__game-card {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.page-fishing-games__game-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-fishing-games__game-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__game-card-title a:hover {
    text-decoration: underline;
}

.page-fishing-games__game-card-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Guide Section */
.page-fishing-games__guide-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__guide-item {
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-fishing-games__guide-item-description {
    font-size: 1.05em;
    color: var(--dark-text-color);
}

.page-fishing-games__guide-item-description a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__guide-item-description a:hover {
    text-decoration: underline;
}

/* Strategy Section */
.page-fishing-games__strategy-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-fishing-games__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__strategy-item {
    background-color: var(--card-bg-dark-mode);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__strategy-item-description {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.8);
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

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

.page-fishing-games__promo-card {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--light-text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-fishing-games__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 5px;
}

.page-fishing-games__promo-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-fishing-games__promo-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__promo-card-title a:hover {
    text-decoration: underline;
}

.page-fishing-games__promo-card-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Why u888 Section */
.page-fishing-games__why-u888-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-fishing-games__why-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-fishing-games__why-item {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-fishing-games__why-item-description {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.8);
}

.page-fishing-games__why-item-description a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__why-item-description a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-fishing-games__faq-list {
    margin-top: 40px;
}

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.2em;
    color: var(--dark-text-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: #f0f0f0;
}

.page-fishing-games__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: var(--dark-text-color);
}

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to a cross */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark-text-color);
    background-color: #f9f9f9;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-fishing-games__faq-answer p {
    margin: 0;
    padding-bottom: 5px;
    color: var(--dark-text-color);
}

.page-fishing-games__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-fishing-games__cta-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    text-align: center;
}

.page-fishing-games__cta-content {
    max-width: 800px;
}

.page-fishing-games__cta-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-fishing-games__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-fishing-games__cta-description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-fishing-games__cta-description a:hover {
    text-decoration: underline;
}

/* Responsive Styles */

/* Desktop specific adjustments */
.page-fishing-games__hero-section {
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

/* Media query for tablets and smaller screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }

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

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

    .page-fishing-games__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-fishing-games__promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-fishing-games__why-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .page-fishing-games__cta-title {
        font-size: 2.2em;
    }

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

/* Media query for mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-fishing-games__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* HERO 主图区域 */
    .page-fishing-games__hero-section {
        flex-direction: column;
        min-height: auto;
        padding: 60px 0 30px; /* Adjust padding for mobile hero */
        padding-top: var(--header-offset, 120px); /* If shared doesn't provide body padding, add here */
    }

    .page-fishing-games__hero-image {
        filter: brightness(0.6); /* Slightly less dark for mobile */
    }

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

    .page-fishing-games__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    .page-fishing-games__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

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

    /* 产品展示图区域 */
    .page-fishing-games__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__game-card {
        padding: 15px;
    }

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

    .page-fishing-games__game-card-title {
        font-size: 1.3em;
    }

    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__promo-card-image {
        height: 180px;
    }

    .page-fishing-games__promo-card-title {
        font-size: 1.3em;
    }

    .page-fishing-games__why-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__why-item {
        padding: 20px;
    }

    .page-fishing-games__why-item-title {
        font-size: 1.4em;
    }

    /* 通用图片与容器 */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__introduction-section,
    .page-fishing-games__game-types-section,
    .page-fishing-games__guide-section,
    .page-fishing-games__strategy-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__why-u888-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-fishing-games__cta-button,
    .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-left: 15px;
        padding-right: 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; /* Handled by container padding */
        padding-right: 0px; /* Handled by container padding */
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

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

    .page-fishing-games__faq-title {
        font-size: 1.1em;
    }

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

    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 10px 20px;
    }

    .page-fishing-games__cta-title {
        font-size: 1.8em;
    }

    .page-fishing-games__cta-description {
        font-size: 1em;
    }

    .page-fishing-games__guide-item-title,
    .page-fishing-games__strategy-item-title {
        font-size: 1.3em;
    }
}

/* Color Contrast Fixes */
.page-fishing-games__dark-bg {
  color: var(--light-text-color);
}

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

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

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

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

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

.page-fishing-games__light-bg .page-fishing-games__faq-answer p {
    color: var(--dark-text-color);
}

.page-fishing-games__light-bg .page-fishing-games__guide-item-description {
    color: var(--dark-text-color);
}

.page-fishing-games__light-bg .page-fishing-games__guide-item {
    background-color: #f9f9f9; /* Ensure light background for text */
}

.page-fishing-games__light-bg .page-fishing-games__faq-item {
    background-color: #f9f9f9;
}

.page-fishing-games__light-bg .page-fishing-games__faq-answer {
    background-color: #f9f9f9;
}

/* Override specific element colors in dark-bg sections */
.page-fishing-games__dark-bg .page-fishing-games__promo-card-title a,
.page-fishing-games__dark-bg .page-fishing-games__game-card-title a,
.page-fishing-games__dark-bg .page-fishing-games__why-item-description a {
    color: var(--primary-color);
}