/* 图片上传区域样式 */

/* 图片上传区域容器 - 纵向布局 */
.upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 图片预览容器 - 水平排列 */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* 预览容器为空时隐藏 */
.preview-container:empty {
    display: none;
}

.preview-image {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.remove-btn:hover {
    background: var(--error);
    transform: scale(1.1);
}

/* 图片上传区域 */
.upload-area {
    width: 100%;
    min-height: 120px;
    border: 2px dashed var(--border-dashed);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-input);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--accent-gold);
    background: var(--bg-tertiary);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    color: var(--text-secondary);
}

.upload-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}
