/* 思维导图工具专用样式 */
.mindmap-container {
    display: flex;
    height: calc(100vh - 280px);
    min-height: 500px;
    background: #f5f7fa;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

/* 左侧工具面板 */
.mindmap-toolbar {
    width: 320px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.toolbar-section {
    margin-bottom: 0;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.toolbar-section:last-child {
    border-bottom: none;
}

.toolbar-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2196F3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-section h4 i {
    font-size: 18px;
    color: #2196F3;
}

/* 分组标题样式 */
.section-group-title {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 15px 10px 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.section-group-title:first-child {
    margin-top: 0;
    padding-top: 15px;
    border-top: none;
}

.toolbar-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.toolbar-btn:hover {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.toolbar-btn i {
    font-size: 16px;
}

.toolbar-btn.danger:hover {
    background: #f44336;
    border-color: #f44336;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.25);
}

.toolbar-btn.warning:hover {
    background: #ff9800;
    border-color: #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.25);
}

.toolbar-btn.active {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
}

/* 主要操作按钮 */
.toolbar-btn.primary {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
}

.toolbar-btn.primary:hover {
    background: #1976D2;
    border-color: #1976D2;
}

/* 样式设置面板 */
.style-panel {
    margin-top: 8px;
}

/* 帮助提示样式 */
.style-help-tip {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 3px solid #2196F3;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}

.style-help-tip i {
    color: #2196F3;
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.style-item {
    margin-bottom: 12px;
}

.style-item label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.style-item input[type="text"],
.style-item input[type="number"],
.style-item select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.style-item input[type="text"]:focus,
.style-item input[type="number"]:focus,
.style-item select:focus {
    outline: none;
    border-color: #2196F3;
}

.style-item input[type="color"] {
    width: 100%;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* 样式说明文字 */
.style-description {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    line-height: 1.4;
}

.style-row {
    display: flex;
    gap: 8px;
}

.style-row .style-item {
    flex: 1;
}

.color-presets {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.color-preset {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-preset:hover,
.color-preset.active {
    border-color: #333;
    transform: scale(1.1);
}

/* 对齐工具按钮组 */
.align-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.align-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    color: #555;
    transition: all 0.2s ease;
    font-weight: 500;
}

.align-btn:hover {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
}

.align-btn i {
    font-size: 20px;
    margin-bottom: 4px;
}

.align-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.align-btn:disabled:hover {
    background: #fff;
    color: #555;
    border-color: #ddd;
    transform: none;
    box-shadow: none;
}

.distribution-btn-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

/* 右侧画布区域 */
.mindmap-canvas-wrapper {
    flex: 1;
    position: relative;
    background: #fafafa;
    overflow: hidden;
}

.mindmap-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.mindmap-canvas:active {
    cursor: grabbing;
}

/* 画布控制按钮 */
.canvas-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.canvas-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.canvas-control-btn:hover {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
}

.canvas-control-btn i {
    font-size: 20px;
}

.zoom-level {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    z-index: 100;
}

/* 节点编辑弹窗 */
.node-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.node-edit-modal.show {
    display: flex;
}

.node-edit-content {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    width: 480px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.node-edit-content h3 {
    margin: 0;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-bottom: none;
}

.node-edit-content input[type="text"] {
    width: calc(100% - 48px);
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin: 20px 24px;
    transition: all 0.3s ease;
}

.node-edit-content input[type="text"]:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.node-edit-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.node-edit-buttons button {
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-cancel {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #666;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.btn-save {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* 提示信息 */
.mindmap-tips {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

/* 多选提示 */
.multi-select-info {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 150, 243, 0.95);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
}

.multi-select-info.show {
    display: block;
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .mindmap-container {
        flex-direction: column;
        height: auto;
    }

    .mindmap-toolbar {
        width: 100%;
        max-height: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        transition: max-height 0.3s ease;
        overflow: hidden;
    }

    .mindmap-toolbar.mobile-expanded {
        max-height: 70vh;
        overflow-y: auto;
    }

    .toolbar-section {
        padding: 12px;
    }

    .toolbar-section h4 {
        font-size: 13px;
    }

    .toolbar-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .toolbar-btn i {
        font-size: 14px;
    }

    .style-help-tip {
        font-size: 11px;
        padding: 8px 10px;
    }

    .mindmap-canvas-wrapper {
        min-height: 60vh;
        flex: 1;
    }

    .quick-action-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .quick-action-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .quick-action-btn i {
        font-size: 18px;
    }

    body.fullscreen-mode .mindmap-toolbar {
        max-height: 200px;
    }

    .mindmap-tips {
        font-size: 11px;
        padding: 6px 12px;
    }

    /* 移动端工具栏切换按钮 */
    .mobile-toolbar-toggle {
        display: flex;
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #2196F3;
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 999;
        transition: all 0.3s ease;
    }

    .mobile-toolbar-toggle:hover {
        background: #1976D2;
        transform: scale(1.1);
    }

    .mobile-toolbar-toggle i {
        font-size: 28px;
    }

    .mobile-toolbar-toggle.active {
        background: #f44336;
    }

    .mobile-toolbar-toggle.active i {
        transform: rotate(45deg);
    }
}

/* 桌面端隐藏移动端工具栏切换按钮 */
@media (min-width: 769px) {
    .mobile-toolbar-toggle {
        display: none;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .toolbar-btn-group {
        gap: 6px;
    }

    .toolbar-btn {
        padding: 6px 8px;
        font-size: 11px;
    }

    .align-btn-group {
        gap: 6px;
    }

    .align-btn {
        padding: 8px 4px;
        font-size: 10px;
    }

    .align-btn i {
        font-size: 18px;
    }

    .quick-action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .quick-action-btn i {
        font-size: 16px;
    }
}

/* 导出选项样式 */
.export-options {
    margin: 16px 24px;
    padding: 0;
}

.export-option {
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.export-option:last-child {
    margin-bottom: 0;
}

.export-option:hover {
    background: #f8f9fa;
    border-color: #2196F3;
}

.export-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    gap: 10px;
}

.export-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #2196F3;
}

.export-option input[type="color"] {
    cursor: pointer;
    flex-shrink: 0;
    width: 50px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px;
    background: #fff;
    transition: all 0.2s ease;
    margin-left: auto;
}

.export-option input[type="color"]:hover {
    border-color: #2196F3;
}

/* 导出选项激活状态 */
.export-option:has(input[type="radio"]:checked) {
    background: #e3f2fd;
    border-color: #2196F3;
}

/* 导出选项文字样式 */
.export-option span {
    flex: 1;
    line-height: 1.4;
}

/* 导出选项图标 */
.export-option-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.export-option-icon.transparent {
    background: repeating-conic-gradient(#e0e0e0 0% 25%, transparent 0% 50%) 50% / 8px 8px;
}

.export-option-icon.grid {
    background: 
        linear-gradient(90deg, #e0e0e0 1px, transparent 1px),
        linear-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 6px 6px;
    background-color: #fafafa;
}

.export-option-icon.white {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.export-option-icon.custom {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 25%, #48dbfb 50%, #ff9ff3 75%, #54a0ff 100%);
}

/* 底部快捷操作栏 */
.quick-action-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.quick-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.quick-action-btn:hover {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.35);
}

.quick-action-btn:active {
    transform: translateY(0);
}

.quick-action-btn i {
    font-size: 20px;
}

.quick-action-btn.danger:hover {
    background: #f44336;
    border-color: #f44336;
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.35);
}

.quick-action-btn.warning:hover {
    background: #ff9800;
    border-color: #ff9800;
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.35);
}

.quick-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-action-btn:disabled:hover {
    background: #fff;
    color: #555;
    border-color: #ddd;
    transform: none;
    box-shadow: none;
}

.quick-action-btn:disabled::before {
    display: none;
}

/* 全屏模式样式 */
body.fullscreen-mode .menubox,
body.fullscreen-mode footer,
body.fullscreen-mode .tool-mainright,
body.fullscreen-mode .tool-sectionheader,
body.fullscreen-mode .tool-intro,
body.fullscreen-mode .tool-usage,
body.fullscreen-mode .tool-caution {
    display: none !important;
}

body.fullscreen-mode .tool-mainbox {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
    margin: 0;
}

body.fullscreen-mode .tool-mainleft {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

body.fullscreen-mode .tool-sectionbox {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

body.fullscreen-mode h2 {
    display: none;
}

body.fullscreen-mode .mindmap-container {
    flex: 1;
    height: auto;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    overflow: hidden;  /* 【修改】从 visible 改为 hidden，使子元素滚动条生效 */
    margin-bottom: 60px;  /* 【新增】为底部操作栏留出空间 */
}

body.fullscreen-mode .mindmap-toolbar {
    height: 100%;
    max-height: calc(100vh - 60px);  /* 【修改】明确限制最大高度，减去底部操作栏高度 */
    overflow-y: auto;
    overscroll-behavior: contain;
    /* 【新增】确保滚动条样式可见 */
    scrollbar-width: thin;
    scrollbar-color: #2196F3 #f0f0f0;
}

/* 【新增】自定义滚动条样式 - WebKit浏览器 */
body.fullscreen-mode .mindmap-toolbar::-webkit-scrollbar {
    width: 8px;
}

body.fullscreen-mode .mindmap-toolbar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

body.fullscreen-mode .mindmap-toolbar::-webkit-scrollbar-thumb {
    background: #2196F3;
    border-radius: 4px;
}

body.fullscreen-mode .mindmap-toolbar::-webkit-scrollbar-thumb:hover {
    background: #1976D2;
}

body.fullscreen-mode .mindmap-canvas-wrapper {
    flex: 1;
    overflow: hidden;
}

body.fullscreen-mode .quick-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* 搜索结果样式 */
.search-results {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.search-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.search-nav {
    display: flex;
    gap: 8px;
}

.search-nav .toolbar-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
}

/* 快捷键帮助面板样式 */
.shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.shortcuts-modal.show {
    display: flex;
}

.shortcuts-content {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.shortcuts-content h3 {
    margin: 0;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    position: sticky;
    top: 0;
}

.shortcuts-list {
    padding: 20px 24px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shortcut-key kbd {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 12px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.shortcut-desc {
    font-size: 13px;
    color: #666;
}

.shortcuts-close {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.shortcuts-close button {
    padding: 10px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.shortcuts-close button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* 节点备注样式 */
.note-section {
    margin: 16px 24px;
}

.note-section label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.note-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

.note-section textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* 备注图标 */
.note-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: #FF9800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 备注提示框 */
.note-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 200px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.note-tooltip.show {
    opacity: 1;
}

.note-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

/* 深色主题样式 */
body.theme-dark .mindmap-container {
    background: #1a1a2e;
}

body.theme-dark .mindmap-toolbar {
    background: #16213e;
    border-right-color: #0f3460;
}

body.theme-dark .toolbar-section {
    border-bottom-color: #0f3460;
}

body.theme-dark .toolbar-section h4 {
    color: #e0e0e0;
    border-bottom-color: #e94560;
}

body.theme-dark .toolbar-btn {
    background: #1a1a2e;
    border-color: #0f3460;
    color: #e0e0e0;
}

body.theme-dark .toolbar-btn:hover {
    background: #e94560;
    border-color: #e94560;
}

body.theme-dark .style-item label {
    color: #b0b0b0;
}

body.theme-dark .style-item input,
body.theme-dark .style-item select {
    background: #1a1a2e;
    border-color: #0f3460;
    color: #e0e0e0;
}

body.theme-dark .style-help-tip {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-left-color: #e94560;
    color: #e0e0e0;
}

body.theme-dark .mindmap-canvas-wrapper {
    background: #0f0f1a;
}

body.theme-dark .mindmap-tips {
    background: rgba(22, 33, 62, 0.95);
    color: #e0e0e0;
}

body.theme-dark .zoom-level {
    background: rgba(22, 33, 62, 0.9);
    color: #e0e0e0;
}

body.theme-dark .canvas-control-btn {
    background: #16213e;
    border-color: #0f3460;
    color: #e0e0e0;
}

body.theme-dark .canvas-control-btn:hover {
    background: #e94560;
}

body.theme-dark .quick-action-bar {
    background: #16213e;
    border-top-color: #0f3460;
}

body.theme-dark .quick-action-btn {
    background: #1a1a2e;
    border-color: #0f3460;
    color: #e0e0e0;
}

body.theme-dark .quick-action-btn:hover {
    background: #e94560;
    border-color: #e94560;
}

body.theme-dark .node-edit-content {
    background: #16213e;
}

body.theme-dark .node-edit-content h3 {
    background: linear-gradient(135deg, #e94560 0%, #c23a51 100%);
}

body.theme-dark .node-edit-content input[type="text"] {
    background: #1a1a2e;
    border-color: #0f3460;
    color: #e0e0e0;
}

body.theme-dark .node-edit-buttons {
    background: #1a1a2e;
    border-top-color: #0f3460;
}

body.theme-dark .btn-cancel {
    background: #16213e;
    border-color: #0f3460;
    color: #e0e0e0;
}

body.theme-dark .search-results {
    background: #1a1a2e;
}

body.theme-dark .search-info {
    color: #b0b0b0;
}

/* 护眼主题样式 */
body.theme-eyecare .mindmap-container {
    background: #f0f4e8;
}

body.theme-eyecare .mindmap-toolbar {
    background: #e8f0d8;
    border-right-color: #c8d8b0;
}

body.theme-eyecare .toolbar-section {
    border-bottom-color: #d8e8c0;
}

body.theme-eyecare .toolbar-section h4 {
    color: #4a5a3a;
    border-bottom-color: #7a9a5a;
}

body.theme-eyecare .toolbar-section h4 i {
    color: #7a9a5a;
}

body.theme-eyecare .toolbar-btn {
    background: #f0f4e8;
    border-color: #c8d8b0;
    color: #4a5a3a;
}

body.theme-eyecare .toolbar-btn:hover {
    background: #7a9a5a;
    border-color: #7a9a5a;
    color: #fff;
}

body.theme-eyecare .style-item label {
    color: #5a6a4a;
}

body.theme-eyecare .style-item input,
body.theme-eyecare .style-item select {
    background: #fff;
    border-color: #c8d8b0;
    color: #4a5a3a;
}

body.theme-eyecare .style-help-tip {
    background: linear-gradient(135deg, #e8f0d8 0%, #d8e8c0 100%);
    border-left-color: #7a9a5a;
    color: #4a5a3a;
}

body.theme-eyecare .mindmap-canvas-wrapper {
    background: #f8fce8;
}

body.theme-eyecare .mindmap-tips {
    background: rgba(232, 240, 216, 0.95);
    color: #4a5a3a;
}

body.theme-eyecare .zoom-level {
    background: rgba(232, 240, 216, 0.9);
    color: #4a5a3a;
}

body.theme-eyecare .canvas-control-btn {
    background: #e8f0d8;
    border-color: #c8d8b0;
    color: #4a5a3a;
}

body.theme-eyecare .canvas-control-btn:hover {
    background: #7a9a5a;
    color: #fff;
}

body.theme-eyecare .quick-action-bar {
    background: #e8f0d8;
    border-top-color: #c8d8b0;
}

body.theme-eyecare .quick-action-btn {
    background: #f0f4e8;
    border-color: #c8d8b0;
    color: #4a5a3a;
}

body.theme-eyecare .quick-action-btn:hover {
    background: #7a9a5a;
    border-color: #7a9a5a;
    color: #fff;
}

body.theme-eyecare .node-edit-content h3 {
    background: linear-gradient(135deg, #7a9a5a 0%, #5a7a3a 100%);
}

body.theme-eyecare .search-results {
    background: #e8f0d8;
}

body.theme-eyecare .search-info {
    color: #5a6a4a;
}

/* 高亮匹配节点 */
.node-highlight {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
}