:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #767676;
  --line: #e2e2e2;
  --accent: #31708f;
  --page-max: 1280px;
  --page-pad-x: 28px;
  --page-pad-top: 36px;
  --sidebar-width: 260px;
  --page-gap: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DengXian", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--page-pad-top) var(--page-pad-x) 72px;
}

.sidebar {
  position: fixed;
  top: var(--page-pad-top);
  left: max(
    var(--page-pad-x),
    calc((100vw - var(--page-max)) / 2 + var(--page-pad-x))
  );
  width: var(--sidebar-width);
  padding: 0;
}

.content {
  margin-left: calc(var(--sidebar-width) + var(--page-gap));
  max-width: 760px;
}

.profile-photo {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
}

.role {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list {
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 8px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--text);
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 52px;
  padding: 1px 0 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: 0.89rem;
  line-height: 1;
}

.top-nav a {
  line-height: 1;
}

.section {
  padding: 4px 0 24px;
}

.section-compact {
  padding-bottom: 8px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 600;
}

.section p,
.section li {
  font-size: 0.98rem;
  text-align: justify;
  text-justify: inter-word;
}

.section ul {
  margin: 0;
  padding-left: 22px;
}

.item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.item p {
  margin: 0;
}

.item p + p {
  margin-top: 10px;
}

.news-link {
  font-family: inherit;
  font-style: normal;
}

.news-link:link,
.news-link:visited {
  font-family: inherit;
  font-style: normal;
}

.publication-authors {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 4px;
  line-height: 1.38;
}

.publication-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.04rem;
  line-height: 1.32;
  font-weight: 800;
  color: var(--text);
}

.publication-entry {
  display: block;
}

.publication-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.publication-meta a {
  color: var(--accent);
  text-decoration: underline;
}

.project-shot {
  display: block;
  width: 220px;
  flex: 0 0 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: #fbfbfb;
  overflow: hidden;
}

.project-card:hover {
  text-decoration: none;
  border-color: #cddcea;
  background: #f7fbff;
}

.project-card-main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  min-width: 0;
}

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

.project-meta strong {
  font-size: 0.98rem;
  color: var(--text);
}

.project-meta span {
  font-size: 0.9rem;
  color: var(--muted);
}

.project-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  padding: 0 8px;
  border-left: 1px solid var(--line);
  background: #fcfcfc;
  color: #8c8c8c;
  font-size: 0.9rem;
}

.contact-inline {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.contact-inline a {
  color: var(--accent);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
}

.contact-inline-label {
  color: var(--muted);
  font-weight: 600;
}

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

.contact-separator {
  margin: 0 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
}

.contact-inline-secondary {
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .page {
    padding: 20px 16px 48px;
  }

  .sidebar {
    position: static;
    width: auto;
    margin-bottom: 28px;
  }

  .profile-photo {
    max-width: 180px;
  }

  .content {
    margin-left: 0;
    max-width: none;
  }

  .project-card {
    width: 100%;
  }

  .project-card-main {
    width: 100%;
    align-items: flex-start;
  }

  .project-shot {
    width: 140px;
    flex-basis: 140px;
  }

  .project-card-arrow {
    width: 44px;
    min-width: 44px;
  }
}
