/* ===== 新闻系统样式 ===== */
/* 版本: 3.0 - 企业百科列表页美化优化 */
/* 更新: 2024-12-20 */

/* 基础变量 - 橙红色主题 */
:root {
    --primary-color: #ff6b35;
    --primary-dark: #e54d1d;
    --primary-light: #ff8c5a;
    --secondary-color: #f8f9fa;
    --accent-color: #ff8c5a;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-color: #0f172a;       /* 高对比度深色文字 */
    --text-light: #334155;       /* 深色正文文字 */
    --text-muted: #4b5563;       /* 次要文字颜色 */
    --border-color: #e9ecef;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 25px rgba(255,107,53,0.15);
    --shadow-large: 0 15px 35px rgba(255,107,53,0.2);
    --border-radius: 12px;
    --border-radius-large: 16px;
    --transition: none;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #e54d1d 100%);
    --gradient-secondary: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== 新闻横幅样式 ===== */
.news-banner {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #e54d1d 0%, #ff6b35 50%, #ff8c5a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

#news-particles {
    display: none;
}

.news-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.news-banner-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

.news-banner-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 400;
}

/* ===== 面包屑导航样式 ===== */
.news-breadcrumb-wrapper {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-light);
}

.news-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.news-breadcrumb a:hover {
    color: var(--primary-color);
}

.news-breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

/* ===== 新闻列表区域样式 ===== */
.news-list-section {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 600px;
}

/* 新闻筛选器 */
.news-filter {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title i {
    color: var(--primary-color);
}

.filter-view-options {
    display: flex;
    gap: 5px;
}

.view-option {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.view-option:hover,
.view-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== 新闻/百科分类筛选器 - 简约现代版 ===== */
.news-filter .filter-categories,
.news-list-section .news-filter .filter-categories {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 16px 0 !important;
    background: transparent !important;
}

.news-filter .filter-categories::before {
    display: none !important;
}

.news-filter .filter-category,
.news-list-section .news-filter .filter-category {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    gap: 0 !important;
    min-height: auto !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

/* 隐藏图标，只显示文字 */
.news-filter .filter-category .filter-icon,
.news-list-section .news-filter .filter-category .filter-icon {
    display: none !important;
}

.news-filter .filter-category .filter-text,
.news-list-section .news-filter .filter-category .filter-text {
    font-weight: inherit !important;
    text-shadow: none !important;
}

.news-filter .filter-category::before,
.news-filter .filter-category::after,
.news-list-section .news-filter .filter-category::before,
.news-list-section .news-filter .filter-category::after {
    display: none !important;
}

.news-filter .filter-category:hover,
.news-list-section .news-filter .filter-category:hover {
    background: #e2e8f0 !important;
    color: #475569 !important;
    transform: none !important;
    box-shadow: none !important;
}

.news-filter .filter-category.active,
.news-list-section .news-filter .filter-category.active {
    background: #ff6b35 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.news-filter .filter-category.active .filter-text,
.news-list-section .news-filter .filter-category.active .filter-text {
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* 移动端分类筛选器 */
@media screen and (max-width: 768px) {
    .news-filter .filter-categories,
    .news-list-section .news-filter .filter-categories {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 12px 0 !important;
        margin: 0 -16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        gap: 8px !important;
    }
    
    .news-filter .filter-categories::-webkit-scrollbar,
    .news-list-section .news-filter .filter-categories::-webkit-scrollbar {
        display: none !important;
    }
    
    .news-filter .filter-category,
    .news-list-section .news-filter .filter-category {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }
}

@media screen and (max-width: 480px) {
    .news-filter .filter-categories,
    .news-list-section .news-filter .filter-categories {
        padding: 10px 0 !important;
        margin: 0 -12px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 6px !important;
    }
    
    .news-filter .filter-category,
    .news-list-section .news-filter .filter-category {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* 面包屑容器 */
.breadcrumb-wrapper {
    margin-bottom: 30px;
}

.breadcrumb {
    background: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

/* ===== 新闻网格样式 ===== */
.news-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.news-grid.list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.news-grid.grid-view {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* 企业百科卡片 - 全新现代化设计 */
.news-card {
    background: #ffffff;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 107, 53, 0.08);
    position: relative;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
}

/* 卡片顶部装饰条 */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 2;
}

/* 卡片悬停效果 */
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-large);
    border-color: rgba(255, 107, 53, 0.2);
}

/* 列表视图特定样式 */
.news-grid.list-view .news-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 200px;
}

/* 图片容器优化 */
.news-card-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 15px 15px 0 15px;
}

.news-grid.list-view .news-card-img {
    width: 280px;
    flex-shrink: 0;
    margin: 15px 0 15px 15px;
    border-radius: var(--border-radius);
}

/* 图片比例容器 */
.img-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.img-ratio-box {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.news-grid.list-view .img-ratio-box {
    height: 170px;
}

/* 图片样式优化 */
.img-ratio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: var(--transition);
    filter: brightness(1) saturate(1.1);
    display: block;
}

.news-card:hover .img-ratio-box img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

/* ===== 紧凑视图（网格视图）图片优化 ===== */
.news-grid.grid-view .news-card-img {
    margin: 15px 15px 0 15px;
    flex-shrink: 0;
}

.news-grid.grid-view .img-ratio-box {
    height: 220px;
    width: 100%;
    min-height: 180px;
}

.news-grid.grid-view .img-ratio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 100%;
}

/* 分类标签优化 */
.news-card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* 内容区域优化 */
.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: #ffffff;  /* 确保白色背景增强字体对比度 */
}

/* 标题样式优化 */
.news-card-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;           /* 增加字体粗细 */
    line-height: 1.4;
    letter-spacing: 0.01em;     /* 增加字母间距提高可读性 */
}

.news-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: block;
    text-shadow: 0 0.5px 0 rgba(0,0,0,0.02); /* 轻微文字阴影增强清晰度 */
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif; /* 确保使用微软雅黑 */
}

.news-card-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-title a:hover {
    color: #ff6b35; /* 使用主题色 */
}

.news-card-title a:hover::after {
    width: 100%;
}

/* 元信息样式优化 */
.news-card-meta {
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
}

.news-card-meta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.news-card-date,
.news-card-views {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 107, 53, 0.05);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.news-card-date:hover,
.news-card-views:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.news-card-date i,
.news-card-views i {
    margin-right: 6px;
    color: #ff6b35;
    font-size: 12px;
}

/* 摘要样式优化 */
.news-card-summary-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.news-card-summary-link:hover {
    color: var(--text-color);
}

.news-card-summary {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;           /* 增加行高改善可读性 */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif; /* 确保使用微软雅黑 */
    font-weight: 500;           /* 适中的字重 */
    letter-spacing: 0.01em;     /* 微调字间距 */
}

/* 渐变遮罩效果 */
.news-card-summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 20px;
    background: linear-gradient(to right, transparent, #ffffff);
    pointer-events: none;
}

/* 企业百科列表页专属美化效果 */
/* 页面加载动画 - 已移除 */

.news-card {
    /* 动画已移除 */
}

/* 动画延迟已移除 */

/* 分类标签动画效果 - 已移除 */

.news-card:hover .news-card-category {
    /* 动画已移除 */
}

/* 图片容器装饰效果 */
.news-card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 107, 53, 0.1) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-card-img::after {
    opacity: 1;
}

/* 标题下划线 - 动画已移除 */

.news-card-title a:hover::after {
    /* 动画已移除 */
}

/* 卡片内容渐入效果 - 已移除 */

.news-card:hover .news-card-title,
.news-card:hover .news-card-summary {
    /* 动画已移除 */
}

/* 元信息悬停渐变效果 */
.news-card-date,
.news-card-views {
    position: relative;
    overflow: hidden;
}

.news-card-date::before,
.news-card-views::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s;
}

.news-card-date:hover::before,
.news-card-views:hover::before {
    left: 100%;
}

/* 列表视图特殊效果 */
.news-grid.list-view .news-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-left: 4px solid transparent;
    background-clip: padding-box;
}

.news-grid.list-view .news-card:hover {
    border-left-color: #ff6b35;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

/* 骨架屏加载效果 - 已移除 */

.news-card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    /* 动画已移除 */
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
    /* 列表视图和网格视图统一为纵向布局 */
    .news-grid.list-view .news-card,
    .news-grid.grid-view .news-card {
        flex-direction: column;
        min-height: auto;
    }
    
    /* 移动端标题字体优化 */
    .news-card-title {
        font-weight: 700;
    }
    
    .news-card-title a {
        color: #1a1a1a;
    }
    
    /* 统一列表视图和网格视图的图片容器样式 */
    .news-grid.list-view .news-card-img,
    .news-grid.grid-view .news-card-img {
        flex: none;
        width: 100%;
        margin: 15px 15px 0 15px;
    }
    
    /* 统一列表视图和网格视图的图片高度 */
    .news-grid.list-view .img-ratio-box,
    .news-grid.grid-view .img-ratio-box {
        height: 200px;
        width: 100%;
        min-height: 180px;
    }
    
    /* 统一列表视图和网格视图的图片样式 */
    .news-grid.list-view .img-ratio-box img,
    .news-grid.grid-view .img-ratio-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        min-height: 100%;
        display: block;
    }
    
    /* 通用图片容器样式（兼容旧版） */
    .img-ratio-box {
        height: 200px;
        width: 100%;
        min-height: 180px;
    }
    
    /* 确保所有图片容器完整显示 */
    .img-ratio-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
    
    /* 统一卡片内容区域样式 */
    .news-card-body {
        padding: 15px 20px 20px;
    }
    
    .news-card-title {
        font-size: 16px;
    }
    
    .news-card-meta-group {
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .news-card-date,
    .news-card-views {
        font-size: 12px;
        padding: 5px 10px;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media screen and (max-width: 480px) {
    .news-grid {
        gap: 20px;
    }
    
    /* 小屏幕加强字体清晰度 */
    .news-card-title {
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
    }
    
    .news-card-summary {
        font-size: 13px !important;
        line-height: 1.5 !important;
        font-weight: 500 !important;
        color: #444 !important;
    }
    
    /* 统一列表视图和网格视图的图片容器样式 - 480px */
    .news-grid.list-view .news-card-img,
    .news-grid.grid-view .news-card-img {
        margin: 12px 12px 0 12px;
        width: calc(100% - 24px);
    }
    
    /* 统一列表视图和网格视图的图片高度 - 480px */
    .news-grid.list-view .img-ratio-box,
    .news-grid.grid-view .img-ratio-box {
        height: 180px;
        width: 100%;
        min-height: 160px;
    }
    
    /* 统一列表视图和网格视图的图片样式 - 480px */
    .news-grid.list-view .img-ratio-box img,
    .news-grid.grid-view .img-ratio-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        min-height: 100%;
        display: block;
    }
    
    /* 通用图片容器样式（兼容旧版） - 480px */
    .img-ratio-box {
        height: 180px;
        width: 100%;
        min-height: 160px;
    }
    
    /* 强化所有图片完整显示 */
    .img-ratio-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        min-height: 100% !important;
    }
    
    /* 统一卡片内容区域样式 - 480px */
    .news-card-body {
        padding: 15px;
    }
    
    .news-card-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .news-card-summary {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .news-card-date,
    .news-card-views {
        font-size: 12px;
        padding: 4px 8px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .news-card-meta-group {
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    /* 手机端卡片增强效果 */
    .news-card {
        margin-bottom: 5px;
        border-radius: 12px;
    }
    
    .news-card::before {
        height: 3px;
    }
    
    .news-card-category {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 15px;
    }
    
    /* 手机端动画简化 */
    .news-card:hover {
        transform: translateY(-2px);
    }
    
    /* 禁用复杂动画以提升性能 */
    .news-card:hover .news-card-category {
        animation: none;
    }
    
    .news-card:hover .news-card-title,
    .news-card:hover .news-card-summary {
        animation: none;
    }
}

/* ===== 分页样式 - 美化优化 ===== */
.news-pagination {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: var(--border-radius-large);
    padding: 25px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 107, 53, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.news-pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.page-info {
    color: var(--text-light);
    font-size: 14px;
}

.page-info strong {
    color: var(--primary-color);
}

.page-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid rgba(255, 107, 53, 0.15);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.page-link:hover,
.page-link.active {
    background: var(--gradient-primary);
    color: white !important;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* PbootCMS分页数字条样式 - 美化优化 */
.page-links .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid rgba(255, 107, 53, 0.15);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    margin: 0 3px;
    position: relative;
    z-index: 1;
}

.page-links .page-num:hover {
    background: var(--gradient-primary);
    color: white !important;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.page-links .page-num-current {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 16px;
}

.no-data i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* ===== 新闻详情页样式 ===== */
.news-detail {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin-bottom: 30px;
}

.news-detail-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-detail-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.news-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.news-detail-meta-item i {
    color: var(--primary-color);
}

.news-detail-content {
    padding: 30px;
    line-height: 1.8;
    overflow-x: auto;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

/* 表格响应式样式 */
.news-detail-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.news-detail-content table th,
.news-detail-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    word-break: break-all;
}

.news-detail-content table th {
    background: var(--secondary-color);
    font-weight: 600;
    color: var(--text-color);
}

.news-detail-content table tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* 表格容器，确保不溢出 */
.news-detail-content .table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.news-detail-content .table-container table {
    margin: 0;
    min-width: 600px;
}

.news-detail-content p {
    margin-bottom: 15px;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
    margin: 25px 0 15px;
    color: var(--text-color);
}

/* 标签样式 */
.news-detail-tags {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-detail-tags-label {
    color: var(--text-light);
    font-weight: 500;
}

.news-detail-tags a {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.news-detail-tags a:hover {
    background: var(--primary-color);
    color: white;
}

/* 上下篇导航 */
.news-nav {
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-nav-item.next {
    text-align: right;
}

.news-nav-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.news-nav-title {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.4;
}

.news-nav-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.news-nav-title a:hover {
    color: var(--primary-color);
}

/* 相关推荐 */
.news-related {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.news-related-title {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-related-title i {
    color: var(--primary-color);
}

.news-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.news-related-item {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
}

.news-related-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.news-related-item-title {
    margin-bottom: 8px;
}

.news-related-item-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: var(--transition);
}

.news-related-item-title a:hover {
    color: var(--primary-color);
}

.news-related-item-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== 响应式设计 ===== */

/* 平板设备 */
@media screen and (max-width: 1024px) {
    .news-banner-title {
        font-size: 32px;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .news-grid.grid-view {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* 小屏平板 */
@media screen and (max-width: 768px) {
    .news-banner {
        height: 250px;
    }
    
    .news-banner-title {
        font-size: 28px;
    }
    
    .news-list-section {
        padding: 20px 0;
    }
    
    .news-filter {
        padding: 20px;
    }
    
    .filter-heading {
        flex-direction: column;
        gap: 15px;
    }
    

    
    .news-grid.list-view .news-card {
        flex-direction: column;
    }
    
    .news-grid.list-view .news-card-img {
        width: 100%;
    }
    
    .news-grid.list-view .img-ratio-box {
        height: 200px;
    }
    
    .news-pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .news-nav {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-nav-item.next {
        text-align: left;
    }
    
    .news-detail-header {
        padding: 20px;
    }
    
    .news-detail-content {
        padding: 20px;
    }
    
    /* 手机端表格优化 */
    .news-detail-content table {
        font-size: 14px;
    }
    
    .news-detail-content table th,
    .news-detail-content table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .news-detail-content .table-container {
        border-radius: 8px;
    }
    
    .news-detail-content .table-container table {
        min-width: 500px;
    }
    
    .news-detail-tags,
    .news-nav,
    .news-related {
        padding: 20px;
    }
    
    .news-detail-title {
        font-size: 20px;
    }
    
    .news-detail-meta {
        gap: 15px;
    }
}

/* 手机设备 */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .news-banner {
        height: 200px;
    }
    
    .news-banner-title {
        font-size: 24px;
    }
    
    .news-banner-subtitle {
        font-size: 14px;
    }
    
    .news-filter {
        padding: 15px;
    }
    
    .filter-title {
        font-size: 16px;
    }
    
    .news-card-body {
        padding: 15px;
    }
    
    .news-card-title {
        font-size: 16px;
    }
    
    .news-pagination {
        padding: 15px;
    }
    
    .page-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .news-detail-header,
    .news-detail-content,
    .news-detail-tags,
    .news-nav,
    .news-related {
        padding: 15px;
    }
    
    .news-detail-title {
        font-size: 18px;
    }
    
    .news-detail-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
    }
    
    .news-detail-meta-item {
        flex-shrink: 0;
        font-size: 13px;
    }
    
    /* 小屏幕表格进一步优化 */
    .news-detail-content table {
        font-size: 12px;
    }
    
    .news-detail-content table th,
    .news-detail-content table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .news-detail-content .table-container table {
        min-width: 400px;
    }
    
    .news-related-list {
        grid-template-columns: 1fr;
    }
}

/* 超小设备 */
@media screen and (max-width: 320px) {
    .news-banner-title {
        font-size: 20px;
    }
    
    .news-detail-title {
        font-size: 16px;
    }
    
    .news-card-title {
        font-size: 14px;
    }
}

/* ===== 强制分类筛选器样式测试 ===== */
/* 这些样式应该立即可见 */

.filter-categories a {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #475569 !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    margin: 5px !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(0) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

.filter-categories a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #e54d1d 100%) !important;
    color: white !important;
    border-color: #ff6b35 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.3) !important;
}

.filter-categories a.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(5, 150, 105, 0.5) !important;
    position: relative !important;
}

.filter-categories a.active::before {
    content: "✓" !important;
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #ffffff !important;
    color: #059669 !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.filter-categories a.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: #059669 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.8) !important;
}

@keyframes selectedPulse {
    0% { box-shadow: 0 15px 40px rgba(5, 150, 105, 0.5); }
    50% { box-shadow: 0 20px 50px rgba(5, 150, 105, 0.7); }
    100% { box-shadow: 0 15px 40px rgba(5, 150, 105, 0.5); }
}

/* 强制覆盖所有可能的分类样式 */
.news-filter .filter-categories a,
.news-list-section .filter-categories a,
section .filter-categories a,
div .filter-categories a {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #475569 !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    margin: 5px !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(0) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

/* 手机端强制水平排列 - 最高优先级 */
@media screen and (max-width: 768px) {
    /* 强制容器水平排列 */
    .news-list-section .news-filter .filter-categories {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        white-space: nowrap !important;
        padding: 20px 0 25px !important;
        margin: 0 -20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .news-list-section .news-filter .filter-categories::-webkit-scrollbar {
        display: none !important;
    }
    
    /* 强制子元素水平排列 */
    .news-list-section .news-filter .filter-categories a.filter-category,
    .news-filter .filter-categories a.filter-category {
        display: inline-flex !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin-right: 12px !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    /* 480px断点强制容器水平排列 */
    .news-list-section .news-filter .filter-categories {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        white-space: nowrap !important;
        padding: 15px 0 20px !important;
        margin: 0 -15px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .news-list-section .news-filter .filter-categories::-webkit-scrollbar {
        display: none !important;
    }
    
    /* 480px断点强制子元素水平排列 */
    .news-list-section .news-filter .filter-categories a.filter-category,
    .news-filter .filter-categories a.filter-category {
        display: inline-flex !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin-right: 10px !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding: 10px 16px !important;
        min-height: 40px !important;
        font-size: 12px !important;
    }
}

/* 悬停状态 */
.news-filter .filter-categories a:hover,
.news-list-section .filter-categories a:hover,
section .filter-categories a:hover,
div .filter-categories a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #e54d1d 100%) !important;
    color: white !important;
    border-color: #ff6b35 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.3) !important;
}

/* 选中状态 - 绿色主题突出显示 */
.news-filter .filter-categories a.active,
.news-list-section .filter-categories a.active,
section .filter-categories a.active,
div .filter-categories a.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.4) !important;
    animation: none !important;
}

/* 选中状态的勾号标记 */
.news-filter .filter-categories a.active::before,
.news-list-section .filter-categories a.active::before,
section .filter-categories a.active::before,
div .filter-categories a.active::before {
    content: "✓" !important;
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #ffffff !important;
    color: #059669 !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    z-index: 10 !important;
}

/* 选中状态的底部指示器 */
.news-filter .filter-categories a.active::after,
.news-list-section .filter-categories a.active::after,
section .filter-categories a.active::after,
div .filter-categories a.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: #059669 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.8) !important;
}

/* ===== 隐藏阅读进度指示器 ===== */
.reading-progress {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ===== 缩略图完整显示强化样式 ===== */
/* 确保所有视图模式下缩略图都能完整显示 */

/* 图片容器基础优化 */
.news-card-img,
.product-card-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    display: block;
}

/* 图片包装器优化 */
.img-wrapper,
.news-card-img .img-wrapper,
.product-card-img .img-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
}

/* 图片比例盒优化 */
.img-ratio-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: block;
}

/* 强化所有图片显示 */
.img-ratio-box img,
.news-card-img img,
.product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border-radius: inherit !important;
    background-size: cover !important;
    background-position: center center !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

/* 兼容不同模板的图片结构 */
.news-grid .news-card img,
.product-grid .product-card img {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
}

/* 针对可能存在的其他图片类名 */
.list-item-img img,
.card-image img,
.thumbnail img {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* 防止图片被其他样式覆盖 */
[class*="card"] img[src],
[class*="item"] img[src],
[class*="thumb"] img[src] {
    object-fit: cover !important;
    object-position: center center !important;
}

/* 移动端强化 - 统一列表视图和网格视图 */
@media screen and (max-width: 768px) {
    /* 确保列表视图和网格视图图片样式完全一致 */
    .news-grid.list-view .img-ratio-box img,
    .news-grid.grid-view .img-ratio-box img,
    .img-ratio-box img,
    .news-card-img img,
    .product-card-img img {
        object-fit: cover !important;
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }
    
    /* 确保列表视图和网格视图容器高度一致 */
    .news-grid.list-view .img-ratio-box,
    .news-grid.grid-view .img-ratio-box {
        height: 200px !important;
        min-height: 180px !important;
    }
}

@media screen and (max-width: 480px) {
    /* 小屏幕下确保列表视图和网格视图图片完整显示 */
    .news-grid.list-view .img-ratio-box,
    .news-grid.grid-view .img-ratio-box,
    .img-ratio-box,
    .news-card-img,
    .product-card-img {
        height: 180px !important;
        min-height: 160px !important;
    }
    
    /* 小屏幕下统一图片样式 */
    .news-grid.list-view .img-ratio-box img,
    .news-grid.grid-view .img-ratio-box img,
    .img-ratio-box img,
    .news-card-img img,
    .product-card-img img {
        object-fit: cover !important;
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        display: block !important;
    }
}

/* ===== 移动端列表视图和网格视图完全统一样式 ===== */
/* 确保移动端下列表视图和网格视图表现完全一致 */
@media screen and (max-width: 768px) {
    /* 强制列表视图采用网格视图的布局 */
    .news-grid.list-view {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    /* 统一卡片布局 */
    .news-grid.list-view .news-card,
    .news-grid.grid-view .news-card {
        flex-direction: column !important;
        align-items: stretch !important;
        min-height: auto !important;
        display: flex !important;
    }
    
    /* 统一图片容器边距 */
    .news-grid.list-view .news-card-img,
    .news-grid.grid-view .news-card-img {
        margin: 15px 15px 0 15px !important;
        width: calc(100% - 30px) !important;
        flex-shrink: 0 !important;
    }
    
    /* 统一内容区域 */
    .news-grid.list-view .news-card-body,
    .news-grid.grid-view .news-card-body {
        padding: 15px 20px 20px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
}

@media screen and (max-width: 480px) {
    /* 480px下进一步统一样式 */
    .news-grid.list-view {
        gap: 20px !important;
    }
    
    /* 统一小屏幕图片容器边距 */
    .news-grid.list-view .news-card-img,
    .news-grid.grid-view .news-card-img {
        margin: 12px 12px 0 12px !important;
        width: calc(100% - 24px) !important;
    }
    
    /* 统一小屏幕内容区域 */
    .news-grid.list-view .news-card-body,
    .news-grid.grid-view .news-card-body {
        padding: 15px !important;
    }
}