/* style/slot-games.css */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-light: #F5F7FA;
    --border-color: #E0E0E0;
    --text-light: #ffffff;
}

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

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

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

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-slot-games__hero-content {
    position: relative;
    text-align: center;
    padding: 30px 20px;
    z-index: 1;
    color: var(--text-light);
    max-width: 800px;
}

.page-slot-games__hero-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

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

/* --- General Section Styles --- */
.page-slot-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-slot-games__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__light-bg {
    background-color: var(--background-light);
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-slot-games__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__section-description,
.page-slot-games__dark-section .page-slot-games__game-title,
.page-slot-games__dark-section .page-slot-games__game-description,
.page-slot-games__dark-section .page-slot-games__strategy-item-title,
.page-slot-games__dark-section .page-slot-games__strategy-item-description,
.page-slot-games__dark-section .page-slot-games__faq-qtext,
.page-slot-games__dark-section .page-slot-games__faq-answer {
    color: var(--text-light);
}

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

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
    background: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    margin-top: 15px;
}

.page-slot-games__btn-tertiary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.page-slot-games__btn-link {
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
}

.page-slot-games__btn-link:hover {
    color: var(--secondary-color);
}

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

/* --- Games Showcase Section --- */
.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: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-slot-games__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-light);
    padding: 0 15px;
}

.page-slot-games__game-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 15px;
}

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

.page-slot-games__guide-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-slot-games__guide-step-description {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

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

.page-slot-games__strategy-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__strategy-item-title {
    font-size: 1.4em;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__strategy-item-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Promotions Section --- */
.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-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding-bottom: 20px;
}

.page-slot-games__promotion-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-slot-games__promotion-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    padding: 0 15px;
}

.page-slot-games__promotion-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    padding: 0 15px;
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

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

.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;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Conclusion Section --- */
.page-slot-games__conclusion-section .page-slot-games__section-title {
    color: var(--primary-color);
}

.page-slot-games__conclusion-section .page-slot-games__text-block {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Global Image & Button Responsiveness (Desktop) --- */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-slot-games__hero-cta-buttons,
.page-slot-games__section-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    .page-slot-games__container {
        padding: 15px;
    }

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

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

    .page-slot-games__hero-description {
        font-size: 1em;
    }

    .page-slot-games__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-slot-games__text-block,
    .page-slot-games__section-description,
    .page-slot-games__game-description,
    .page-slot-games__guide-step-description,
    .page-slot-games__strategy-item-description,
    .page-slot-games__promotion-description,
    .page-slot-games__faq-answer {
        font-size: 0.95em;
    }

    /* 产品展示图区域 */
    .page-slot-games__games-grid,
    .page-slot-games__guide-steps,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-slot-games__game-image,
    .page-slot-games__promotion-image {
        height: 180px; /* Slightly smaller fixed height for mobile */
    }

    /* 通用图片与容器 */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-slot-games__introduction-section,
    .page-slot-games__games-showcase-section,
    .page-slot-games__guide-section,
    .page-slot-games__strategy-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section {
        padding: 40px 0;
    }

    .page-slot-games__game-card,
    .page-slot-games__guide-item,
    .page-slot-games__promotion-card,
    .page-slot-games__strategy-item,
    .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__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-tertiary,
    .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__section-cta {
        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__hero-cta-buttons {
        flex-direction: column;
    }

    /* 其他内容模块 */
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-slot-games__strategy-item {
        padding: 20px;
    }
}