.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Custom text color for dark background */
    text-align: center;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Ensure image doesn't stretch too much */
}

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-blog__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF5E1; /* Custom text color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #FFF5E1; /* Custom text color */
}

.page-blog__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

/* General Section Styling */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #C91F17; /* Brand color for titles */
}

.page-blog__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

.page-blog__post-card {
    background-color: #D32F2F; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #FFF5E1; /* Text Main for card */
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
}

.page-blog__post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* Ensure link covers entire card */
}

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-blog__post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFF5E1; /* Text Main for card title */
}

.page-blog__post-excerpt {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #FFF5E1; /* Text Main for card excerpt */
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #F4D34D; /* Gold color for meta */
    display: block;
}

.page-blog__cta-wrapper {
    text-align: center;
}

/* Categories Section */
.page-blog__categories-section {
    background-color: #C91F17; /* Dark section background */
    color: #FFF5E1; /* Text Main color */
}

.page-blog__categories-section .page-blog__section-title,
.page-blog__categories-section .page-blog__section-description {
    color: #FFF5E1; /* Ensure text is white on dark background */
}

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

.page-blog__category-card {
    background-color: #D32F2F; /* Card BG color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #FFF5E1; /* Text Main color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-card:hover {
    background-color: #7A0E0E; /* Deep Red on hover */
    transform: translateY(-3px);
}

.page-blog__category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFF5E1; /* Text Main color */
}

.page-blog__category-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #FFF5E1; /* Text Main color */
}

/* Call to Action Section */
.page-blog__cta-section {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-blog__cta-card {
    display: flex;
    align-items: center;
    background-color: #D32F2F; /* Card BG color */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #FFF5E1; /* Text Main color */
}

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

.page-blog__cta-content {
    width: 50%;
    padding: 40px;
}

.page-blog__cta-content .page-blog__section-title {
    text-align: left;
    color: #FFF5E1; /* Text Main color */
}

.page-blog__cta-content .page-blog__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    color: #FFF5E1; /* Text Main color */
}

.page-blog__cta-content .page-blog__cta-buttons {
    justify-content: flex-start;
}

/* FAQ Section */
.page-blog__faq-section {
    background-color: #f9f9f9; /* Light background */
    color: #333333;
}

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

.page-blog__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    position: relative;
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #C91F17; /* Brand color */
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.5;
}

.page-blog__faq-answer p {
    margin-bottom: 10px;
}
.page-blog__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-blog__faq-answer a {
    color: #C91F17; /* Brand color for links */
    text-decoration: underline;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red for text on gold button */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
    background-color: #ffffff; /* White background */
    color: #C91F17; /* Brand color text */
    border: 2px solid #C91F17; /* Brand color border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__btn-secondary:hover {
    background-color: #F2B544; /* Border color on hover */
    color: #ffffff;
    border-color: #F2B544;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Image responsive base */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 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-card {
        flex-direction: column;
    }

    .page-blog__cta-image,
    .page-blog__cta-content {
        width: 100%;
    }

    .page-blog__cta-content {
        padding: 30px;
    }

    .page-blog__cta-content .page-blog__section-title,
    .page-blog__cta-content .page-blog__section-description {
        text-align: center;
    }

    .page-blog__cta-content .page-blog__cta-buttons {
        justify-content: center;
    }
}

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

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

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

    .page-blog__main-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    .page-blog__hero-description {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }

    .page-blog__hero-cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }

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

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

    /* 产品展示图区域 (Latest Posts Grid) */
    .page-blog__posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-blog__post-image {
        height: 180px !important; /* Adjust height for mobile */
    }

    /* 按钮与按钮容器 */
    .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 20px !important; /* Adjust padding for mobile */
        font-size: 1rem !important;
    }

    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        flex-direction: column !important; /* Ensure vertical stacking for multiple buttons */
    }

    /* 其他内容模块 */
    .page-blog__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    .page-blog__section-description {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .page-blog__categories-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .page-blog__category-card {
        padding: 20px !important;
    }

    .page-blog__cta-content {
        padding: 25px !important;
    }

    .page-blog__faq-item summary {
        font-size: 1rem !important;
        padding: 15px 20px !important;
    }

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