/* style/slot-games.css */

/* Root variables for colors */
:root {
    --page-slot-games-primary-color: #F2C14E;
    --page-slot-games-secondary-color: #FFD36B;
    --page-slot-games-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --page-slot-games-card-bg: #111111;
    --page-slot-games-background: #0A0A0A;
    --page-slot-games-text-main: #FFF6D6;
    --page-slot-games-border-color: #3A2A12;
    --page-slot-games-glow-color: #FFD36B;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--page-slot-games-text-main); /* Default text color for dark background */
    background-color: var(--page-slot-games-background);
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* HERO Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-slot-games-background);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for desktop hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-slot-games__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-slot-games-primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--page-slot-games-text-main);
    margin-bottom: 30px;
}

.page-slot-games__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styling */
.page-slot-games__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--page-slot-games-primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.page-slot-games__section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--page-slot-games-text-main);
}

.page-slot-games__introduction-section,
.page-slot-games__benefits-section,
.page-slot-games__types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
    padding: 60px 0;
    background-color: var(--page-slot-games-background);
}

/* Card Styling */
.page-slot-games__benefit-card,
.page-slot-games__type-card,
.page-slot-games__step-card,
.page-slot-games__promotion-card {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__benefit-card:hover,
.page-slot-games__type-card:hover,
.page-slot-games__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--page-slot-games-glow-color);
}

.page-slot-games__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--page-slot-games-secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-slot-games__card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-slot-games-text-main);
}

/* Benefit Grid */
.page-slot-games__benefits-grid,
.page-slot-games__types-grid,
.page-slot-games__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__benefit-image,
.page-slot-games__type-image,
.page-slot-games__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* How To Play Section */
.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-card {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--page-slot-games-button-gradient);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-slot-games__btn-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--page-slot-games-button-gradient);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-slot-games__cta-bottom {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

/* Button Styling */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--page-slot-games-glow-color);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--page-slot-games-glow-color);
    opacity: 0.95;
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--page-slot-games-primary-color);
    border: 2px solid var(--page-slot-games-primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background: var(--page-slot-games-primary-color);
    color: var(--page-slot-games-card-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

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

.page-slot-games__faq-item {
    background-color: var(--page-slot-games-card-bg);
    border: 1px solid var(--page-slot-games-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.page-slot-games__faq-item[open] {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--page-slot-games-glow-color);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-slot-games-secondary-color);
    cursor: pointer;
    background-color: #1a1a1a; /* Slightly lighter than card-bg for contrast */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom-color: var(--page-slot-games-border-color);
}

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

.page-slot-games__faq-question::marker {
    display: none;
}

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

.page-slot-games__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-slot-games-primary-color);
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--page-slot-games-text-main);
    text-align: left;
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
    text-align: center;
}

.page-slot-games__cta-final-section .page-slot-games__cta-buttons {
    margin-top: 40px;
}

/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-slot-games__hero-description {
        font-size: 1.1rem;
    }

    .page-slot-games__section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .page-slot-games__benefits-grid,
    .page-slot-games__types-grid,
    .page-slot-games__promotions-grid,
    .page-slot-games__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-slot-games__card-title {
        font-size: 1.3rem;
    }

    .page-slot-games__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .page-slot-games__faq-answer {
        padding: 0 20px 18px 20px;
    }
}

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

    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-slot-games__hero-content {
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-slot-games__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

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

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

    /* 产品展示图区域 & 通用图片与容器 */
    .page-slot-games__container,
    .page-slot-games__introduction-section .page-slot-games__container,
    .page-slot-games__benefits-section .page-slot-games__container,
    .page-slot-games__types-section .page-slot-games__container,
    .page-slot-games__how-to-play-section .page-slot-games__container,
    .page-slot-games__promotions-section .page-slot-games__container,
    .page-slot-games__faq-section .page-slot-games__container,
    .page-slot-games__cta-final-section .page-slot-games__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

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

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

    .page-slot-games__benefit-image,
    .page-slot-games__type-image,
    .page-slot-games__promotion-image {
        height: 180px;
    }

    .page-slot-games__benefits-grid,
    .page-slot-games__types-grid,
    .page-slot-games__promotions-grid,
    .page-slot-games__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* 按钮与按钮容器 */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-slot-games__cta-bottom {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 其他内容模块 */
    .page-slot-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-slot-games__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-slot-games__introduction-section,
    .page-slot-games__benefits-section,
    .page-slot-games__types-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 40px 0;
    }

    .page-slot-games__card-title {
        font-size: 1.2rem;
    }

    .page-slot-games__card-description {
        font-size: 0.9rem;
    }

    .page-slot-games__faq-question {
        font-size: 1rem;
        padding: 15px 18px;
    }

    .page-slot-games__faq-toggle {
        font-size: 1.5rem;
    }

    .page-slot-games__faq-answer {
        padding: 0 18px 15px 18px;
        font-size: 0.9rem;
    }
}