/* style/fishing-games.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-highlight: #FFFF00;
    --border-color: #e0e0e0;
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
    background: var(--secondary-color); /* Body background from shared is white, so default text is dark */
}

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

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

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

.page-fishing-games__keyword {
    font-weight: bold;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: var(--primary-color); /* Ensure a base color */
    overflow: hidden; /* Prevent content overflow */
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-color-light);
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-fishing-games__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 15px; /* Adjust margin for multiple buttons */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__cta-button:hover {
    background: var(--button-register-bg); /* Use register button color for hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-register {
    background: var(--button-register-bg);
    color: var(--button-text-highlight);
}

.page-fishing-games__btn-register:hover {
    background: #a30606; /* Darken for hover */
}

.page-fishing-games__btn-login {
    background: var(--button-login-bg);
    color: var(--button-text-highlight);
}

.page-fishing-games__btn-login:hover {
    background: #a30606; /* Darken for hover */
}

/* Light Background Sections */
.page-fishing-games__light-bg {
    background: var(--secondary-color); /* White background */
    color: var(--text-color-dark); /* Dark text */
    padding: 60px 0;
}

/* Dark Background Sections */
.page-fishing-games__dark-bg {
    background: var(--primary-color); /* Primary color background */
    color: var(--text-color-light); /* Light text */
    padding: 60px 0;
}

.page-fishing-games__dark-bg .page-fishing-games__section-title {
    color: var(--text-color-light);
}
.page-fishing-games__dark-bg .page-fishing-games__brand-highlight {
    color: var(--button-text-highlight); /* Yellow highlight on dark bg */
}
.page-fishing-games__dark-bg .page-fishing-games__text-block a {
    color: var(--button-text-highlight); /* Yellow link on dark bg */
    text-decoration: underline;
}

/* Introduction Section */
.page-fishing-games__introduction-section .page-fishing-games__text-block {
    font-size: 1.1em;
}

.page-fishing-games__image-content-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fishing-games__image-content-block img {
    flex: 1;
    min-width: 400px; /* Minimum width for content images */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-height: 200px; /* Enforce min image size */
}

.page-fishing-games__image-content-block p {
    flex: 1.5;
    min-width: 400px; /* Minimum width for text block */
}

/* Game Cards Section */
.page-fishing-games__game-cards,
.page-fishing-games__promo-cards,
.page-fishing-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__card {
    background: var(--secondary-color);
    color: var(--text-color-dark);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-fishing-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

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

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

/* Guide Section */
.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__guide-list .page-fishing-games__list-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__guide-list .page-fishing-games__list-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__guide-list .page-fishing-games__list-item p {
    font-size: 1.1em;
    color: var(--text-color-dark);
}

/* Strategy Section */
.page-fishing-games__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__strategy-list .page-fishing-games__list-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    border-left: 5px solid var(--button-text-highlight); /* Yellow highlight */
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-color-light);
}

.page-fishing-games__strategy-list .page-fishing-games__list-title {
    font-size: 1.4em;
    color: var(--button-text-highlight);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__strategy-list .page-fishing-games__list-item p {
    font-size: 1.1em;
    color: var(--text-color-light);
}

.page-fishing-games__cta-block {
    text-align: center;
    margin-top: 40px;
}

.page-fishing-games__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-bg); /* Use register button color for primary */
    color: var(--button-text-highlight);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__btn-primary:hover {
    background: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
    padding-bottom: 80px;
}

.page-fishing-games__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px; /* Adjust padding to match question */
    opacity: 0;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px 25px !important; /* Adjust padding to match question */
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-fishing-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
    background: #eeeeee;
}

/* 问题标题样式 */
.page-fishing-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: var(--primary-color);
}

/* 切换图标 */
.page-fishing-games__faq-toggle {
    font-size: 28px; /* Slightly larger for better visibility */
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Larger toggle area */
    height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    color: var(--button-register-bg); /* Red for active toggle */
    transform: rotate(45deg); /* Rotate for minus sign */
}

/* Responsive Design */
@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__image-content-block img,
    .page-fishing-games__image-content-block p {
        min-width: unset; /* Allow flexible width on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-fishing-games__container {
        padding: 15px;
    }
}