:root {
  --navy: #173d43;
  --blue: #357f88;
  --text: #485254;
  --muted: #777;
  --accent: #e7774f;
  --line: #e9e9e9;
  --soft-blue: #eaf3f2;
  --warm: #fbf5ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Lato, "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  display: grid;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 80px;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.profile {
  position: sticky;
  top: 48px;
  padding: 1.4rem 1.2rem 1.7rem;
  background: linear-gradient(155deg, #f8fbfa 0%, #f0f6f5 62%, #fbf5ef 100%);
  border-top: 4px solid var(--accent);
  border-radius: 2px 2px 16px 2px;
  text-align: center;
}

.portrait {
  overflow: hidden;
  width: 154px;
  height: 190px;
  margin: -2.9rem auto 28px;
  border: 5px solid #fff;
  border-radius: 50% 50% 12px 12px;
  box-shadow: 0 8px 24px rgba(23, 61, 67, 0.1);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.profile h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1.1;
}

.name-cn {
  margin: 0.28rem 0 1rem;
  color: var(--muted);
  font-family: "Songti SC", SimSun, serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.role,
.affiliation,
.email {
  display: block;
  margin: 0.18rem 0;
}

.role {
  margin-bottom: 0;
  color: #555;
  font-size: 0.98rem;
}

.affiliation {
  font-size: 0.96rem;
}

.email {
  margin-top: 0.55rem;
  color: #555;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.69rem;
}

.social-links {
  display: flex;
  margin: 1.7rem 0 1.3rem;
  justify-content: center;
  gap: 1.25rem;
}

.social-links a {
  display: grid;
  width: 24px;
  height: 24px;
  color: var(--navy);
  place-items: center;
}

.social-links svg {
  width: 19px;
  fill: currentColor;
}

main {
  min-width: 0;
  counter-reset: section;
}

section {
  position: relative;
  margin-bottom: 2.2rem;
  counter-increment: section;
  scroll-margin-top: 2rem;
}

h2 {
  display: flex;
  width: 100%;
  margin: 0 0 0.9rem;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.15;
  align-items: center;
  gap: 0.65rem;
}

h2::before {
  color: var(--accent);
  content: "0" counter(section);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

h2::after {
  height: 1px;
  margin-left: 0.25rem;
  background: linear-gradient(90deg, rgba(53, 127, 136, 0.38), transparent);
  content: "";
  flex: 1;
}

h3 {
  color: #333;
}

p {
  margin: 0 0 0.9rem;
}

.research-note {
  padding: 1rem 1.15rem;
  margin: 0 0 1.2rem;
  color: var(--navy);
  background: var(--warm);
  border-left: 3px solid var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.55;
}

.research-note span {
  box-shadow: inset 0 -0.38em rgba(231, 119, 79, 0.15);
}

ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.55rem;
}

li {
  margin: 0.45rem 0;
}

.news-list {
  list-style: none;
  padding-left: 0;
}

.news-list li {
  margin: 0.45rem 0;
}

.news-list strong {
  color: var(--navy);
}

.entry {
  display: flex;
  margin: 0 0 1rem;
  justify-content: space-between;
  gap: 1.5rem;
}

.entry strong {
  color: #333;
}

.entry p {
  margin: 0.08rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry time {
  color: var(--muted);
  white-space: nowrap;
}

.publication-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.publication-list > li {
  padding: 0 0 1.4rem 1rem;
  margin: 0 0 1.4rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--soft-blue);
}

.venue {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  color: #fff;
  background: var(--accent);
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.paper-content h3 {
  margin: 0.3rem 0 0.28rem;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.35;
}

.paper-content p {
  margin: 0.18rem 0;
  font-size: 0.87rem;
}

.pub-note {
  color: var(--muted);
}

.paper-links {
  margin-top: 0.45rem;
}

.paper-links a,
.paper-links span,
.tag-link {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-right: 0.3rem;
  color: var(--navy);
  background: #f5f7f8;
  border: 1px solid #c8d2d8;
  border-radius: 3px;
  font-size: 0.7rem;
}

.paper-links span {
  color: var(--muted);
}

.author-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.project-list {
  padding-left: 1.4rem;
}

.project-list > li {
  margin-bottom: 1.2rem;
}

.project-list h3 {
  margin: 0;
  font-size: 1.03rem;
}

.project-list p {
  margin: 0.25rem 0 0.45rem;
}

.stars {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  margin-left: 0.4rem;
  color: #77503f;
  background: #fff0e8;
  border: 1px solid #efc3ae;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 400;
  vertical-align: 1px;
}

.subheading {
  margin: 1.1rem 0 0.55rem;
  color: var(--navy);
  font-size: 1.02rem;
}

.experience-item {
  padding-left: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--soft-blue);
}

.experience-item strong,
.experience-item span {
  display: block;
}

.experience-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.experience-item p {
  margin: 0.3rem 0 0;
}

.award-list {
  list-style: none;
  padding-left: 0;
}

.award-list strong {
  color: var(--navy);
}

footer {
  padding-top: 1rem;
  color: #aaa;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  text-align: right;
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 36px, 680px);
    padding-top: 38px;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .profile {
    position: static;
    max-width: 360px;
    margin: 0 auto;
  }

  .portrait {
    width: 132px;
    height: 160px;
    margin-bottom: 22px;
  }
}

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

  .entry {
    display: block;
  }

  .entry time {
    display: block;
    margin-top: 0.15rem;
  }
}

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