@font-face {
  font-family: "Tokyo Romance";
  src: local("东京街角的小浪漫"), local("DongJingJieJiaoDeXiaoLangMan"), url("../fonts/tokyo-romance.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f9f6;
  --ink: #263d43;
  --muted: #637278;
  --accent: #416f74;
  --line: #d9e0dc;
  --font: "Tokyo Romance", "KaiTi", "STKaiti", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 19px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
body:has(.intro[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
button[hidden], [hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .12em; line-height: 1.5; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 8px 20px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.site-brand { display: inline-flex; gap: 12px; align-items: center; font-size: 40px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.site-brand img { object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 34px; align-items: center; }
.site-nav a { position: relative; font-size: 32px; text-decoration: none; padding-block: 12px; }
.site-nav a::after { position: absolute; content: ""; height: 1px; background: var(--accent); left: 0; right: 0; bottom: 7px; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current] { color: var(--accent); }
.menu-toggle { display: none; border: 0; background: none; padding: 10px 0 10px 12px; font-size: 17px; }
.home-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 64px; }
.hero { min-width: 0; text-align: center; }
.hero-image { width: 160px; margin: 0 auto 24px; }
.hero-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero h1 { font-size: 32px; line-height: 1.25; letter-spacing: -.025em; }
.title-period { color: #769b97; }
.text-link { display: inline-flex; align-items: center; gap: 28px; text-decoration: none; color: var(--accent); }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
.directory { min-width: 0; }
.directory-track { --thumb-min: 40px; --card-height: 620px; --expanded-width: 58%; display: flex; gap: 16px; height: var(--card-height); }
.directory-card { position: relative; display: block; flex: 1 1 0; min-width: 0; height: 100%; border-radius: 10px; color: #fff; text-decoration: none; transition: flex-basis .65s cubic-bezier(.22,.68,.25,1), flex-grow .65s cubic-bezier(.22,.68,.25,1); }
.directory-card.is-expanded { flex: 0 0 var(--expanded-width); }
.directory-card:hover { color: #fff; }
.directory-card:focus-visible { outline-offset: 5px; border-radius: 10px; }
.directory-card-surface { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #31464b; box-shadow: 0 8px 22px #263d4314; }
.directory-card img { position: absolute; left: 50%; width: var(--expanded-width); max-width: none; height: 100%; object-fit: cover; transform: translateX(-50%); }
.directory-card-surface::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #0e202926, transparent 40%, #0e2029b3); }
.card-number { position: absolute; z-index: 2; top: 18px; left: 50%; transform: translateX(-50%); font-size: 16px; letter-spacing: .08em; text-shadow: 0 1px 8px #0008; }
.card-caption { position: absolute; z-index: 2; inset: auto 0 24px; display: flex; align-items: end; justify-content: center; gap: 12px; }
.card-caption h3 { writing-mode: vertical-rl; font-size: 28px; line-height: 1.25; white-space: nowrap; text-shadow: 0 2px 12px #0006; }
.card-caption h3 span, .card-arrow { display: none; }
.is-expanded .card-number { left: 22px; transform: none; }
.is-expanded .card-caption { inset-inline: 22px; justify-content: space-between; }
.is-expanded .card-caption h3 { writing-mode: horizontal-tb; font-size: clamp(24px, 2.4vw, 34px); }
.is-expanded .card-caption h3 span { display: block; margin-top: 9px; font-size: 16px; color: #ffffffe6; }
.is-expanded .card-arrow { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #ffffff70; border-radius: 50%; font-size: 20px; }
.home-quote { text-align: center; padding: 28px 0; }
.quote-mark { display: block; height: 32px; color: #7e9d97; font-family: Georgia, serif; font-size: 50px; line-height: 1; }
.home-quote p { font-size: 19px; line-height: 1.95; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid var(--line); padding-block: 28px 38px; }
.site-footer p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--muted); }
.footer-links a { text-decoration: none; }
.about-hero { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 64px; align-items: center; margin-block: 56px 60px; }
.about-image img { width: 100%; max-width: 350px; border-radius: 7px; }
.about-copy h1, .about-background h2 { font-size: 62px; }
.about-copy h1 { margin-top: 12px; }
.page-subtitle { color: var(--accent); margin-block: 8px 28px; }
.about-copy { min-width: 0; overflow-wrap: anywhere; }
.about-entry > p:not(.page-subtitle) { margin-bottom: 20px; }
.about-pagination { display: flex; align-items: center; gap: 16px; margin-block: 20px 16px; }
.about-pagination button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--accent); }
.about-pagination button:hover:not(:disabled) { border-color: var(--accent); background: #416f740a; }
.about-pagination button:disabled { opacity: .35; cursor: default; }
.about-position { min-width: 4em; text-align: center; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.home-profiles { margin-top: 16px; }
.profile-links { display: flex; flex-direction: column; gap: 4px; width: 180px; max-width: 100%; margin-inline: auto; }
.profile-links .text-link { gap: 12px; min-height: 44px; padding-block: 6px; font-size: 22px; }
.profile-links .text-link > span { margin-left: auto; }
.profile-icon { display: inline-block; flex: 0 0 1.25em; width: 1.25em; height: 1.1em; fill: currentColor; }
.icon-zhihu { height: 1.05em; }
.about-background { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 32px; align-items: stretch; border-top: 1px solid var(--line); padding-block: 40px 60px; }
.about-background-copy { display: flex; flex-direction: column; min-width: 0; }
.background-image img { margin-left: auto; }
.about-background h2 { margin: 0; padding-right: 32px; text-align: right; }
.education-timeline { display: flex; flex-direction: column; flex: 1; list-style: none; padding: 0; margin: 36px 0 0; }
.education-item { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 12px; grid-template-rows: auto 1fr; column-gap: 20px; min-height: 140px; }
.education-years { grid-column: 1; grid-row: 1; text-align: right; color: var(--accent); font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.education-track { grid-column: 2; grid-row: 1 / 3; position: relative; }
.education-track::before { content: ""; position: absolute; width: 1px; background: var(--line); left: 50%; top: 18px; bottom: -18px; }
.education-track::after { content: ""; position: absolute; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid var(--accent); border-radius: 50%; background: var(--paper); left: 50%; top: 13px; transform: translateX(-50%); }
.education-item:last-child .education-track::before { bottom: 0; }
.education-content { grid-column: 1; grid-row: 2; display: flex; justify-content: flex-end; align-items: flex-start; gap: 18px; padding: 8px 0 28px; min-width: 0; }
.education-details { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 6px 18px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.education-details h3 { font-size: 26px; line-height: 1.35; }
.education-details p { color: var(--muted); font-size: 19px; }
.education-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 35px; }
.education-logo img { width: auto; height: auto; max-width: 96px; max-height: 32px; }
.page-heading { max-width: 800px; padding-block: 64px 54px; }
.page-heading h1 { font-size: clamp(44px, 6vw, 72px); margin-block: 15px 0; overflow-wrap: anywhere; }
.collection-heading { display: flex; justify-content: space-between; align-items: center; border-block: 1px solid var(--line); padding-block: 17px; }
.collection-heading h2 { font-size: 20px; }
.collection-heading > span { font-size: 14px; color: var(--muted); }
.empty-state { text-align: center; padding: 48px 20px 52px; }
.empty-ornament { display: block; font-family: Georgia, serif; font-size: 38px; color: #779c96; margin-bottom: 12px; }
.empty-state h2 { font-size: 28px; margin-bottom: 12px; }
.empty-state p { color: var(--muted); font-size: 18px; }
.page-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 25px 66px; font-size: 16px; color: var(--muted); }
.entry { padding-block: 28px; border-bottom: 1px solid var(--line); }
.entry h2 { margin-block: 8px 12px; font-size: 28px; }
.entry-meta { font-size: 14px; color: var(--muted); }
.entry-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
audio { display: block; width: min(100%, 550px); margin-top: 20px; }
.gallery-photo { display: block; width: fit-content; max-width: 100%; margin-top: 24px; }
.gallery-photo img { width: auto; max-width: 100%; max-height: 720px; height: auto; border-radius: 7px; }
.not-found { min-height: 65vh; padding-block: 100px; }
.not-found h1 { font-size: clamp(30px, 5vw, 60px); margin-block: 20px; }
.not-found .text-link { margin-top: 24px; }

/* Native dialog keeps keyboard focus inside the short, dismissible introduction. */
.intro { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px; background: var(--paper); color: var(--ink); opacity: 1; transition: opacity .55s; }
.intro::backdrop { background: var(--paper); }
.intro[open] { display: grid; place-items: center; }
.intro.is-leaving { opacity: 0; }
.intro-inner { text-align: center; margin-top: -25px; }
.intro-line { font-size: clamp(25px, 4vw, 43px); letter-spacing: .09em; line-height: 2.2; animation: appear 1.5s .25s both; }
.intro-line + .intro-line { animation-delay: 1.25s; }
.intro-skip { position: absolute; right: max(28px, 5vw); bottom: 35px; border: 0; background: none; font-size: 16px; color: var(--muted); padding: 8px; }
.intro-skip span { margin-left: 12px; }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .site-header { gap: 20px; }
  .site-brand { font-size: 32px; gap: 8px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 26px; }
  .home-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding-block: 40px 56px; }
  .hero h1 { font-size: 31px; }
  .hero-image { width: 160px; }
  .home-quote p { font-size: 19px; }
  .directory-track { gap: 12px; }

  .about-hero { gap: 36px; }
  .about-background { gap: 24px; }
  .about-hero { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .about-background { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }
}
@media (max-width: 680px) {
  body { font-size: 18px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 82px; flex-wrap: wrap; gap: 0 12px; padding-block: 19px; }
  .site-brand { font-size: 30px; }
  .site-brand img { width: 28px; height: 28px; }
  .menu-toggle:not([hidden]) { display: inline-flex; gap: 8px; align-items: center; }
  .site-nav { width: 100%; justify-content: space-between; gap: 14px; padding-top: 15px; }
  .menu-ready .site-nav:not(.is-open) { display: none; }
  .home-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 36px 48px; }
  .hero { width: 100%; max-width: 380px; margin-inline: auto; }
  .hero-image { width: 144px; margin-bottom: 22px; }
  .hero h1 { font-size: 38px; }
  .directory-track { --thumb-min: 30px; gap: 8px; }
  .home-quote { padding-block: 24px; }
  .home-quote p { font-size: 21px; }
  .site-footer { align-items: start; flex-direction: column; gap: 18px; }
  .footer-links { gap: 24px; }
  .about-hero { grid-template-columns: 1fr; gap: 34px; margin-block: 30px 44px; }
  .about-image img { max-width: 320px; }
  .about-copy h1, .about-background h2 { font-size: 52px; }
  .about-background { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 50px; }
  .background-image img { margin-left: 0; }
  .education-timeline { margin-top: 28px; }
  .education-item { grid-template-columns: minmax(0, 1fr) 10px; column-gap: 14px; min-height: 120px; }
  .about-background h2 { padding-right: 24px; }
  .education-years { font-size: 16px; }
  .education-track::before { top: 14px; bottom: -14px; }
  .education-track::after { top: 9px; }
  .education-content { gap: 14px; }
  .education-details { gap: 12px; }
  .education-details h3 { font-size: 20px; }
  .education-details p { font-size: 16px; }
  .education-logo { min-height: 27px; }
  .education-logo img { max-width: 60px; max-height: 24px; }
  .page-heading { padding-block: 42px 36px; }
  .empty-state { padding: 40px 0; }
  .empty-state h2 { font-size: 24px; }
  .empty-state p { font-size: 17px; }
  .page-end { padding-bottom: 42px; font-size: 14px; }
  .intro-line { letter-spacing: .035em; }
}
@media (max-width: 540px) {
  .card-caption { bottom: 16px; }
  .card-caption h3 { font-size: 20px; }
  .card-number { top: 12px; font-size: 12px; }
  .is-expanded .card-number { left: 12px; }
  .is-expanded .card-caption { inset-inline: 12px; }
  .is-expanded .card-caption h3 { font-size: 22px; }
  .is-expanded .card-caption h3 span { font-size: 14px; }
  .is-expanded .card-arrow { display: none; }
}
@media (max-width: 360px) {
  .site-brand { font-size: 26px; }
  .site-brand img { width: 24px; height: 24px; }
  .menu-toggle { font-size: 15px; }
  .intro-line { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; color: black; }
  .wrap { width: 100%; }
  .site-nav, .menu-toggle, .footer-links, .intro { display: none !important; }
  .home-layout, .about-hero, .about-background { gap: 30px; }
  .home-layout > .hero { position: static; }
  .directory-card { break-inside: avoid; }
  .directory-track { display: grid; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-card { height: 400px; }
  .directory-card img { width: 100%; object-fit: contain; }
}
