/* 简历页 */
.resume { background: var(--bg-2); }

.rbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 860px; margin: 0 auto; padding: 18px 24px;
}

.paper {
  max-width: 860px; margin: 0 auto 80px; padding: clamp(32px, 5vw, 64px);
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-md); border: 1px solid var(--line);
}

.rhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rhead h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.rhead p { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.rhead__contact { text-align: right; font-size: 14px; color: var(--ink-2); line-height: 1.9; }

.rsec { padding: 26px 0; border-bottom: 1px solid var(--line); }
.rsec:last-child { border-bottom: 0; }
.rsec h2 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.rsec p { font-size: 16px; line-height: 1.75; }

.rgrid { display: grid; grid-template-columns: 150px 1fr; gap: 8px 24px; }
.rgrid + .rgrid { margin-top: 18px; }
.rgrid__time { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.rgrid__title { font-size: 17px; font-weight: 600; }
.rgrid__org { font-size: 14px; color: var(--ink-2); }
.rgrid__desc { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

.rskills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.rskill__row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.rskill__row span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rskill__bar { height: 3px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.rskill__bar i { display: block; height: 100%; background: var(--ink); }

.rwork { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: center; padding: 12px 0; }
.rwork + .rwork { border-top: 1px solid var(--line); }
.rwork img { width: 76px; height: 57px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.rwork b { font-size: 16px; font-weight: 600; }
.rwork span { display: block; font-size: 13px; color: var(--ink-3); }
.rwork p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

@media (max-width: 640px) {
  .rgrid { grid-template-columns: 1fr; }
  .rskills { grid-template-columns: 1fr; }
  .rhead__contact { text-align: left; }
  .paper { border-radius: 0; border: 0; margin-bottom: 0; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  .resume { background: #fff; }
  .no-print { display: none !important; }
  .paper { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; }
  .rsec { padding: 18px 0; }
  a { color: inherit; }
}
