/* style/news.css */

/* General page styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main color for overall page content on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 40px; /* General padding for the bottom of the page */
}

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

.page-news__section-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 rule: use clamp for font-size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFF3E6; /* Text Main */
    line-height: 1.2;
}

.page-news__section-description {
    font-size: clamp(16px, 2vw, 20px);
    text-align: center;
    margin-bottom: 40px;
    color: #FFF3E6; /* Text Main */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* ~10px top padding if shared.css handles body padding-top */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-news__hero-content {
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    background: #0D0E12; /* Background color for hero content area */
    color: #FFF3E6; /* Text Main */
}

.page-news__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 rule: use clamp for font-size */
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFF3E6; /* Text Main */
    line-height: 1.1;
}

.page-news__description {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF3E6; /* Text Main */
}

/* Buttons */
.page-news__cta-button,
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button color */
    color: #ffffff;
    border: none;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: transparent;
    color: #FFA53A; /* Auxiliary color */
    border: 2px solid #FFA53A;
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background: #FFA53A;
    color: #ffffff;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Articles Section */
.page-news__articles-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background color for this section */
    color: #FFF3E6; /* Text Main */
}

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

.page-news__article-card {
    background: #17191F; /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    min-height: 200px; /* Minimum card image height */
    color: #FFF3E6; /* Text Main */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

.page-news__article-content {
    padding: 25px;
}

.page-news__article-date {
    display: block;
    font-size: 14px;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 10px;
}

.page-news__article-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #FFF3E6; /* Text Main */
}

.page-news__article-link {
    color: #FFF3E6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-link:hover {
    color: #FFA53A; /* Auxiliary color */
}

.page-news__article-excerpt {
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
}

.page-news__read-more {
    font-size: 16px;
    padding: 10px 20px;
    margin-left: 0; /* Override default margin for secondary button */
}

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

/* Promotions Section */
.page-news__promotions-section {
    padding: 60px 0;
    background: #0D0E12; /* Background color for this section */
    color: #FFF3E6; /* Text Main */
}

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

.page-news__promo-card {
    background: #17191F; /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 200px; /* Minimum card image height */
    color: #FFF3E6; /* Text Main */
}

.page-news__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo image */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

.page-news__promo-content {
    padding: 25px;
    flex-grow: 1;
}

.page-news__promo-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #FFF3E6; /* Text Main */
}

.page-news__promo-description {
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background color for this section */
    color: #FFF3E6; /* Text Main */
}

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

.page-news__faq-item {
    background: #17191F; /* Card BG color */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #FFF3E6; /* Text Main */
}

.page-news__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF3E6; /* Text Main */
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: #FFA53A; /* Auxiliary color */
    margin-left: 15px;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
}

.page-news__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 60px 0;
    background: #0D0E12; /* Background color for this section */
    color: #FFF3E6; /* Text Main */
}

.page-news__cta-content {
    text-align: center;
}

/* Text Colors based on custom palette */
.page-news__text-main {
    color: #FFF3E6;
}
.page-news__dark-bg {
    background-color: #0D0E12;
    color: #FFF3E6;
}
.page-news__card-bg {
    background-color: #17191F;
    color: #FFF3E6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-content {
        padding: 30px 15px;
    }

    .page-news__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }

    .page-news__description {
        font-size: clamp(16px, 2.2vw, 20px);
    }

    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary {
        font-size: 16px;
        padding: 12px 25px;
    }

    .page-news__articles-grid,
    .page-news__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

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

    .page-news__promo-title {
        font-size: 22px;
    }

    .page-news__faq-item summary {
        font-size: 17px;
        padding: 18px 20px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-news__hero-section {
        padding-top: 10px !important; /* ~10px top padding if shared.css handles body padding-top */
        padding-bottom: 0 !important;
    }

    .page-news__hero-image-wrapper {
        max-height: 400px;
    }

    .page-news__hero-content {
        padding: 20px 15px;
    }

    .page-news__main-title {
        font-size: clamp(24px, 6vw, 40px);
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: clamp(15px, 3vw, 18px);
        margin-bottom: 25px;
    }

    .page-news__section-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 15px;
    }

    .page-news__section-description {
        font-size: clamp(14px, 3vw, 18px);
        margin-bottom: 30px;
    }

    /* 通用图片与容器 */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__articles-grid,
    .page-news__promotions-grid,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* 按钮与按钮容器 */
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        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; /* Adjust padding for mobile */
        font-size: 16px !important;
        margin-left: 0 !important; /* Remove margin-left for secondary button */
    }
    
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important; /* Space between stacked buttons */
    }

    /* 产品展示图区域 (General article/promo grids) */
    .page-news__articles-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
    }

    .page-news__article-card,
    .page-news__promo-card {
        min-height: auto !important; /* Allow height to adjust */
    }

    .page-news__article-image,
    .page-news__promo-image {
        height: auto !important; /* Auto height for images */
        max-height: 250px !important; /* Max height for better presentation */
        min-height: 200px !important; /* Enforce minimum size */
    }

    .page-news__article-content,
    .page-news__promo-content {
        padding: 20px !important;
    }

    .page-news__article-title,
    .page-news__promo-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .page-news__article-excerpt,
    .page-news__promo-description {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    /* 其他内容模块 (FAQ) */
    .page-news__faq-item summary {
        font-size: 16px !important;
        padding: 15px 15px !important;
    }

    .page-news__faq-answer {
        padding: 0 15px 15px !important;
        font-size: 15px !important;
    }

    .page-news__faq-toggle {
        font-size: 20px !important;
    }
}