:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border: #244D84;
    --glow: #4FA8FF;
    --gold: #F2C14E;
    --divider: #1B3357;
    --deep-navy: #08162B;
}

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--deep-navy); /* Ensure body background is respected */
}

/* Container for consistent content width */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

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

.page-news__hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 15px;
    background: var(--card-bg); /* Dark background for content */
    border-radius: 10px;
    margin-top: -80px; /* Overlap image slightly */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--gold); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__description {
    font-size: 18px;
    color: var(--text-secondary); /* Secondary text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: var(--card-bg);
    color: var(--gold);
    border: 2px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
    background: var(--deep-navy);
    color: var(--glow);
    border-color: var(--glow);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-news__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: var(--card-bg); /* Use card background for sections */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-left: 15px;
    margin-right: 15px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--gold); /* Gold for section titles */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-news__section-description {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Grid */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__article-card {
    background: var(--deep-navy); /* Darker background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    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 6px 16px rgba(0, 0, 0, 0.35);
}

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

.page-news__article-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.page-news__article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-thumbnail img {
    transform: scale(1.05);
}

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

.page-news__article-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--gold); /* Gold for article titles */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__article-date {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: auto;
}

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

/* Content Area for detailed news sections */
.page-news__content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 17px;
}

.page-news__feature-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-news__content-area p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-news__content-area a {
    margin-top: 10px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: var(--deep-navy); /* FAQ section uses deep navy background */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-left: 15px;
    margin-right: 15px;
    box-sizing: border-box;
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg); /* Card background for FAQ items */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
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: var(--deep-navy); /* Darker hover for FAQ question */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold); /* Gold for FAQ questions */
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow); /* Glow for toggle icon */
  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: var(--deep-navy); /* Deep navy for FAQ answer background */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}
.page-news__faq-answer p {
    margin: 0;
}

/* Ensure text color is appropriate for the body background */
.page-news p,
.page-news li,
.page-news span,
.page-news div {
    color: var(--text-secondary); /* Default text color for general content */
}

/* Override for specific elements if needed */
.page-news__main-title,
.page-news__article-title,
.page-news__section-title,
.page-news__faq-qtext {
    color: var(--gold); /* Specific titles use gold */
}

.page-news__btn-primary {
    color: #ffffff; /* Primary buttons always white text */
}

.page-news__btn-secondary {
    color: var(--gold); /* Secondary buttons use gold text */
}

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

/* For smaller desktops and tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 40px;
    }

    .page-news__description {
        font-size: 16px;
    }

    .page-news__section-title {
        font-size: 32px;
    }

    .page-news__section-description {
        font-size: 16px;
    }

    .page-news__articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .page-news__article-excerpt {
        font-size: 14px;
    }

    .page-news__faq-qtext {
        font-size: 16px;
    }
}

/* For mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-news__hero-section {
        padding-top: 10px; /* Small top padding, not var(--header-offset) */
        margin-bottom: 20px;
    }

    .page-news__hero-image img {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        height: auto !important;
    }

    .page-news__hero-content {
        margin-top: -50px; /* Adjust overlap for mobile */
        padding: 20px 10px;
        max-width: 95%;
    }

    .page-news__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Clamp for responsive font size */
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: 15px;
        margin-bottom: 20px;
    }

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

    .page-news__btn-primary,
    .page-news__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: 16px;
    }

    /* General Section Styling */
    .page-news__section {
        padding: 40px 0;
        margin-left: 10px;
        margin-right: 10px;
    }

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

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

    /* 产品展示图区域 (articles grid acts like this) */
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column for articles */
        gap: 20px;
        padding: 0 10px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-news__article-card {
        max-width: 100%; /* Ensure cards don't overflow */
    }

    .page-news__article-thumbnail {
        height: 180px;
    }

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

    .page-news__article-excerpt {
        font-size: 13px;
    }

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

    .page-news__container {
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Content Area for detailed news sections */
    .page-news__content-area {
        gap: 20px;
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-news__content-area p {
        font-size: 15px;
    }

    .page-news__feature-image {
        max-width: 100% !important; /* Ensure feature image is responsive */
    }

    /* FAQ Section */
    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 15px; }
    details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }
    .page-news__faq-toggle { font-size: 20px; width: 24px; }
}