/* 聚合码落地页（对标 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-media {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rp-media-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #faf8f3;
    border: 1px solid var(--rp-line);
}
.rp-media-item img,
.rp-media-item video {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #faf8f3;
}
.rp-download-mark {
    position: absolute;
    right: 10px;
    top: 10px;
    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;
    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-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; }
body.rp-dark .rp-action-hint { color: #9ca3af; }

.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-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-previews { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.rp-preview-item {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--rp-line);
    background: #fff;
}
.rp-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.rp-preview-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px 3px;
    background: rgba(17, 24, 39, .55);
    color: #fff;
    font-size: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.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-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-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-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; }


