:root {
  --page-bg: #e7edf3;
  --paper: #ffffff;
  --ink: #1f2730;
  --muted: #5e6b79;
  --line: #dbe3ea;
  --bar: #d8e1ea;
  --bar-accent: #2f78aa;
  --bar-text: #ffffff;
  --link: #245d85;
  --shadow: 0 30px 80px rgba(31, 39, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 18%),
    linear-gradient(135deg, #eef3f7 0%, #e7edf3 44%, #dde6ee 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 120, 170, 0.12), transparent 24%),
    radial-gradient(circle at right 18%, rgba(129, 157, 182, 0.18), transparent 18%);
  pointer-events: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.app-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.kicker {
  margin: 0 0 8px;
  color: #48687e;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.app-header h1 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.download-link {
  flex-shrink: 0;
  padding: 12px 18px;
  border: 1px solid #b9cad7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #214d6d;
  font-size: 0.92rem;
  font-weight: 700;
}

.resume-paper {
  padding: 24px 26px 28px;
  background:
    linear-gradient(180deg, rgba(246, 249, 252, 0.96), rgba(255, 255, 255, 1) 14%),
    repeating-linear-gradient(180deg, rgba(216, 225, 234, 0.12) 0, rgba(216, 225, 234, 0.12) 1px, transparent 1px, transparent 42px);
  border: 1px solid #d4dde5;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.resume-section + .resume-section {
  margin-top: 22px;
}

.section-bar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  background: linear-gradient(90deg, var(--bar), #e5ebf1);
}

.section-bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  padding: 8px 18px;
  background: linear-gradient(90deg, var(--bar-accent), #3e89ba);
  color: var(--bar-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.resume-section > .section-bar {
  margin-bottom: 14px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 28px;
  align-items: start;
}

.profile-main {
  display: grid;
  gap: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

.info-grid p,
.entry p,
.entry li,
.summary-box p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.9;
}

.info-grid span,
.label {
  font-weight: 700;
}

.full-row {
  grid-column: 1 / -1;
}

.section-block .section-bar {
  margin-bottom: 10px;
}

.compact-block {
  padding-top: 2px;
}

.intent {
  font-size: 1.08rem;
  font-weight: 700;
}

.photo-wrap {
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: 118px;
  height: 146px;
  border: 1px solid #b8cad8;
  object-fit: cover;
  background: #edf5fb;
  box-shadow: 0 10px 24px rgba(36, 93, 133, 0.12);
}

.entry {
  display: grid;
  gap: 10px;
}

.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.entry-head strong {
  font-size: 1rem;
}

.entry-head span,
.entry-head a {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.entry-head strong,
.entry-head span,
.info-grid p {
  word-break: keep-all;
}

.entry-head a,
.link-list a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.education-head {
  display: grid;
  grid-template-columns: 180px 1fr 120px;
}

.entry ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.link-list {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  background: #f9fbfc;
}

.skill-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.skill-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.summary-box {
  display: grid;
  gap: 10px;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 20px, 1080px);
    padding: 18px 0 28px;
  }

  .app-header,
  .entry-head,
  .education-head {
    display: grid;
    gap: 8px;
  }

  .education-head {
    grid-template-columns: 1fr;
  }

  .app-header {
    justify-content: start;
  }

  .download-link {
    width: fit-content;
  }

  .resume-paper {
    padding: 18px;
    border-radius: 16px;
  }

  .skills-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 18px;
  }

  .profile-main {
    display: grid;
    gap: 16px;
  }

  .photo-wrap {
    justify-content: flex-end;
    align-items: start;
  }

  .profile-photo {
    width: 118px;
    height: 146px;
  }

  .entry-head span,
  .entry-head a {
    flex-shrink: 1;
  }

  .education-head strong:last-child {
    color: var(--muted);
  }

  .link-list {
    gap: 8px;
  }

  .link-list p {
    line-height: 1.7;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: calc(100% - 12px);
    padding: 10px 0 18px;
  }

  .app-header {
    margin-bottom: 12px;
  }

  .kicker {
    margin-bottom: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .app-header h1 {
    font-size: clamp(1.72rem, 7vw, 2.1rem);
  }

  .download-link {
    width: 100%;
    padding: 10px 14px;
    text-align: center;
    border-radius: 12px;
  }

  .resume-paper {
    padding: 14px 12px 18px;
    border-radius: 12px;
  }

  .resume-section + .resume-section {
    margin-top: 18px;
  }

  .section-bar {
    min-height: 28px;
  }

  .section-bar span {
    min-width: 84px;
    padding: 6px 14px;
    font-size: 0.92rem;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 14px;
    align-items: start;
  }

  .profile-main {
    gap: 12px;
  }

  .profile-photo {
    width: 104px;
    height: 128px;
  }

  .info-grid {
    gap: 8px;
  }

  .info-grid p,
  .entry p,
  .entry li,
  .summary-box p {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .entry {
    gap: 8px;
  }

  .entry-head {
    padding-bottom: 8px;
  }

  .education-head {
    gap: 4px;
  }

  .entry-head strong {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .entry-head span,
  .entry-head a {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .entry ul,
  .skill-card ul {
    padding-left: 18px;
    gap: 4px;
  }

  .skills-grid {
    gap: 12px;
  }

  .skill-card {
    padding: 14px;
  }

  .skill-card h2 {
    margin-bottom: 8px;
    font-size: 0.96rem;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  body::before {
    display: none;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .app-header {
    margin-bottom: 12px;
  }

  .download-link {
    display: none;
  }

  .resume-paper {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
  }
}
