#bd-poster-app {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

.bdp-trigger {
    position: fixed;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    outline: 0;
    cursor: pointer;
    color: #fff;
    background: var(--bdp-color, #1677ff);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .22);
    font-size: 15px;
    line-height: 1;
    font-family: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.bdp-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .26);
}

.bdp-trigger:active {
    transform: scale(.98);
}

.bdp-trigger svg {
    width: 18px;
    height: 18px;
    display: block;
}

.bdp-right {
    right: 24px;
    bottom: 88px;
    padding: 13px 20px;
    border-radius: 999px;
}

.bdp-bottom {
    left: 50%;
    bottom: 22px;
    padding: 13px 24px;
    border-radius: 999px;
    transform: translateX(-50%);
}

.bdp-bottom:hover {
    transform: translateX(-50%) translateY(-1px);
}

.bdp-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, .74);
    -webkit-animation: bdpFade .18s ease;
    animation: bdpFade .18s ease;
}

.bdp-dialog {
    width: 100%;
    max-width: 420px;
    max-height: 94vh;
    overflow-y: auto;
    padding: 14px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
    -webkit-animation: bdpUp .2s ease;
    animation: bdpUp .2s ease;
}

.bdp-preview {
    position: relative;
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.bdp-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.bdp-preview .bdp-loading {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
}

.bdp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(22, 119, 255, .2);
    border-top-color: var(--bdp-color, #1677ff);
    border-radius: 50%;
    -webkit-animation: bdpSpin .8s linear infinite;
    animation: bdpSpin .8s linear infinite;
}

.bdp-tip {
    margin: 10px 0 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.6;
}

.bdp-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.bdp-btn {
    flex: 1;
    display: block;
    height: 44px;
    line-height: 42px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 15px;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.bdp-btn-primary {
    border-color: transparent;
    background: var(--bdp-color, #1677ff);
    color: #fff;
}

.bdp-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.bdp-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 100000;
    max-width: 70vw;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(17, 24, 39, .9);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    transform: translate(-50%, -50%);
    -webkit-animation: bdpFade .18s ease;
    animation: bdpFade .18s ease;
}

@-webkit-keyframes bdpSpin {
    to { -webkit-transform: rotate(360deg); }
}

@keyframes bdpSpin {
    to { transform: rotate(360deg); }
}

@-webkit-keyframes bdpFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bdpFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-webkit-keyframes bdpUp {
    from { opacity: 0; -webkit-transform: translateY(12px); }
    to { opacity: 1; -webkit-transform: translateY(0); }
}

@keyframes bdpUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .bdp-right {
        right: 14px;
        bottom: 78px;
        padding: 11px 16px;
        font-size: 14px;
    }

    .bdp-dialog {
        max-width: 100%;
        padding: 12px;
    }
}
