:root {
  --ink: #1e3a5f;
  --ink-hover: #152a46;
  --text: #1c1c1c;
  --muted: #5c6570;
  --bg: #f7f5f1;
  --card: #fffcf8;
  --line: #e4dfd6;
  --chip: #eef2f7;
  --max: 46rem;
  --header-h: 3.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 0.5rem;
  z-index: 20;
  background: var(--card);
  padding: 0.25rem 0.5rem;
}

.status,
.error {
  max-width: var(--max);
  margin: 4rem auto;
  padding: 0 1.25rem;
  color: var(--muted);
}

.error {
  color: #8a1f1f;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.4rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem 1.35rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--chip);
  border: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 0.15rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.en-name {
  color: var(--muted);
  font-weight: 500;
}

.headline {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.contacts a {
  color: var(--ink);
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

.summary {
  margin: 0;
  grid-column: 1 / -1;
}

section {
  padding-top: 1.75rem;
}

section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.item {
  margin-bottom: 1.2rem;
}

.item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin-bottom: 0.2rem;
}

.item-title {
  font-weight: 600;
}

.item-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.org-line {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.org-line a,
.school a,
.pub-title a,
.project-name a {
  color: inherit;
  text-decoration: none;
}

.org-line a:hover,
.school a:hover,
.pub-title a:hover,
.project-name a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.item ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.item li + li {
  margin-top: 0.2rem;
}

.pub {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.pub:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pub-title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  line-height: 1.45;
}

.authors {
  margin: 0 0 0.2rem;
  color: var(--text);
  font-size: 0.95rem;
}

.authors .me {
  font-weight: 700;
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.02rem 0.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: 0.12em;
}

.venue {
  font-style: italic;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.links a {
  color: var(--ink);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.brief {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.award-list,
.open-list {
  margin: 0;
  padding-left: 1.15rem;
}

.award-list li + li,
.open-list li + li {
  margin-top: 0.25rem;
}

.open-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.open-list a:hover {
  text-decoration: underline;
}

.comp {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
}

.comp:last-child {
  border-bottom: 0;
}

.skill-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 0.55rem;
}

.skill-group {
  color: var(--ink);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.88rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .skill-row {
    grid-template-columns: 1fr;
  }

  .comp {
    flex-direction: column;
    gap: 0.1rem;
  }
}

@media print {
  .site-header,
  .skip {
    display: none;
  }

  body {
    background: #fff;
  }

  a {
    color: inherit;
  }
}
