:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-login: #C30808;
    --button-register-login-font: #FFFF00;
    --background-color: #FFFFFF;
    --border-color: #e0e0e0;
}

/* General Layout */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
}

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

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

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-blog__section-title--white {
    color: var(--text-light);
}
.page-blog__section-title--white::after {
    background-color: var(--text-light);
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-blog__btn-primary {
    background-color: var(--button-register-login); /* Use custom color for primary actions */
    color: var(--button-register-login-font); /* Use custom font color */
    border-color: var(--button-register-login);
}

.page-blog__btn-primary:hover {
    background-color: #d11a1a;
    border-color: #d11a1a;
}

.page-blog__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-blog__btn-secondary:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as shared.css handles body padding */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: 500px; /* Fixed height for desktop */
    overflow: hidden;
    position: relative;
}

.page-blog__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Desktop default */
    display: block;
}

.page-blog__hero-content {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(32px, 4vw, 48px); /* Responsive font size */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

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

.page-blog__article-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-blog__article-image {
    width: 100%;
    height: 220px; /* Fixed height for article images */
    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: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-blog__card-excerpt {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 0;
}

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

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

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

.page-blog__category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

.page-blog__cta-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-blog__cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-blog__cta-description {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    width: 100%; /* Ensure responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog__cta-buttons .page-blog__btn-primary,
.page-blog__cta-buttons .page-blog__btn-secondary {
    flex: 1;
    max-width: 250px; /* Limit individual button width on desktop */
}

.page-blog__cta-image {
    flex-shrink: 0;
    width: 500px; /* Fixed width for desktop */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-blog__cta-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background for FAQ */
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #fefefe;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}
.page-blog__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}
.page-blog__faq-answer p:last-child {
    margin-bottom: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-image {
        height: 400px;
    }

    .page-blog__main-title {
        font-size: clamp(28px, 5vw, 42px);
    }

    .page-blog__description {
        font-size: 17px;
    }

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

    .page-blog__article-image {
        height: 200px;
    }

    .page-blog__card-title {
        font-size: 18px;
    }

    .page-blog__category-item {
        font-size: 16px;
        padding: 12px 15px;
    }

    .page-blog__cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

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

    .page-blog__cta-image {
        width: 100%;
        max-width: 400px;
    }

    .page-blog__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-blog__hero-section {
        padding-top: 10px; /* Keep small padding-top */
        margin-bottom: 30px;
    }
    .page-blog__hero-image {
        height: auto !important; /* Allow height to adjust */
        aspect-ratio: unset !important; /* Remove aspect ratio */
    }
    .page-blog__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        width: 100% !important;
        height: auto !important;
    }
    .page-blog__hero-content {
        margin: 30px auto;
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-blog__description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    /* 按钮与按钮容器 */
    .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-left: 15px !important;
        padding-right: 15px !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: 0 !important; /* Handled by parent container */
        padding-right: 0 !important; /* Handled by parent container */
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
    .page-blog__cta-buttons .page-blog__btn-primary,
    .page-blog__cta-buttons .page-blog__btn-secondary {
        max-width: 100% !important; /* Ensure full width on mobile */
    }


    /* Articles Section */
    .page-blog__articles-section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-blog__article-image {
        height: 180px;
    }
    .page-blog__card-title {
        font-size: 18px;
    }
    .page-blog__card-meta,
    .page-blog__card-excerpt {
        font-size: 14px;
    }

    /* Categories Section */
    .page-blog__categories-section {
        padding: 40px 0;
    }
    .page-blog__categories-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 15px;
    }
    .page-blog__category-item {
        font-size: 15px;
        padding: 10px 12px;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 40px 0;
    }
    .page-blog__cta-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-blog__cta-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-blog__cta-image {
        width: 100%;
        order: -1; /* Image above text on mobile */
        margin-bottom: 20px;
    }

    /* FAQ Section */
    details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
    .page-blog__faq-qtext { font-size: 15px; }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }
    .page-blog__faq-answer p {
        font-size: 15px;
    }
}