/* style/slot-games.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

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

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-secondary-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-play {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-slot-games__btn-play:hover {
    opacity: 0.9;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    filter: brightness(0.7); /* Darken image slightly for text readability, not changing color */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over the image slightly */
    padding: 0 20px;
}

.page-slot-games__hero-title {
    font-size: 3.2em;
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    color: var(--text-main-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* Intro Section */
.page-slot-games__intro-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

/* Advantages Section */
.page-slot-games__advantages-section {
    padding: 60px 0;
    background-color: var(--deep-green-color);
}

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

.page-slot-games__advantage-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-slot-games__advantage-card:hover {
    transform: translateY(-5px);
}

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

.page-slot-games__advantage-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

/* Games Section */
.page-slot-games__games-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

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

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

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-slot-games__game-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin: 15px 10px 10px 10px;
    font-weight: bold;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: var(--text-secondary-color);
    padding: 0 15px 15px 15px;
    line-height: 1.6;
}

.page-slot-games__btn-play {
    margin-bottom: 20px;
}

.page-slot-games__view-all-button-container {
    text-align: center;
    margin-top: 50px;
}

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

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

.page-slot-games__guide-step {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--button-gradient);
    border-radius: 50%;
    font-size: 1.8em;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.5);
}

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

.page-slot-games__step-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-slot-games__promotion-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-slot-games__promotion-card:hover {
    transform: translateY(-5px);
}

.page-slot-games__promotion-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__promotion-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 60px 0;
    background-color: var(--deep-green-color);
}

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

.page-slot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker, 
.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.5em;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding-top: 10px;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question .page-slot-games__faq-toggle {
    content: '−';
}

.page-slot-games__faq-answer p {
    margin-bottom: 10px;
    text-align: left;
}

.page-slot-games__faq-answer .page-slot-games__btn-secondary {
    margin-top: 15px;
}

/* CTA Section */
.page-slot-games__cta-section {
    padding: 80px 0;
    background-color: var(--background-color);
    text-align: center;
}

.page-slot-games__cta-section .page-slot-games__section-title {
    color: var(--gold-color);
}

.page-slot-games__cta-section .page-slot-games__text-block {
    margin-bottom: 50px;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* General image styling */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
    .page-slot-games__hero-description {
        font-size: 1.2em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__text-block {
        font-size: 1em;
    }
    .page-slot-games__hero-content {
        margin-top: -80px;
    }
    .page-slot-games__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-slot-games__advantages-grid,
    .page-slot-games__guide-steps,
    .page-slot-games__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-slot-games__hero-content {
        margin-top: -60px;
        padding: 0 15px;
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-slot-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    /* 产品展示图区域 */
    .page-slot-games__games-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .page-slot-games__game-card {
        width: 100%;
    }
    .page-slot-games__game-thumbnail {
        height: 180px;
    }

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

    /* 按钮与按钮容器 */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play,
    .page-slot-games a[class*="button"],
    .page-slot-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-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-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;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
    }

    /* 其他内容模块 */
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-slot-games__advantages-grid,
    .page-slot-games__guide-steps,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .page-slot-games__advantage-card,
    .page-slot-games__guide-step,
    .page-slot-games__promotion-card {
        width: 100%;
        padding: 25px;
    }
    .page-slot-games__faq-list {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px 20px;
    }
    .page-slot-games__intro-section,
    .page-slot-games__advantages-section,
    .page-slot-games__games-section,
    .page-slot-games__guide-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section {
        padding: 40px 0;
    }
}