/* 制品库模块样式 */

.artifact-module {
    padding: 20px;
}

/* 顶部操作栏 */
.artifact-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}

/* 手动上传弹窗 */
.upload-modal-content {
    max-height: 600px;
    overflow-y: auto;
}

.upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-hint {
    color: #6b7280;
}

/* 检索区域（优化版）- 更宽敞舒适 */
.artifact-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #3b82f6;
}

.search-group {
    grid-column: span 2;
    position: relative;
}

.search-group input {
    width: 100%;
    padding-right: 40px;
}

.btn-search {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 制品列表 */
.artifact-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.artifact-table {
    width: 100%;
    border-collapse: collapse;
}

.artifact-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.artifact-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
}

.artifact-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #1f2937;
}

.artifact-table tbody tr:hover {
    background: #f9fafb;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-blue {
    background: #dbeafe;
    color: #1e40af;
}

.tag-green {
    background: #d1fae5;
    color: #065f46;
}

.tag-purple {
    background: #e9d5ff;
    color: #6b21a8;
}

.tag-orange {
    background: #fed7aa;
    color: #92400e;
}

.tag-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.tag-dark {
    background: #e5e7eb;
    color: #1f2937;
}

/* 链接和按钮 */
.link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

.text-muted {
    color: #6b7280;
    font-size: 13px;
}

.btn-sm {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

/* 响应式 */
@media (max-width: 1200px) {
    .artifact-filters {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .artifact-table {
        font-size: 12px;
    }
    
    .artifact-table th,
    .artifact-table td {
        padding: 8px;
    }
}

