:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fbfbfa;
  --surface-strong: #f4f4f2;
  --text: #242424;
  --muted: #686761;
  --faint: #8f8d86;
  --line: #e8e6df;
  --line-strong: #d7d4ca;
  --accent: #22211f;
  --accent-soft: #efede7;
  --link: #334e68;
  --radius: 8px;
  --header-height: 50px;
  --page-width: 1200px;
  --profile-width: 220px;
  --column-gap: 48px;
  --content-pad: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(248, 248, 246, 0.84), rgba(255, 255, 255, 0) 220px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0;
}

[class^="ri-"],
[class*=" ri-"] {
  font-family: remixicon !important;
  font-style: normal;
  line-height: 1;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(var(--page-width), calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.language-button:hover,
.language-button.is-active {
  background: #fff;
  color: var(--accent);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: transparent;
  color: var(--accent);
}

.page-shell {
  display: grid;
  grid-template-columns: var(--profile-width) minmax(0, 1fr);
  gap: var(--column-gap);
  width: min(var(--page-width), calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.profile-panel {
  position: sticky;
  top: calc(var(--header-height) + 38px);
  align-self: start;
  color: var(--muted);
}

.avatar-wrap {
  width: 158px;
  height: 158px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-strong);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.45);
  transform-origin: 56% 46%;
}

.profile-name {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 720;
  line-height: 1.25;
}

.profile-title,
.profile-tagline {
  margin: 0;
}

.profile-title {
  color: #3d3b36;
  font-weight: 560;
  font-size: 14px;
}

.profile-tagline {
  margin-top: 18px;
  color: var(--muted);
}

.contact-list,
.social-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact-link,
.contact-item,
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.contact-link:hover,
.social-link:hover {
  text-decoration: underline;
}

.mini-mark,
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mini-mark {
  width: 22px;
  height: 22px;
  color: #111;
  font-size: 16px;
  line-height: 1;
}

.content-stack {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.content-column {
  min-width: 0;
  padding: var(--content-pad);
  border-radius: 12px;
  background: #f1f4f9;
}

#about {
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.content-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.content-section:first-of-type {
  padding-top: 0;
}

.content-section:last-of-type {
  border-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.28;
}

.section-icon {
  width: 22px;
  color: #55524b;
  font-size: 19px;
  line-height: 1;
}

.heading-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}

.body-copy {
  display: grid;
  gap: 8px;
}

.body-copy p {
  margin: 0;
}

.localized {
  display: inline;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-name .localized {
  display: block;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
}

.pill-link:hover {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.news-list,
.simple-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item,
.simple-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.simple-item {
  grid-template-columns: minmax(128px, max-content) minmax(0, 1fr);
}

.date-label {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}

.card-list {
  display: grid;
  gap: 22px;
}

.feature-card {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 20px 0;
}

.feature-card + .feature-card {
  border-top: 1px solid var(--line);
}

.feature-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-title {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.42;
}

.feature-title a {
  color: var(--link);
}

.meta-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
}

.summary-list li::marker {
  color: var(--muted);
}

.honor-card {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  padding: 18px 0;
}

.honor-card .feature-media img {
  aspect-ratio: 4 / 3;
}

.compact-title {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.section-empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  :root {
    --content-pad: 14px;
  }

  .header-inner {
    width: min(100% - 28px, var(--page-width));
    gap: 12px;
  }

  .nav-list {
    gap: 22px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 36px;
    width: min(100% - 28px, var(--page-width));
    padding-top: 34px;
  }

  .profile-panel {
    position: static;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }

  .avatar-wrap {
    width: 112px;
    height: 112px;
    margin: 0;
  }

  .profile-content {
    min-width: 0;
  }

  .contact-list,
  .social-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .feature-card,
  .honor-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    align-items: center;
    padding: 8px 0;
  }

  :root {
    --header-height: 52px;
  }

  .nav-link {
    font-size: 12px;
  }

  .language-switch {
    margin-top: 1px;
  }

  .language-button {
    min-width: 36px;
    min-height: 26px;
    padding: 0 8px;
  }

  .profile-panel {
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 16px;
  }

  .avatar-wrap {
    width: 92px;
    height: 92px;
  }

  .profile-name {
    font-size: 19px;
  }

  .profile-tagline {
    margin-top: 10px;
  }

  .contact-list,
  .social-list {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 24px 0;
  }

  .section-heading {
    display: grid;
    gap: 2px 8px;
    grid-template-columns: auto 1fr;
    margin-bottom: 16px;
    font-size: 20px;
  }

  .section-icon {
    margin-top: 9px;
  }

  .heading-text {
    display: inline-flex;
  }

  .news-item,
  .simple-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
