.page-blog {
    background-color: #08160F;
    color: #F2FFF6;
    font-family: sans-serif; /* Roboto气质 */
    padding-top: 10px; /* Small top padding for the first section */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
    max-width: 100%;
    overflow: hidden; /* Prevent content overflow */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 675px; /* Limit height on larger screens */
    margin-bottom: 20px; /* Space between image and content on mobile */
    min-width: 200px;
    min-height: 200px;
}

.page-blog__hero-content {
    width: 100%;
    max-width: 800px;
    padding: 0 16px;
    box-sizing: border-box;
}

.page-blog__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #F2FFF6;
    margin-bottom: 15px;
    /* Using clamp for font-size if absolutely necessary, but avoiding fixed large sizes */
    /* font-size: clamp(2rem, 5vw, 3.5rem); */
}

.page-blog__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #A7D9B8;
    margin-bottom: 30px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
    min-width: 150px;
    text-align: center;
    box-sizing: border-box;
}

.page-blog__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Posts Section */
.page-blog__posts-section {
    padding: 50px 0;
    background-color: #08160F;
}

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

.page-blog__section-title {
    text-align: center;
    color: #F2FFF6;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: bold;
}

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

.page-blog__post-card {
    background-color: #11271B;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E;
}

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

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

.page-blog__post-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency in grid */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-blog__post-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F2FFF6;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__post-excerpt {
    font-size: 0.95rem;
    color: #A7D9B8;
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-blog__post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #A7D9B8;
    border-top: 1px solid #1E3A2A;
    padding-top: 15px;
}

.page-blog__read-more {
    color: #22C768;
    font-weight: bold;
}

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.page-blog__view-all-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Call to Action Section */
.page-blog__call-to-action-section {
    background-color: #11271B; /* Using card BG for this section */
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #2E7A4E;
}

.page-blog__cta-title {
    font-size: 2.2rem;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    color: #A7D9B8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-blog__cta-button--large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-blog__hero-section {
        flex-direction: column; /* Keep column for consistency with "上图下文" rule */
        padding: 40px 0;
    }
    .page-blog__hero-image {
        margin-bottom: 30px;
    }
    .page-blog__main-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp for desktop H1 */
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 20px 0;
    }
    .page-blog__hero-image {
        max-height: 400px; /* Adjust hero image height for smaller screens */
    }
    .page-blog__main-title {
        font-size: 2rem;
    }
    .page-blog__description {
        font-size: 1rem;
    }
    .page-blog__cta-button {
        width: 100%;
        max-width: 280px; /* Limit width for mobile buttons */
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .page-blog__post-image {
        height: 200px; /* Adjust card image height for mobile */
    }
    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: 1.8rem;
    }
    .page-blog__cta-button--large {
        width: 100%;
        max-width: 280px;
    }
}

/* Enforcing image responsiveness and minimum size for content area */
@media (max-width: 768px) {
    .page-blog img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .page-blog__post-image {
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px; /* Ensure minimum size */
    }
}

/* Ensure no content overflow for the main container */
.page-blog__container {
    overflow-x: hidden;
}

/* Specific rule for content images not to be smaller than 200px */
.page-blog .page-blog__posts-section img,
.page-blog .page-blog__post-card img {
    min-width: 200px;
    min-height: 200px;
}
/* For images in blog posts, if they are placed directly in content */
.page-blog__post-content img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
}

/* Ensuring contrast and readability */
h1, h2, h3, h4, h5, h6, p, a, span {
    color: #F2FFF6; /* Main text color */
}
.page-blog__description, .page-blog__post-excerpt, .page-blog__post-meta, .page-blog__cta-description {
    color: #A7D9B8; /* Secondary text color */
}
.page-blog__read-more {
    color: #22C768; /* Accent color for links */
}
/* Button text color */
.page-blog__cta-button {
    color: #F2FFF6;
}

/* H1 font-size clamp for desktop */
@media (min-width: 850px) {
  .page-blog__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
}

/* H1 font-size for mobile */
@media (max-width: 849px) {
  .page-blog__main-title {
    font-size: 2rem;
  }
}

/* Mobile specific adjustments for Hero section as per §0.5 */
@media (max-width: 849px) {
  .page-blog__hero-section {
    flex-direction: column;
    padding: 20px 0;
  }
  .page-blog__hero-image {
    aspect-ratio: 4/3;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
  }
  .page-blog__hero-content {
    padding: 0 20px;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    min-height: 44px;
  }
}

/* Mobile overflow prevention for general content images */
@media (max-width: 768px) {
  .page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .page-blog__posts-section img, .page-blog__post-card img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__container {
    overflow-x: hidden;
  }
}