﻿/* DealHunter Web UI 样式 */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
}

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.navbar-brand {
    font-weight: 600;
}

.stat-card {
    border-radius: 10px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 500;
}

.preview-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    min-height: 120px;
    font-size: 14px;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

.table th {
    font-weight: 500;
}

.badge {
    font-weight: 500;
}

/* 图片上传区 */
.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
    background-color: #e9ecef;
}

.image-upload-area.dragover {
    border-color: var(--success-color);
    background-color: #d1e7dd;
}

/* 图片预览 */
.image-preview-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.image-preview-item {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #dee2e6;
}

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

.image-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 审核区 */
.review-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
}

.review-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    color: #333;
    margin-top: 15px;
}

/* 平台预览卡片 */
.platform-preview-card {
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.platform-preview-header {
    padding: 10px 15px;
    font-weight: 500;
}

.platform-preview-body {
    padding: 15px;
    background: white;
}

/* 发布结果 */
.publish-result {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.publish-result-item {
    flex: 1;
    min-width: 200px;
}

.publish-result-item.success {
    border-left: 3px solid var(--success-color);
}

.publish-result-item.failed {
    border-left: 3px solid #dc3545;
}

/* Toast 动画 */
.toast {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
    .stat-card .fs-3 {
        font-size: 1.5rem !important;
    }

    .image-preview-item {
        width: 100px;
        height: 100px;
    }
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    gap: 20px;
}

.step {
    padding: 8px 20px;
    border-radius: 20px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s;
}

.step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}