/* 模态框样式 */
.modal {
   position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
   position: fixed;          /* 改为固定定位，便于拖拽移动 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: none;         /* 拖拽时无过渡，更跟手 */
    will-change: top, left;   /* 提升性能 */
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f5;
    cursor: move;             /* 可拖拽光标 */
    user-select: none;        /* 避免拖拽时选中文字 */
}
.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}
.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #86909c;
}
.modal-body {
    padding: 20px;
}
.img-container {
    text-align: center;
    max-height: 400px;
    overflow: hidden;
}
#cropImage {
    max-width: 100%;
    display: block;
}
.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.modal-footer .btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.modal-footer .btn-outline {
    background: #f0f2f5;
    border: none;
    color: #1d2129;
}
.modal-footer .btn-primary {
    background: var(--logo);
    border: none;
    color: #fff;
}
.modal-footer .btn-primary:hover {
    background: #1d4ed8;
}