/* ========================================
   新闻列表页和详情页样式
   ======================================== */

/* 新闻列表页头部 */
.news-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 100%);
    position: relative;
    overflow: hidden;
}

.news-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.news-header h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.news-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 2;
}

/* 新闻列表区域 */
.news-list-section {
    padding: 100px 0;
    background: var(--white);
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-list-card {
    background: var(--light-beige);
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-list-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px var(--shadow-medium);
}

.news-list-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-list-card:hover .news-list-image img {
    transform: scale(1.1);
}

.news-list-content {
    padding: 30px;
}

.news-list-date {
    font-size: 0.85rem;
    color: var(--primary-wood);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-list-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-list-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-wood);
    font-weight: 500;
    transition: gap 0.3s ease;
}

.news-list-link:hover {
    gap: 15px;
}

/* 新闻详情页样式 */
.news-single-section {
    padding: 100px 0;
    background: var(--white);
}

.news-single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-single-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.news-single-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.news-single-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.news-single-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-single-cover {
    width: 100%;
    height: 450px;
    margin-bottom: 50px;
    overflow: hidden;
    border-radius: 5px;
}

.news-single-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-single-content {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.05rem;
}

.news-single-content p {
    margin-bottom: 25px;
}

.news-single-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 5px;
}

/* 相关新闻板块 */
.related-news-section {
    padding: 80px 0;
    background: var(--light-beige);
    margin-top: 60px;
}

.related-news-section .section-title {
    margin-bottom: 50px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.related-news-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.4s ease;
}

.related-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.related-news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-news-card:hover .related-news-image img {
    transform: scale(1.1);
}

.related-news-content {
    padding: 20px;
}

.related-news-date {
    font-size: 0.8rem;
    color: var(--primary-wood);
    margin-bottom: 10px;
}

.related-news-content h4 {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式 */
@media (max-width: 1024px) {
    .news-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-single-cover {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .news-header h1 {
        font-size: 2.2rem;
    }

    .news-list-grid {
        grid-template-columns: 1fr;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .news-single-header h1 {
        font-size: 1.8rem;
    }

    .news-single-cover {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .news-header {
        padding: 120px 0 60px;
    }

    .news-header h1 {
        font-size: 1.8rem;
    }
}
