/* 图片上传页面特定样式 */
.upload-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 1s ease-out forwards;
}

.upload-container h1 {
    color: #2193b0;
    margin-bottom: 15px;
}

.upload-container p {
    color: #666;
    margin-bottom: 30px;
}

.file-input-container {
    margin-bottom: 20px;
    position: relative;
}

/* 隐藏原始文件输入框 */
#image-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

/* 自定义文件输入按钮 */
.custom-file-input {
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: bold;
}

.custom-file-input:hover {
    background: linear-gradient(to right, #6dd5c8, #9aa6d9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#file-name {
    display: block;
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

.image-preview-container {
    margin: 20px 0;
    max-width: 100%;
    height: 250px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-button {
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.upload-button:hover {
    background: linear-gradient(to right, #6dd5c8, #9aa6d9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#upload-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
}

.status-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.status-message.loading {
    background-color: #f0f8ff;
    color: #2193b0;
    border-left: 4px solid #2193b0;
}

.status-message.success {
    background-color: #f0fff4;
    color: #38a169;
    border-left: 4px solid #38a169;
}

.status-message.error {
    background-color: #fff5f5;
    color: #e53e3e;
    border-left: 4px solid #e53e3e;
}

/* 图片处理区域样式 */
.processing-container {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.processing-container h2 {
    color: #2193b0;
    margin-bottom: 20px;
    text-align: center;
}

.processing-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.process-button {
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.process-button:hover {
    background: linear-gradient(to right, #6dd5c8, #9aa6d9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.processed-preview {
    margin: 20px 0;
    text-align: center;
}

.processed-preview h3 {
    color: #333;
    margin-bottom: 15px;
}

#processed-preview {
    max-width: 100%;
    max-height: 300px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-button {
    display: inline-block;
    background: linear-gradient(to right, #4CAF50, #2E7D32);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: linear-gradient(to right, #43A047, #2E7D32);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}