/* General styles for page-slot-games */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Text Main */
    background: #140C0C; /* Background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #F3C54D; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HERO Section */
.page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    position: relative;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #140C0C 0%, #2A1212 100%); /* Card BG */
    padding-bottom: 50px;
}

.page-slot-games__hero-image {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 900;
    color: #FFB04A; /* Part of button gradient, bright gold for title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__description {
    font-size: 18px;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure button itself doesn't overflow */
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #FFFFFF;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 176, 74, 0.6);
}

.page-slot-games__btn-secondary {
    background: #2A1212; /* Card BG */
    color: #FFB04A; /* Gold color for text */
    border: 2px solid #FFB04A; /* Gold border */
    box-shadow: 0 5px 15px rgba(255, 176, 74, 0.2);
}

.page-slot-games__btn-secondary:hover {
    transform: translateY(-3px);
    background: #FFB04A; /* Gold color */
    color: #2A1212; /* Card BG */
    box-shadow: 0 8px 20px rgba(255, 176, 74, 0.4);
}

/* Introduction Section */
.page-slot-games__introduction-section,
.page-slot-games__tips-section,
.page-slot-games__cta-final-section {
    background: #140C0C; /* Background */
    padding: 60px 0;
}

.page-slot-games__dark-section {
    background: #2A1212; /* Card BG */
    color: #FFF1E8;
}

.page-slot-games__text-block {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    color: #FFF1E8; /* Text Main */
}

.page-slot-games__text-block p {
    margin-bottom: 15px;
}

.page-slot-games__text-block strong {
    color: #FFB04A; /* Gold */
}

/* Why Choose Section */
.page-slot-games__why-choose-section,
.page-slot-games__promotions-section {
    background: #140C0C; /* Background */
    padding: 60px 0;
}

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

.page-slot-games__feature-card,
.page-slot-games__promo-card,
.page-slot-games__game-card {
    background: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-slot-games__feature-card:hover,
.page-slot-games__promo-card:hover,
.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__card-image {
    max-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 */
}

.page-slot-games__card-title {
    font-size: 24px;
    color: #FFB04A; /* Gold */
    margin-bottom: 15px;
    flex-grow: 1; /* Allow title to grow */
}

.page-slot-games__card-text {
    font-size: 16px;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 20px;
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    background: #2A1212; /* Card BG */
    padding: 60px 0;
}

.page-slot-games__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Larger cards for games */
    gap: 30px;
}

.page-slot-games__game-card .page-slot-games__card-image {
    height: 250px; /* Taller images for game cards */
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    background: #140C0C; /* Background */
    padding: 60px 0;
}

.page-slot-games__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    color: #FFF1E8; /* Text Main */
}

.page-slot-games__article-body ol,
.page-slot-games__article-body ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-slot-games__article-body li {
    margin-bottom: 10px;
}

.page-slot-games__article-body a {
    color: #F3C54D; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__article-body a:hover {
    color: #FFB04A; /* Lighter gold on hover */
    text-decoration: underline;
}

.page-slot-games__numbered-list {
    list-style-type: decimal;
}

.page-slot-games__bullet-list {
    list-style-type: disc;
}

/* Tips Section */
.page-slot-games__article-figure {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    object-fit: cover;
}

/* FAQ Section */
.page-slot-games__faq-section {
    background: #140C0C; /* Background */
    padding: 60px 0;
}

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

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #FFB04A; /* Gold */
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #3A1A1A; /* Slightly lighter Card BG on hover */
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: inherit; /* Inherit color from summary */
}
.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF1E8; /* Text Main */
  font-size: 16px;
}
details.page-slot-games__faq-item[open] summary.page-slot-games__faq-question {
    border-bottom: 1px solid #7E0D0D; /* Deep Red */
}


/* Final CTA Section */
.page-slot-games__cta-final-section {
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__container {
        padding: 20px 30px;
    }

    .page-slot-games__section-title {
        font-size: 32px;
    }

    .page-slot-games__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    
    .page-slot-games__description,
    .page-slot-games__text-block p,
    .page-slot-games__article-body {
        font-size: 16px;
    }

    .page-slot-games__features-grid,
    .page-slot-games__promos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

    .page-slot-games__card-title {
        font-size: 22px;
    }
}

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

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

    .page-slot-games__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-slot-games__hero-image img {
        object-fit: contain !important; /* Mobile: contain, not cover */
        aspect-ratio: unset !important; /* Mobile: unset aspect ratio */
        height: auto !important; /* Ensure height adjusts */
        width: 100% !important;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller on mobile */
        margin-bottom: 15px;
    }
    .page-slot-games__description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px; /* Add padding to container */
        padding-right: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* 产品展示图区域 & Feature/Promo Grid */
    .page-slot-games__features-grid,
    .page-slot-games__promos-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-slot-games__games-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-slot-games__feature-card,
    .page-slot-games__promo-card,
    .page-slot-games__game-card {
        padding: 20px;
    }
    .page-slot-games__card-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-slot-games__card-title {
        font-size: 20px;
    }
    .page-slot-games__card-text {
        font-size: 15px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-slot-games__introduction-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__tips-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 40px 0;
    }
    .page-slot-games__text-block,
    .page-slot-games__article-body {
        font-size: 15px;
        padding-left: 0;
        padding-right: 0;
    }
    .page-slot-games__article-figure {
        margin-left: auto;
        margin-right: auto;
        max-width: 100% !important; /* Ensure image fits */
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__article-body ol,
    .page-slot-games__article-body ul {
        padding-left: 20px;
    }

    /* 通用图片与容器 */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
    .page-slot-games__faq-qtext { font-size: 16px; }
    .page-slot-games__faq-toggle { font-size: 24px; margin-left: 10px; width: 24px; }
    details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; font-size: 15px; }
}