:root {
    --primary-color: #26A9E0;
    --secondary-color: #EA7C07; /* From 'Login' custom color */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-color-light: #ffffff;
    --background-color-dark: #26A9E0; /* Using primary color as dark background for contrast */
    --border-color: #e0e0e0;
}

.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark); /* Default text color for light body background */
    line-height: 1.6;
    background-color: var(--background-color-light); /* Explicitly set for context */
}

/* HERO主图区域样式 */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Subtle gradient for hero background */
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width up to max-width */
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.page-news__hero-content h1 {
    font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color); /* Using 'Login' color as primary CTA */
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
    white-space: normal; /* Button responsiveness */
    word-wrap: break-word; /* Button responsiveness */
}

.page-news__cta-button:hover {
    background: #CC6A00; /* Darker shade of #EA7C07 */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-news__section {
    padding: 60px 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.page-news__section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width up to max-width */
    box-sizing: border-box; /* Ensure container takes full width up to max-width */
}

.page-news__section h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

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

/* Article Grid */
.page-news__articles-grid,
.page-news__events-grid,
.page-news__updates-grid,
.page-news__insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-news__article-card,
.page-news__event-card,
.page-news__update-card,
.page-news__insight-card {
    background: var(--background-color-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

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

.page-news__article-card img,
.page-news__event-card img,
.page-news__update-card img,
.page-news__insight-card img {
    width: 100%;
    height: 225px; /* Fixed height for consistent card image size */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
    max-width: 100%; /* Image responsiveness */
}

.page-news__card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to grow and push button to bottom */
    display: flex;
    flex-direction: column;
}

.page-news__card-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
    flex-grow: 1; /* Allow title to take available space */
}

.page-news__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--secondary-color);
}

.page-news__card-date {
    font-size: 14px;
    color: #888888;
    margin-bottom: 10px;
}

.page-news__card-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start of flex item */
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
    white-space: normal; /* Button responsiveness */
    word-wrap: break-word; /* Button responsiveness */
}

.page-news__read-more-button:hover {
    background: #1e87b7; /* Darker shade of #26A9E0 */
}

.page-news__button-group {
    text-align: center;
    margin-top: 50px;
}

.page-news__view-all-button {
    background: var(--primary-color);
    padding: 15px 30px;
    font-size: 17px;
    border-radius: 5px;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
    white-space: normal; /* Button responsiveness */
    word-wrap: break-word; /* Button responsiveness */
}

.page-news__view-all-button:hover {
    background: #1e87b7; /* Darker shade of #26A9E0 */
}

/* Dark Section for contrast */
.page-news__dark-section {
    background: var(--background-color-dark); /* Using primary color as background */
    color: var(--text-color-light);
}

.page-news__dark-section h2,
.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__card-title a,
.page-news__dark-section .page-news__card-date,
.page-news__dark-section .page-news__card-excerpt {
    color: var(--text-color-light); /* Ensure light text on dark background */
}

.page-news__dark-section .page-news__article-card,
.page-news__dark-section .page-news__event-card,
.page-news__dark-section .page-news__update-card,
.page-news__dark-section .page-news__insight-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-color: rgba(255, 255, 255, 0.2);
}

.page-news__dark-section .page-news__read-more-button {
    background: var(--secondary-color);
    color: var(--text-color-light);
}

.page-news__dark-section .page-news__read-more-button:hover {
    background: #CC6A00; /* Darker shade of #EA7C07 */
}

/* FAQ Section */
.page-news__faq-section {
    padding-bottom: 80px;
}

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--background-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

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;
    text-align: left;
    color: var(--text-color-dark); /* Ensure contrast for text */
}

details.page-news__faq-item summary.page-news__faq-question:hover .page-news__faq-qtext {
    color: var(--primary-color);
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    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 8px 8px;
    color: var(--text-color-dark);
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .page-news {
        font-size: 16px; /* Mobile font size increase for readability */
        line-height: 1.6;
    }

    .page-news__hero-section {
        padding-top: 10px !important; /* Small top padding, shared.css handles body padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-news__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .page-news__hero-content h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-news__hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important; /* Button responsiveness */
        max-width: 100% !important; /* Button responsiveness */
        box-sizing: border-box !important; /* Button responsiveness */
        white-space: normal !important; /* Button responsiveness */
        word-wrap: break-word !important; /* Button responsiveness */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__section {
        padding: 40px 15px;
    }

    .page-news__section h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

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

    .page-news__articles-grid,
    .page-news__events-grid,
    .page-news__updates-grid,
    .page-news__insights-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-news__article-card img,
    .page-news__event-card img,
    .page-news__update-card img,
    .page-news__insight-card img {
        
        max-width: 100% !important; /* Image responsiveness */
        width: 100% !important; /* Image responsiveness */
        height: auto !important; /* Image responsiveness */
    }

    .page-news__card-content {
        padding: 15px;
    }

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

    .page-news__card-excerpt {
        font-size: 15px;
    }

    .page-news__read-more-button {
        padding: 8px 15px;
        font-size: 14px;
        width: 100% !important; /* Button responsiveness */
        max-width: 100% !important; /* Button responsiveness */
        box-sizing: border-box !important; /* Button responsiveness */
        white-space: normal !important; /* Button responsiveness */
        word-wrap: break-word !important; /* Button responsiveness */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__button-group {
        margin-top: 30px;
    }

    .page-news__view-all-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important; /* Button responsiveness */
        max-width: 100% !important; /* Button responsiveness */
        box-sizing: border-box !important; /* Button responsiveness */
        white-space: normal !important; /* Button responsiveness */
        word-wrap: break-word !important; /* Button responsiveness */
        padding-left: 15px;
        padding-right: 15px;
    }

    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
        font-size: 16px;
    }

    .page-news__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
    .page-news__faq-answer p {
        font-size: 15px;
    }

    /* Ensure all containers for images/buttons are responsive */
    .page-news__container,
    .page-news__articles-grid,
    .page-news__events-grid,
    .page-news__updates-grid,
    .page-news__insights-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}