/**
 * 小程序支付样式
 */

/* 二维码弹窗 */
.zibpay-qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.zibpay-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.zibpay-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.zibpay-modal-content img {
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
}

.zibpay-modal-content p {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

#miniapp-countdown {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
}

.zibpay-modal-content .status-tip {
    color: #4CAF50;
    font-size: 13px;
    margin: 0 0 20px 0;
}

.zibpay-modal-content button {
    padding: 12px 30px;
    background: #999;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.zibpay-modal-content button:hover {
    background: #888;
}

/* 成功弹窗 */
.zibpay-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.zibpay-success-modal .zibpay-modal-content {
    padding: 40px 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.zibpay-success-modal h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.zibpay-success-modal p {
    color: #666;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.zibpay-success-modal .sub-text {
    color: #999;
    font-size: 14px;
    margin: 0 0 25px 0;
}

.zibpay-success-modal .zibpay-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.zibpay-success-modal .zibpay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* 超时弹窗 */
.zibpay-expired-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.zibpay-expired-modal .zibpay-modal-content {
    padding: 40px 30px;
}

.expired-icon {
    font-size: 60px;
    margin: 0 0 20px 0;
}

.zibpay-expired-modal h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.zibpay-expired-modal p {
    color: #666;
    font-size: 16px;
    margin: 0 0 25px 0;
}

.zibpay-expired-modal .zibpay-btn {
    padding: 14px 40px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.zibpay-expired-modal .zibpay-btn:hover {
    background: #ff5252;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .zibpay-modal-content {
        max-width: 90%;
        padding: 20px;
    }
    
    .zibpay-modal-content img {
        width: 240px;
        height: 240px;
    }
}
