/* 分类标签页增强样式 */
.category-tabs {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 15px 20px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #fa84b7;
}

.tab-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.tab-btn.active {
    background: #f8f9fa;
    color: #fa84b7;
    border-bottom-color: #fa84b7;
    font-weight: 600;
}

/* 新闻列表区域 */
.news-list-section {
    padding: 30px 0;
}

/* 两栏布局 */
.news-content-wrapper {
    width: 100%;
}

.news-left-section {
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fa84b7;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.news-count {
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #eee;
}

/* 新闻网格布局 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #f0f0f0;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #fa84b7;
}

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

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

.news-content {
    padding: 0px 10px 10px 10px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.news-category {
    background: linear-gradient(135deg, #fa84b7, #99dcff);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.news-date {
    color: #999;
    font-size: 12px;
}

.news-title {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.news-item:hover .news-title {
    color: #fa84b7;
}

.news-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: none;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #fa84b7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分页样式增强 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.pagination button:hover:not(:disabled) {
    background: #fa84b7;
    color: white;
    border-color: #fa84b7;
    transform: translateY(-2px);
}

.pagination button.active {
    background: #fa84b7;
    color: white;
    border-color: #fa84b7;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state img {
    width: 120px;
    height: 120px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #999;
}

.empty-state p {
    font-size: 14px;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb .container {
        font-size: 13px;
    }
    
    .tab-buttons {
        padding: 0 15px;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 80px;
        border-radius: 20px;
        margin-right: 5px;
        flex-shrink: 0;
        touch-action: manipulation;
    }
    
    .tab-btn:last-child {
        margin-right: 0;
    }
    
    .section-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .news-count {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .news-excerpt {
        font-size: 12px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination button {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .tab-buttons {
        padding: 0 10px;
        gap: 3px;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 12px;
        min-width: 70px;
        border-radius: 18px;
        margin-right: 3px;
        flex-shrink: 0;
        touch-action: manipulation;
    }
    
    .tab-btn:last-child {
        margin-right: 0;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .news-item img {
        height: 180px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-title {
        font-size: 14px;
    }
    
    .pagination button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* 滚动条样式 */
.tab-buttons::-webkit-scrollbar {
    height: 4px;
}

.tab-buttons::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.tab-buttons::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fa84b7, #99dcff);
    border-radius: 2px;
}

.tab-buttons::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e673a3, #7bc8f0);
}

/* 动画效果 */
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分类标签页滚动指示器 */
.category-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(to right, transparent, #ffffff);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-tabs.scrollable::after {
    opacity: 1;
}

/* 移动端滚动指示器 */
@media (max-width: 768px) {
    .category-tabs {
        display: none;
    }
    .category-tabs::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 3px;
        background: linear-gradient(to left, transparent, #fa84b7);
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 1;
    }
    
    .category-tabs::after {
        width: 40px;
        height: 3px;
    }
    
    .category-tabs.scrollable::before {
        opacity: 1;
    }
    
    .category-tabs.scrolled-left::before {
        opacity: 1;
    }
    
    .category-tabs.scrolled-right::after {
        opacity: 1;
    }
}
