/* General styles for the blog page */
.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main from custom colors, for dark body background */
    background: #B71C1C; /* Background from custom colors */
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-blog__hero-image-wrap {
    width: 100%;
    margin-bottom: 20px; /* Space between image and content */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover, mobile will be contain */
}

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

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFF5E1; /* Text Main */
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

/* CTA Buttons */
.page-blog__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red for contrast */
    border: 2px solid #F2B544; /* Border from custom colors */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%); /* Invert gradient on hover */
}

.page-blog__btn-secondary {
    background: #FFF5E1; /* Text Main for contrast */
    color: #C91F17; /* Main color for text */
    border: 2px solid #C91F17; /* Main color for border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #F4D34D; /* Gold on hover */
    color: #7A0E0E; /* Deep Red for contrast */
    border-color: #F4D34D;
}

/* Section Titles & Descriptions */
.page-blog__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main */
    line-height: 1.3;
}

.page-blog__section-title--light {
    color: #FFF5E1; /* Explicitly light for dark sections */
}

.page-blog__section-description {
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFF5E1; /* Text Main */
}

/* Latest News Section */
.page-blog__latest-news-section {
    padding: 60px 0;
    background: #B71C1C; /* Background from custom colors */
}

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

.page-blog__news-card {
    background: #D32F2F; /* Card BG from custom colors */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-blog__card-meta {
    font-size: 0.9rem;
    color: #F4D34D; /* Gold for meta info */
    margin-bottom: 15px;
}

.page-blog__card-excerpt {
    font-size: 0.95rem;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__read-more-link {
    display: inline-block;
    color: #FFD86A; /* Lighter gold for links */
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.page-blog__read-more-link:hover {
    text-decoration: underline;
}

.page-blog__view-all-button-wrap {
    text-align: center;
}

/* Featured Article Section */
.page-blog__featured-article-section {
    padding: 80px 0;
    background: #C91F17; /* Main color for dark section */
    color: #FFF5E1; /* Text Main */
}

.page-blog__article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__article-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #FFD86A; /* Lighter gold for subheadings */
}

.page-blog__article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-blog__article-figure {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background: #B71C1C; /* Background from custom colors */
}

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

.page-blog__category-card {
    background: #D32F2F; /* Card BG from custom colors */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__category-image {
    width: 100%;
    height: 180px; /* Fixed height */
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-blog__category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-blog__category-title a {
    color: #FFD86A; /* Lighter gold for category links */
    text-decoration: none;
}

.page-blog__category-title a:hover {
    text-decoration: underline;
}

.page-blog__category-description {
    font-size: 0.9rem;
    color: #FFF5E1; /* Text Main */
    padding: 0 15px;
}

/* CTA Banner Section */
.page-blog__cta-section {
    padding: 60px 0;
    background: #B71C1C; /* Background from custom colors */
}

.page-blog__cta-banner {
    background: #D32F2F; /* Card BG from custom colors */
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD86A; /* Lighter gold */
}

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

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background: #B71C1C; /* Background from custom colors */
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #7A0E0E; /* Deep Red border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 2px 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: #FFF5E1; /* Text Main */
  font-weight: 600;
  font-size: 1.1rem;
}
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: #E53935; /* Auxiliary color on hover */
}
.page-blog__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD86A; /* Gold for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1; /* Text Main */
  font-size: 1rem;
}
details.page-blog__faq-item .page-blog__faq-answer p {
    margin-bottom: 0; /* Remove extra margin for last paragraph in answer */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__container {
        padding: 15px;
    }
    .page-blog__hero-content {
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-blog__hero-description {
        font-size: 1rem;
    }
    .page-blog__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-blog__section-description {
        font-size: 1rem;
    }
    .page-blog__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-blog__card-title {
        font-size: 1.2rem;
    }
    .page-blog__article-content {
        padding: 0 15px;
    }
    .page-blog__article-content h3 {
        font-size: clamp(1.4rem, 2.5vw, 2rem);
    }
    .page-blog__article-content p {
        font-size: 1rem;
    }
    .page-blog__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .page-blog__category-title {
        font-size: 1.1rem;
    }
    .page-blog__cta-banner {
        padding: 40px 25px;
    }
    .page-blog__cta-title {
        font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    }
    .page-blog__cta-description {
        font-size: 1rem;
    }
    details.page-blog__faq-item summary.page-blog__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-blog__faq-qtext {
        font-size: 1rem;
    }
    .page-blog__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-blog__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }
    .page-blog__hero-image-wrap {
        margin-bottom: 15px;
    }
    .page-blog__hero-image {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Mobile: contain to avoid cropping */
        aspect-ratio: unset !important; /* Allow natural aspect ratio for contain */
        width: 100% !important; /* Ensure full width */
        display: block !important;
    }
    .page-blog__hero-content {
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-blog__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog__container,
    .page-blog__section,
    .page-blog__card,
    .page-blog__cta-banner,
    .page-blog__article-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-blog__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 15px;
        padding: 0 5px;
    }
    .page-blog__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 5px;
    }
    .page-blog__article-content h3 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-blog__article-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    .page-blog__article-figure {
        margin: 20px 0;
    }

    /* 产品展示图区域 (News grid acts as a product-like display here) */
    .page-blog__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-blog__news-card {
        max-width: 100%;
    }
    .page-blog__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }
    .page-blog__card-title {
        font-size: 1.1rem;
    }
    .page-blog__card-excerpt {
        font-size: 0.85rem;
    }
    .page-blog__categories-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-blog__category-image {
        height: 150px;
    }
    .page-blog__cta-banner {
        padding: 30px 15px;
    }
    .page-blog__cta-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-blog__cta-description {
        font-size: 0.95rem;
    }

    /* FAQ */
    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    .page-blog__faq-qtext {
        font-size: 1rem;
    }
    .page-blog__faq-toggle {
        font-size: 22px;
        width: 25px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }
}