/* 遮罩层 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(4px);
}
.modal-mask.show { display: block; }

/* 确认弹窗 */
.modal-confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 24px;
    width: 300px;
    padding: 24px 20px 20px;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-confirm.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.modal-confirm .icon { font-size: 48px; margin-bottom: 12px; }
.modal-confirm .title { font-size: 18px; font-weight: bold; margin-bottom: 8px; color: #333; }
.modal-confirm .message { font-size: 13px; color: #666; margin-bottom: 20px; line-height: 1.5; }
.modal-confirm .btn-group { display: flex; gap: 12px; justify-content: center; }
.modal-confirm .btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.modal-confirm .btn-confirm { background: #ff6b6b; color: white; }
.modal-confirm .btn-confirm:hover { background: #ff5252; transform: translateY(-1px); }
.modal-confirm .btn-cancel { background: #f0f0f0; color: #666; }
.modal-confirm .btn-cancel:hover { background: #e5e5e5; transform: translateY(-1px); }

/* 提示弹窗 */
.modal-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 10px 20px;
    z-index: 10001;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.modal-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.modal-toast .toast-icon { font-size: 16px; }
.modal-toast .toast-message { color: white; font-size: 13px; font-weight: 500; }
.modal-toast.success .toast-icon { color: #2ac65f; }
.modal-toast.error .toast-icon { color: #ff6b6b; }
.modal-toast.info .toast-icon { color: #f1a650; }

/* 加载弹窗 */
.modal-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px 30px;
    z-index: 10003;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-loading.show { display: flex; }
.modal-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #f1a650;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.modal-loading .loading-text { color: white; font-size: 13px; }
@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .modal-confirm { width: 280px; padding: 20px 16px 16px; }
    .modal-confirm .icon { font-size: 40px; }
    .modal-toast { white-space: normal; max-width: 80%; padding: 8px 16px; }
}