/* 封面裁切弹窗（Cropper.js） */
#coverCropModal.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    padding: 1rem;
}

#coverCropModal.modal-overlay.is-open {
    display: flex;
}

.cover-crop-card {
    width: min(94vw, 480px);
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1rem 1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.cover-crop-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-100, #272343);
    text-align: center;
}

.cover-crop-stage {
    width: 100%;
    max-width: 480px;
    height: min(52vw, 270px);
    min-height: 180px;
    margin: 0 auto;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
}

.cover-crop-stage > img {
    display: block;
    max-width: 100%;
}

.cover-crop-stage .cropper-view-box {
    outline: 2px solid rgba(255, 255, 255, 0.92);
}

.cover-crop-stage .cropper-point {
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: 0.85;
}

.cover-crop-stage .cropper-line {
    background: rgba(255, 255, 255, 0.45);
}

.cover-crop-stage .cropper-dashed {
    border-color: rgba(255, 255, 255, 0.35);
}

.cover-crop-stage .cropper-modal {
    background: rgba(15, 23, 42, 0.62);
}

.cover-crop-toolbar {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

.cover-crop-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 4.6rem;
    height: 34px;
    padding: 0 0.65rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--primary-100, #272343);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color 0.2s, background 0.2s;
}

.cover-crop-tool-btn svg {
    width: 15px;
    height: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .cover-crop-tool-btn:hover {
        border-color: var(--primary-100, #272343);
        background: #fff;
    }
}

.cover-crop-tool-btn:active {
    background: #fff;
    border-color: var(--primary-100, #272343);
}

.cover-crop-hint {
    margin: 0.65rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
}

.cover-crop-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.cover-crop-actions .btn {
    flex: 1;
    justify-content: center;
}
