/* 文件列表 */
.file-list {
    width: 100%;
    border-collapse: collapse;
}
.file-list th, .file-list td {
    padding: 5px;
    text-align: center; /* 保证所有列内容居中 */
    vertical-align: middle; /* 垂直居中对齐 */
    border-bottom: 1px solid #eee;
}
.file-list tr:hover {
    background-color: #f1f1f1;
}
.file-list td:first-child, .file-list th:first-child {
    min-width: 150px; /* 根据需要调整宽度 */
}
.file-list td:nth-child(2), .file-list th:nth-child(2) {
    min-width: 100px; /* 根据需要调整宽度 */
}
.file-list td:nth-child(3), .file-list th:nth-child(3) {
    min-width: 100px; /* 根据需要调整宽度 */
}
.file-list td:nth-child(4), .file-list th:nth-child(4) {
    min-width: 250px; /* 根据需要调整宽度 */
}
.file-list th:last-child, .file-list td:last-child {
    width: 250px; /* 设置占位列的宽度 */
    background-color: transparent; /* 确保背景透明 */
}

.file-actions {
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    gap: 5px; /* 按钮之间的间距 */
    height: 100%; /* 确保占满单元格 */
}
.file-actions button {
    padding: 5px 10px;
    text-align: center; /* 按钮内部内容水平居中 */
    vertical-align: middle; /* 按钮垂直方向对齐 */
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.file-actions button:hover {
    background-color: #229f3f;
}

.file-actions button.delete {
    background-color: #FF5733;
}
.file-actions button.delete:hover {
    background-color: #e74c3c;
}


/* 等待标志样式 */
.file-operation-spinner {
    border: 3px solid #f3f3f3; /* 边框颜色 */
    border-top: 3px solid #3498db; /* 动态颜色 */
    border-radius: 50%; /* 圆形 */
    width: 20px; /* 宽度 */
    height: 20px; /* 高度 */
    animation: file-operation-spin 1s linear infinite; /* 动画效果 */
    margin: 0 auto; /* 水平居中 */
}

/* 动画效果 */
@keyframes file-operation-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 操作结果列样式 */
.operation-result {
    width: 250px; /* 设置固定宽度 */
    min-height: 20px;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
    color: gray;
    word-wrap: break-word; /* 自动换行 */
    overflow-wrap: break-word;
}
.operation-result.success {
    color: green;
}
.operation-result.error {
    color: red;
}
 /* 操作结果显示区域样式 */
 .result-message {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    min-height: 30px; /* 固定高度 */
    line-height: 30px; /* 垂直居中 */
    background-color: #f9f9f9; /* 默认背景 */
    color: #333; /* 默认文字颜色 */
    visibility: hidden; /* 默认隐藏 */
}
.result-message.success {
    background-color: #d4edda;
    color: #155724;
    visibility: visible; /* 显示内容 */
}
.result-message.error {
    background-color: #f8d7da;
    color: #721c24;
    visibility: visible; /* 显示内容 */
}











.format-selector-popup {
    text-align: left;
    position: absolute;
    background-color: #ffffff; /* 修改为白色背景，突出显示 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* 更明显的阴影效果 */
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
    width: 350px;
    display: none;
}

.format-selector-popup input {
    width: 90%; /* 调整宽度 */
    padding: 8px;
    margin: 0 auto 20px; /* 上下居中对齐 */
    display: block; /* 将搜索框变成块级元素 */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.format-selector-button {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f7f7f7;
    width: 100px; /* 固定宽度 */
    height: 30px;
    text-align: center;
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
    transition: background-color 0.3s, color 0.3s;
}

.format-selector-button:hover {
    background-color: #007bff;
    color: white;
}

.category h4 {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

/* 格式选择弹窗的按钮容器 */
.category .formats {
    display: flex; /* 使用 Flexbox 来排列按钮 */
    flex-wrap: wrap; /* 允许按钮换行 */
    justify-content: center; /* 按钮居中排列 */
    gap: 10px; /* 按钮之间的间距 */
    padding: 10px; /* 给容器添加一些内边距 */
}

/* 按钮的基本样式 */
.category .formats button {
    padding: 6px 8px; /* 增加按钮的内边距 */
    font-size: 14px; /* 按钮字体大小 */
    min-width: 80px; /* 设置按钮的最小宽度 */
    max-width: 100px; /* 设置按钮的最大宽度 */
    border: 1px solid #ddd;
    border-radius: 6px; /* 按钮的圆角 */
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s; /* 悬停时的过渡效果 */
    text-align: center; /* 按钮文本居中 */
}

/* 悬停时按钮的样式 */
.category .formats button:hover {
    background-color: #007bff; /* 背景变为蓝色 */
    color: white; /* 文字变为白色 */
}

/* "一键应用到全部"按钮的样式 */
.format-selector-popup .apply-all-button {
    margin-top: 20px; /* 按钮与其他元素之间的间距 */
    text-align: right; /* 将按钮对齐到右侧 */
}

.format-selector-popup .apply-all-button button {
    padding: 8px 14px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s;
}

/* "一键应用到全部"按钮悬停效果 */
.format-selector-popup .apply-all-button button:hover {
    background-color: #0056b3;
}

/* 响应式设计，适应小屏幕设备 */
@media (max-width: 768px) {
    .category .formats {
        gap: 8px; /* 小屏幕下减少按钮间距 */
    }
    .category .formats button {
        font-size: 12px; /* 小屏幕下缩小按钮字体 */
    }
}














/* .options-popup {
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    width: 200px;
    display: none;
}

.options-popup label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.options-popup input[type="number"],
.options-popup input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

.file-actions .toggle-options {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
    margin-left: 5px;
}

.file-actions .toggle-options:hover {
    background: #0056b3;
} */