/* style/fishing-games.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-dark: #0A0A0A;
    --card-background: #111111;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --glow-color: #FFD36B;
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--background-dark); /* Ensure text contrast with shared body background */
}

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

.page-fishing-games__hero-section {
    padding-top: 10px; /* Adhere to 10px top padding if body has header offset */
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-fishing-games__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over image for visual flow, but not covering text */
    position: relative; /* Ensure content is above any lower parts of the image */
    z-index: 2;
    background: linear-gradient(0deg, var(--background-dark) 0%, rgba(10, 10, 10, 0.8) 50%, rgba(10, 10, 10, 0.5) 100%);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px var(--glow-color);
}

.page-fishing-games__hero-description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.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 {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-fishing-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

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

.page-fishing-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
}

.page-fishing-games__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-fishing-games__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__introduction-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__features-section,
.page-fishing-games__promotions-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__faq-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

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

.page-fishing-games__game-card.page-fishing-games__card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-fishing-games__game-card.page-fishing-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.page-fishing-games__card-description {
    font-size: 0.95em;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-fishing-games__card-button {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: calc(100% - 30px);
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 211, 107, 0.4);
}

.page-fishing-games__instruction-list,
.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
}

.page-fishing-games__list-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__list-item strong {
    color: var(--primary-color);
}

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

.page-fishing-games__feature-item.page-fishing-games__card,
.page-fishing-games__why-item.page-fishing-games__card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-fishing-games__feature-title,
.page-fishing-games__why-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__feature-description,
.page-fishing-games__why-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
}

.page-fishing-games__cta-buttons--centered {
    margin-top: 50px;
}

.page-fishing-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__faq-item.page-fishing-games__card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.page-fishing-games__faq-question::-webkit-details-marker,
.page-fishing-games__faq-question::marker {
    display: none;
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-fishing-games__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
}

.page-fishing-games__faq-answer p {
    margin: 0;
}

/* Media Queries */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-fishing-games__container {
        padding: 15px;
    }

    .page-fishing-games__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(2em, 3.5vw, 3em);
    }

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

    .page-fishing-games__cta-buttons {
        gap: 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-fishing-games__section-title {
        font-size: clamp(1.6em, 2.5vw, 2.4em);
        margin-bottom: 30px;
    }

    .page-fishing-games__game-grid,
    .page-fishing-games__feature-grid,
    .page-fishing-games__why-grid {
        gap: 20px;
    }

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

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

    .page-fishing-games__card-description {
        font-size: 0.9em;
    }

    .page-fishing-games__list-item {
        padding: 15px;
        font-size: 1em;
    }

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

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

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

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

    /* 1. HERO 主图区域 */
    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* Enforce 10px top padding */
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    .page-fishing-games__hero-image-wrapper {
        max-height: 400px;
    }

    .page-fishing-games__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-fishing-games__hero-content {
        margin-top: -60px; /* Adjust for smaller screens */
        padding: 25px 15px;
        border-radius: 10px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

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

    /* 4. 按钮与按钮容器 */
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 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: 12px 15px;
        font-size: 1em;
    }

    .page-fishing-games__card-button {
        max-width: 100% !important;
        width: calc(100% - 30px) !important; /* Account for card padding */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px;
    }

    .page-fishing-games__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 25px;
    }

    .page-fishing-games__introduction-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__features-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__why-choose-section,
    .page-fishing-games__faq-section {
        padding: 40px 0;
    }

    .page-fishing-games__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* 2. 产品展示图区域 & 3. 通用图片与容器 */
    .page-fishing-games__game-grid,
    .page-fishing-games__feature-grid,
    .page-fishing-games__why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .page-fishing-games__game-card.page-fishing-games__card,
    .page-fishing-games__feature-item.page-fishing-games__card,
    .page-fishing-games__why-item.page-fishing-games__card {
        padding: 20px;
    }

    .page-fishing-games__card-image {
        height: 160px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

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

    .page-fishing-games__instruction-list,
    .page-fishing-games__promo-list {
        margin-top: 25px;
    }

    .page-fishing-games__list-item {
        font-size: 0.95em;
        padding: 15px;
    }

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

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

    .page-fishing-games__faq-answer {
        padding: 0 15px 15px;
    }
    
    /* 5. 其他内容模块 - Ensure overall content fits */
    .page-fishing-games__content-area, 
    .page-fishing-games__section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}