/* 背景、网页票券和人物是独立图层；只有人物画布参与视线切换。 */
@font-face { font-family: 'Archivo Black'; src: url('fonts/ArchivoBlack-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #fafafa;
  --white: #fff;
  --ink: #141412;
  --muted: #656560;
  --red: #ed171c;
  --rule: #deddd8;
  --action: #d91117;
  --control-border: #e1e0dc;
  --control-hover: #f0efeb;
  --control-motion: 180ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 48%, #fff 0, #fafafa 76%); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 5px; }
html { scrollbar-width: thin; scrollbar-color: #bfbeba var(--paper); }
button:focus, a:focus { outline: none; }
.keyboard-navigation button:focus-visible:not(.ticket):not(.person-chat) { background: var(--ink); color: var(--white); }
.keyboard-navigation a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
::selection { background: var(--red); color: var(--white); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.portfolio { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: clip; }
.scene { position: relative; isolation: isolate; container-type: inline-size; width: min(100vw, 1800px); height: 100svh; }
.lettering { position: absolute; inset: 43% 1.8% auto; z-index: 0; pointer-events: none; font-family: 'Archivo Black', sans-serif; }
.lettering-outline { display: block; white-space: nowrap; font-size: 16.5cqw; line-height: .95; letter-spacing: -.04em; font-style: italic; color: transparent; -webkit-text-stroke: .6px rgb(237 23 28 / .5); }
.lettering-solid { display: flex; justify-content: space-between; gap: 2%; margin-top: -.5%; font-size: 8.65cqw; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
#lettering-primary, [data-transition-id="lettering-primary"] { color: var(--red); }
#lettering-secondary, [data-transition-id="lettering-secondary"] { color: #060606; }
.person-layer { position: absolute; bottom: 0; left: 50%; width: min(var(--person-width, 33%), calc(76svh * var(--person-ratio, .81942))); aspect-ratio: var(--person-ratio, .81942); transform: translateX(-50%); z-index: 3; pointer-events: none; }
.person-layer img, .person-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ticket { position: absolute; left: var(--card-left); top: var(--card-top); width: var(--card-width); aspect-ratio: 360 / 230; padding: 0; border: 0; text-align: left; background: transparent; cursor: pointer; pointer-events: auto; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; container-type: inline-size; transform: rotate(var(--card-rotation)); filter: drop-shadow(0 13px 11px rgb(20 20 20 / .18)); transition: transform var(--card-motion, 180ms) var(--ease), filter var(--card-motion, 180ms) var(--ease); }
.ticket:hover, .ticket.is-active { transform: rotate(var(--card-rotation)) translateY(-4px) scale(1.025); filter: drop-shadow(0 18px 15px rgb(20 20 20 / .25)); }
.keyboard-navigation .ticket:focus-visible { transform: rotate(var(--card-rotation)) translateY(-4px) scale(1.025); filter: drop-shadow(0 18px 15px rgb(20 20 20 / .25)); }
.keyboard-navigation .ticket:focus-visible .ticket-paper path { stroke: var(--ink); stroke-width: 2.5; }
.ticket:active { transform: rotate(var(--card-rotation)) translateY(-1px) scale(.99); }
.ticket-paper { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; }
.ticket-face { position: absolute; inset: 6% 8% 8%; display: flex; flex-direction: column; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 6%; height: 37%; border-bottom: 1px solid #cbcaca; }
.ticket-number { color: #f10c14; font: italic 700 27cqw/.9 Georgia, serif; letter-spacing: -.04em; }
.ticket-category { color: #707074; font-size: 3.3cqw; font-weight: 500; letter-spacing: .035em; padding-top: 5%; }
.ticket-title { display: block; margin-top: 3.5%; color: #080808; font-weight: 900; font-size: 12.8cqw; line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }
.ticket-subtitle { color: #6b6b6f; font-size: 4.4cqw; letter-spacing: .14em; line-height: 1.5; }
.ticket-bottom { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 5%; }
.ticket-arrow { width: 10%; height: 8cqw; display: grid; place-items: center; color: #080808; }
.ticket-arrow svg { width: 100%; height: 100%; stroke-width: 1.4; }
.ticket-barcode { display: block; width: 35%; height: 6cqw; opacity: .75; background: repeating-linear-gradient(90deg, #252528 0 1px, transparent 1px 2px, #252528 2px 4px, transparent 4px 5px, #252528 5px 6px, transparent 6px 9px, #252528 9px 12px, transparent 12px 13px); }
.ticket-serial { color: #747478; font-size: 3.6cqw; white-space: nowrap; }
.ticket-accent { position: absolute; left: 0; top: 7%; width: 4%; height: 57%; background: #f10c14; clip-path: polygon(0 0, 100% 0, 100% 40%, 70% 44%, 100% 48%, 100% 100%, 0 96%); }
.ticket[data-number="02"] .ticket-accent { left: auto; right: 11%; top: 16%; width: 5%; height: 5%; background: repeating-linear-gradient(110deg, #f10c14 0 3px, transparent 3px 7px); clip-path: none; }
.ticket[data-number="02"] .ticket-arrow { width: 10%; border-radius: 50%; background: #f10c14; color: #fff; }
.ticket[data-number="03"] .ticket-accent, .ticket[data-number="04"] .ticket-accent { left: 0; top: 0; width: 10%; height: 18%; clip-path: polygon(32% 0, 100% 0, 100% 70%, 0 100%, 0 32%); }
.ticket[data-number="04"] .ticket-accent { left: auto; right: 0; transform: scaleX(-1); width: 18%; height: 17%; }
.ticket[data-number="03"] .ticket-arrow, .ticket[data-number="04"] .ticket-arrow { height: 1cqw; width: 16%; margin-bottom: 3%; background: #f10c14; }
.ticket[data-number="03"] .ticket-arrow svg, .ticket[data-number="04"] .ticket-arrow svg { display: none; }
.integrations { position: fixed; right: 24px; bottom: 24px; display: flex; gap: 12px; z-index: 4; }
.integrations:empty { display: none; }
.resume-download { position: fixed; top: 24px; right: 28px; z-index: 5; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; text-decoration: none; transition: background var(--control-motion), border-color var(--control-motion), transform var(--control-motion); }
.resume-download svg { width: 18px; height: 18px; }
.resume-download:hover { background: var(--action); border-color: var(--action); }
.resume-download:active { transform: translateY(1px); }
.resume-download:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
.integrations a { padding: 12px 16px; background: #fff; border: 1px solid var(--rule); font-size: 14px; text-decoration: none; }

.detail-dialog { width: min(840px, calc(100% - 64px)); max-width: none; height: min(760px, calc(100svh - 96px)); max-height: none; padding: 0; overflow: visible; border: 1px solid rgb(255 255 255 / .8); border-radius: 16px; background: #fdfcfb; color: var(--ink); box-shadow: 0 24px 80px rgb(22 17 17 / .14); }
.detail-dialog::backdrop { background: rgb(32 28 24 / .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.detail-dialog.is-opening::backdrop { animation: backdrop-in 280ms ease-out; }
.detail-dialog.is-closing::backdrop { animation: backdrop-out 240ms ease-in forwards; }
.detail-panel { height: 100%; display: flex; flex-direction: column; }
.detail-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px 36px; border-bottom: 1px solid var(--rule); }
.detail-title-row { display: flex; gap: 22px; align-items: center; min-width: 0; }
.detail-number { color: var(--red); font: italic 700 48px/1 Georgia, serif; }
.detail-heading h2 { font-size: 27px; letter-spacing: -.025em; margin: 0; line-height: 1.35; }
.detail-close { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 50%; cursor: pointer; transition: background var(--control-motion), transform var(--control-motion) var(--ease); }
.detail-close svg { width: 20px; height: 20px; }
.detail-close:hover { background: var(--control-hover); }
.detail-close:active { transform: scale(.94); }
.detail-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 40px 32px; scrollbar-width: thin; scrollbar-color: #c1beb7 transparent; }
.detail-content:focus { outline: none; }
.keyboard-navigation .detail-content:focus-visible { background: #f0efeb; }
.entries-list .entry + .entry { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 32px; }
.entry-header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.entry h3 { margin: 0; font-size: 22px; line-height: 1.45; letter-spacing: -.015em; text-wrap: balance; }
.entry-period { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry-role { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.entry p, .entry li { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.entry p { margin-top: 12px; margin-bottom: 12px; }
.entry p.entry-role { font-size: 13px; margin-top: 6px; color: var(--muted); }
.entry p.entry-project { font-size: 16px; font-weight: 650; margin: 20px 0 8px; }
.entry h4 { margin: 22px 0 8px; font-size: 14px; font-weight: 650; }
.entry ul { padding-left: 20px; margin: 0; }
.entry li + li { margin-top: 6px; }
.entry li::marker { color: var(--red); }
.entry .result-list { margin: 0; padding: 0; list-style: none; }
.result-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 20px; padding: 10px 0; border-top: 1px solid var(--rule); }
.result-list li + li { margin-top: 0; }
.result-value { color: var(--action); font-size: 17px; font-weight: 650; line-height: 1.5; text-align: right; font-variant-numeric: tabular-nums; }
.result-label { font-size: 13px; font-weight: 600; }
.result-detail { grid-column: 1 / -1; font-size: 12px; line-height: 1.65; color: var(--muted); }
.detail-tabs { display: flex; flex: 0 0 auto; gap: 8px; padding: 0 36px; border-bottom: 1px solid var(--rule); }
.detail-tab { flex: 1; min-width: 0; min-height: 56px; padding: 12px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: color var(--control-motion), background var(--control-motion); }
.detail-tab:hover { background: var(--control-hover); color: var(--ink); }
.detail-tab[aria-selected="true"] { border-bottom-color: var(--action); color: var(--action); }
.detail-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
.detail-dialog[data-layout="tabs"] .detail-heading { padding-block: 24px; }
.detail-dialog[data-layout="tabs"] .detail-content { padding-block: 24px; }
.detail-dialog[data-layout="tabs"] .entry h4 { margin-top: 18px; }
.detail-dialog[data-layout="tabs"] .entry p.entry-project { margin-top: 16px; }
.detail-dialog[data-layout="tabs"] .result-list li { padding-block: 8px; }
.entry[role="tabpanel"]:focus { outline: none; }
.entry[role="tabpanel"]:focus-visible { outline: 2px solid var(--action); outline-offset: 6px; }
.entry-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.entry-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--action); }
.profile-entry { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; gap: 22px; }
.profile-identity { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.profile-identity h3 { font-size: 24px; }
.profile-target { display: flex; align-items: baseline; gap: 14px; }
.profile-target span { color: var(--muted); font-size: 12px; }
.profile-target strong { font-size: 16px; font-weight: 650; }
.profile-school { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.school-mark { display: grid; place-items: center; flex: 0 0 112px; height: 112px; }
.school-mark img { width: 80px; height: 80px; object-fit: cover; clip-path: inset(2px); }
.entry .profile-school h4 { font-size: 22px; margin: 0 0 6px; }
.entry .school-period { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry .school-major { margin: 0; font-size: 13px; }
.profile-facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.profile-facts > div { grid-column: span 3; min-width: 0; }
.profile-facts > .contact-fact { grid-column: span 6; }
.profile-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.profile-facts dd { margin: 0; font-size: 14px; line-height: 1.7; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-facts a { text-decoration-color: var(--rule); }
.profile-facts a:hover { text-decoration-color: var(--action); color: var(--action); }
.profile-facts a:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
.profile-entry .profile-introduction h4 { margin: 0 0 8px; }
.profile-entry .profile-introduction p { margin: 0; }
.skill-list { display: grid; gap: 7px; margin: 0; }
.skill-list > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; font-size: 13px; line-height: 1.65; }
.skill-list dt { color: var(--muted); }
.skill-list dd { margin: 0; overflow-wrap: anywhere; }
.detail-introduction { margin: 0 0 28px; font-size: 15px; line-height: 1.8; max-width: 65ch; }
.strengths-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.strengths-grid .entry h3 { font-size: 17px; }
.strengths-grid .entry p { margin: 8px 0 0; }
.strength-skills, .self-evaluation { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.strength-skills h3, .self-evaluation h3 { font-size: 18px; line-height: 1.5; margin: 0 0 16px; }
.strength-skill-list { display: grid; gap: 16px; margin: 0; }
.strength-skill-list > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; font-size: 13px; line-height: 1.7; }
.strength-skill-list dt { font-weight: 600; }
.strength-skill-list dd { margin: 0; min-width: 0; }
.strength-skill-list p { margin: 0; }
.strength-skill-list .skill-tools { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.self-evaluation-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.75; }
.self-evaluation-list li + li { margin-top: 10px; }
.self-evaluation-list li::marker { color: var(--muted); }
.responsibility-list strong, .project-highlights strong, .self-evaluation-list strong { font-weight: 650; }
.project-comparison { margin-top: 24px; }
.project-comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.7; }
.project-comparison caption { margin-bottom: 10px; text-align: left; font-size: 14px; font-weight: 650; }
.project-comparison th, .project-comparison td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.project-comparison thead { background: var(--control-hover); font-size: 12px; }
.project-comparison th { font-weight: 600; }
.project-comparison th:first-child { width: 22%; }
.entry p.comparison-note { margin: 12px 0 0; font-size: 13px; }
.comparison-sources { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.comparison-sources a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
.project-limitations { color: var(--muted); }
@media (min-width: 701px) { .detail-dialog[data-layout="profile"] { height: min(650px, calc(100svh - 96px)); } }
.detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 36px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--muted); }
.detail-footer svg { width: 64px; height: 14px; border: 0; }
body.has-dialog { overflow: hidden; }
.noscript-note { margin: 40px; font-size: 16px; }
@keyframes backdrop-in { from { background-color: rgb(32 28 24 / 0); } }
@keyframes backdrop-out { to { background-color: rgb(32 28 24 / 0); } }

@media (max-width: 900px) {
  .scene { width: 100%; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 72px; padding: calc(var(--phone-top, 48px) + 48px) 0 0; }
  .resume-download { top: 16px; right: 18px; }
  .cards { position: relative; inset: auto; flex: 0 0 auto; width: min(560px, calc(100% - var(--phone-padding, 18px) * 2)); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--phone-column-gap, 18px); row-gap: var(--phone-row-gap, 28px); }
  .ticket { position: relative; top: auto; left: auto; width: 100%; transform: rotate(-5deg); }
  .ticket:nth-child(even) { --card-rotation: 5deg; transform: rotate(5deg); }
  .ticket:nth-child(odd) { --card-rotation: -5deg; }
  .ticket:hover, .ticket.is-active { transform: rotate(var(--card-rotation)) translateY(-3px) scale(1.025); }
  .ticket:active { transform: rotate(var(--card-rotation)) scale(.99); }
  .ticket-title { font-size: 13.4cqw; }
  .ticket-category { font-size: 3.8cqw; }
  .ticket-subtitle { font-size: 4.8cqw; }
  .ticket-serial { font-size: 4.2cqw; }
  .person-layer { position: relative; flex: 0 0 auto; left: 43%; bottom: auto; width: min(var(--phone-person-width, 86%), var(--phone-person-max, 420px)); }
  .lettering { top: var(--figure-top); bottom: auto; inset-inline: 2%; }
  .lettering-outline { font-size: 16.5cqw; }
  .lettering-solid { gap: 2%; font-size: 8.65cqw; }
}

@media (max-width: 700px) {
  .detail-dialog { width: calc(100% - 28px); height: calc(100svh - 64px); border-radius: 10px; }
  .detail-heading { padding: 22px 20px; gap: 12px; }
  .detail-title-row { gap: 14px; }
  .detail-number { font-size: 40px; }
  .detail-heading h2 { font-size: 23px; }
  .detail-content { padding: 24px 22px 28px; }
  .detail-footer { padding: 16px 22px; }
  .entry h3 { font-size: 21px; }
  .entry-header { gap: 6px; }
  .entry-period { font-size: 11px; }
  .entry p, .entry li { font-size: 14px; }
  .result-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 12px; }
  .result-value { font-size: 15px; }
  .detail-tabs { padding: 0 14px; gap: 0; }
  .detail-tab { font-size: 13px; padding: 12px 4px; min-height: 52px; }
  .detail-dialog[data-layout="tabs"] .detail-heading { padding-block: 22px; }
  .profile-entry { gap: 24px; }
  .profile-identity { align-items: flex-start; gap: 16px; }
  .profile-identity h3 { font-size: 22px; }
  .profile-target { flex-direction: column; gap: 2px; }
  .profile-target strong { font-size: 15px; }
  .profile-school { gap: 10px; }
  .school-mark { flex-basis: 80px; height: 100px; }
  .school-mark img { width: 60px; height: 60px; }
  .entry .profile-school h4 { font-size: 19px; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .profile-facts > div { grid-column: span 1; }
  .profile-facts > .contact-fact { grid-column: 1 / -1; }
  .skill-list > div { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .strengths-grid { grid-template-columns: 1fr; gap: 24px; }
  .strength-skill-list > div { grid-template-columns: 1fr; gap: 6px; }
  .project-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .project-comparison tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .project-comparison tbody th, .project-comparison tbody td { display: block; width: auto; padding: 0; border: 0; }
  .project-comparison tbody th:first-child { grid-column: 1 / -1; width: auto; }
  .project-comparison td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
  .detail-introduction { font-size: 14px; margin-bottom: 24px; }
}

@media (min-width: 901px) and (max-height: 640px) {
  .scene { height: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
