/* ===== 新闻页面样式 ===== */
.news-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.sidebar-news {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-news h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e94560;
    color: #1a1a2e;
}

.sidebar-news h3 i {
    margin-right: 8px;
    color: #e94560;
}

.sidebar-news ul li {
    margin-bottom: 5px;
}

.sidebar-news ul li a {
    display: block;
    padding: 12px 15px;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-news ul li a:hover,
.sidebar-news ul li.active a {
    background: #e94560;
    color: #fff;
}

.news-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-list-item:hover {
    background: #f9f9f9;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-image {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.news-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-content .news-date {
    color: #e94560;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-list-content h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-list-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-content .read-more {
    margin-top: 15px;
    color: #e94560;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-list-content .read-more:hover {
    text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-news {
        display: none;
    }
}

@media (max-width: 768px) {
    .news-list-item {
        grid-template-columns: 1fr;
    }
    
    .news-list-image {
        aspect-ratio: 16/9;
    }
}
