/* Toast Modal Styles - 独立的Toast弹框样式 */
.toast-modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

.toast-modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* Toast Modal本身 */
.toast-modal {
    width: 620px;
    height: 425px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.toast-modal.show {
    transform: scale(1);
}

/* Toast图标区域 */
.toast-modal-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding-top: 50px;
}

.toast-modal-icon img {
    width: 100px;
    height: 81px;
}

/* Toast标题 */
.toast-modal-header {
    font-family: Poppins, Poppins;
    font-weight: bold;
    font-size: 44px;
    line-height: 65px;
    text-align: center;
    padding-top: 20px;
    flex-shrink: 0;
}

/* 成功状态 */
.toast-modal-header.success {
    color: #42A647;
}

/* 失败状态 */
.toast-modal-header.failed {
    color: #FF404D;
}

/* 信息状态 */
.toast-modal-header.info {
    color: #1890ff;
}

/* Toast内容 */
.toast-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-family: Poppins, Poppins;
    font-weight: 500;
    font-size: 18px;
    color: #5C5C66;
    line-height: 27px;
    text-align: center;
    padding-top: 20px;
    width: 437px;
    height: 50px;
    flex-shrink: 0;
}

/* Toast按钮区域 */
.toast-modal-footer {
    padding: 40px 60px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    margin-top: auto;
}

.toast-modal-btn {
    width: 500px !important;
    height: 52px !important;
    border: 0 !important;
    border-radius: 26px !important;
    background: #0B85E6 !important;
    color: #fff !important;
    font: 600 20px/1 Poppins, Arial, sans-serif !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 0 !important;
    outline: none !important;
    text-decoration: none !important;
    font-family: Poppins, Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
}

.toast-modal-btn:hover {
    filter: brightness(1.05) !important;
    transform: translateY(-1px) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .toast-modal {
        width: 95%;
        height: auto;
        min-height: 350px;
        margin: 20px;
    }
    
    .toast-modal-icon {
        padding-top: 30px;
    }
    
    .toast-modal-icon img {
        width: 80px;
        height: 65px;
    }
    
    .toast-modal-header {
        font-size: 32px;
        line-height: 45px;
        padding-top: 10px;
    }
    
    .toast-modal-body {
        width: 95%;
        font-size: 16px;
        line-height: 24px;
        padding: 10px 0;
        height: auto;
        min-height: 50px;
    }
    
    .toast-modal-footer {
        padding: 30px 40px 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .toast-modal-btn {
        width: 500px !important;
        height: 52px !important;
        font-size: 18px !important;
        border-radius: 26px !important;
        margin: 0 auto !important;
        position: relative !important;
        top: 0 !important;
        transform: none !important;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .toast-modal {
        width: 95%;
        height: auto;
        min-height: 300px;
        margin: 15px;
    }
    
    .toast-modal-icon {
        padding-top: 25px;
    }
    
    .toast-modal-icon img {
        width: 70px;
        height: 57px;
    }
    
    .toast-modal-header {
        font-size: 28px;
        line-height: 40px;
    }
    
    .toast-modal-body {
        font-size: 14px;
        line-height: 20px;
    }
    
    .toast-modal-footer {
        padding: 25px 30px 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .toast-modal-btn {
        width: 500px !important;
        height: 52px !important;
        font-size: 16px !important;
        border-radius: 26px !important;
        margin: 0 auto !important;
        position: relative !important;
        top: 0 !important;
        transform: none !important;
        max-width: 85%;
    }
}

/* 1440px-1920px 范围优化 */
@media (min-width: 1441px) and (max-width: 1920px) {
    .toast-modal {
        width: 620px !important;
        height: 425px !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 1000001 !important;
    }
    
    .toast-modal-icon img {
        width: 120px !important;
        height: 97px !important;
    }
    
    .toast-modal-header {
        font-size: 48px !important;
        line-height: 40px !important;
        padding-top: 11px !important;
    }
    
    .toast-modal-body {
        width: 480px !important;
        height: 60px !important;
        font-size: 20px !important;
        line-height: 20px !important;
        padding-top: 11px !important;
        margin: 0 auto !important;
    }
    
    .toast-modal-footer {
        padding: 50px 60px 60px 60px !important;
        margin: 0 auto !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        flex: 1 !important;
    }
    
    .toast-modal-btn {
        width: 500px !important;
        height: 52px !important;
        font-size: 22px !important;
        border-radius: 26px !important;
        background: #0B85E6 !important;
        color: #ffffff !important;
        border: none !important;
        outline: none !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: Poppins, Arial, sans-serif !important;
        font-weight: 600 !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        top: 0 !important;
        transform: none !important;
    }
    
    .toast-modal-btn:hover {
        background: #0099FF !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(11, 133, 230, 0.3) !important;
    }
}

/* 1921px+ 超大屏幕优化 */
@media (min-width: 1921px) {
    .toast-modal {
        width: 700px;
        height: 480px;
        margin: 0 auto;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
    }
    
    .toast-modal-icon img {
        width: 140px;
        height: 113px;
    }
    
    .toast-modal-header {
        font-size: 52px;
        line-height: 75px;
    }
    
    .toast-modal-body {
        width: 580px;
        height: 70px;
        font-size: 22px;
        line-height: 33px;
        margin: 0 auto;
    }
    
    .toast-modal-footer {
        padding: 70px 80px 60px;
        width: auto;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        flex: 1;
        margin-top: auto;
    }
    
    .toast-modal-btn {
        width: 500px !important;
        height: 52px !important;
        font-size: 24px !important;
        border-radius: 26px !important;
        margin: 0 auto !important;
        position: relative !important;
        top: 0 !important;
        transform: none !important;
    }
}
