:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #1a1d23;
    --text-secondary: #5f6368;
    --text-muted: #9aa0a6;
    --border: #e1e4e8;
    --hover-bg: #f0f3f6;
    --selected-bg: #e8f0fe;
    --selected-border: #4a90d9;
    --folder-color: #e8a830;
    --folder-open-color: #d4941c;
    --file-color: #5f6368;
    --js-file: #f0db4f;
    --ts-file: #3178c6;
    --html-file: #e34c26;
    --css-file: #264de4;
    --json-file: #6b9b37;
    --md-file: #519aba;
    --img-file: #a074c4;
    --default-file: #8b949e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', 'Monaco', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --indent: 22px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 40px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}
/* 主容器 */
.app-container {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* 头部卡片 */
.header-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.header-title .icon-tree {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.header-title .icon-tree svg {
    width: 100%;
    height: 100%;
}
/* 工具栏按钮组 */
.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: all var(--transition);
    white-space: nowrap;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    background: var(--hover-bg);
    border-color: #cdd2d9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn:active {
    transform: translateY(0);
    box-shadow: none;
    background: #e8eaed;
    transition: 0.05s;
}
.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
/* 简介卡片 */
.notice-card {
    padding: 12px 16px;
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    color: #92400e;
    font-size: 14px;
    line-height: 1.6;
}
/* 树形容器卡片 */
.tree-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: 75vh;
}
.tree-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    background: #fafbfc;
}
.stats-badge {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}
/* 树形内容区域 */
.tree-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 10px 8px 10px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.tree-scroll-area::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
.tree-scroll-area::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}
.tree-scroll-area::-webkit-scrollbar-thumb {
    background: #c1c6cd;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.tree-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #a0a7b0;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.tree-scroll-area::-webkit-scrollbar-corner {
    background: transparent;
}
/* 树节点列表 */
.tree-root {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tree-node {
    list-style: none;
    position: relative;
}
.tree-node-content {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    margin: 1px 4px 1px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    gap: 7px;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 34px;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}
.tree-node-content:hover {
    background: var(--hover-bg);
}
.tree-node-content.selected {
    background: var(--selected-bg);
    outline: 1.5px solid var(--selected-border);
    outline-offset: -1.5px;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.08);
}
.tree-node-content:active {
    transform: scale(0.985);
    transition: 0.06s;
}
/* 缩进 */
.tree-children {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.tree-children.collapsed {
    display: none;
}
/* 展开/折叠箭头 */
.toggle-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--transition);
    color: var(--text-muted);
    font-size: 0.65rem;
    position: relative;
}
.toggle-arrow:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
}
.toggle-placeholder {
    width: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 图标 */
.node-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
/* 节点名称 */
.node-name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 450;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.node-name .ext {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.82rem;
}
/* 文件大小/额外信息 */
.node-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.tree-node-content:hover .node-meta,
.tree-node-content.selected .node-meta {
    opacity: 1;
}
/* 层级连接线 */
.tree-node {
    position: relative;
}
.tree-children {
    position: relative;
    margin-left: var(--indent);
    border-left: 1px solid #e8ebef;
    padding-left: 0;
}
.tree-children>.tree-node {
    position: relative;
}
.tree-children>.tree-node::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--indent));
    top: 0;
    bottom: 50%;
    width: 1px;
    background: #e8ebef;
}
.tree-children>.tree-node:last-child::before {
    bottom: 50%;
    top: 0;
}
.tree-children>.tree-node:last-child>.tree-node-content::after {
    content: '';
    position: absolute;
    left: calc(-1 * var(--indent));
    top: 50%;
    bottom: 0;
    width: 1px;
    background: var(--surface);
}
.tree-node-content::after {
    content: '';
    position: absolute;
    left: calc(-1 * var(--indent) - 1px);
    top: 50%;
    width: calc(var(--indent) - 2px);
    height: 1px;
    background: #e8ebef;
    z-index: 0;
}
/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: #fff;
    padding: 11px 22px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #34a853;
}
/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
    gap: 12px;
}
.empty-state svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
    color: #c1c6cd;
}
.empty-state p {
    font-size: 0.95rem;
    font-weight: 500;
}
.empty-state .hint {
    font-size: 0.8rem;
    color: #b0b5ba;
}
/* 响应式 */
@media (max-width: 640px) {
    .header-card {
        padding: 16px 18px;
        gap: 10px;
    }
    .header-title {
        font-size: 1.1rem;
        gap: 8px;
    }
    .header-title .icon-tree {
        width: 28px;
        height: 28px;
    }
    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 5px;
    }
    .btn svg {
        width: 14px;
        height: 14px;
    }
    .tree-card-header {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .tree-node-content {
        padding: 6px 8px;
        font-size: 0.82rem;
        min-height: 32px;
        gap: 5px;
    }
    .node-icon {
        width: 17px;
        height: 17px;
    }
    .toggle-arrow {
        width: 18px;
        height: 18px;
    }
    .toggle-placeholder {
        width: 18px;
    }
    :root {
        --indent: 18px;
    }
    .node-meta {
        display: none;
    }
    .tree-scroll-area {
        padding: 8px 4px 8px 2px;
    }
}
@media (max-width: 380px) {
    .header-title {
        font-size: 1rem;
    }
    .btn {
        padding: 7px 10px;
        font-size: 0.75rem;
        border-radius: 5px;
    }
    .tree-node-content {
        font-size: 0.78rem;
        padding: 5px 6px;
        min-height: 28px;
    }
    :root {
        --indent: 15px;
    }
}

/* ========= 文件图标 ========= */
.node-icon.file-icon {
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center center;
}
/* 默认文件图标 */
.node-icon.file-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b949e'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm-1 7V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

/* 可执行程序 */
.node-icon.file-icon.ext-exe {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%232274c7'/%3E%3Cpath d='M12 6v12M8 10h8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-msi {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%232274c7'/%3E%3Cpath d='M8 6h8v4H8zM8 12h8v6H8z' fill='%23fff'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-bat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%234a90e2'/%3E%3Cpath d='M7 8h10M7 12h8M7 16h6' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-cmd {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%234a90e2'/%3E%3Cpath d='M8 9l4 3-4 3M14 15h2' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-ps1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%235391fe'/%3E%3Cpath d='M16 8l-4 4 4 4M8 16h4' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 压缩包*/
.node-icon.file-icon.ext-zip,
.node-icon.file-icon.ext-rar,
.node-icon.file-icon.ext-7z,
.node-icon.file-icon.ext-gz,
.node-icon.file-icon.ext-tar{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='4' fill='%23d62742'/%3E%3Crect x='3' y='8' width='18' height='4' fill='%233044b0'/%3E%3Crect x='3' y='13' width='18' height='4' fill='%23289b36'/%3E%3Crect x='9' y='2' width='6' height='20' fill='%23f7b520'/%3E%3Crect x='10' y='9' width='4' height='6' rx='1' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* 文档 */
.node-icon.file-icon.ext-txt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23f5f5f5'/%3E%3Cpath d='M8 6h8M8 10h8M8 14h6M8 18h7' stroke='%236e6e6e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-doc,
.node-icon.file-icon.ext-docx {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%232b579a'/%3E%3Cpath d='M8 8l2 8 2-5 2 5 2-8' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-xls,
.node-icon.file-icon.ext-xlsx {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23217346'/%3E%3Cpath d='M9 8l6 8M15 8l-6 8' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-ppt,
.node-icon.file-icon.ext-pptx {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23d24726'/%3E%3Cpath d='M9 16V8h3.5a2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5H9' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-pdf {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23dc0000'/%3E%3Cpath d='M12 6v12M9 9h6M9 15h6' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 图片 */
.node-icon.file-icon.ext-jpg,
.node-icon.file-icon.ext-jpeg,
.node-icon.file-icon.ext-png,
.node-icon.file-icon.ext-gif,
.node-icon.file-icon.ext-bmp,
.node-icon.file-icon.ext-webp,
.node-icon.file-icon.ext-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23a074c4'/%3E%3Cpath d='M4 16l4-4 3 3 5-5 4 4' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='15' cy='8' r='2' fill='%23fff'/%3E%3C/svg%3E");
}

/* 音视频 */
.node-icon.file-icon.ext-mp3,
.node-icon.file-icon.ext-wav,
.node-icon.file-icon.ext-flac {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23ff4081'/%3E%3Cpath d='M9 8v8l7-4-7-4z' fill='%23fff'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-mp4,
.node-icon.file-icon.ext-avi,
.node-icon.file-icon.ext-mkv,
.node-icon.file-icon.ext-mov {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23e91e63'/%3E%3Cpath d='M9 8v8l7-4-7-4z' fill='%23fff'/%3E%3C/svg%3E");
}

/* 镜像/磁盘 */
.node-icon.file-icon.ext-iso {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%238040c0'/%3E%3Ccircle cx='12' cy='12' r='5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23fff'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-img {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23995522'/%3E%3Cpath d='M7 12h10M12 7v10' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-vhd,
.node-icon.file-icon.ext-vmdk {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%235c6bc0'/%3E%3Cpath d='M7 12h10M12 7v10' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 网页/脚本/配置 */
.node-icon.file-icon.ext-html,
.node-icon.file-icon.ext-htm {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 0 0 20 -14 0z' fill='%23ffffff' stroke='%23888888' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='12' r='6' fill='%232889e8'/%3E%3Cpath d='M8 8h8M8 12h6M8 16h8' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M5 18A10 10 0 0 1 19 6' fill='none' stroke='%23ffcc00' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-css {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23264de4'/%3E%3Cpath d='M12 6v12M8 10h8M8 14h8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-js {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23f0db4f'/%3E%3Cpath d='M8 8h8v4H8zM8 14h6v4H8z' fill='%23222'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-json {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%236b9b37'/%3E%3Cpath d='M13 8v6.5a2.5 2.5 0 0 1-2.5 2.5 2.5 2.5 0 0 1-2.5-2.5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-xml {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23f59c00'/%3E%3Cpath d='M8 8l4 4-4 4M16 8l-4 4 4 4' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-yaml,
.node-icon.file-icon.ext-yml {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23bd93f9'/%3E%3Cpath d='M8 6h8M8 10h8M8 14h8M8 18h8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-ini {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23607d8b'/%3E%3Cpath d='M8 8h10M8 12h7M8 16h9' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-cfg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%23607d8b'/%3E%3Cpath d='M16 8l-4 4 4 4M8 16h4' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.node-icon.file-icon.ext-log {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='3' fill='%2390a4ae'/%3E%3Cpath d='M8 6h8M8 10h8M8 14h8M8 18h6' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* ========== 文件夹与箭头图标 ========== */
.node-icon.folder-icon {
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center center;
}
.node-icon.folder-icon.folder-closed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e8a830'%3E%3Cpath d='M10 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z' opacity='0.9' /%3E%3C/svg%3E");
}
.node-icon.folder-icon.folder-open {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4941c'%3E%3Cpath d='M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z' opacity='0.9' /%3E%3C/svg%3E");
}

.toggle-arrow{
    background-repeat: no-repeat;
    background-size:14px 14px;
    background-position:center center;
}
.toggle-arrow.arrow-right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}
.toggle-arrow.arrow-down {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.toggle-arrow > svg {
    display:none;
}