:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-light: #f5f5f5;
    --button-login-color: #EA7C07;
    --button-text-color: #FFFFFF;
}

.page-index-platform-features {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color); /* Default text color for light background */
    background-color: var(--secondary-color); /* Assuming body background is light */
}

/* Hero Section */
.page-index-platform-features__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding for hero section */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-index-platform-features__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
}

.page-index-platform-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.8; /* Slightly dim the image for text readability */
}

.page-index-platform-features__hero-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    color: var(--light-text-color);
    position: relative;
    z-index: 1; /* Ensure text is above image */
}

.page-index-platform-features__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-platform-features__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-index-platform-features__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-index-platform-features__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-index-platform-features__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-color);
}

/* Why Choose Us Section */
.page-index-platform-features__why-choose-us-section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.page-index-platform-features__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-platform-features__benefit-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index-platform-features__benefit-card:hover {
    transform: translateY(-5px);
}

.page-index-platform-features__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block; /* Ensure it's treated as a block for margin auto */
    margin-left: auto;
    margin-right: auto;
}

.page-index-platform-features__benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-index-platform-features__benefit-text {
    font-size: 1rem;
    color: var(--text-color);
}

/* Key Features Detail Section */
.page-index-platform-features__features-detail-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-platform-features__feature-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-index-platform-features__feature-block--reverse {
    flex-direction: row-reverse;
}

.page-index-platform-features__feature-content {
    flex: 1;
}

.page-index-platform-features__feature-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-index-platform-features__feature-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.page-index-platform-features__feature-image-wrapper {
    flex: 1;
    min-width: 300px; /* Minimum width for image wrapper */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-platform-features__feature-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Game Showcase Section */
.page-index-platform-features__game-showcase-section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.page-index-platform-features__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-platform-features__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index-platform-features__game-card:hover {
    transform: translateY(-5px);
}

.page-index-platform-features__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index-platform-features__game-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 0 15px;
    color: var(--primary-color);
}

.page-index-platform-features__game-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-index-platform-features__game-link:hover {
    background-color: #2195C9; /* Darken primary color */
}

/* Security Section */
.page-index-platform-features__security-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-platform-features__security-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-index-platform-features__security-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-index-platform-features__security-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index-platform-features__security-item-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-index-platform-features__security-item-text {
    font-size: 1rem;
    color: var(--text-color);
}

.page-index-platform-features__security-cta {
    text-align: center;
    margin-top: 40px;
}

/* Promotions Section */
.page-index-platform-features__promotions-section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.page-index-platform-features__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-platform-features__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index-platform-features__promo-card:hover {
    transform: translateY(-5px);
}

.page-index-platform-features__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-index-platform-features__promo-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 0 15px;
    color: var(--primary-color);
}

.page-index-platform-features__promo-text {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.page-index-platform-features__promo-cta {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-index-platform-features__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-index-platform-features__faq-list {
    margin-top: 40px;
}

.page-index-platform-features__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-platform-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* For details summary */
}

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

.page-index-platform-features__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
}

.page-index-platform-features__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-color);
    border-top: 1px solid #eee; /* Separator for answer */
    margin-top: -1px; /* Overlap border for cleaner look */
}

.page-index-platform-features__faq-answer p {
    margin-bottom: 15px;
}

.page-index-platform-features__faq-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.page-index-platform-features__faq-link:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-index-platform-features__final-cta-section {
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
}

.page-index-platform-features__final-cta-section .page-index-platform-features__section-title {
    color: var(--light-text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-index-platform-features__final-cta-section .page-index-platform-features__section-description {
    color: var(--light-text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-index-platform-features__final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Buttons */
.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary,
.page-index-platform-features__btn-tertiary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-index-platform-features__btn-primary {
    background-color: var(--button-login-color); /* Login color for primary CTA */
    color: var(--button-text-color);
    border: 2px solid var(--button-login-color);
}

.page-index-platform-features__btn-primary:hover {
    background-color: #D36D00; /* Darken login color */
    border-color: #D36D00; /* Darken login color */
}

.page-index-platform-features__btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

.page-index-platform-features__hero-section .page-index-platform-features__btn-secondary {
    color: var(--light-text-color);
    border-color: var(--light-text-color);
}

.page-index-platform-features__final-cta-section .page-index-platform-features__btn-secondary {
    color: var(--light-text-color);
    border-color: var(--light-text-color);
}

.page-index-platform-features__btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.page-index-platform-features__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.page-index-platform-features__btn-tertiary:hover {
    background-color: #2195C9; /* Darken primary color */
    border-color: #2195C9; /* Darken primary color */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-platform-features__hero-image-wrapper {
        max-height: 400px;
    }

    .page-index-platform-features__hero-title {
        font-size: 3rem;
    }

    .page-index-platform-features__feature-block {
        flex-direction: column;
        gap: 30px;
    }

    .page-index-platform-features__feature-block--reverse {
        flex-direction: column;
    }

    .page-index-platform-features__feature-image-wrapper {
        min-width: unset;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-index-platform-features__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-index-platform-features__hero-image-wrapper {
        max-height: 250px;
    }

    .page-index-platform-features__hero-title {
        font-size: 2rem !important;
        margin-bottom: 10px;
    }

    .page-index-platform-features__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-index-platform-features__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* 产品展示图区域 - Game Grid */
    .page-index-platform-features__game-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 0 15px;
    }
    .page-index-platform-features__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-index-platform-features__game-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* 通用图片与容器 */
    .page-index-platform-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-index-platform-features__why-choose-us-section,
    .page-index-platform-features__features-detail-section,
    .page-index-platform-features__game-showcase-section,
    .page-index-platform-features__security-section,
    .page-index-platform-features__promotions-section,
    .page-index-platform-features__faq-section,
    .page-index-platform-features__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-index-platform-features__btn-primary,
    .page-index-platform-features__btn-secondary,
    .page-index-platform-features__btn-tertiary,
    .page-index-platform-features a[class*="button"],
    .page-index-platform-features 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-index-platform-features__hero-cta-buttons,
    .page-index-platform-features__promo-cta,
    .page-index-platform-features__final-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    /* 其他内容模块 */
    .page-index-platform-features__section-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .page-index-platform-features__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-index-platform-features__benefits-grid,
    .page-index-platform-features__security-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-platform-features__benefit-card {
        padding: 20px;
    }

    .page-index-platform-features__feature-block {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .page-index-platform-features__feature-block--reverse {
        flex-direction: column;
    }

    .page-index-platform-features__feature-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .page-index-platform-features__feature-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-index-platform-features__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-index-platform-features__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px;
    }

    .page-index-platform-features__security-item {
        padding: 20px;
    }

    .page-index-platform-features__promo-card {
        padding-bottom: 15px;
    }
}