.page-blog {
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
    font-family: sans-serif; /* Roboto气质 */
    line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, then row for desktop */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles main offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #100224 0%, #0A0A0A 100%); /* Deep purple black gradient */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-blog__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2rem, 4vw, 3rem); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #F2C14E, #FFD36B); /* Gold to Orange gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for non-webkit */
}

.page-blog__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    color: #111111; /* Dark text for light button */
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

/* Posts Section */
.page-blog__posts-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Main color */
}

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

.page-blog__post-card {
    background-color: #111111; /* Card BG */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3A2A12; /* Border color */
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-blog__post-thumbnail {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* Ensure min size for content images */
    min-width: 200px;
    min-height: 200px;
}

.page-blog__post-content {
    padding: 20px;
}

.page-blog__post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD36B; /* Auxiliary color */
    line-height: 1.3;
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: #F2C14E; /* Main color */
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #F2C14E;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #FFD36B; /* Auxiliary color */
    border-color: #FFD36B;
}

/* Pagination */
.page-blog__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.page-blog__pagination-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    color: #FFF6D6; /* Text Main */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-item:hover {
    background-color: #F2C14E; /* Main color */
    border-color: #F2C14E;
    color: #111111; /* Dark text for light button */
}

.page-blog__pagination-item--active {
    background-color: #F2C14E; /* Main color */
    border-color: #F2C14E;
    color: #111111; /* Dark text for light button */
}

/* CTA Section at bottom */
.page-blog__cta-section {
    background-color: #111111; /* Card BG */
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #3A2A12; /* Border color */
}

.page-blog__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #F2C14E; /* Main color */
}

.page-blog__cta-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #FFF6D6; /* Text Main */
}

.page-blog__cta-button--large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-blog__hero-section {
        flex-direction: row;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .page-blog__hero-image-wrapper {
        flex: 1;
        margin-bottom: 0;
        margin-right: 40px;
    }

    .page-blog__hero-content {
        flex: 1;
        max-width: none;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .page-blog__container {
        padding: 15px;
    }

    .page-blog__hero-image-wrapper {
        margin-bottom: 20px;
    }

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

    .page-blog__description {
        font-size: 1rem;
    }

    .page-blog__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

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

    /* Important: prevent image overflow on mobile */
    .page-blog__posts-grid img,
    .page-blog__hero-image {
        max-width: 100%;
        height: auto;
    }

    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .page-blog__cta-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-blog__cta-button--large {
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
    }
}

@media (max-width: 549px) {
    .page-blog__hero-section {
        padding-bottom: 40px;
    }

    .page-blog__hero-image-wrapper {
        border-radius: 0; /* Make hero image full width on smallest screens */
    }

    .page-blog__hero-image {
        border-radius: 0;
    }

    .page-blog__posts-section {
        padding: 40px 0;
    }

    .page-blog__cta-section {
        padding: 60px 20px;
    }
}