/* jQuery Toast 弹框样式 - 居中显示 */
.jq-toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    min-width: 320px;
    max-width: 500px;
    padding: 24px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    text-align: center;
}

.jq-toast-container.jq-toast-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.jq-toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.jq-toast-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}

.jq-toast-message {
    flex: 1;
    word-wrap: break-word;
    word-break: break-all;
    font-weight: 500;
}

.jq-toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.jq-toast-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 添加遮罩层 */
.jq-toast-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jq-toast-mask.jq-toast-show {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .jq-toast-container {
        min-width: 280px;
        max-width: 90%;
        padding: 20px 24px;
        font-size: 15px;
    }
    
    .jq-toast-icon {
        width: 36px;
        height: 36px;
    }
    
    .jq-toast-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .jq-toast-close {
        width: 22px;
        height: 22px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

