    /* 统一资源筛选系统 - 极简风格 */

/* 容器 - 极简 Box */
.vie-resource-filter-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}



/* 分类筛选 */
.filter-section {
    display: none;
    margin-bottom: 20px;
}

.filter-section.active {
    display: block;
}

.vie-resource-filter-container h4 {
    font-size: 11px;
    font-weight: 600;
    margin: 16px 0 10px 0;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vie-resource-filter-container h4:first-child {
    margin-top: 0;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #999;
    color: #333;
}

.filter-btn.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* 结果容器 */
.vie-resource-results-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

/* 结果网格 - 3 列 × 4 行 */
.vie-resource-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    max-height: calc(4 * 450px);
    overflow: hidden;
}

/* 卡片 - 扁平风格 */
.resource-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.resource-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: #ddd;
}

/* 卡片图片 */
.resource-item-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f8f8f8;
}

.resource-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.resource-item:hover .resource-item-image img {
    transform: scale(1.02);
}

/* Video 播放器 */
.resource-video .video-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.resource-video .video-player iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Video 缩略图 */
.resource-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: #fff;
    background: rgba(0,0,0,0.4);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.resource-video:hover .play-icon {
    background: rgba(0,0,0,0.6);
    transform: translate(-50%, -50%) scale(1.08);
}

/* 卡片内容 */
.resource-item-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-item-content h3 {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.resource-item-content h3 a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.resource-item-content h3 a:hover {
    color: #2196f3;
}

/* Meta - 日期和分类 */
.resource-item-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-date,
.video-date {
    flex-shrink: 0;
    font-weight: 500;
    color: #666;
}

.post-tags,
.video-category {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* Pill 风格 Tag/Category */
.tag-pill,
.cat-pill {
    display: inline-block;
    padding: 3px 8px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}

.tag-more,
.cat-more {
    font-size: 10px;
    color: #999;
}

/* 摘要 */
.resource-item-excerpt {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 分页 */
.vie-resource-pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    min-width: 36px;
    text-align: center;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #000;
    color: #000;
    background: #f5f5f5;
}

.pagination span.current {
    background: #000;
    color: #fff;
    border-color: #000;
    cursor: default;
}

.pagination span.ellipsis {
    border: none;
    padding: 8px 6px;
    color: #999;
    cursor: default;
}

.pagination a.prev,
.pagination a.next {
    font-size: 11px;
    min-width: auto;
    padding: 8px 8px;
}

/* 加载状态 */
.loading,
.no-results,
.error {
    text-align: center;
    padding: 48px 20px;
    font-size: 14px;
    color: #999;
}

.error {
    color: #e74c3c;
}

/* 响应式 */
@media (max-width: 1024px) {
    .vie-resource-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vie-resource-filter-container,
    .vie-resource-results-wrapper {
        padding: 16px;
    }
    
    .vie-resource-results {
        grid-template-columns: 1fr;
        max-height: none;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .type-btn {
        font-size: 12px;
    }
    
    .filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .resource-item-content {
        padding: 12px;
    }
}