/* Base styles for the news page */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background: #F5F7FA; /* Body background color */
    line-height: 1.6;
}

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

.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Minimal top padding, body handles --header-offset */
    padding-bottom: 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Fallback gradient */
}

.page-news__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop */
    object-position: center;
    max-height: 500px; /* Ensure image fits */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-news__hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
    max-width: 900px;
    color: #ffffff;
}

.page-news__main-title {
    font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-news__intro-text {
    font-size: 19px;
    margin-bottom: 30px;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    opacity: 0.9;
}

.page-news__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-news__btn-secondary:hover {
    transform: translateY(-2px);
    background: #f0f0f0;
    color: #FF5A4F;
    border-color: #FF5A4F;
}

.page-news__link-button {
    background: #E53935;
    color: #ffffff;
    border: 1px solid #E53935;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
}

.page-news__link-button:hover {
    background: #FF5A4F;
    border-color: #FF5A4F;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
}

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

.page-news__article-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-card img {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.page-news__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-news__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__card-title:hover {
    color: #E53935;
}

.page-news__card-excerpt {
    font-size: 15px;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__card-date {
    font-size: 14px;
    color: #999999;
    align-self: flex-end; /* Push date to bottom */
}

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

/* Why Follow Us Section */
.page-news__why-follow-us-section {
    padding: 80px 0;
    background: #E53935; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-news__why-follow-us-section .page-news__section-title {
    color: #ffffff;
    margin-bottom: 40px;
}

.page-news__why-follow-us-section .page-news__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.page-news__why-follow-us-section .page-news__article-body h3 {
    font-size: 28px;
    font-weight: 700;
    color: #FF5A4F;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-news__why-follow-us-section .page-news__article-body p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-news__article-figure {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-news__btn-full-width {
    display: block;
    width: 100%;
    max-width: 400px; /* Limit max width for full-width button */
    margin: 40px auto 0;
    padding: 18px 20px;
    font-size: 20px;
}

/* Featured Topics Section */
.page-news__featured-topics-section {
    padding: 60px 0;
}

.page-news__featured-topics-section .page-news__section-title {
    color: #E53935;
}

.page-news__featured-topics-section .page-news__section-description {
    color: #555555;
}

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

.page-news__topic-card {
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-news__topic-title {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__topic-text {
    font-size: 16px;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background: #FF5A4F; /* Use auxiliary color as background */
    color: #ffffff;
}

.page-news__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__cta-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.page-news__cta-description {
    font-size: 19px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.page-news__faq-section .page-news__section-title {
    color: #E53935;
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #ffffff;
}
details.page-news__faq-item summary.page-news__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-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
  font-size: 16px;
}
details.page-news__faq-item .page-news__faq-answer p {
    margin: 0;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(30px, 4vw, 48px);
    }
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__cta-title {
        font-size: 34px;
    }
    .page-news__article-card img {
        height: 200px; /* Adjust height for slightly smaller screens */
    }
    .page-news__card-title {
        font-size: 20px;
    }
    .page-news__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-news__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    /* HERO 主图区域 */
    .page-news__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .page-news__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-news__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: 300px;
        border-radius: 0;
    }
    .page-news__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
        padding: 0 10px;
    }
    .page-news__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    /* 按钮与按钮容器 */
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__link-button,
    .page-news__btn-full-width {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
    }

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