/* style/g.css */

/* Base Styles */
.page-g {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
    line-height: 1.6;
}

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

.page-g__section {
    padding: 60px 0;
}

.page-g__section-title {
    font-size: 2.5em;
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-g__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-g a {
    color: #E53935;
    text-decoration: none;
}

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

/* Buttons */
.page-g__btn-primary,
.page-g__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-g__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
}

.page-g__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-g__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-g__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-g__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-g__cta-buttons--center {
    justify-content: center;
}

/* Hero Section */
.page-g__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-g__hero-content {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    margin-top: -5px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.page-g__main-title {
    color: #E53935;
    font-size: clamp(2em, 4vw, 3.5em);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.page-g__hero-description {
    font-size: 1.2em;
    color: #333333;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Intro Section */
.page-g__intro-section {
    background-color: #ffffff; /* Card BG */
    border-bottom: 1px solid #E0E0E0; /* Border */
}

/* How to Join Section */
.page-g__how-to-join-section {
    background-color: #E53935; /* Dark BG */
    color: #ffffff;
}

.page-g__how-to-join-section .page-g__section-title,
.page-g__how-to-join-section .page-g__step-title,
.page-g__how-to-join-section .page-g__step-description {
    color: #ffffff;
}

.page-g__how-to-join-section a {
    color: #FF5A4F;
}

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

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

.page-g__step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-g__step-description {
    font-size: 1em;
    line-height: 1.5;
}

/* Gameshow Section */
.page-g__gameshow-section {
    background-color: #F5F7FA;
}

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

.page-g__gameshow-card {
    background-color: #ffffff; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #E0E0E0; /* Border */
}

.page-g__gameshow-card:hover {
    transform: translateY(-5px);
}

.page-g__gameshow-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-g__gameshow-title {
    font-size: 1.5em;
    padding: 15px 20px 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-g__gameshow-title a {
    color: #333333;
    text-decoration: none;
}

.page-g__gameshow-title a:hover {
    color: #E53935;
    text-decoration: underline;
}

.page-g__gameshow-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 20px;
}

/* Advantages Section */
.page-g__advantages-section {
    background-color: #ffffff; /* Card BG */
    border-top: 1px solid #E0E0E0; /* Border */
}

.page-g__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-g__advantage-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-g__advantage-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #E53935;
}

/* FAQ Section */
.page-g__faq-section {
    background-color: #E53935; /* Dark BG */
    color: #ffffff;
}

.page-g__faq-section .page-g__section-title,
.page-g__faq-section .page-g__faq-qtext,
.page-g__faq-section .page-g__faq-toggle,
.page-g__faq-section .page-g__faq-answer p {
    color: #ffffff;
}

.page-g__faq-section a {
    color: #FF5A4F;
}

.page-g__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-g__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.page-g__faq-question::-webkit-details-marker {
    display: none;
}

.page-g__faq-question::marker {
    display: none;
}

.page-g__faq-qtext {
    flex-grow: 1;
}

.page-g__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

.page-g__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
}

/* CTA Banner Section */
.page-g__cta-banner-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 0;
}

.page-g__cta-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-g__cta-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

.page-g__cta-banner-title {
    color: #ffffff;
    font-size: clamp(1.8em, 3.5vw, 3em);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-g__cta-banner-description {
    color: #f0f0f0;
    font-size: 1.1em;
    max-width: 700px;
    margin-bottom: 30px;
}

.page-g__cta-banner-description a {
    color: #FF5A4F;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-g__section-title {
        font-size: 2em;
    }

    .page-g__main-title {
        font-size: clamp(1.8em, 4vw, 3em);
    }

    .page-g__hero-description {
        font-size: 1.1em;
    }

    .page-g__step-title {
        font-size: 1.6em;
    }

    .page-g__gameshow-image {
        height: 200px;
    }

    .page-g__gameshow-title {
        font-size: 1.3em;
    }

    .page-g__faq-question {
        font-size: 1.1em;
    }

    .page-g__cta-banner-title {
        font-size: clamp(1.5em, 3.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-g {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-g__container {
        padding: 0 15px;
    }

    .page-g__section {
        padding: 40px 0;
    }

    /* HERO 主图区域 */
    .page-g__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-g__hero-content {
        padding: 20px 15px;
    }

    .page-g__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em) !important;
        margin-bottom: 10px;
    }

    .page-g__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-g__section,
    .page-g__container,
    .page-g__gameshow-grid,
    .page-g__gameshow-card,
    .page-g__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-g__btn-primary,
    .page-g__btn-secondary,
    .page-g a[class*="button"],
    .page-g a[class*="btn"] {
        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-g__gameshow-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-g__gameshow-image {
        height: 180px;
    }

    /* Other content modules */
    .page-g__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-g__step-card {
        padding: 25px 15px;
    }

    .page-g__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-g__faq-answer {
        padding: 0 20px 15px;
    }

    .page-g__cta-banner-title {
        font-size: clamp(1.2em, 5vw, 2em) !important;
    }

    .page-g__cta-banner-description {
        font-size: 0.9em;
    }
}