/* 资讯分类列表页样式 */

.news-category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    gap: 30px;
}

.news-category-main {
    flex: 1;
}

.news-category-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 面包屑 */
.news-breadcrumb {
    padding: 10px 0 15px;
    color: var(--text-gray);
    font-size: 14px;
}

.news-breadcrumb a {
    color: var(--text-gray);
}

.news-breadcrumb a:hover {
    color: var(--primary-green);
}

.news-breadcrumb span {
    margin: 0 5px;
}

/* 分类标题 */
.news-category-title {
    font-size: 24px;
    color: var(--primary-green);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-green);
    margin-bottom: 20px;
    font-weight: 600;
}

/* 文章列表 */
.news-article-list {
    list-style: none;
}

.news-article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: background 0.3s;
}

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

.news-article-item:hover {
    background: var(--bg-cream);
}

.news-article-thumb {
    width: 180px;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.news-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-article-title {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.3s;
}

.news-article-title:hover {
    color: var(--primary-green);
}

.news-article-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-article-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 13px;
}

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

/* 分页 */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.news-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-gray);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-white);
}

.news-page-btn:first-child,
.news-page-btn:last-of-type {
    border-radius: 4px;
    padding: 0 15px;
}

.news-page-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.news-page-btn.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

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

.news-page-btn[disabled]:hover {
    border-color: var(--border-color);
    color: var(--text-gray);
}

.news-page-info {
    width: 100%;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 7px;
}

/* 侧边栏热门文章 */
.sidebar-hot {
    background: var(--bg-white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-hot-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: var(--gold);
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    font-size: 16px;
}

.sidebar-hot-list {
    list-style: none;
    padding: 10px 0;
}

.sidebar-hot-item {
    padding: 10px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: background 0.3s;
}

.sidebar-hot-item:hover {
    background: var(--bg-cream);
}

.hot-rank {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    background: #ccc;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    font-weight: 600;
}

.hot-rank.top1 { background: #e74c3c; }
.hot-rank.top2 { background: #e67e22; }
.hot-rank.top3 { background: #f1c40f; }

.sidebar-hot-link {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    flex: 1;
}

.hot-title {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
    flex: 1;
}

.hot-title:hover {
    color: var(--primary-green);
}

.sidebar-hot-link:hover {
    color: var(--primary-green);
}

/* 响应式 */
@media (max-width: 768px) {
    .news-category-page {
        flex-direction: column;
    }
    
    .news-category-sidebar {
        width: 100%;
    }
    
    .news-article-item {
        flex-direction: column;
    }
    
    .news-article-thumb {
        width: 100%;
        height: 200px;
    }
    
    .news-article-title {
        font-size: 16px;
    }
    
    .news-category-title {
        font-size: 20px;
    }
}
