/* ===== 孵化池样式 ===== */

.hatch-layout {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.hatch-left {
    flex: 1;
    min-width: 0;
}

.hatch-right {
    width: 360px;
    flex-shrink: 0;
}

.hatch-section {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 12px;
}

.hatch-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border, #e0e0e0);
}

.upload-zone {
    border: 2px dashed var(--border, #c0c0c0);
    border-radius: 8px;
    padding: 28px 16px;
    text-align: center;
    color: var(--text-secondary, #666);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 13px;
}

.upload-zone:hover {
    border-color: var(--primary, #3b82f6);
    background: rgba(59,130,246,0.03);
}

.upload-zone.dragover {
    border-color: var(--primary, #3b82f6);
    background: rgba(59,130,246,0.08);
}

.upload-icon {
    font-size: 28px;
    color: var(--text-secondary, #999);
    margin-bottom: 4px;
}

.hatch-config-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.hatch-config-row label {
    font-size: 12px;
    color: var(--text-secondary, #666);
}

.hatch-config-row select,
.hatch-config-row input[type="text"] {
    border: 1px solid var(--border, #d0d0d0);
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 4px;
    background: var(--card-bg, #fff);
    color: var(--text-primary, #1e293b);
}

.hatch-config-row select:focus,
.hatch-config-row input:focus {
    outline: none;
    border-color: var(--primary, #3b82f6);
}

.hatch-output-list {
    max-height: 420px;
    overflow-y: auto;
}

.hatch-empty {
    text-align: center;
    color: var(--text-secondary, #999);
    font-size: 13px;
    padding: 32px 0;
}

.hatch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border, #eee);
    font-size: 13px;
}

.hatch-item:last-child {
    border-bottom: none;
}

.hatch-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f0f4ff;
    color: var(--primary, #3b82f6);
    font-size: 14px;
    flex-shrink: 0;
}

.hatch-item-info {
    flex: 1;
    min-width: 0;
}

.hatch-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hatch-item-meta {
    font-size: 11px;
    color: var(--text-secondary, #888);
}

.hatch-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.hatch-item-actions .btn {
    padding: 2px 8px;
    font-size: 11px;
}

.hatch-types {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    padding: 14px;
    margin-top: 8px;
}

.hatch-type-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.type-tab {
    padding: 4px 14px;
    border: 1px solid var(--border, #d0d0d0);
    background: var(--card-bg, #f8f8f8);
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    color: var(--text-secondary, #666);
    transition: all 0.15s;
}

.type-tab.active {
    background: var(--primary, #3b82f6);
    color: #fff;
    border-color: var(--primary, #3b82f6);
}

.type-tab:hover:not(.active) {
    background: #eef2ff;
}

.hatch-type-info {
    font-size: 13px;
    line-height: 1.6;
}

.type-desc-row {
    padding: 4px 0;
    display: flex;
    gap: 8px;
}

.type-desc-label {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    flex-shrink: 0;
    min-width: 80px;
}

.upload-progress {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: var(--primary, #3b82f6);
    border-radius: 2px;
    transition: width 0.3s;
}
