/* style/fishing-games.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --background-light: #F5F7FA;
    --card-background: #FFFFFF;
    --border-color: #E0E0E0;
    --gradient-button: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

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

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

.page-fishing-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.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.7); /* Darken image slightly for text contrast */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-fishing-games__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-fishing-games__introduction-section,
.page-fishing-games__popular-games-section,
.page-fishing-games__tips-section,
.page-fishing-games__faq-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.page-fishing-games__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.page-fishing-games__dark-section .page-fishing-games__section-title {
    color: #ffffff;
}

.page-fishing-games__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-fishing-games__content-grid:nth-child(even) {
    flex-direction: row-reverse;
}

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

.page-fishing-games__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__image-item {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-fishing-games__feature-card {
    background-color: var(--card-background);
    color: var(--text-main-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

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

.page-fishing-games__feature-image-card {
    grid-column: span 2; /* Make image span 2 columns on larger screens */
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    box-shadow: none;
    border: none;
}

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

.page-fishing-games__game-card {
    background-color: var(--card-background);
    color: var(--text-main-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-fishing-games__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-fishing-games__card-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-fishing-games__card-button {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.page-fishing-games__step-by-step-guide {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-fishing-games__guide-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__guide-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-fishing-games__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color);
    color: #ffffff;
}

.page-fishing-games__guide-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-fishing-games__guide-item p {
    color: #f0f0f0;
    margin-bottom: 15px;
}

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

.page-fishing-games__tip-card {
    background-color: var(--card-background);
    color: var(--text-main-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

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

.page-fishing-games__tip-image-card {
    grid-column: span 2; /* Make image span 2 columns on larger screens */
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    box-shadow: none;
    border: none;
}

.page-fishing-games__promotions-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.page-fishing-games__promotions-section .page-fishing-games__section-title {
    color: #ffffff;
}

.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
    padding: 20px;
    font-size: 1.0em;
    color: var(--text-main-color);
}

.page-fishing-games__faq-answer p {
    margin-bottom: 10px;
}

.page-fishing-games__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-fishing-games__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Button styles */
.page-fishing-games__cta-button,
.page-fishing-games__btn-primary {
    background: var(--gradient-button);
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__cta-button:hover,
.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-secondary {
    background-color: var(--card-background);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* General image responsiveness */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 2.8em;
    }

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

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

    .page-fishing-games__content-grid {
        flex-direction: column;
        text-align: center;
    }

    .page-fishing-games__content-grid:nth-child(even) {
        flex-direction: column;
    }

    .page-fishing-games__step-by-step-guide {
        flex-direction: column;
        align-items: center;
    }

    .page-fishing-games__feature-image-card,
    .page-fishing-games__tip-image-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* HERO 主图区域 */
    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

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

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

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

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

    .page-fishing-games__feature-card,
    .page-fishing-games__tip-card,
    .page-fishing-games__game-card {
        padding: 20px;
    }

    .page-fishing-games__feature-title,
    .page-fishing-games__tip-title,
    .page-fishing-games__card-title {
        font-size: 1.3em;
    }

    /* 通用图片与容器 */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are already set for .page-fishing-games__container */
    }

    /* 按钮与按钮容器 */
    .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;
        text-align: center;
    }
    
    .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: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px; /* Spacing between stacked buttons */
    }

    /* Other content modules */
    .page-fishing-games__introduction-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__cta-section {
        padding: 40px 0;
    }

    .page-fishing-games__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-fishing-games__faq-answer {
        padding: 15px;
    }
    
    .page-fishing-games__guide-item {
        padding: 20px;
    }
    .page-fishing-games__guide-title {
        font-size: 1.4em;
    }
}

/* Ensure contrast for dark background sections */
.page-fishing-games__dark-section p,
.page-fishing-games__dark-section li,
.page-fishing-games__dark-section a {
    color: #ffffff;
}

.page-fishing-games__dark-section a:hover {
    color: var(--secondary-color);
}