
/* 保留原有所有样式 */
/* 新增响应式布局和暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    /* 暗黑模式样式 */
}




.ace-wrapper {
    margin: 20px 0;
}

.ace-tabs .nav-tab-wrapper {
    margin-bottom: 0;
}

.ace-tabs .tab-content {
    border: 1px solid #c3c4c7;
    border-top: none;
    padding: 20px;
    background: #fff;
}

.ace-toolbar {
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ace-toolbar .button {
    margin-right: 5px;
}

.ace-filemanager {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.ace-file-toolbar {
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ace-file-toolbar input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px;
}

.file-item {
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.file-item:hover {
    background-color: #f0f0f1;
}

.file-icon {
    margin-right: 8px;
    font-size: 16px;
}

.folder-toggle {
    margin-right: 5px;
    cursor: pointer;
    width: 15px;
    display: inline-block;
}

.folder-children {
    margin-left: 20px;
}

.ace-search .search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.ace-search .search-form input,
.ace-search .search-form select {
    flex: 1;
    min-width: 200px;
}

.search-results {
    max-height: 500px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-file {
    font-weight: bold;
    color: #0073aa;
}

.search-result-line {
    color: #666;
    font-family: monospace;
    white-space: pre-wrap;
}

.ace-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.ace-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.card {
    margin-bottom: 20px;
}

.file-info-box {
    margin-top: 10px;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 4px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .ace-modal-content {
        width: 90%;
    }
    
    .ace-toolbar,
    .ace-file-toolbar,
    .ace-search .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ace-toolbar .button,
    .ace-file-toolbar .button,
    .ace-search .search-form .button {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* 文件树样式优化 */
.file-list ul {
    list-style: none;
    padding-left: 20px;
}

.file-list > li {
    padding: 3px 0;
}

.folder-children {
    margin-left: 20px;
    border-left: 1px dashed #ccc;
    padding-left: 10px;
}