/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: flex-start;
    z-index: 1000;
    padding-top: 5vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 0 0;
    border-bottom: 1px solid #eee;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.modal-content h3 {
    margin-left: 15px;
}
/* 移除 form-body 的 flex: 1，改用固定高度 */
.form-body {
    height: calc(70vh - 120px); /* 减去头部和底部的高度 */
    overflow-y: auto;
    padding: 20px;
     scrollbar-color: var(--border-color) transparent;
}

.form-actions {
    position: sticky;
    bottom: 0;
    background-color: var(--bg-color);
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 1;
}

@media (max-width: 768px) {
    .form-body {
        height: calc(85vh - 140px);
        padding: 15px;
    }
}

.modal-body {
    padding: 10px;
}
.modal-footer {
    padding: 20px;
}

@media (max-width: 768px) {
    .form-body {
        max-height: calc(60vh - 100px);
        overflow-y: auto;
        padding: 10px;
    }
}

.form-actions {
    position: sticky;
    bottom: 0;
    background-color: var(--bg-color);
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 8px 8px;
}

.rename-type-selector {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.radio-label input[type="radio"] {
    width: auto;
    order: -1;
}

.files-list-modal .modal-content {
    max-width: 1000px;
}

.files-list-modal .form-body {
    height: calc(60vh - 100px);
    padding: 0;
}
/* 移除这些重复的样式 */
.files-list-modal .modal-content {
    max-height: 70vh;
    margin-top: 2vh;
}

.rename-options-modal .form-body {
    height: calc(55vh - 100px);
}
/* 移除这些重复的样式 */
.rename-options-modal .modal-content {
    max-height: 60vh;
    margin-top: 2vh;
}

.preview-rename-modal .modal-content {
    max-width: 1000px;
}

.preview-rename-modal .form-body {
    height: calc(55vh - 100px);
}
/* 移除这些重复的样式 */
.preview-rename-modal .modal-content {
    max-height: 60vh;
    margin-top: 2vh;
}
