/* ========================================
   尧图网站建设 - 新闻列表页样式
   ======================================== */

.news-list-section {
    padding: 80px 0;
    background: var(--cream-white);
}

.news-list-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.news-list-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.news-list-image {
    height: 220px;
    overflow: hidden;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-list-item:hover .news-list-image img {
    transform: scale(1.1);
}

.news-list-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-date {
    font-size: 14px;
    color: var(--sky-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-list-date::before {
    content: '📅';
}

.news-list-content h3 {
    font-size: 24px;
    color: var(--deep-blue);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-list-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-list-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--deep-blue);
    font-weight: 600;
    font-size: 14px;
}

.news-list-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-more::after {
    transform: translateX(5px);
}

/* 新闻分类筛选 */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--sky-blue);
    background: var(--white);
    color: var(--deep-blue);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--sky-blue);
    color: var(--white);
}

/* 响应式 */
@media (max-width: 768px) {
    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-image {
        height: 200px;
    }
}

/* ========================================
   新闻详情页样式
   ======================================== */

.news-detail-section {
    padding: 80px 0;
    background: var(--cream-white);
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.news-detail-header {
    padding: 50px;
    border-bottom: 1px solid #e8e8e8;
}

.news-detail-category {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--sky-blue), var(--soft-green));
    color: var(--white);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.news-detail-header h1 {
    font-size: 36px;
    color: var(--deep-blue);
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-detail-meta {
    display: flex;
    gap: 25px;
    color: var(--text-light);
    font-size: 14px;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-body {
    padding: 50px;
}

.news-detail-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.news-detail-body p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
}

/* 相关新闻 */
.related-news {
    padding: 50px;
    background: var(--cream-white);
    border-top: 1px solid #e8e8e8;
}

.related-news h3 {
    font-size: 24px;
    color: var(--deep-blue);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.related-image {
    height: 160px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 16px;
    color: var(--deep-blue);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-content .date {
    font-size: 13px;
    color: var(--text-light);
}

/* 响应式 */
@media (max-width: 768px) {
    .news-detail-header,
    .news-detail-body,
    .related-news {
        padding: 30px 20px;
    }

    .news-detail-header h1 {
        font-size: 26px;
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
