/* ============================================
   NEWS PAGES - 新闻资讯页面样式
   ============================================ */

/* 新闻面包屑导航 */
.news-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.875rem;
}

.news-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumb a:hover {
    color: #f97316;
}

.news-breadcrumb-sep {
    color: #cbd5e1;
}

.news-breadcrumb-current {
    color: #ea580c;
    font-weight: 500;
}

/* 文章内容样式 */
.news-content {
    line-height: 1.8;
    color: #334155;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    color: #1e293b;
}

.news-content h2 {
    font-size: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
}

.news-content p {
    margin-bottom: 1em;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.news-content a {
    color: #f97316;
    text-decoration: underline;
}

.news-content a:hover {
    color: #ea580c;
}

.news-content ul,
.news-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.news-content li {
    margin-bottom: 0.5em;
}

.news-content blockquote {
    border-left: 4px solid #f97316;
    padding-left: 1em;
    margin: 1em 0;
    color: #64748b;
    font-style: italic;
}

.news-content pre {
    background: #f1f5f9;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.news-content code {
    background: #f1f5f9;
    padding: 0.125em 0.375em;
    border-radius: 4px;
    font-size: 0.875em;
}

.news-content pre code {
    background: none;
    padding: 0;
}

/* 新闻分类标签 */
.news-category-tabs .news-tab-btn {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    text-decoration: none;
}

.news-category-tabs .news-tab-btn:hover {
    background-color: #e2e8f0;
    color: #475569;
}

.news-category-tabs .news-tab-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border-color: #f97316;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* ============================================
   分页组件 - 现代化美观设计
   ============================================ */
.pagination-wrapper {
    margin-top: 48px;
    padding: 32px 0 24px;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    text-align: center;
    margin-bottom: 24px;
}

.pagination-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.pagination-text strong {
    color: #f97316;
    font-weight: 700;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    color: #f97316;
    background: #fff7ed;
    border-color: #fed7aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.pagination-btn:active {
    transform: translateY(0);
}

/* 页码数字样式 */
.pagination-pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.pagination-pages a:hover {
    color: #f97316;
    background: #fff7ed;
    border-color: #fed7aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

/* 当前页码 */
.pagination-pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: 1px solid #f97316;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
    margin: 0 2px;
}

/* 首页/尾页按钮 */
.pagination-first .pagination-btn,
.pagination-last .pagination-btn {
    padding: 0 10px;
    min-width: auto;
}

/* 上一页/下一页按钮 */
.pagination-prev .pagination-btn,
.pagination-next .pagination-btn {
    padding: 0 16px;
    min-width: auto;
    font-weight: 600;
}

/* 禁用状态 */
.pagination-btn.disabled,
.pagination-pages span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-wrapper {
        margin-top: 32px;
        padding: 24px 0 16px;
    }
    
    .pagination-nav {
        gap: 6px;
    }
    
    .pagination-btn,
    .pagination-pages a,
    .pagination-pages span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
        padding: 0 8px;
    }
    
    .pagination-prev .pagination-btn,
    .pagination-next .pagination-btn {
        padding: 0 12px;
    }
    
    .pagination-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .pagination-nav {
        gap: 4px;
    }
    
    .pagination-btn,
    .pagination-pages a,
    .pagination-pages span {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0 6px;
    }
    
    .pagination-prev .pagination-btn span,
    .pagination-next .pagination-btn span {
        display: none;
    }
}
