/* 图像上色页面样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.image-preview {
    aspect-ratio: 16/9;
    background-color: #f3f4f6;
}

@keyframes firefly-glow {
    0% { text-shadow: 0 0 3px rgba(99, 102, 241, 0.5); }
    50% { text-shadow: 0 0 10px rgba(99, 102, 241, 0.8), 0 0 15px rgba(99, 102, 241, 0.3); }
    100% { text-shadow: 0 0 3px rgba(99, 102, 241, 0.5); }
}

.logo-text {
    animation: firefly-glow 3s infinite;
}

.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #6366f1;
    border-radius: 50%;
    margin-left: 2px;
    margin-right: 4px;
    position: relative;
    top: -2px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid rgba(99, 102, 241, 0.2);
    border-top-color: rgba(99, 102, 241, 1);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.colorization-task {
    transition: all 0.3s ease;
}

/* 箭头连接（与全局风格化一致） */
.effect-arrow {
    display: none;
}

@media (min-width: 768px) {
    .effect-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #eef2ff;
        color: #4f46e5;
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
        flex-shrink: 0;
        font-size: 1.25rem;
    }
}

/* 辅助样式 */
.btn-primary {
    background-color: #6366f1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #4f46e5;
}

.active-option {
    background-color: #ede9fe;
    border-color: #6366f1;
    color: #4f46e5;
}

/* 上传区域样式（与智能扩图保持一致） */
.upload-area {
    position: relative;
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    overflow: hidden;
}

#image-upload {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-preview {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    display: none;
    z-index: 1;
}

.upload-area.upload-has-image .upload-content {
    display: none !important;
}

.upload-area.upload-has-image .upload-preview {
    display: block;
}

.upload-actions {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 2;
}

.upload-actions::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.reupload-btn,
.delete-upload-btn {
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reupload-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 18px;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid #e5e7eb;
    z-index: 3;
}

.reupload-btn:hover,
.reupload-btn.hovered {
    background: #3b82f6;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.32);
}

.delete-upload-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.delete-upload-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.upload-area.upload-has-image:hover .upload-actions {
    display: block !important;
}

.upload-area:hover {
    border-color: #6366f1;
    background: #f5f7ff;
}

.upload-area:hover .upload-content .bg-gray-100 {
    background: #e5e7eb;
}

.upload-area:hover .upload-content i {
    color: #6366f1;
}

.upload-area.dragover {
    border-color: #6366f1;
    background: #eef2ff;
    border-style: solid;
}

.upload-area.dragover .upload-content i,
.upload-area.dragover .upload-content p {
    color: #6366f1;
}

/* 历史记录卡片样式 */
.history-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.history-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* 加载中遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

/* 卡片悬停效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* 图片拖动禁用 */
img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
} 