/* style/fishing-games.css */

/* --- Base Styles & Variables --- */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
:root {
    --primary-color: #113B7A; /* Deep Blue */
    --secondary-color: #1D5FD1; /* Bright Blue */
    --card-bg: #10233F; /* Darker Blue for cards */
    --text-main: #F3F8FF; /* Light text */
    --text-secondary: #AFC4E8; /* Lighter blue text */
    --border-color: #244D84; /* Blue border */
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background from shared */
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    background-color: var(--deep-navy); /* Ensure consistency with body background */
    color: var(--text-main); /* Light text for dark background */
    line-height: 1.6;
}

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

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

.page-fishing-games__section-title {
    font-size: 2.8em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-weight: bold;
    line-height: 1.2;
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

/* --- Hero Section --- */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom */
    overflow: hidden;
    background-color: var(--primary-color); /* Fallback */
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Ensure minimum size */
    min-width: 200px; /* Enforce min image size */
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-fishing-games__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 1;
}

.page-fishing-games__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
    font-weight: bold;
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* --- Buttons --- */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-fishing-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for blue gradient */
    border: none;
}

.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-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--gold-color);
}

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(242, 193, 78, 0.1);
}

/* --- Card Styles (General) --- */
.page-fishing-games__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    border: 1px solid var(--border-color);
    color: var(--text-main); /* Light text for dark card background */
}

/* --- Features Section --- */
.page-fishing-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-fishing-games__feature-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-fishing-games__feature-text {
    font-size: 1em;
    color: var(--text-secondary);
}

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

.page-fishing-games__game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-fishing-games__game-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-fishing-games__game-name {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-fishing-games__game-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- iOS Experience Section --- */
.page-fishing-games__ios-experience-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-fishing-games__ios-content {
    flex: 1;
    max-width: 600px;
}

.page-fishing-games__ios-benefits {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-fishing-games__ios-benefits li {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-fishing-games__ios-benefits li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--gold-color);
}

.page-fishing-games__ios-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
}

.page-fishing-games__ios-mockup {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* --- Promotions Section --- */
.page-fishing-games__promotion-card {
    display: flex;
    margin-bottom: 30px;
    overflow: hidden;
    align-items: center;
}

.page-fishing-games__promotion-image {
    width: 40%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-fishing-games__promotion-details {
    padding: 30px;
    flex: 1;
}

.page-fishing-games__promotion-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-fishing-games__promotion-text {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* --- How To Play Section --- */
.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-fishing-games__step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

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

.page-fishing-games__step-text {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* --- Tips & Strategies Section --- */
.page-fishing-games__tips-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-fishing-games__tips-list li {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.page-fishing-games__tips-list li::before {
    content: '👉';
    position: absolute;
    left: 0;
    top: 0;
}

.page-fishing-games__tips-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* --- FAQ Section --- */
.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-fishing-games__faq-item {
    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;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--card-bg); /* Match card background */
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(16, 35, 63, 0.8);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--text-main);
}

.page-fishing-games__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: rgba(16, 35, 63, 0.5); /* Lighter card background */
    border-radius: 0 0 10px 10px;
    border-top: 1px solid var(--border-color);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    content: '−';
}

/* Hide default details marker */
.page-fishing-games__faq-item summary {
    list-style: none;
}
.page-fishing-games__faq-item summary::-webkit-details-marker {
    display: none;
}


/* --- CTA Banner --- */
.page-fishing-games__cta-banner {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color); /* Use primary color for strong CTA */
    border-radius: 15px;
    margin-top: 60px;
    margin-bottom: 60px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__cta-title {
    font-size: 2.5em;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-weight: bold;
}

.page-fishing-games__cta-description {
    font-size: 1.1em;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-fishing-games__ios-experience-section {
        flex-direction: column;
        text-align: center;
    }

    .page-fishing-games__ios-content,
    .page-fishing-games__ios-image-wrapper {
        max-width: 100%;
    }

    .page-fishing-games__ios-benefits {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__section-title {
        font-size: 2em;
    }

    .page-fishing-games__hero-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-fishing-games__hero-description,
    .page-fishing-games__section-description {
        font-size: 1em;
    }

    .page-fishing-games__hero-buttons,
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        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__hero-buttons .page-fishing-games__btn-primary,
    .page-fishing-games__hero-buttons .page-fishing-games__btn-secondary,
    .page-fishing-games__cta-buttons .page-fishing-games__btn-primary,
    .page-fishing-games__cta-buttons .page-fishing-games__btn-secondary {
        margin: 0 auto; /* Center buttons when stacked */
    }

    .page-fishing-games__promotion-card {
        flex-direction: column;
    }

    .page-fishing-games__promotion-image {
        width: 100%;
        height: auto;
    }

    .page-fishing-games__promotion-details {
        padding: 20px;
    }

    /* Mobile specific image adaptation */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__features-section,
    .page-fishing-games__games-showcase,
    .page-fishing-games__ios-experience-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__tips-strategies-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll from content */
    }

    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
    }

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

@media (max-width: 480px) {
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-title {
        font-size: clamp(1.8em, 10vw, 2.2em);
    }
    .page-fishing-games__cta-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-description,
    .page-fishing-games__section-description,
    .page-fishing-games__cta-description {
        font-size: 0.9em;
    }
}