/* 多二维码轮换功能样式 */

/* 图片预览容器 */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.image-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.image-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.2;
}

.image-order {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

/* 图片管理列表 */
.image-manage-list {
    max-height: 400px;
    overflow-y: auto;
}

.image-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: white;
}

.image-preview-small {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.image-preview-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.image-details {
    flex: 1;
    margin-right: 1rem;
}

.image-details > div {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.image-actions {
    flex-shrink: 0;
}

/* 轮换模式选择器样式 */
.rotation-mode-selector {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.rotation-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rotation-option:hover {
    background: #e9ecef;
}

.rotation-option.active {
    background: #e7f3ff;
    border-color: #007bff;
}

.rotation-option input[type="radio"] {
    margin-right: 0.5rem;
}

/* 快速轮换设置按钮 */
.quick-rotation-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.quick-rotation-buttons .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* 轮换状态指示器 */
.rotation-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.rotation-status.active {
    color: #28a745;
}

.rotation-status.inactive {
    color: #6c757d;
}

/* 图片计数标识 */
.image-count-badge {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* 轮换模式标识 */
.rotation-mode-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.rotation-mode-badge.single {
    background: #6c757d;
    color: white;
}

.rotation-mode-badge.sequential {
    background: #28a745;
    color: white;
}

.rotation-mode-badge.random {
    background: #ffc107;
    color: #212529;
}

/* 图片上传拖拽区域 */
.image-drop-zone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-drop-zone:hover {
    background: #e9ecef;
    border-color: #0056b3;
}

.image-drop-zone.dragover {
    background: #e7f3ff;
    border-color: #007bff;
}

.image-drop-zone i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-preview-container {
        gap: 0.5rem;
    }
    
    .image-preview-item {
        width: 80px;
        height: 80px;
    }
    
    .image-preview-item img {
        height: 50px;
    }
    
    .image-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .image-preview-small {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .quick-rotation-buttons {
        flex-direction: column;
    }
    
    .quick-rotation-buttons .btn {
        width: 100%;
    }
}
