/* 变更详情报告 */
:root {
    --rp-primary: #1677ff;
    --rp-primary-soft: #e6f4ff;
    --rp-bg: #eceef3;
    --rp-card: #fff;
    --rp-text: #1f1f1f;
    --rp-muted: #8c8c8c;
    --rp-border: #dfe2e8;
    --rp-success: #52c41a;
    --rp-danger: #ff4d4f;
    --rp-warn: #faad14;
    --rp-radius: 6px;
}
* { box-sizing: border-box; }
body.rp-body { margin: 0; background: var(--rp-bg); color: var(--rp-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; }

.rp-topbar { background: var(--rp-card); border-bottom: 1px solid var(--rp-border); padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 100; }
.rp-topbar-left { display: flex; align-items: center; gap: 10px; }
.rp-back { color: var(--rp-muted); text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.rp-back:hover { color: var(--rp-primary); }
.rp-top-actions { display: flex; gap: 8px; }

.rp-wrap { max-width: 1180px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .rp-wrap { grid-template-columns: 1fr; } .rp-nav { position: static !important; } }

.rp-nav { position: sticky; top: 56px; }
.rp-nav-card { background: var(--rp-card); border: 1px solid var(--rp-border); border-radius: var(--rp-radius); overflow: hidden; box-shadow: none; }
.rp-nav-head { padding: 12px 14px; font-size: 11px; font-weight: 700; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .05em; background: #f8fafc; border-bottom: 1px solid var(--rp-border); }
.rp-nav a { display: block; padding: 10px 14px; color: var(--rp-text); text-decoration: none; font-size: 13px; border-left: 3px solid transparent; }
.rp-nav a:hover { background: var(--rp-primary-soft); color: var(--rp-primary); }
.rp-nav a.active { background: var(--rp-primary-soft); color: var(--rp-primary); border-left-color: var(--rp-primary); font-weight: 600; }

.rp-hero { background: linear-gradient(135deg, #4096ff 0%, #1677ff 100%); color: #fff; border-radius: var(--rp-radius); padding: 22px 24px; margin-bottom: 14px; box-shadow: none; border: 1px solid #0958d9; }
.rp-hero-cid { font-family: ui-monospace, monospace; font-size: 12px; opacity: .85; margin-bottom: 6px; }
.rp-hero-title { font-size: 22px; font-weight: 700; margin: 0 0 14px; line-height: 1.35; }
.rp-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-pill { background: rgba(255,255,255,.18); backdrop-filter: blur(4px); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

.rp-steps { display: flex; gap: 4px; margin-bottom: 16px; background: var(--rp-card); border: 1px solid var(--rp-border); border-radius: var(--rp-radius); padding: 8px; overflow-x: auto; }
.rp-step { flex: 1; min-width: 80px; text-align: center; padding: 8px 4px; font-size: 11px; font-weight: 600; color: var(--rp-muted); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.rp-step:hover { background: var(--rp-primary-soft); color: var(--rp-primary); }

.rp-section { background: var(--rp-card); border: 1px solid var(--rp-border); border-radius: var(--rp-radius); margin-bottom: 14px; scroll-margin-top: 72px; box-shadow: none; overflow: hidden; }
.rp-section-head { padding: 14px 20px; border-bottom: 1px solid var(--rp-border); display: flex; align-items: center; justify-content: space-between; background: #fafbfc; }
.rp-section-head h2 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rp-section-body { padding: 20px; }

.rp-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.rp-kv .full { grid-column: 1 / -1; }
.rp-kv label { display: block; font-size: 11px; font-weight: 600; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.rp-kv .val { font-size: 14px; color: var(--rp-text); font-weight: 500; }
.rp-text-block { background: #f8fafc; border: 1px solid var(--rp-border); border-radius: 8px; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; color: #334155; line-height: 1.7; min-height: 48px; }

.rp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .rp-compare { grid-template-columns: 1fr; } }
.rp-compare-box { border-radius: 8px; padding: 14px; border: 1px solid var(--rp-border); }
.rp-compare-box.before { background: #fef2f2; border-color: #fecaca; }
.rp-compare-box.after { background: #ecfdf5; border-color: #a7f3d0; }
.rp-compare-box h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.rp-compare-box.before h4 { color: #b91c1c; }
.rp-compare-box.after h4 { color: #047857; }

.rp-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rp-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--rp-primary-soft); border: 1px solid #b8d4ff; border-radius: 6px; color: var(--rp-primary); text-decoration: none; font-size: 13px; font-weight: 500; transition: background .15s; }
.rp-file:hover { background: #d6ebff; box-shadow: none; }
.rp-file i { font-size: 16px; }
.rp-no-file { color: var(--rp-muted); font-size: 13px; font-style: italic; }

.rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-table th { text-align: left; padding: 10px 12px; background: #f1f5f9; font-weight: 600; color: var(--rp-muted); font-size: 12px; border-bottom: 2px solid var(--rp-border); }
.rp-table td { padding: 10px 12px; border-bottom: 1px solid var(--rp-border); vertical-align: top; color: #334155; }
.rp-table tr:last-child td { border-bottom: none; }
.rp-table tr:hover td { background: #fafbfc; }

.rp-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.rp-badge-ok { background: #ecfdf5; color: var(--rp-success); }
.rp-badge-no { background: #fef2f2; color: var(--rp-danger); }
.rp-badge-wait { background: #f1f5f9; color: var(--rp-muted); }

.rp-conclusion { background: var(--rp-primary-soft); border: 1px solid #c7d2fe; border-radius: 8px; padding: 16px; margin-top: 16px; }
.rp-conclusion strong { color: var(--rp-primary); display: block; margin-bottom: 6px; }

.rp-empty { text-align: center; padding: 32px 16px; color: var(--rp-muted); }
.rp-empty i { font-size: 36px; display: block; margin-bottom: 8px; opacity: .4; }

.rp-timeline { list-style: none; margin: 0; padding: 0; }
.rp-timeline li { padding: 8px 0 8px 14px; border-left: 2px solid var(--rp-border); margin-left: 4px; }
.rp-timeline time { font-size: 11px; color: var(--rp-muted); display: block; }
.rp-timeline p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }

.rp-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rp-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rp-check.done { color: var(--rp-success); }
.rp-check.pending { color: #cbd5e1; }

@media print {
    .rp-topbar, .rp-nav, .rp-top-actions { display: none !important; }
    .rp-wrap { display: block; max-width: 100%; padding: 0; }
    .rp-hero { background: #fff !important; color: #000 !important; border: 1px solid #000; box-shadow: none; }
    .rp-pill { border: 1px solid #ccc; color: #000; background: #fff; }
}
