@font-face {
  font-family: "Noto Serif SC Site";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/noto-serif-sc:vf@5.3.0/chinese-simplified-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+6797, U+7684, U+68EE;
}

:root {
  --navy: #081478;
  --deep: #050d55;
  --orange: #e86f16;
  --muted: #5f636f;
  --line: #dfe2ef;
  --paper: #ffffff;
  --warm: #f5f7ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: #17212b; font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
.navbar { min-height: 74px; padding-inline: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.navbar .navbar-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-inline: 0; }
.navbar-logo { max-height: 48px; width: auto; }
.navbar-brand { color: var(--navy); font-family: Georgia, serif; font-weight: 700; }
.navbar-collapse { justify-content: flex-end; }
.navbar-nav.me-auto { margin-left: auto !important; margin-right: 0 !important; }
.navbar-nav .nav-link { color: var(--navy); font-size: .9rem; font-weight: 700; }
#quarto-content { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 100px; }
#quarto-content main.content { grid-column: screen-start / screen-end; width: 100%; max-width: none; margin: 0; padding-top: 0; }
h1, h2, h3 { color: var(--deep); font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2.1rem, 3.5vw, 3rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
h2 { margin-top: 3.7rem; font-weight: 500; }
a { color: var(--navy); text-underline-offset: 4px; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); gap: 64px; align-items: center; min-height: 510px; }
.home-hero h1 { font-size: clamp(2.6rem, 4.5vw, 3.8rem); margin-bottom: 0; }
.chinese-name { margin: 12px 0 25px; color: var(--orange); font-family: "Noto Serif SC Site", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif; font-size: 1.45rem; font-weight: 600; letter-spacing: .08em; }
.role { color: var(--navy); font-size: 1.18rem; font-weight: 700; }
.profile-link { display: inline-block; margin: 18px 20px 0 0; font-size: .9rem; font-weight: 800; }
.portrait-wrap { justify-self: end; width: min(100%, 360px); }
.portrait-photo { display: block; width: 100%; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: 0; object-fit: cover; object-position: center top; box-shadow: 18px 18px 0 #edf0fb; }
.home-section { margin-top: 70px; padding-top: 70px; border-top: 1px solid var(--line); }
.featured-grid, .course-grid, .photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.featured-paper, .course-card, .photo-card { padding: 28px; background: var(--paper); }
.featured-paper h3 { min-height: 90px; font-size: 1.3rem; }
.paper-year, .course-code { color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.contact-band { margin: 75px calc(50% - 50vw) -100px; padding: 52px max(20px, calc((100vw - 1120px)/2)); background: var(--deep); color: #dfeaf1; }
.contact-heading { margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.5); }
.contact-heading .eyebrow { margin: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 64px; align-items: end; }
.contact-title { margin: 0 0 8px; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.2; }
.contact-affiliation p, .contact-address p { margin: 0; }
.contact-address { justify-self: end; text-align: right; }
.contact-band a { color: white; }
.research-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 45px 0 75px; }
.research-jump a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 700; text-decoration: none; }
.paper-card { padding: 34px 0; border-bottom: 1px solid var(--line); }
.paper-topline { display: flex; align-items: center; gap: 12px; }
.paper-status { margin-left: 0; padding: 2px 8px; border-radius: 4px; background: #f4e3d8; color: #84340f; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.paper-card h3 { margin: 10px 0 8px; font-size: 1.6rem; }
.paper-authors { margin: 3px 0; color: var(--muted); }
.paper-authors { line-height: 1.65; }
.paper-authors a, .paper-meta a { color: var(--navy); font-weight: 700; text-underline-offset: 3px; }
.paper-affiliation { color: #65727d; }
.paper-venue-line { margin: 5px 0 0; color: var(--navy); font-style: italic; }
.paper-venue-line a { color: var(--navy); font-weight: 700; text-underline-offset: 3px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 13px; }
.paper-links a, .citation-link { color: var(--navy); font-size: .9rem; font-weight: 800; }
.citation-link { padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.citation-dialog { width: min(680px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 4px; box-shadow: 0 24px 70px rgba(5,13,85,.28); }
.citation-dialog::backdrop { background: rgba(5,13,85,.52); }
.citation-dialog-content { padding: 26px 28px 30px; }
.citation-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.citation-dialog-heading form { margin: 0; }
.citation-dialog h4 { margin: 0; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.citation-dialog p { margin: 18px 0 0; color: #445067; font-size: .95rem; }
.citation-close { padding: 0 4px; border: 0; background: transparent; color: var(--navy); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.abstract-disclosure { width: 100%; max-width: none; margin-top: 14px; border-left: 3px solid var(--orange); background: var(--warm); }
.abstract-disclosure summary { cursor: pointer; padding: 10px 16px; color: var(--navy); font-size: .86rem; font-weight: 800; }
.abstract-disclosure p { margin: 0; padding: 0 16px 16px; color: #445067; font-size: .92rem; }
.paper-meta { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; width: 100%; max-width: none; margin-top: 14px; color: var(--muted); font-size: .84rem; }
.paper-meta-label { color: var(--navy); font-weight: 800; }
.paper-meta-items { min-width: 0; line-height: 1.65; }
.course-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
.course-card { border-top: 4px solid var(--orange); }
.button-link { display: inline-block; margin: 20px 0; padding: 12px 18px; background: var(--navy); color: white; font-weight: 800; text-decoration: none; }
.photo-grid { gap: 22px; background: transparent; border: 0; }
.photo-card { padding: 0 0 20px; border: 1px solid var(--line); }
.photo-card h2, .photo-card p { margin-inline: 20px; }
.photo-placeholder { aspect-ratio: 4/3; }
.tone-1 { background: linear-gradient(150deg,#c9d9e3,#6f8997 54%,#273f4d); }
.tone-2 { background: linear-gradient(150deg,#dec8ba,#8f6c5d 54%,#3e302d); }
.tone-3 { background: linear-gradient(150deg,#e6cf9f,#a87d55 54%,#294d59); }
.nav-footer { border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .home-hero, .featured-grid, .course-grid, .photo-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait-wrap { justify-self: start; max-width: 280px; }
  .contact-address { justify-self: start; text-align: left; }
  .featured-paper h3 { min-height: auto; }
}

@media (max-width: 560px) {
  .navbar .navbar-container, #quarto-content { width: calc(100% - 28px); }
  .paper-meta { grid-template-columns: 1fr; gap: 2px; }
}

/* Static research-summary pages */
.research-summary-page .quarto-title-block,
.research-summary-page .research-summary {
  width: min(940px, 100%);
}

.research-summary-page .quarto-title-block {
  margin-bottom: 24px;
}

.research-summary-page .quarto-title-block .subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.research-summary {
  color: #273342;
}

.summary-back {
  display: inline-block;
  margin: 0 0 30px;
  padding: 9px 14px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.summary-back:hover {
  background: var(--navy);
  color: white;
}

.summary-back-bottom {
  margin: 52px 0 0;
}

.summary-citation {
  margin: 0 0 34px;
  padding: 18px 20px;
  border-left: 3px solid var(--orange);
  background: var(--warm);
  color: #445067;
  font-size: .91rem;
}

.summary-citation p {
  margin: 0;
}

.research-summary h2 {
  margin: 3.1rem 0 1rem;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.2;
}

.research-summary > p,
.research-summary > ul {
  max-width: 800px;
}

.summary-hero-image,
.summary-figure,
.summary-figure-grid {
  margin: 34px 0;
}

.summary-hero-image p,
.summary-figure p,
.summary-figure-grid p {
  margin: 0;
}

.summary-hero-image img,
.summary-figure img,
.summary-figure-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: white;
}

.summary-hero-image img {
  max-height: 360px;
  object-fit: cover;
}

.summary-figure img {
  width: auto;
  max-width: min(100%, 760px);
  margin-inline: auto;
}

.summary-figure-narrow img {
  max-width: min(100%, 520px);
}

.summary-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
}

.summary-figure-grid-four img {
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.research-summary blockquote {
  margin: 42px auto;
  padding: 24px 30px;
  border-left: 0;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.7;
  text-align: center;
}

.summary-callout {
  margin: 34px 0;
  padding: 24px 28px;
  border-top: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
}

.summary-callout p {
  margin: 0;
}

@media (max-width: 700px) {
  .summary-figure-grid {
    grid-template-columns: 1fr;
  }

  .research-summary blockquote,
  .summary-callout {
    padding-inline: 18px;
  }
}
