/* 公开版简历：屏幕上是一张纸，打印/导出时是 A4 */
.resume-page {
  background: var(--paper-2);
}
.resume-bar {
  max-width: 210mm;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.resume-bar > a:first-child {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
}
.resume-bar .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.sheet {
  max-width: 210mm;
  margin: 0 auto 64px;
  padding: 16mm 15mm 14mm;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -40px rgba(31, 27, 23, 0.5);
  font-size: 12.5px;
  line-height: 1.7;
}
.sheet a {
  text-decoration: underline;
  text-decoration-color: #d4ccc0;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.cv-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 14px;
}
.cv-head img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}
.cv-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}
.cv-head h1 span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.cv-head p {
  margin: 2px 0 0;
  color: var(--ink-2);
}
.cv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-family: var(--mono);
  font-size: 11px;
}
.cv-intent {
  padding: 8px 14px;
  border-radius: 8px;
  background: #fbf2ea;
}
.cv-intent p {
  margin: 0;
}
.sheet section {
  margin-top: 16px;
}
.sheet h2 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sheet h2 span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--apricot-ink);
}
.sheet ul {
  margin: 0;
  padding-left: 16px;
}
.sheet li {
  margin: 3px 0;
}
.sheet article + article {
  margin-top: 12px;
}
.sheet article p {
  margin: 2px 0;
}
.cv-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cv-item-head span {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.cv-meta {
  color: var(--ink-2);
}
.cv-foot {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .resume-bar {
    padding: 12px var(--gutter);
  }
  .sheet {
    margin: 0 0 40px;
    padding: 24px var(--gutter);
    box-shadow: none;
  }
  .cv-item-head {
    flex-direction: column;
    gap: 0;
  }
}

@page {
  size: A4;
  margin: 12mm 13mm;
}
@media print {
  .resume-page {
    background: #fff;
  }
  .resume-bar {
    display: none;
  }
  .sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .sheet a {
    text-decoration: none;
  }
  .sheet article,
  .sheet li {
    break-inside: avoid;
  }
  .sheet h2 {
    break-after: avoid;
  }
}
