:root {
  --blue: #4285f4;
  --blue-dark: #1a73e8;
  --link: #1a0dab;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --line-light: #e8eaed;
  --surface: #f8f9fa;
  --white: #ffffff;
  --chart-blue: #4285f4;
  --chart-green: #34a853;
  --chart-yellow: #fbbc04;
  --chart-red: #ea4335;
  --font: Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--text);
  background: var(--white);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
  transform: translateY(-160%);
}

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

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 64px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
}

.topbar-inner {
  display: flex;
  width: min(1440px, 100%);
  height: 100%;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  margin: 0 auto;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover { background: rgba(255,255,255,.13); }
.icon-button img { width: 22px; height: 22px; filter: invert(1); }

.scholar-brand {
  display: flex;
  min-width: 164px;
  align-items: center;
  gap: 10px;
  color: #fff;
  white-space: nowrap;
}

.scholar-brand:hover { text-decoration: none; }
.brand-logo { width: 112px; height: 48px; object-fit: contain; }
.scholar-brand span { font-size: 13px; opacity: .82; }

.global-search {
  display: flex;
  width: min(680px, 55vw);
  height: 44px;
  margin-left: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.17);
}

.global-search input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.global-search input::placeholder { color: #80868b; }

.global-search button {
  position: relative;
  width: 52px;
  border: 0;
  border-left: 1px solid var(--line-light);
  background: #fff;
  cursor: pointer;
}

.global-search button:hover { background: var(--surface); }

.global-search button img { width: 21px; height: 21px; opacity: .84; }

.top-link {
  margin-left: auto;
  padding: 10px 8px;
  color: #fff;
  font-size: 14px;
}

.drawer {
  position: fixed;
  z-index: 110;
  top: 64px;
  bottom: 0;
  left: 0;
  display: grid;
  width: 260px;
  align-content: start;
  padding: 16px 0;
  background: #fff;
  box-shadow: 2px 0 8px rgba(60,64,67,.22);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.drawer.is-open { transform: translateX(0); }
.drawer a { padding: 14px 28px; color: var(--text); font-size: 15px; }
.drawer a:hover { text-decoration: none; background: var(--surface); }

.page-shell {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto;
  scroll-margin-top: 82px;
}

.profile-header {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 28px;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.avatar-frame {
  width: 142px;
  height: 142px;
  overflow: hidden;
  border-radius: 50%;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.42);
  transform-origin: 50% 21%;
}

.profile-copy { min-width: 0; }

.profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.profile-title-row h1 {
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.english-name { margin: 4px 0 14px; color: var(--muted); font-size: 15px; }

.follow-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.follow-button:hover { text-decoration: none; background: var(--surface); }
.affiliation, .lab, .verified { margin: 3px 0; line-height: 1.45; }
.affiliation { font-size: 16px; }
.lab, .verified { color: var(--muted); }
.verified a { color: var(--link); }

.interest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
}

.interest-links a { font-size: 15px; }
.bio { max-width: 760px; margin: 14px 0 0; color: var(--muted); line-height: 1.7; }

.academic-overview {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 82px;
}

.overview-intro { min-width: 154px; }
.overview-intro h2 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.overview-intro p { margin: 0; color: var(--muted); font-size: 11px; }

.overview-metrics {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
}

.overview-metrics div {
  display: grid;
  min-width: 106px;
  gap: 2px;
  padding: 2px 20px;
  border-left: 1px solid var(--line);
}

.overview-metrics dt { color: var(--muted); font-size: 11px; order: 2; }
.overview-metrics dd { margin: 0; color: var(--text); font-size: 24px; font-weight: 400; line-height: 1; }

.sidebar-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-chart-heading h2,
.sidebar-chart-heading h3 { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.sidebar-chart-heading p,
.sidebar-chart-heading > span { margin: 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sidebar-chart-heading strong { color: var(--text); font-weight: 500; }
.sidebar-chart-block { padding-top: 18px; margin-top: 15px; border-top: 1px solid var(--line-light); }

.year-chart {
  position: relative;
  display: grid;
  height: 124px;
  grid-template-columns: repeat(9, minmax(12px, 1fr));
  gap: 3px;
  padding-top: 16px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(25% - 1px),
    var(--line-light) calc(25% - 1px),
    var(--line-light) 25%
  );
}

.year-bar-item {
  display: grid;
  min-width: 0;
  grid-template-rows: 1fr 24px;
  align-items: end;
  text-align: center;
}

.year-bar-column {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
}

.year-bar {
  width: min(18px, 68%);
  min-height: 2px;
  height: var(--bar-height);
  border-radius: 2px 2px 0 0;
  background: var(--chart-blue);
  transform-origin: bottom;
  animation: chart-rise 620ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--bar-delay);
}

.year-bar.is-zero { min-height: 1px; background: var(--line); }

.year-value {
  position: absolute;
  bottom: calc(var(--bar-height) + 5px);
  left: 50%;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  transform: translateX(-50%);
}

.year-label { align-self: end; color: var(--muted); font-size: 8px; white-space: nowrap; }

.type-chart-layout {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 112px;
  margin-top: 10px;
}

.type-donut {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
}

.type-donut::after {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.type-donut > div { position: relative; z-index: 1; display: grid; text-align: center; }
.type-donut strong { font-size: 19px; font-weight: 400; line-height: 1.1; }
.type-donut span { color: var(--muted); font-size: 10px; }

.type-legend { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.type-legend li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.type-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }
.type-legend span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.type-legend strong { font-size: 11px; font-weight: 500; }

.topic-chart {
  display: grid;
  min-height: 118px;
  align-content: center;
  gap: 12px;
  padding: 10px 0 14px;
}

.topic-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) 24px; gap: 8px; align-items: center; }
.topic-label { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.topic-track { height: 9px; overflow: hidden; border-radius: 5px; background: var(--surface); }
.topic-fill {
  display: block;
  width: var(--topic-width);
  height: 100%;
  border-radius: inherit;
  background: var(--topic-color);
  transform-origin: left;
  animation: chart-grow 620ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--topic-delay);
}
.topic-value { color: var(--muted); font-size: 11px; text-align: right; }

@keyframes chart-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes chart-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 36px;
  padding-top: 18px;
}

.publication-panel { min-width: 0; scroll-margin-top: 86px; }

.list-toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.list-toolbar > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.list-toolbar h2 { margin: 0; font-size: 19px; font-weight: 400; }
.list-toolbar > div:first-child span { color: var(--muted); font-size: 12px; }

.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.compact-search input, .select-control select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  background: #fff;
  outline: 0;
}

.compact-search input { width: 190px; padding: 0 11px; }
.select-control select { padding: 0 28px 0 9px; cursor: pointer; }
.compact-search input:focus, .select-control select:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

.publication-table { border: 1px solid var(--line); border-bottom: 0; }

.table-head,
.paper-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 62px;
}

.table-head {
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #f5f5f5;
}

.table-head > * {
  padding: 0 14px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.table-head button { cursor: pointer; }
.table-head button:first-child { text-align: left; }
.table-head button:hover, .table-head button.is-active { color: var(--link); }

.paper-row {
  min-height: 94px;
  align-items: start;
  border-bottom: 1px solid var(--line-light);
  background: #fff;
}

.paper-row:hover { background: #fafafa; }
.paper-main { min-width: 0; padding: 14px; }
.paper-title { display: inline-block; margin-bottom: 4px; color: var(--link); font-size: 16px; line-height: 1.35; }
.paper-authors, .paper-venue { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.paper-status { color: #80868b; }
.paper-citations, .paper-year {
  padding-top: 16px;
  color: var(--link);
  font-size: 13px;
  text-align: center;
}
.paper-year { color: var(--text); }
.citation-unavailable { color: #9aa0a6; }

.empty-state { padding: 46px 20px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }

.show-more {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 3px 3px;
  color: var(--link);
  background: #fff;
  cursor: pointer;
}

.show-more:hover { background: var(--surface); }
.show-more[hidden] { display: none; }
.show-more img { width: 18px; height: 18px; opacity: .72; }

.sidebar { min-width: 0; }
.side-section { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.side-section h2 { margin: 0 0 14px; font-size: 18px; font-weight: 400; }
.side-title-row { display: flex; align-items: center; justify-content: space-between; }
.side-title-row a { font-size: 12px; text-transform: uppercase; }

.citations table { width: 100%; border-collapse: collapse; }
.citations th, .citations td { padding: 5px 3px; font-size: 12px; text-align: right; }
.citations th { border-bottom: 1px solid var(--line); font-weight: 500; }
.citations th:first-child, .citations td:first-child { text-align: left; }
.snapshot-note { margin: 13px 0 0; color: #80868b; font-size: 11px; }

.topic-list, .simple-timeline { padding: 0; margin: 0; list-style: none; }
.topic-list li { border-top: 1px solid var(--line-light); }
.topic-list li:first-child { border-top: 0; }
.topic-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; }
.topic-list a:hover { text-decoration: none; background: var(--surface); }
.topic-list span { color: var(--muted); font-size: 11px; text-align: right; }

.simple-timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-light); }
.simple-timeline li:first-child { border-top: 0; }
.simple-timeline time { color: var(--muted); font-size: 11px; }
.simple-timeline p { margin: 0; font-size: 12px; line-height: 1.5; }
.simple-timeline span { color: var(--muted); }

.profile-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.profile-links h2 { width: 100%; }

.info-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 82px;
}

.info-heading h2 { margin: 0 0 7px; font-size: 20px; font-weight: 400; }
.info-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.plain-list { border-top: 1px solid var(--line); }
.plain-list article { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line-light); }
.plain-list time { color: var(--muted); font-size: 12px; }
.plain-list h3 { margin: 0 0 5px; font-size: 14px; font-weight: 500; }
.plain-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 24px max(24px, calc((100vw - 1260px) / 2));
  margin-top: 24px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.footer div { display: grid; gap: 4px; }
.footer strong { color: var(--text); font-size: 16px; font-weight: 500; }
.footer p { margin: 0; }

@media (max-width: 900px) {
  .scholar-brand { min-width: auto; }
  .brand-logo { width: 100px; height: 44px; }
  .scholar-brand span { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .side-section { min-width: 0; }
  .citations { order: -1; }
  .profile-links { align-content: start; }
  .overview-metrics div { min-width: 84px; padding: 2px 13px; }
}

@media (max-width: 640px) {
  body { font-size: 13px; }
  .topbar { height: 58px; }
  .topbar-inner { gap: 8px; padding: 0 10px; }
  .icon-button { width: 38px; height: 38px; }
  .brand-logo { width: 82px; height: 36px; }
  .global-search { width: auto; min-width: 0; flex: 1; height: 40px; margin-left: 0; }
  .global-search input { padding: 0 11px; font-size: 14px; }
  .global-search button { width: 43px; }
  .top-link { display: none; }
  .drawer { top: 58px; width: 78vw; }
  .page-shell { width: calc(100% - 28px); }
  .profile-header { grid-template-columns: 88px 1fr; gap: 16px; padding: 24px 0 20px; }
  .avatar-frame { width: 82px; height: 82px; }
  .profile-title-row { display: block; }
  .profile-title-row h1 { font-size: 23px; }
  .english-name { margin-bottom: 10px; font-size: 13px; }
  .follow-button { min-height: 34px; padding: 0 12px; margin-bottom: 10px; }
  .affiliation { font-size: 14px; }
  .lab, .verified { font-size: 12px; }
  .interest-links { grid-column: 1 / -1; gap: 6px 12px; }
  .interest-links a { font-size: 13px; }
  .bio { grid-column: 1 / -1; font-size: 12px; }
  .academic-overview { min-height: 62px; padding: 8px 0; }
  .overview-intro { display: none; }
  .overview-metrics { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); }
  .overview-metrics div { min-width: 0; padding: 2px 6px; border-left: 1px solid var(--line-light); text-align: center; }
  .overview-metrics div:first-child { border-left: 0; }
  .overview-metrics dd { font-size: 20px; }
  .year-chart { height: 142px; gap: 4px; }
  .year-label { font-size: 9px; }
  .type-chart-layout { grid-template-columns: 100px minmax(0, 1fr); min-height: 128px; padding: 0 10px; }
  .type-donut { width: 96px; height: 96px; }
  .topic-chart { min-height: 138px; gap: 15px; padding: 10px; }
  .content-grid { gap: 26px; padding-top: 18px; }
  .list-toolbar { display: block; }
  .list-toolbar > div:first-child { margin-bottom: 12px; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .compact-search { grid-column: 1 / -1; }
  .compact-search input { width: 100%; }
  .select-control select { width: 100%; }
  .table-head, .paper-row { grid-template-columns: minmax(0, 1fr) 52px; }
  .table-head > span:nth-child(2), .paper-citations { display: none; }
  .table-head > * { padding: 0 10px; }
  .paper-main { padding: 12px 10px; }
  .paper-title { font-size: 14px; }
  .paper-authors, .paper-venue { font-size: 11px; }
  .paper-year { padding-top: 14px; font-size: 12px; }
  .sidebar { grid-template-columns: 1fr; }
  .info-section { grid-template-columns: 1fr; gap: 15px; padding: 28px 0; }
  .plain-list article { grid-template-columns: 72px 1fr; gap: 10px; }
  .footer { grid-template-columns: 1fr; gap: 12px; padding: 24px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer { transition: none; }
  .year-bar, .topic-fill { animation: none; }
}
