/* 轮播图优化 */
.banner {
    margin-top: 12px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 160px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.banner-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

/* 资源列表 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 15px;
}

.section-title h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    flex-shrink: 0;
}

/* 内联分类标签 */
.category-tabs-inline {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    margin-left: 20px;
}

.category-tab {
    padding: 5px 12px;
    background: #F2F2F7;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.category-tab:hover:not(.active) {
    background: #E5E5EA;
}

/* 列表项优化 */
.resource-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.item-cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    position: relative;
}

.item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.recommend-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ff0e00, #1b1aff);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 0 0 8px 0;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(255, 14, 0, 0.3);
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-content h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.item-content p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-time {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-download {
    background: #F2F2F7;
    color: var(--primary-color);
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}
