:root {
    --main-color: #113B7A;
    --secondary-color: #1D5FD1;
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--deep-navy); /* Assumed body background from shared.css */
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp as per H1 rule */
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.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: 10px; /* As per fixed header offset rule */
    background-color: var(--main-color); /* Fallback background */
    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;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
    /* Hero image is above content as per "上图下文" rule */
}

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

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Constrain content width */
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Subtle background for readability */
    border-radius: 12px;
}

/* Intro Section */
.page-index__intro-section {
    padding: 80px 20px;
    background-color: var(--card-bg); /* Dark background */
    color: var(--text-main);
}

.page-index__intro-section h2 {
    color: var(--text-main);
}

/* Quick Access Section */
.page-index__quick-access-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-index__quick-access-section h2 {
    color: #333333;
}

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

.page-index__access-card {
    background: var(--card-bg); /* Dark card background */
    color: var(--text-main);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

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

.page-index__access-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.page-index__access-card h3 {
    color: var(--gold-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-index__access-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1; /* Ensure consistent height */
}

.page-index__backup-links {
    background: #f0f0f0; /* Lighter background for backup links */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-index__backup-links h3 {
    color: #333333;
    margin-bottom: 20px;
}

.page-index__backup-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-index__backup-links li {
    margin: 0;
}

.page-index__backup-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--main-color);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-index__backup-link:hover {
    background: var(--secondary-color);
}

/* Games Section */
.page-index__games-section {
    padding: 80px 20px;
    background-color: var(--deep-navy); /* Dark background */
    color: var(--text-main);
}

.page-index__games-section h2 {
    color: var(--text-main);
}

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

.page-index__game-card {
    background: var(--card-bg); /* Dark card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.page-index__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
}

.page-index__game-card h3 {
    padding: 15px 20px 5px;
    color: var(--gold-color);
    font-size: 1.4rem;
}

.page-index__game-card h3 a {
    color: inherit;
    text-decoration: none;
}

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

.page-index__game-card p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 20px;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-index__promotions-section h2,
.page-index__promotions-section p {
    color: #333333;
}

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

.page-index__promo-card {
    background: #ffffff; /* White card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    color: #333333;
}

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

.page-index__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-index__promo-card h3 {
    padding: 15px 20px 5px;
    color: var(--main-color);
    font-size: 1.3rem;
}

.page-index__promo-card p {
    padding: 0 20px 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.page-index__promo-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--main-color);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
    background: var(--secondary-color);
}

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

/* Security Section */
.page-index__security-section {
    padding: 80px 20px;
    background-color: var(--main-color); /* Main brand color background */
    color: var(--text-main);
}

.page-index__security-section h2 {
    color: var(--text-main);
}

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

.page-index__security-item {
    background: var(--card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index__security-item img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
}

.page-index__security-item h3 {
    color: var(--gold-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-index__security-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.page-index__contact-info {
    margin-top: 50px;
    text-align: center;
    color: var(--text-secondary);
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 20px;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-index__faq-section h2 {
    color: #333333;
}

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

details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
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;
    color: #333333;
}
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: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--main-color);
}
.page-index__faq-toggle {
    font-size: 26px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: #555555;
}
.page-index__faq-answer p {
    margin-bottom: 0;
}

/* Blog Section */
.page-index__blog-section {
    padding: 80px 20px;
    background-color: var(--card-bg); /* Dark background */
    color: var(--text-main);
}

.page-index__blog-section h2,
.page-index__blog-section p {
    color: var(--text-main);
}

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

.page-index__blog-card {
    background: var(--deep-navy); /* Even darker background for blog cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

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

.page-index__blog-card img {
    width: 100%;
    height: 220px; /* Fixed height for blog images */
    object-fit: cover;
    display: block;
}

.page-index__blog-card h3 {
    padding: 15px 20px 5px;
    color: var(--gold-color);
    font-size: 1.3rem;
}

.page-index__blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

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

.page-index__blog-card p {
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-index__blog-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0 20px;
    margin-bottom: 10px;
}

.page-index__read-more {
    display: inline-block;
    margin: 15px 20px 20px;
    color: var(--glow-color);
    font-weight: bold;
}

.page-index__read-more:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

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

/* Copyright Section */
.page-index__copyright-section {
    padding: 30px 20px;
    background-color: #f0f0f0; /* Light background */
    color: #555555; /* Dark text */
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-image img {
        border-radius: 8px;
    }
    .page-index__hero-content {
        padding: 15px;
        border-radius: 8px;
    }
    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-index__access-grid,
    .page-index__games-grid,
    .page-index__promo-grid,
    .page-index__security-content,
    .page-index__blog-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding-top: 10px !important; /* Fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index__hero-image img {
        border-radius: 6px;
    }
    .page-index__hero-content {
        padding: 10px;
        border-radius: 6px;
    }
    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 20px;
    }
    h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .page-index__container {
        padding: 15px;
    }

    /* Images */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index__hero-image img,
    .page-index__access-card img,
    .page-index__game-card img,
    .page-index__promo-card img,
    .page-index__security-item img,
    .page-index__blog-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Override fixed heights */
    }

    .page-index__game-card img,
    .page-index__promo-card img,
    .page-index__blog-card img {
         /* Smaller fixed height for mobile cards */
    }

    .page-index__section,
    .page-index__card,
    .page-index__container,
    .page-index__intro-section,
    .page-index__quick-access-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__security-section,
    .page-index__faq-section,
    .page-index__blog-section,
    .page-index__copyright-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons */
    .page-index__cta-button,
    .page-index__promo-button,
    .page-index__backup-link {
        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__access-grid,
    .page-index__backup-links ul {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__backup-links li {
        width: 100%;
    }
    .page-index__backup-link {
        display: block; /* Make backup links block level on mobile */
    }

    /* FAQ */
    details.page-index__faq-item summary.page-index__faq-question { padding: 15px; }
    .page-index__faq-qtext { font-size: 15px; }
    details.page-index__faq-item .page-index__faq-answer { padding: 0 15px 15px; }
}

@media (max-width: 480px) {
    .page-index__hero-image img {
        border-radius: 4px;
    }
    .page-index__hero-content {
        padding: 8px;
        border-radius: 4px;
    }
    .page-index__cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-index__access-card img {
        
    }
}