/* 聚合码落地页（对标 redirect.html） */
:root {
    --rp-bg: #f4f5f7;
    --rp-card: #ffffff;
    --rp-text: #111827;
    --rp-muted: #6b7280;
    --rp-line: #ececf0;
    --rp-blue: #1677ff;
    --rp-blue-2: #0d6efd;
    --rp-green: #00b578;
    --rp-tag: #f3f4f6;
    --rp-soft: #f7f8fa;
}
body.shell-public {
    margin: 0;
    background: var(--rp-bg);
    color: var(--rp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.shell-public .aura,
body.shell-public #upgradeModal { display: none !important; }
.rp-page {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 14px 40px;
    background: var(--rp-bg);
    color: var(--rp-text);
    font-size: 14px;
    line-height: 1.65;
    box-sizing: border-box;
}
.rp-top {
    padding: 4px 2px 14px;
    text-align: center;
    color: var(--rp-muted);
    font-size: 13px;
}
.rp-card {
    background: var(--rp-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(17, 24, 39, .045);
    border: 1px solid rgba(17, 24, 39, .035);
}
.rp-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.rp-title-row h1 {
    flex: 1;
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--rp-text);
    word-break: break-word;
}
.rp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    padding: 5px 12px;
    border: 0;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: .15s;
    box-sizing: border-box;
}
.rp-btn .icon { width: 13px; height: 13px; }
.rp-btn-blue { background: var(--rp-blue); color: #fff; }
.rp-btn-blue:hover { background: var(--rp-blue-2); }
.rp-btn-green { background: var(--rp-green); color: #fff; }
.rp-btn-green:hover { background: #009e69; }
.rp-btn-light { background: var(--rp-soft); color: #374151; border: 1px solid var(--rp-line); }
.rp-btn-light:hover { background: #eef0f4; }
.rp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0 8px;
    color: var(--rp-muted);
    font-size: 12.5px;
}
.rp-copy-head { align-items: flex-start; }
.rp-copy-title {
    flex: 1;
    margin: 0;
    color: var(--rp-text);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
    word-break: break-word;
}
.rp-media {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    overscroll-behavior-x: contain;
}
.rp-media::-webkit-scrollbar { display: none; }
.rp-media-slide {
    position: relative;
    flex: 0 0 100%;
    max-width: 100%;
    height: 300px;
    height: clamp(220px, 42vh, 320px);
    scroll-snap-align: center;
}
.rp-media-open {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 1px solid var(--rp-line);
    border-radius: 8px;
    overflow: hidden;
    background: #faf8f3;
    cursor: zoom-in;
}
.rp-media > .rp-empty { flex: 1 1 100%; }
.rp-media.is-carousel .rp-media-slide {
    flex-basis: 78%;
    max-width: 78%;
}
.rp-media-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, .62);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.rp-media-delete:hover { background: rgba(220, 38, 38, .92); }
.rp-media-delete:disabled { opacity: .5; cursor: not-allowed; }
.rp-media-open img,
.rp-media-open video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    background: #faf8f3;
    pointer-events: none;
}
.rp-media-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
    pointer-events: none;
}
.rp-swipe-hint {
    margin-left: 6px;
    color: #9ca3af;
    font-size: 10.5px;
    font-style: normal;
}
.rp-download-mark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(17, 24, 39, .55);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(4px);
}
.rp-content {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 2px 0 6px;
}
.rp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0 10px;
}
.rp-tags span {
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--rp-tag);
    color: #4b5563;
    font-size: 11.5px;
}
.rp-share {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px dashed var(--rp-line);
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--rp-muted);
}
.rp-share span { flex: none; }
.rp-share a {
    flex: 1;
    color: var(--rp-blue);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-actions { display: flex; gap: 8px; margin-top: 8px; }
.rp-actions .rp-btn { flex: 1; min-height: 40px; font-size: 13px; }
.rp-actions .rp-btn:disabled { opacity: .55; cursor: not-allowed; }
.rp-action-main { flex: 1.35 !important; }
.rp-action-hint { margin: 8px 2px 0; color: var(--rp-muted, #6b7280); font-size: 11px; line-height: 1.6; }
.rp-action-hint.is-warn { color: #b45309; font-weight: 600; }
body.rp-dark .rp-action-hint { color: #9ca3af; }
body.rp-dark .rp-action-hint.is-warn { color: #fbbf24; }

.rp-submit-card { padding-bottom: 18px; }
.rp-submit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rp-line);
}
.rp-submit-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.rp-progress { color: var(--rp-muted); font-size: 11px; }
.rp-meta {
    margin: 10px 0 12px;
    color: var(--rp-muted);
    font-size: 12px;
    line-height: 1.9;
}
.rp-meta strong { color: #374151; font-weight: 500; }
.rp-status { color: var(--rp-blue) !important; }
.rp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 0 12px;
    border-top: 1px solid var(--rp-line);
    border-bottom: 1px solid var(--rp-line);
    text-align: center;
}
.rp-stats div { display: flex; flex-direction: column; gap: 1px; }
.rp-stats strong { font-size: 16px; color: #111827; font-weight: 700; }
.rp-stats span { color: var(--rp-muted); font-size: 11px; }
.rp-form { padding-top: 12px; }
.rp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 9px; }
.rp-field > span { font-size: 12px; color: var(--rp-muted); }
.rp-field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--rp-line);
    background: var(--rp-soft);
    color: #111827;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}
.rp-field input:focus { border-color: rgba(22, 119, 255, .55); background: #fff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .08); }
.rp-submit-btn { width: 100%; min-height: 42px; font-size: 14px; }
.rp-submit-btn:disabled { opacity: .65; cursor: not-allowed; }
.rp-submit-hint { margin: 8px 0 14px; color: #9ca3af; font-size: 11px; line-height: 1.6; }
.rp-upload-block {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 9px;
    background: var(--rp-soft);
    border: 1px solid var(--rp-line);
}
.rp-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.rp-upload-head strong { font-size: 12.5px; color: #374151; }
.rp-link-btn { border: 0; background: transparent; color: var(--rp-blue); font-size: 11.5px; cursor: pointer; padding: 0; }
.rp-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px dashed rgba(22, 119, 255, .5);
    background: #fff;
    color: var(--rp-blue);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.rp-file-btn .icon { width: 13px; height: 13px; }
.rp-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.rp-file-btn-light { border-color: var(--rp-line); color: #4b5563; }
.rp-upload-hint { margin: 8px 0 0; color: #9ca3af; font-size: 10.5px; line-height: 1.6; }
.rp-upload-card {
    position: relative;
    margin: 0 0 16px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(22, 119, 255, .10), transparent 55%),
        linear-gradient(180deg, rgba(22, 119, 255, .055), rgba(255, 255, 255, 0) 42%),
        var(--rp-card);
    border: 1px solid rgba(22, 119, 255, .16);
    box-shadow: 0 18px 42px -28px rgba(16, 63, 145, .45), 0 2px 10px rgba(17, 24, 39, .04);
    overflow: hidden;
}
.rp-upload-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}
.rp-upload-title { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rp-upload-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(22, 119, 255, .10);
    color: #0b66d6;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .45px;
}
.rp-upload-badge.is-direct {
    background: linear-gradient(135deg, rgba(22, 119, 255, .16), rgba(14, 165, 233, .16));
}
.rp-upload-title strong {
    color: var(--rp-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.2px;
}
.rp-upload-title small { color: #8b93a5; font-size: 11px; line-height: 1.55; }
.rp-upload-count {
    flex: none;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .045);
    color: var(--rp-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.rp-upload-count b { color: var(--rp-text); font-size: 13px; font-weight: 800; }
.rp-upload-count em { font-style: normal; color: #9ca3af; }
.rp-upload-count-split { gap: 7px; }
.rp-upload-count-item { display: inline-flex; align-items: baseline; gap: 1px; }
.rp-upload-count-item + .rp-upload-count-item {
    padding-left: 7px;
    border-left: 1px solid rgba(17, 24, 39, .10);
}
.rp-upload-title { flex: 1; }
.rp-upload-form { display: flex; flex-direction: column; align-items: stretch; }
.rp-dropzone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 14px;
    border: 1.5px dashed rgba(22, 119, 255, .32);
    background: linear-gradient(180deg, rgba(22, 119, 255, .055), rgba(22, 119, 255, .015));
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.rp-dropzone:hover {
    border-color: rgba(22, 119, 255, .55);
    background: linear-gradient(180deg, rgba(22, 119, 255, .09), rgba(22, 119, 255, .025));
}
.rp-dropzone.is-dragover {
    border-color: var(--rp-blue);
    background: rgba(22, 119, 255, .12);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -20px rgba(22, 119, 255, .7);
}
.rp-dropzone.is-disabled { opacity: .6; pointer-events: none; }
.rp-dropzone-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1677ff, #45b7ff);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(22, 119, 255, .8);
}
.rp-dropzone-icon .icon { width: 20px; height: 20px; }
.rp-dropzone-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rp-dropzone-copy strong { color: var(--rp-text); font-size: 13px; font-weight: 700; line-height: 1.35; }
.rp-dropzone-copy small {
    color: #8b93a5;
    font-size: 10.5px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-dropzone-cta {
    flex: none;
    padding: 6px 11px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    box-shadow: 0 6px 14px -8px rgba(17, 24, 39, .7);
}
.rp-upload-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.rp-upload-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .035);
    color: #7b8496;
    font-size: 10px;
    line-height: 1.4;
}
.rp-upload-meta-item::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9fb7d8;
}
.rp-upload-meta-item.is-warn {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}
.rp-upload-meta-item.is-warn::before { background: #f59e0b; }
.rp-upload-meta-item.is-danger {
    background: rgba(220, 38, 38, .14);
    color: #dc2626;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .18);
}
.rp-upload-meta-item.is-danger::before { background: #dc2626; }
.rp-selected-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 10.5px;
}
.rp-selected-head[hidden] { display: none; }
.rp-selected-head strong { color: var(--rp-text); font-size: 12px; }
.rp-selected-head strong span { color: var(--rp-blue); }
.rp-selected-head > span { color: #8b93a5; font-variant-numeric: tabular-nums; }
.rp-upload-form { display: flex; flex-direction: column; align-items: stretch; }
.rp-upload-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.rp-upload-progress[hidden] { display: none; }
.rp-upload-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(17, 24, 39, .07);
}
.rp-upload-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1677ff, #45b7ff);
    transition: width .18s ease;
}
.rp-upload-progress-text {
    flex: none;
    min-width: 32px;
    text-align: right;
    color: #5b6b82;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}
.rp-upload-status {
    margin: 8px 0 0;
    color: #7b8496;
    font-size: 10.5px;
    line-height: 1.6;
    word-break: break-all;
}
.rp-upload-status:empty { display: none; }
.rp-upload-status.is-error { color: #dc2626; }
.rp-upload-status.is-success { color: #059669; }
.rp-upload-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #1677ff, #0ea5e9);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 14px 28px -16px rgba(22, 119, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.rp-upload-submit .icon { width: 15px; height: 15px; }
.rp-upload-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -16px rgba(22, 119, 255, .85);
}
.rp-upload-submit:active:not(:disabled) { transform: translateY(0); }
.rp-upload-submit:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }
.rp-upload-submit.is-busy .icon { display: none; }
.rp-upload-submit.is-busy::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: rp-spin .8s linear infinite;
}
@keyframes rp-spin { to { transform: rotate(360deg); } }
.rp-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rp-previews:empty { display: none; }
.rp-preview-item {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    background: #f7f9fc;
    cursor: pointer;
    box-shadow: 0 6px 16px -12px rgba(17, 24, 39, .35);
    transition: transform .16s ease, box-shadow .16s ease;
}
.rp-preview-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -14px rgba(17, 24, 39, .45);
}
.rp-preview-item img,
.rp-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.rp-preview-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 9px 5px 3px;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 16, .72));
    color: #fff;
    font-size: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 3;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px -4px rgba(220, 38, 38, .75);
}
.rp-preview-remove:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 360px) {
    .rp-dropzone-cta { display: none; }
}
body.rp-lightbox-open { overflow: hidden; }
.rp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 10, 16, .94);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.rp-lightbox[hidden] { display: none; }
.rp-lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    max-height: 86vh;
    pointer-events: none;
}
.rp-lightbox-body img,
.rp-lightbox-body video {
    display: block;
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    background: #0b0b17;
    pointer-events: auto;
}
.rp-lightbox-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.rp-lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.rp-foot { padding: 16px 0 4px; text-align: center; color: #9ca3af; font-size: 10.5px; }
.rp-done { text-align: center; padding: 42px 22px; }
.rp-done-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(0, 181, 120, .12);
    color: var(--rp-green);
}
.rp-done-icon .icon { width: 28px; height: 28px; }
.rp-done h1 { margin: 0 0 8px; font-size: 20px; }
.rp-done p { margin: 0; color: var(--rp-muted); font-size: 12.5px; }
.rp-done-hint { margin-top: 8px !important; color: #9ca3af !important; font-size: 11.5px !important; }
.rp-submitted-card { text-align: center; padding: 24px 18px; }
.rp-submitted-card h2 { margin: 8px 0 6px; font-size: 18px; }
.rp-submitted-card p { margin: 0; color: var(--rp-muted); font-size: 12.5px; }
.rp-submitted-link { margin-top: 10px !important; }
.rp-submitted-link a { color: var(--rp-blue); font-size: 12.5px; word-break: break-all; }
.rp-submitted-time { margin-top: 6px !important; color: #9ca3af !important; font-size: 11.5px !important; }
.rp-submitted-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.rp-empty { color: #9ca3af; font-size: 12px; text-align: center; padding: 22px; }
.rp-moon {
    position: fixed;
    right: max(16px, calc(50vw - 240px + 16px));
    bottom: 24px;
    z-index: 20;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: #1f2937;
    color: #f8fafc;
    font-size: 19px;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .28);
}
body.rp-dark {
    --rp-bg: #0f1117;
    --rp-card: #171a22;
    --rp-text: #f1f5f9;
    --rp-muted: #9ca3af;
    --rp-line: #2a2f3a;
    --rp-tag: #242a35;
    --rp-soft: #1d222c;
}
body.rp-dark .rp-content { color: #d1d5db; }
body.rp-dark .rp-meta strong, body.rp-dark .rp-stats strong { color: #f1f5f9; }
body.rp-dark .rp-field input { color: #f1f5f9; }
body.rp-dark .rp-file-btn { background: #1d222c; color: #93c5fd; }
body.rp-dark .rp-media-open,
body.rp-dark .rp-media-open img,
body.rp-dark .rp-media-open video { background: #1b1f28; }
body.rp-dark .rp-upload-card {
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(59, 130, 246, .16), transparent 55%),
        linear-gradient(180deg, rgba(59, 130, 246, .08), rgba(255, 255, 255, 0) 42%),
        #151a24;
    border-color: rgba(96, 165, 250, .22);
    box-shadow: 0 18px 42px -28px rgba(0, 0, 0, .85);
}
body.rp-dark .rp-upload-title strong,
body.rp-dark .rp-upload-count b { color: #f1f5f9; }
body.rp-dark .rp-upload-title small,
body.rp-dark .rp-dropzone-copy small,
body.rp-dark .rp-selected-head > span { color: #9ca3af; }
body.rp-dark .rp-upload-badge { background: rgba(96, 165, 250, .18); color: #bfdbfe; }
body.rp-dark .rp-upload-count { background: rgba(255, 255, 255, .06); }
body.rp-dark .rp-upload-count-item + .rp-upload-count-item { border-left-color: rgba(255, 255, 255, .14); }
body.rp-dark .rp-dropzone {
    background: linear-gradient(180deg, rgba(96, 165, 250, .10), rgba(96, 165, 250, .02));
    border-color: rgba(96, 165, 250, .32);
}
body.rp-dark .rp-dropzone-copy strong { color: #f1f5f9; }
body.rp-dark .rp-dropzone-cta { background: #f8fafc; color: #111827; }
body.rp-dark .rp-upload-meta-item { background: rgba(255, 255, 255, .06); color: #9ca3af; }
body.rp-dark .rp-upload-meta-item.is-warn { background: rgba(245, 158, 11, .16); color: #fbbf24; }
body.rp-dark .rp-upload-meta-item.is-danger { background: rgba(248, 113, 113, .18); color: #f87171; box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .24); }
body.rp-dark .rp-upload-meta-item.is-danger::before { background: #f87171; }
body.rp-dark .rp-selected-head { color: #9ca3af; }
body.rp-dark .rp-selected-head strong { color: #f1f5f9; }
body.rp-dark .rp-upload-progress-bar { background: rgba(255, 255, 255, .10); }
body.rp-dark .rp-upload-progress-text { color: #9ca3af; }
body.rp-dark .rp-preview-item { background: #0f1420; border-color: rgba(255, 255, 255, .08); }
body.rp-dark .rp-upload-status { color: #9ca3af; }
body.rp-dark .rp-upload-status.is-error { color: #f87171; }
body.rp-dark .rp-upload-status.is-success { color: #34d399; }
body.rp-dark .rp-btn-light { color: #d1d5db; }
body.rp-dark .rp-moon { background: #f8fafc; color: #111827; }
@media (min-width: 520px) {
    .rp-page { padding-top: 24px; }
    .rp-card { padding: 20px; }
}

.rp-qr-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(3px);
}
.rp-qr-overlay[hidden] { display: none; }
.rp-wechat-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(3px);
}
.rp-wechat-guide {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 54px);
    right: 14px;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(15, 23, 42, .35));
}
.rp-wechat-guide-label {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.rp-wechat-guide-label b { letter-spacing: 2px; font-size: 14px; }
.rp-wechat-arrow {
    width: 42px;
    height: 42px;
    flex: none;
    animation: rpWechatArrow 1.6s ease-in-out infinite;
}
@keyframes rpWechatArrow {
    0%, 100% { transform: translate(0, 0); opacity: .65; }
    50% { transform: translate(5px, -5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .rp-wechat-arrow { animation: none; }
}
.rp-wechat-card {
    width: min(360px, 100%);
    padding: 26px 22px 22px;
    border-radius: 18px;
    background: var(--rp-card);
    color: var(--rp-text);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
    text-align: center;
}
.rp-wechat-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: rgba(22, 119, 255, .12);
    color: var(--rp-blue);
}
.rp-wechat-icon .icon { width: 27px; height: 27px; }
.rp-wechat-card h2 { margin: 0 0 8px; font-size: 20px; }
.rp-wechat-card p { margin: 0 0 8px; color: var(--rp-muted); font-size: 13px; line-height: 1.7; }
.rp-wechat-card .rp-btn { width: 100%; margin-top: 8px; }
.rp-wechat-hint { margin-top: 10px !important; color: #9ca3af !important; font-size: 11.5px !important; }
.rp-qr-card {
    position: relative;
    width: min(340px, 100%);
    padding: 22px 20px 18px;
    border-radius: 18px;
    background: var(--rp-card, #fff);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
    text-align: center;
}
.rp-qr-card h3 { font-size: 17px; margin: 0 0 6px; }
.rp-qr-card > p { color: var(--rp-muted, #6b7280); font-size: 12px; line-height: 1.7; margin: 0; }
.rp-qr-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.rp-qr-close:hover { background: rgba(148, 163, 184, .12); color: #4b5563; }
.rp-qr-img {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px auto 10px;
    padding: 10px;
    border: 1px solid var(--rp-line, #e5e7eb);
    border-radius: 12px;
    background: #fff;
}
.rp-qr-img img { display: block; width: 240px; max-width: 70vw; height: auto; }
.rp-qr-hint { color: #9ca3af !important; font-size: 11px !important; }
.rp-qr-web { width: 100%; margin-top: 10px; }
body.rp-dark .rp-qr-card { background: #111827; color: #f9fafb; }
body.rp-dark .rp-qr-card > p { color: #9ca3af; }


