/* static/css/sketches.css */
body {
    font-family: 'Comic Sans MS', 'Chalkboard', sans-serif;
    background: linear-gradient(to bottom, #ffefd5, #ffe4e1);
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.title {
    text-align: center;
    font-size: 2rem;
    color: #ff69b4;
    margin-bottom: 20px;
}

.description {
    font-size: 1rem;
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.process-button {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    background: #ff69b4;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 80%;
    max-width: 300px;
}

.process-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    background: #ff1493;
}

.status-message {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
}

.status-error {
    background-color: #ffebee;
    color: #f44336;
}

.status-success {
    background-color: #e8f5e9;
    color: #4caf50;
}

/* 结果容器 */
.result-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px dashed #ddd;
}

/* 进度条区域 */
.progress-section {
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.progress-hint {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
}

.progress-hint a {
    color: #ff69b4;
    text-decoration: none;
}

.progress-hint a:hover {
    text-decoration: underline;
}

/* 结果图片区域 */
.result-image-container {
    text-align: center;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.result-image-wrapper {
    position: relative;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.result-image-wrapper img {
    width: 100%;
    border-radius: 5px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}

.result-image-wrapper img:hover {
    transform: scale(1.02);
}

.download-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 0;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    color: white;
    text-align: center;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: linear-gradient(to right, #ff1493, #ff69b4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
}

/* 返回按钮样式 */
.back-button {
    background: none;
    border: none;
    color: #ff69b4;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.back-button:hover {
    color: #ff1493;
    transform: translateX(-3px);
}

/* 图片模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #ff69b4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .title {
        font-size: 1.5rem;
    }
}

.process-button:disabled {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.estimated-time {
    color: #ff6b00;  /* 橙色强调 */
    font-weight: bold;
    font-size: 1.1em;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; }
}

/* 确保关闭按钮可点击 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #ff1493;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #ff69b4, #ff1493);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn:hover {
    background: linear-gradient(to right, #ff1493, #ff69b4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
}
