:root {
  --bg: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --faint: #f7f7f5;
  --line: #dedbd4;
  --accent: #315f7d;
  --accent-strong: #21445c;
  --heading: #181818;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 56px;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
}

.nav-name:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

.home-page {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 88px;
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 88px;
  text-align: center;
}

.profile-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.profile-panel h1 {
  margin: 0;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.12;
}

.role {
  margin: 12px 0 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
}

.affiliation {
  max-width: 250px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.profile-link-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.profile-link-buttons a {
  width: 100%;
  max-width: 210px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  color: var(--accent);
  font-size: 14px;
  justify-content: center;
}

.profile-link-buttons a:hover {
  text-decoration: underline;
}

.profile-link-buttons i {
  width: 18px;
  text-align: center;
}

.home-content {
  min-width: 0;
  max-width: 820px;
}

.content-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-section h2 {
  margin: 0 0 20px;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.18;
}

.content-section h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
}

.content-section p {
  max-width: 760px;
  margin: 0 0 16px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.biography-section {
  padding-top: 0;
}

.page-anchor {
  scroll-margin-top: 78px;
  padding-top: 8px;
}

.publication-group {
  margin-bottom: 44px;
}

.publication-group:last-child {
  margin-bottom: 0;
}

.publication-group h2 {
  margin-bottom: 22px;
}

.publication-list,
.patent-list,
.service-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.publication-card,
.patent-card,
.service-card {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.publication-card:last-child,
.patent-card:last-child,
.service-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.publication-card h3,
.patent-card h2,
.service-card h3 {
  margin-top: 8px;
  margin-bottom: 8px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
}

.patent-card h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.publication-meta,
.patent-meta,
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.publication-status,
.patent-status,
.service-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--faint);
  color: var(--heading);
  font-size: 12px;
  font-weight: 600;
}

.publication-authors,
.publication-venue,
.patent-title-en,
.patent-details,
.service-card p {
  color: var(--muted);
  font-size: 15px;
}

.publication-authors {
  margin-top: 8px;
  margin-bottom: 8px;
}

.publication-links,
.patent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.publication-links a,
.patent-links a {
  font-size: 14px;
  font-weight: 500;
}

.patent-title-en {
  margin-top: 0;
  line-height: 1.6;
}

.patent-details {
  margin: 12px 0 0;
  padding-left: 20px;
}

.patent-details li {
  margin-bottom: 5px;
}

.service-icon {
  display: none;
}

@media (max-width: 900px) {
  .top-nav {
    padding: 0 28px;
  }

  .home-page {
    width: min(100% - 48px, 760px);
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
  }

  .profile-panel {
    position: static;
  }

  .home-content {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .top-nav {
    min-height: auto;
    padding: 14px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .home-page {
    width: min(100% - 36px, 760px);
    padding: 40px 0 72px;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }

  .profile-panel h1 {
    font-size: 29px;
  }

  .content-section h2 {
    font-size: 27px;
  }

  .page-anchor {
    scroll-margin-top: 126px;
  }
}
