/* 精选转换 · 单次付费弹框（对齐支付加速：当前页居中 + 二维码裁剪） */

html.dcpay-open,
html.dcpay-open body {
    overflow: hidden;
}

.dcpay-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    /* 与支付加速 a3vip-overlay 一致：轻蒙层，不额外 blur */
    background: rgba(0, 0, 0, 0.55);
    animation: dcpay-fade-in 0.18s ease;
}

.dcpay-overlay[hidden] {
    display: none !important;
}

@keyframes dcpay-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dcpay-dialog {
    position: relative;
    width: min(520px, 100%);
    border-radius: 16px;
    background: #1a1f26;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    padding: 22px 24px 18px;
    color: #f2f2f2;
    animation: dcpay-rise 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dcpay-rise {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.dcpay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #a8a29a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.dcpay-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dcpay-head {
    padding-right: 28px;
    margin-bottom: 18px;
    text-align: left;
}

.dcpay-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    margin: 0 0 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #d4af69;
    background: rgba(212, 175, 105, 0.12);
    border: 1px solid rgba(212, 175, 105, 0.28);
}

.dcpay-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 650;
    color: #fff;
    letter-spacing: 0.01em;
}

.dcpay-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

/* 对齐支付加速：左码右价 */
.dcpay-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #252b33;
    box-sizing: border-box;
}

.dcpay-qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dcpay-qr-frame {
    width: 128px;
    height: 128px;
    border-radius: 12px;
    border: 1px solid #787878;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.dcpay-ewm {
    width: 112px;
    height: 112px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.dcpay-ewm img.dcpay-wxewm {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* 关键 a3vip-ewm iframe：缩放裁剪支付宝页，只露二维码 */
.dcpay-ewm iframe.dcpay-ali-iframe,
.dcpay-ewm iframe {
    width: 140px;
    height: 140px;
    margin-left: 4px;
    margin-top: 4px;
    padding: 10px;
    box-sizing: content-box;
    transform: scale(0.72);
    transform-origin: center center;
    border: 0;
    background: #fff;
    pointer-events: auto;
}

.dcpay-qr-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
}

.dcpay-spinner {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(212, 175, 105, 0.25);
    border-top-color: #d4af69;
    border-radius: 50%;
    animation: dcpay-spin 0.7s linear infinite;
}

@keyframes dcpay-spin {
    to { transform: rotate(360deg); }
}

.dcpay-qr-error {
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #c45c5c;
    text-align: center;
}

.dcpay-pay-tip {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dcpay-pay-tip i {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(135deg, #1677ff, #69b1ff);
    display: inline-block;
    flex-shrink: 0;
}

.dcpay-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dcpay-price-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
}

.dcpay-price-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 10px;
}

.dcpay-currency {
    font-size: 16px;
    color: #d4af69;
    font-weight: 600;
}

.dcpay-amount {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #f3d58a;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.dcpay-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #c9a45c, #e2c57a);
    color: #1a1408;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 12px;
}

.dcpay-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.dcpay-points li {
    position: relative;
    padding-left: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.dcpay-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4af69;
}

.dcpay-foot {
    margin: 14px 0 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.5;
}

/* —— 上传文件卡片（保留） —— */
#panelDocConvert .dc-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

#panelDocConvert .dc-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#panelDocConvert .dc-file-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4af69;
    background: rgba(212, 175, 105, 0.14);
    border: 1px solid rgba(212, 175, 105, 0.2);
}

#panelDocConvert .dc-file-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}

#panelDocConvert .dc-file-name {
    font-size: 13px;
    font-weight: 500;
    color: #f2ebe0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
}

#panelDocConvert .dc-file-sub {
    margin-top: 3px;
    font-size: 11px;
    color: #8a8578;
    display: flex;
    align-items: center;
    gap: 6px;
}

#panelDocConvert .dc-file-sub .dc-file-ok {
    color: #9cba7a;
}

#panelDocConvert .dc-file-del {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: #9a948a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

#panelDocConvert .dc-file-del:hover {
    background: rgba(224, 112, 112, 0.16);
    border-color: rgba(224, 112, 112, 0.35);
    color: #eba0a0;
}

@media (max-width: 560px) {
    .dcpay-dialog {
        padding: 20px 16px 16px;
    }
    .dcpay-body {
        flex-direction: column;
        align-items: stretch;
    }
    .dcpay-side {
        align-items: center;
        text-align: center;
    }
    .dcpay-points li {
        text-align: left;
    }
}
