:root {
  --bg: #f4f6fb;
  --paper: #ffffff;
  --ink: #182033;
  --muted: #697386;
  --line: #dce2ee;
  --line-strong: #b8c2d7;
  --violet: #5d4ca8;
  --rose: #b84673;
  --aqua: #2f9bb2;
  --soft-violet: #f0edff;
  --soft-rose: #fff0f5;
  --soft-aqua: #eaf8fb;
  --shadow: 0 26px 70px rgba(42, 48, 71, 0.14);
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(93, 76, 168, 0.16), transparent 28%),
    linear-gradient(225deg, rgba(47, 155, 178, 0.12), transparent 34%),
    var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.resume-page {
  width: min(1040px, calc(100% - 36px));
  margin: 34px auto 54px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.resume-header {
  position: relative;
  padding: 38px 42px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(24, 32, 51, 0.98), rgba(93, 76, 168, 0.92) 56%, rgba(184, 70, 115, 0.88)),
    #182033;
}

.resume-header::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 26px;
  width: 210px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: skewX(-18deg);
}

.header-kicker {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.name-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.header-summary {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.resume-section {
  margin: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 255, 0.96));
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--rose), var(--aqua));
  font-size: 14px;
  font-weight: 900;
}

h2 {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.2;
}

h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: stretch;
}

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

.info-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.info-item span {
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--violet);
  background: linear-gradient(135deg, var(--soft-violet), var(--soft-aqua));
  font-weight: 900;
  white-space: nowrap;
}

.info-item strong {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.photo-card {
  display: grid;
  align-content: center;
  gap: 10px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--soft-rose), #ffffff 58%, var(--soft-aqua));
}

.photo-frame {
  width: 100%;
  max-width: 214px;
  aspect-ratio: 589 / 774;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 34px rgba(93, 76, 168, 0.16);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.photo-card p {
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.detail-list,
.simple-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li,
.simple-list li {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.detail-list time {
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-list p,
.simple-list p {
  margin-top: 7px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.simple-list li {
  position: relative;
  padding: 18px 18px 18px 42px;
}

.simple-list li::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(47, 155, 178, 0.14);
}

.skill-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-list li {
  padding-left: 18px;
}

.skill-list li::before {
  display: none;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.link-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--violet), transparent 62%);
  border-radius: var(--radius);
  color: var(--violet);
  background: var(--soft-violet);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.link-row a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .resume-page {
    width: min(100% - 22px, 760px);
    margin-top: 18px;
  }

  .resume-header,
  .resume-section {
    padding: 20px;
  }

  .resume-section {
    margin: 14px;
  }

  .profile-layout,
  .info-grid,
  .skill-list {
    grid-template-columns: 1fr;
  }

  .photo-card {
    min-height: 360px;
    order: -1;
  }

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .resume-page {
    width: min(100% - 14px, 760px);
    margin-top: 8px;
  }

  .resume-header,
  .resume-section {
    padding: 16px;
  }

  .info-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 21px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .resume-page {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .resume-section,
  .detail-list li,
  .simple-list li,
  .photo-card {
    break-inside: avoid;
  }

  .resume-header {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
