:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --card-bg: #10233F;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Assuming this is the body background from shared.css */
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-blog {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text on dark body background */
    background-color: var(--deep-navy); /* Ensure consistency if body background isn't applying */
    line-height: 1.6;
    padding-bottom: 40px; /* General bottom padding */
}

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--deep-navy);
}

.page-blog__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp as requested */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-blog__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-blog__btn--primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__btn--secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(242, 193, 78, 0.1);
}

/* General Section Styling */
.page-blog__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.page-blog__text-block {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* About Blog Section */
.page-blog__about-blog {
    padding: 60px 0;
    background-color: var(--card-bg); /* Using a slightly lighter dark for contrast */
    color: var(--text-main);
}
.page-blog__about-blog .page-blog__text-block {
    color: var(--text-main); /* Ensure text is light on this background */
}

/* Featured Articles */
.page-blog__featured-articles {
    padding: 60px 0;
    background-color: var(--deep-navy); /* Dark background */
    color: var(--text-main);
}

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

.page-blog__article-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

.page-blog__card-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    height: 220px; /* Fixed height for consistency */
}

.page-blog__card-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block; /* Ensure no extra space below image */
}

.page-blog__article-card:hover .page-blog__card-figure img {
    transform: scale(1.05);
}

.page-blog__card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-main);
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 600;
}

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

.page-blog__card-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.page-blog__card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-blog__card-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 10px;
}

.page-blog__read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

.page-blog__read-more:hover {
    color: var(--gold-color);
}

/* Latest Articles */
.page-blog__latest-articles {
    padding: 60px 0;
    background-color: var(--card-bg); /* Using a slightly lighter dark for contrast */
    color: var(--text-main);
}
.page-blog__latest-articles .page-blog__section-title,
.page-blog__latest-articles .page-blog__section-description {
    color: var(--text-main);
}

.page-blog__article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-blog__list-item {
    background-color: var(--deep-navy);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.page-blog__list-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-blog__list-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.page-blog__list-item img {
    width: 250px;
    
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

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

.page-blog__list-title {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.page-blog__list-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit excerpt to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-blog__list-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

/* Why Choose Section */
.page-blog__why-choose {
    padding: 60px 0;
    background-color: var(--deep-navy);
    color: var(--text-main);
}

.page-blog__feature-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-blog__feature-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__feature-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-blog__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.page-blog__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--secondary-color); /* Use secondary color for a different look */
    color: var(--text-main);
}
.page-blog__cta-section .page-blog__cta-title {
    color: var(--text-main); /* Ensure white text on secondary color background */
}
.page-blog__cta-section .page-blog__cta-description {
    color: var(--text-main); /* Ensure white text on secondary color background */
}

.page-blog__cta-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-main);
}

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

/* Image specific styles - for all images */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-blog__section-title {
        font-size: 2rem;
    }
    .page-blog__cta-title {
        font-size: 1.8rem;
    }
    .page-blog__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-blog__list-item img {
        width: 200px;
        
    }
    .page-blog__list-title {
        font-size: 1.1rem;
    }
    .page-blog__list-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-blog__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .page-blog__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }
    .page-blog__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;
        padding-right: 15px;
    }

    /* 2. 单栏长文容器 */
    .page-blog__container {
        padding: 0 15px !important; /* Smaller padding for mobile */
    }
    .page-blog__about-blog,
    .page-blog__featured-articles,
    .page-blog__latest-articles,
    .page-blog__why-choose,
    .page-blog__cta-section {
        padding: 40px 0;
    }
}