:root {
  /* ---- surfaces: kept pure white & minimal ---- */
  --bg:         #ffffff;
  --bg-soft:    #fafbfc;
  --line:       #e8ebee;
  --line-soft:  #f1f3f5;

  /* ---- ink ---- */
  --ink:        #1c2530;
  --ink-soft:   #5a6672;
  --ink-faint:  #93a0ac;

  /* ---- blue: links, venues, primary accent ---- */
  --blue:       #2f6fa8;
  --blue-deep:  #1d4e7c;
  --blue-soft:  #6d9bc4;
  --blue-wash:  #eef3f8;

  /* ---- green: section headings, badges, markers ---- */
  --green:      #2f8a70;
  --green-deep: #1f6b56;
  --green-soft: #7cc3ac;
  --green-wash: #edf7f3;

  --serif: 'Noto Serif SC', 'Georgia', 'Times New Roman', serif;
  --sans: 'Noto Serif SC', 'Georgia', 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
a:hover { color: var(--blue-deep); border-bottom-color: currentColor; }

em { font-style: italic; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 13px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .01em;
  color: var(--ink);
  border-bottom: none;
}
.nav-brand:hover { color: var(--blue); border-bottom: none; }
.nav-links { display: flex; gap: 20px; font-size: .87rem; }
.nav-links a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.nav-links a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.nav-links a.current { color: var(--green); border-bottom-color: var(--green-soft); }

/* ---------- layout: content + right news rail ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 56px;
  padding: 52px 0 36px;
  align-items: start;
}
.main { min-width: 0; }

section { margin: 44px 0; }
section:first-child { margin-top: 0; }

h2 {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

h3.sub {
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
h3.sub:first-of-type { margin-top: 18px; }

p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { display: flex; align-items: flex-start; gap: 34px; }
.hero-text { flex: 1 1 auto; min-width: 0; }
h1 {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
h1 .cn {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif;
  font-size: .72em;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 7px;
  vertical-align: middle;
  line-height: 1;
}
.tagline { margin-bottom: 5px; }
.keywords {
  font-size: .88rem;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.contact li { display: flex; }

.email-chip,
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.email-chip:hover,
.social-chip:hover {
  border-color: var(--blue-soft);
  background: var(--blue-wash);
  color: var(--blue-deep);
}
.email-chip:focus-visible,
.social-chip:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 2px;
}

.email-chip .ic {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.email-chip:hover .ic { stroke: var(--blue-deep); }

.social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 4px;
  background-color: var(--blue-wash);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-photo { flex: 0 0 118px; }
.hero-photo img {
  width: 118px;
  height: 148px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  border: 1px solid var(--line);
  filter: saturate(.97);
  display: block;
}

/* ---------- publications ---------- */
.note { font-size: .8rem; color: var(--ink-faint); margin-bottom: 6px; }

/* Per-venue accent. Colour keys on the venue name only, so ICLR 2025 and
   ICLR 2026 share one colour. Each rule sets two local variables that the
   chip, tag and hover rail all read from. */
.v-eccv     { --vc: #2f6fa8; --vw: #eef3f8; }  /* blue    */
.v-iclr     { --vc: #2f8a70; --vw: #ebf6f2; }  /* green   */
.v-icml     { --vc: #2b7f96; --vw: #eaf4f7; }  /* teal    */
.v-iccv     { --vc: #55609e; --vw: #eff0f9; }  /* indigo  */
.v-emnlp    { --vc: #a04a5c; --vw: #fbeef0; }  /* rose    */
.v-icassp   { --vc: #a06a2c; --vw: #faf3e8; }  /* amber   */
.v-preprint { --vc: #77828e; --vw: #f3f5f7; }  /* slate   */
.v-ustc     { --vc: #4a6b8a; --vw: #eef2f6; }  /* muted   */

.pub {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-areas:
    "fig venue"
    "fig title"
    "fig authors"
    "fig links";
  column-gap: 20px;
  row-gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pub:last-of-type { border-bottom: none; }
.pub-venue {
  grid-area: venue;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.pub-venue .vchip {
  display: inline-block;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--vc, var(--blue));
  background: var(--vw, var(--blue-wash));
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--vc, var(--blue)) 22%, transparent);
  border-radius: 999px;
  padding: 1px 9px;
  transition: background .16s ease, border-color .16s ease;
}
.pub:hover .vchip {
  background: color-mix(in srgb, var(--vc, var(--blue)) 12%, #fff);
  border-color: color-mix(in srgb, var(--vc, var(--blue)) 40%, transparent);
}
.pub-venue .tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--vc, var(--blue));
  border-radius: 3px;
  padding: 0 6px;
}
.pub-venue .when-tag {
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.pub-body { display: contents; }
.pub-fig {
  display: block;
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  transition: border-color .18s ease;
}
.pub-fig:hover { border-color: var(--vc, var(--blue)); }
a.fig-link { grid-area: fig; align-self: start; display: inline-block; border-bottom: none; }
a.fig-link:hover { border-bottom: none; }
.pub-title {
  grid-area: title;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.pub-title.plain { color: var(--ink); }
.authors { font-size: .86rem; color: var(--ink-soft); margin-top: 2px; }
.authors strong { color: var(--ink); font-weight: 600; }
.links { grid-area: links; display: flex; gap: 7px; }
.links a {
  font-size: .73rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 8px;
  color: var(--ink-soft);
}
.links a:hover {
  color: var(--blue-deep);
  border-color: var(--blue-soft);
  background: var(--blue-wash);
}

/* ---------- experience ---------- */
.entry { display: flex; gap: 15px; padding: 11px 0; align-items: flex-start; }
.logo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-top: 5px;
}
.logo-wide {
  flex-basis: auto;
  width: auto;
  height: 48px;
}
.entry-body { flex: 1 1 auto; min-width: 0; }
.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.role { font-weight: 600; font-size: .96rem; }
.when {
  flex: 0 0 auto;
  font-size: .8rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.entry-sub { font-size: .86rem; color: var(--ink-soft); }

/* ---------- right news rail ---------- */
.rail { position: sticky; top: 76px; }
.rail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.rail-head .h {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}
.rail-head .beat {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 0 0 rgba(124, 195, 172, .6);
  animation: beat 1.8s infinite;
}
@keyframes beat {
  0%   { box-shadow: 0 0 0 0 rgba(124, 195, 172, .6); }
  70%  { box-shadow: 0 0 0 7px rgba(124, 195, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 195, 172, 0); }
}

.nlist { list-style: none; }
.nitem {
  position: relative;
  padding: 9px 0 9px 13px;
  border-bottom: 1px dashed var(--line);
}
.nitem:last-child { border-bottom: none; }
.nitem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
  transition: background .2s ease;
}
.nitem:hover::before { background: var(--vc, var(--blue)); }
.ndate {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--vc, var(--blue));
  font-variant-numeric: tabular-nums;
}
.nnew {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 1px;
  color: #fff;
  background: var(--vc, var(--green));
  padding: 0 6px;
  border-radius: 3px;
  margin-left: 6px;
}
.ntext { font-size: .85rem; color: var(--ink-soft); line-height: 1.55; margin-top: 1px; }
.ntext em { font-style: italic; color: var(--ink); font-weight: 600; }
.ntext strong { font-weight: 600; color: var(--vc, var(--blue-deep)); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 18px 0 44px;
  font-size: .8rem;
  color: var(--ink-faint);
  text-align: center;
}
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  padding: 4px 12px;
  font-size: .78rem;
  color: var(--blue);
  background: var(--blue-wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.visitor-badge {
  display: block;
  height: 17px;
  width: auto;
  vertical-align: middle;
}
.visitor-counter .eye {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.footer .copy { display: block; }

/* ---------- toast (email copied) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  font-size: .86rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(28, 37, 48, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rail { position: static; }
  .nlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 620px) {
  .wrap, .nav-inner { padding-left: 18px; padding-right: 18px; }
  .layout { padding-top: 34px; }
  .hero { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  .hero-photo img { width: 96px; height: 120px; }
  h1 { font-size: 1.72rem; }
  .pub { flex-direction: column; gap: 7px; }
  .pub-venue {
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 7px;
  }
  .entry-head { flex-direction: column; gap: 0; }
  .nlist { grid-template-columns: 1fr; }
  .nav-links { gap: 13px; font-size: .8rem; }
}
