/* style/g.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --bg-color-main: #140C0C;
    --bg-color-card: #2A1212;
    --text-color-main: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-g {
    font-family: Arial, sans-serif;
    color: var(--text-color-main);
    background-color: var(--bg-color-main);
    line-height: 1.6;
}

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

.page-g__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-color-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-g__hero-content {
    position: relative;
    z-index: 1;
    margin-top: -100px; /* Pull content slightly over image, but not covering text */
    padding: 0 20px;
    max-width: 800px;
    color: var(--text-color-main);
}

.page-g__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-g__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color-main);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-g__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-g__btn-primary,
.page-g__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-g__btn-primary {
    background: var(--button-gradient);
    color: var(--text-color-main);
    border: none;
}

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

.page-g__btn-secondary {
    background: var(--bg-color-card);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-g__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: var(--gold-color);
    color: var(--bg-color-card);
}

.page-g__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-g__section-description {
    font-size: 1.1rem;
    color: var(--text-color-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__intro-section,
.page-g__gameshow-section,
.page-g__guide-section,
.page-g__advantages-section,
.page-g__faq-section,
.page-g__conclusion-section {
    padding: 60px 0;
    background-color: var(--bg-color-main);
    border-bottom: 1px solid var(--border-color);
}

.page-g__text-block {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color-main);
}

.page-g__card {
    background-color: var(--bg-color-card);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-color-main);
}

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

.page-g__gameshow-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-g__gameshow-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: brightness(0.8);
}

.page-g__gameshow-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-g__gameshow-text {
    font-size: 1rem;
    color: var(--text-color-main);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-g__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Guide Section */
.page-g__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-g__guide-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-g__guide-step-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-g__advantage-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-g__advantage-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: brightness(0.8);
}

.page-g__advantage-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-g__cta-fullwidth {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-g__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-g__faq-item {
    padding: 20px 30px;
    text-align: left;
}

.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    list-style: none;
    padding: 0;
}

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

.page-g__faq-toggle {
    font-size: 1.5rem;
    margin-left: 10px;
    color: var(--gold-color);
}

.page-g__faq-answer {
    padding-top: 15px;
    font-size: 1rem;
    color: var(--text-color-main);
    line-height: 1.7;
}

.page-g__faq-item[open] .page-g__faq-question .page-g__faq-toggle {
    content: '−';
}

/* Conclusion Section */
.page-g__conclusion-section .page-g__text-block {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* General image responsiveness */
.page-g img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-g__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

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

    .page-g__section-title {
        font-size: 2.2rem;
    }

    .page-g__gameshow-grid,
    .page-g__guide-steps,
    .page-g__advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .page-g__gameshow-image,
    .page-g__advantage-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-g__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 20px;
    }

    .page-g__hero-content {
        margin-top: -50px;
        padding: 0 15px;
    }

    .page-g__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    }

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

    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 按钮与按钮容器 */
    .page-g__btn-primary,
    .page-g__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

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

    .page-g__container,
    .page-g__intro-section,
    .page-g__gameshow-section,
    .page-g__guide-section,
    .page-g__advantages-section,
    .page-g__faq-section,
    .page-g__conclusion-section,
    .page-g__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 产品展示图区域 */
    .page-g__gameshow-grid,
    .page-g__guide-steps,
    .page-g__advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .page-g__gameshow-image,
    .page-g__advantage-image {
        height: 200px !important;
    }

    .page-g__section-title {
        font-size: 2rem !important;
    }

    .page-g__section-description {
        font-size: 1rem !important;
    }

    /* 其他内容模块 - FAQ */
    .page-g__faq-item {
        padding: 15px 20px !important;
    }
    .page-g__faq-question {
        font-size: 1.1rem !important;
    }
    .page-g__faq-answer {
        font-size: 0.95rem !important;
    }
}