/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* 弹窗容器 */
.modal-container {
    background: white;
    border-radius: 6px;
    padding: 0;
    max-width: 90%;
    width: 400px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

/* 弹窗头部 */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e91e63;
    flex-shrink: 0;
}

.modal-header.alert {
    background: #ff6b6b;
}

.modal-header.info {
    background: #e91e63;
}

.modal-header.success {
    background: #51cf66;
}

.modal-header.warning {
    background: #e91e63;
}

.modal-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.modal-title-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 弹窗内容 */
.modal-body {
    padding: 24px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

/* 弹窗底部 */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-btn-primary {
    background: #e91e63;
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.modal-btn-primary:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

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

.modal-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.modal-btn-secondary:hover {
    background: #e8e8e8;
}

/* 取消按钮 */
.modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.modal-btn-cancel:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

/* 确认按钮（粉色主题） */
.modal-btn-confirm {
    background: #e91e63;
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.modal-btn-confirm:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

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

/* 移动端优化 */
@media (max-width: 480px) {
    .modal-container {
        width: 90%;
        max-width: 350px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 20px;
        font-size: 14px;
        max-height: calc(85vh - 120px);
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
