/* 遮罩层样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

/* 弹窗主体 */
.modal {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 400px;
    max-width: 90%;
    animation: modalSlideIn 0.3s ease-out;

}

/* 标题样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* 关闭按钮 */
.close-btn {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #333;
}

/* 内容区域 */
.modal-body {
    margin: 1rem 0;
    color: #555;
    line-height: 1.6;
}
.modal-body p{
    color: #1c1f1c;
}

    /* 操作按钮区域 */
.modal-footer {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* 按钮通用样式 */
.modal-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.confirm-btn {
    background: #007bff;
    color: white;
}

.confirm-btn:hover {
    background: #0056b3;
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

/* 动画效果 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加这些样式到CSS中 */
.modal-body {
    text-emphasis-color: #0f0f0f;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body img {
    max-width: 100%;
    margin: 10px 0;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
}

.modal-body code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 3px;
}