:root {
  --bg: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --line: #e5e7eb;
  --accent: #1a73e8;
  --soft: #f8fafc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  font-size: 18px;
}

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

a:hover { text-decoration: underline; }

.container {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(900px, calc(100% - 48px));
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.97);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 68px;
  gap: 18px;
}

.brand a {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
}

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

main {
  padding: 36px 0 56px;
}

section {
  margin: 0 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 6px;
}

.avatar-card {
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--soft);
}

.avatar-card img {
  width: 100%;
  display: block;
  background: #fff;
}

.photo-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.5;
}

h1, h2 {
  line-height: 1.25;
  color: #5f7fbe;
  margin: 0 0 14px;
  font-weight: 600;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.35rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

p, ul { margin: 0 0 14px; }

.title {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 8px;
}

.cn {
  color: var(--muted);
  font-size: 0.8em;
  font-weight: 500;
}

.links {
  margin-top: 12px;
}

.sep {
  color: #9aa0a6;
  margin: 0 8px;
}

.paper-list {
  padding-left: 22px;
}

.paper-list li {
  margin-bottom: 12px;
}

.long-list li {
  margin-bottom: 10px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

code {
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.contact-links-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-links-row p {
  margin: 0;
}

.recruit-note {
  color: #c62828;
}

.visitor-map-section {
  margin-top: 24px;
  text-align: center;
}

.visitor-map img {
  max-width: 100%;
  height: auto;
  border: 0;
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-photo {
    max-width: 260px;
  }
  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-links-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
