/* 新闻页面专用样式 - 不与其他CSS冲突 */
.news-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}
.news-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}
.news-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.news-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}
.news-item {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}
.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.news-item-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-item:hover .news-item-img img {
    transform: scale(1.05);
}
.news-item-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.news-item-content {
    padding: 30px;
}
.news-item-date {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.news-item:hover .news-item-title {
    color: var(--primary);
}
.news-item-excerpt {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.news-item-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
.news-item-link:hover {
    color: var(--primary);
    gap: 8px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 80px;
}
.num-container {
    display: flex;
    gap: 6px;
}
.page-btn {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.page-btn.prev, .page-btn.next {
    width: auto;
    padding: 0 20px;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 新闻详情 */
.news-detail {
    max-width: 900px;
    margin: 0 auto 80px;
    background: white;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}
.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}
.news-detail-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
}
.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}
.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-detail-img {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}
.news-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-detail-content {
    color: var(--dark);
    line-height: 1.8;
    font-size: 16px;
}
.news-detail-content p {
    margin-bottom: 20px;
}
.news-detail-content h2, .news-detail-content h3 {
    color: var(--primary);
    margin: 30px 0 15px;
}
.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.news-detail-content ul, .news-detail-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}
.news-detail-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.news-detail-content a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 30px;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}
.back-to-list:hover {
    background: var(--primary);
    color: white;
}

.no-data {
    grid-column: 1 / -1;
    padding: 60px 0;
    text-align: center;
    font-size: 16px;
    color: #999;
}

/* 响应式 */
@media (max-width: 992px) {
    .news-header h1 { font-size: 2.2rem; }
    .news-header { padding: 40px 0; }
    .news-detail-img { height: 350px; }
    .news-detail-title { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .news-list { grid-template-columns: 1fr; }
    .news-detail { padding: 20px; }
    .news-detail-img { height: 250px; }
}
@media (max-width: 576px) {
    .news-header h1 { font-size: 1.8rem; }
    .news-header p { font-size: 1rem; }
    .news-filter { flex-direction: column; align-items: center; }
    .filter-btn { width: 100%; max-width: 300px; }
    .news-detail-title { font-size: 1.5rem; }
    .news-detail-img { height: 200px; }
}