body {
    font-family: Arial, sans-serif;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
}

.sidebar {
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.file-list {
    flex: 1;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.file-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    cursor: pointer;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.file-list li.selected {
    background-color: #d4e9ff;
}

.search-container {
    margin-bottom: 10px;
}

.search-container input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.category-list {
    margin-top: 10px;
    border: 1px solid #ddd;
    max-height: 600px;
    overflow-y: auto;
}

.category-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.category-actions {
    display: flex;
    gap: 10px;
}

.rename-btn,
.delete-btn {
    color: #007BFF;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn {
    color: #dc3545;
}

.category-files {
    margin-top: 8px;
    padding-left: 20px;
    border-left: 2px solid #eee;
    display: none;
}

.category-files.expanded {
    display: block;
}

.category-file {
    padding: 4px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.category-file input[type="checkbox"] {
    margin-right: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button {
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
}

.modal-header {
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
}

.modal-body {
    margin-bottom: 15px;
}

.modal-body input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 10px;
    max-height: 600px;
    margin-top: 10px;
}

.preview-area textarea {
    flex: 1;
    border: none;
    resize: none;
    outline: none;
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 10px;
}









body {
    font-family: Arial, sans-serif;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
}

.sidebar {
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.file-list {
    flex: 1;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.file-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    cursor: pointer;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.file-list li.selected {
    background-color: #d4e9ff;
}

.search-container {
    margin-bottom: 10px;
}

.search-container input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.category-list {
    margin-top: 10px;
    border: 1px solid #ddd;
    max-height: 600px;
    overflow-y: auto;
}

.category-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.category-actions {
    display: flex;
    gap: 10px;
}

.rename-btn,
.delete-btn {
    color: #007BFF;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn {
    color: #dc3545;
}

.category-files {
    margin-top: 8px;
    padding-left: 20px;
    border-left: 2px solid #eee;
    display: none;
}

.category-files.expanded {
    display: block;
}

.category-file {
    padding: 4px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.category-file input[type="checkbox"] {
    margin-right: 5px;
    /* 添加默认选中样式 */
    checked: true;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button {
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
}

.modal-header {
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
}

.modal-body {
    margin-bottom: 15px;
}

.modal-body input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    padding: 10px;
    max-height: 600px;
    margin-top: 10px;
}

.preview-area textarea {
    flex: 1;
    border: none;
    resize: none;
    outline: none;
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 新增：进度条样式 */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #007BFF;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-info {
    font-size: 14px;
    color: #666;
}

/* 新增：操作日志样式 */
.operation-log {
    margin-top: 20px;
}

.log-container {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.log-item {
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 3px;
}

.log-info {
    background-color: #e8f4ff;
    color: #004085;
}

.log-success {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.log-warning {
    background-color: #fff3e0;
    color: #e65100;
}

.log-error {
    background-color: #ffebee;
    color: #b71c1c;
}

.log-timestamp {
    font-weight: bold;
    margin-right: 10px;
}



#progressBarContainer {
    width: 100%;
    background-color: #ddd;
}

#progressBar {
    width: 0%;
    height: 30px;
    background-color: #4CAF50;
    text-align: center;
    line-height: 30px;
    color: white;
}

