/* style/news.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main: #333333;
    --card-bg: #FFFFFF;
    --background-page: #F5F7FA;
    --border-color: #E0E0E0;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--background-page);
    line-height: 1.6;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as per instruction */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

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

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

.page-news__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-news__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-news__hero-cta-button {
    display: inline-block;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    border: none;
}

.page-news__hero-cta-button:hover {
    opacity: 0.9;
}

.page-news__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    font-weight: bold;
}

.page-news__latest-news-section,
.page-news__featured-news-section,
.page-news__categories-section,
.page-news__cta-section,
.page-news__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.page-news__news-card,
.page-news__category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover,
.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-news__news-card-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: bold;
}

.page-news__news-card-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.page-news__news-card-summary {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__news-card-read-more {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start;
}

.page-news__news-card-read-more:hover {
    text-decoration: underline;
}

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

.page-news__view-all-button {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.page-news__view-all-button:hover {
    background: var(--secondary-color);
}

.page-news__featured-article {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.page-news__featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

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

.page-news__featured-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: bold;
}

.page-news__featured-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.page-news__featured-summary {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.page-news__featured-read-more {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-news__featured-read-more:hover {
    text-decoration: underline;
}

.page-news__category-card {
    text-decoration: none;
    color: inherit;
    padding: 25px;
    text-align: center;
}

.page-news__category-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__category-description {
    font-size: 1rem;
    color: var(--text-main);
}

.page-news__cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
    overflow: hidden;
}

.page-news__cta-content {
    flex: 1;
    padding-right: 30px;
}

.page-news__cta-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.page-news__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
}

.page-news__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

.page-news__cta-image {
    width: 40%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.page-news__faq-section {
    margin-bottom: 60px;
}

.page-news__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-question::marker {
    display: none;
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    font-size: 1rem;
    color: var(--text-main);
    padding-top: 15px;
    line-height: 1.6;
}

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

/* General image and container responsiveness */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for responsiveness */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-news__hero-description {
        font-size: 1rem;
    }

    .page-news__section-title {
        font-size: 2rem;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-news__news-grid,
    .page-news__featured-grid,
    .page-news__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-news__news-card-title {
        font-size: 1.2rem;
    }

    .page-news__featured-title {
        font-size: 1.3rem;
    }

    .page-news__cta-section {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        margin: 40px auto;
    }

    .page-news__cta-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .page-news__cta-title {
        font-size: 2rem;
    }

    .page-news__cta-description {
        font-size: 1rem;
    }

    .page-news__cta-buttons {
        justify-content: center;
    }

    .page-news__cta-image {
        width: 60%;
        max-width: 400px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-news__hero-title {
        font-size: 2rem !important;
    }

    .page-news__hero-description {
        font-size: 0.95rem;
    }

    .page-news__hero-cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* 通用内容区域 */
    .page-news__latest-news-section,
    .page-news__featured-news-section,
    .page-news__categories-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-news__section-title {
        font-size: 1.8rem;
        margin-top: 30px;
        margin-bottom: 25px;
    }

    /* 产品展示图区域 (News Grid & Featured Grid) */
    .page-news__news-grid,
    .page-news__featured-grid,
    .page-news__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__news-card-image {
        height: 180px;
    }

    .page-news__news-card-title {
        font-size: 1.1rem;
    }

    .page-news__news-card-summary {
        font-size: 0.95rem;
    }

    .page-news__featured-image {
        height: 200px;
    }

    .page-news__featured-title {
        font-size: 1.2rem;
    }

    .page-news__featured-summary {
        font-size: 0.95rem;
    }

    .page-news__category-title {
        font-size: 1.2rem;
    }

    .page-news__category-description {
        font-size: 0.9rem;
    }

    /* 通用图片与容器 */
    .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__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .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;
        font-size: 1rem;
    }

    .page-news__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px;
        font-size: 1rem;
    }

    /* 其他内容模块 */
    .page-news__cta-title {
        font-size: 1.8rem;
    }

    .page-news__cta-description {
        font-size: 0.95rem;
    }

    .page-news__cta-image {
        width: 80%;
        margin-top: 30px;
    }

    .page-news__faq-question {
        font-size: 1rem;
    }

    .page-news__faq-answer {
        font-size: 0.95rem;
    }
}