/* style/game-guides.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    --card-bg: #FFFFFF;
    --background-color-page: #F5F7FA;
    --text-main-color: #333333;
    --border-color: #E0E0E0;
    --header-offset: 122px; /* Placeholder, actual value from shared.css */
}

.page-game-guides {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color-page); /* Use page specific background */
    line-height: 1.6;
}

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

.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--primary-color);
}

.page-game-guides__hero-image-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8); /* Slightly darken image for text readability if needed */
}

.page-game-guides__hero-content {
    text-align: center;
    padding: 30px 20px;
    color: #ffffff; /* Light text on dark/gradient background */
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-game-guides__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    text-align: center;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

.page-game-guides__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-game-guides__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-game-guides__section {
    padding: 60px 0;
    background-color: var(--card-bg);
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-guides__section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-game-guides__sub-title {
    font-size: 1.6rem;
    color: var(--text-main-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-game-guides__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-game-guides__text-link:hover {
    text-decoration: underline;
}

.page-game-guides__image-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.page-game-guides__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.page-game-guides__read-more-btn {
    margin-top: 20px;
}

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

.page-game-guides__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
}

.page-game-guides__card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-main-color);
}

.page-game-guides__faq-section {
    background-color: var(--background-color-page);
    padding: 60px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-game-guides__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-game-guides__faq-item[open] > .page-game-guides__faq-question {
    background-color: #f0f0f0;
    border-bottom-color: transparent;
}

.page-game-guides__faq-question::-webkit-details-marker, /* Hide default marker */
.page-game-guides__faq-question::marker {
    display: none;
}

.page-game-guides__faq-question:hover {
    background-color: #e8e8e8;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg);
}

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

.page-game-guides__faq-answer p {
    margin-bottom: 10px;
}

.page-game-guides__faq-answer .page-game-guides__btn-secondary {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.page-game-guides__conclusion-section {
    text-align: center;
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__conclusion-section .page-game-guides__section-title,
.page-game-guides__conclusion-section .page-game-guides__text-block {
    color: #ffffff;
}

.page-game-guides__conclusion-section .page-game-guides__text-link {
    color: var(--secondary-color);
}

.page-game-guides__conclusion-section .page-game-guides__cta-buttons {
    margin-top: 40px;
}

.page-game-guides__footer-info {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    background-color: #333;
    color: #f0f0f0;
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-game-guides__hero-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .page-game-guides__section-title {
        font-size: 2rem;
    }

    .page-game-guides__sub-title {
        font-size: 1.4rem;
    }

    .page-game-guides__card-title {
        font-size: 1.2rem;
    }

    .page-game-guides__faq-question {
        font-size: 1.05rem;
        padding: 15px 20px;
    }

    .page-game-guides__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-game-guides__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }
    .page-game-guides__hero-content {
        padding: 20px 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-game-guides__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    .page-game-guides__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__container,
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__grid-container,
    .page-game-guides__hero-image-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-game-guides__section {
        padding: 30px 0;
    }
    .page-game-guides__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-game-guides__sub-title {
        font-size: 1.3rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .page-game-guides__text-block {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* 按钮与按钮容器 */
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-game-guides 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 !important;
        padding-right: 15px !important;
        margin: 5px 0; /* Adjust spacing for stacked buttons */
    }
    .page-game-guides__cta-buttons,
    .page-game-guides__button-group,
    .page-game-guides__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* 其他内容模块 (e.g., Cards, FAQ) */
    .page-game-guides__grid-container {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }
    .page-game-guides__card {
        padding: 20px;
    }
    .page-game-guides__card-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    .page-game-guides__card-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .page-game-guides__faq-question {
        font-size: 1rem;
        padding: 15px 15px;
    }
    .page-game-guides__faq-answer {
        padding: 10px 15px 15px;
        font-size: 0.95rem;
    }
    .page-game-guides__conclusion-section {
        padding: 40px 15px;
    }
    .page-game-guides__footer-info {
        padding: 15px;
    }
}