/* 自定义弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(0.02rem);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    border-radius: 0.16rem;
    width: 90%;
    max-width: 3.2rem;
    padding: 0.25rem;
    box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.2);
    transform: scale(0.8) translateY(-0.2rem);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 0.2rem;
    padding-bottom: 0.15rem;
    border-bottom: 0.01rem solid #f0f0f0;
}

.modal-title {
    font-size: 0.18rem;
    font-weight: 600;
    color: #333;
}

.modal-body {
    text-align: center;
    padding: 0.25rem 0.15rem;
}

.modal-message {
    font-size: 0.16rem;
    color: #555;
    line-height: 1.8;
    word-break: break-word;
}

.modal-footer {
    display: flex;
    gap: 0.12rem;
    margin-top: 0.2rem;
}

.modal-btn {
    flex: 1;
    height: 0.44rem;
    border-radius: 0.08rem;
    font-size: 0.16rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.modal-btn:active {
    opacity: 0.7;
}

.modal-btn-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.modal-btn-confirm {
    background-color: #ff8a65;
    color: #fff;
}

.modal-btn-confirm:active {
    background-color: #ff7043;
}

.modal-btn-primary {
    background-color: #ff8a65;
    color: #fff;
}

.modal-btn-primary:active {
    background-color: #ff7043;
}

