/* 新闻页面样式 */
.news-container {
    max-width: 1000px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.news-page-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
}

.news-page-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

/* 横向新闻卡片 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

/* 左侧图片区域 */
.news-item-image {
    flex: 0 0 240px;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.08);
}

/* 日期标签 */
.news-date-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    white-space: nowrap;
}

/* 右侧文字内容 */
.news-item-content {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: gap 0.3s ease;
}

.news-item:hover .news-read-more {
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-container {
        margin: 100px auto 40px;
        padding: 0 16px;
    }

    .news-page-title {
        font-size: 28px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .news-item-content {
        padding: 18px 20px;
    }

    .news-item-title {
        font-size: 18px;
    }
}
