:root {
  --ink: #222426;
  --muted: #666a70;
  --faint: #91969c;
  --line: #e4e7e9;
  --soft: #f5f7f8;
  --link: #2f6f91;
  --link-dark: #1e536f;
  --page: #ffffff;
  --sans: "Libre Franklin", "Noto Sans SC", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Noto Serif SC", serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-dark); text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(calc(100% - 48px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.site-name span {
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
}
.site-name i { color: #a8abad; font-style: normal; font-weight: 400; }
.site-name:hover { text-decoration: none; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav > a {
  position: relative;
  color: #4f5357;
  font-size: 0.82rem;
  font-weight: 500;
}
.site-nav > a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--link);
  transition: right 180ms ease;
}
.site-nav > a:hover { color: var(--ink); text-decoration: none; }
.site-nav > a:hover::after { right: 0; }
.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  color: #b1b4b7;
  font-size: 0.72rem;
}
.language-switch button,
.language-switch a {
  padding: 4px 0;
  border: 0;
  color: #8c9094;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.language-switch button.is-active,
.language-switch a.is-active { color: var(--ink); font-weight: 600; }
.language-switch button:hover,
.language-switch a:hover { color: var(--link); text-decoration: none; }

.page-shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 88px;
  align-items: start;
}
.profile { position: sticky; top: 120px; }
.portrait {
  width: 156px;
  height: 156px;
  display: block;
  margin-bottom: 25px;
  border-radius: 50%;
  border: 1px solid #d9dee1;
  background: #f5f6f7;
  object-fit: cover;
}
.profile h2 {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.3;
}
.profile-role { margin: 0 0 17px; color: var(--muted); font-size: 0.83rem; }
.profile-bio { margin: 0 0 23px; color: #555a5f; font-size: 0.82rem; line-height: 1.65; }
.profile-links { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.profile-links li { display: flex; gap: 10px; align-items: baseline; margin: 8px 0; color: var(--muted); font-size: 0.77rem; }
.profile-links li > span:first-child { width: 13px; color: #989da1; text-align: center; }

.content { max-width: 710px; }
.intro { padding-bottom: 67px; }
.kicker { margin: 0 0 12px; color: var(--link); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; }
h1, h2, h3 { font-family: var(--serif); }
h1 {
  max-width: 650px;
  margin: 0 0 26px;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.038em;
}
.lead { margin: 0 0 23px; color: #3e4246; font-family: var(--serif); font-size: 1.22rem; line-height: 1.62; }
.intro > p:last-child { max-width: 640px; margin: 0; color: var(--muted); }
.writing, .notes, .news { padding: 58px 0 18px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { margin: 0 0 4px; font-size: 1.65rem; line-height: 1.3; }
.section-heading p { margin: 0; color: var(--faint); font-size: 0.8rem; }
.series-heading { margin: 34px 0 4px; padding: 22px 24px; background: var(--soft); border-left: 3px solid var(--link); }
.series-heading .series-label { margin: 0 0 3px; color: var(--faint); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.series-heading h3 { margin: 0; font-size: 1.35rem; line-height: 1.35; }
.series-heading > p:last-child { margin: 3px 0 0; color: var(--muted); font-size: 0.76rem; }
.work { display: grid; grid-template-columns: 105px 1fr; gap: 24px; padding: 31px 0; border-top: 1px solid var(--line); }
.work:first-of-type { margin-top: 20px; }
.work-date { padding-top: 5px; color: var(--faint); font-size: 0.71rem; }
.work-content h3 { margin: 0 0 1px; font-size: 1.24rem; font-weight: 600; }
.work-content h3 a { color: var(--link); }
.work-translation { margin: 0 0 10px !important; color: var(--faint) !important; font-family: var(--serif); font-size: 0.84rem !important; font-style: italic; }
.work-content > p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 0; padding: 0; list-style: none; }
.work-tags li { padding: 3px 9px; color: #68747b; background: var(--soft); border-radius: 2px; font-size: 0.65rem; }
.notes, .news { margin-top: 43px; }
.notes-list { margin: 0; padding-left: 2rem; }
.note-entry { padding: 12px 0 0; }
.note-entry::marker { font-family: var(--serif); font-size: 1.05rem; }
.note-entry h3 { display: inline; margin: 0; font-size: 1.05rem; font-weight: 600; }
.note-entry h3 a { color: var(--link); }
.news-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 24px;
  padding: 12px 0 0;
}
.news-item time { color: var(--faint); font-size: 0.71rem; }
.news-item p { margin: 0; color: #3e4246; font-family: var(--serif); font-size: 1.02rem; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer > div {
  width: min(calc(100% - 48px), var(--max));
  min-height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.72rem;
}
.blank-note {
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 72px 0 96px;
}
.note-page-heading { max-width: 760px; }
.note-page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.article-list {
  max-width: 760px;
  margin: 42px 0 0;
  padding-left: 1.45rem;
  color: #3e4246;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.75;
}
.note-category {
  max-width: 760px;
  margin-top: 42px;
}
.note-category + .note-category { margin-top: 48px; }
.note-category h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}
.note-category .article-list { margin-top: 18px; }
.article-list li { padding-left: 0.3rem; }
.article-list li + li { margin-top: 28px; }
.article-item-title { margin: 0; }
.film-title { font-style: italic; }
html[lang="zh-CN"] .film-title { font-style: normal; }
.article-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.84rem;
}
.episode-list {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.84rem;
}
.episode-list p { margin: 2px 0; }
.article-list blockquote {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: italic;
  line-height: 1.85;
}

.award-note-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
.award-timeline {
  max-width: 860px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}
.award-entry {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 44px;
  padding: 0 0 48px;
}
.award-entry::before {
  position: absolute;
  top: 8px;
  bottom: -8px;
  left: 130px;
  width: 1px;
  content: "";
  background: var(--line);
}
.award-entry:last-child { padding-bottom: 0; }
.award-entry:last-child::before { display: none; }
.award-date {
  padding-top: 2px;
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
}
.award-date time { display: block; color: #3e4246; font-family: var(--serif); font-size: 0.98rem; font-weight: 600; }
.award-card {
  position: relative;
  padding: 0 0 0 26px;
}
.award-card::before {
  position: absolute;
  top: 6px;
  left: -32px;
  width: 9px;
  height: 9px;
  content: "";
  background: #ffffff;
  border: 2px solid var(--link);
  border-radius: 50%;
}
.award-card-header { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: baseline; }
.award-card h2 { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.award-tier {
  color: var(--link);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.award-details { margin: 20px 0 0; border-top: 1px solid var(--line); }
.award-details > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.award-details dt { color: var(--faint); font-size: 0.72rem; font-weight: 600; }
.award-details dd { margin: 0; color: #44494d; font-size: 0.82rem; line-height: 1.65; }
.award-sources { margin: 14px 0 0; color: var(--faint); font-size: 0.74rem; }
.award-sources a { color: var(--link); }
.award-sources a + a::before { margin: 0 7px; color: var(--faint); content: "·"; }
.award-status { color: #8b611c; }

@media (max-width: 760px) {
  .site-header { height: 64px; }
  .header-inner, .page-shell, .site-footer > div { width: min(calc(100% - 36px), var(--max)); }
  .nav-ready .nav-toggle { display: block; }
  .nav-ready .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 64px);
    padding: 14px 18px 22px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(34, 36, 38, 0.08);
    transform: translateY(-8px);
    pointer-events: none;
    transition: visibility 180ms ease, opacity 180ms ease, transform 180ms ease;
  }
  .nav-ready .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-ready .site-nav > a {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
  }
  .nav-ready .site-nav > a::after { display: none; }
  .nav-ready .language-switch {
    justify-content: flex-start;
    gap: 9px;
    margin: 12px 0 0;
    font-size: 0.75rem;
  }
  body.nav-open { overflow: hidden; }
  .page-shell { padding: 44px 0 70px; grid-template-columns: 1fr; gap: 54px; }
  .profile { position: static; display: grid; grid-template-columns: 104px 1fr; column-gap: 22px; align-items: start; }
  .portrait { grid-row: 1 / 5; width: 104px; height: 104px; margin: 0; font-size: 1.35rem; }
  .profile h2 { margin-top: 3px; }
  .profile-role { margin-bottom: 10px; }
  .profile-bio { margin: 0; }
  .profile-links { display: none; }
  .intro { padding-bottom: 52px; }
  .work { grid-template-columns: 1fr; gap: 5px; }
  .work-date { padding: 0; }
  .blank-note {
    width: min(calc(100% - 36px), var(--max));
    min-height: calc(100vh - 64px);
    padding: 52px 0 70px;
  }
  .award-entry { grid-template-columns: 1fr; gap: 9px; padding: 0 0 44px 18px; }
  .award-entry::before { top: 5px; bottom: -5px; left: 4px; }
  .award-date { padding: 0; text-align: left; }
  .award-date time { display: inline; margin-right: 6px; }
  .award-card { padding-left: 0; }
  .award-card::before { top: -31px; left: -18px; }
}

@media (max-width: 480px) {
  .site-name { font-size: 0.84rem; }
  .page-shell { padding-top: 34px; }
  .profile { grid-template-columns: 82px 1fr; column-gap: 17px; }
  .portrait { width: 82px; height: 82px; font-size: 1.05rem; }
  .profile-bio { font-size: 0.76rem; }
  h1 { font-size: 2.05rem; }
  .award-details > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
