:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* Default text color for light backgrounds */
    --default-text-light-bg: #333333;
    /* Default text color for dark backgrounds */
    --default-text-dark-bg: #ffffff;
}

/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--default-text-light-bg); /* Default for light body background */
    background-color: #f8f8f8; /* Assuming shared.css sets a light body bg */
}

/* Overriding for dark sections based on brand colors */
.page-blog__dark-section {
    background-color: var(--color-background); /* #08160F */
    color: var(--color-text-main); /* #F2FFF6 */
}

.page-blog__light-bg {
    background-color: #ffffff; /* Explicitly white for contrast */
    color: var(--default-text-light-bg);
}

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

/* Hero Section */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.page-blog__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop to fill space */
    display: block;
    filter: none !important;
}

.page-blog__hero-content {
    padding: 40px 20px;
    text-align: center;
    background-color: #ffffff; /* Ensure light background for content */
    color: var(--default-text-light-bg);
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary); /* Brand color for main title */
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__lead-text {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-blog__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
}

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

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

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

/* Section Titles */
.page-blog__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

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

/* Articles Grid */
.page-blog__latest-articles,
.page-blog__news-updates {
    padding: 60px 0;
}

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

.page-blog__article-card,
.page-blog__news-card {
    background-color: var(--color-card-bg); /* #11271B */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: var(--color-text-main); /* #F2FFF6 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image,
.page-blog__news-image {
    width: 100%;
    height: 220px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
    filter: none !important;
}

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

.page-blog__article-date,
.page-blog__news-date {
    font-size: 0.9rem;
    color: var(--color-text-secondary); /* #A7D9B8 */
    margin-bottom: 10px;
}

.page-blog__article-title,
.page-blog__news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

.page-blog__article-title a,
.page-blog__news-title a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__news-title a:hover {
    color: var(--color-gold); /* #F2C14E */
}

.page-blog__article-summary,
.page-blog__news-summary {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-blog__read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.3s ease;
}

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

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

/* Guides & Tips Section */
.page-blog__guides-tips {
    padding: 60px 0;
}

.page-blog__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-blog__subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.page-blog__text-block p {
    margin-bottom: 15px;
    color: var(--default-text-light-bg);
}

.page-blog__image-block {
    text-align: center;
}

.page-blog__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    min-width: 200px;
    min-height: 200px;
    filter: none !important;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--color-border); /* #2E7A4E */
  overflow: hidden;
  background: var(--color-card-bg); /* #11271B */
  color: var(--color-text-main);
}
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;
  color: var(--color-text-main);
}
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: rgba(var(--color-primary), 0.1); /* Lighter hover for dark bg */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text-main);
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-gold); /* Gold for toggle icon */
  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: var(--color-deep-green); /* #0A4B2C */
  border-radius: 0 0 5px 5px;
  color: var(--color-text-secondary);
}

/* CTA Section */
.page-blog__cta-section {
    padding: 60px 0;
    text-align: center;
}

/* --- Responsive Styles --- */

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-blog__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        margin-bottom: 20px;
    }

    .page-blog__hero-image {
        height: auto; /* Allow height to adjust */
        aspect-ratio: unset !important; /* Reset aspect ratio for object-fit: contain */
    }

    .page-blog__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        width: 100% !important;
        height: auto !important;
    }

    .page-blog__hero-content {
        padding: 25px 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller on mobile */
        margin-bottom: 15px;
    }

    .page-blog__lead-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        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: 0.95rem;
    }

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

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

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

    .page-blog__articles-grid,
    .page-blog__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-blog__article-card,
    .page-blog__news-card {
        margin: 0;
    }

    .page-blog__article-image,
    .page-blog__news-image {
        height: 180px; /* Smaller height for mobile card images */
    }

    .page-blog__article-title,
    .page-blog__news-title {
        font-size: 1.1rem;
    }

    .page-blog__content-grid {
        grid-template-columns: 1fr; /* Stack content vertically */
        gap: 30px;
    }

    .page-blog__subsection-title {
        font-size: 1.5rem;
    }

    /* 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;
    }

    /* Assuming article body is a general container for main text */
    .page-blog__article-body {
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    /* Assuming article figures are images within text */
    .page-blog__article-figure {
        max-width: 100% !important;
        height: auto !important;
        margin: 20px auto !important;
        display: block !important;
    }
    .page-blog__section-title-wrap {
        padding: 0 15px;
    }
    .page-blog__main-title {
        text-align: center; /* Ensure center alignment on mobile */
    }
}

/* Ensure all containing elements for images and buttons also respect max-width */
.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

/* Additional rules for content images to prevent smaller than 200px */
.page-blog__article-image,
.page-blog__news-image,
.page-blog__content-image {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure text contrast for various elements */
.page-blog p,
.page-blog li,
.page-blog__article-summary,
.page-blog__news-summary {
    color: inherit; /* Inherit from parent, which is set for dark/light sections */
}

/* Override default for specific elements on light background */
.page-blog__light-bg p,
.page-blog__light-bg li,
.page-blog__light-bg .page-blog__article-summary,
.page-blog__light-bg .page-blog__news-summary {
    color: var(--default-text-light-bg); /* Explicit dark text for light bg */
}

.page-blog__dark-section p,
.page-blog__dark-section li,
.page-blog__dark-section .page-blog__article-summary,
.page-blog__dark-section .page-blog__news-summary {
    color: var(--color-text-secondary); /* Explicit light text for dark bg */
}

/* No CSS filters on images */
.page-blog img {
    filter: none !important;
}

/* Decorative title wrap if needed (not explicitly in HTML but good to cover) */
.page-blog__section-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}