:root {
  --bg: #f8f7f2;
  --paper: #fffdf8;
  --text: #1e2730;
  --muted: #66717c;
  --line: #dde3e8;
  --theme: #123b67;
  --link: #2468a2;
  --shadow: 0 16px 34px rgba(20, 33, 52, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 10% 10%, rgba(18, 59, 103, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfaf6 0%, #f5f3ec 100%);
}

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

a:hover {
  text-decoration: underline;
}

.wrapper {
  width: min(1200px, calc(100vw - 64px));
  margin: 0 auto;
}

header {
  position: fixed;
  width: 280px;
  padding-top: 3.5rem;
  text-align: center;
}

.avatar {
  display: block;
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 6px;
  color: var(--theme);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.12;
}

.name-zh {
  margin-bottom: 10px;
  color: var(--theme);
  font-size: 1.3rem;
  line-height: 1.1;
}

.position,
.affiliation,
.email,
.summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.profile-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 16px 0 18px;
}

.profile-links a {
  padding: 4px 0;
}

.summary {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.82);
  text-align: left;
}

section {
  width: min(860px, calc(100% - 320px));
  float: right;
  padding-top: 3.5rem;
  padding-bottom: 64px;
}

h2 {
  margin: 0 0 16px;
  color: var(--theme);
  font-size: 1.5rem;
  font-weight: 600;
}

h2 small {
  font-size: 0.8rem;
  font-weight: 400;
}

p,
ul,
ol {
  margin: 0 0 15px;
}

strong {
  color: var(--theme);
  font-weight: 600;
}

.entry-list,
.publication-list {
  margin: 0 0 34px;
}

.entry-item,
.publication-item {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
}

.entry-item:first-child,
.publication-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.entry-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.entry-main {
  flex: 1;
  min-width: 0;
}

.entry-main h3 {
  margin: 0 0 6px;
  color: var(--theme);
  font-size: 1.06rem;
  font-weight: 600;
}

.entry-main p {
  color: var(--muted);
}

.entry-main .lead {
  color: var(--text);
}

.entry-meta {
  min-width: 136px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  font-size: 0.95rem;
}

.detail ul {
  padding-left: 18px;
}

.detail li {
  margin-bottom: 7px;
}

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

.publication-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.venue {
  color: var(--theme);
  font-weight: 600;
}

.author-rank {
  color: var(--muted);
  white-space: nowrap;
}

.publication-title {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.publication-title a {
  color: inherit;
}

.publication-links {
  margin-top: 7px;
  font-size: 0.92rem;
}

.publication-links a {
  color: var(--link);
}

@media print, screen and (max-width: 980px) {
  .wrapper {
    width: auto;
    margin: 0;
    padding: 0 20px;
  }

  header,
  section {
    position: static;
    float: none;
    width: auto;
  }

  header {
    padding-top: 24px;
    margin-bottom: 24px;
  }

  section {
    padding-top: 0;
  }
}

@media print, screen and (max-width: 640px) {
  .wrapper {
    padding: 0 14px;
  }

  .avatar {
    width: 92px;
    height: 92px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .name-zh {
    font-size: 1.15rem;
  }

  .entry-item,
  .publication-head {
    display: block;
  }

  .entry-meta,
  .author-rank {
    margin-top: 6px;
    text-align: left;
  }
}
