:root {
  --background: #fbfbf9;
  --surface: #ffffff;
  --text: #252a31;
  --muted: #66707b;
  --light-muted: #87909a;
  --navy: #173b63;
  --navy-dark: #102b49;
  --link: #1e5b96;
  --line: #dce1e5;
  --line-dark: #c9d0d6;
  --soft-blue: #edf3f8;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--navy);
}

.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;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 249, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
}

.site-name {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-name:hover {
  text-decoration: none;
}

.primary-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.primary-nav a {
  position: relative;
  color: #4c5662;
  font-size: 0.83rem;
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--navy);
  text-decoration: none;
}

.primary-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--navy);
}

.menu-button {
  display: none;
}

.page {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.profile-section {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 54px;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line-dark);
}

.portrait {
  display: block;
  width: 190px;
  height: 190px;
  object-fit: cover;
  border: 1px solid var(--line-dark);
  background: #eee;
}

.profile-links {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.profile-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  color: var(--navy);
}

.profile-link img,
.contact-email img {
  width: 16px;
  height: 16px;
  opacity: 0.78;
}

.profile-link:hover img,
.contact-email:hover img {
  opacity: 1;
}

.profile-link {
  font-size: 0.78rem;
  font-weight: 600;
}

.affiliation {
  margin: 1px 0 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-content h1 {
  margin: 0;
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.title-line {
  margin: 8px 0 27px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.12rem;
  font-style: italic;
}

.bio {
  max-width: 720px;
}

.bio p {
  margin: 0 0 12px;
}

.research-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: baseline;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.79rem;
}

.research-interests strong {
  color: var(--text);
}

.research-interests > span:not(.lang) {
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.content-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 38px;
  align-items: baseline;
  margin-bottom: 30px;
}

.section-header h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-header h2::after,
.contact-section h2::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 9px;
  content: "";
  background: var(--navy);
}

.section-header > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-list {
  margin-left: 258px;
  border-left: 2px solid var(--soft-blue);
}

.news-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 7px 0 7px 19px;
}

.news-item time,
.project-meta time,
.experience-item time,
.education-item time {
  color: var(--light-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
}

.news-item p {
  margin: 0;
  font-size: 0.91rem;
}

.news-accent {
  color: #b42318;
  font-weight: 800;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 38px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

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

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta span {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.project-body h3,
.publication-card-body h3,
.experience-item h3,
.education-item h3 {
  margin: 0;
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-body > p {
  margin: 9px 0 0;
  color: #4e5863;
  font-size: 0.9rem;
}

.result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--navy);
}

.result-list strong {
  color: var(--text);
}

.publication-card {
  width: min(100%, 720px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(16, 43, 73, 0.07);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.publication-card:hover {
  box-shadow: 0 13px 30px rgba(16, 43, 73, 0.11);
  transform: translateY(-2px);
}

.publication-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.publication-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 5px 14px rgba(16, 43, 73, 0.16);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.publication-badge span {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.publication-figure {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: #fff;
  object-fit: cover;
  object-position: center;
}

.publication-card-body {
  padding: 22px 25px 24px;
}

.publication-card-body h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

.authors,
.publication-venue,
.publication-keywords {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.authors {
  color: #4f5f70;
}

.authors a {
  color: #223e79;
  border-bottom: 1px dashed #788ba7;
}

.authors a:hover {
  text-decoration: none;
  border-bottom-style: solid;
}

.publication-venue,
.publication-keywords {
  color: var(--muted);
}

.publication-venue strong,
.publication-keywords strong {
  color: var(--text);
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 21px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.paper-links a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--navy);
  border-bottom: 1px solid #aebdca;
  font-size: 0.86rem;
  font-weight: 700;
}

.paper-links a:hover {
  border-bottom-color: var(--navy);
  text-decoration: none;
}

.experience-list {
  margin-left: 258px;
  border-top: 1px solid var(--line);
}

.experience-item {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.experience-item h3 {
  font-size: 1rem;
}

.experience-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.section-header.compact {
  display: block;
  margin-bottom: 25px;
}

.education-list {
  max-width: 680px;
}

.education-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 95px;
}

.education-item time {
  position: absolute;
  top: 3px;
  left: 0;
}

.education-item h3 {
  font-size: 1rem;
}

.education-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-section {
  padding: 52px 0 68px;
  text-align: center;
}

.contact-section h2::after {
  margin-right: auto;
  margin-left: auto;
}

.contact-section p {
  max-width: 560px;
  margin: 19px auto 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-email {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f4f5f4;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  color: var(--light-muted);
  font-size: 0.7rem;
}

.footer-inner a {
  justify-self: end;
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .menu-button {
    display: grid;
    width: 36px;
    height: 34px;
    padding: 7px;
    border: 1px solid var(--line-dark);
    background: var(--surface);
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 1px;
    margin: auto;
    background: var(--navy);
  }

  .primary-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line-dark);
    background: var(--background);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a.is-active::after {
    display: none;
  }

  .profile-section {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 35px;
  }

  .portrait {
    width: 165px;
    height: 165px;
  }

  .section-header {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 30px;
  }

  .news-list,
  .experience-list {
    margin-left: 195px;
  }

  .project-item {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 30px;
  }

}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 68px;
  }

  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 28px, var(--max-width));
  }

  .site-name {
    font-size: 1.05rem;
  }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 42px 0 46px;
  }

  .portrait-column {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 18px;
    align-items: end;
  }

  .portrait {
    width: 118px;
    height: 118px;
  }

  .profile-links {
    display: grid;
    gap: 4px;
    margin: 0;
  }

  .profile-content h1 {
    font-size: 2.45rem;
  }

  .content-section {
    padding: 43px 0;
  }

  .section-header {
    display: block;
    margin-bottom: 25px;
  }

  .section-header > p {
    margin-top: 18px;
  }

  .news-list,
  .experience-list {
    margin-left: 0;
  }

  .news-item {
    grid-template-columns: 68px 1fr;
    gap: 10px;
    padding-left: 14px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .project-meta {
    flex-direction: row;
    justify-content: space-between;
  }

  .result-list {
    display: grid;
    gap: 4px;
  }

  .publication-card-body {
    padding: 21px 19px 23px;
  }

  .publication-card-body h3 {
    font-size: 1.16rem;
  }

  .paper-links {
    gap: 11px 17px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner > span:nth-child(2) {
    display: none;
  }
}

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