.resume-body {
  min-height: 100vh;
}

.resume-page {
  max-width: 1200px;
}

.resume-hero {
  padding: 24px;
  margin-bottom: 18px;
}

.resume-hero-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
}

.resume-hero-desc {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.resume-filter {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.resume-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.resume-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 760px) {
  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .resume-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.template-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-preview {
  border-radius: 12px;
  border: 1px solid #d6deea;
  height: 280px;
  overflow: hidden;
  background: #fff;
}

.mini-sheet {
  height: 100%;
  display: grid;
  grid-template-rows: 54px 1fr;
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.mini-brand {
  font-size: 15px;
  font-weight: 700;
}

.mini-lines {
  padding: 8px 12px;
  display: grid;
  gap: 8px;
}

.mini-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
}

.mini-line.short {
  width: 55%;
}

.mini-line.mid {
  width: 75%;
}

.mini-layout-side {
  display: grid;
  grid-template-columns: 64px 1fr;
  height: 100%;
}

.mini-side {
  background: #1e3a8a;
}

.mini-main {
  padding: 8px 10px;
  display: grid;
  gap: 8px;
}

.template-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.template-name {
  margin: 0;
  font-size: 16px;
}

.template-tag {
  font-size: 12px;
  color: #2563eb;
  background: #e0ebff;
  border-radius: 999px;
  padding: 4px 10px;
}

.template-desc {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
  font-size: 13px;
}

.template-actions {
  display: flex;
  gap: 10px;
}

.template-btn {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
}

.template-btn.primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.resume-footer {
  margin-top: 26px;
  color: var(--muted);
  text-align: center;
}

.editor-page {
  max-width: 1560px;
  padding: 24px 12px;
}

.editor-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

@media (min-width: 1080px) {
  .editor-layout {
    grid-template-columns: 1fr 420px;
    gap: 14px;
  }
}

@media (min-width: 1360px) {
  .editor-layout {
    grid-template-columns: 1fr 540px;
    gap: 16px;
  }
}

@media (min-width: 1600px) {
  .editor-layout {
    grid-template-columns: 1fr 600px;
    gap: 18px;
  }
}

.editor-left {
  /* 取消吸顶，让它随页面自然滚动 */
  position: relative;
}

.editor-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 16px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.resume-sheet-wrap {
  background: transparent;
  padding: 0;
  border-radius: 10px;
  height: auto;
  overflow: visible;
}

.preview-toolbar-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toolbar-badge {
  font-size: 12px;
  color: #2563eb;
  background: #dbeafe;
  padding: 5px 10px;
  border-radius: 999px;
}

.toolbar-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.toolbar-btn:hover {
  background: #f1f5f9;
}

.toolbar-btn.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.toolbar-btn.primary:hover {
  background: #1d4ed8;
}

.resume-sheet {
  border: 1px solid #d7e0f0;
  border-radius: 6px;
  min-height: 720px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

.sheet-header {
  padding: 20px 24px;
  border-bottom: 1px solid #dce3ef;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.sheet-name {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
}

.sheet-job {
  margin: 7px 0 0;
  font-size: 15px;
  color: var(--resume-accent);
}

.sheet-contact {
  text-align: right;
  font-size: 13px;
  color: #334155;
  line-height: 1.7;
}

.sheet-body {
  padding: 14px 24px 24px;
  display: grid;
  gap: 8px;
}

.resume-block {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  padding-top: 6px;
}

.resume-block:last-child {
  border-bottom: 0;
}

.resume-block.hidden {
  display: none;
}

.resume-block-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--resume-accent, #2b6f9f);
  margin: 0 0 8px;
  letter-spacing: 1px;
}

.resume-block-content {
  margin: 0;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.8;
  white-space: pre-line;
}

.assistant-shell {
  display: none !important;
}

.assistant-title {
  margin: 0;
  font-size: 17px;
}

.assistant-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.assistant-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.assistant-btn:hover {
  background: #f1f5f9;
}

.assistant-btn.primary {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.assistant-btn.primary:hover {
  background: #059669;
}

.assistant-faq {
  display: none;
}

.editor-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.module-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.module-tab:hover {
  background: #e2e8f0;
}

.module-tab.active {
  background: #2563eb;
  color: #fff;
}

.module-panels-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-module {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  transition: all 0.2s;
  overflow: hidden;
}

.editor-module:hover {
  border-color: #bfcfe0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
  border-radius: 8px 8px 0 0;
}

.module-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.module-controls {
  display: flex;
  gap: 6px;
}

.mini-btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.mini-btn.active {
  background: #eef5ff;
  border-color: #9ec5ff;
  color: #1d4ed8;
}

.module-body {
  padding: 10px 14px 12px;
  display: grid;
  gap: 8px;
}

.editor-module.collapsed .module-body {
  display: none;
}

.form-grid {
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .form-grid.two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.field-label {
  font-size: 12px;
  color: #334155;
  display: block;
}

.field-input,
.field-textarea,
.field-select {
  margin-top: 4px;
  width: 100%;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: #93b5cf;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  background: #fff;
}

.field-textarea {
  min-height: 60px;
  resize: vertical;
}

.sticky-shortcuts {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid #d8e1ef;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  display: flex;
  gap: 6px;
  padding: 8px;
  z-index: 20;
  overflow-x: auto;
}

.shortcut-btn {
  flex: 1 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}

.shortcut-btn.active {
  background: #2563eb;
  color: #fff;
}

/* ========================================
 *  模板 1 — 经典蓝色标题栏 (对标设计图1)
 *  特征：居中大标题"个人简历"+副文字，头像框，
 *  基本信息两列表格，蓝底白字标题带右箭头
 * ======================================== */
#resumeSheet.theme-tpl1 {
  --resume-accent: #4a7fa5;
  --tpl1-head-bg: #3978a3;
  border: 1px solid #cddae6;
}

#resumeSheet.theme-tpl1 .sheet-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 0;
  padding: 16px 28px 10px;
  position: relative;
  gap: 0;
}

/* 隐藏原始 name/job（用下面的联系区展示） */
#resumeSheet.theme-tpl1 .sheet-header-info {
  display: none;
}

#resumeSheet.theme-tpl1 .sheet-name {
  display: none;
}

#resumeSheet.theme-tpl1 .sheet-job {
  display: none;
}

/* 居中大标题 "个人简历" */
#resumeSheet.theme-tpl1 .sheet-header::before {
  content: "个人简历";
  font-size: 32px;
  color: var(--tpl1-head-bg);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 6px;
  margin-bottom: 12px;
}

/* 副标题 */
#resumeSheet.theme-tpl1 .sheet-header::after {
  content: "努力超越自己，每天进步一点点";
  font-size: 12px;
  color: #7c8fa3;
  margin: 6px 0 0;
}

/* 基本信息区 - 左右两列 + 头像 */
#resumeSheet.theme-tpl1 .resume-block-basic .basic-main {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: start;
}

#resumeSheet.theme-tpl1 .sheet-contact {
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: #334155;
  line-height: 1.9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  border: 0;
  padding: 0;
}

#resumeSheet.theme-tpl1 .sheet-contact-col {
  display: grid;
  gap: 0;
}

#resumeSheet.theme-tpl1 .sheet-contact-col > div {
  display: block;
}

/* 头像框定位在联系信息右侧 */
#resumeSheet.theme-tpl1 .tpl-avatar {
  justify-self: end;
  width: 112px;
  height: 134px;
  border: 2px solid #cddae6;
  border-radius: 6px;
  background: linear-gradient(180deg, #e9f0f6 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -48px;
  cursor: pointer;
}

#resumeSheet.theme-tpl1 .tpl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 基本信息块特别渲染 */
#resumeSheet.theme-tpl1 .resume-block {
  border-bottom: 1px solid #d7e6f1;
  padding: 12px 10px 12px;
}

#resumeSheet.theme-tpl1 .resume-block:last-child {
  border-bottom: 0;
}

#resumeSheet.theme-tpl1 .resume-block-title {
  background: rgba(57, 120, 163, 0.12);
  color: var(--tpl1-head-bg);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

#resumeSheet.theme-tpl1 .resume-block-content {
  font-size: 13.5px;
  line-height: 1.8;
  color: #374151;
  padding-left: 4px;
}

#resumeSheet.theme-tpl1 .sheet-body {
  padding: 0 14px 20px;
}

/* ========================================
 *  模板 2 — 蓝色头部 + 图标装饰 (对标设计图2)
 *  特征：顶部深蓝色区域姓名+职位+联系信息行，
 *  头像在右上角，模块标题左侧有蓝色圆圈图标
 * ======================================== */
#resumeSheet.theme-tpl2 {
  --resume-accent: #2f6d9e;
  border: 0;
  overflow: visible;
}

#resumeSheet.theme-tpl2 .sheet-header {
  background: #2c5f85;
  color: #fff;
  padding: 28px 28px 22px;
  border-bottom: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 6px 20px;
}

/* 头像区域 */
#resumeSheet.theme-tpl2 .sheet-contact {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 110px;
  height: 130px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  justify-self: end;
  color: #fff;
  cursor: pointer;
}

#resumeSheet.theme-tpl2 .sheet-contact div {
  display: none;
}

#resumeSheet.theme-tpl2 .sheet-contact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#resumeSheet.theme-tpl2 .sheet-name {
  font-size: 28px;
  color: #fff;
  letter-spacing: 4px;
  font-weight: 800;
}

#resumeSheet.theme-tpl2 .sheet-job {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-top: 4px;
}

/* 姓名下方补充求职意向+联系信息行 */
#resumeSheet.theme-tpl2 .sheet-header > div:first-child::after {
  content: "";
  display: block;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 联系信息区（通过JS渲染在header底部） */
#resumeSheet.theme-tpl2 .sheet-info-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#resumeSheet.theme-tpl2 .sheet-body {
  padding: 20px 28px 24px;
}

#resumeSheet.theme-tpl2 .resume-block {
  position: relative;
  border-bottom: 1px solid #d6e2eb;
  padding: 10px 0 10px 40px;
}

#resumeSheet.theme-tpl2 .resume-block:last-child {
  border-bottom: 0;
}

/* 圆形图标装饰 */
#resumeSheet.theme-tpl2 .resume-block::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2c5f85;
  box-sizing: border-box;
}

#resumeSheet.theme-tpl2 .resume-block::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

#resumeSheet.theme-tpl2 .resume-block-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

#resumeSheet.theme-tpl2 .resume-block-content {
  font-size: 13.5px;
  line-height: 1.8;
  color: #374151;
}

/* ========================================
 *  模板 3 — 左右分栏侧边栏 (对标设计图3)
 *  特征：左侧深蓝侧边栏包含头像+基本信息+技能标签，
 *  右侧白色主内容区，模块标题有蓝色左竖线
 * ======================================== */
#resumeSheet.theme-tpl3 {
  --resume-accent: #1e3a5f;
  border: 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 800px;
}

#resumeSheet.theme-tpl3 .sheet-header {
  grid-column: 1;
  grid-row: 1 / 3;
  border-bottom: 0;
  background: #1e3a5f;
  color: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 24px;
  gap: 0;
}

/* 头像区域 */
#resumeSheet.theme-tpl3 .sheet-header > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#resumeSheet.theme-tpl3 .sheet-header > div:first-child::before {
  display: none;
}

/* 头像容器 - 通过JS插入 */
#resumeSheet.theme-tpl3 .tpl3-avatar {
  width: 100px;
  height: 120px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

#resumeSheet.theme-tpl3 .tpl3-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#resumeSheet.theme-tpl3 .sheet-name {
  font-size: 24px;
  color: #fff;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

#resumeSheet.theme-tpl3 .sheet-job {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-align: center;
  margin: 0;
}

/* 侧边栏联系信息 */
#resumeSheet.theme-tpl3 .sheet-contact {
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#resumeSheet.theme-tpl3 .sheet-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
}

#resumeSheet.theme-tpl3 .sheet-contact div::before {
  content: "•";
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}

/* 右侧主体 */
#resumeSheet.theme-tpl3 .sheet-body {
  grid-column: 2;
  padding: 22px 28px 28px;
}

#resumeSheet.theme-tpl3 .resume-block {
  border-bottom: 1px solid #d2dfeb;
  padding: 10px 0 12px 0;
}

#resumeSheet.theme-tpl3 .resume-block:last-child {
  border-bottom: 0;
}

#resumeSheet.theme-tpl3 .resume-block-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a5f;
  border-left: 4px solid #1e3a5f;
  padding-left: 10px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* 标题前加图标装饰 */
#resumeSheet.theme-tpl3 .resume-block-title::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #1e3a5f;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

#resumeSheet.theme-tpl3 .resume-block-content {
  font-size: 13.5px;
  line-height: 1.8;
  color: #374151;
  padding-left: 14px;
}

/* 模板3：contact-icon 圆形图标样式 */
#resumeSheet.theme-tpl3 .contact-icon {
  display: none;
}

#resumeSheet.theme-tpl3 .sheet-contact div::before {
  font-size: 11px;
}

/* ========================================
 *  模板 4 — 经典粗线条 (对标设计图4)
 *  特征：顶部"个人简历"+"细心从每一个细节开始"+
 *  "Personal resume"，金色粗线分隔，蓝底标题+箭头
 * ======================================== */
#resumeSheet.theme-tpl4 {
  --resume-accent: #4a7795;
  --tpl4-gold: #c3a66e;
  border: 1px solid #d8e3ed;
}

#resumeSheet.theme-tpl4 .sheet-header {
  border-bottom: 0;
  padding: 20px 24px 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 4px 20px;
}

/* "个人简历" + 副标题 + "Personal resume" */
#resumeSheet.theme-tpl4 .sheet-header::before {
  content: "个人简历";
  grid-column: 1;
  font-size: 28px;
  color: #1e3a5f;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
}

#resumeSheet.theme-tpl4 .sheet-header::after {
  content: "细心从每一个细节开始\APersonal resume";
  white-space: pre-line;
  grid-column: 1;
  font-size: 12px;
  color: #8a9bb1;
  line-height: 1.6;
}

#resumeSheet.theme-tpl4 .sheet-name {
  display: none;
}

#resumeSheet.theme-tpl4 .sheet-job {
  display: none;
}

/* 头像框 - 由 tpl-avatar 元素渲染 */
#resumeSheet.theme-tpl4 .sheet-contact {
  grid-column: 1;
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  background: none;
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
  color: #334155;
  line-height: 2;
  padding-top: 10px;
  place-items: unset;
  justify-self: unset;
}

#resumeSheet.theme-tpl4 .sheet-contact div {
  display: block !important;
}

#resumeSheet.theme-tpl4 .sheet-contact::before {
  display: none;
}

/* 基本信息行（紧接header下方，用 sheet-body 第一个模块渲染） */
#resumeSheet.theme-tpl4 .sheet-body {
  padding: 0 12px 20px;
  border-top: 6px solid var(--tpl4-gold);
  margin: 14px 12px 0;
}

#resumeSheet.theme-tpl4 .resume-block {
  border-bottom: 1px solid #dbe4ec;
  padding: 10px 12px 12px;
}

#resumeSheet.theme-tpl4 .resume-block:last-child {
  border-bottom: 0;
}

#resumeSheet.theme-tpl4 .resume-block-title {
  display: inline-block;
  background: var(--resume-accent);
  color: #fff;
  padding: 5px 18px 5px 12px;
  border-radius: 1px 0 0 1px;
  position: relative;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* 标题右箭头 */
#resumeSheet.theme-tpl4 .resume-block-title::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--resume-accent);
}

#resumeSheet.theme-tpl4 .resume-block-content {
  font-size: 13.5px;
  line-height: 1.8;
  color: #374151;
  padding-left: 4px;
}

/* 模板4：头像框 */
#resumeSheet.theme-tpl4 .tpl-avatar {
  grid-row: 1 / 4;
  grid-column: 2;
  width: 118px;
  height: 140px;
  border-radius: 4px;
  border: 2px solid #d7e1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  justify-self: end;
  background: linear-gradient(180deg, #e9f0f6, #fff);
  cursor: pointer;
}

#resumeSheet.theme-tpl4 .tpl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media print {
  .bg-shape,
  .topbar,
  .editor-right,
  .sticky-shortcuts,
  .preview-toolbar {
    display: none;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .editor-layout {
    display: block;
  }

  .editor-left {
    position: static;
  }

  .preview-shell {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .resume-sheet-wrap {
    height: auto;
    overflow: visible;
    padding: 0;
    background: transparent;
  }

  .resume-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .tpl-avatar,
  .tpl3-avatar {
    cursor: default;
  }

  #avatarUpload {
    display: none !important;
  }
}
