:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #20262e;
  --muted: #606b76;
  --line: rgba(32, 38, 46, 0.14);
  --accent: #2774ae;
  --accent-bright: #2774ae;
  --accent-dark: #164f7a;
  --accent-soft: #f5f8fb;
  --shadow: 0 8px 24px rgba(32, 38, 46, 0.07);
  --page-max-width: 1100px;
  --page-side-space: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(39, 116, 174, 0.3);
  outline-offset: 3px;
}

p {
  margin: 0.55rem 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 8px 12px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #e7e9ec;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.site-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - var(--page-side-space) - var(--page-side-space)), var(--page-max-width));
  min-height: 72px;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.site-brand:hover {
  color: var(--accent);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

.site-nav-links a {
  color: #3f4a55;
  font-size: 14px;
  font-weight: 650;
}

.site-nav-links a:hover {
  color: var(--accent);
}

.site-nav-links .nav-cv {
  padding: 6px 12px;
  border: 1px solid #cfd5da;
  border-radius: 5px;
}

.page-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  width: min(calc(100% - var(--page-side-space) - var(--page-side-space)), var(--page-max-width));
  margin: 0 auto;
  padding-top: 112px;
}

.page-section {
  scroll-margin-top: 92px;
}

.profile-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.profile-card {
  position: static;
  padding: 0 18px 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.profile-sidebar h1 {
  margin: 18px 0 8px;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

.name-divider {
  padding: 0 6px;
  color: #b1aaa1;
  font-weight: 300;
}

.name-cn {
  font-size: 0.9em;
}

.sidebar-role {
  margin: 0;
  color: #44515d;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}

.sidebar-affiliation {
  margin: 5px 0 0;
  font-size: 13px;
  text-align: center;
}

.sidebar-affiliation span {
  display: block;
}

.content-column {
  min-width: 0;
}

.profile-intro {
  position: relative;
  padding: 22px 0 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.profile-intro::after {
  content: none;
}

.profile-intro > p {
  max-width: 74ch;
}

.research-line {
  margin-top: 22px !important;
  padding: 0;
  border-left: 0;
}

.intro-label {
  margin-right: 0.25em;
  color: var(--accent-dark);
}

.research-thesis {
  font-weight: 400;
}

.opportunity {
  margin: 14px 0;
  padding: 10px 12px;
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  color: #303943;
}

.contact-links {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  line-height: 1.7;
}

.contact-links a,
.contact-links .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid #e1e5e8;
  border-radius: 4px;
  color: #40515f;
  background: #fff;
}

.contact-links .contact-item {
  cursor: default;
}

.contact-links a:hover {
  border-color: #b8c8d5;
  color: var(--accent);
  background: #fff;
}

.sidebar-links > span {
  display: none;
}

.contact-links svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-links .github-link svg {
  fill: currentColor;
  stroke: none;
}

.profile-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-photo {
  display: block;
  width: 190px;
  height: 190px;
  max-width: 100%;
  border: 1px solid #d9dde1;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(32, 38, 46, 0.08);
  object-fit: cover;
  object-position: center;
}

.profile-location {
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
}

.profile-location > a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(96, 107, 118, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile-location > a:hover,
.profile-location > a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.profile-location small {
  color: #8a949d;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.section-block {
  padding: 38px 0 28px;
  border-top: 0;
}

.profile-intro + .section-block {
  padding-top: 0;
}

.section-title {
  display: block;
  margin: 0 0 18px;
  padding-bottom: 9px;
  border-bottom: 2px solid #e6e9ec;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
}

.section-intro {
  max-width: 78ch;
  color: #4f5b66;
}

.research-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.research-stage {
  padding: 22px;
  border: 1px solid #e1e5e8;
  border-radius: 6px;
  background: var(--surface);
}

.stage-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.research-stage h3,
.current-themes h3 {
  margin: 6px 0;
  color: var(--accent-dark);
  font-size: 17px;
}

.research-stage p {
  margin: 0;
  color: #52606b;
  font-size: 14.5px;
}

.current-themes {
  margin: 16px 0;
  padding: 20px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}

.current-themes h3 {
  margin-top: 0;
}

.current-themes ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 34px;
  margin: 8px 0 0;
  padding-left: 19px;
}

.current-themes li {
  padding-left: 2px;
}

.long-term {
  max-width: 92ch;
  padding-top: 4px;
}

.publication-note {
  font-size: 14px;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 14px;
}

.tag-btn {
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid #d2d7dc;
  border-radius: 20px;
  color: #3e4a55;
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tag-btn:hover {
  border-color: #99aec0;
  color: var(--accent);
  background: #fff;
}

.tag-btn.active {
  border-color: var(--accent-dark);
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.tag-count {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  background: #eef1f3;
  font-size: 10px;
  font-weight: 700;
}

.tag-btn.active .tag-count {
  background: rgba(255, 255, 255, 0.2);
}

.publication-list {
  --publication-window-height: none;

  display: grid;
  gap: 0;
  margin-top: 20px;
  max-height: var(--publication-window-height);
  padding: 0 14px;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  scrollbar-color: #b8c2ca transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  touch-action: pan-y;
}

.publication-list:focus-visible {
  outline: 3px solid rgba(39, 116, 174, 0.3);
  outline-offset: 3px;
}

.publication-list::-webkit-scrollbar {
  width: 8px;
}

.publication-list::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: #b8c2ca;
}

.publication-list::-webkit-scrollbar-track {
  background: transparent;
}

.paper-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fff;
  transition: background 0.18s ease;
}

.paper-row:hover {
  background: #fbfcfd;
}

.paper-row.featured {
  background: #fff;
}

.paper-row[hidden] {
  display: none;
}

.paper-visual {
  position: relative;
  display: flex;
  height: 140px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 4px 14px rgba(31, 41, 55, 0.14);
  text-align: center;
}

.paper-visual::before,
.paper-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.paper-visual::before {
  width: 100px;
  height: 100px;
  top: -45px;
  right: -30px;
}

.paper-visual::after {
  width: 70px;
  height: 70px;
  bottom: -38px;
  left: -20px;
}

.paper-visual span,
.paper-visual small {
  position: relative;
  z-index: 1;
}

.paper-visual span {
  max-width: 95%;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.paper-visual small {
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.paper-visual.grounding {
  background: linear-gradient(135deg, #31556f, #6e8798);
}

.paper-visual.agents {
  background: linear-gradient(135deg, #3d5068, #718197);
}

.paper-visual.verification {
  background: linear-gradient(135deg, #42545d, #7b8b92);
}

.paper-visual.medical {
  background: linear-gradient(135deg, #3f5d55, #768c83);
}

.paper-visual.interdisciplinary {
  background: linear-gradient(135deg, #4e5560, #858c95);
}

.paper-visual--figure {
  padding: 6px;
  border: 1px solid #dfe4e8;
  background: #fff;
  box-shadow: none;
}

.paper-visual--figure::before,
.paper-visual--figure::after {
  display: none;
}

.paper-visual--figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.18s ease;
}

.paper-visual--figure:hover img {
  transform: scale(1.02);
}

.paper-visual--figure:focus-visible {
  outline: 3px solid rgba(39, 116, 174, 0.3);
  outline-offset: 3px;
}

.paper-content h3 {
  max-width: 82ch;
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.42;
}

.paper-content h3 a {
  color: var(--accent);
}

.paper-content h3 a:hover {
  color: var(--accent-dark);
}

.paper-content p {
  max-width: 96ch;
  margin: 4px 0;
  font-size: 14.5px;
  line-height: 1.58;
}

.authors {
  color: #52606b;
}

.venue {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 700;
}

.venue.accepted,
.venue.published {
  color: #2d6b3f;
  background: #eaf6ed;
}

.venue.review {
  color: #8a5c00;
  background: #fff6da;
}

.paper-links {
  display: flex;
  gap: 10px;
  padding-top: 3px;
}

.paper-links a {
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(39, 116, 174, 0.4);
  font-size: 13px;
  font-weight: 700;
}

.timeline {
  margin-top: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 142px;
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item time {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.timeline-item p {
  max-width: 88ch;
  margin: 0;
  color: #52606b;
}

.institution-mark {
  display: flex;
  width: 142px;
  height: 52px;
  align-self: center;
  align-items: center;
  justify-content: flex-end;
}

.institution-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.patent-list {
  max-width: 110ch;
  margin: 8px 0 0;
  padding-left: 22px;
}

.patent-list li {
  margin-bottom: 13px;
  padding-left: 6px;
}

.landscape-footer {
  position: relative;
  min-height: auto;
  margin-top: 50px;
  overflow: visible;
  border-top: 1px solid #e6e9ec;
  background: #fff;
}

.landscape-footer::before,
.landscape-footer::after {
  content: none;
}

.landscape-content {
  position: relative;
  display: flex;
  min-height: 280px;
  padding: 54px 20px 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-align: center;
  text-shadow: none;
}

.landscape-content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
}

.landscape-content > p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 17px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
  font-weight: 700;
  text-shadow: none;
}

.footer-cta:hover {
  color: #fff;
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.footer-cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-meta {
  display: grid;
  gap: 2px;
  margin-top: 28px !important;
  color: var(--muted);
  font-size: 12px !important;
}

.footer-meta a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(39, 116, 174, 0.35);
  text-underline-offset: 3px;
}

.visitor-map {
  position: absolute;
  bottom: 24px;
  left: clamp(18px, 4vw, 64px);
  width: 140px;
  margin: 0;
  color: var(--muted);
  opacity: 0.68;
  text-align: left;
  transition: opacity 0.18s ease;
}

.visitor-map:hover,
.visitor-map:focus-within {
  color: var(--accent);
  opacity: 1;
}

.visitor-map-frame {
  width: 100%;
  min-height: 69px;
}

.visitor-map-frame > #mapmyvisitors-widget {
  margin: 0 auto !important;
  min-height: 69px;
  overflow: hidden;
  border-radius: 4px;
}

.visitor-map-image-link,
.visitor-map-image {
  display: block;
  width: 100%;
}

.visitor-map-image {
  height: auto;
  border: 0;
}

.visitor-map.is-offline {
  opacity: 0.58;
}

.visitor-map-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(32, 38, 46, 0.82);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  cursor: pointer;
  transition: all 0.28s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 100px;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 26px;
    align-items: center;
  }

  .profile-photo-wrap {
    grid-row: 1 / span 5;
  }

  .profile-card > h1,
  .profile-card > .sidebar-role,
  .profile-card > .sidebar-affiliation,
  .profile-card > .opportunity,
  .profile-card > .sidebar-links {
    grid-column: 2;
  }

  .profile-sidebar h1,
  .sidebar-role,
  .sidebar-affiliation {
    text-align: left;
  }

  .profile-sidebar h1 {
    margin-top: 0;
  }

  .profile-photo {
    width: 170px;
    height: 170px;
  }

  .sidebar-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-nav-shell {
    min-height: 64px;
  }

  .site-brand {
    font-size: 21px;
  }

  .site-nav-links {
    gap: 12px;
  }

  .site-nav-links a {
    font-size: 13px;
  }

  .site-nav-links a:not(.nav-priority):not(.nav-cv) {
    display: none;
  }

  .site-nav-links .nav-cv {
    padding: 4px 8px;
  }

  .page-section {
    scroll-margin-top: 80px;
  }

  .page-shell {
    gap: 22px;
    padding-top: 92px;
  }

  .visitor-map {
    position: static;
    width: 132px;
    margin: 0 auto 22px;
    text-align: center;
  }

  .profile-card {
    display: block;
    padding: 0 12px 18px;
  }

  .profile-sidebar h1,
  .sidebar-role,
  .sidebar-affiliation {
    text-align: center;
  }

  .profile-photo {
    width: 156px;
    height: 156px;
  }

  .profile-sidebar h1 {
    margin-top: 16px;
  }

  .sidebar-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-intro {
    padding: 10px 0 12px;
  }

  .research-stages,
  .current-themes ul {
    grid-template-columns: 1fr;
  }

  .paper-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .paper-visual {
    height: 108px;
  }

  .paper-visual span {
    font-size: 16px;
  }

  .timeline-item {
    grid-template-columns: 128px 1fr;
    column-gap: 14px;
    row-gap: 8px;
  }

  .institution-mark {
    grid-column: 2;
    width: 128px;
    height: 44px;
    margin-top: 4px;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .profile-sidebar h1 {
    font-size: 25px;
  }

  .section-title {
    font-size: 23px;
  }

  .tag-filter {
    justify-content: flex-start;
  }

  .paper-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .paper-visual {
    height: 96px;
  }

  .paper-visual span {
    font-size: 13px;
  }

  .paper-visual small {
    font-size: 8px;
  }

  .paper-content h3 {
    font-size: 14px;
  }

  .paper-content p {
    font-size: 12.5px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .institution-mark {
    grid-column: 1;
    width: 124px;
    height: 42px;
    margin-top: 8px;
  }

  .landscape-content {
    min-height: 260px;
  }

  .landscape-content {
    padding: 58px 16px 44px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
