/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f5f5f5;
    --register-login-bg: #C30808;
    --register-login-text: #000000; /* Overridden for WCAG AA contrast, original was #FFFF00 */
}

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

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

.page-fishing-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

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

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

.page-fishing-games__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.page-fishing-games__dark-bg .page-fishing-games__section-subtitle {
    color: var(--secondary-color);
}

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

.page-fishing-games__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__dark-bg .page-fishing-games__text-block {
    color: var(--secondary-color);
}

.page-fishing-games__dark-bg .page-fishing-games__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-fishing-games__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    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: lighten(var(--primary-color), 60%);
    color: var(--primary-color);
    border-color: lighten(var(--primary-color), 60%);
}

/* Custom button styles for Register/Login */
.page-fishing-games__hero-buttons a {
    background-color: var(--register-login-bg);
    color: var(--register-login-text); /* WCAG AA compliant text color */
    border: 2px solid var(--register-login-bg);
}

.page-fishing-games__hero-buttons a:hover {
    background-color: darken(var(--register-login-bg), 10%);
    border-color: darken(var(--register-login-bg), 10%);
}

.page-fishing-games__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
    padding-top: 0; /* Assumes shared.css handles body padding-top */
}

.page-fishing-games__hero-content {
    flex: 1;
    padding-left: 20px;
}

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

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-fishing-games__hero-buttons {
    display: flex;
    gap: 15px;
}

.page-fishing-games__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-right: 20px;
}

.page-fishing-games__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    min-width: 200px;
    min-height: 200px;
}

/* Introduction Section */
.page-fishing-games__introduction-section {
    padding: 60px 0;
}

/* Games Showcase Section */
.page-fishing-games__games-showcase-section {
    padding: 60px 0;
}

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

.page-fishing-games__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-fishing-games__game-card:hover {
    transform: translateY(-5px);
}

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

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

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

.page-fishing-games__more-games-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
}

/* Guide Section */
.page-fishing-games__guide-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-fishing-games__guide-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-fishing-games__guide-text {
    flex: 2;
}

.page-fishing-games__guide-heading {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__guide-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-fishing-games__guide-list li {
    margin-bottom: 10px;
}

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

.page-fishing-games__guide-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-width: 200px;
    min-height: 200px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 60px 0;
}

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

.page-fishing-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-fishing-games__promo-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-fishing-games__promo-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-fishing-games__promo-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.page-fishing-games__promo-image {
    max-width: 400px;
    height: auto;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__promo-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95em;
    color: var(--secondary-color);
}

.page-fishing-games__promo-note a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Features Section */
.page-fishing-games__features-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

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

.page-fishing-games__feature-item {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

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

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

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

.page-fishing-games__feature-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 0;
}

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

.page-fishing-games__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

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

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

.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(--text-color-dark);
    font-size: 1.05em;
}

.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-bottom: 0;
}

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

/* CTA Section */
.page-fishing-games__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-fishing-games__cta-title {
    font-size: 3em;
    color: var(--text-color-light);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-fishing-games__cta-description {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__cta-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.2em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__section-subtitle {
        font-size: 1.1em;
    }
    .page-fishing-games__cta-title {
        font-size: 2.5em;
    }
    .page-fishing-games__promo-cta {
        flex-direction: column;
        gap: 20px;
    }
    .page-fishing-games__promo-image {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-fishing-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        gap: 30px;
        padding-top: 0; /* Assumes shared.css handles body padding-top */
    }

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

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

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

    .page-fishing-games__hero-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-fishing-games__hero-buttons a {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-fishing-games__hero-image-wrapper {
        padding: 0 15px;
    }

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

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

    .page-fishing-games__game-image {
        height: 180px;
        min-width: 200px !important;
        min-height: 180px !important;
    }

    /* 通用图片与容器 */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__promo-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .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: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column !important;
    }

    /* 其他内容模块 */
    .page-fishing-games__introduction-section,
    .page-fishing-games__games-showcase-section,
    .page-fishing-games__guide-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__features-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section {
        padding: 40px 0;
    }

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

    .page-fishing-games__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-fishing-games__guide-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-fishing-games__guide-image {
        order: -1; /* Image appears above text on mobile */
        margin-bottom: 20px;
    }

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

    .page-fishing-games__promo-cta {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .page-fishing-games__promo-image {
        max-width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

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

    .page-fishing-games__faq-answer {
        padding: 0 20px;
        font-size: 1em;
    }

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

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

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

    .page-fishing-games__cta-buttons a {
        font-size: 1em;
        padding: 12px 20px;
    }
}