/* 新闻中心页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #6c757d;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 新闻筛选区域 */
.news-filter {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    width: 250px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* 新闻列表 */
.news-list {
    padding: 50px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.news-content {
    padding: 25px;
}

.news-content h2 {
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content h2 a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.news-content h2 a:hover {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

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

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.page-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 热门文章 */
.hot-articles {
    padding: 50px 0;
    background: white;
}

.hot-articles h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.hot-list {
    max-width: 600px;
    margin: 0 auto;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
}

.hot-item:hover {
    background: #f8f9fa;
}

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

.hot-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.hot-content h3 {
    margin-bottom: 5px;
}

.hot-content h3 a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}

.hot-content h3 a:hover {
    color: var(--primary-color);
}

.hot-views {
    font-size: 12px;
    color: #666;
}

/* 新闻详情页样式 */
.news-detail {
    padding: 40px 0;
    background: white;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.news-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-header .news-meta {
    justify-content: center;
    font-size: 14px;
}

.news-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

.news-body h2 {
    color: var(--primary-color);
    margin: 30px 0 20px;
    font-size: 24px;
}

.news-body h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 20px;
}

.news-body p {
    margin-bottom: 20px;
}

.news-body img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.news-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.news-tags h4 {
    margin-bottom: 15px;
    color: #333;
}

.tag {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 搜索结果样式 */
.search-results {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    color: #1976d2;
    font-size: 14px;
}

.search-results p {
    margin: 0;
}

/* 高亮搜索词 */
mark {
    background: #ffeb3b;
    color: #333;
    padding: 1px 3px;
    border-radius: 2px;
}

/* 相关文章 */
.related-news {
    padding: 50px 0;
    background: #f8f9fa;
}

.related-news h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--secondary-color);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* 分享按钮样式 */
.share-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.share-buttons h4 {
    margin-bottom: 15px;
    color: #333;
}

.share-btn {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
}

.share-btn.weibo {
    background: #e6162d;
    color: white;
}

.share-btn.wechat {
    background: #1aad19;
    color: white;
}

.share-btn.qq {
    background: #12b7f5;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        justify-content: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .hot-item {
        padding: 15px;
    }
    
    .news-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .news-list,
    .hot-articles,
    .related-news {
        padding: 30px 0;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .category-filter {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}