/* static/css/upload-style.css */
/* 上传区域样式 */
.upload-section {
    text-align: center;
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #ff69b4;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 105, 180, 0.05);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: #ff1493;
    background-color: rgba(255, 105, 180, 0.1);
}

.upload-area.active {
    border-color: #18a058;
    background-color: rgba(24, 160, 88, 0.1);
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background-image: url('/app1/static/favicon/upload-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-text {
    margin-bottom: 8px;
    font-weight: 500;
    color: #ff69b4;
    font-size: 1.2rem;
}

.upload-hint {
    color: rgba(255, 105, 180, 0.7);
    font-size: 0.9rem;
}

#fileInput {
    display: none;
}

/* 缩略图容器样式 */
.thumbnail-container {
    margin-top: 20px;
    text-align: center;
    position: relative;
}

.thumbnail-wrapper {
    position: relative;
    display: inline-block;
}

.uploaded-thumbnail {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.thumbnail-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail-remove-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}

/* 移除之前页面右上角的删除按钮样式 */

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}