/* style/slot-games.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg: #17191F;
    --main-bg: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text on dark body background */
    background-color: var(--main-bg);
}

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

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

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(var(--glow-color), 0.5);
    max-width: 1200px; /* Limit image width */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

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

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary,
.page-slot-games a[class*="btn"] {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--deep-orange), 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--deep-orange), 0.6);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--main-bg);
    transform: translateY(-3px);
}

.page-slot-games__btn-tertiary {
    background: var(--primary-color);
    color: var(--text-main);
    border: none;
    font-size: 0.9em;
    padding: 10px 20px;
    border-radius: 5px;
}

.page-slot-games__btn-tertiary:hover {
    background: var(--secondary-color);
    color: var(--main-bg);
}

/* General Section Styling */
.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(var(--glow-color), 0.3);
}

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

.page-slot-games__dark-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-slot-games__introduction-section,
.page-slot-games__popular-games-section,
.page-slot-games__promotions-section,
.page-slot-games__how-to-start-section {
    padding: 60px 0;
    background-color: var(--main-bg);
}

.page-slot-games__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

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

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

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--glow-color), 0.4);
}

.page-slot-games__feature-icon {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
}

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

.page-slot-games__feature-card p {
    color: var(--text-main);
    line-height: 1.6;
}

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

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

.page-slot-games__game-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--glow-color), 0.3);
}

.page-slot-games__game-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

/* Strategy Section */
.page-slot-games__strategy-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-slot-games__strategy-image {
    flex: 1;
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: block;
}

.page-slot-games__strategy-text {
    flex: 1;
    text-align: left;
}

.page-slot-games__strategy-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.page-slot-games__strategy-list li {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-main);
    position: relative;
    padding-left: 25px;
}

.page-slot-games__strategy-list li strong {
    color: var(--secondary-color);
}

.page-slot-games__strategy-list li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Promotions Section */
.page-slot-games__promotion-cards-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);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-slot-games__promotion-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

/* How to Start Section */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-slot-games__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border-left: 5px solid var(--primary-color);
}

.page-slot-games__step-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    line-height: 1;
}

.page-slot-games__step-content h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-slot-games__step-content p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
}

.page-slot-games__step-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__step-content a:hover {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 60px 0;
}

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

.page-slot-games__faq-item {
    background-color: var(--main-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.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(--secondary-color);
    cursor: pointer;
    list-style: none; /* For <summary> */
}

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

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--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: 1em;
    line-height: 1.7;
    color: var(--text-main);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    transition: max-height 0.3s ease-in;
}

/* 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: clamp(2em, 5vw, 3em);
    }

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

    .page-slot-games__strategy-content {
        flex-direction: column;
    }

    .page-slot-games__strategy-image {
        max-width: 100%;
    }

    .page-slot-games__strategy-text {
        text-align: center;
    }

    .page-slot-games__strategy-list {
        text-align: left;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

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

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }

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

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

    /* 通用图片与容器 */
    .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,
    .page-slot-games__feature-card,
    .page-slot-games__game-type-card,
    .page-slot-games__promotion-card,
    .page-slot-games__step-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-buttons,
    .page-slot-games__cta-container,
    .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;
        flex-direction: column; /* Ensure buttons stack vertically */
    }

    /* 其他内容模块 */
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-slot-games__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-slot-games__features-grid,
    .page-slot-games__game-types-grid,
    .page-slot-games__promotion-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__strategy-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-slot-games__strategy-text {
        text-align: center;
    }

    .page-slot-games__strategy-list {
        max-width: 100%;
        text-align: left;
        padding-left: 0;
    }

    .page-slot-games__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .page-slot-games__step-number {
        margin-bottom: 10px;
    }

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

    .page-slot-games__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.95em;
    }

    .page-slot-games__dark-section,
    .page-slot-games__introduction-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__promotions-section,
    .page-slot-games__how-to-start-section,
    .page-slot-games__faq-section {
        padding: 40px 0;
    }
}