/**
 * 滑动弹出界面样式
 */

/* 滑动模态框容器 */
.slide-modal {
    position: fixed;
    z-index: 1000;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding: 20px;
}

/* 关闭按钮 */
.slide-modal-close {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 1;
    flex-shrink: 0;
}

.slide-modal-close:hover {
    background: #e9ecef;
    color: #212529;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 1;
}

/* 销毁按钮 */
.slide-modal-destroy {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #dc3545;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 1;
    flex-shrink: 0;
}

.slide-modal-destroy:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    opacity: 1;
}

/* 导航栏 */
.slide-modal-navbar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* 导航标题 */
.slide-modal-nav-title {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

/* 遮罩层 */
#slide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* 从右侧滑入 */
.slide-modal.right {
    top: 0;
    right: -100vw;
    height: 100%;
}

.slide-modal.right.open {
    right: 0;
}

/* 从左侧滑入 */
.slide-modal.left {
    top: 0;
    left: -100vw;
    height: 100%;
}

.slide-modal.left.open {
    left: 0;
}

/* 从顶部滑入 */
.slide-modal.top {
    top: -100%;
    left: 0;
    width: 100%;
}

.slide-modal.top.open {
    top: 0;
}

/* 从底部滑入 */
.slide-modal.bottom {
    bottom: -100%;
    left: 0;
    width: 100%;
}

.slide-modal.bottom.open {
    bottom: 0;
}
