/* style/slot-games.css */

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

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

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    background-color: var(--deep-green-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

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

.page-slot-games__hero-content {
    position: relative;
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly for visual effect, but not text on image */
    background-color: var(--card-bg-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border: 1px solid var(--border-color);
}

.page-slot-games__hero-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__cta-button--primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__cta-button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__cta-button--secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-slot-games__cta-button--secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

/* General Section Styles */
.page-slot-games__introduction-section,
.page-slot-games__games-types-section,
.page-slot-games__benefits-section,
.page-slot-games__guide-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-slot-games__paragraph {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-slot-games__gameshow-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-slot-games__gameshow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__gameshow-title {
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 15px 20px 5px;
    text-align: center;
}

.page-slot-games__gameshow-description {
    font-size: 0.95em;
    color: var(--text-secondary-color);
    padding: 0 20px 15px;
    flex-grow: 1;
    text-align: center;
}

.page-slot-games__gameshow-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 0;
    background: var(--button-gradient);
    color: var(--text-main-color);
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.page-slot-games__gameshow-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

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

.page-slot-games__benefit-item:hover {
    transform: translateY(-5px);
}

.page-slot-games__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-slot-games__benefit-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-slot-games__benefit-description {
    font-size: 0.95em;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

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

.page-slot-games__guide-item {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.page-slot-games__guide-item:hover {
    border-left-color: var(--gold-color);
}

.page-slot-games__guide-step-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

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

/* Tips Section */
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__tips-item {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--divider-color);
}

.page-slot-games__tips-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.page-slot-games__tips-description {
    font-size: 0.95em;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

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

.page-slot-games__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-slot-games__promo-title {
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 15px 20px 5px;
    text-align: center;
}

.page-slot-games__promo-description {
    font-size: 0.95em;
    color: var(--text-secondary-color);
    padding: 0 20px 15px;
    flex-grow: 1;
    text-align: center;
}

.page-slot-games__promo-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 0;
    background: var(--button-gradient);
    color: var(--text-main-color);
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.page-slot-games__promo-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--divider-color);
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

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

.page-slot-games__faq-question:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    color: var(--gold-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;
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 2000px; /* Arbitrarily large value for smooth transition */
    padding-top: 10px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        margin-top: -80px;
        padding: 25px 15px;
    }

    .page-slot-games__hero-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-slot-games__section-title {
        font-size: 2em;
    }

    .page-slot-games__gameshow-grid,
    .page-slot-games__benefits-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
    }

    .page-slot-games__hero-content {
        margin-top: -60px;
        padding: 20px 15px;
        border-radius: 10px;
    }

    .page-slot-games__hero-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 10px;
    }

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

    .page-slot-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* 通用图片与容器 */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-slot-games__container,
    .page-slot-games__introduction-section,
    .page-slot-games__games-types-section,
    .page-slot-games__benefits-section,
    .page-slot-games__guide-section,
    .page-slot-games__tips-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__gameshow-card,
    .page-slot-games__benefit-item,
    .page-slot-games__guide-item,
    .page-slot-games__promo-card,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-slot-games__cta-button,
    .page-slot-games__gameshow-button,
    .page-slot-games__promo-button,
    .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__hero-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 {
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for buttons */
    }

    /* 产品展示图区域 */
    .page-slot-games__gameshow-grid,
    .page-slot-games__benefits-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr; /* Single column for all cards */
        gap: 20px;
    }

    .page-slot-games__gameshow-card,
    .page-slot-games__benefit-item,
    .page-slot-games__promo-card {
        padding: 20px;
    }

    .page-slot-games__gameshow-image,
    .page-slot-games__promo-image {
        height: 180px;
    }

    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-slot-games__paragraph,
    .page-slot-games__guide-step-description,
    .page-slot-games__tips-description,
    .page-slot-games__gameshow-description,
    .page-slot-games__benefit-description,
    .page-slot-games__promo-description,
    .page-slot-games__faq-answer p {
        font-size: 0.95em;
    }

    .page-slot-games__guide-item,
    .page-slot-games__tips-item,
    .page-slot-games__faq-item {
        padding: 20px;
    }

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

    .page-slot-games__faq-toggle {
        font-size: 1.3em;
    }
}