:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --background-color: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
}

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

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color);
    overflow: hidden;
    padding-bottom: 60px;
}

.page-blog__hero-image {
    width: 100%;
    height: 600px; /* Adjust height as needed for visual impact */
    object-fit: cover;
    display: block;
    filter: brightness(0.4); /* Darken image for text readability */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 0; /* Adjust padding to separate from image top */
    text-align: center;
    color: var(--text-main); /* Ensure light text on dark image */
}

.page-blog__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.4);
}

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

.page-blog__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.4);
}

/* Posts Section */
.page-blog__posts-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-blog__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-blog__post-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__post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 165, 58, 0.3);
}

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

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

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

.page-blog__post-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__post-meta {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 15px;
    color: #ccc;
    line-height: 1.5;
}

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

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: var(--deep-orange); /* Use a darker orange from the palette */
    color: #ffffff;
    text-align: center;
}

.page-blog__cta-section .page-blog__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-blog__cta-content {
    flex: 1;
    text-align: left;
}

.page-blog__cta-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-blog__cta-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-blog__cta-image-wrapper {
    flex-shrink: 0;
    width: 450px; /* Fixed width for the image */
    height: 300px; /* Fixed height */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--background-color); /* Dark background */
    color: var(--text-main);
}

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

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
    display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
    background-color: rgba(255, 165, 58, 0.1);
}
.page-blog__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-blog__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 32px;
    text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 25px 25px;
    background-color: #1a1c22; /* Slightly lighter than card-bg */
    border-radius: 0 0 12px 12px;
    color: #ccc;
    font-size: 16px;
}
.page-blog__faq-answer p {
    margin-bottom: 0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 42px;
    }
    .page-blog__description {
        font-size: 17px;
    }
    .page-blog__posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-blog__post-title {
        font-size: 20px;
    }
    .page-blog__cta-section .page-blog__container {
        flex-direction: column;
        text-align: center;
    }
    .page-blog__cta-content {
        text-align: center;
        margin-bottom: 30px;
    }
    .page-blog__cta-image-wrapper {
        width: 100%;
        height: auto;
        max-width: 500px;
    }
    .page-blog__cta-image {
        height: auto;
    }
}

@media (max-width: 768px) {
    /* 1. 首页轮播 (page-blog__hero-slider) - Not present on this inner page, but required for completeness */
    .page-blog__hero-slider {
        padding-top: 10px !important; /* Small top padding for mobile */
        /* Additional mobile styles for slider if it were present */
    }

    /* 2. 首页双列 CTA (page-blog__promo-duo-grid) - Not present on this inner page, but required for completeness */
    .page-blog__promo-duo-grid {
        grid-template-columns: 1fr;
        /* Additional mobile styles for promo duo if it were present */
    }

    /* 3. 首页长文滚动框/博客滑块 (page-blog__home-content, page-blog__blog-slider) - Not present on this inner page, but required for completeness */
    .page-blog__home-content {
        height: auto !important;
        overflow-y: visible !important;
    }
    .page-blog__blog-slider .page-blog__post-card {
        width: 100% !important;
    }
    .page-blog__post-cover {
        aspect-ratio: 16/9 !important;
        object-fit: cover !important;
    }
    .page-blog table {
        overflow-x: auto !important;
        display: block !important;
    }

    /* 4. 通用图片与容器 */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__container,
    .page-blog__hero-section,
    .page-blog__posts-section,
    .page-blog__cta-section,
    .page-blog__faq-section,
    .page-blog__post-card,
    .page-blog__cta-content,
    .page-blog__cta-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 5. 按钮与按钮容器 */
    .page-blog__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 0 15px;
    }
    .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;
        font-size: 15px;
    }
    
    /* Specific section adjustments */
    .page-blog__hero-content {
        padding: 60px 15px 0;
    }
    .page-blog__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-blog__description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-blog__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__post-card {
        margin: 0 auto;
    }
    .page-blog__post-image {
        height: auto;
    }
    .page-blog__post-title {
        font-size: 18px;
    }
    .page-blog__post-meta,
    .page-blog__post-excerpt {
        font-size: 14px;
    }
    .page-blog__cta-section .page-blog__container {
        gap: 20px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-blog__cta-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-blog__cta-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-blog__cta-image-wrapper {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }
    .page-blog__faq-section {
        padding: 40px 0;
    }
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-blog__faq-qtext {
        font-size: 16px;
    }
    .page-blog__faq-toggle {
        font-size: 24px;
        width: 28px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }
}