/* style/index.css */
.page-index {
    color: #333333;
    background-color: var(--secondary-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-index__section-padding {
    padding: 60px 20px;
}

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

.page-index__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

.page-index__section-title--light {
    color: #FFFFFF;
}

.page-index__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__section-description--light {
    color: #f0f0f0;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__cta-button:hover {
    background: #d46c06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--dark {
    background: #26A9E0;
}

.page-index__cta-button--dark:hover {
    background: #1e87bb;
}

.page-index__cta-button--light {
    background: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-index__cta-button--light:hover {
    background: #f0f0f0;
    color: #1e87bb;
    border-color: #1e87bb;
}

/* HERO主图区域样式 */
.page-index__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.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: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.page-index__hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: #26A9E0;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.page-index__hero-content p {
    font-size: 20px;
    color: #555555;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Module 1: Intro Section */
.page-index__intro-content {
    text-align: center;
}

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

.page-index__feature-item {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-index__feature-item img {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 5px;
}

.page-index__feature-item h3 {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-index__feature-item p {
    font-size: 16px;
    color: #666666;
}

/* Module 2: Quick Access Section */
.page-index__dark-section {
    background: #26A9E0;
    color: #FFFFFF;
}

.page-index__quick-access-section .page-index__section-title {
    color: #FFFFFF;
}

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

.page-index__access-btn {
    display: block;
    padding: 15px 25px;
    background: #FFFFFF;
    color: #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 17px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFFFFF;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__access-btn:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

.page-index__access-btn--primary {
    background: #EA7C07;
    color: #FFFFFF;
    border-color: #EA7C07;
}

.page-index__access-btn--primary:hover {
    background: #d46c06;
    border-color: #d46c06;
}

/* Module 3: Games Section */
.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__game-card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    border: 1px solid #e0e0e0;
}

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

.page-index__game-card h3 {
    font-size: 22px;
    color: #26A9E0;
    margin: 20px 15px 10px 15px;
}

.page-index__game-card p {
    font-size: 16px;
    color: #666666;
    padding: 0 15px 20px 15px;
}

.page-index__game-link {
    display: inline-block;
    padding: 10px 25px;
    background: #EA7C07;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-index__game-link:hover {
    background: #d46c06;
}

/* Module 4: Promotions Section */
.page-index__light-bg {
    background: #f9f9f9;
}

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

.page-index__promo-card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    border: 1px solid #e0e0e0;
}

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

.page-index__promo-card h3 {
    font-size: 20px;
    color: #26A9E0;
    margin: 20px 15px 10px 15px;
}

.page-index__promo-card p {
    font-size: 15px;
    color: #666666;
    padding: 0 15px 20px 15px;
}

.page-index__promo-link {
    display: inline-block;
    padding: 8px 20px;
    background: #26A9E0;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.page-index__promo-link:hover {
    background: #1e87bb;
}

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

/* Module 5: Security & Support Section */
.page-index__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__security-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__security-item img {
    width: 100%;
    height: auto;
    
    margin: 0 auto 20px auto;
    display: block;
}

.page-index__security-item h3 {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-index__security-item p {
    font-size: 16px;
    color: #f0f0f0;
}

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

/* Module 6: FAQ Section */
details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-index__faq-item summary.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
    display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
    background: #f5f5f5;
}
.page-index__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}

/* Module 7: Blog Section */
.page-index__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__blog-card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

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

.page-index__blog-card h3 {
    font-size: 20px;
    color: #26A9E0;
    margin: 20px 15px 10px 15px;
    flex-grow: 1;
}

.page-index__blog-card h3 a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
    color: #1e87bb;
    text-decoration: underline;
}

.page-index__blog-card p {
    font-size: 15px;
    color: #666666;
    padding: 0 15px;
}

.page-index__blog-meta {
    font-size: 14px;
    color: #999999;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-index__blog-link {
    display: inline-block;
    padding: 8px 20px;
    background: #EA7C07;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 20px 15px 20px 15px;
    transition: background-color 0.3s ease;
}

.page-index__blog-link:hover {
    background: #d46c06;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-content h1 {
        font-size: 38px;
    }
    .page-index__hero-content p {
        font-size: 18px;
    }
    .page-index__section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page-index__section-padding {
        padding: 40px 15px;
    }
    .page-index__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-index__hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }
    .page-index__hero-content p {
        font-size: 16px;
    }
    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-index__access-links {
        grid-template-columns: 1fr;
    }
    .page-index__access-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-index__game-grid, .page-index__promo-grid, .page-index__security-grid, .page-index__blog-grid {
        grid-template-columns: 1fr;
    }
    .page-index__game-card img, .page-index__promo-card img, .page-index__blog-card img {
        
    }
    .page-index__feature-item img, .page-index__security-item img {
        
    }
    .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-container, .page-index__access-links, .page-index__all-promos-cta, .page-index__all-posts-cta, .page-index__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    details.page-index__faq-item summary.page-index__faq-question { padding: 15px; }
    .page-index__faq-qtext { font-size: 15px; }
}

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