/* General styling for .page-blog */
.page-blog {
    font-family: Arial, sans-serif;
    color: var(--text-main, #F2FFF6);
    background-color: var(--background, #08160F);
    line-height: 1.6;
    padding-bottom: 40px;
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: var(--gold, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* HERO Section */
.page-blog__hero-section {
    padding-top: 10px;
    background: linear-gradient(180deg, var(--deep-green, #0A4B2C) 0%, var(--background, #08160F) 100%);
    padding-bottom: 60px;
}

.page-blog__hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    gap: 40px;
}

.page-blog__hero-text-block {
    flex: 1;
    max-width: 50%;
}

.page-blog__hero-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-blog__hero-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__hero-cta-button:hover {
    transform: translateY(-3px);
}

.page-blog__hero-image-block {
    flex: 1;
    max-width: 50%;
    text-align: right;
}

.page-blog__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    padding: 60px 0;
}

.page-blog__blog-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.page-blog__blog-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-blog__blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__blog-card-title {
    font-size: 1.4em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
    flex-grow: 1;
}

.page-blog__blog-card-excerpt {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 15px;
}

.page-blog__blog-card-date {
    font-size: 0.85em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 15px;
}

.page-blog__blog-card-read-more {
    display: inline-block;
    color: var(--glow, #57E38D);
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
}

.page-blog__view-all-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__view-all-button:hover {
    background: var(--deep-green, #0A4B2C);
}

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: var(--deep-green, #0A4B2C);
}

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

.page-blog__category-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-blog__category-title {
    font-size: 1.3em;
    color: var(--text-main, #F2FFF6);
    font-weight: bold;
}

/* Call to Action Section */
.page-blog__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(90deg, var(--main-color, #11A84E) 0%, var(--secondary-color, #22C768) 100%);
    color: #ffffff;
}

.page-blog__cta-content {
    max-width: 800px;
}

.page-blog__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

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

.page-blog__btn-primary {
    background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
    color: #ffffff;
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    background: #13994A;
}

.page-blog__btn-secondary {
    background: #ffffff;
    color: var(--main-color, #11A84E);
    border: 2px solid var(--main-color, #11A84E);
}

.page-blog__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--main-color, #11A84E);
    color: #ffffff;
}

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

/* CSS variables for color scheme */
:root {
    --main-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }

    .page-blog__hero-content-wrapper {
        flex-direction: column-reverse;
        padding: 30px 15px;
        gap: 30px;
    }

    .page-blog__hero-text-block {
        max-width: 100%;
        text-align: center;
    }

    .page-blog__hero-title {
        font-size: 2em;
    }

    .page-blog__hero-description {
        font-size: 1em;
    }

    .page-blog__hero-image-block {
        max-width: 100%;
        text-align: center;
    }

    .page-blog__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Latest Posts Section */
    .page-blog__latest-posts-section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 20px;
    }

    .page-blog__blog-masonry {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-blog__blog-card-image {
        height: 180px;
    }

    /* Categories Section */
    .page-blog__categories-section {
        padding: 40px 0;
    }

    .page-blog__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .page-blog__category-image {
        height: 150px;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 50px 0;
    }

    .page-blog__cta-title {
        font-size: 2em;
    }

    .page-blog__cta-description {
        font-size: 1em;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        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;
    }

    /* Universal image & container mobile adaptation */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-content-wrapper,
    .page-blog__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Placeholder for "必写清单" items that are not applicable to this page's HTML, but must exist in CSS */
    /* 长文金框区 (page-blog__home-content) */
    .page-blog__home-content {
        height: auto !important;
        overflow-y: visible !important;
        padding: 20px !important;
    }
    .page-blog__home-content h2 {
        font-size: 1.5em !important;
    }

    /* 游戏轮播 (page-blog__slider-wrapper) */
    .page-blog__slider-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .page-blog__slider-track {
        flex-wrap: nowrap !important;
        display: flex !important;
    }
    .page-blog__game-slide {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }

    /* 合作品牌六宫格 (page-blog__banners-top-wrapper) */
    .page-blog__banners-top-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .page-blog__banner-item img {
        
        
    }

    /* 博客卡片区 (page-blog__blog-slider-track) - My HTML uses masonry, not slider, but including for completeness per instructions */
    .page-blog__blog-slider-track {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
    }
    .page-blog__blog-slide {
        flex: 0 0 90% !important;
        max-width: 90% !important;
    }
}