/* ===========================================================
   简历模板（原版提取）
   -----------------------------------------------------------
   这 12 套不是自己设计的，CSS 与版式来自开源项目
   salomonelli/best-resume-ever（MIT）的 .vue 模板里提取的：
   每张模板卡都标出对应的 .vue 文件。只做了三件事：
   ① Less 嵌套/变量转成普通 CSS；② 字体补中文；③ 把原版固定 id.jpg
   换成用户本地照片位。其余色值、版式比例和章节组织来自原版。
   =========================================================== */

/* ---------- creative：紫色侧栏（#A800FA） ---------- */
.tpl-creative {
  display: flex;
  min-height: 560px;
  font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 0.9em;
  color: #14202b;
}
.tpl-creative .bre-left {
  width: 30%;
  padding: 40px 22px 28px;
  background: #A800FA;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.tpl-creative .bre-name {
  color: #fff;
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.2;
}
.tpl-creative .bre-pos {
  margin-top: 8px;
  color: #fff;
  font-size: 1em;
}
.tpl-creative .bre-city {
  margin-top: 2px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
}
.tpl-creative .bre-about {
  margin: 26px 0 18px;
  font-size: 0.82em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
}
.tpl-creative .bre-contact {
  margin-top: 26px;
  display: grid;
  gap: 7px;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-all;
}
.tpl-creative .bre-contact div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
}
.tpl-creative .bre-contact b {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}
.tpl-creative .bre-right {
  flex: 1;
  padding: 26px 30px 30px;
}
.tpl-creative .bre-sec {
  margin: 8px 0 14px;
}
.tpl-creative .bre-sec-h {
  color: #A800FA;
  font-size: 1.15em;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px solid #ede3f7;
  margin-bottom: 9px;
}
.tpl-creative .bre-item { margin-bottom: 10px; }
.tpl-creative .bre-item-h b { font-size: 1.05em; font-weight: 500; color: #14202b; }
.tpl-creative .bre-item-h span { margin-left: 8px; font-size: 0.85em; color: #6b7280; }
.tpl-creative .bre-item-h em { float: right; font-style: normal; font-size: 0.8em; color: #9aa3af; }
.tpl-creative .bre-item p {
  margin: 3px 0 0;
  font-size: 0.85em;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.68);
  white-space: pre-wrap;
}
.tpl-creative .bre-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-creative .bre-skill {
  padding: 4px 9px;
  border: 1px solid #A800FA;
  color: #A800FA;
  font-size: 0.82em;
  line-height: 1.4;
  transition: all 0.3s;
}
.tpl-creative .bre-skill:hover { background: #A800FA; color: #fff; }

/* ---------- material-dark：深色 Material（#16151c） ---------- */
.tpl-material {
  display: flex;
  min-height: 560px;
  font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #cccccc;
  color: #263238;
}
.tpl-material .bre-left {
  width: 35%;
  background: #16151c;
  color: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}
.tpl-material .bre-head {
  height: 190px;
  background: linear-gradient(140deg, #2b2b36 0%, #16151c 100%);
  position: relative;
}
.tpl-material .bre-head-in {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
}
.tpl-material .bre-head-in h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: 2px;
}
.tpl-material .bre-head-in p {
  margin: 5px 0 0;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
}
.tpl-material .bre-body { padding: 18px 22px 24px; }
.tpl-material .bre-sec-h {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 16px 0 8px;
}
.tpl-material .bre-contact { display: grid; gap: 8px; font-size: 0.82em; word-break: break-all; }
.tpl-material .bre-contact div { display: grid; grid-template-columns: 30px minmax(0, 1fr); }
.tpl-material .bre-contact b { font-weight: 400; color: rgba(255, 255, 255, 0.4); }
.tpl-material .bre-skill { margin-bottom: 7px; }
.tpl-material .bre-skill .k { display: block; font-size: 0.8em; margin-bottom: 3px; }
.tpl-material .bre-skill .bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  overflow: hidden;
}
.tpl-material .bre-skill .bar i {
  display: block;
  height: 100%;
  background: #78909c;
}
.tpl-material .bre-right {
  flex: 1;
  padding: 22px 26px 28px;
  background: #f5f5f5;
}
.tpl-material .bre-about {
  font-size: 0.88em;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
  white-space: pre-wrap;
  margin: 0 0 8px;
}
.tpl-material .bre-card {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.12);
  padding: 16px 18px;
  margin: 10px 0;
}
.tpl-material .bre-card-h {
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tpl-material .bre-item { padding: 7px 0; border-bottom: 1px solid #e0e0e0; }
.tpl-material .bre-item:last-child { border-bottom: 0; }
.tpl-material .bre-item-h b { font-size: 0.92em; font-weight: 500; }
.tpl-material .bre-item-h span { margin-left: 6px; font-size: 0.8em; color: #6b7280; }
.tpl-material .bre-item-h em { float: right; font-style: normal; font-size: 0.76em; color: #9aa3af; }
.tpl-material .bre-item p { margin: 3px 0 0; font-size: 0.82em; line-height: 1.6; color: rgba(0, 0, 0, 0.6); white-space: pre-wrap; }

/* ---------- oblique：斜切头图（#006064） ---------- */
.tpl-oblique {
  font-family: 'Open Sans Condensed', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #263238;
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.tpl-oblique .bre-head {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.tpl-oblique .bre-tri {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  /* 原版参数原样照抄：600/1500, -600/-200 —— 就是为 ~794px 宽的 A4 纸调的 */
  border-width: 600px 0 0 1500px;
  border-color: #006064 transparent transparent transparent;
  left: -600px;
  top: -200px;
}
.tpl-oblique .bre-head-in {
  position: absolute;
  z-index: 2;
  right: 15%;
  top: 50px;
  text-align: right;
  color: #fff;
}
.tpl-oblique .bre-head-in h2 {
  margin: 0;
  font-size: 2.6em;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.tpl-oblique .bre-head-in p {
  margin: 8px 0 0;
  font-size: 1.15em;
  line-height: 1.1;
}
.tpl-oblique .bre-body {
  padding: 10px 8% 40px;
}
.tpl-oblique .bre-about {
  font-size: 1.05em;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.62);
  white-space: pre-wrap;
  max-width: 480px;
  margin: 0 0 14px;
}
.tpl-oblique .bre-sec { margin: 18px 0; }
.tpl-oblique .bre-sec-h {
  font-size: 1.25em;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #006064;
  padding-bottom: 4px;
  margin-bottom: 10px;
  color: #006064;
}
.tpl-oblique .bre-item { margin-bottom: 12px; }
.tpl-oblique .bre-item-h b { font-size: 1.1em; font-weight: 700; }
.tpl-oblique .bre-item-h span { margin-left: 8px; font-size: 0.95em; color: #6b7280; }
.tpl-oblique .bre-item-h em { float: right; font-style: normal; font-size: 0.9em; color: #9aa3af; }
.tpl-oblique .bre-item p { margin: 3px 0 0; font-size: 0.95em; line-height: 1.65; color: rgba(0, 0, 0, 0.66); white-space: pre-wrap; }
.tpl-oblique .bre-skills { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tpl-oblique .bre-skill { font-size: 0.95em; }
.tpl-oblique .bre-skill i { font-style: normal; color: #006064; margin-right: 6px; }
.tpl-oblique .bre-contact { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.95em; }

/* 打印：已接入模板都要保色，且压进一页 */
@media print {
  .tpl-creative, .tpl-material, .tpl-oblique { min-height: 0; }
  .tpl-material .bre-head { height: 120px; }
  .tpl-oblique .bre-head { height: 170px; }
}

/* 手机：双栏压成单列 */
@media (max-width: 560px) {
  .tpl-creative, .tpl-material { flex-direction: column; }
  .tpl-creative .bre-left, .tpl-material .bre-left { width: 100%; }
  .tpl-material .bre-head { height: 150px; }
  .tpl-oblique .bre-head-in h2 { font-size: 2em; }
}

/* 模板卡片上的「原版：xxx」标注 */
.cv-tpl-src {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 9.5px;
  color: var(--fg-3);
  opacity: 0.85;
}
.cv-tpl.on .cv-tpl-src { color: var(--accent); }

/* ===========================================================
   图片位与其余九套原版模板
   来源仍为 salomonelli/best-resume-ever（MIT）：
   cool / green / purple / side-bar / side-bar-projects /
   left-right / left-right-projects / material-dark-projects /
   oblique-projects。
   原版把图片写死为 resume/id.jpg；这里改成固定的用户照片位：
   空时显示“个人照片”，上传后只替换内容，尺寸和位置不变化。
   =========================================================== */
.bre-photo { box-sizing: border-box; overflow: hidden; flex: 0 0 auto; }
.bre-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.bre-photo.is-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.72); color: rgba(0,0,0,.48);
  font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 10px; letter-spacing: .08em;
}

/* 让最初已接入的三套也真正保留照片位。 */
.tpl-creative .bre-photo-creative {
  width: 100%; height: 118px; margin: 0 0 22px;
  border: 2px solid rgba(255,255,255,.72); background: rgba(255,255,255,.22);
}
.tpl-creative .bre-photo-creative.is-placeholder { color: rgba(255,255,255,.78); background: rgba(255,255,255,.13); }
.tpl-material .bre-photo-material {
  position: absolute; z-index: 2; right: 18px; top: 18px;
  width: 72px; height: 96px; border: 3px solid #fff;
}
.tpl-oblique .bre-head-in { display: flex; align-items: flex-start; gap: 18px; }
.tpl-oblique .bre-person { min-width: 0; text-align: right; }
.tpl-oblique .bre-photo-oblique { width: 82px; height: 104px; border: 3px solid #fff; }

/* ---------- cool.vue：绿横幅 + 深灰蓝侧栏 ---------- */
.tpl-cool {
  position: relative; min-height: 560px; font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: .9em; color: #34495E;
}
.tpl-cool .bre-banner { height: 120px; box-sizing: border-box; padding: 30px; background: #42b883; color: #fff; }
.tpl-cool .bre-banner .bre-name { font-size: 2.3em; line-height: 1.1; font-weight: 500; }
.tpl-cool .bre-banner .bre-pos { margin-top: 5px; font-size: 1.12em; }
.tpl-cool .bre-banner .bre-city { margin-top: 3px; font-size: .84em; }
.tpl-cool .bre-photo-cool {
  position: absolute; z-index: 2; top: 85px; left: 210px; width: 120px; height: 120px;
  border: 5px solid #34495E; border-radius: 50%;
}
.tpl-cool .bre-columns { display: flex; min-height: 440px; }
.tpl-cool .bre-left { box-sizing: border-box; width: 240px; padding: 30px; background: #34495E; color: rgba(255,255,255,.66); }
.tpl-cool .bre-right { flex: 1; min-width: 0; padding: 30px; }
.tpl-cool .bre-sec { margin: 20px 0; }
.tpl-cool .bre-sec-h { display: flex; align-items: center; margin: 8px 0; color: #34495E; font-size: 1.2em; font-weight: 600; }
.tpl-cool .bre-left .bre-sec-h { color: #fff; }
.tpl-cool .bre-about { margin: 5px 0; color: inherit; font-size: .92em; line-height: 1.65; white-space: pre-wrap; }
.tpl-cool .bre-left .bre-contact { display: grid; gap: 7px; font-size: .9em; word-break: break-all; }
.tpl-cool .bre-left .bre-contact div { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 5px; }
.tpl-cool .bre-left .bre-contact b { color: #fff; font-weight: 500; }
.tpl-cool .bre-item { display: block; margin: 0 0 8px; }
.tpl-cool .bre-item-h b, .tpl-cool .bre-item-h span, .tpl-cool .bre-item-h em { display: block; }
.tpl-cool .bre-item-h b { font-weight: 500; color: #34495E; }
.tpl-cool .bre-item-h span { font-size: .92em; }
.tpl-cool .bre-item-h em { font-size: .82em; font-style: normal; color: #71808b; }
.tpl-cool .bre-item p { margin: 3px 0; font-size: .88em; line-height: 1.6; white-space: pre-wrap; }
.tpl-cool .bre-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.tpl-cool .bre-skill { display: block; padding: 5px; border: 1px solid #fff; color: #fff; font-size: .82em; }

/* ---------- green.vue / purple.vue：彩色页首页尾 ---------- */
.tpl-band { position: relative; min-height: 560px; font-family: 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #111; }
.tpl-band .bre-band-head {
  min-height: 178px; box-sizing: border-box; padding: 32px 100px 24px; display: flex;
  align-items: flex-start; justify-content: space-between; gap: 28px; color: #fff;
}
.tpl-green .bre-band-head, .tpl-green .bre-band-foot { background: green; box-shadow: inset 0 0 200px #301030; }
.tpl-purple .bre-band-head, .tpl-purple .bre-band-foot { background: purple; box-shadow: inset 0 0 200px #301030; }
.tpl-band .bre-band-main { min-width: 0; }
.tpl-band .bre-band-main h2 { margin: 0; color: #fff; font-size: 3.1em; line-height: 1.05; text-transform: uppercase; }
.tpl-band .bre-band-main .bre-pos { margin: 0 0 5px; font-size: 1.22em; }
.tpl-band .bre-band-contact { display: flex; flex-wrap: wrap; gap: 5px 22px; margin-top: 17px; font-size: .85em; }
.tpl-band .bre-photo-band { width: 112px; height: 132px; padding: 4px; background: #fff; }
.tpl-band .bre-band-body { padding: 35px 100px; }
.tpl-band .bre-sec { margin: 20px 0; }
.tpl-band .bre-sec-h { padding-bottom: 5px; margin-bottom: 10px; border-bottom: 1px solid currentColor; font-size: 1.45em; font-weight: 700; text-transform: uppercase; }
.tpl-green .bre-sec-h, .tpl-green .bre-item-h b, .tpl-green .bre-item-h em { color: #008000; }
.tpl-purple .bre-sec-h, .tpl-purple .bre-item-h b, .tpl-purple .bre-item-h em { color: #680568; }
.tpl-band .bre-item { margin: 10px 0 10px 46px; }
.tpl-band .bre-item-h b { font-size: 1.05em; }
.tpl-band .bre-item-h span { margin-left: 7px; font-size: .9em; }
.tpl-band .bre-item-h em { margin-left: 7px; font-style: normal; font-size: .86em; }
.tpl-band .bre-item p { margin: 4px 0 0; font-size: .88em; line-height: 1.6; white-space: pre-wrap; }
.tpl-band .bre-skills { columns: 3; column-gap: 18px; }
.tpl-band .bre-skill { display: block; margin: 0 0 5px; font-size: .88em; break-inside: avoid; }
.tpl-band .bre-skill::marker { color: inherit; }
.tpl-band .bre-band-foot { min-height: 94px; box-sizing: border-box; padding: 20px 100px; color: #fff; }
.tpl-band .bre-band-foot .bre-sec-h { margin: 0 0 5px; padding: 0; border: 0; color: #fff; font-size: 1em; }
.tpl-band .bre-band-foot p { margin: 0; font-size: .84em; line-height: 1.5; }

/* ---------- side-bar.vue / side-bar-projects.vue：黑白大图侧栏 ---------- */
.tpl-sidebar { min-height: 560px; padding-bottom: 42px; font-family: 'Raleway', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #333; }
.tpl-sidebar .bre-top { padding: 62px 8% 56px; text-align: center; }
.tpl-sidebar .bre-top h2 { margin: 0; font-size: 2.7em; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.tpl-sidebar .bre-top p { margin: 10px 0 0; letter-spacing: .22em; font-size: .9em; }
.tpl-sidebar .bre-columns { display: flex; align-items: flex-start; }
.tpl-sidebar .bre-left { box-sizing: border-box; width: 38%; padding: 0 4% 0 8%; }
.tpl-sidebar .bre-right { box-sizing: border-box; width: 62%; padding: 0 8% 0 4%; }
.tpl-sidebar .bre-photo-sidebar { width: 100%; height: 220px; }
.tpl-sidebar .bre-sec { margin: 30px 0; }
.tpl-sidebar .bre-sec-h { margin: 0 0 16px; font-size: 1em; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; }
.tpl-sidebar .bre-left .bre-sec-h { text-align: center; margin-top: 22px; }
.tpl-sidebar .bre-contact { display: grid; gap: 10px; text-align: center; word-break: break-all; }
.tpl-sidebar .bre-contact div { display: block; letter-spacing: .06em; }
.tpl-sidebar .bre-contact b, .tpl-sidebar .bre-contact span { display: block; font-weight: 400; font-size: .82em; }
.tpl-sidebar .bre-contact b { color: #777; margin-bottom: 2px; }
.tpl-sidebar .bre-item { margin: 0 0 12px; }
.tpl-sidebar .bre-item-h b { text-transform: uppercase; font-size: 1.04em; }
.tpl-sidebar .bre-item-h span { margin-left: 6px; font-size: .92em; }
.tpl-sidebar .bre-item-h em { display: block; margin-top: 3px; font-style: normal; color: #777; font-size: .82em; }
.tpl-sidebar .bre-item p, .tpl-sidebar .bre-about { margin: 4px 0; font-size: .87em; line-height: 1.6; white-space: pre-wrap; }
.tpl-sidebar .bre-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tpl-sidebar .bre-skill { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; box-sizing: border-box; padding: 5px; border: 1px solid #333; border-radius: 50%; text-align: center; font-size: .72em; line-height: 1.25; }
.tpl-sidebarproj .bre-top { padding-top: 44px; padding-bottom: 42px; }

/* ---------- left-right.vue / left-right-projects.vue：居中圆照、左右对称 ---------- */
.tpl-leftright { min-height: 560px; padding-bottom: 40px; font-family: 'Source Sans Pro', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #424242; }
.tpl-leftright .bre-top { padding: 58px 20px 0; text-align: center; }
.tpl-leftright .bre-top h2 { display: inline-block; margin: 0; padding: 10px 20px; border: 1px solid #000; font-family: 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 2.2em; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.tpl-leftright .bre-top p { margin: 6px 0 0; color: #757575; font-size: .85em; letter-spacing: .18em; text-transform: uppercase; }
.tpl-leftright .bre-photo-leftright { width: 100px; height: 100px; margin: 38px auto; border-radius: 50%; }
.tpl-leftright .bre-halves { display: flex; }
.tpl-leftright .bre-left, .tpl-leftright .bre-right { box-sizing: border-box; width: 50%; }
.tpl-leftright .bre-left { padding: 0 2% 0 5%; text-align: right; }
.tpl-leftright .bre-right { padding: 0 5% 0 2%; }
.tpl-leftright .bre-sec { margin: 0 0 30px; }
.tpl-leftright .bre-sec-h { margin: 0 0 14px; font-size: 1.05em; font-weight: 700; }
.tpl-leftright .bre-item { margin: 0 0 12px; }
.tpl-leftright .bre-item-h b, .tpl-leftright .bre-item-h span, .tpl-leftright .bre-item-h em { display: block; }
.tpl-leftright .bre-item-h b { font-size: .95em; color: #424242; }
.tpl-leftright .bre-item-h span, .tpl-leftright .bre-item-h em { color: #616161; font-size: .86em; font-style: normal; }
.tpl-leftright .bre-item p, .tpl-leftright .bre-about { margin: 4px 0; color: #616161; font-size: .84em; line-height: 1.55; white-space: pre-wrap; }
.tpl-leftright .bre-contact { display: grid; gap: 8px; color: #616161; font-size: .84em; }
.tpl-leftright .bre-contact div { display: grid; grid-template-columns: minmax(0,1fr) 38px; gap: 8px; }
.tpl-leftright .bre-contact b { order: 2; font-weight: 400; }
.tpl-leftright .bre-contact span { min-width: 0; word-break: break-all; }
.tpl-leftright .bre-skill { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 8px; margin-bottom: 10px; font-size: .84em; }
.tpl-leftright .bre-skill .k { color: #616161; }
.tpl-leftright .bre-skill .bar { height: 8px; margin-top: 4px; overflow: hidden; border-radius: 3px; background: #e0e0e0; }
.tpl-leftright .bre-skill .bar i { display: block; height: 100%; background: #757575; }
.tpl-leftrightproj .bre-top { padding-top: 40px; }

/* ---------- material-dark-projects.vue：深色照片侧栏 + 三栏卡片 ---------- */
.tpl-materialproj { display: flex; min-height: 560px; font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #cccccc; color: #3f3d3c; }
.tpl-materialproj .bre-left { box-sizing: border-box; width: 35%; background: #16151c; color: rgba(255,255,255,.72); }
.tpl-materialproj .bre-head { position: relative; height: 184px; background: #fff; }
.tpl-materialproj .bre-photo-materialproj { width: 100%; height: 100%; }
.tpl-materialproj .bre-side-body { padding: 20px 18px 26px; }
.tpl-materialproj .bre-side-body h2 { margin: 0; color: #fff; font-size: 1.15em; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.tpl-materialproj .bre-side-body .bre-pos { margin: 6px 0 18px; color: rgba(255,255,255,.55); font-size: .82em; }
.tpl-materialproj .bre-contact { display: grid; gap: 9px; font-size: .82em; word-break: break-all; }
.tpl-materialproj .bre-contact div { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 4px; }
.tpl-materialproj .bre-contact b { color: rgba(255,255,255,.48); font-weight: 400; }
.tpl-materialproj .bre-sec-h { margin: 20px 0 9px; color: rgba(255,255,255,.54); font-size: .74em; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.tpl-materialproj .bre-skill { margin-bottom: 8px; }
.tpl-materialproj .bre-skill .k { display: block; font-size: .8em; }
.tpl-materialproj .bre-skill .bar { height: 3px; margin-top: 4px; overflow: hidden; background: rgba(255,255,255,.19); }
.tpl-materialproj .bre-skill .bar i { display: block; height: 100%; background: #78909c; }
.tpl-materialproj .bre-mid, .tpl-materialproj .bre-far { box-sizing: border-box; width: 32.5%; padding: 112px 10px 24px; }
.tpl-materialproj .bre-far { width: 32.5%; }
.tpl-materialproj .bre-card { margin: 5px 0 12px; padding: 17px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16), 0 2px 10px rgba(0,0,0,.12); }
.tpl-materialproj .bre-card-h { margin-bottom: 10px; font-size: .78em; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.tpl-materialproj .bre-item { padding: 8px 0; border-bottom: 1px solid #bdbdbd; }
.tpl-materialproj .bre-item:last-child { border-bottom: 0; }
.tpl-materialproj .bre-item-h b { display: block; font-weight: 500; font-size: .92em; }
.tpl-materialproj .bre-item-h span, .tpl-materialproj .bre-item-h em { display: block; color: rgba(0,0,0,.6); font-size: .8em; font-style: normal; }
.tpl-materialproj .bre-item p, .tpl-materialproj .bre-about { margin: 4px 0 0; color: rgba(0,0,0,.62); font-size: .82em; line-height: 1.55; white-space: pre-wrap; }

/* ---------- oblique-projects.vue：更平的青色斜切头图 ---------- */
.tpl-obliqueproj { position: relative; min-height: 560px; overflow: hidden; padding-bottom: 34px; font-family: 'Open Sans Condensed', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #111; }
.tpl-obliqueproj .bre-head { position: relative; height: 230px; overflow: hidden; }
.tpl-obliqueproj .bre-tri { position: absolute; width: 0; height: 0; border-style: solid; border-width: 415px 0 0 1500px; border-color: #006064 transparent transparent; left: -600px; top: 0; }
.tpl-obliqueproj .bre-head-in { position: absolute; z-index: 2; right: 15%; top: 54px; display: flex; align-items: flex-start; gap: 18px; color: #fff; }
.tpl-obliqueproj .bre-person { text-align: right; }
.tpl-obliqueproj .bre-head-in h2 { margin: 0; font-size: 2.6em; line-height: 1; font-weight: 700; text-transform: uppercase; }
.tpl-obliqueproj .bre-head-in p { margin: 8px 0 0; font-size: 1.06em; }
.tpl-obliqueproj .bre-photo-obliqueproj { width: 82px; height: 104px; border: 3px solid #fff; }
.tpl-obliqueproj .bre-body { width: 70%; margin: 0 auto; }
.tpl-obliqueproj .bre-about { margin: 0 0 14px; color: rgba(0,0,0,.64); font-size: .96em; line-height: 1.6; white-space: pre-wrap; }
.tpl-obliqueproj .bre-sec { margin: 18px 0; }
.tpl-obliqueproj .bre-sec-h { margin-bottom: 9px; color: #006064; font-size: 1.2em; font-weight: 700; text-transform: uppercase; }
.tpl-obliqueproj .bre-item { margin-bottom: 10px; }
.tpl-obliqueproj .bre-item-h b { font-size: 1.02em; text-transform: uppercase; }
.tpl-obliqueproj .bre-item-h span { margin-left: 8px; }
.tpl-obliqueproj .bre-item-h em { display: block; color: #667; font-size: .85em; font-style: normal; }
.tpl-obliqueproj .bre-item p { margin: 3px 0 0; font-size: .88em; line-height: 1.6; white-space: pre-wrap; }
.tpl-obliqueproj .bre-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; }
.tpl-obliqueproj .bre-skill { font-size: .92em; }
.tpl-obliqueproj .bre-skill::before { content: '›'; margin-right: 8px; color: #006064; font-weight: 700; }
.tpl-obliqueproj .bre-contact-row .bre-contact { display: flex; flex-wrap: wrap; gap: 7px 18px; }
.tpl-obliqueproj .bre-contact-row .bre-contact div { display: flex; gap: 4px; }
.tpl-obliqueproj .bre-contact-row .bre-contact b { font-weight: 600; }

@media print {
  /* 占位框只服务于屏幕预览（告诉用户照片会落在哪）。
     真去打印时没照片就是没照片，不能把一个灰框印进 PDF —— 
     和「空章节不渲染」是同一条原则。已上传照片的 .has-photo 不受影响。 */
  .bre-photo.is-placeholder { display: none !important; }
  /* 占位框消失后，靠它撑开的间距也要收掉，否则头上会留一块空白 */
  .tpl-creative .bre-photo-creative.is-placeholder { margin-bottom: 0; }
  .tpl-leftright .bre-photo-leftright.is-placeholder { margin-top: 0; margin-bottom: 0; }
  .tpl-sidebar .bre-photo-sidebar.is-placeholder { margin-bottom: 0; }

  .tpl-cool, .tpl-band, .tpl-sidebar, .tpl-leftright, .tpl-materialproj, .tpl-obliqueproj { min-height: 0; }
  .tpl-band .bre-band-head { min-height: 136px; padding-top: 26px; padding-bottom: 18px; }
  .tpl-band .bre-band-body { padding-top: 24px; padding-bottom: 24px; }
  .tpl-sidebar .bre-top { padding-top: 34px; padding-bottom: 34px; }
  .tpl-materialproj .bre-mid, .tpl-materialproj .bre-far { padding-top: 26px; }
  .tpl-obliqueproj .bre-head { height: 170px; }
}

@media (max-width: 560px) {
  .tpl-cool .bre-photo-cool { left: auto; right: 20px; top: 72px; width: 92px; height: 92px; }
  .tpl-cool .bre-columns, .tpl-sidebar .bre-columns, .tpl-leftright .bre-halves, .tpl-materialproj { flex-direction: column; }
  .tpl-cool .bre-left, .tpl-sidebar .bre-left, .tpl-sidebar .bre-right, .tpl-leftright .bre-left, .tpl-leftright .bre-right, .tpl-materialproj .bre-left, .tpl-materialproj .bre-mid, .tpl-materialproj .bre-far { width: 100%; }
  .tpl-band .bre-band-head, .tpl-band .bre-band-body, .tpl-band .bre-band-foot { padding-left: 24px; padding-right: 24px; }
  .tpl-band .bre-band-main h2 { font-size: 2.15em; }
  .tpl-band .bre-photo-band { width: 78px; height: 98px; }
  .tpl-band .bre-skills { columns: 2; }
  .tpl-sidebar .bre-top h2 { font-size: 1.8em; }
  .tpl-sidebar .bre-left, .tpl-sidebar .bre-right { padding-left: 24px; padding-right: 24px; }
  .tpl-leftright .bre-top h2 { font-size: 1.55em; letter-spacing: .1em; }
  .tpl-leftright .bre-left, .tpl-leftright .bre-right { padding-left: 24px; padding-right: 24px; text-align: left; }
  .tpl-leftright .bre-contact div { grid-template-columns: 38px minmax(0,1fr); }
  .tpl-leftright .bre-contact b { order: 0; }
  .tpl-materialproj .bre-mid, .tpl-materialproj .bre-far { padding: 16px 20px; }
  .tpl-obliqueproj .bre-head-in { right: 24px; top: 42px; gap: 10px; }
  .tpl-obliqueproj .bre-head-in h2 { font-size: 1.8em; }
  .tpl-obliqueproj .bre-photo-obliqueproj { width: 64px; height: 82px; }
  .tpl-obliqueproj .bre-body { width: auto; margin: 0 24px; }
  .tpl-obliqueproj .bre-skills { grid-template-columns: 1fr; }
}

/* 技能在纸面上统一渲染为完整句子，而不是把关键词塞成标签或进度条。
   这组规则放在原版模板样式之后，保留模板的总体版式，但让每一条技能
   都有一致的“分类 → 可读表述”结构。 */
.cv-sheet-in .bre-skills.bre-skill-sentences {
  display: grid;
  grid-template-columns: 1fr;
  columns: auto;
  gap: 7px;
}
.cv-sheet-in .bre-skill.bre-skill-sentence {
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: inherit;
  line-height: 1.58;
}
.cv-sheet-in .bre-skill-sentence::before { content: none; }
.cv-sheet-in .bre-skill-sentence .k {
  display: block;
  margin: 0 0 1px;
  color: currentColor;
  font-size: .86em;
  font-weight: 700;
  letter-spacing: .02em;
}
.cv-sheet-in .bre-skill-sentence .v {
  display: block;
  color: inherit;
  font-size: .9em;
  line-height: 1.62;
}
.tpl-creative .bre-skill-sentence .k { color: #A800FA; }
.tpl-material .bre-skill-sentence .k, .tpl-materialproj .bre-skill-sentence .k { color: #78909c; }
.tpl-oblique .bre-skill-sentence .k, .tpl-obliqueproj .bre-skill-sentence .k { color: #006064; }
.tpl-band .bre-skill-sentence .k { color: inherit; }
.tpl-sidebar .bre-skill-sentence .k, .tpl-leftright .bre-skill-sentence .k { color: #424242; }
.tpl-leftright .bre-skill-sentence { text-align: left; }
.tpl-material .bre-left .bre-skill-sentence .k, .tpl-materialproj .bre-left .bre-skill-sentence .k { color: #a9bbc2; }

@media (max-width: 560px) {
  .cv-sheet-in .bre-skill-sentences { gap: 8px; }
}
