/* 弹窗样式 */


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 100%);
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 2px solid #fdbb2d;
    animation: slideUp 0.5s ease;
    /* 确保弹窗内容不干扰图片识别 */
    pointer-events: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-title {
    font-size: 1.8rem;
    color: #fdbb2d;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #fdbb2d;
}

.modal-body p {
    margin-bottom: 15px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff !important;
}

.modal-footer {
    text-align: right;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    background-color: #fdbb2d;
    color: #1a2a6c;
    font-weight: bold;
    transition: all 0.3s;
}

.debug-info{
    display: none;
}

.btn:hover {
    background-color: #ffa500;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .box-kfim27 img {
        width: 120px;
        height: 120px;
    }
}