:root {
  --navy: #17385f;
  --blue: #2e6dba;
  --red: #a51f2d;
  --red-deep: #7e1622;
  --ink: #162b47;
  --muted: #627187;
  --line: #d8e0ea;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --radius: 6px;
  --font: "Inter", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: #e8edf4; color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.55; }
.resume-page { display: grid; grid-template-columns: 286px minmax(0, 1fr); width: min(1180px, calc(100% - 48px)); min-height: calc(100vh - 48px); margin: 24px auto; overflow: hidden; background: var(--paper); box-shadow: 0 14px 38px rgba(22, 43, 71, 0.13); }

.identity-rail { padding: 30px 25px 42px; color: #fff; background: var(--red); }
.portrait { display: block; width: 130px; height: 158px; margin: 0 auto 16px; border: 5px solid rgba(255,255,255,.82); object-fit: cover; object-position: center top; }
.rail-intro { text-align: center; }
.rail-intro h2 { margin: 0; font-size: 25px; letter-spacing: 0; }
.rail-intro p { margin: 5px 0 0; color: rgba(255,255,255,.82); font-size: 12px; }
.rail-intro .tagline { margin-top: 10px; font-weight: 600; color: #fff; }
.rail-intro .objective { margin-top: 8px; color: #fff; font-size: 14px; font-weight: 700; }
.rail-section { margin-top: 24px; padding: 14px 12px 2px; border: 2px dashed rgba(255, 225, 72, .8); border-radius: 18px; }
.section-heading { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 5px 12px 5px 8px; background: var(--red); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.rail-section .section-heading { display: block; width: max-content; max-width: calc(100% + 18px); margin: -28px auto 11px; padding: 2px 9px; background: var(--red); color: #ffe149; font-size: 14px; text-align: center; }
.rail-section .title-icon { display: none; }
.title-icon { position: relative; display: inline-block; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid #111; }
.title-icon::after { position: absolute; background: #111; content: ""; }
.icon-info::after { width: 6px; height: 2px; top: 4px; left: 2px; box-shadow: 0 4px 0 #111; }
.icon-course { border-radius: 50%; }.icon-course::after { width: 2px; height: 10px; top: 0; left: 4px; transform: rotate(45deg); }
.icon-skills::after { width: 8px; height: 3px; top: 3px; left: 1px; box-shadow: 0 4px 0 #111; }
.icon-education::after { width: 8px; height: 4px; top: 3px; left: 1px; transform: skewY(-25deg); }.icon-honor { border-radius: 50%; }.icon-honor::after { width: 4px; height: 4px; top: 3px; left: 3px; border-radius: 50%; }.icon-work::after { width: 8px; height: 5px; top: 4px; left: 1px; }.icon-teaching::after { width: 8px; height: 2px; top: 4px; left: 1px; box-shadow: 0 4px 0 #111; }
.detail-list,.course-list,.skill-list { margin: 0 0 12px; padding: 0; list-style: none; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }.detail-list li,.course-list li,.skill-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.18); }.detail-list li:last-child,.course-list li:last-child,.skill-list li:last-child { border-bottom: 0; }.detail-list { text-align: left; }.detail-list li { display: flex; justify-content: flex-start; align-items: baseline; text-align: left; white-space: nowrap; }.info-label { width: 5em; text-align: justify; text-align-last: justify; }.info-colon { flex: 0 0 auto; }.info-value { flex: 0 1 auto; min-width: 0; }

.main-record { min-width: 0; padding: 27px 48px 50px; }.record-header { display: flex; justify-content: flex-end; align-items: center; min-height: 67px; padding-bottom: 16px; }.school-logo { width: min(250px, 42%); height: auto; object-fit: contain; }
.record-section { padding: 28px 0; border-bottom: 2px dashed var(--red); }.record-section:last-child { border-bottom: 0; }.section-label { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }.section-label .section-heading { display: flex; align-items: center; height: 34px; padding: 0 12px; background: var(--red); color: #fff; font-size: 18px; }.section-label .title-icon { display: block; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; }
.education-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }.education-main,.education-metrics { padding: 0; }.education-metrics { text-align: right; }.education-main h3 { margin: 0 0 3px; font-size: 16px; }.education-main p,.education-metrics p { margin: 4px 0; color: var(--muted); }.education-metrics strong { color: var(--navy); }.honor-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }.honor-group { min-width: 0; }.honor-group h3 { margin: 0 0 10px; color: var(--navy); font-size: 14px; }.honor-list { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }.record-list { display: grid; gap: 10px; }.record-entry { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 15px; padding: 0; }.record-entry time { color: var(--red); font-size: 12px; font-weight: 600; }.record-entry h3 { margin: 0 0 4px; font-size: 15px; }.record-entry p { margin: 0; color: var(--muted); }.empty-state { margin: 0; padding: 0; color: var(--muted); }

@media (max-width: 800px) { .resume-page { display: block; width: 100%; margin: 0; box-shadow: none; }.identity-rail { padding: 28px 24px; }.main-record { padding: 30px 24px; }.rail-section { border-radius: 12px; }.honor-groups { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .record-header { align-items: flex-start; flex-direction: column; }.school-logo { width: 230px; max-width: 100%; }.record-title { text-align: left; }.education-panel { grid-template-columns: 1fr; }.education-metrics { border-top: 1px solid var(--line); border-left: 0; }.record-entry { grid-template-columns: 1fr; gap: 3px; }.section-label h2 { font-size: 17px; } }
