:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #f4f4f4; /* From shared.css body background */
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background-color: var(--background-light);
}

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

.page-index__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-index__text-block {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.page-index__text-block--light {
    color: rgba(255, 255, 255, 0.85);
}

.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* For mobile button responsiveness */
    word-wrap: break-word; /* For mobile button responsiveness */
}

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

.page-index__cta-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-index__btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-index__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__button-center {
    text-align: center;
    margin-top: 40px;
}

/* Image base styles */
.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 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); /* Ensures space below fixed header */
    background: linear-gradient(135deg, var(--primary-color), #1a2f4a); /* Gradient for aesthetic */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.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 background effects */
}

.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 30px rgba(0, 0, 0, 0.3);
}

.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;
    color: var(--secondary-color);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

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

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

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

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

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

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

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

.page-index__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    max-width: 100%; /* Ensure container respects mobile width */
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-index__games-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;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

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

.page-index__game-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__game-title a:hover {
    color: var(--secondary-color);
}

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

.page-index__card-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 12px 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

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

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

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

.page-index__promo-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

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

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

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

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