/* style/index.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-color-register: #C30808;
    --accent-color-login: #C30808;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --border-color: #e0e0e0;
}

.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--secondary-color); /* Body background is white */
}

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

.page-index__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-index__section-title--light {
    color: var(--text-color-light);
}

.page-index__section-title--light::after {
    background-color: var(--text-color-light);
}

.page-index__text-block {
    font-size: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-color-dark);
}

.page-index__text-block--light {
    color: var(--text-color-light);
}

/* HERO主图区域样式 */
.page-index__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color), #336644); /* Subtle gradient for depth */
    overflow: hidden;
}

.page-index__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-index__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-color-light);
}

.page-index__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    color: var(--text-color-light);
}

.page-index__hero-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    text-align: center;
}

.page-index__cta-button--primary {
    background: var(--accent-color-register); /* Register button color */
    color: var(--text-color-light); /* White text for contrast */
    border: 2px solid var(--accent-color-register);
}

.page-index__cta-button--primary:hover {
    background: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__cta-button--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Module 1: Introduction Section */
.page-index__introduction-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-index__feature-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 5px;
}

.page-index__feature-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index__feature-description {
    font-size: 15px;
    color: var(--text-color-dark);
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

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

.page-index__btn-quick-access {
    display: block;
    padding: 18px 25px;
    background: var(--text-color-light);
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__btn-quick-access:hover {
    background: #e0e0e0;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Module 3: Core Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-index__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__game-category-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-index__game-category-card .page-index__game-category-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
}

.page-index__game-category-card .page-index__game-category-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index__game-category-card .page-index__game-category-title a:hover {
    text-decoration: underline;
}

.page-index__game-category-description {
    font-size: 15px;
    color: var(--text-color-dark);
    padding: 0 20px 20px 20px;
}

.page-index__btn-read-more {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 20px 20px 20px;
    transition: background-color 0.3s ease;
}

.page-index__btn-read-more:hover {
    background: #005f2e;
}

.page-index__view-all-games {
    text-align: center;
    margin-top: 50px;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

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

.page-index__promotion-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__promotion-card img {
    width: 100%;
    
    object-fit: cover;
    display: block;
}

.page-index__promotion-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 15px 10px 15px;
}

.page-index__promotion-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index__promotion-title a:hover {
    text-decoration: underline;
}

.page-index__promotion-description {
    font-size: 14px;
    color: var(--text-color-dark);
    padding: 0 15px 15px 15px;
}

.page-index__btn-claim {
    display: inline-block;
    background: var(--accent-color-register);
    color: var(--text-color-light);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-index__btn-claim:hover {
    background: #a30606;
}

.page-index__view-all-promotions {
    text-align: center;
    margin-top: 50px;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-index__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__security-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__security-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__security-item img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 5px;
}

.page-index__security-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index__security-description {
    font-size: 15px;
    color: var(--text-color-dark);
}

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

/* Module 6: FAQ Section */
.page-index__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

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

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

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-index__faq-item.active .page-index__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
}

.page-index__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-index__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-index__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
    color: var(--accent-color-register);
    transform: rotate(45deg);
}

.page-index__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--text-color-dark);
    background: #f9f9f9;
    border-top: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
}

/* Module 7: Latest Blog Section */
.page-index__latest-blog-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-index__blog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-index__blog-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 15px 10px 15px;
}

.page-index__blog-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index__blog-title a:hover {
    text-decoration: underline;
}

.page-index__blog-excerpt {
    font-size: 14px;
    color: var(--text-color-dark);
    padding: 0 15px 15px 15px;
}

.page-index__view-all-news {
    text-align: center;
    margin-top: 50px;
}

/* General CTA Button Styling */
.page-index__cta-button--primary {
    background: var(--accent-color-register); /* Register button color */
    color: var(--text-color-light); /* White text for contrast */
    border: 2px solid var(--accent-color-register);
}

.page-index__cta-button--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-index__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 40px;
    }
    .page-index__hero-description {
        font-size: 18px;
    }
    .page-index__section-title {
        font-size: 28px;
    }
    .page-index__game-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-index__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__hero-image img {
        border-radius: 8px;
    }
    .page-index__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-index__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-index__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-index__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index__container {
        padding: 15px;
    }
    .page-index__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-index__text-block {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* Images responsive for mobile */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index__section, .page-index__card, .page-index__container, .page-index__hero-section, .page-index__quick-access-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__latest-blog-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__feature-item, .page-index__game-category-card, .page-index__promotion-card, .page-index__security-item, .page-index__blog-card {
        margin-bottom: 20px;
    }
    .page-index__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-index__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-index__faq-toggle {
        margin-left: 10px;
        width: 26px;
        height: 26px;
        font-size: 22px;
    }
    .page-index__faq-answer {
        padding: 0 15px;
    }
    .page-index__faq-item.active .page-index__faq-answer {
        padding: 15px !important;
    }

    .page-index__button-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-index__btn-quick-access {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 28px;
    }
    .page-index__hero-description {
        font-size: 15px;
    }
    .page-index__cta-button {
        min-width: unset;
    }
}