/* General styles for page-fishing-games */
.page-fishing-games {
    background-color: #100224; /* Deep purplish-black as per WOW88 style */
    color: #FFFFFF; /* Light text for dark background */
    font-family: Arial, sans-serif; /* Roboto气质 - Arial is a common sans-serif */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for non-index page, relies on shared.css for body padding-top */
}

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

.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
    color: #FF5A4F; /* Emphasize with auxiliary color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-fishing-games__text-content {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9); /* Slightly muted white */
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    overflow: hidden;
    min-height: 400px; /* Adjusted from fixed height */
    display: flex;
    flex-direction: column; /* Default to column for mobile first, then row for desktop */
    align-items: center;
    justify-content: center;
    padding-bottom: 40px; /* Add padding at the bottom */
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Control image max height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-fishing-games__hero-content {
    position: relative; /* Changed from absolute to relative for "上图下文" */
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin-top: 20px; /* Space after image */
}

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size, no fixed large value */
    color: #FF5A4F; /* Auxiliary color for H1 */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.page-fishing-games__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Ensure button minimum size */
    min-height: 44px; /* Ensure touch target size */
}

.page-fishing-games__cta-button:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Invert gradient on hover */
}

.page-fishing-games__cta-button--small {
    padding: 12px 25px;
    font-size: 1rem;
    margin-top: 30px;
}

/* Introduction Section */
.page-fishing-games__introduction-section {
    padding: 60px 0;
    background-color: #1a0632; /* Slightly lighter dark background for contrast */
}

/* Featured Games Section */
.page-fishing-games__featured-games-section {
    padding: 60px 0;
}

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

.page-fishing-games__game-tile {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none; /* No underline for game tiles */
}

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

.page-fishing-games__game-tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px; /* Minimum size for content images */
    transition: transform 0.3s ease;
}

.page-fishing-games__game-tile:hover img {
    transform: scale(1.05); /* Hover effect */
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
    padding: 60px 0;
    background-color: #1a0632;
}

.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: rgba(255, 255, 255, 0.05); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-title {
    font-size: 1.5rem;
    color: #FF5A4F;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* How To Play Section */
.page-fishing-games__how-to-play-section {
    padding: 60px 0;
}

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

.page-fishing-games__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-fishing-games__step-number {
    position: absolute;
    top: -20px; /* Move number outside/above */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__step-title {
    font-size: 1.4rem;
    color: #FF5A4F;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__step-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 0;
    background-color: #1a0632;
}

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__faq-question {
    font-size: 1.2rem;
    color: #FF5A4F;
    padding: 20px;
    cursor: pointer;
    display: block;
    position: relative;
    margin: 0;
    font-weight: bold;
}

.page-fishing-games__faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-question.is-active::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.page-fishing-games__faq-answer {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 20px 20px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-fishing-games__faq-question.is-active + .page-fishing-games__faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding-top: 10px;
}


/* Join Now Section */
.page-fishing-games__join-now-section {
    padding: 60px 0 80px 0;
    text-align: center;
}

/* Media Queries for responsiveness */
@media (max-width: 849px) {
    .page-fishing-games__hero-section {
        flex-direction: column; /* Ensure column layout on smaller screens */
        padding-top: 10px; /* Adjust top padding for mobile */
    }

    .page-fishing-games__hero-image-wrapper {
        max-height: 400px; /* Adjust max height for mobile hero image */
    }

    .page-fishing-games__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem); /* Adjust H1 font for smaller screens */
    }

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

    .page-fishing-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-fishing-games__text-content {
        font-size: 0.95rem;
    }

    .page-fishing-games__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 2 columns on mobile */
    }
}

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

    /* Mobile content image constraint */
    .page-fishing-games img {
        max-width: 100%;
        height: auto;
    }

    .page-fishing-games__game-grid,
    .page-fishing-games__features-grid,
    .page-fishing-games__steps-list {
        grid-template-columns: 1fr; /* Single column layout for most grids on very small screens */
    }

    .page-fishing-games__hero-image-wrapper {
        margin-bottom: 20px;
    }
}

@media (max-width: 549px) {
    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem); /* Further adjust H1 for very small screens */
    }

    .page-fishing-games__cta-button {
        width: 100%;
        max-width: 300px; /* Constrain max width for full width buttons */
        margin: 0 auto;
        display: block;
    }

    .page-fishing-games__step-number {
        top: -25px; /* Adjust position for very small screens */
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
}

/* Ensure no content images are smaller than 200px */
.page-fishing-games__game-tile img,
.page-fishing-games__hero-image {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure CSS for images doesn't conflict with HTML width/height */
/* The HTML width/height attributes are for aspect ratio. CSS will handle responsiveness. */
/* No specific overrides that make images smaller than their HTML attributes */
.page-fishing-games img:not(.page-fishing-games__hero-image) { /* Apply to content images */
    width: 100%; /* Ensure they scale */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Important for mobile responsiveness */
}