:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #1f2a37;
  --ink-soft: #55636f;
  --ink-faint: #8a97a3;
  --line: #e2e8ee;
  --line-soft: #eef2f6;
  --accent: #4a6b8a;
  --accent-2: #6d8ba8;
  --accent-wash: #eef3f8;
  --link: #2f6fa8;
  --link-dark: #1d4e7c;
  --pink: #b355c9;
  --pink-soft: #d9a6e6;
  --shadow: 0 1px 2px rgba(31, 42, 55, 0.04), 0 8px 28px rgba(31, 42, 55, 0.06);
  --shadow-lg: 0 2px 6px rgba(31, 42, 55, 0.06), 0 18px 48px rgba(31, 42, 55, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Apple Color Emoji", "Segoe UI Emoji", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 34px;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 308px;
  gap: 32px;
  align-items: start;
  padding: 56px 0 80px;
}

body.hide-news .news-rail {
  display: none;
}

body.hide-news .layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.side,
.news-rail {
  position: sticky;
  top: 40px;
}

.card,
.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 14px 14px 22px;
  text-align: center;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-sm);
  filter: saturate(0.96);
}

.identity {
  padding: 18px 8px 0;
}

.profile-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.name {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}

.name .zh {
  display: inline-block;
  margin-left: 4px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  font-weight: 500;
}

.headline {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-line;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.link-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 42px;
  padding: 7px 8px;
  color: #4b5259;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.link-row:hover {
  color: var(--ink);
  background: var(--accent-wash);
}

.link-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  color: #111111;
}

.link-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
}

.link-row .val {
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

.main {
  min-width: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
  padding: 6px;
  position: sticky;
  top: 22px;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 550;
  padding: 9px 18px;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: #ffffff;
  background: var(--pink-soft);
  box-shadow: 0 4px 12px rgba(217, 166, 230, 0.3);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view.active .module {
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.module {
  margin-bottom: 22px;
  padding: 30px 32px;
}

.module h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.module h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.module h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
}

.intro-block {
  max-width: 78ch;
}

.intro-block p {
  margin-bottom: 14px;
  color: #313c47;
}

.intro-block p:last-child {
  margin-bottom: 0;
}

.intro-block a,
.publication-authors a {
  color: var(--link);
  font-weight: 600;
  border-bottom: 1.5px solid rgba(47, 111, 168, 0.28);
  border-radius: 2px;
}

.intro-block a:hover,
.publication-authors a:hover {
  color: var(--link-dark);
  border-bottom-color: var(--link-dark);
  background: var(--accent-wash);
}

.lead {
  color: var(--ink) !important;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
}

.intro-block strong {
  color: var(--ink);
  font-weight: 750;
}

.interest-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 15px;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.87rem;
  line-height: 1.25;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chip:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.overview-title {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.55;
}

.overview-media {
  max-width: 920px;
  background: #ffffff;
}

.overview-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.more-copy {
  max-width: 62ch;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.more-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.more-photo {
  margin: 0;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.more-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: inherit;
  box-shadow: 0 1px 2px rgba(31, 42, 55, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.more-photo img:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.more-photo:nth-child(1),
.more-photo:nth-child(2),
.more-photo:nth-child(5) {
  aspect-ratio: 3 / 4;
}

.more-photo:nth-child(6) {
  aspect-ratio: 16 / 9;
}

.timeline-list {
  display: grid;
  gap: 26px;
}

.tl-group h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tl {
  position: relative;
  padding-left: 26px;
}

.tl::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.tl-item {
  position: relative;
  padding-bottom: 18px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-2);
  border-radius: 50%;
  background: var(--surface);
  transition: background 0.18s ease, transform 0.18s ease;
}

.tl-item:hover::before {
  background: var(--accent);
  transform: scale(1.25);
}

.tl-item .role {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.45;
}

.tl-item .when {
  margin-left: 8px;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 500;
}

.tl-item .detail {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.publication-card:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.publication-media {
  flex: 0 0 208px;
  min-width: 0;
}

.publication-media img {
  width: 208px;
  height: 124px;
  object-fit: contain;
  object-position: center center;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publication-content {
  min-width: 0;
  flex: 1;
}

.publication-title {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.42;
}

.publication-authors {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.publication-authors u,
.publication-authors .me {
  color: var(--ink);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.publication-description {
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 0.84rem;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.82rem;
}

.venue {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  color: var(--accent);
  background: var(--accent-wash);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;
}

.text-link {
  color: var(--link);
  font-weight: 600;
}

.text-link:hover {
  color: var(--link-dark);
}

.news-card {
  padding: 22px 20px;
  overflow: hidden;
}

.news-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.news-head h2 {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.beat {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--pink-soft);
  animation: beat 1.6s infinite;
}

@keyframes beat {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 166, 230, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(217, 166, 230, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(217, 166, 230, 0);
  }
}

.nlist {
  display: grid;
  gap: 10px;
}

.nitem {
  position: relative;
  padding: 12px 12px 12px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nitem::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(135deg, #6f9fd6 0%, #f08be9 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nitem:hover {
  background: #ffffff;
  border-color: var(--accent-2);
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.nitem:hover::before {
  opacity: 1;
}

.ndate {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 10px;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.2;
}

.ntext {
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.nmeta {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.45;
}

.site-footer {
  padding: 10px 0 0;
  color: var(--ink-faint);
  text-align: center;
}

.site-footer p {
  font-size: 0.82rem;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  body.hide-news .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .news-rail {
    grid-column: 1 / -1;
    position: static;
  }

  .news-card .nlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .wrap {
    padding: 0 24px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 56px;
  }

  body.hide-news .layout {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    text-align: left;
  }

  .portrait {
    aspect-ratio: 1;
  }

  .identity {
    padding: 0;
  }

  .links {
    grid-column: 1 / -1;
  }

  .tabs {
    top: 12px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .wrap {
    padding: 0 16px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .portrait {
    width: min(100%, 210px);
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }

  .module {
    padding: 24px 20px;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    border-radius: 16px;
  }

  .tab {
    flex: 0 0 auto;
  }

  .tl-item .when {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }

  .publication-card {
    flex-direction: column;
    gap: 12px;
  }

  .publication-media {
    width: 100%;
    flex-basis: auto;
  }

  .publication-media img {
    width: 100%;
    height: 150px;
  }

  .more-gallery {
    grid-template-columns: 1fr;
  }

  .news-card .nlist {
    grid-template-columns: 1fr;
  }
}
