/* ============================================
   超管前台操作面板样式 v3.0
   放弃 contenteditable 所见即所得，
   改为弹窗式：后台编辑 / 复制 / 删除
   ============================================ */

/* 遮罩层 */
.ie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99998;
    transition: background 0.25s ease;
}
.ie-overlay.ie-show {
    background: rgba(0, 0, 0, 0.35);
}

/* 操作面板 */
.ie-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    z-index: 99999;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.ie-panel.ie-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 面板头部 */
.ie-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3E342E, #8A6540);
    color: #fff;
}
.ie-panel-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.ie-panel-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}
.ie-panel-close:hover {
    color: #fff;
}

/* 面板主体 */
.ie-panel-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 操作按钮 */
.ie-action {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    font-family: inherit;
}
.ie-action:hover {
    border-color: #B99168;
    background: #F6F1E5;
    transform: translateX(2px);
}
.ie-action:active {
    transform: translateX(0) scale(0.99);
}
.ie-action.ie-loading {
    opacity: 0.6;
    pointer-events: none;
}
.ie-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ie-action-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
}

.ie-action-edit .ie-action-icon { background: #F8F4EC; }
.ie-action-copy .ie-action-icon { background: #d1fae5; }
.ie-action-delete .ie-action-icon { background: #fee2e2; }

.ie-action-edit:hover .ie-action-icon { background: #bfdbfe; }
.ie-action-copy:hover .ie-action-icon { background: #a7f3d0; }
.ie-action-delete:hover .ie-action-icon { background: #fecaca; }

.ie-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ie-action-text strong {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}
.ie-action-text small {
    font-size: 12px;
    color: #94a3b8;
}

.ie-action-delete:hover {
    border-color: #ef4444;
    background: #fef2f2;
}
.ie-action-delete:hover .ie-action-text strong {
    color: #dc2626;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ie-panel {
        width: calc(100vw - 32px);
        border-radius: 12px;
    }
    .ie-action {
        padding: 12px 14px;
    }
    .ie-action-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
