/* ===== 思维导图模板库（templates.html） ===== */
.tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.tpl-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.tpl-card:hover {
    border-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 103, 216, 0.15);
}
.tpl-thumb {
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.tpl-thumb svg {
    display: block;
    width: 100%;
    height: auto;
}
.tpl-name {
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 4px;
}
.tpl-desc {
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
}
/* 「👁 查看实例」按钮：点开该模板的真实示例画布（只读视图，可复制） */
.tpl-btns {
    display: flex;
    justify-content: center;
    gap: 8px;
}
/* 「✨ 使用模板」主按钮：复制示例画布为自己的私有画布并直接进入编辑 */
.tpl-use-btn {
    margin-top: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #5a67d8;
    border: 1px solid #5a67d8;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}
.tpl-use-btn:hover {
    background: #4c51bf;
    border-color: #4c51bf;
}
.tpl-use-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.tpl-sample-btn {
    margin-top: 10px;
    padding: 6px 14px;
    font-size: 12px;
    color: #5a67d8;
    background: #ebf4ff;
    border: 1px solid #c3dafe;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}
.tpl-sample-btn:hover {
    background: #5a67d8;
    color: #fff;
}
.tpl-sample-btn.no-sample {
    color: #a0aec0;
    background: #f7fafc;
    border-color: #e2e8f0;
}
.tpl-sample-btn.no-sample:hover {
    background: #edf2f7;
    color: #718096;
}
