/* style/slots.css */

/* General styles for the page-slots scope */
.page-slots {
    font-family: Arial, sans-serif;
    color: #FFF1E8; /* Text Main */
    background-color: #140C0C; /* Body background from shared.css */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding to the bottom of the main content */
}

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

.page-slots__dark-bg {
    background-color: #140C0C; /* Explicitly set dark background for sections */
    color: #FFF1E8; /* Light text for dark background */
}

/* Titles */
.page-slots__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F3C54D; /* Gold for main title */
    margin-bottom: 20px;
    text-align: center;
}

.page-slots__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F3C54D; /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-slots__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F3C54D; /* Gold for card titles */
    margin-bottom: 15px;
}

.page-slots__description,
.page-slots__text-block,
.page-slots__card-text,
.page-slots p,
.page-slots li {
    font-size: 1.1rem;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 15px;
}

/* Buttons */
.page-slots__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slots__btn-primary,
.page-slots__btn-secondary,
.page-slots__btn-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-slots__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #FFF1E8;
    border: 2px solid transparent;
}

.page-slots__btn-primary:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
    transform: translateY(-2px);
}

.page-slots__btn-secondary {
    background-color: transparent;
    color: #F3C54D; /* Gold text */
    border: 2px solid #F3C54D; /* Gold border */
}

.page-slots__btn-secondary:hover {
    background-color: #F3C54D;
    color: #140C0C; /* Dark text on gold hover */
    transform: translateY(-2px);
}

.page-slots__btn-text-link {
    background: none;
    border: none;
    color: #FFB04A; /* Goldish for text links */
    padding: 0;
    font-size: 1rem;
    text-decoration: underline;
    margin-top: 10px;
}

.page-slots__btn-text-link:hover {
    color: #F3C54D;
}

/* Hero Section */
.page-slots__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
}

.page-slots__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-slots__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px; /* Ensure hero image is not too small */
}

.page-slots__hero-content {
    padding: 40px 20px;
    text-align: center;
    background-color: #140C0C; /* Ensure dark background for text content */
}

/* Intro Section */
.page-slots__intro-section {
    padding: 60px 0;
}

/* Why Choose Section */
.page-slots__why-choose-section {
    padding: 60px 0;
}

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

.page-slots__feature-card {
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #6A1E1E; /* Border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Game Types Section */
.page-slots__game-types-section {
    padding: 60px 0;
}

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

.page-slots__game-type-card {
    background-color: #2A1212; /* Card BG */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #6A1E1E; /* Border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-slots__game-type-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

/* How to Play Section */
.page-slots__how-to-play-section {
    padding: 60px 0;
}

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

.page-slots__step-card {
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #6A1E1E; /* Border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Tips Section */
.page-slots__tips-section {
    padding: 60px 0;
}

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

.page-slots__tip-card {
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #6A1E1E; /* Border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Promotions CTA */
.page-slots__promotions-cta {
    padding: 60px 0;
    text-align: center;
}

.page-slots__promotions-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-slots__promotion-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Security Section */
.page-slots__security-section {
    padding: 60px 0;
}

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

.page-slots__faq-list {
    margin-top: 40px;
}

.page-slots__faq-item {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF1E8;
}

.page-slots__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    color: #F3C54D; /* Gold for questions */
    list-style: none; /* Hide default marker for details summary */
}

.page-slots__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-slots__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #FFB04A;
}

.page-slots__faq-item[open] .page-slots__faq-toggle {
    content: "\2212"; /* Change toggle to minus when open */
}

.page-slots__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #FFF1E8;
}

/* Conclusion Section */
.page-slots__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slots__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-slots__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-slots__container {
        padding: 0 15px;
    }
    .page-slots__hero-section {
        padding-bottom: 30px;
    }
    .page-slots__hero-image-wrapper {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-slots__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px !important;
    }
    .page-slots__hero-image {
        max-height: 400px !important; /* Adjust hero image height for mobile */
        min-height: 250px !important;
    }
    .page-slots__hero-content {
        padding: 30px 15px !important;
    }
    .page-slots__main-title {
        font-size: 2.2rem !important; /* Fixed size for mobile H1 */
        margin-bottom: 15px !important;
    }
    .page-slots__description {
        font-size: 1rem !important;
    }

    /* 产品展示图区域 */
    .page-slots__game-types-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
    }
    .page-slots__game-type-card {
        padding: 15px !important;
    }
    .page-slots__game-type-image {
        height: 180px !important; /* Adjust image height for mobile */
    }

    /* 通用图片与容器 */
    .page-slots img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-slots__section,
    .page-slots__card,
    .page-slots__container,
    .page-slots__hero-section,
    .page-slots__intro-section,
    .page-slots__why-choose-section,
    .page-slots__game-types-section,
    .page-slots__how-to-play-section,
    .page-slots__tips-section,
    .page-slots__promotions-cta,
    .page-slots__security-section,
    .page-slots__faq-section,
    .page-slots__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-slots__promotions-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-slots__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 按钮与按钮容器 */
    .page-slots__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
    .page-slots__btn-primary,
    .page-slots__btn-secondary,
    .page-slots__btn-text-link,
    .page-slots a[class*="button"],
    .page-slots 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 !important;
        padding-right: 15px !important;
    }
    .page-slots__cta-buttons,
    .page-slots__button-group,
    .page-slots__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* 其他内容模块 */
    .page-slots__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
        padding-top: 30px !important;
    }
    .page-slots__feature-card,
    .page-slots__step-card,
    .page-slots__tip-card {
        padding: 20px !important;
    }
    .page-slots__features-grid,
    .page-slots__steps-grid,
    .page-slots__tips-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-slots__faq-question {
        font-size: 1.1rem !important;
        padding: 15px !important;
    }
    .page-slots__faq-answer {
        padding: 0 15px 15px !important;
        font-size: 0.95rem !important;
    }
    .page-slots p, .page-slots li, .page-slots__description, .page-slots__text-block, .page-slots__card-text {
        font-size: 1rem !important;
    }
}