/* style/blog.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-color-page: #FFFFFF;
}

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

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

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-blog__hero-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    color: var(--text-dark);
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--primary-color);
}

.page-blog__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Buttons */
.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-blog__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

.page-blog__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-blog__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
}

/* General Section Styling */
.page-blog__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

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

.page-blog__text-block--white {
    color: var(--text-light);
}

/* Light Background Sections */
.page-blog__light-bg {
    background-color: var(--background-color-page);
    color: var(--text-dark);
}

/* Dark Background Sections */
.page-blog__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Cards */
.page-blog__card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Features Section */
.page-blog__features-section {
    padding: 80px 0;
}

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

.page-blog__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-blog__feature-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-blog__feature-description {
    font-size: 0.95em;
}

/* Games Section */
.page-blog__games-section {
    padding: 80px 0;
}

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

.page-blog__game-card {
    text-align: center;
}

.page-blog__game-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-blog__game-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-blog__game-description {
    font-size: 0.9em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Download Guide Section */
.page-blog__download-guide-section {
    padding: 80px 0;
}

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

.page-blog__download-step {
    text-align: center;
}

.page-blog__step-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-blog__step-list {
    text-align: left;
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-blog__step-list li {
    margin-bottom: 8px;
}

.page-blog__step-description {
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-blog__promotions-section {
    padding: 80px 0;
}

.page-blog__promotions-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-blog__promotion-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.page-blog__promotion-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.page-blog__promotion-content {
    flex-grow: 1;
}

.page-blog__promotion-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.page-blog__promotion-description {
    font-size: 0.95em;
}

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

/* Responsibility Section */
.page-blog__responsibility-section {
    padding: 80px 0;
}

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

.page-blog__responsibility-item {
    text-align: center;
}

.page-blog__responsibility-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-blog__responsibility-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 80px 0;
}

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

.page-blog__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-dark);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    list-style: none;
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-blog__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Related Articles Section */
.page-blog__related-articles-section {
    padding: 80px 0;
}

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

.page-blog__article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.page-blog__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-blog__article-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__article-title {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.page-blog__article-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: var(--text-dark);
}

.page-blog__cta-all-articles {
    text-align: center;
    margin-top: 40px;
}

/* Conclusion Section */
.page-blog__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

.page-blog__cta-final {
    margin-top: 40px;
}

/* Global image reset for content area */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__container {
        padding: 20px 30px;
    }

    .page-blog__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }

    .page-blog__main-title {
        font-size: clamp(2em, 5vw, 2.5em);
    }

    .page-blog__features-grid,
    .page-blog__games-grid,
    .page-blog__download-steps-grid,
    .page-blog__responsibility-grid,
    .page-blog__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 20px;
    }

    .page-blog__hero-image-wrapper {
        max-height: 300px;
    }

    .page-blog__hero-content {
        margin-top: -40px;
        padding: 20px 15px;
        border-radius: 5px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 6vw, 2.2em);
        margin-bottom: 10px;
    }

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

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

    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog a[class*="button"],
    .page-blog 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: 12px 15px !important;
        font-size: 1em !important;
    }

    .page-blog__btn-small {
        padding: 10px 15px !important;
        font-size: 0.95em !important;
    }

    /* 其他内容模块 */
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-blog__text-block {
        font-size: 1em;
    }

    .page-blog__features-grid,
    .page-blog__games-grid,
    .page-blog__download-steps-grid,
    .page-blog__responsibility-grid,
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__feature-image,
    .page-blog__game-image,
    .page-blog__step-image,
    .page-blog__article-image {
        height: auto;
        max-height: 250px;
    }

    .page-blog__promotion-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-blog__promotion-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin-bottom: 15px;
    }

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

    .page-blog__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }
}