/* Filterable Table Widget */
.bj-filterable-table-wrapper {
    width: 100%;
    max-width: 100%;
}

/* 筛选区域 */
.bj-filter-section {
    margin-bottom: 32px;
}

.bj-filter-title {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
}

.bj-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bj-filter-btn {
    padding: 12px 28px;
    background-color: #ffffff;
    color: #374151;
    border: 2px solid #d1d5db;
    border-radius: 0;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bj-filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.bj-filter-btn.active {
    background-color: #ffffff;
    color: #2563eb;
    border-color: #2563eb;
}

/* 列表项容器 */
.bj-filterable-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bj-filterable-item {
    display: grid;
    grid-template-columns: 80px 1fr 180px 220px 180px;
    gap: 24px;
    padding: 24px 28px;
    background-color: #f9fafb;
    border-radius: 0;
    align-items: center;
    transition: all 0.3s ease;
}

.bj-filterable-item.hidden {
    display: none;
}

/* 图标 */
.bj-item-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bj-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 标题 */
.bj-item-title {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
}

/* 分类 */
.bj-item-category {
    font-size: 15px;
    font-weight: 400;
    color: #374151;
}

/* 版本/信息 */
.bj-item-info {
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bj-item-info span {
    display: block;
}

/* 下载按钮 */
.bj-item-action {
    display: flex;
    justify-content: flex-end;
}

.bj-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    border: 2px solid #2563eb;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bj-download-btn:hover {
    background-color: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.bj-download-btn svg {
    width: 20px;
    height: 20px;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .bj-filterable-item {
        grid-template-columns: 60px 1fr 140px 160px 160px;
        gap: 16px;
        padding: 20px;
    }
    
    .bj-item-icon {
        width: 48px;
        height: 48px;
    }
    
    .bj-item-title {
        font-size: 16px;
    }
    
    .bj-item-category,
    .bj-item-info {
        font-size: 14px;
    }
    
    .bj-download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .bj-filter-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .bj-filter-buttons {
        gap: 8px;
    }
    
    .bj-filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .bj-filterable-items {
        gap: 12px;
    }
    
    .bj-filterable-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
        text-align: center;
    }
    
    .bj-item-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }
    
    .bj-item-title {
        font-size: 17px;
    }
    
    .bj-item-category {
        font-size: 14px;
        color: #6b7280;
    }
    
    .bj-item-info {
        font-size: 14px;
        align-items: center;
    }
    
    .bj-item-action {
        justify-content: center;
    }
    
    .bj-download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bj-filterable-item {
    animation: fadeIn 0.3s ease;
}

/* Elementor编辑器样式 */
.elementor-editor-active .bj-filterable-table-wrapper {
    min-height: 300px;
}

