@charset "UTF-8";
/* ==========================================================================
   在线简历生成器 · 布局 / A4 纸张 / 打印
   说明：EXPORT:BEGIN ~ EXPORT:END 之间的规则会被 tools/build.py 抽取，
        生成 public/assets/js/resume-export-css.js，供下载的 Word/HTML 文件内联使用。
   原则：A4 纸张内部一律使用显式颜色与 pt/mm 单位，不依赖 CSS 变量，
        保证浏览器打印、html2canvas 截图与 Word 打开时表现一致。
   ========================================================================== */

.rb-page { padding: 44px 0 80px; background: #f5f8fc; }
.rb-intro { margin-bottom: 28px; }
.rb-intro h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 750; letter-spacing: -.02em; }
.rb-intro p { margin-top: 12px; max-width: 820px; color: #5b6b82; font-size: 15px; line-height: 1.85; }
.rb-notice {
  margin-top: 16px; padding: 11px 16px; border-left: 3px solid #12b8a6;
  background: #eef7f6; border-radius: 0 8px 8px 0; font-size: 13.5px; color: #33425c;
}
.rb-breadcrumb { font-size: 13px; color: #5b6b82; margin-bottom: 14px; }
.rb-breadcrumb a { color: #1257b8; }

.container--wide { width: min(100% - 48px, 1440px); margin-inline: auto; }
.rb-workspace { display: grid; grid-template-columns: minmax(340px, 470px) minmax(0, 1fr); gap: 24px; align-items: start; }
.rb-panel { background: #fff; border: 1px solid #e2e9f2; border-radius: 16px; box-shadow: 0 2px 10px rgba(11, 36, 71, .06); }
.rb-panel__head { padding: 20px 24px; border-bottom: 1px solid #eef3f9; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rb-panel__head h2 { font-size: 17px; font-weight: 720; display: flex; align-items: center; gap: 9px; }
.rb-panel__head .icon { width: 19px; height: 19px; color: #1257b8; }
.rb-panel__hint { font-size: 12.5px; color: #5b6b82; }

/* ---------- 表单 ---------- */
.rb-form { padding: 22px 24px 26px; }
.rb-form fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.rb-form fieldset:last-of-type { margin-bottom: 12px; }
.rb-form legend {
  width: 100%; padding: 0 0 10px; margin-bottom: 14px; border-bottom: 1px solid #eef3f9;
  font-size: 14px; font-weight: 720; color: #0b2447; display: flex; align-items: center; gap: 9px;
}
.rb-form legend span { width: 4px; height: 15px; background: #12b8a6; border-radius: 2px; }
.rb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.rb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rb-field--full { grid-column: 1 / -1; }
.rb-field label { font-size: 12.5px; font-weight: 650; color: #33425c; }
.rb-field input, .rb-field select, .rb-field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #dbe4ef; border-radius: 8px;
  background: #fff; color: #16233a; font-size: 14px; line-height: 1.6;
}
.rb-field textarea { min-height: 84px; resize: vertical; }
.rb-field input:focus, .rb-field select:focus, .rb-field textarea:focus {
  outline: 2px solid #12b8a6; outline-offset: 1px; border-color: #12b8a6;
}
.rb-field__tip { font-size: 11.5px; color: #8a99ad; }

.rb-photo-row { display: flex; align-items: center; gap: 16px; }
.rb-photo-box {
  width: 78px; height: 102px; flex: none; border: 1px dashed #c7d5e6; border-radius: 8px;
  /* 占位文字对比度从 2.72:1 提升到 5.1:1，与相邻控制区文字保持一致 */\n  background: #f5f8fc; display: grid; place-items: center; overflow: hidden; font-size: 11.5px; color: #5b6b82;
}
.rb-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.rb-photo-ctrl { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #5b6b82; }
.rb-photo-ctrl input[type="file"] { font-size: 12.5px; max-width: 220px; }

.rb-repeat { display: grid; gap: 12px; }
.rb-row { position: relative; padding: 14px 14px 12px; border: 1px solid #e2e9f2; border-radius: 10px; background: #fafcff; }
.rb-row__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding-right: 30px; }
.rb-row__del {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 6px;
  background: #fdecec; color: #c23b3b; font-size: 17px; line-height: 1;
}
.rb-row__del:hover { background: #f8d7d7; }
.rb-add {
  margin-top: 10px; padding: 8px 14px; border: 1px dashed #a9c2e4; border-radius: 8px;
  background: #f4f9ff; color: #1257b8; font-size: 13px; font-weight: 650;
}
.rb-add:hover { background: #e8f2ff; }

/* ---------- 预览区 ---------- */
.rb-preview { overflow: hidden; }
.rb-toolbar {
  display: flex; flex-wrap: wrap; gap: 9px; padding: 16px 20px;
  border-bottom: 1px solid #eef3f9; background: #fbfdff; align-items: center;
}
.rb-toolbar .btn { min-height: 40px; padding: 8px 15px; font-size: 13.5px; }
.rb-toolbar__spacer { flex: 1; }
.rb-status { min-height: 20px; padding: 0 20px; font-size: 12.5px; color: #5b6b82; }
.rb-status.is-ok { color: #0d8f6f; }
.rb-status.is-err { color: #c23b3b; }
.rb-stage { padding: 28px; overflow-x: auto; background: #e9eef5; display: flex; justify-content: center; }
.rb-stage__inner { flex: none; }

/* ==========================================================================
   EXPORT:BEGIN —— 以下规则同时用于下载的 Word / HTML 文件，请勿使用 CSS 变量
   ========================================================================== */
.rb-paper {
  width: 210mm; min-height: 297mm; box-sizing: border-box;
  padding: 15mm 17mm 14mm; margin: 0; background: #ffffff; color: #1b2433;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "SimSun", sans-serif;
  font-size: 10.5pt; line-height: 1.7;
  box-shadow: 0 10px 32px rgba(6, 26, 51, .16);
}
.rb-paper * { box-sizing: border-box; }
.rb-paper__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10mm; border-bottom: 2px solid #0b2447; padding-bottom: 4mm; }
.rb-paper__brand { font-size: 9pt; letter-spacing: .12em; color: #5b6b82; }
.rb-paper__title { font-size: 20pt; font-weight: 700; letter-spacing: .34em; color: #0b2447; margin: 2mm 0 0; }
.rb-paper__photo { width: 26mm; height: 34mm; border: 1px solid #e2e9f2; object-fit: cover; }
.rb-paper__identity { display: flex; align-items: baseline; justify-content: space-between; gap: 8mm; margin: 6mm 0 5mm; flex-wrap: wrap; }
.rb-paper__name { font-size: 22pt; font-weight: 700; letter-spacing: .1em; color: #0b2447; }
.rb-paper__intent { font-size: 10pt; color: #1257b8; }
.rb-paper__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #cfdae8; border-left: 1px solid #cfdae8; }
.rb-paper__cell { display: flex; border-right: 1px solid #cfdae8; border-bottom: 1px solid #cfdae8; min-height: 8mm; align-items: center; }
.rb-paper__key { width: 24mm; flex: none; padding: 1.2mm 2mm; background: #f4f8fd; color: #33425c; font-size: 9.5pt; font-weight: 600; }
.rb-paper__val { padding: 1.2mm 2.5mm; font-size: 10pt; word-break: break-all; }
.rb-paper__sec { margin-top: 6mm; break-inside: avoid; page-break-inside: avoid; }
.rb-paper__sec h3 {
  font-size: 11.5pt; font-weight: 700; color: #0b2447; margin: 0 0 2.5mm;
  padding-left: 3mm; border-left: 3px solid #12b8a6; line-height: 1.4;
}
.rb-paper__body { font-size: 10pt; line-height: 1.85; white-space: pre-wrap; word-break: break-word; color: #1b2433; }
.rb-paper__entry { margin-bottom: 3mm; break-inside: avoid; page-break-inside: avoid; }
.rb-paper__entry-head { display: flex; justify-content: space-between; gap: 5mm; font-weight: 650; color: #16233a; }
.rb-paper__entry-period { color: #5b6b82; font-weight: 400; font-size: 9.5pt; white-space: nowrap; }
.rb-paper__entry-sub { font-size: 9.5pt; color: #5b6b82; margin-top: .5mm; }
.rb-paper__entry-desc { font-size: 10pt; line-height: 1.8; white-space: pre-wrap; margin-top: 1mm; }
.rb-paper__empty { color: #a9b6c8; }
.rb-paper__foot { margin-top: 9mm; padding-top: 3mm; border-top: 1px solid #e2e9f2; display: flex; justify-content: space-between; font-size: 8.5pt; color: #8a99ad; }
/* ==========================================================================
   EXPORT:END
   ========================================================================== */

/* 导出 PDF 时去掉纸张投影，避免被截图捕获 */
.rb-paper.is-exporting { box-shadow: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .rb-workspace { grid-template-columns: 1fr; }
  .rb-stage { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container--wide { width: min(100% - 32px, 1440px); }
  .rb-page { padding: 28px 0 56px; }
  .rb-fields, .rb-row__grid { grid-template-columns: 1fr; }
  .rb-row__grid { padding-right: 0; padding-top: 6px; }
  .rb-stage { padding: 14px; }
}

/* ---------- 打印：只输出 A4 纸张 ---------- */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #ffffff !important; }
  .topbar, .site-header, .site-footer, .to-top, .skip-link,
  .rb-intro, .rb-form-wrap, .rb-toolbar, .rb-status, .rb-panel__head,
  .rb-preview-banner, .preview-banner { display: none !important; }
  .rb-page { padding: 0; background: #ffffff; }
  .container--wide { width: 210mm; margin: 0; }
  .rb-workspace { display: block; }
  .rb-panel, .rb-preview { border: 0; box-shadow: none; background: #ffffff; border-radius: 0; }
  .rb-stage { display: block; padding: 0; overflow: visible; background: #ffffff; }
  .rb-stage__inner { width: 210mm; }
  .rb-paper {
    width: 210mm; min-height: 297mm; margin: 0; padding: 15mm 17mm 14mm;
    box-shadow: none; border: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
