/* ═══════════════ 蜻蜓简历主题样式（6 套自建模板） ═══════════════
 * 与 static/js/resume_themes.js 渲染器一一对应
 * A4 基准：794px × 1123px（96dpi 下的 210mm × 297mm）
 */

.rp-a4 {
    width: 794px;
    min-height: 1123px;
    background: #fff;
    color: #1f2937;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}
.rp-a4 * { box-sizing: border-box; }
.rp-a4 h1 { margin: 0; font-size: 28px; letter-spacing: 2px; }
.rp-a4 ul { margin: 6px 0 0; padding-left: 18px; }
.rp-a4 li { margin: 2px 0; }

/* ── 通用件 ── */
.rt-photo {
    width: 88px; height: 118px; flex: 0 0 88px;
    border-radius: 4px; overflow: hidden;
    background: #eef2f0; border: 1px solid rgba(0,0,0,.08);
    display: flex; align-items: center; justify-content: center;
}
.rt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-photo-empty { font-size: 26px; color: #9ca3af; }
.rt-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; }
.rt-intent { margin-top: 6px; font-size: 13px; font-weight: 600; }
.rt-sec { margin-bottom: 18px; }
.rt-sec-t { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.rt-p { margin: 0; text-align: justify; }
.rt-exp { margin-bottom: 10px; }
.rt-exp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rt-exp-head strong { font-size: 13.5px; }
.rt-time { font-size: 12px; color: #6b7280; white-space: nowrap; }
.rt-sub { font-size: 12.5px; color: #4b5563; margin-top: 2px; }
.rt-edu-detail { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #4b5563; margin-top: 4px; }
.rt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-tags span {
    padding: 2px 10px; border-radius: 999px; font-size: 12px;
    background: #f3f4f6; border: 1px solid #e5e7eb; color: #374151;
}

/* ═══ 1. 蜻蜓绿·商务 ═══ */
.rt-qingting .rt-head {
    display: flex; flex-direction: row-reverse; gap: 22px; align-items: center;
    padding: 34px 40px 28px;
    background: linear-gradient(120deg, #2D6942 0%, #3d8a57 60%, #55a06e 100%);
    color: #fff;
}
.rt-qingting .rt-head h1 { color: #fff; }
.rt-qingting .rt-head-info { flex: 1; }
.rt-qingting .rt-intent { color: #eafbef; }
.rt-qingting .rt-contact { color: #d8efe0; }
.rt-qingting .rt-photo { border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.15); }
.rt-qingting .rt-photo-empty { color: rgba(255,255,255,.75); }
.rt-qingting .rt-body { padding: 26px 40px 34px; }
.rt-qingting .rt-sec-t { color: #2D6942; border-left: 4px solid #2D6942; padding-left: 10px; }
.rt-qingting .rt-tags span { background: #eef7f0; border-color: #cfe6d5; color: #2D6942; }
.rt-qingting .rt-tags span.gold { background: #fdf6e7; border-color: #eed9a8; color: #92600a; }

/* ═══ 2. 经典竖排蓝 ═══ */
.rt-classic .rt-head {
    display: flex; gap: 22px; align-items: center;
    padding: 30px 40px 20px; border-bottom: 3px solid #2563eb;
}
.rt-classic .rt-head-main { flex: 1; }
.rt-classic .rt-head h1 { color: #1e3a8a; }
.rt-classic .rt-intent { color: #2563eb; }
.rt-classic .rt-body { padding: 22px 40px 34px; }
.rt-classic .rt-sec-t {
    color: #1e3a8a; border-bottom: 1.5px solid #bfdbfe; padding-bottom: 5px;
}
.rt-classic .rt-sec-t::before { content: '▎'; color: #2563eb; }
.rt-classic .rt-tags span { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* ═══ 3. 商务双栏 ═══ */
.rt-business { display: flex; }
.rt-business .rt-side {
    width: 262px; flex: 0 0 262px;
    background: #16283f; color: #dbe4f0;
    padding: 34px 24px; min-height: 1123px;
}
.rt-business .rt-photo-side {
    width: 108px; height: 144px; flex-basis: 108px;
    margin: 0 auto 24px; border: 3px solid #b78d4a; border-radius: 6px;
    background: rgba(255,255,255,.08);
}
.rt-business .rt-photo-side.rt-photo-empty { color: rgba(255,255,255,.5); }
.rt-business .rt-side-sec { margin-bottom: 22px; }
.rt-business .rt-side-t {
    font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #b78d4a;
    border-bottom: 1px solid rgba(183, 141, 74, .45); padding-bottom: 6px; margin-bottom: 10px;
}
.rt-business .rt-side-i { font-size: 12px; margin: 6px 0; word-break: break-all; }
.rt-business .rt-main { flex: 1; padding: 34px 32px; }
.rt-business .rt-main h1 { color: #16283f; }
.rt-business .rt-main .rt-intent { color: #b78d4a; }
.rt-business .rt-main .rt-sec-t {
    color: #16283f; letter-spacing: 1px;
    border-bottom: 2px solid #16283f; padding-bottom: 5px;
}
.rt-business .rt-main .rt-sec-t::after {
    content: ''; display: block; height: 2px; width: 42px;
    background: #b78d4a; margin-top: 4px; margin-bottom: -7px;
}

/* ═══ 4. 表格档案风 ═══ */
.rt-table { padding: 34px 38px; }
.rt-table > h1 {
    text-align: center; font-size: 26px; letter-spacing: 10px;
    color: #1f2937; margin-bottom: 20px; font-weight: 700;
}
.rt-table .rt-tbl {
    width: 100%; border-collapse: collapse; margin-bottom: 14px;
    table-layout: fixed;
}
.rt-table .rt-tbl td {
    border: 1px solid #9ca3af; padding: 7px 10px; font-size: 12.5px;
    vertical-align: top; word-break: break-word;
}
.rt-table .rt-tr-t td {
    background: #e8edf3; font-weight: 700; font-size: 13.5px;
    color: #1f2937; letter-spacing: 4px; text-align: center;
}
.rt-table .rt-td-l { background: #f3f5f7; font-weight: 600; width: 82px; text-align: center; }
.rt-table .rt-td-time { width: 150px; text-align: center; color: #4b5563; font-size: 12px; }
.rt-table .rt-td-p { line-height: 1.8; }
.rt-table .rt-td-desc { color: #374151; font-size: 12px; }

/* ═══ 5. 极简黑白 ═══ */
.rt-minimal { padding: 42px 46px; color: #111; }
.rt-minimal .rt-head { text-align: left; border-bottom: 2.5px solid #111; padding-bottom: 16px; margin-bottom: 22px; }
.rt-minimal .rt-head h1 { font-size: 30px; letter-spacing: 4px; font-weight: 800; }
.rt-minimal .rt-intent { color: #555; font-weight: 500; letter-spacing: 1px; }
.rt-minimal .rt-contact { color: #555; margin-top: 6px; }
.rt-minimal .rt-sec-t {
    font-size: 13px; letter-spacing: 4px; font-weight: 800; color: #111;
    text-transform: uppercase; border-bottom: 1px solid #d1d5db; padding-bottom: 5px;
}
.rt-minimal .rt-time { color: #555; }
.rt-minimal .rt-sub, .rt-minimal .rt-edu-detail { color: #444; }

/* ═══ 6. 考研复试版 ═══ */
.rt-kaoyan .rt-head {
    display: flex; flex-direction: row-reverse; gap: 22px; align-items: center;
    padding: 30px 40px 18px; border-bottom: 3px double #14365f;
}
.rt-kaoyan .rt-head-info { flex: 1; }
.rt-kaoyan .rt-head h1 { color: #14365f; }
.rt-kaoyan .rt-intent { color: #b03a2e; }
.rt-kaoyan .rt-body { padding: 22px 40px 34px; }
.rt-kaoyan .rt-sec-t { color: #14365f; }
.rt-kaoyan .rt-sec-t::after {
    content: ''; display: block; height: 1px; margin-top: 5px;
    background: linear-gradient(90deg, #14365f 0 70px, #e5e7eb 70px 100%);
}
.rt-kaoyan .rt-tags span { background: #eef3f9; border-color: #c7d6e8; color: #14365f; }
.rt-kaoyan .rt-tags span.gold { background: #fdf1ef; border-color: #eec5bf; color: #b03a2e; }

/* ═══ 7. 创意珊瑚 ═══ */
.rt-creative { background: #fdf3f0; }
.rt-creative .rt-head {
    display: flex; gap: 22px; align-items: center;
    padding: 34px 38px 30px;
    background: linear-gradient(120deg, #ff6b4a 0%, #ff8f3d 60%, #ffb03d 100%);
    color: #fff; border-radius: 0 0 28px 28px;
}
.rt-creative .rt-head h1 { color: #fff; }
.rt-creative .rt-head-info { flex: 1; }
.rt-creative .rt-intent { color: #fff3ec; }
.rt-creative .rt-contact { color: #ffe4d6; }
.rt-creative .rt-photo { border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.15); }
.rt-creative .rt-photo-empty { color: rgba(255,255,255,.75); }
.rt-creative .rt-body { padding: 24px 32px 34px; }
.rt-creative .rt-card {
    background: #fff; border-radius: 14px; padding: 14px 20px 16px;
    margin-bottom: 14px; box-shadow: 0 2px 10px rgba(232, 83, 47, .07);
    border: 1px solid rgba(255, 107, 74, .10);
}
.rt-creative .rt-card-t { font-size: 15px; font-weight: 800; color: #e8532f; margin-bottom: 8px; }
.rt-creative .rt-tags span { background: #fff1ec; border-color: #ffd4c4; color: #d14a28; }
.rt-creative .rt-tags span.gold { background: #fdf6e7; border-color: #eed9a8; color: #92600a; }

/* ═══ 8. 极客代码 ═══ */
.rt-tech { background: #f8fafc; }
.rt-tech .rt-head {
    display: flex; gap: 22px; align-items: center;
    padding: 32px 38px; background: #0f172a; color: #e2e8f0;
    border-bottom: 3px solid #4ade80;
}
.rt-tech .rt-head-main { flex: 1; }
.rt-tech .rt-head h1 { color: #f8fafc; font-family: "SF Mono", Consolas, Menlo, monospace; letter-spacing: 1px; }
.rt-tech .rt-cursor { color: #4ade80; animation: rtBlink 1.1s steps(1) infinite; }
@keyframes rtBlink { 50% { opacity: 0; } }
.rt-tech .rt-intent { color: #4ade80; font-family: Consolas, Menlo, monospace; font-size: 12.5px; }
.rt-tech .rt-contact { color: #94a3b8; }
.rt-tech .rt-photo { border: 2px solid #4ade80; background: #1e293b; }
.rt-tech .rt-photo-empty { color: #64748b; }
.rt-tech .rt-body { padding: 24px 38px 34px; }
.rt-tech .rt-sec-t {
    color: #0f172a; font-family: Consolas, Menlo, monospace; font-size: 14px;
    border-bottom: 1.5px solid #cbd5e1; padding-bottom: 5px;
}
.rt-tech .rt-sec-t .rt-cmt { color: #4ade80; font-weight: 700; }
.rt-tech .rt-tags span {
    background: #0f172a; color: #4ade80; border: 1px solid #1e293b;
    font-family: Consolas, Menlo, monospace; font-size: 11.5px; border-radius: 4px;
}

/* ═══ 9. 金领经管 ═══ */
.rt-elegant { background: #fffdf8; }
.rt-elegant .rt-head {
    display: flex; flex-direction: row-reverse; gap: 22px; align-items: center;
    padding: 36px 42px 24px; border-bottom: 1px solid #a8832a;
    box-shadow: 0 3px 0 -1.5px #e8d9b5;
}
.rt-elegant .rt-head-info { flex: 1; }
.rt-elegant .rt-head h1 {
    color: #1c1917; font-family: Georgia, "Times New Roman", "STSong", "SimSun", serif;
    letter-spacing: 6px;
}
.rt-elegant .rt-intent { color: #a8832a; font-family: Georgia, "STSong", serif; letter-spacing: 1px; }
.rt-elegant .rt-contact { color: #78716c; }
.rt-elegant .rt-photo { border: 1px solid #a8832a; outline: 3px solid #f5ecd7; }
.rt-elegant .rt-body { padding: 24px 42px 36px; }
.rt-elegant .rt-sec-t {
    color: #1c1917; text-align: center; letter-spacing: 6px; font-size: 14px;
    font-family: Georgia, "STSong", "SimSun", serif;
}
.rt-elegant .rt-sec-t::after {
    content: ''; display: block; width: 56px; height: 2px;
    background: #a8832a; margin: 6px auto 0;
}
.rt-elegant .rt-tags span { background: #faf6ea; border-color: #e2d3ac; color: #7c5f1c; }

/* ═══ 10. 清新薄荷 ═══ */
.rt-fresh { background: #fff; }
.rt-fresh .rt-head {
    display: flex; gap: 22px; align-items: center;
    margin: 26px 30px 0; padding: 24px 26px;
    background: linear-gradient(120deg, #e6faf3, #d2f5e9);
    border-radius: 18px; border: 1px solid #b6ecdc;
}
.rt-fresh .rt-head-main { flex: 1; }
.rt-fresh .rt-head h1 { color: #0f766e; }
.rt-fresh .rt-intent { color: #0d9488; }
.rt-fresh .rt-contact { color: #5b7670; }
.rt-fresh .rt-photo { border: 2px solid #5eead4; border-radius: 12px; }
.rt-fresh .rt-body { padding: 24px 34px 34px; }
.rt-fresh .rt-sec-t {
    display: inline-block; color: #0f766e; font-size: 14px;
    background: #ccfbf1; border-radius: 999px; padding: 4px 16px; margin-bottom: 10px;
}
.rt-fresh .rt-tags span { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }

/* ═══ 11. 外企英文（右栏） ═══ */
.rt-english { display: flex; }
.rt-english .rt-main { flex: 1; padding: 36px 30px 34px 38px; min-width: 0; }
.rt-english .rt-main h1 { color: #1f2d3d; letter-spacing: 1px; }
.rt-english .rt-main .rt-intent { color: #33546d; font-weight: 600; }
.rt-english .rt-main .rt-sec-t {
    color: #33546d; letter-spacing: 3px; font-size: 13px;
    border-bottom: 2px solid #33546d; padding-bottom: 5px;
}
.rt-english .rt-aside {
    width: 236px; flex: 0 0 236px; background: #eef2f6;
    border-left: 4px solid #33546d; padding: 36px 20px; min-height: 1123px;
}
.rt-english .rt-aside .rt-photo { margin: 0 auto 22px; border: 3px solid #33546d; }
.rt-english .rt-aside-sec { margin-bottom: 20px; }
.rt-english .rt-aside-t {
    font-size: 12px; font-weight: 800; letter-spacing: 3px; color: #33546d;
    border-bottom: 1px solid #b7c4d1; padding-bottom: 5px; margin-bottom: 9px;
}
.rt-english .rt-aside-i { font-size: 12px; color: #3d4f61; margin: 5px 0; word-break: break-all; }

/* ═══ 12. 师范暖红 ═══ */
.rt-teacher { background: #fffefe; }
.rt-teacher .rt-head {
    display: flex; gap: 22px; align-items: center;
    padding: 32px 40px 20px; border-bottom: 3px solid #b23b3b;
}
.rt-teacher .rt-head-main { flex: 1; }
.rt-teacher .rt-head h1 { color: #8f2424; letter-spacing: 4px; }
.rt-teacher .rt-intent { color: #b23b3b; }
.rt-teacher .rt-contact { color: #7a6464; }
.rt-teacher .rt-photo { border: 2px solid #b23b3b; }
.rt-teacher .rt-body { padding: 22px 40px 34px; }
.rt-teacher .rt-sec-t {
    color: #8f2424; border-left: 5px solid #b23b3b; padding-left: 10px;
    background: linear-gradient(90deg, #f9ecec, transparent 70%);
    padding-top: 3px; padding-bottom: 3px;
}
.rt-teacher .rt-tags span { background: #faf3ee; border-color: #e8cfc0; color: #8f4a2a; }

/* ═══ 打印导出（PDF）：克隆简历到 .print-root，只输出简历本体 ═══ */
.print-root { display: none; }
@media print {
    @page { size: A4; margin: 0; }
    body.printing > *:not(.print-root) { display: none !important; }
    body.printing .print-root { display: block !important; }
    body.printing .print-root .rp-a4 {
        transform: none !important;
        width: 210mm !important; min-height: 297mm;
        box-shadow: none !important; border-radius: 0 !important;
    }
    body.printing * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
