:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--deep-navy); /* Assumed from shared.css body background */
}

.page-slot-games__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

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

.page-slot-games__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.page-slot-games__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    gap: 24px;
    box-sizing: border-box;
}

.page-slot-games__hero-image {
    flex: 1 1 45%;
    text-align: center;
    order: 2; /* Image after content on desktop */
}

.page-slot-games__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-content {
    flex: 1 1 50%;
    order: 1; /* Content before image on desktop */
    padding-right: 20px;
    color: var(--text-main);
}

.page-slot-games__hero-title {
    font-size: 3.2em;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--gold-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.page-slot-games__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-slot-games__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(var(--gold-color-rgb), 0.1);
}

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

.page-slot-games__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}

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

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

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

.page-slot-games__icon-box-media {
    width: 150px;
    height: 150px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-slot-games__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

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

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

/* Game Tabs Section */
.page-slot-games__game-tabs-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

.page-slot-games__tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
    flex-wrap: wrap;
}

.page-slot-games__tab-button {
    background-color: var(--primary-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-slot-games__tab-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-main);
}

.page-slot-games__tab-button.is-active {
    background: var(--button-gradient);
    color: var(--text-main);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__game-panel {
    display: none;
}

.page-slot-games__game-panel.is-active {
    display: block;
}

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

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

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

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

.page-slot-games__game-card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--gold-color);
    padding: 15px 20px 10px;
}

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

.page-slot-games__btn-play {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    margin: 0 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

/* Promo Section */
.page-slot-games__promo-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-slot-games__promo-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-slot-games__promo-content {
    flex: 1 1 50%;
    padding-right: 20px;
    box-sizing: border-box;
}

.page-slot-games__promo-image {
    flex: 1 1 40%;
    text-align: center;
}

.page-slot-games__promo-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.page-slot-games__promo-list li {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-slot-games__promo-list li::before {
    content: '★';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

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

.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-item {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    position: relative;
    text-align: center;
}

.page-slot-games__guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gold-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--glow-color);
}

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

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

.page-slot-games__guide-cta {
    text-align: center;
    margin-top: 50px;
}

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

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

.page-slot-games__faq-item {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-slot-games__faq-question:hover {
    background-color: var(--secondary-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    background-color: var(--secondary-color);
    color: var(--text-main);
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold-color);
    margin-left: 15px;
    line-height: 1;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    color: var(--text-main);
}

.page-slot-games__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__feature-item {
        padding: 25px;
    }
    .page-slot-games__icon-box-media {
        width: 120px;
        height: 120px;
    }
    .page-slot-games__promo-content, .page-slot-games__promo-image {
        flex: 1 1 100%;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    /* 1. HERO 双栏 */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Rely on body padding for header offset */
    }
    .page-slot-games__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }
    .page-slot-games__hero-image {
        order: 1;
        flex: 1 1 100%;
    }
    .page-slot-games__hero-content {
        order: 2;
        flex: 1 1 100%;
        padding-right: 0;
        text-align: center;
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-slot-games__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* 2. 模块1 三栏正圆图 */
    .page-slot-games__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__feature-item {
        padding: 20px;
    }
    .page-slot-games__icon-box-media {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    .page-slot-games__feature-title {
        font-size: 1.3em;
    }

    /* 3. 七 Tab 游戏区 */
    .page-slot-games__tab-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }
    .page-slot-games__tab-button {
        font-size: 1em;
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .page-slot-games__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__game-card-image {
        height: 180px;
    }
    .page-slot-games__game-card-title {
        font-size: 1.3em;
    }

    /* 4. 教程长文 / 促销 / 信任 / FAQ / intro 排版 */
    .page-slot-games__content-area {
        padding: 20px 15px;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-slot-games__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-slot-games__promo-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-slot-games__promo-content {
        padding-right: 0;
        text-align: center;
    }
    .page-slot-games__promo-list {
        text-align: left;
        padding-left: 25px;
    }
    .page-slot-games__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__guide-step-item {
        padding: 20px;
    }
    .page-slot-games__guide-step-title {
        font-size: 1.3em;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }

    /* 5. 通用图片与容器 */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Exception for round images, they must remain round */
    .page-slot-games__icon-box-media img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* 6. 按钮与按钮容器 */
    .page-slot-games__cta-button,
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .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,
    .page-slot-games__guide-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;
        flex-direction: column; /* Ensure buttons stack vertically */
    }
}