/* General styles for the page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    background-color: #0D0E12; /* Custom background color */
    color: #FFF3E6; /* Custom text color */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, relying on body padding-top for header offset */
}

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

.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFF3E6; /* Custom text color */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-news__section-description {
    font-size: 18px;
    color: rgba(255, 243, 230, 0.8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    overflow: hidden;
    padding: 10px 0 60px; /* Adjust top padding based on shared.css body padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-news__hero-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
}

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

.page-news__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 font size */
    font-weight: 800;
    color: #FFF3E6; /* Custom text color */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 140, 26, 0.7);
}

.page-news__description {
    font-size: 20px;
    color: rgba(255, 243, 230, 0.9);
    margin-bottom: 30px;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for desktop */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
    color: #FFF3E6; /* Custom text color */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-news__btn-secondary {
    background: transparent;
    color: #FF8C1A; /* Main color */
    border: 2px solid #A84F0C; /* Custom border color */
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.2);
}

.page-news__btn-secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.3);
}

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

.page-news__category-card {
    background-color: #17191F; /* Custom card background */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #FFF3E6; /* Custom text color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Custom border color */
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 176, 77, 0.3);
}

.page-news__category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news__category-card .page-news__card-title {
    font-size: 22px;
    font-weight: 700;
    padding: 20px 20px 10px;
    color: #FF8C1A; /* Main color */
}

.page-news__category-card .page-news__card-text {
    font-size: 16px;
    color: rgba(255, 243, 230, 0.7);
    padding: 0 20px 20px;
}

/* Recent Articles Section */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-news__article-card {
    background-color: #17191F; /* Custom card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Custom border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

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

.page-news__article-title a {
    color: #FF8C1A; /* Main color */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-news__article-meta {
    font-size: 14px;
    color: rgba(255, 243, 230, 0.6);
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: rgba(255, 243, 230, 0.8);
    margin-bottom: 20px;
}

.page-news__read-more {
    color: #FFA53A; /* Auxiliary color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #FF8C1A; /* Main color */
    text-decoration: underline;
}

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

/* Why Choose Section (Features Grid) */
.page-news__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__feature-item {
    background-color: #17191F; /* Custom card background */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Custom border color */
}

.page-news__feature-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-news__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: #FF8C1A; /* Main color */
    margin-bottom: 15px;
}

.page-news__feature-text {
    font-size: 16px;
    color: rgba(255, 243, 230, 0.8);
}

/* FAQ Section */
details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #17191F; /* Custom card background */
    border: 1px solid #A84F0C; /* Custom border color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
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;
    color: #FFF3E6; /* Custom text 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-color: rgba(255, 140, 26, 0.1);
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FF8C1A; /* Main color */
}
.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFA53A; /* Auxiliary 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-color: rgba(255, 243, 230, 0.05); /* Lighter background for answer */
    border-radius: 0 0 5px 5px;
    color: rgba(255, 243, 230, 0.8);
}
.page-news__faq-answer p {
    margin: 0;
}

/* CTA Bottom Section */
.page-news__cta-bottom-section {
    text-align: center;
    padding-bottom: 80px;
}

/* All images general responsive */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* All containers general responsive */
.page-news__section,
.page-news__categories-grid,
.page-news__articles-grid,
.page-news__features-grid,
.page-news__faq-list,
.page-news__cta-buttons {
    width: 100%;
    max-width: 1200px; /* Max width for desktop */
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scroll for content */
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-news__description {
        font-size: 18px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-news__categories-grid,
    .page-news__articles-grid,
    .page-news__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-news__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .page-news__hero-image {
        max-height: 300px;
        border-radius: 0;
    }
    .page-news__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible, no cropping */
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* 产品展示图区域 (Categories Grid) */
    .page-news__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: hidden;
    }
    .page-news__category-card {
        margin: 0 auto;
        max-width: 400px;
    }
    .page-news__category-card img {
        
    }
    .page-news__category-card .page-news__card-title {
        font-size: 20px;
        padding: 15px 15px 5px;
    }
    .page-news__category-card .page-news__card-text {
        font-size: 15px;
        padding: 0 15px 15px;
    }

    /* 装饰主标题 + 长文 SEO 区 (Recent Articles) */
    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: hidden;
    }
    .page-news__article-card {
        margin: 0 auto;
        max-width: 400px;
    }
    .page-news__article-card img {
        
    }
    .page-news__article-content {
        padding: 15px;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-meta {
        font-size: 13px;
    }
    .page-news__article-excerpt {
        font-size: 15px;
    }
    .page-news__view-all-button-container {
        margin-top: 30px;
        padding: 0 15px;
    }

    /* Why Choose Section (Features Grid) */
    .page-news__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__feature-item {
        padding: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    .page-news__feature-item img {
        max-width: 200px;
        margin-bottom: 15px;
    }
    .page-news__feature-title {
        font-size: 22px;
    }
    .page-news__feature-text {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-qtext {
        font-size: 16px;
    }
    .page-news__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }
    .page-news__faq-answer p {
        font-size: 15px;
    }
    
    /* CTA Bottom Section */
    .page-news__cta-bottom-section {
        padding-bottom: 60px;
    }
}