/* style/index.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接）；HERO 主图须用 img 显示，禁止用 background-image */

.page-index {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

@media (max-width: 768px) {
    .page-index {
        padding-top: var(--header-offset, 80px); /* Adjust offset for mobile if header is smaller */
    }
}

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

/* Section Titles and Descriptions */
.page-index__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: bold;
}

.page-index__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Buttons General Styling */
.page-index__button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.page-index__button--register {
    background-color: #000000; /* Black for register background */
    color: #FFFFFF; /* White for register text */
    border: 2px solid #000000;
}

.page-index__button--register:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-index__button--login {
    background-color: #FCBC45; /* Yellow for login background */
    color: #000000; /* Black for login text */
    border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__button--download {
    background-color: #FCBC45; /* Yellow for download background */
    color: #000000; /* Black for download text */
    border: 2px solid #FCBC45;
}

.page-index__button--download:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__button--play,
.page-index__button--bet,
.page-index__button--claim {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 10px 25px;
    font-size: 1em;
}

.page-index__button--play:hover,
.page-index__button--bet:hover,
.page-index__button--claim:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__button--secondary {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.page-index__button--secondary:hover {
    background-color: #000000;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-index__button--details {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 10px 25px;
    font-size: 1em;
}

.page-index__button--details:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-index__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-index__button-group--center {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF; /* Ensure background is white */
    padding-bottom: 60px; /* Add some padding below content */
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px 0; /* Padding top is handled by main, this is content specific */
    max-width: 900px;
    margin: 0 auto;
}

.page-index__hero-title {
    font-size: 3.5em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.page-index__hero-description {
    font-size: 1.3em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.page-index__hero-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

.page-index__hero-image {
    display: block;
    width: 100%; /* Ensure image fills its wrapper */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* About Section */
.page-index__about-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-index__about-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-index__about-item-image {
    width: 100%; /* Ensures image fits within card */
    max-width: 400px; /* Max width for image */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image width */
    min-height: 200px; /* Minimum image height */
}

.page-index__about-item-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__about-item-text {
    font-size: 1em;
    color: #666666;
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-index__game-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-index__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum image width */
    min-height: 200px; /* Minimum image height */
}

.page-index__game-card-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__game-card-title a {
    color: #000000;
    text-decoration: none;
}

.page-index__game-card-title a:hover {
    color: #FCBC45;
}

.page-index__game-card-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-index__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-index__promo-card-image {
    width: 100%;
    height: 225px; /* Fixed height for promo images (16:9 aspect ratio for 400x225) */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum image width */
    min-height: 200px; /* Minimum image height */
}

.page-index__promo-card-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__promo-card-text {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px;
    margin-bottom: 20px;
}

/* Mobile App Section */
.page-index__mobile-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-index__mobile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.page-index__mobile-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-index__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-index__mobile-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum image width */
    min-height: 200px; /* Minimum image height */
}

/* Resources Section */
.page-index__resources-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-index__resource-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-index__resource-card-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__resource-card-title a {
    color: #000000;
    text-decoration: none;
}

.page-index__resource-card-title a:hover {
    color: #FCBC45;
}

.page-index__resource-card-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-index__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-index__faq-question {
    font-size: 1.2em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__faq-answer {
    font-size: 1em;
    color: #666666;
}

/* Detail Pages Section */
.page-index__detail-pages-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-index__detail-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-index__detail-card-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__detail-card-title a {
    color: #000000;
    text-decoration: none;
}

.page-index__detail-card-title a:hover {
    color: #FCBC45;
}

.page-index__detail-card-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

/* CTA Section */
.page-index__cta-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background for strong CTA */
    color: #FFFFFF;
    text-align: center;
}

.page-index__cta-container {
    max-width: 900px;
}

.page-index__cta-title {
    font-size: 2.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__cta-buttons .page-index__button--register {
    background-color: #FFFFFF; /* White button on black background */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-index__cta-buttons .page-index__button--register:hover {
    background-color: #e0e0e0;
}

.page-index__cta-buttons .page-index__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__cta-buttons .page-index__button--login:hover {
    background-color: #e0a53b;
}

/* Floating CTA */
.page-index__floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.page-index__floating-button {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.page-index__floating-button--register {
    background-color: #000000;
    color: #FFFFFF;
}

.page-index__floating-button--register:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__floating-button--login {
    background-color: #FCBC45;
    color: #000000;
}

.page-index__floating-button--login:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-description {
        font-size: 1em;
    }
    .page-index__about-grid,
    .page-index__games-grid,
    .page-index__promotions-grid,
    .page-index__resources-grid,
    .page-index__detail-pages-grid {
        grid-template-columns: 1fr;
    }
    .page-index__mobile-container {
        flex-direction: column;
        text-align: center;
    }
    .page-index__mobile-content {
        text-align: center;
    }
    .page-index__cta-title {
        font-size: 1.8em;
    }
    .page-index__cta-description {
        font-size: 1em;
    }
    .page-index__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__floating-cta {
        flex-direction: column;
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
    .page-index__floating-button {
        width: 150px; /* Fixed width for mobile floating buttons */
        margin: 0 auto;
    }
}

/* Ensure all images are at least 200x200px or larger and no filter */
.page-index img {
    min-width: 200px;
    min-height: 200px;
    /* No filter property */
}

/* Specific overrides for mobile to ensure image responsiveness and no overflow */
@media (max-width: 768px) {
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    .page-index__hero-image {
        max-width: 100%;
        height: auto;
    }
    .page-index__about-item-image,
    .page-index__game-card-image,
    .page-index__promo-card-image,
    .page-index__mobile-image {
        max-width: 100%;
        height: auto; /* Allow height to adjust naturally */
    }
}