:root {
  --ink: #111111;
  --body: #222222;
  --muted: #777777;
  --line: #d8d8d8;
  --side: #f7f7f5;
  --gold: #f2a900;
  --gold-line: #e5b84b;
  --paper: #ffffff;
  --a4w: 210mm;
  --a4h: 297mm;
  color: var(--ink);
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", Inter, Helvetica, Arial, sans-serif;
}

@page {
  size: A4;
  margin: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: grid;
  place-items: start center;
  padding: 12mm 0;
  background: #ececea;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.resume-page {
  width: var(--a4w);
  height: var(--a4h);
  display: grid;
  grid-template-columns: 64mm 146mm;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.sidebar {
  min-height: 0;
  padding: 6.5mm 6.2mm 5.4mm;
  background: var(--side);
  border-right: 0.35mm solid var(--line);
}

.main-content {
  min-width: 0;
  min-height: 0;
  padding: 6.2mm 8.6mm 5.2mm 8.9mm;
  background: #fff;
}

.profile-block {
  padding-bottom: 3.7mm;
  border-bottom: 0.28mm solid var(--gold-line);
}

.avatar {
  width: 51.6mm;
  height: 58mm;
  object-fit: cover;
  object-position: center 14%;
  border: 0.28mm solid #cfcfcf;
  border-radius: 3mm;
  background: #fff;
}

.side-role {
  margin-top: 5.2mm;
}

.side-role h2,
.side-role p,
.intro,
.section-title,
.meta-line,
.body-list,
.project-title,
.project-summary p,
.strength-grid h3,
.strength-grid p,
.more-awards {
  margin: 0;
}

.side-role h2 {
  color: var(--gold);
  font-size: 13pt;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.side-role p {
  margin-top: 1.1mm;
  color: #555;
  font-size: 8.35pt;
  line-height: 1.1;
}

.intro {
  margin-top: 2.8mm;
  color: var(--body);
  font-size: 8.15pt;
  line-height: 1.42;
  text-align: justify;
}

.side-section {
  padding: 3mm 0 2.9mm;
  border-bottom: 0.28mm solid var(--gold-line);
}

.side-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 2.4mm;
  color: var(--ink);
  font-size: 13pt;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.side-title {
  font-size: 11.8pt;
  margin-bottom: 2.65mm;
}

.title-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 6.2mm;
  height: 6.2mm;
  border-radius: 50%;
  color: #fff;
  background: var(--gold);
}

.title-icon svg {
  width: 3.8mm;
  height: 3.8mm;
  stroke-width: 2.4;
}

.contact-list,
.mini-list,
.body-list {
  padding: 0;
  list-style: none;
}

.contact-list {
  display: grid;
  gap: 1.55mm;
  margin: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 4.4mm 1fr;
  align-items: center;
  gap: 2.3mm;
  color: var(--body);
  font-size: 8.35pt;
  line-height: 1.1;
  white-space: nowrap;
}

.contact-list svg {
  width: 3.8mm;
  height: 3.8mm;
  color: #111;
  stroke-width: 2.35;
}

.skill-list {
  display: grid;
  gap: 1.5mm;
}

.competency-list {
  display: grid;
  gap: 2.25mm;
}

.competency-group {
  display: grid;
  gap: 0.75mm;
}

.competency-group h4 {
  display: flex;
  align-items: center;
  gap: 1.4mm;
  margin: 0;
  color: #111;
  font-size: 8.6pt;
  line-height: 1;
  font-weight: 900;
}

.competency-group h4::before {
  content: "";
  width: 2.8mm;
  height: 0.45mm;
  flex: 0 0 auto;
  background: var(--gold);
}

.competency-group p {
  margin: 0;
  color: #333;
  font-size: 9.5pt;
  line-height: 1.38;
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr 22.2mm;
  align-items: center;
  gap: 2.8mm;
  color: var(--body);
  font-size: 8.2pt;
  line-height: 1;
}

.skill-row b {
  --filled: 6;
  position: relative;
  display: block;
  width: 20.8mm;
  height: 2mm;
  overflow: hidden;
}

.skill-row b[data-level="5"] {
  --filled: 5;
}

.skill-row b::before,
.skill-row b::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  background-image: radial-gradient(circle, currentColor 0 0.78mm, transparent 0.83mm);
  background-size: 3.45mm 2mm;
  background-repeat: repeat-x;
}

.skill-row b::before {
  width: 100%;
  color: #e2e2de;
}

.skill-row b::after {
  width: calc(var(--filled) * 3.45mm);
  color: #2d2d2d;
}

.tool-section {
  padding-bottom: 2.8mm;
}

.tool-label {
  margin: -0.3mm 0 1.65mm;
  color: #111;
  font-size: 7.9pt;
  line-height: 1;
  font-weight: 800;
}

.ai-label {
  margin-top: 2.05mm;
}

.tool-grid {
  display: grid;
  align-items: start;
  gap: 1.35mm 1.25mm;
}

.design-grid {
  grid-template-columns: repeat(5, 1fr);
}

.ai-grid {
  grid-template-columns: repeat(4, 1fr);
}

.tool-item,
.ai-tool {
  display: grid;
  justify-items: center;
  gap: 0.75mm;
  min-width: 0;
  color: #111;
  text-align: center;
}

.tool-item > span {
  display: grid;
  place-items: center;
  width: 6mm;
  height: 6mm;
  border-radius: 1.3mm;
  color: #fff;
  background: #111;
  font-size: 7pt;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.tool-item .adobe-logo {
  border: 0.35mm solid currentColor;
}

.tool-item .photoshop-logo {
  color: #31a8ff;
  background: #001e36;
}

.tool-item .illustrator-logo {
  color: #ff9a00;
  background: #330000;
}

.tool-item .indesign-logo {
  color: #ff3366;
  background: #49021f;
}

.tool-item .aftereffects-logo {
  color: #9999ff;
  background: #00005b;
}

.tool-item .figma-logo {
  background: #fff;
  border: 0.28mm solid #e2e2e2;
}

.tool-item .figma-logo svg {
  width: 3.1mm;
  height: 4.65mm;
  stroke: none;
}

.title-icon.custom-title-icon .custom-visual-image {
  width: 3.8mm;
  height: 3.8mm;
  object-fit: contain;
}

.tool-item > span.custom-tool-logo {
  color: #111;
  border: 0.28mm solid #e2e2e2;
  background: #fff;
}

.tool-item > span.custom-tool-logo .custom-visual-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-item em,
.ai-tool em {
  display: block;
  max-width: none;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 5.05pt;
  line-height: 1.05;
  font-style: normal;
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0, "liga" 0;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  letter-spacing: 0;
}

.ai-tool img {
  width: 5.7mm;
  height: 5.7mm;
  object-fit: contain;
}

.award-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 39mm;
  margin: -0.5mm auto 2.35mm;
  text-align: center;
}

.award-stats div {
  min-width: 0;
  padding: 0 2.8mm;
  text-align: center;
}

.award-stats div + div {
  border-left: 0.28mm solid var(--line);
}

.award-stats strong {
  display: block;
  color: #d62828 !important;
  font-size: 16.9pt;
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

.award-stats span {
  display: block;
  margin-top: 1.2mm;
  color: #222;
  font-size: 6.8pt;
  line-height: 1.1;
  white-space: nowrap;
}

.mini-list {
  display: grid;
  gap: 1.05mm;
  margin: 0;
  color: #222;
  font-size: 7.35pt;
  line-height: 1.34;
}

.mini-list li {
  position: relative;
  padding-left: 2.5mm;
}

.mini-list li::before,
.body-list li::before {
  content: "";
  position: absolute;
  left: 0;
  border-radius: 50%;
  background: #111;
}

.mini-list li.resume-no-bullet,
.body-list li.resume-no-bullet {
  padding-left: 0;
}

.mini-list li.resume-no-bullet::before,
.body-list li.resume-no-bullet::before {
  display: none;
}

.mini-list li::before {
  top: 2.15mm;
  width: 0.9mm;
  height: 0.9mm;
}

.more-awards {
  margin-top: 1.9mm;
  color: #333;
  font-size: 7.55pt;
  line-height: 1.2;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 28mm;
  gap: 6mm;
  align-items: start;
  padding-bottom: 4.2mm;
  border-bottom: 0.28mm solid var(--line);
}

.hero h1 {
  margin: 1.5mm 0 2.35mm;
  color: #000;
  font-size: 31.5pt;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.hero-role {
  display: flex;
  align-items: baseline;
  gap: 4.1mm;
  margin: 0 0 2.45mm;
  line-height: 1;
}

.hero-role strong {
  color: var(--gold);
  font-size: 12.8pt;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-role span {
  color: #222;
  font-size: 9.5pt;
}

.keywords {
  margin: 0;
  color: #111;
  font-size: 8.8pt;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.hero-intent {
  margin: 2.2mm 0 0;
  color: #333;
  font-size: 8.8pt;
  line-height: 1.2;
  white-space: nowrap;
}

.qr-card {
  display: grid;
  justify-items: center;
  text-align: center;
  color: #111;
}

.qr-card img {
  width: 27.4mm;
  height: 27.4mm;
  padding: 1.1mm;
  border: 0.35mm solid var(--gold);
  border-radius: 1.6mm;
  object-fit: contain;
  background: #fff;
}

.qr-card strong {
  display: block;
  margin-top: 1.25mm;
  font-size: 7.8pt;
  line-height: 1;
  font-weight: 900;
}

.qr-card span {
  display: block;
  margin-top: 0.55mm;
  color: #222;
  font-size: 6.2pt;
  line-height: 1.1;
}

.main-section {
  padding: 2.65mm 0 2.45mm;
  border-bottom: 0.28mm solid var(--line);
}

.main-section:last-child {
  border-bottom: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4mm;
  margin-bottom: 2.15mm;
}

.section-head time {
  color: #111;
  font-size: 9.7pt;
  line-height: 1;
  white-space: nowrap;
}

.meta-line {
  display: flex;
  align-items: baseline;
  gap: 3.6mm;
  color: #111;
  font-size: 8.35pt;
  line-height: 1.1;
  font-weight: 600;
}

.meta-line strong {
  font-weight: 900;
}

.meta-line span {
  color: #111;
  font-weight: 700;
}

.body-list {
  display: grid;
  gap: 1.1mm;
  margin: 1.9mm 0 0;
  color: var(--body);
  font-size: 7.7pt;
  line-height: 1.31;
}

.body-list li {
  position: relative;
  padding-left: 4.1mm;
}

.body-list li::before {
  top: 1.78mm;
  width: 1mm;
  height: 1mm;
}

.body-list strong {
  color: #111;
  font-weight: 900;
}

.dense-list {
  gap: 0.85mm;
  line-height: 1.29;
}

.education-added-entry {
  margin-top: 2.5mm;
  padding-top: 2.35mm;
  border-top: 0.28mm dashed var(--line);
}

.education-entry-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4mm;
}

.education-entry-head .meta-line {
  min-width: 0;
}

.education-entry-head time {
  color: #111;
  font-size: 9.7pt;
  line-height: 1;
  white-space: nowrap;
}

.education-added-entry .body-list {
  margin-top: 1.65mm;
}

.gold-text {
  color: var(--gold);
  font-weight: 900;
}

.project-block {
  padding-bottom: 2.55mm;
}

.project-block .section-head {
  margin-bottom: 1.25mm;
}

.project-title {
  margin-top: 0;
  color: #111;
  font-size: 8.15pt;
  line-height: 1.2;
  font-weight: 900;
}

.project-list {
  margin-top: 1.25mm;
  gap: 0.65mm;
  line-height: 1.27;
}

.project-images {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  align-items: stretch;
  gap: 2mm;
  width: 100%;
  margin-top: 1.9mm;
  margin-bottom: 2.2mm;
  height: 21.3mm;
  overflow: hidden;
}

.project-images img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1.5mm;
  object-fit: cover;
  background: #eee;
  min-width: 0;
}

.project-kv {
  object-position: center 48%;
}

.project-store {
  object-position: center 50%;
}

.project-summary {
  display: grid;
  grid-template-columns: 0.88fr 1.28fr;
  gap: 4.6mm;
  margin-top: 0;
  padding: 2.15mm 3.7mm;
  border-radius: 1.5mm;
  background: #f3f3f1;
}

.project-summary div + div {
  padding-left: 5mm;
  border-left: 0.28mm solid #cfcfcf;
}

.project-summary h4 {
  display: flex;
  align-items: center;
  gap: 2.3mm;
  margin: 0 0 1.25mm;
  color: #111;
  font-size: 7.8pt;
  line-height: 1;
  font-weight: 900;
}

.project-summary h4 svg {
  width: 4mm;
  height: 4mm;
  color: #111;
  stroke-width: 2.1;
}

.project-summary p {
  color: #222;
  font-size: 7.35pt;
  line-height: 1.28;
}

.project-metrics {
  margin: 0;
  padding: 1.45mm 3.2mm;
  border-radius: 1.5mm;
  color: #222;
  background: #f3f3f1;
  font-size: 8.6pt;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.strengths-block {
  padding-top: 2.35mm;
  padding-bottom: 2.25mm;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.05mm;
}

.strength-grid article {
  min-width: 0;
  padding: 0 2.45mm;
}

.strength-grid article:first-child {
  padding-left: 0;
}

.strength-grid article + article {
  border-left: 0.28mm solid var(--line);
}

.strength-grid svg {
  width: 3.8mm;
  height: 3.8mm;
  margin-bottom: 0.9mm;
  color: #111;
  stroke-width: 2;
}

.strength-grid article:nth-child(1) svg,
.strength-grid article:nth-child(4) svg {
  color: var(--gold);
}

.strength-grid h3 {
  color: #111;
  font-size: 7.5pt;
  line-height: 1.1;
  font-weight: 900;
}

.strength-grid p {
  margin-top: 0.9mm;
  color: #222;
  font-size: 6.65pt;
  line-height: 1.22;
  text-align: justify;
}

.more-skills {
  padding-top: 2.2mm;
}

.more-skills .body-list {
  margin-top: 1.5mm;
  gap: 0.55mm;
  font-size: 7.5pt;
  line-height: 1.2;
}

.campus-experience {
  padding-top: 2.2mm;
  padding-bottom: 2mm;
}

.campus-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 3mm;
}

.campus-head .section-title {
  white-space: nowrap;
}

.campus-head h3 {
  margin: 0;
  color: #111;
  font-size: 8pt;
  line-height: 1.15;
  font-weight: 800;
  justify-self: start;
  white-space: nowrap;
}

.campus-head time {
  color: #111;
  font-size: 8pt;
  line-height: 1;
  justify-self: end;
  white-space: nowrap;
}

.campus-experience .body-list {
  margin-top: 1.45mm;
  gap: 0.35mm;
  font-size: 7.25pt;
  line-height: 1.18;
}

/* Right-column rhythm refinements. Content, type scale and module order stay unchanged. */
.main-content > .education-block + .experience-block {
  padding-top: calc(2.65mm + 6px);
}

.main-content > .project-block {
  padding-top: calc(2.65mm + 6px);
}

.main-content > .campus-experience {
  padding-top: calc(2.2mm + 6px);
  padding-bottom: calc(2mm + 12px);
}

.main-content > .project-block .project-images {
  height: calc(21.3mm + 12px);
}

.main-content > .project-block .project-images img {
  object-fit: cover;
}

.main-content > .project-block .project-metrics {
  padding-top: calc(1.45mm + 4px);
  padding-bottom: calc(1.45mm + 4px);
}

.main-content > .campus-experience .body-list {
  line-height: calc(1.18em + 2px);
}

.campus-experience + .strengths-block {
  padding-top: 2mm;
  padding-bottom: 1.5mm;
}

.campus-experience + .strengths-block .strength-grid {
  margin-top: 1.5mm;
}

.campus-experience + .strengths-block .strength-grid p {
  margin-top: 0.65mm;
}

/* Resume body copy uses one print-readable size; headings and utility labels stay unchanged. */
.intro,
.contact-list,
.skill-row,
.competency-group p,
.mini-list,
.more-awards,
.keywords,
.intent-grid,
.meta-line,
.body-list,
.project-summary p,
.strength-grid p,
.campus-experience .body-list {
  font-size: 9.5pt;
}

@media print {
  html,
  body {
    width: var(--a4w);
    height: var(--a4h);
    padding: 0;
    background: #fff;
  }

  body {
    display: block;
  }

  .resume-page {
    width: var(--a4w);
    height: var(--a4h);
    box-shadow: none;
  }
}
