/* style/news.css */
/* 页面所有样式代码 */

/* CSS Reset/Base (ensure consistency with shared.css if needed, but primarily scoped) */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Use shared background variable */
}

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

.page-news__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-news__section-title {
    font-size: 32px;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-news__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Main Banner Section (similar to hero, but not homepage specific) */
.page-news__main-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Blending brand colors */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-news__main-banner-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__main-banner-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

.page-news__main-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-news__main-banner-title {
    font-size: 48px;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__main-banner-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    background: #d46f06;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-news__intro-section {
    background-color: #f8f8f8;
    padding-bottom: 40px;
}

/* Articles Grid (for Announcements, Tips & Guides) */
.page-news__articles-grid,
.page-news__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-news__article-image,
.page-news__promotion-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-news__article-title,
.page-news__promotion-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.page-news__article-title a,
.page-news__promotion-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promotion-title a:hover {
    color: #1a7bbd;
    text-decoration: underline;
}

.page-news__article-excerpt,
.page-news__promotion-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
    background: #1a7bbd;
}

/* Promotions Section (Dark Background) */
.page-news__promotions-section {
    background: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
}

.page-news__promotions-section .page-news__section-title {
    color: #ffffff;
}

.page-news__promotions-section .page-news__text-block {
    color: #f0f0f0;
}

.page-news__promotions-section .page-news__highlight {
    color: #ffffff;
}

.page-news__promotion-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    color: #ffffff;
}

.page-news__promotion-title a {
    color: #ffffff;
}

.page-news__promotion-title a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.page-news__promotion-excerpt {
    color: #e0e0e0;
}

.page-news__read-more-button--light {
    background: #FFFFFF;
    color: #26A9E0;
}

.page-news__read-more-button--light:hover {
    background: #e0e0e0;
}

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

.page-news__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #EA7C07; /* Login color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    background: #d46f06;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
    background-color: #f9f9f9;
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-news__faq-item.active .page-news__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
}

.page-news__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-news__faq-question:active {
    background: #eeeeee;
}

.page-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: #26A9E0;
    transform: rotate(180deg); /* Rotate for minus sign */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #f9f9f9;
    border-top: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0 0 5px 5px;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-color: #26A9E0;
}

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

.page-news__text-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-news__text-link:hover {
    color: #1a7bbd;
}

/* Call to Action Section */
.page-news__cta-section {
    background: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-news__cta-section .page-news__section-title {
    color: #ffffff;
}

.page-news__cta-section .page-news__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-news__cta-section .page-news__highlight {
    color: #ffffff;
}

.page-news__cta-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button--large {
    font-size: 22px;
    padding: 18px 50px;
    background: #EA7C07; /* Login color */
}

/* Conclusion Section */
.page-news__conclusion-section {
    background-color: #f8f8f8;
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news__main-banner-title {
        font-size: 40px;
    }
    .page-news__main-banner-description {
        font-size: 18px;
    }
    .page-news__section-title {
        font-size: 28px;
    }
    .page-news__articles-grid,
    .page-news__promotions-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Fixed header spacing for mobile */
    .page-news__main-banner {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__main-banner-title {
        font-size: 32px;
    }
    .page-news__main-banner-description {
        font-size: 16px;
    }
    .page-news__cta-button {
        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;
        margin-left: auto;
        margin-right: auto;
    }
    .page-news__cta-button--large {
        font-size: 18px;
        padding: 15px 30px;
    }

    .page-news__section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-news__text-block {
        font-size: 16px;
    }

    /* Image responsive adaptions */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__section,
    .page-news__container,
    .page-news__article-card,
    .page-news__promotion-card,
    .page-news__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    .page-news__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-news__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-news__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-news__faq-answer {
        padding: 0 15px;
    }
    
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px !important;
    }

    /* Button specific mobile adaptations */
    .page-news__button-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-news__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    .page-news__main-banner-title {
        font-size: 28px;
    }
    .page-news__section-title {
        font-size: 22px;
    }
    .page-news__articles-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-content,
    .page-news__promotion-content {
        padding: 20px;
    }
    .page-news__article-title,
    .page-news__promotion-title {
        font-size: 18px;
    }
}