/* 思维导图工具专属样式 */
.tool-card-param-wrapper{
    padding-top: 35px;
}
/* 预览卡片容器 */
.markmap-preview-wrapper {
    padding-top: 35px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* 右上角按钮组 */
.markmap-handle-top {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.markmap-handle-top .ange-btn + .ange-btn {
    margin-left: 6px;
}

/* 分割线 */
.markmap-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 8px 0 0 0;
}

/* 思维导图容器 */
.markmap-container {
    flex: 1;
    width: 100%;
    min-height: 450px;
    position: relative;
    overflow: hidden;
    cursor: grab;
    border-radius: 8px;
    background: linear-gradient(#f5f6f8 1px, transparent 1px), linear-gradient(90deg, #f5f6f8 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #fff;
}

.markmap-container:active {
    cursor: grabbing;
}

.markmap-container svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* 占位符 */
.markmap-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #999;
    pointer-events: none;
}

.markmap-placeholder i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.markmap-placeholder p {
    font-size: 14px;
    margin: 4px 0;
}

/* 编辑区 textarea 样式微调 */
#markdownInput {
    min-height: 400px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}

/* === 响应式：移动端 ≤768px === */
@media (max-width: 768px) {
    .markmap-handle-top {
        position: static;
        justify-content: center;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    .markmap-container {
        min-height: 320px;
    }
    .markmap-placeholder i {
        font-size: 36px;
    }
    #markdownInput {
        min-height: 240px;
    }
    .markmap-preview-wrapper {
        padding-top: 10px;
    }
}
