/* 新闻中心分类页独立样式 */

/* 主内容区域 */
.news-main {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 600px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 新闻中心分类页横幅 */
.news-archive-banner {
    background: #1e40af;
    color: white;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.news-archive-banner h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.category-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 左侧边栏样式 */
.sidebar-left {
    padding-right: 30px;
}

.widget-box {
    background: white;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.widget-title {
    background: #1e40af;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.widget-title h4 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.widget-title p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.category-nav {
    list-style: none;
    padding: 15px;
    margin: 0;
}

.category-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.category-nav li:last-child {
    border-bottom: none;
}

.category-nav a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-nav a:hover {
    background: #f0f7ff;
    color: #1e40af;
}

.category-nav .current-category > a {
    background: #e3f2fd;
    color: #1e40af;
    border-left: 3px solid #1e40af;
}

/* 联系我们小工具内容 */
.contact-info {
    padding: 20px;
    line-height: 1.6;
}

.contact-info h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

/* 主内容区域 */
.main-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
}

/* 面包屑导航 */
.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb-nav h2 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    margin-right: 10px;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: #999;
}

.breadcrumb-item a {
    color: #1e40af;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

/* 左侧分类导航 */
.category-sidebar {
    background: white;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-sidebar h3 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e40af;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: #7f8c8d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-list a:hover {
    color: #1e40af;
    background: #f8f9fa;
}

.category-list li.active a {
    color: white;
    background: #1e40af;
}

/* 新闻列表容器 */
.news-list-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 新闻文章列表 */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
}

.news-item {
    transition: background-color 0.3s ease;
    display: block;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    padding: 20px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f8f9fa;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-title {
    margin-bottom: 8px;
}

.news-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #1e40af;
}

.news-excerpt {
    color: #7f8c8d;
    line-height: 1.5;
    font-size: 14px;
    margin-bottom: 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #95a5a6;
}

.news-category {
    background: #1e40af;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-date {
    color: #95a5a6;
}

/* 阅读更多链接样式 */
.read-more {
    margin-top: 10px;
}

.read-more a {
    display: inline-block;
    padding: 8px 20px;
    background: #1e40af;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 14px;
}

.read-more a:hover {
    background: #3b82f6;
    text-decoration: none;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers li {
    margin: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-numbers a:hover {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.pagination .page-numbers .current {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

/* 无文章提示 */
.no-news {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-news p {
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .sidebar-left {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .breadcrumb-nav h2 {
        font-size: 1.6rem;
    }
    
    .widget-title h4 {
        font-size: 1.1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-archive-banner {
        padding: 60px 0;
    }
    
    .news-archive-banner h1 {
        font-size: 28px;
    }
    
    .category-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .news-main {
        padding: 20px 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .breadcrumb-nav {
        padding: 15px;
    }
    
    .breadcrumb-nav h2 {
        font-size: 1.4rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-archive-banner {
        padding: 40px 0;
    }
    
    .news-archive-banner h1 {
        font-size: 24px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}