.file-upload-container {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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


.file-upload-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-upload-btn:hover {
    background-color: #0056b3;
}

.file-upload-btn i {
    color: white;
    font-size: 20px;
}

.uploaded-files-list {
    list-style-type: none;
    padding: 0;
    display: none; /* 默认隐藏上传列表 */
}

.uploaded-files-list li {
    background-color: #f0f0f0;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 3px;
}

.file-preview {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
    white-space: pre-wrap;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
/* 图片模态框 ,为了让图片居中显示，要在对应页面自行调整margin-top的值*/
.modal-content {
    display: flex;
    width: 100%;
    margin-top: 100px;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

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