/* Preserve the supplied ticket artwork. Design variance 6, motion 4, detail density 6.
   Layer order: base 0, full-artwork reactions 1, intro 2, controls 3; dialogs use the top layer.
   Detail hierarchy: identity masthead > project title > work points > labeled outcome.
   Center identity groups in mastheads; reading text stays left aligned. */
:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #201b18;
  --red: #c60812;
  --muted: #625c56;
  --line: #d6d0c6;
  --surface: #ede9e1;
  --body-text: #48423d;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
.asset-filters { position: absolute; pointer-events: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; color: var(--muted); }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.portfolio { min-height: 100svh; display: grid; place-items: center; padding: 18px 24px; }
.scene-shell { width: min(100%,calc((100svh - 106px)*16/9),1920px); margin: auto; }
.scene { position: relative; aspect-ratio: 16/9; isolation: isolate; }
.scene-base, .scene-state, .intro { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.scene-base { z-index: 0; }
#character-states {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.scene-state { opacity: 0; transition: opacity 160ms ease-out; }
.scene-state.is-visible { opacity: 1; }
.intro { z-index: 2; opacity: 0; }
.intro.is-playing { opacity: 1; }
.hotspots { position: absolute; inset: 0; z-index: 3; }
.hotspot { position: absolute; border: 0; padding: 0; background: transparent; border-radius: 8px; transform: rotate(var(--tilt)); }
.hotspot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hotspot:focus-visible { outline: none; }
.scene:not([data-input="pointer"]) .hotspot:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }
.hotspot.research { left: 5.65%; top: 22.55%; width: 18.2%; height: 19.8%; --tilt: -17.5deg; }
.hotspot.experience { left: 28.1%; top: 9%; width: 18.2%; height: 20%; --tilt: -10.5deg; }
.hotspot.projects { left: 52.8%; top: 9.1%; width: 18.2%; height: 20%; --tilt: 9.5deg; }
.hotspot.capabilities { left: 75.2%; top: 22.65%; width: 18.2%; height: 20%; --tilt: 17deg; }
.hotspot.about { left: 3.1%; top: 58.5%; width: 25.5%; height: 31%; --tilt: 0deg; }
.mobile-tickets { display: none; }
.utility-bar { display: flex; align-items: center; gap: 22px; padding: 17px 4px 0; min-height: 62px; font-size: .875rem; }
.utility-bar button { border: 0; background: transparent; padding: 9px 0; font-size: inherit; }
.utility-bar button:not(:disabled):hover, .utility-bar a:hover { color: var(--red); }
.about-link { font-weight: 700; white-space: nowrap; }
.interaction-hint { margin: 0; color: var(--muted); font-size: .8125rem; }
.utilities { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.utilities a { text-decoration: none; white-space: nowrap; }
.utilities button { white-space: nowrap; }
.utilities #skip, #sound[aria-pressed="true"] { color: var(--red); }
.toast { position: fixed; z-index: 15; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fffdfa; padding: 12px 20px; border-radius: 4px; font-size: .875rem; max-width: calc(100vw - 32px); text-align: center; margin: 0; pointer-events: none; }
.toast:empty { display: none; }
dialog { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 0; width: min(960px,calc(100% - 48px)); max-height: calc(100svh - 48px); margin: auto; box-shadow: 7px 7px 0 var(--ink); border-radius: 6px; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(27 23 20 / .66); backdrop-filter: blur(5px); }
dialog[open] { display: flex; flex-direction: column; }
#detail { height: min(840px,calc(100svh - 48px)); }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; border-bottom: 2px solid var(--ink); flex-shrink: 0; }
.kicker { font-size: .75rem; font-weight: 800; letter-spacing: .09em; color: var(--red); margin: 0 0 5px; }
.detail-header h2 { font-size: 1.625rem; line-height: 1.3; margin: 0; letter-spacing: -.02em; }
.detail-header > div { min-width: 0; overflow-wrap: anywhere; }
.close-button { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fffdfa; border: 1px solid var(--ink); border-radius: 3px; padding: 9px 13px; font-size: .875rem; flex-shrink: 0; min-height: 44px; }
.close-button:hover { background: var(--red); }
.close-button span { font-size: 1.5rem; line-height: 1; }
.company-tabs { display: flex; gap: 8px; padding: 12px 28px; border-bottom: 1px solid var(--line); flex-shrink: 0; overflow-x: auto; }
.company-tabs button { padding: 9px 18px; min-height: 42px; background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: .9375rem; font-weight: 700; white-space: nowrap; }
.company-tabs button[aria-selected="true"] { background: var(--ink); color: #fffdfa; border-color: var(--ink); }
.company-tabs button:not([aria-selected="true"]):hover { border-color: var(--red); color: var(--red); }
.detail-body { flex: 1; min-height: 0; padding: 24px 28px 28px; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; line-height: 1.8; font-size: 1rem; font-weight: 400; color: var(--body-text); overflow-wrap: anywhere; }
.detail-body:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
.detail-body p { margin: 0; }
.detail-body h3, .detail-body h4 { line-height: 1.45; letter-spacing: -.015em; color: var(--ink); }
.detail-body h3 { margin: 0 0 7px; font-size: 1.25rem; }
.detail-body h4 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 750; }
.detail-body strong { font-weight: 600; }
.entry-heading { padding: 20px 24px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.entry-heading h3 { font-size: 1.75rem; font-weight: 800; margin: 0; }
.detail-body .entry-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--muted); font-size: .875rem; line-height: 1.6; font-weight: 400; }
.research-heading { text-align: center; padding: 24px; }
.research-identity { display: flex; justify-content: center; align-items: center; gap: 24px; }
.research-title { min-width: 0; }
.research-heading .entry-label { color: var(--red); font-size: .75rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.research-heading .entry-meta { justify-content: center; margin-top: 10px; }
.company-heading { text-align: center; }
.company-brand { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.company-heading .entry-meta { justify-content: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
/* Originals stay untouched. The shared SVG tone curve lifts only the palest channels,
   removing off-white JPEG matte against the white masthead without redrawing logos. */
.brand-logo { position: relative; flex: none; width: 156px; height: 56px; overflow: hidden; --logo-width: 136%; --logo-y: 49%; }
.brand-logo img { position: absolute; left: 50%; top: 50%; width: var(--logo-width); height: auto; max-width: none; transform: translate(-50%,calc(-1 * var(--logo-y))); filter: url("#logo-paper-cleanup"); }
.brand-logo--kuaishou { --logo-width: 128%; --logo-y: 52%; }
.brand-logo--hirain { --logo-width: 102%; --logo-y: 66%; }
.brand-logo--ustb { width: 88px; height: 88px; --logo-width: 154%; --logo-y: 46.5%; }
.entry-summary { margin-bottom: 22px !important; }
.detail-body .lead { margin: 0 0 20px; line-height: 1.7; }
.work-item { padding: 22px 0; border-top: 1px solid var(--line); }
.company-heading + .work-item { border-top: 0; padding-top: 0; }
.work-item:last-child { padding-bottom: 0; }
.category { display: inline-block; font-size: .75rem; line-height: 1.5; color: var(--red); margin-right: 10px; padding: 3px 7px; border-radius: 2px; background: var(--surface); font-weight: 600; vertical-align: 2px; }
.work-points { margin: 0; padding-left: 1.15em; }
.work-points li { padding-left: .12em; }
.work-points li + li { margin-top: 9px; }
.work-points li::marker { color: var(--muted); font-size: .75em; }
.work-result { display: grid; grid-template-columns: 2em minmax(0,1fr); align-items: baseline; gap: 14px; margin-top: 14px; padding: 13px 16px; background: var(--surface); border-radius: 3px; font-size: .9375rem; line-height: 1.75; }
.work-result > b { color: var(--red); font-size: .8125rem; font-weight: 700; }
.work-result strong { color: var(--red); font-weight: 700; }
.work-result p + p { margin-top: 5px; }
.project-group + .project-group { margin-top: 30px; padding-top: 22px; border-top: 2px solid var(--ink); }
.text-button { background: transparent; border: 0; border-bottom: 1px solid var(--red); padding: 4px 0; color: var(--red); font-size: .875rem; font-weight: 700; margin-top: 12px; }
.detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; border-top: 1px solid var(--line); font-size: .75rem; flex-shrink: 0; }
.detail-footer > a { font-size: .875rem; font-weight: 700; }
.education { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.education p + p { margin-top: 6px; }
.content-section { margin: 22px 0; }
.contact { padding: 18px 20px; background: var(--surface); border-radius: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.contact a { overflow-wrap: anywhere; }
.capability { padding: 22px 0; border-bottom: 1px solid var(--line); }
.capability:first-child { padding-top: 0; }
.capability:last-child { border-bottom: 0; padding-bottom: 0; }
.capability h3 { font-size: 1.25rem; font-weight: 750; margin-bottom: 12px; }
.capability-fields { margin: 0; display: grid; gap: 10px; }
.capability-fields > div { display: grid; grid-template-columns: 4em minmax(0,1fr); gap: 14px; align-items: baseline; }
.capability-fields dt { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.capability-fields dd { margin: 0; min-width: 0; }
.capability-fields .evidence dd { font-size: .875rem; color: var(--muted); }
.language dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.language strong { color: var(--red); }
#share-dialog { max-width: 520px; padding: 28px; gap: 12px; }
#share-dialog h2, #share-dialog p { margin: 0; }
#share-dialog label { font-size: .875rem; font-weight: 700; margin-top: 12px; }
#share-url { width: 100%; padding: 12px; border: 1px solid var(--ink); border-radius: 3px; font-size: 1rem; }
#share-dialog form { margin: 8px 0 0; }
#share-dialog form button { border: 0; background: var(--ink); color: #fffdfa; padding: 10px 24px; border-radius: 3px; }
.no-script { max-width: 720px; margin: 24px auto; padding: 24px; line-height: 1.8; }
@media (min-width:761px) and (max-height:580px) {
  .scene-shell { width: min(100%,1100px); }
  .portfolio { padding: 16px; }
}
@media (max-width:1000px) {
  .interaction-hint { display: none; }
  .utilities { gap: 18px; }
}
@media (max-width:760px) {
  .portfolio { display: block; min-height: 100svh; padding: 20px 14px 24px; }
  .scene-shell { width: 100%; }
  .scene { margin: 0 -8px; width: calc(100% + 16px); }
  .hotspots { display: none; }
  .mobile-tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 2px 20px; }
  .mobile-tickets button { text-align: left; display: flex; flex-direction: column; align-items: flex-start; border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); background: #fffdfa; border-radius: 5px; padding: 14px 13px; min-height: 132px; transition: transform 150ms ease-out; }
  .mobile-tickets button:active { transform: translate(2px,2px); }
  .ticket-no { font-size: 1.875rem; font-weight: 900; line-height: 1; color: var(--red); margin-bottom: 9px; }
  .mobile-tickets strong { font-size: 1.125rem; }
  .mobile-tickets small { font-size: .75rem; color: var(--muted); margin-top: 7px; line-height: 1.45; }
  .utility-bar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 10px; border-top: 1px solid var(--line); margin-top: 24px; padding: 9px 2px 0; font-size: .875rem; }
  .utilities { display: contents; }
  .utility-bar .about-link { grid-column: 1/-1; justify-content: flex-start; }
  .utility-bar button, .utility-bar a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .utilities a { grid-column: 1/-1; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); margin-top: 6px; }
  dialog { width: calc(100% - 20px); max-height: calc(100svh - 24px); box-shadow: 4px 4px 0 var(--ink); }
  #detail { height: calc(100svh - 24px); }
  .detail-header { padding: 12px 16px; gap: 12px; }
  .detail-header h2 { font-size: 1.375rem; }
  .detail-header .kicker { font-size: .6875rem; letter-spacing: .06em; margin-bottom: 3px; }
  .close-button { padding: 8px 10px; }
  .company-tabs { padding: 9px 16px; gap: 7px; }
  .company-tabs button { padding: 8px 6px; font-size: .8125rem; flex: 1; min-width: 0; white-space: normal; }
  .detail-body { padding: 18px 16px 24px; scrollbar-gutter: auto; font-size: 1rem; line-height: 1.8; }
  .detail-body h4, .capability h3 { font-size: 1.25rem; line-height: 1.5; font-weight: 750; }
  .work-points strong { font-weight: 500; }
  .entry-heading { padding: 16px; margin-bottom: 20px; }
  .entry-heading h3 { font-size: 1.5rem; line-height: 1.4; }
  .research-heading h3 { max-width: 16em; margin-inline: auto; text-wrap: balance; }
  .entry-heading .entry-meta { font-size: .8125rem; gap: 3px 12px; }
  .research-heading .entry-meta { flex-direction: column; }
  .research-identity { flex-direction: column; gap: 12px; }
  .company-brand { gap: 12px 20px; }
  .company-heading .entry-meta { flex-direction: column; padding-top: 10px; }
  .brand-logo { width: 112px; height: 40px; }
  .brand-logo--ustb { width: 60px; height: 60px; }
  .work-item { padding: 22px 0; }
  .category { display: table; margin: 0 0 6px; font-size: .6875rem; }
  .work-result { grid-template-columns: minmax(0,1fr); padding: 12px 14px; gap: 5px; }
  .work-result > b { font-size: .75rem; letter-spacing: .08em; }
  .work-points { padding-left: 1.05em; }
  .work-points li { padding-left: 0; }
  .detail-footer { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .detail-footer > span { font-size: .75rem; }
  .detail-footer .archive-label { display: none; }
  .detail-footer > a { font-size: .875rem; white-space: nowrap; }
  .education { grid-template-columns: 1fr; gap: 20px; }
  .education > article + article { border-top: 1px solid var(--line); padding-top: 18px; }
  .contact { padding: 16px; }
  .capability-fields > div { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .capability-fields dt { font-size: .75rem; }
  .capability-fields .evidence { margin-top: 2px; }
  .capability-fields .evidence dd { font-size: .875rem; }
}
@media (max-width:360px) {
  .company-brand .brand-logo { width: 96px; height: 36px; }
  .company-brand { gap: 12px; }
}
@media (max-height:500px) {
  .detail-header { padding-block: 8px; }
  .detail-header .kicker { display: none; }
  .company-tabs { padding-block: 6px; }
  .detail-footer { padding-block: 7px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  /* Automatic playback is skipped in JS; an explicit play request remains available. */
}
