/* ==========================================================================
 * v108 · 在线简历模板（简历优化）—— 简历全生命周期工作台
 * --------------------------------------------------------------------------
 * 第一部分：三栏工作台（左 200 白 / 中 弹性灰 #F8F9FC / 右 360 白）
 * 第三部分：模板外观全部由 CSS 变量 + data-* 驱动，切换模板绝不重建 DOM
 * 第十二部分：Inter 字体栈 / 20px 主标题 / 16px 卡片标题 / 14px 正文 / 12px 辅助
 * ========================================================================== */
/* ==========================================================================
 * v124 设计 Token：间距 / 圆角 / 阴影 / 色阶 / 动效（全工坊统一基准）
 * · 间距六档 --ra-sp-1..6；圆角三档；阴影三级；中性灰阶 + 品牌紫
 * · 彩色只留给：主按钮 / 当前选中态 / 关键数据 / AI 入口
 * ========================================================================== */
.ra-app, .ra-doc, .ra-modal, .ra-toast, .ra-mask {
  --ra-sp-1: 4px; --ra-sp-2: 8px; --ra-sp-3: 12px; --ra-sp-4: 16px; --ra-sp-5: 24px; --ra-sp-6: 32px;
  --ra-r-card: 12px; --ra-r-ctl: 8px; --ra-r-pill: 999px;
  --ra-sh-1: 0 1px 3px rgba(16, 24, 40, .06);
  --ra-sh-2: 0 4px 12px rgba(16, 24, 40, .10);
  --ra-sh-3: 0 8px 24px rgba(16, 24, 40, .16);
  --ra-c-text: #111827; --ra-c-body: #4B5563; --ra-c-sub: #9CA3AF;
  --ra-c-line: #E5E7EB; --ra-c-bg: #F9FAFB; --ra-c-stage: #F5F6FA;
  --ra-brand: #7C3AED; --ra-brand-deep: #6D28D9; --ra-brand-soft: #F5F3FF; --ra-brand-mid: #DDD6FE;
  --ra-dur: .18s; --ra-ease: cubic-bezier(.4, 0, .2, 1);
}
.ra-app, .ra-app *, .ra-doc, .ra-doc *, .ra-modal *, .ra-term * {
  font-family: var(--font-sans, Inter), -apple-system, BlinkMacSystemFont, 'HarmonyOS Sans SC', 'MiSans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.ra-app *, .ra-doc *, .ra-modal * { box-sizing: border-box; }
.ra-app {
  /* v126 单页双栏：顶条 + 左右双栏，整页不滚动，两栏各自上下滑 */
  display: flex; flex-direction: column;
  height: calc(100vh - 128px);
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  margin: 4px 0 24px;
}
.ra-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(400px, 45%) minmax(0, 1fr); }
.ra-col { min-width: 0; display: flex; flex-direction: column; }
/* 关键：编辑栏是 flex 纵向容器 + overflow-y:auto，子项默认 flex-shrink:1
 * 会被压缩裁切（手风琴内容被拦腰截断、永不出现滚动条），必须禁止收缩 */
.ra-col-edit > *, .ra-col-preview > * { flex: none; }
/* 左：编辑单页（复用 #ra-right 容器 ID） */
.ra-col-edit {
  background: #fff; border-right: 1px solid #E5E7EB;
  overflow-y: auto; padding: 16px 20px 60px;
}
/* 右：A4 预览（复用 #ra-mid 容器 ID），浅灰舞台底，独立上下滚动 */
.ra-col-preview {
  background: var(--ra-c-stage); min-width: 0;
  overflow-y: auto; overflow-x: hidden; padding: 14px 22px 40px;
}
.ra-col-edit::-webkit-scrollbar, .ra-col-preview::-webkit-scrollbar { width: 6px; }
.ra-col-edit::-webkit-scrollbar-thumb, .ra-col-preview::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 99px; }
.ra-col-edit:hover::-webkit-scrollbar-thumb, .ra-col-preview:hover::-webkit-scrollbar-thumb { background: #D1D5DB; }

/* ---------- 通用文字层级 ---------- */
.ra-h-page { font-size: 20px; font-weight: 700; color: #111827; margin: 0; letter-spacing: .2px; }
.ra-h-card { font-size: 16px; font-weight: 600; color: #111827; margin: 0; }
.ra-t-body { font-size: 14px; font-weight: 400; color: #374151; line-height: 1.6; }
.ra-t-sub  { font-size: 12px; font-weight: 500; color: #9CA3AF; line-height: 1.6; }
.ra-sec-lab {
  display: flex; align-items: center; gap: 5px; margin: 16px 0 8px;
  font-size: 12px; font-weight: 600; color: #6B7280; letter-spacing: .4px;
}
.ra-sec-lab:first-child { margin-top: 0; }
.ra-divider { height: 1px; background: #E5E7EB; margin: 14px 0; }

/* ---------- 按钮 ---------- */
.ra-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, .22);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.ra-btn:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124, 58, 237, .34), 0 0 0 4px rgba(167, 139, 250, .14); }
.ra-btn:active { transform: translateY(0); }
.ra-btn:disabled { opacity: .66; cursor: progress; transform: none; }
.ra-btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; box-shadow: none; font-weight: 600; }
.ra-btn-sm:hover { box-shadow: 0 6px 16px rgba(124, 58, 237, .22); }
.ra-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  background: #fff; border: 1px solid #E5E7EB; color: #4B5563; font-size: 13px; font-weight: 600;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.ra-btn-ghost:hover { border-color: #8B5CF6; color: #7C3AED; background: #FBF9FF; }
.ra-btn-ghost.sm { height: 32px; padding: 0 10px; font-size: 12.5px; }
.ra-btn-ghost.on { border-color: #8B5CF6; color: #7C3AED; background: #F5F3FF; }
.ra-btn-block { width: 100%; }
.ra-icobtn {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid #E5E7EB; background: #fff;
  color: #9CA3AF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.ra-icobtn:hover { color: #7C3AED; border-color: #DDD6FE; background: #F5F3FF; }
.ra-icobtn.danger:hover { color: #DC2626; border-color: #FECACA; background: #FEF2F2; }
.ra-icon-inline { vertical-align: -2px; flex: none; }

/* ---------- 表单件 ---------- */
.ra-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.ra-label { font-size: 12px; font-weight: 500; color: #6B7280; display: flex; align-items: center; gap: 5px; }
.ra-input, .ra-ta {
  width: 100%; border: 1px solid #E5E7EB; border-radius: 8px; padding: 8px 10px;
  font-size: 13px; line-height: 1.6; color: #111827; background: #fff; outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ra-ta { resize: vertical; min-height: 62px; }
.ra-input:focus, .ra-ta:focus { border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }
.ra-input::placeholder, .ra-ta::placeholder { color: #C4C8D0; }
.ra-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ra-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* ==========================================================================
 * 左栏：版本管理 + 模板库 + 竞争力排名
 * ========================================================================== */
.ra-ver {
  display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; margin-bottom: 4px; background: #FAFAFB;
}
.ra-ver:hover { background: #F5F3FF; }
.ra-ver.on { background: #F5F3FF; border-color: #DDD6FE; }
.ra-ver-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-ver.on .ra-ver-name { color: #5B21B6; }
.ra-ver-tgt { font-size: 11px; color: #9CA3AF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-ver-main { flex: 1; min-width: 0; cursor: pointer; }
.ra-ver-act { display: flex; gap: 2px; opacity: 0; transition: opacity .15s ease; }
.ra-ver:hover .ra-ver-act, .ra-ver:focus-within .ra-ver-act { opacity: 1; }
.ra-ver.on .ra-ver-act { opacity: .7; }

.ra-tpl-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.ra-tpl-cat {
  font-size: 11.5px; font-weight: 500; padding: 3px 7px; border-radius: 6px; cursor: pointer;
  border: 1px solid #E5E7EB; color: #6B7280; background: #fff;
}
.ra-tpl-cat:hover { border-color: #DDD6FE; color: #7C3AED; }
.ra-tpl-cat.on { background: #7C3AED; border-color: #7C3AED; color: #fff; }
.ra-tpl-card {
  border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px; margin-bottom: 7px; cursor: pointer;
  background: #fff; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  display: flex; gap: 8px; align-items: flex-start;
}
.ra-tpl-info { flex: 1; min-width: 0; }
/* v126.29：极简白底 + 细边框 + 品牌紫 #8B5CF6 悬浮微光（第一部分规格） */
.ra-tpl-card:hover { border-color: #8B5CF6; box-shadow: 0 3px 14px rgba(139, 92, 246, .16); }
.ra-tpl-card.on { border-color: #8B5CF6; background: #FDFCFF; box-shadow: 0 0 0 2px rgba(139, 92, 246, .14), 0 3px 14px rgba(139, 92, 246, .12); }

/* ---- v126.29：自定义模板卡片（上传截图）与「+ 上传」入口 ---- */
.ra-tpl-thumb-img { padding: 0; display: block; }
.ra-tpl-thumb-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 2px; pointer-events: none;
}
.ra-tpl-badge-me {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px;
  font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px;
  color: #fff; background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}
.ra-tpl-upload { border-style: dashed; border-color: #D8D4E8; background: #FCFCFE; }
.ra-tpl-upload:hover { border-color: #8B5CF6; background: #FDFCFF; box-shadow: 0 3px 14px rgba(139, 92, 246, .14); }
.ra-tpl-thumb-up {
  display: flex; align-items: center; justify-content: center;
  background: #F5F3FF; border-color: #DDD6FE;
}
.ra-tpl-up-plus {
  font-style: normal; font-size: 22px; font-weight: 300; color: #8B5CF6; line-height: 1;
}
/* v110：缩略图 = 真实 A4（210:297）等比微缩，清晰呈现模块分隔 */
.ra-tpl-thumb {
  flex: none; width: 72px; aspect-ratio: 210 / 297; background: #fff; border: 1px solid #E6E6EC;
  border-radius: 3px; padding: 6px 5px; display: flex; flex-direction: column; gap: 4px;
  position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.ra-tpl-thumb[data-k="rail"] { display: grid; grid-template-columns: 30fr 70fr; column-gap: 3px; align-content: start; }
.ra-tpl-thumb[data-k="rail"] .ra-th-head { grid-column: 1; grid-row: 1 / span 4; }
.ra-tpl-thumb[data-k="rail"] .ra-th-sec { grid-column: 2; }
.ra-th-band { height: 13px; margin: -6px -5px 1px; background: var(--th-ac, #7C3AED); }
.ra-th-head { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ra-th-name { height: 6px; width: 58%; background: #111827; border-radius: 2px; }
.ra-th-meta { height: 3px; width: 76%; background: #C9CBD4; border-radius: 2px; }
.ra-th-sec { display: flex; flex-direction: column; gap: 3px; }
.ra-th-title { display: block; width: 44%; height: 4px; background: #374151; border-radius: 2px; }
.ra-th-title::after {
  content: ''; display: block; height: 2px; margin-top: 2px; border-radius: 2px;
  background: var(--th-ac, #7C3AED);
}
.ra-th-li { display: flex; align-items: center; gap: 3px; width: 100%; }
.ra-th-li::before {
  content: ''; flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--th-ac, #7C3AED);
}
.ra-th-li i { display: block; height: 3px; flex: none; width: 100%; background: #E4E5EA; border-radius: 2px; }
.ra-th-av { position: absolute; top: 5px; right: 5px; width: 13px; height: 13px; border-radius: 2px; background: #D8D9E0; }
.ra-tpl-name { font-size: 12.5px; font-weight: 600; color: #111827; line-height: 1.35; }
.ra-tpl-meta { font-size: 11px; color: #9CA3AF; margin-top: 2px; line-height: 1.45; }
.ra-tpl-ats { font-size: 11px; color: #B45309; letter-spacing: -.5px; }
.ra-tpl-ats.ok { color: #059669; }

.ra-theme-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.ra-theme-dot {
  height: 22px; border-radius: 6px; cursor: pointer; border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center; transition: transform .14s ease;
}
.ra-theme-dot:hover { transform: scale(1.06); }
.ra-theme-dot.on { border-color: #111827; }

.ra-rank-card {
  margin-top: 4px; border: 1px solid #EDE9FE; background: linear-gradient(135deg, #FBF9FF, #F5F3FF);
  border-radius: 10px; padding: 10px;
}
.ra-rank-num { font-size: 22px; font-weight: 700; color: #7C3AED; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ra-rank-lab { font-size: 11.5px; color: #6B7280; line-height: 1.5; margin-top: 2px; }
.ra-rank-bar { height: 6px; border-radius: 99px; background: #EDE9FE; overflow: hidden; margin-top: 8px; }
.ra-rank-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #7C3AED, #A78BFA); border-radius: 99px; transition: width .5s ease; }

/* ==========================================================================
 * 中栏：求职战略面板 + A4 预览 + ATS 终端
 * ========================================================================== */
.ra-strategy {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; margin-bottom: 14px; overflow: hidden;
}
.ra-str-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none;
}
.ra-str-head:hover { background: #FCFCFE; }
.ra-str-title { font-size: 16px; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 6px; }
.ra-str-hint { font-size: 12px; color: #9CA3AF; margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ra-chev { transition: transform .2s ease; color: #9CA3AF; }
.ra-strategy.open .ra-chev { transform: rotate(180deg); }
.ra-str-body { display: none; padding: 0 14px 14px; border-top: 1px solid #F3F4F6; }
.ra-strategy.open .ra-str-body { display: block; padding-top: 14px; }

.ra-ring-wrap { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; }
.ra-ring { position: relative; width: 132px; height: 132px; cursor: pointer; }
.ra-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ra-ring-num { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ra-ring-lab { font-size: 12px; color: #9CA3AF; margin-top: 4px; }
.ra-ring-more { font-size: 11px; color: #8B5CF6; margin-top: 3px; display: flex; align-items: center; gap: 2px; }
.ra-dim-list { display: flex; flex-direction: column; gap: 7px; }
.ra-dim-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 62px; align-items: center; gap: 8px; font-size: 12px; }
.ra-dim-name { color: #6B7280; display: flex; align-items: center; gap: 4px; }
.ra-dim-bar { height: 8px; background: #F3F4F6; border-radius: 99px; overflow: hidden; }
.ra-dim-fill { display: block; height: 100%; border-radius: 99px; transition: width .5s cubic-bezier(.16,1,.3,1); }
.ra-dim-val { text-align: right; color: #374151; font-weight: 600; font-variant-numeric: tabular-nums; }
.ra-advice { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E5E7EB; }
.ra-advice-item { font-size: 12.5px; color: #4B5563; line-height: 1.7; display: flex; gap: 6px; align-items: flex-start; }
.ra-str-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

.ra-stage-wrap { display: flex; justify-content: center; }
.ra-stage { transform-origin: top center; margin-bottom: 8px; }
.ra-sheet {
  width: 210mm; min-height: 297mm; background: #fff; border-radius: 4px; position: relative;
  /* v124：纸张感——柔和投影，工作台灰底上悬浮 */
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05), 0 8px 30px rgba(16, 24, 40, .10); overflow: hidden;
}
.ra-sheet-pad { position: absolute; inset: 0; pointer-events: none; }
.ra-pguide { position: absolute; left: 0; right: 0; border-top: 1px dashed #C4B5FD; }
.ra-pguide > span { position: absolute; right: 6px; top: 4px; font-size: 11px; color: #8B5CF6; background: #F5F3FF; padding: 1px 6px; border-radius: 4px; }
.ra-zoombar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 12px; color: #9CA3AF; }

/* ---------- ATS 终端视图（第四部分） ---------- */
.ra-term {
  background: #0F172A; border-radius: 10px; padding: 14px 16px; color: #E2E8F0;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.75;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .18);
}
.ra-term-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(148,163,184,.2); margin-bottom: 10px; flex-wrap: wrap; }
.ra-term-title { font-size: 12.5px; color: #94A3B8; letter-spacing: .5px; display: flex; align-items: center; gap: 6px; }
.ra-term-score { margin-left: auto; font-size: 13px; font-weight: 700; }
.ra-term-score.ok { color: #34D399; } .ra-term-score.mid { color: #FBBF24; } .ra-term-score.bad { color: #F87171; }
.ra-term-cursor { display: inline-block; width: 7px; height: 14px; background: #34D399; animation: ra-blink 1.1s steps(2) infinite; vertical-align: -2px; }
@keyframes ra-blink { 50% { opacity: 0; } }
.ra-tline { white-space: pre-wrap; word-break: break-word; }
.ra-tline.t-sec { color: #93C5FD; font-weight: 700; margin-top: 6px; }
.ra-tline.t-name { color: #F8FAFC; font-weight: 700; }
.ra-tline.t-contact, .ra-tline.t-intent { color: #CBD5E1; }
.ra-tline.t-item { color: #F1F5F9; }
.ra-tline.t-bullet { color: #CBD5E1; padding-left: 12px; }
.ra-tline.bad { color: #FCA5A5; background: rgba(248, 113, 113, .12); border-left: 2px solid #F87171; padding-left: 6px; margin-left: -8px; }
.ra-tnote { color: #FCA5A5; font-size: 11.5px; padding-left: 12px; margin-bottom: 2px; display: flex; align-items: center; gap: 4px; }
.ra-term-issues { margin-top: 12px; border-top: 1px solid rgba(148,163,184,.2); padding-top: 10px; }
.ra-tissue { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.7; padding: 3px 0; }
.ra-tissue .lv { font-size: 11px; padding: 0 5px; border-radius: 4px; flex: none; margin-top: 2px; }
.ra-tissue.bad .lv { background: rgba(248,113,113,.2); color: #FCA5A5; }
.ra-tissue.mid .lv { background: rgba(251,191,36,.18); color: #FCD34D; }
.ra-tissue.low .lv { background: rgba(148,163,184,.18); color: #CBD5E1; }
.ra-tissue .tip { color: #94A3B8; }

/* ---------- 中栏引导卡（第十一部分） ---------- */
.ra-guide {
  border: 1px dashed #C4B5FD; background: linear-gradient(135deg, #F9F7FF, #F3F0FF);
  border-radius: 12px; padding: 22px 20px; text-align: center; margin: 0 auto 14px; max-width: 560px;
}
.ra-guide-title { font-size: 16px; font-weight: 600; color: #5B21B6; margin-bottom: 6px; }
.ra-guide-steps { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.ra-guide-step {
  background: #fff; border: 1px solid #EDE9FE; border-radius: 10px; padding: 10px 12px; min-width: 132px;
  text-align: left; font-size: 12.5px; color: #4B5563; line-height: 1.6;
}
.ra-guide-step b { display: block; color: #7C3AED; font-size: 12px; margin-bottom: 3px; }

/* ---------- AI 悬浮按钮（第七部分） ---------- */
#ra-aibtn {
  position: fixed; z-index: 9998; display: none; align-items: center; gap: 4px; cursor: pointer;
  height: 28px; padding: 0 10px; border-radius: 99px; border: 0; color: #fff; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, #7C3AED, #A78BFA); box-shadow: 0 4px 12px rgba(124, 58, 237, .38);
  animation: ra-pop .16s ease both;
}
@keyframes ra-pop { from { opacity: 0; transform: translateY(4px) scale(.94); } to { opacity: 1; transform: none; } }
#ra-aibtn:hover { filter: brightness(1.06); }
.ra-doc [data-ai]:hover { box-shadow: 0 0 0 2px rgba(139, 92, 246, .3); border-radius: 4px; cursor: text; }

/* ==========================================================================
 * 第三部分核心：简历文档（.ra-doc）
 * v110 排版标准（严格对标 offer引力的简历.pdf）
 *   · A4 210×297mm，内边距上下左右各 20mm
 *   · 姓名 28px / 700 / #111827（顶部居中），下方 10px
 *   · 求职意向 + 基本信息 12px / 400 / #4B5563，行高 1.5，| 分隔，居中
 *   · 模块标题 16px / 600 / #111827，上 32px 下 16px，2px 主题色短横线（宽度=标题文字）
 *   · 正文 14px / 400 / #374151，行高 1.7
 *   · 辅助信息（日期/副标题/奖项）13px / 500 / #6B7280
 *   · 经历描述一律 ul>li，4px 主题色圆点，li 间距 6px
 *   · 双栏版式 CSS Grid 严格 30% : 70%
 * 外观完全由 CSS 变量 + data-* 驱动，切换模板只改这两项，DOM 结构恒定
 * ========================================================================== */
.ra-doc {
  --ra-accent: #7C3AED;
  --ra-accent-soft: #F7F5FF;
  --ra-accent-mid: rgba(124, 58, 237, .14);
  --ra-accent-line: rgba(124, 58, 237, .42);
  --ra-name-size: 28px;
  --ra-body-size: 14px;
  --ra-line: 1.7;
  --ra-page-pad: 20mm;
  --ra-sec-mt: 32px;
  --ra-sec-mb: 16px;
  --ra-aux-size: 13px;
  --ra-meta-size: 12px;
  --ra-item-gap: 12px;
  --ra-bullet-size: 4px;
  --ra-li-gap: 6px;
  --ra-radius: 0px;
  position: relative;
  background: #fff;
  color: #374151;
  padding: var(--ra-page-pad);
  font-family: var(--font-sans, Inter), -apple-system, 'HarmonyOS Sans SC', 'MiSans', 'PingFang SC', sans-serif;
  font-size: var(--ra-body-size);
  line-height: var(--ra-line);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.ra-doc[data-align="center"] { text-align: center; }

/* ---------- 页眉：姓名 + 求职意向 + 基本信息（对标 PDF：居中） ---------- */
.ra-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ra-head-main { flex: 1; min-width: 0; text-align: center; }
.ra-name {
  margin: 0; font-size: var(--ra-name-size); font-weight: 700; color: #111827;
  letter-spacing: .5px; line-height: 1.25;
}
.ra-name + .ra-intent, .ra-name + .ra-contacts, .ra-intent + .ra-contacts { margin-top: 10px; }
.ra-intent {
  font-size: var(--ra-meta-size); font-weight: 500; color: #4B5563; line-height: 1.5;
}
.ra-contacts {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 2px 0; margin-top: 10px;
  font-size: var(--ra-meta-size); font-weight: 400; color: #4B5563; line-height: 1.5;
}
.ra-contacts span { white-space: nowrap; }
.ra-c-sep { color: #D1D5DB; margin: 0 8px; }
.ra-photo {
  flex: none; width: 25mm; height: 34mm; overflow: hidden; background: var(--ra-accent-soft);
  border: 1px solid #ECE9F2; display: flex; align-items: center; justify-content: center;
}
.ra-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ra-photo.hide { display: none; }
.ra-doc[data-photo="right"] .ra-photo { order: 2; }
.ra-doc[data-photo="left"] .ra-photo { order: 0; }
.ra-doc[data-photo="none"] .ra-photo { display: none; }
.ra-doc[data-photo="top"] .ra-head { flex-direction: column; align-items: center; gap: 10px; }
.ra-doc[data-photo="top"] .ra-photo { order: 0; width: 30mm; height: 30mm; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ra-accent-line); }
.ra-doc[data-shape="square"] .ra-photo { border-radius: 2px; }
.ra-doc[data-shape="circle"] .ra-photo { border-radius: 50%; }

/* head=center：居中 + 照片置顶 */
.ra-doc[data-head="center"] .ra-head { flex-direction: column; align-items: center; gap: 10px; }
.ra-doc[data-head="center"] .ra-doccontacts { justify-content: center; }
/* head=band：品牌色通栏页眉 */
.ra-doc[data-head="band"] .ra-head {
  margin: calc(var(--ra-page-pad) * -1) calc(var(--ra-page-pad) * -1) 18px;
  padding: 18px var(--ra-page-pad) 16px; background: var(--ra-accent); color: #fff; gap: 14px;
}
.ra-doc[data-head="band"] .ra-name { color: #fff; }
.ra-doc[data-head="band"] .ra-intent { color: rgba(255, 255, 255, .92); }
.ra-doc[data-head="band"] .ra-contacts { color: rgba(255, 255, 255, .85); }
.ra-doc[data-head="band"] .ra-c-sep { color: rgba(255, 255, 255, .45); }
.ra-doc[data-head="band"] .ra-photo { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .16); }
/* head=split：左名右联系方式 */
.ra-doc[data-head="split"] .ra-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px; }
.ra-doc[data-head="split"] .ra-head-main { text-align: left; }
.ra-doc[data-head="split"] .ra-contacts { flex-direction: column; gap: 2px; align-items: flex-end; justify-content: flex-end; }
.ra-doc[data-head="split"] .ra-c-sep { display: none; }
.ra-doc[data-head="split"] .ra-photo { order: 2; grid-column: 2; justify-self: end; grid-row: 1; }

/* ---------- 板块标题（data-sec）：16px/600 + 2px 主题色短横线 ---------- */
.ra-sec { margin-top: var(--ra-sec-mt); break-inside: avoid; page-break-inside: avoid; position: relative; }
.ra-sec-t {
  margin: 0 0 var(--ra-sec-mb);
  font-size: 16px; font-weight: 600; color: #111827; letter-spacing: .2px; text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--ra-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.ra-doc[data-align="center"] .ra-sec-t { text-align: center; }
.ra-doc[data-sec="bar"] .ra-sec-t { padding-left: 10px; border-left: 3px solid var(--ra-accent); color: #111827; }
.ra-doc[data-sec="under"] .ra-sec-t { color: #111827; }
.ra-doc[data-sec="plain"] .ra-sec-t { color: #111827; }
/* pill：胶囊底 + 2px 主题色下划（宽度随标题文字） */
.ra-doc[data-sec="pill"] .ra-sec-t {
  display: inline-block; background: var(--ra-accent-soft); color: var(--ra-accent);
  padding: 2px 12px 3px; border-radius: var(--ra-radius); font-size: 15px;
  text-decoration: none; box-shadow: 0 2px 0 var(--ra-accent); margin-bottom: calc(var(--ra-sec-mb) + 2px);
}
.ra-sec.focus { outline: 2px solid rgba(139, 92, 246, .55); outline-offset: 4px; border-radius: 4px; }

/* ---------- 条目（学校/公司/项目）与辅助信息 ---------- */
.ra-entry { margin-bottom: var(--ra-item-gap); }
.ra-entry:last-child { margin-bottom: 0; }
.ra-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ra-item-main { min-width: 0; }
.ra-item-t { font-size: var(--ra-body-size); font-weight: 600; color: #111827; }
.ra-item-sub { font-size: var(--ra-aux-size); font-weight: 500; color: #6B7280; }
.ra-item-time {
  flex: none; font-size: var(--ra-aux-size); font-weight: 500; color: #6B7280;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ra-item-sub { margin-left: 8px; }

/* ---------- 列表：废弃长段落，一律 ul > li + 4px 主题色圆点 ---------- */
.ra-ul { margin: 0; padding: 0; list-style: none; }
.ra-desc { margin-top: 6px; }
.ra-li { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.ra-li + .ra-li { margin-top: var(--ra-li-gap); }
.ra-li::before {
  content: ''; flex: none;
  width: var(--ra-bullet-size); height: var(--ra-bullet-size); border-radius: 50%;
  background: var(--ra-accent); margin-top: .7em;
}
.ra-li-t { flex: 1; min-width: 0; }
.ra-txt { white-space: pre-wrap; }
.ra-empty-hint { color: #9CA3AF; font-style: normal; }

/* ==========================================================================
 * v114 自我评价：模板决定位置 / 长文本结构化
 * .ra-body 改为弹性列 → 用 order 把「自我评价」在顶部与底部之间无刷新切换
 * （两套内容同时渲染，由 .ra-doc[data-sum] 决定显示哪套，切模板不重建 DOM）
 * ========================================================================== */
.ra-body { display: flex; flex-direction: column; }
.ra-sec-sum { order: 999; }                                  /* 规则 B：默认置底 */
.ra-doc[data-sum="top"] .ra-sec-sum { order: -1; }            /* 规则 A：置顶 */
.ra-doc[data-sum="top"] .ra-sum-bot { display: none; }
.ra-doc[data-sum="bottom"] .ra-sum-top { display: none; }
.ra-doc[data-sum="bottom"] .ra-sec-sum .ra-sec-t { text-align: left; }

.ra-sum { transition: background-color .28s ease, padding .28s ease, max-width .28s ease; }

/* ---- 规则 A：顶部 · 居中 · 限宽 80% · 最多 3 行 ---- */
.ra-doc[data-sum="top"] .ra-sum-top {
  max-width: 80%; margin: 0 auto; text-align: center;
  font-size: 13px; line-height: 1.6; color: #4B5563;
}
.ra-doc[data-sum="top"] .ra-sum-top .ra-sum-p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; white-space: normal; word-break: break-word;
}
/* 第二部分②：列表项一律左对齐 + 主题色圆点 */
.ra-doc[data-sum="top"] .ra-sum-top .ra-sum-ul { text-align: left; display: inline-block; }
.ra-doc[data-sum="top"] .ra-sum-top .ra-li-t { font-size: 13px; line-height: 1.6; color: #4B5563; }

/* ---- 规则 B：底部 · 左对齐 · 浅灰卡片 ---- */
.ra-doc[data-sum="bottom"] .ra-sum-bot {
  text-align: left;
  font-size: 14px; line-height: var(--ra-line); color: #374151;
  background: #F9FAFB; border-radius: 8px; padding: 16px;
}
.ra-doc[data-sum="bottom"] .ra-sum-bot .ra-sum-p { white-space: pre-wrap; }

/* 精简提示（仅顶部规则且被截断时出现） */
.ra-sum-note {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 6px; font-size: 11.5px; font-weight: 500; color: #9CA3AF; line-height: 1.5;
}
.ra-sum-note svg { flex: none; color: #D1D5DB; }
.ra-sum-more {
  font: inherit; color: #8B5CF6; background: none; border: 0; padding: 0 1px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.ra-sum-more:hover { color: #7C3AED; }
/* 顶部规则下的提示居中且不越界；底部规则完整展示，无需提示 */
.ra-doc[data-sum="top"] .ra-sum-note { max-width: 80%; margin-left: auto; margin-right: auto; }
.ra-doc[data-sum="bottom"] .ra-sum-note { display: none; }

/* layout=dense：紧凑履历表 */
.ra-doc[data-layout="dense"] .ra-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 12px; }
.ra-doc[data-layout="dense"] .ra-item { border-bottom: 1px dashed #F1F0F4; padding-bottom: 2px; }
.ra-doc[data-layout="dense"] .ra-entry { margin-bottom: 8px; }

/* layout=rail：CSS Grid 严格 30% : 70%（左栏联系方式，右栏主内容） */
.ra-doc[data-layout="rail"] {
  display: grid; grid-template-columns: 30fr 70fr; column-gap: 8mm; align-items: start;
}
.ra-doc[data-layout="rail"] .ra-head {
  grid-column: 1; grid-row: 1; flex-direction: column; align-items: stretch;
  gap: 12px; margin-bottom: 0;
}
.ra-doc[data-layout="rail"] .ra-head-main { text-align: left; }
.ra-doc[data-layout="rail"] .ra-body { grid-column: 2; grid-row: 1; }
.ra-doc[data-layout="rail"] .ra-contacts { flex-direction: column; align-items: flex-start; gap: 4px; }
.ra-doc[data-layout="rail"] .ra-c-sep { display: none; }
.ra-doc[data-layout="rail"] .ra-name { font-size: calc(var(--ra-name-size) - 4px); }
.ra-doc[data-layout="rail"] .ra-photo { width: 100%; height: auto; aspect-ratio: 25 / 34; }
.ra-doc[data-layout="rail"][data-head="band"] .ra-head {
  margin: 0; padding: 14px 12px; border-radius: var(--ra-radius); background: var(--ra-accent); color: #fff;
}
.ra-doc[data-layout="rail"][data-photo="none"] .ra-photo { display: none; }
/* layout=band */
.ra-doc[data-layout="band"] .ra-head { border-radius: 0; }

/* 照片背景色（第二部分降级方案：手动换底） */
.ra-photo[data-bg="white"] { background: #fff; }
.ra-photo[data-bg="blue"] { background: #3B82F6; }
.ra-photo[data-bg="gray"] { background: #E5E7EB; }
.ra-photo[data-bg=""] { background: #fff; }
.ra-photo[data-fit="contain"] img { object-fit: contain; }

/* ==========================================================================
 * 右栏：JD / 语言 / 模块进度条 / 手风琴表单 / 照片管理
 * ========================================================================== */
.ra-lang {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #E5E7EB;
  border-radius: 8px; overflow: hidden; margin-bottom: 10px;
}
.ra-lang button {
  height: 32px; border: 0; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: #6B7280;
}
.ra-lang button.on { background: #7C3AED; color: #fff; }
/* v126：进度胶囊 + 中/EN 合并一行（省首屏） */
.ra-prog-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.ra-prog-row .ra-progbar { margin-bottom: 0; flex: 1; min-width: 0; }
.ra-prog-row .ra-lang { margin-bottom: 0; flex: none; width: 96px; }
.ra-prog-row .ra-lang button { height: 100%; font-size: 12px; padding: 0; }
.ra-progbar { display: flex; gap: 4px; margin-bottom: 12px; }
.ra-prog {
  flex: 1; text-align: center; font-size: 12px; font-weight: 500; color: #6B7280; cursor: pointer;
  padding: 5px 0; border-radius: 6px; border: 1px solid #E5E7EB; background: #fff; position: relative;
}
.ra-prog:hover { border-color: #DDD6FE; color: #7C3AED; }
.ra-prog.done { color: #059669; border-color: #A7F3D0; background: #F0FDF9; }
.ra-prog.on { border-color: #8B5CF6; color: #7C3AED; box-shadow: 0 0 0 2px rgba(139, 92, 246, .12); }
.ra-prog i { display: block; font-style: normal; font-size: 10px; margin-top: 1px; opacity: .8; }
/* v126：JD 卡默认折叠，点标题开合（已填 JD 自动展开） */
.ra-jdbox { background: #FBF9FF; border: 1px solid #EDE9FE; border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.ra-jd-head { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; min-height: 22px; }
.ra-jd-head b { font-size: 13px; color: #374151; font-weight: 600; }
.ra-jd-head:hover b { color: #7C3AED; }
.ra-jd-head svg { color: #7C3AED; flex: none; }
.ra-jd-head .ra-chev { color: #9CA3AF; margin-left: auto; }
.ra-jdbox.open .ra-jd-head .ra-chev { transform: rotate(180deg); }
.ra-jd-tag { font-size: 10.5px; color: #059669; background: #ECFDF5; border-radius: 99px; padding: 1px 8px; flex: none; }
.ra-jd-sub { font-size: 11px; color: #9CA3AF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-jd-body { display: none; }
.ra-jdbox.open .ra-jd-body { display: block; padding-top: 8px; }
.ra-jd-acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

.ra-acc { border: 1px solid #E5E7EB; border-radius: 10px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.ra-acc-head {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; cursor: pointer; user-select: none;
  font-size: 14px; font-weight: 600; color: #374151;
}
.ra-acc-head:hover { background: #FAFAFB; }
.ra-acc.open .ra-acc-head { border-bottom: 1px solid #F3F4F6; background: #FBF9FF; color: #5B21B6; }
.ra-acc-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.ra-acc-count { font-size: 11.5px; color: #9CA3AF; font-weight: 500; }
.ra-acc.open .ra-chev { transform: rotate(180deg); }
/* v124：手风琴展开高度动画（grid-rows 0fr→1fr），内容恒渲染只裁切 */
.ra-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s var(--ra-ease); }
.ra-acc.open .ra-acc-body { grid-template-rows: 1fr; }
.ra-acc-inner { overflow: hidden; min-height: 0; }
.ra-acc-pad { padding: 12px; }

.ra-itemcard { border: 1px solid #F1F0F4; border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #FCFCFD; }
.ra-itemcard-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ra-itemcard-no { font-size: 11.5px; font-weight: 700; color: #7C3AED; background: #F5F3FF; border-radius: 5px; padding: 1px 6px; }
.ra-add { width: 100%; border: 1px dashed #DDD6FE; background: #FBF9FF; color: #7C3AED; border-radius: 8px; height: 34px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.ra-add:hover { background: #F5F3FF; }

/* 照片管理 */
.ra-photobox { display: flex; gap: 12px; align-items: flex-start; }
.ra-photo-drop {
  width: 84px; height: 112px; border: 1.5px dashed #DDD6FE; border-radius: 8px; cursor: pointer; position: relative;
  background: #FBF9FF; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none;
}
.ra-photo-drop:hover, .ra-photo-drop.over { border-color: #7C3AED; background: #F5F3FF; }
.ra-photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.ra-photo-drop .ph-empty { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #A78BFA; font-size: 11px; }
.ra-photo-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ra-bgbtns { display: flex; gap: 5px; flex-wrap: wrap; }
.ra-bgbtn { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; border: 1px solid #E5E7EB; background: #fff; cursor: pointer; color: #6B7280; display: inline-flex; align-items: center; gap: 4px; }
.ra-bgbtn:hover { border-color: #8B5CF6; color: #7C3AED; }
.ra-bgbtn i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.ra-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6B7280; cursor: pointer; }
.ra-switch input { accent-color: #7C3AED; }

/* 关键词热力图 */
.ra-kw-wrap { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ra-kw { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.ra-kw.ok { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.ra-kw.miss { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.ra-kw.miss:hover { background: #FEE2E2; }

/* ==========================================================================
 * 导入已有简历面板（白色卡片 + 品牌紫极细边框 + 圆角 12 + 平滑展开）
 * 零失败：无红色警示、无侵入式弹窗；失败只表现为「文本框留空等你粘贴」
 * ========================================================================== */
.ra-imp {
  background: #fff; border: 1px solid #EDE9FE; border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(76, 29, 149, .04);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ra-imp:hover { border-color: #DDD6FE; box-shadow: 0 2px 8px rgba(76, 29, 149, .07); }
.ra-imp.open { border-color: #C4B5FD; box-shadow: 0 4px 14px rgba(124, 58, 237, .10); }

.ra-imp-trigger {
  width: 100%; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: 0; padding: 11px 12px; text-align: left; color: #1F2937;
  font-family: inherit; font-size: 14px; font-weight: 600;
}
.ra-imp-trigger svg { color: #8B5CF6; flex: none; }
.ra-imp-tt { flex: 1; min-width: 0; }
.ra-imp-sub { font-style: normal; font-size: 12px; font-weight: 500; color: #9CA3AF; }
.ra-imp-caret { display: flex; color: #9CA3AF; transition: transform .25s ease; }
.ra-imp.open .ra-imp-caret { transform: rotate(180deg); }

.ra-imp-body {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .34s cubic-bezier(.4, 0, .2, 1), opacity .26s ease;
}
.ra-imp.open .ra-imp-body { opacity: 1; }
.ra-imp-inner { padding: 4px 14px 14px; border-top: 1px solid #F4F2FB; }

.ra-imp-drop {
  margin-top: 12px; padding: 20px 10px; text-align: center; cursor: pointer;
  border: 1.5px dashed #DDD6FE; border-radius: 12px; background: #FCFBFF;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ra-imp-drop svg { color: #8B5CF6; margin-bottom: 4px; }
.ra-imp-drop:hover, .ra-imp-drop.over { border-color: #8B5CF6; background: #F7F5FF; transform: translateY(-1px); }
.ra-imp-drop-t { font-size: 14px; font-weight: 600; color: #374151; }
.ra-imp-drop-s { font-size: 12px; font-weight: 500; color: #9CA3AF; margin-top: 2px; }

.ra-imp-paste {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px;
  padding: 7px 8px; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 500;
  color: #8B5CF6; background: #FBF9FF; border: 1px solid #EDE9FE; border-radius: 8px;
  transition: background .16s ease, border-color .16s ease;
}
.ra-imp-paste:hover { background: #F4F0FF; border-color: #DDD6FE; }
.ra-imp-paste svg { color: #8B5CF6; }
.ra-imp-note { margin-top: 8px; font-size: 12px; font-weight: 500; color: #8B5CF6; line-height: 1.6; }
.ra-imp-file {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 9px;
  background: #F7F5FF; border: 1px solid #EDE9FE; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: #4C1D95; word-break: break-all;
}
.ra-imp-file svg { flex: none; color: #8B5CF6; }

.ra-imp-prog { margin-top: 10px; }
.ra-imp-prog-bar { height: 4px; border-radius: 99px; background: #F0EDFB; overflow: hidden; }
.ra-imp-prog-bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #A78BFA, #8B5CF6);
  animation: ra-imp-scan 1.5s linear forwards;
}
.ra-imp-prog.done .ra-imp-prog-bar i { animation: none; width: 100%; }
@keyframes ra-imp-scan { from { width: 0; } to { width: 88%; } }
.ra-imp-prog-tx { margin-top: 5px; font-size: 12px; font-weight: 500; color: #6B7280; }
.ra-imp-prog.done .ra-imp-prog-tx { color: #7C3AED; }

/* ---- v113 傻瓜式引导：常驻粘贴区 + 空状态提示 + 按钮状态联动 ---- */
.ra-imp-zone {
  margin-top: 12px; padding: 12px; border: 1px solid #EDE9FE; border-radius: 12px;
  background: #FCFBFF;
}
.ra-imp-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.ra-imp-bar-t {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: #4C1D95;
}
.ra-imp-demo {
  font-family: inherit; font-size: 12px; font-weight: 500; color: #8B5CF6;
  background: none; border: 0; padding: 2px 5px; border-radius: 6px; cursor: pointer;
  text-decoration: underline; text-decoration-color: #DDD6FE; text-underline-offset: 3px;
  transition: background .16s ease, color .16s ease;
  white-space: nowrap;
}
.ra-imp-demo:hover { background: #F4F0FF; color: #7C3AED; }

.ra-imp-clip {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer;
  border: 0; border-radius: 10px; letter-spacing: .3px;
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, .20);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.ra-imp-clip:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(124, 58, 237, .30), 0 0 0 4px rgba(167, 139, 250, .14); }
.ra-imp-clip:active { transform: translateY(0); }

.ra-imp-tawrap { position: relative; margin-top: 10px; }
.ra-imp-ta {
  min-height: 250px; padding: 12px 12px 32px; font-size: 13px; line-height: 1.75;
  border: 1.5px solid #E9E4FB; border-radius: 10px; background: #fff;
}
.ra-imp-tawrap:focus-within .ra-imp-ta { border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }

.ra-imp-empty {
  position: absolute; left: 1px; right: 1px; top: 1px; bottom: 1px; pointer-events: none; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; text-align: center; border-radius: 10px;
  background: rgba(252, 251, 255, .97);
  transition: opacity .22s ease;
}
.ra-imp-empty.hide, .ra-imp-tawrap:focus-within .ra-imp-empty { opacity: 0; visibility: hidden; }
.ra-imp-empty b { font-size: 14px; font-weight: 700; color: #6D28D9; line-height: 1.6; }
.ra-imp-empty span { font-size: 12px; font-weight: 500; color: #9CA3AF; line-height: 1.6; }

.ra-imp-count {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  font-size: 11.5px; font-weight: 600; color: #9CA3AF; background: rgba(255,255,255,.94);
  padding: 2px 8px; border-radius: 99px; border: 1px solid #F3F4F6;
}
.ra-imp-count.ok { color: #059669; background: #ECFDF5; border-color: #A7F3D0; }

.ra-imp-tip {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 9px; padding: 7px 9px;
  background: #FFFBEB; border: 1px solid #FEF3C7; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: #92400E; line-height: 1.6;
}
.ra-imp-tip svg { flex: none; color: #F59E0B; margin-top: 2px; }
.ra-imp-tip b { color: #B45309; }

.ra-imp-acts { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.ra-imp-acts .ra-btn { justify-content: center; }
.ra-imp-acts > * { flex: 1; }
.ra-imp-acts [disabled] { opacity: .5; cursor: not-allowed; }
.ra-imp-split { height: 42px; font-size: 14px; letter-spacing: .3px; }
.ra-imp-split.off, .ra-imp-split[disabled] {
  background: #F1F2F4 !important; color: #9AA1AC !important;
  box-shadow: none !important; opacity: 1 !important; filter: none !important; transform: none !important;
  cursor: not-allowed;
}

/* 引导卡第四步中的「立即导入」入口 */
.ra-guide-imp {
  width: 100%; text-align: left; cursor: pointer; font-family: inherit; position: relative;
  background: linear-gradient(135deg, #FFFFFF, #FBF9FF);
  border-color: #DDD6FE; box-shadow: 0 1px 3px rgba(124, 58, 237, .06);
}
.ra-guide-imp:hover { border-color: #8B5CF6; background: #F9F7FF; }
.ra-guide-imp i {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 12px; font-weight: 600; color: #8B5CF6;
  background: #F3EEFF; border-radius: 99px; padding: 2px 10px;
}


/* ==========================================================================
 * 弹窗：AI对比 / 照片裁剪 / 面试包 / 导出预览
 * ========================================================================== */
.ra-mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .46); z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(2px);
}
.ra-modal {
  background: #fff; border-radius: var(--ra-r-card); box-shadow: var(--ra-sh-3);
  width: 100%; max-width: 720px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.ra-modal.wide { max-width: 960px; }
.ra-modal-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #F3F4F6; }
.ra-modal-title { font-size: 16px; font-weight: 600; color: #111827; flex: 1; display: flex; align-items: center; gap: 7px; }
.ra-modal-body { padding: 16px 18px; overflow: auto; flex: 1; }
.ra-modal-foot { padding: 12px 18px; border-top: 1px solid #F3F4F6; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.ra-diff { border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #fff; }
.ra-diff-row { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 8px; align-items: start; }
.ra-diff-box { border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.6; }
.ra-diff-box.before { background: #FEF2F2; color: #7F1D1D; border: 1px solid #FECACA; }
.ra-diff-box.after { background: #F0FDF9; color: #065F46; border: 1px solid #A7F3D0; }
.ra-diff-lab { font-size: 11.5px; font-weight: 600; margin-bottom: 4px; opacity: .75; }
.ra-diff-arrow { display: flex; align-items: center; justify-content: center; color: #9CA3AF; padding-top: 24px; }
.ra-warnbubble {
  margin-top: 8px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  border-radius: 8px; padding: 7px 10px; font-size: 12.5px; line-height: 1.6; display: flex; gap: 6px; align-items: flex-start;
}
.ra-changes { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: #6B7280; line-height: 1.7; }

.ra-crop-stage {
  background: #F3F4F6; border-radius: 10px; height: 340px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none;
}
.ra-crop-stage.canvas-mode { cursor: default; }
.ra-crop-stage img { position: absolute; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.ra-crop-mask { position: absolute; pointer-events: none; box-shadow: 0 0 0 999px rgba(17, 24, 39, .5); }
.ra-crop-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: #6B7280; }
.ra-crop-row input[type="range"] { flex: 1; accent-color: #7C3AED; }

.ra-pack-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ra-pack-card { border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #FCFCFD; }
.ra-pack-t { font-size: 14px; font-weight: 600; color: #5B21B6; margin-bottom: 6px; }
.ra-pack-s { font-size: 14px; line-height: 1.75; color: #374151; white-space: pre-wrap; }
.ra-pack-q { font-size: 14px; font-weight: 600; color: #111827; }
.ra-pack-tips { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: #6B7280; line-height: 1.75; }

.ra-print-preview { background: #F3F4F6; border-radius: 10px; padding: 16px; overflow: auto; max-height: 56vh; }
.ra-print-preview .ra-sheet { margin: 0 auto 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.ra-exp-note { font-size: 12.5px; color: #6B7280; line-height: 1.7; background: #FBF9FF; border: 1px solid #EDE9FE; border-radius: 8px; padding: 10px 12px; }
.ra-exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ra-exp-file { font-size: 13px; color: #374151; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; }

/* ---------- 拖拽 / 动画 ---------- */
.ra-fade-in { animation: ra-fade .34s ease both; }
@keyframes ra-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* v124 统一反馈：顶部居中胶囊 toast，成功绿 / 信息蓝 / 警告黄，2s 自动退场 */
.ra-toast {
  position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 10050;
  display: flex; align-items: center; gap: 9px; max-width: min(560px, 90vw);
  background: #fff; color: var(--ra-c-text); border: 1px solid var(--ra-c-line);
  padding: 10px 18px; border-radius: var(--ra-r-pill); font-size: 13px; font-weight: 500; line-height: 1.5;
  box-shadow: var(--ra-sh-3); animation: ra-toast-in .2s var(--ra-ease) both;
}
.ra-toast::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #059669; }
.ra-toast.info::before { background: #3B82F6; }
.ra-toast.warn::before { background: #F59E0B; }
.ra-toast.out { opacity: 0; transform: translateX(-50%) translateY(-6px); transition: opacity .18s ease, transform .18s ease; }
@keyframes ra-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.ra-spin { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: ra-spin .7s linear infinite; }
@keyframes ra-spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1360px) {
  .ra-cols { grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .ra-app { border-radius: 10px; }
  .ra-col-preview { padding: 14px 10px 24px; }
  .ra-ring-wrap { grid-template-columns: 1fr; justify-items: center; }
  .ra-exp-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
 * 第十部分：打印（100% 还原预览；文本层可选中，供 ATS 解析）
 * 站点全局规则只豁免 #print-root，故导出前把 A4 本体克隆进 #print-root
 * ========================================================================== */
@media print {
  @page { size: A4; margin: 0; }
  #print-root, #print-root * { visibility: visible !important; }
  #print-root .ra-sheet {
    width: 210mm !important; min-height: 297mm !important; margin: 0 !important;
    box-shadow: none !important; border-radius: 0 !important; overflow: hidden;
  }
  #print-root .ra-pguide, #print-root .ra-sheet-pad { display: none !important; }
  #print-root .ra-sec { break-inside: avoid; page-break-inside: avoid; }
  #print-root .ra-item, #print-root .ra-li, #print-root .ra-entry { break-inside: avoid; page-break-inside: avoid; }
  /* v123：标题跟内容走（不孤行）、页眉整块不拆、条目组尽量同页 */
  #print-root .ra-sec-t { break-after: avoid; page-break-after: avoid; }
  #print-root .ra-head { break-inside: avoid; page-break-inside: avoid; }
  #print-root .ra-entry, #print-root .ra-desc { break-inside: avoid; page-break-inside: avoid; }
  /* v123 高保真：不再硬套 padding/字号——沿用 .ra-doc 的 CSS 变量
   * （--ra-page-pad / --ra-body-size / --ra-line / data-font 字体），与预览完全一致 */
  #print-root .ra-doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root [contenteditable] { outline: none !important; background: none !important; }
}

/* ==========================================================================
 * v7：上传即改 —— 从 0 新建入口 / 导入警示条 / 字段映射确认页 / AI 引导
 * ========================================================================== */
.ra-newbie { margin-top: 8px; }
.ra-newbie .ra-imp-trigger { width: 100%; }

.ra-imp-warn {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 8px 0 0; padding: 9px 11px; border-radius: 10px;
  background: #FFF7E8; border: 1px solid #FFD591;
  color: #AD6800; font-size: 12px; font-weight: 500; line-height: 1.6;
}
.ra-imp-warn svg { flex: none; margin-top: 2px; color: #D48806; }

.ra-map { max-width: 940px; width: 94vw; }
.ra-map .ra-modal-body { overflow: visible; }
.ra-map-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px; }
.ra-map-col-t { font-size: 12px; font-weight: 700; color: #6B7280; margin-bottom: 6px; }
.ra-map-raw { width: 100%; min-height: 420px; resize: vertical; font-size: 12px; line-height: 1.7; box-sizing: border-box; }
.ra-map-scroll { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.ra-map-sec { border: 1px solid #ECECF1; border-radius: 10px; padding: 10px; margin-bottom: 10px; background: #FCFCFE; }
.ra-map-sec-t { font-size: 12px; font-weight: 700; color: #8B5CF6; margin-bottom: 8px; }
.ra-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.ra-map-f { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 500; color: #9CA3AF; }
.ra-map-f .ra-input, .ra-map-f .ra-ta { font-size: 12px; }
.ra-map-item { padding: 8px 0; border-top: 1px dashed #E5E5EC; }
.ra-map-item:first-of-type { border-top: none; padding-top: 0; }

.ra-scn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ra-scn {
  text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid #E6E6F0; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ra-scn:hover { border-color: #8B5CF6; box-shadow: 0 4px 14px rgba(139, 92, 246, .14); }
.ra-scn b { display: block; font-size: 14px; color: #1F2937; margin-bottom: 4px; }
.ra-scn span { font-size: 12px; color: #9CA3AF; line-height: 1.5; }

@media (max-width: 720px) {
  .ra-map-cols { grid-template-columns: 1fr; }
  .ra-map-raw { min-height: 160px; }
  .ra-map-scroll { max-height: 300px; }
  .ra-scn-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
 * v122 模板体验升级：真实缩略图 / 为你推荐 / 自定义取色 / 超页提示 / 版式面板 / 主题字体
 * ========================================================================== */

/* ---- 真实缩略图：容器只负责裁切，内容 = 210mm 真实 A4 等比微缩 ---- */
.ra-tpl-thumb { padding: 0; display: block; }
.ra-thumb-doc {
  width: 210mm; min-height: 0; transform-origin: top left; pointer-events: none;
  box-shadow: none; border-radius: 0;
}
.ra-thumb-doc .ra-pguide { display: none; }
.ra-tpl-rec {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px;
  font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px;
  color: #fff; background: linear-gradient(135deg, #F59E0B, #F97316);
}

/* ---- 为你推荐 ---- */
.ra-rec-row {
  border: 1px solid #FDE68A; background: linear-gradient(135deg, #FFFBEB, #FFF7ED);
  border-radius: 10px; padding: 8px; margin-bottom: 10px;
}
.ra-rec-lab {
  display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: #B45309; margin-bottom: 7px;
}
.ra-rec-why { font-size: 10.5px; font-weight: 400; color: #D97706; margin-left: auto; }
.ra-rec-row .ra-tpl-card { background: #fff; margin-bottom: 6px; }
.ra-rec-row .ra-tpl-card:last-of-type { margin-bottom: 0; }

/* ---- 自定义取色点 ---- */
.ra-theme-custom { position: relative; overflow: hidden; }
.ra-theme-custom span {
  font-size: 14px; font-weight: 700; color: #fff; line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.ra-theme-custom.on { border-color: #111827; }

/* ---- 超页提示条（一页纸管理） ---- */
.ra-pagetip {
  align-items: center; gap: 8px; flex-wrap: wrap;
  border: 1px solid #FCD34D; background: #FFFBEB; color: #92400E;
  border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px;
}
.ra-pagetip svg { flex: none; color: #D97706; }
.ra-pagetip-txt { flex: 1; min-width: 180px; font-weight: 500; line-height: 1.5; }
.ra-pagetip-x { color: #B45309; }

/* ---- 版式自定义面板 ---- */
.ra-pmode-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ra-pmode {
  font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid #E5E7EB; color: #4B5563; background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.ra-pmode:hover { border-color: #C4B5FD; color: #7C3AED; }
.ra-pmode.on { border-color: #7C3AED; background: #F5F3FF; color: #5B21B6; font-weight: 600; }
.ra-font-btn { font-size: 14px; padding: 8px 14px; }
.ra-blk-list { display: flex; flex-direction: column; gap: 5px; }
.ra-blk {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid #ECECF1; border-radius: 8px; background: #fff; cursor: grab;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ra-blk:hover { border-color: #C4B5FD; }
.ra-blk.dragging { opacity: .45; border-style: dashed; cursor: grabbing; }
.ra-blk.hid { background: #F9FAFB; }
.ra-blk.hid .ra-blk-name { color: #9CA3AF; text-decoration: line-through; }
.ra-blk-grip { color: #D1D5DB; display: flex; align-items: center; }
.ra-blk-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: #374151; }

/* ---- 主题字体：预览 / 打印 / 图片 PDF 共用（克隆节点带 data-font，CSS 全局生效） ---- */
.ra-doc[data-font="sans"] {
  font-family: 'Noto Sans SC', 'Source Han Sans SC', 'Source Han Sans CN', var(--font-sans, Inter), -apple-system,
    'HarmonyOS Sans SC', 'MiSans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.ra-doc[data-font="serif"] {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif CN', 'Songti SC', 'SimSun', serif;
}
.ra-doc[data-font="kai"] {
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', '楷体', serif;
}

/* ==========================================================================
 * v122 排版细节回归修复（12 套模板通用）
 * ========================================================================== */
/* ① 日期右对齐不换行（flex 布局下防止长公司名挤压换行） */
.ra-item-time { text-align: right; margin-left: auto; padding-left: 8px; }
/* ② 板块体内部末尾不留多余间距（条目间距统一由 --ra-item-gap 控制） */
.ra-sec-b > *:last-child { margin-bottom: 0; }
/* ③ 联系方式不拥挤：行距与分隔符留白加大 */
.ra-contacts { gap: 4px 0; line-height: 1.65; }
.ra-c-sep { margin: 0 10px; }
/* ④ 通栏页眉防空塌：无姓名/联系方式时保留最小高度，色带不断裂 */
.ra-doc[data-head="band"] .ra-head { min-height: 20mm; align-items: center; }
/* ⑤ 双栏底部对齐：左右栏同高拉伸，栏底对齐 */
.ra-doc[data-layout="rail"] { align-items: stretch; }
.ra-doc[data-layout="rail"] .ra-body { display: flex; flex-direction: column; }

/* ==========================================================================
 * v123 编辑体验升级：预览即编辑 / bullet 编辑器 / 分步引导 / 折叠 / 移动端 / 保存状态
 * ========================================================================== */

/* ---- 预览即编辑：模块 hover 细边框 + 点击定位 ---- */
#ra-doc .ra-sec { cursor: pointer; }
#ra-doc .ra-sec:hover { outline: 1.5px dashed #C4B5FD; outline-offset: 3px; border-radius: 3px; }
#ra-doc .ra-sec [data-inline] { cursor: text; }
#ra-doc [data-inline] {
  outline: 1.5px dashed transparent; outline-offset: 2px; border-radius: 2px;
  transition: outline-color .15s ease, background .15s ease; min-width: 12px; min-height: 1em;
  display: inline-block;
}
#ra-doc [data-inline]:hover { outline-color: #DDD6FE; background: rgba(247, 245, 255, .65); }
#ra-doc [data-inline]:focus {
  outline-color: #8B5CF6; background: #FAFAFF; cursor: text;
}
.ra-thumb-doc [data-inline], .ra-print-clone [data-inline] { pointer-events: none; }
/* 右栏字段聚焦闪烁提示 */
@keyframes ra-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } 35% { box-shadow: 0 0 0 3px rgba(139, 92, 246, .45); } }
.ra-flash { animation: ra-flash 1.3s ease 1; border-radius: 6px; }

/* ---- bullet 逐条编辑器 ---- */
.ra-bl-list { display: flex; flex-direction: column; gap: 6px; }
.ra-bl-row {
  display: flex; align-items: flex-start; gap: 6px; padding: 4px 6px 4px 4px;
  border: 1px solid #F0F0F5; border-radius: 8px; background: #FCFCFE;
  transition: border-color .15s ease, opacity .15s ease;
}
.ra-bl-row:hover { border-color: #DDD6FE; }
.ra-bl-row.dragging { opacity: .45; border-style: dashed; }
.ra-bl-grip { color: #C9CBD4; cursor: grab; display: flex; align-items: center; padding-top: 6px; }
.ra-bl-grip:active { cursor: grabbing; }
.ra-bl-cell { flex: 1; min-width: 0; }
.ra-bl-ta {
  width: 100%; min-height: 30px; box-sizing: border-box; resize: none; overflow: hidden;
  font-size: 12.5px; line-height: 1.55; padding: 6px 8px; border-radius: 6px;
  border: 1px solid transparent; background: transparent; color: #374151; font-family: inherit;
}
.ra-bl-ta:focus { outline: none; border-color: #C4B5FD; background: #fff; }
.ra-bl-del { opacity: 0; transition: opacity .15s ease; flex: none; }
.ra-bl-row:hover .ra-bl-del { opacity: 1; }
.ra-bl-add {
  margin-top: 6px; font-size: 12px; color: #7C3AED; background: none; border: 1px dashed #DDD6FE;
  border-radius: 8px; padding: 5px 10px; cursor: pointer; width: 100%;
}
.ra-bl-add:hover { background: #F5F3FF; border-color: #A78BFA; }
.ra-bl-hints { display: flex; gap: 5px; flex-wrap: wrap; margin: 3px 0 0 2px; }
.ra-bl-chip {
  font-size: 10.5px; line-height: 1; padding: 4px 7px; border-radius: 6px; font-weight: 500;
  border: 1px solid transparent; display: inline-flex; align-items: center; gap: 2px;
}
.ra-bl-chip.verb { color: #1D4ED8; background: #EFF6FF; border-color: #BFDBFE; cursor: pointer; }
.ra-bl-chip.verb:hover { background: #DBEAFE; }
.ra-bl-chip.verb-tip { color: #93C5FD; background: #F0F7FF; border-color: #DBEAFE; }
.ra-bl-chip.quant { color: #B45309; background: #FFFBEB; border-color: #FDE68A; }
.ra-bl-chip.trim { color: #9F1239; background: #FFF1F2; border-color: #FECDD3; }

/* ---- 分步引导 ---- */
.ra-guide { max-width: 560px; }
.ra-guide-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px 0; }
.ra-guide-title { font-size: 16px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 6px; }
.ra-guide-prog { margin-left: auto; display: flex; gap: 5px; }
.ra-guide-prog i { width: 26px; height: 4px; border-radius: 99px; background: #E5E7EB; }
.ra-guide-prog i.on { background: #A78BFA; }
.ra-guide-prog i.cur { background: #7C3AED; box-shadow: 0 0 0 2px rgba(124, 58, 237, .18); }
.ra-guide .ra-modal-body { padding-top: 12px; }
.ra-g-tplgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ra-g-tplcard {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 6px;
  border: 1.5px solid #ECECF1; border-radius: 10px; cursor: pointer; background: #fff;
  font-size: 11.5px; font-weight: 500; color: #4B5563;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ra-g-tplcard:hover { border-color: #C4B5FD; }
.ra-g-tplcard.on { border-color: #7C3AED; box-shadow: 0 0 0 2px rgba(124, 58, 237, .12); color: #5B21B6; }
.ra-g-tplcard .ra-tpl-thumb { width: 100%; flex: none; aspect-ratio: 210 / 297; }

/* ---- 双栏折叠（v126 互斥）：折编辑栏→预览最大化；折预览栏→编辑最大化 ---- */
.ra-app.cl-l .ra-cols { grid-template-columns: 0 minmax(0, 1fr); }
.ra-app.cl-r .ra-cols { grid-template-columns: minmax(0, 1fr) 0; }
/* 注意：不能用 display:none —— 那会把该栏从 grid 自动定位中移除，
 * 另一栏被挤进 0px 的槽位（v123 实测）。必须保留栅格槽位，用 visibility + 尺寸清零折叠 */
.ra-app.cl-l .ra-col-edit, .ra-app.cl-r .ra-col-preview {
  visibility: hidden; width: 0; min-width: 0; padding: 0; border: 0; overflow: hidden;
}
.ra-collapse-btn { border-color: #E5E7EB; }
.ra-collapse-btn:hover { border-color: #C4B5FD; color: #7C3AED; }

/* ==========================================================================
 * v126 单页双栏：顶条（版本/模板/主题/竞争力上移）+ 分数胶囊 + 悬浮缩放条
 * ========================================================================== */
.ra-top {
  position: relative; z-index: 35; flex: none;
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 6px 12px;
  border-bottom: 1px solid var(--ra-c-line); background: #fff;
}
.ra-top-name { display: flex; flex-direction: column; justify-content: center; min-width: 0; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.ra-top-name:hover { background: var(--ra-c-bg); }
.ra-top-name .ra-h-page { font-size: 14px; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-top-name .ra-t-sub { font-size: 11px; white-space: nowrap; }
.ra-top-sep { width: 1px; height: 20px; background: var(--ra-c-line); flex: none; }
.ra-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
/* 顶条内的版本管理：胶囊按钮 + 绝对定位浮层 */
.ra-top .ra-verbar { position: relative; margin: 0; flex: none; }
.ra-top .ra-verbar-cur { height: 30px; border-radius: var(--ra-r-pill); font-size: 12.5px; }
.ra-top .ra-verdrop { position: absolute; top: 36px; left: 0; width: 280px; margin: 0; }
/* 弹出面板胶囊按钮 */
.ra-tpop-wrap { position: relative; flex: none; }
.ra-tpill {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px;
  border: 1px solid var(--ra-c-line); border-radius: var(--ra-r-pill); background: #fff;
  font-size: 12.5px; font-weight: 500; color: var(--ra-c-body); cursor: pointer; white-space: nowrap;
  transition: border-color var(--ra-dur) var(--ra-ease), color var(--ra-dur) ease, background var(--ra-dur) ease;
}
.ra-tpill svg { color: var(--ra-brand); flex: none; }
.ra-tpill .ra-chev { color: var(--ra-c-sub); }
.ra-tpill:hover { border-color: var(--ra-brand-mid); color: var(--ra-brand); }
.ra-tpill.on { border-color: var(--ra-brand-mid); color: var(--ra-brand); background: var(--ra-brand-soft); }
.ra-tpill.on .ra-chev { transform: rotate(180deg); }
/* 弹出面板本体 */
.ra-tpop {
  position: absolute; top: 36px; left: 0; z-index: 40; display: none;
  width: 300px; padding: 12px; background: #fff;
  border: 1px solid var(--ra-c-line); border-radius: var(--ra-r-card);
  box-shadow: var(--ra-sh-3);
  max-height: min(560px, calc(100vh - 200px)); overflow-y: auto;
}
.ra-tpop.open { display: block; }
.ra-tpop.wide { width: 640px; max-width: calc(100vw - 420px); }
/* 模板面板：卡片 2 列平铺（原左栏为单列纵向） */
.ra-tpop.wide #ra-tpllist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ra-tpop.wide .ra-rec-row { margin-bottom: 10px; }
.ra-tpop .ra-tpl-cats { margin-bottom: 8px; }
/* 竞争力面板：隐藏外层迷你胶囊（面板本身即详情） */
.ra-tpop .ra-rank-card { border: 0; margin: 0; padding: 0; }
.ra-tpop .ra-rank-mini { display: none; }
.ra-tpop .ra-rank-body { display: block; }
/* 预览栏顶部：战略面板收成胶囊条（点击展开完整报告） */
#ra-strategy .ra-str-head { padding: 7px 12px; gap: 10px; min-height: 0; }
.ra-pv-caps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ra-pv-cap {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px;
  border-radius: var(--ra-r-pill); background: var(--ra-c-bg);
  font-size: 12px; color: var(--ra-c-body); white-space: nowrap;
}
.ra-pv-cap b { color: var(--ra-c-text); font-weight: 600; }
/* 悬浮缩放条：预览滚动时钉在底部中央 */
.ra-zoombar {
  position: sticky; bottom: 10px; z-index: 6;
  width: fit-content; margin: 12px auto 0;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--ra-c-line);
  border-radius: var(--ra-r-pill); padding: 4px 12px; box-shadow: var(--ra-sh-2);
}

/* ---- 自动保存状态 ---- */
.ra-savest { color: #059669; font-weight: 500; }
.ra-savest.fail { color: #DC2626; }

/* ---- 移动端（<768px）只读模式：保模板选择 / 预览 / 导出，藏精细编辑 ---- */
.ra-mobile-tip { display: none; }
@media (max-width: 768px) {
  .ra-mobile-tip {
    display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
    border: 1px solid #FDE68A; background: #FFFBEB; color: #92400E;
    border-radius: 10px; padding: 8px 12px; font-size: 12.5px; line-height: 1.5;
  }
  .ra-mobile-tip svg { flex: none; color: #D97706; }
  .ra-app { height: auto; max-height: none; }
  .ra-cols { grid-template-columns: 1fr; }
  .ra-col-edit { display: none !important; }     /* 只读：精细编辑在电脑端 */
  .ra-col-preview { max-height: none; overflow: visible; }
  .ra-top { flex-wrap: wrap; height: auto; row-gap: 6px; padding: 8px 10px; }
  .ra-top .ra-tpop.wide { width: min(92vw, 620px); }
  .ra-collapse-btn { display: none; }
  #ra-doc [data-inline] { pointer-events: none; }  /* 只读：内联编辑关闭 */
  #ra-doc .ra-sec { cursor: default; }
  #ra-doc .ra-sec:hover { outline: none; }
}

/* ==========================================================================
 * v124 视觉与交互质感升级
 * 左栏版本行 + 分区卡片折叠 / 排名胶囊 / 中栏工具条分组 / 空态插画 / 微交互
 * ========================================================================== */

/* ---- ① 左栏：版本管理收为顶部一行 ---- */
.ra-verbar { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ra-verbar-cur {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 10px; border-radius: var(--ra-r-ctl); cursor: pointer;
  border: 1px solid var(--ra-c-line); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ra-c-text);
  transition: border-color var(--ra-dur) var(--ra-ease), box-shadow var(--ra-dur) var(--ra-ease);
}
.ra-verbar-cur:hover { border-color: var(--ra-brand-mid); box-shadow: var(--ra-sh-1); }
.ra-verbar-cur svg:first-child { color: var(--ra-brand); flex: none; }
.ra-verbar-cur .ra-chev { color: var(--ra-c-sub); }
.ra-verbar-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ra-verbar-tgt {
  display: flex; align-items: center; gap: 4px; margin: 0 2px 8px; cursor: pointer;
  font-size: 11.5px; color: var(--ra-c-sub); line-height: 1.5;
  border-radius: 6px; padding: 1px 4px; transition: color var(--ra-dur) ease, background var(--ra-dur) ease;
}
.ra-verbar-tgt:hover { color: var(--ra-brand); background: var(--ra-brand-soft); }
.ra-verbar-tgt svg { flex: none; }
.ra-verbar-tgt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 版本下拉：浮层卡片 */
.ra-verdrop {
  position: relative; z-index: 30; display: none; margin: -2px 0 10px;
  background: #fff; border: 1px solid var(--ra-c-line); border-radius: var(--ra-r-card);
  box-shadow: var(--ra-sh-3); padding: 6px; max-height: 320px; overflow-y: auto;
  animation: ra-drop-in .16s var(--ra-ease) both;
}
.ra-verdrop.open { display: block; }
@keyframes ra-drop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ra-verdrop .ra-ver { background: transparent; margin-bottom: 0; border-radius: 8px; padding: 7px 8px; }
.ra-verdrop .ra-ver:hover { background: var(--ra-c-bg); }
.ra-verdrop .ra-ver.on { background: var(--ra-brand-soft); border-color: transparent; }

/* ---- ② 左栏分区卡片（默认只展开模板库） ---- */
.ra-lsec {
  border: 1px solid var(--ra-c-line); border-radius: var(--ra-r-card); background: #fff;
  margin-bottom: var(--ra-sp-2); box-shadow: var(--ra-sh-1); overflow: hidden;
}
.ra-lsec-head {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; cursor: pointer; user-select: none;
  transition: background var(--ra-dur) ease;
}
.ra-lsec-head:hover { background: var(--ra-c-bg); }
.ra-lsec-title {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ra-c-text); letter-spacing: .2px;
}
.ra-lsec-title svg { color: var(--ra-brand); }
.ra-lsec-head .ra-chev { color: var(--ra-c-sub); }
.ra-lsec.open .ra-lsec-head .ra-chev { transform: rotate(180deg); }
.ra-lsec-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s var(--ra-ease); }
.ra-lsec.open .ra-lsec-body { grid-template-rows: 1fr; }
.ra-lsec-inner { overflow: hidden; min-height: 0; padding: 0 var(--ra-sp-3); }
.ra-lsec.open .ra-lsec-inner { padding: 0 var(--ra-sp-3) var(--ra-sp-3); }

/* ---- 主题色一排小圆点（压缩行高） ---- */
.ra-theme-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ra-theme-dot {
  height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .08);
}
.ra-theme-dot:hover { transform: scale(1.12); box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .08), var(--ra-sh-1); }
.ra-theme-dot.on { border-color: #fff; box-shadow: 0 0 0 2px var(--ra-c-text); }

/* ---- ③ 竞争力排名：默认折叠为分数胶囊 ---- */
.ra-rank-card {
  margin-top: 2px; border: 1px solid var(--ra-c-line); background: #fff;
  border-radius: var(--ra-r-card); box-shadow: var(--ra-sh-1); overflow: hidden;
}
.ra-rank-mini {
  width: 100%; display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background var(--ra-dur) ease;
}
.ra-rank-mini:hover { background: var(--ra-c-bg); }
.ra-rank-mini > svg:first-child { color: var(--ra-brand); flex: none; }
.ra-rank-mini-lab { font-size: 12.5px; font-weight: 600; color: var(--ra-c-body); flex: none; }
.ra-rank-mini b { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--ra-brand); font-variant-numeric: tabular-nums; }
.ra-rank-mini .ra-chev { color: var(--ra-c-sub); flex: none; }
.ra-rank-mini.open .ra-chev { transform: rotate(180deg); }
.ra-rank-body { display: none; padding: 0 12px 12px; border-top: 1px solid #F3F4F6; }
.ra-rank-body.open { display: block; padding-top: 10px; animation: ra-fade .22s ease both; }
.ra-rank-card .ra-rank-num { font-size: 20px; }
.ra-rank-body .ra-rank-bar { margin-top: 8px; }

/* ---- v124 模板排版精修：居中模板（soe-a/fin-a/dsn-b）只居中页眉/标题/摘要，
     条目正文与 bullet 恢复左对齐 —— 修「圆点在最左、文字飘中间」的分离感 ---- */
.ra-doc[data-align="center"] .ra-item,
.ra-doc[data-align="center"] .ra-li-t { text-align: left; }
/* dense 双列网格联系信息隐藏 | 分隔符（与 split/rail 一致，堆叠时不需要分隔符） */
.ra-doc[data-layout="dense"] .ra-c-sep { display: none; }

/* ---- ④ 中栏工具条：图标化 + 分组分隔 ---- */
.ra-mid-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ra-mid-title { flex: 1; min-width: 0; }
.ra-mid-title .ra-h-page { font-size: 20px; display: flex; align-items: center; gap: 6px; }
.ra-mid-title .ra-h-page svg { color: var(--ra-brand); flex: none; }
.ra-tool-group { display: flex; align-items: center; gap: 6px; }
.ra-tool-sep { width: 1px; height: 20px; background: var(--ra-c-line); flex: none; }
.ra-more-wrap { position: relative; }
.ra-more-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; display: none; min-width: 168px;
  background: #fff; border: 1px solid var(--ra-c-line); border-radius: var(--ra-r-card);
  box-shadow: var(--ra-sh-3); padding: 5px; animation: ra-drop-in .16s var(--ra-ease) both;
}
.ra-more-menu.open { display: block; }
.ra-more-item {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 0; background: none; border-radius: var(--ra-r-ctl); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ra-c-body); text-align: left;
  transition: background var(--ra-dur) ease, color var(--ra-dur) ease;
}
.ra-more-item:hover { background: var(--ra-brand-soft); color: var(--ra-brand-deep); }
.ra-more-item svg { color: var(--ra-brand); flex: none; }

/* ---- ⑤ 空简历首屏空态 ---- */
.ra-empty {
  max-width: 480px; margin: 48px auto 24px; text-align: center;
  border: 1px solid var(--ra-c-line); background: #fff; border-radius: var(--ra-r-card);
  box-shadow: var(--ra-sh-1); padding: 36px 32px 28px;
}
.ra-empty-illus { display: block; margin: 0 auto 18px; }
.ra-empty .ra-guide-title { font-size: 20px; font-weight: 700; color: var(--ra-c-text); margin-bottom: 6px; }
.ra-empty .ra-t-sub { margin-bottom: 20px; }
.ra-empty-acts { display: flex; gap: 10px; justify-content: center; }
.ra-empty-acts .ra-btn { height: 40px; padding: 0 20px; }
.ra-empty-acts .ra-btn-ghost { height: 40px; padding: 0 18px; }
.ra-empty-tips { margin-top: 18px; font-size: 12px; color: var(--ra-c-sub); letter-spacing: .2px; }
/* 空模块价值提示 */
.ra-empty-mod { display: flex; align-items: center; gap: 5px; color: var(--ra-c-sub); font-style: normal; }
.ra-empty-mod svg { flex: none; color: var(--ra-brand-mid); }

/* ---- ⑥ 手风琴完成度指示 ---- */
.ra-acc-count {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; color: var(--ra-c-sub);
  font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: var(--ra-r-pill);
  background: var(--ra-c-bg); border: 1px solid var(--ra-c-line);
}
.ra-acc-count.done { color: #059669; background: #ECFDF5; border-color: #A7F3D0; }
.ra-acc-count.done svg { color: #059669; }

/* ---- ⑦ 模板 / 主题切换：预览 200ms 淡入 ---- */
.ra-doc-fade { animation: ra-tplfade .2s ease both; }
@keyframes ra-tplfade { from { opacity: .35; } to { opacity: 1; } }

/* ---- ⑧ 微交互统一：hover 浮起 / active 回落 / 禁用明确 ---- */
/* v126.29：浮起动效保留，阴影统一走品牌紫微光（与文件头 .ra-tpl-card:hover 同源） */
.ra-tpl-card:hover { transform: translateY(-1px); }
.ra-itemcard { transition: border-color var(--ra-dur) ease, box-shadow var(--ra-dur) ease; }
.ra-itemcard:hover { border-color: var(--ra-brand-mid); box-shadow: var(--ra-sh-1); }
.ra-scn { transition: border-color var(--ra-dur) ease, box-shadow var(--ra-dur) ease, transform var(--ra-dur) ease; }
.ra-scn:hover { transform: translateY(-1px); }
.ra-g-tplcard { transition: border-color var(--ra-dur) ease, box-shadow var(--ra-dur) ease, transform var(--ra-dur) ease; }
.ra-g-tplcard:hover { transform: translateY(-1px); }
.ra-app button:disabled, .ra-app button[disabled] {
  opacity: .55 !important; cursor: not-allowed !important; filter: grayscale(.3);
  transform: none !important; box-shadow: none !important;
}
/* 主按钮 active 态下沉反馈 */
.ra-btn:active, .ra-btn-ghost:active, .ra-icobtn:active { transform: translateY(0) scale(.98); }
.ra-btn-ghost { transition: border-color var(--ra-dur) ease, color var(--ra-dur) ease, background var(--ra-dur) ease, transform var(--ra-dur) ease; }
.ra-icobtn { transition: color var(--ra-dur) ease, border-color var(--ra-dur) ease, background var(--ra-dur) ease, transform var(--ra-dur) ease; }

/* ---- ⑨ 小屏适配：中栏工具条间距 ---- */
@media (max-width: 1180px) {
  .ra-col-mid { padding: 14px 10px 24px; }
  .ra-empty { margin: 24px auto 16px; padding: 28px 20px 22px; }
}

/* ==========================================================================
 * v126.29：标准简历模板骨架（std skeleton）—— 一比一复刻用户上传 docx
 * --------------------------------------------------------------------------
 * 几何基准：A4 = 794×1123px @96dpi（.ra-doc 宽 210mm ≈ 794px），以下 px 值
 * 均按 docx 形状坐标直接换算：
 *   · 整页浅灰底 #F8F8F8（docx 全页矩形）
 *   · 头部色块 #4E7282：513×77px，左上（y≈22），白字标题+意向+英文小字
 *   · 右上照片 117×155px；照片左侧三个 #C19F67 金色菱形装饰
 *   · 左侧 #4E7282 竖线（x≈8，从页眉下方贯穿至页底）
 *   · 分区色带：#4E7282 主体 + #405E6C 深色端 + 右端斜切（rtTriangle）
 *   · 页底装饰条：#4E7282 长条 + #C19F67 金色段
 *   · 正文 #414141 10pt≈13.3px；分区标题白字 12pt≈16px
 * 仅作用于 .ra-doc[data-tpl="std-standard"]，其余 12 套模板零影响。
 * ========================================================================== */
.ra-doc[data-tpl="std-standard"] {
  --std-primary: #4E7282;
  --std-dark: #405E6C;
  --std-gold: #C19F67;
  --std-page: #F8F8F8;
  --std-text: #414141;
  background: var(--std-page);
  color: var(--std-text);
  padding: 22px 30px 30px 38px;
}
/* 左侧竖线：自页眉下方贯穿（docx line x=7, y122→1066） */
.ra-doc[data-tpl="std-standard"]::before {
  content: ''; position: absolute; left: 12px; top: 128px; bottom: 52px;
  width: 2px; background: var(--std-primary); pointer-events: none;
}

/* ---- 头部：色块 + 金色装饰 + 右上照片 ---- */
.resume-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.resume-header-block {
  flex: 0 0 70.5%; min-height: 77px; padding: 10px 20px 9px;
  background: var(--std-primary); color: #fff;
}
.resume-title {
  margin: 0; font-size: 24px; font-weight: 700; color: #fff;
  letter-spacing: 7px; line-height: 1.2;
}
.resume-slogan {
  margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, .93);
  letter-spacing: .5px; line-height: 1.45;
}
.resume-title-en {
  margin-top: 1px; font-size: 11px; color: rgba(255, 255, 255, .62);
  letter-spacing: 2.5px; text-transform: uppercase; line-height: 1.2;
}
/* 三个金色菱形装饰（docx 同位：色块与照片之间一排） */
.resume-header-deco {
  flex: none; align-self: center; display: flex; gap: 9px; padding-top: 2px;
}
.resume-header-deco span {
  width: 15px; height: 15px; background: var(--std-gold);
  transform: rotate(45deg); flex: none;
}
/* 右上一寸照 117×155（docx 同尺寸），空白时虚线占位框 */
.resume-photo {
  flex: none; width: 117px; height: 155px; margin-left: auto;
  background: #fff; border: 1px solid #E1E6E9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.resume-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resume-photo-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  border: 1px dashed #C7D2D7; color: #AEBDC3; font-size: 13px; letter-spacing: 4px;
}

/* ---- 分区：斜切色带标题 + 内容 ---- */
.resume-section { margin-top: 17px; }
.resume-section:first-of-type { margin-top: 0; }
.resume-bar {
  position: relative; margin: 0 0 11px; padding-left: 15px;
  height: 29px; line-height: 29px;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 4px;
  background: linear-gradient(100deg, var(--std-primary) 0 88.5%, var(--std-dark) 88.5% 100%);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 100%, 0 100%);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.resume-bar:focus { outline: none; }

/* ---- 基本信息：双列 label（四字对齐）+ value ---- */
.resume-grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; row-gap: 7px;
}
.resume-field { display: flex; align-items: baseline; gap: 2px; font-size: 13.3px; line-height: 1.62; }
.resume-label {
  flex: none; color: #5A6B72; font-weight: 600;
  min-width: 4.6em; text-align: justify; text-align-last: justify;
}
.resume-label::after { content: '：'; }
.resume-value { color: var(--std-text); min-width: 0; word-break: break-all; }
.resume-value:focus { outline: none; }

/* ---- 经历条目：「时间 单位 角色」一行 + 圆点描述 ---- */
.resume-item { margin-bottom: 9px; }
.resume-item:last-child { margin-bottom: 0; }
.resume-item-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 3px;
  font-size: 13.6px; line-height: 1.55;
}
.resume-item-time { flex: none; color: #5A6B72; }
.resume-item-org { color: #2E3D44; font-weight: 700; }
.resume-item-role { margin-left: auto; color: var(--std-text); text-align: right; }
.resume-list, .resume-list-plain { list-style: none; margin: 0; padding: 0; }
.resume-li {
  position: relative; padding-left: 15px; margin-bottom: 3px;
  font-size: 13.3px; line-height: 1.62; color: var(--std-text);
}
.resume-li::before {
  content: ''; position: absolute; left: 3px; top: .62em;
  width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--std-primary);
}
.resume-li-t:focus, .resume-p:focus, .resume-slogan:focus { outline: none; }
.resume-p {
  margin: 0; font-size: 13.3px; line-height: 1.66; color: var(--std-text);
  text-align: justify; text-align-last: left;
}
.resume-sec-body { padding: 0 2px 0 3px; }

/* ---- 自我评价 / 段落模块 ---- */
.resume-summary .resume-p { padding: 0 2px; }

/* ---- 页底装饰条：主色长条 + 金色段（docx 同款收尾） ---- */
.resume-footer {
  margin-top: 26px; height: 20px; display: flex;
  background: var(--std-primary);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.resume-footer::after {
  content: ''; width: 72px; height: 100%; background: var(--std-gold);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* ---- 缩略图兼容：std 微缩同样生效（paintThumbs 复用 docHTML） ---- */
.ra-thumb-doc[data-tpl="std-standard"]::before { top: 42px; bottom: 14px; }
.ra-thumb-doc[data-tpl="std-standard"] { padding: 8px 11px 11px 14px; }
.ra-thumb-doc[data-tpl="std-standard"] .resume-header-block { min-height: 46px; padding: 7px 12px 6px; }
.ra-thumb-doc[data-tpl="std-standard"] .resume-title { font-size: 15px; letter-spacing: 4px; }
.ra-thumb-doc[data-tpl="std-standard"] .resume-photo { width: 52px; height: 69px; }

/* ---- 打印（第四部分）：std 骨架分页零腰斩，色彩 100% 保留 ---- */
@media print {
  #print-root .ra-doc[data-tpl="std-standard"] { background: var(--std-page); }
  #print-root .resume-section { break-inside: avoid; page-break-inside: avoid; }
  #print-root .resume-item { break-inside: avoid; page-break-inside: avoid; }
  #print-root .resume-bar { break-after: avoid; page-break-after: avoid; }
  #print-root .resume-header { break-inside: avoid; page-break-inside: avoid; }
  #print-root .resume-footer { break-inside: avoid; page-break-inside: avoid; }
}

/* ---- 第五部分：预览列内部滚动加固（内容超长绝不撑爆页面） ----
 * .ra-cols 为 grid（flex:1 + min-height:0），预览列自身 overflow-y:auto +
 * 6px 极细灰滚动条（见文件头 .ra-col-preview），此处补 height:100% 双保险 */
.ra-col { min-height: 0; }
.ra-col-preview { height: 100%; }
