:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #182326;
  --muted: #5a666a;
  --line: #dbe2e0;
  --accent: #126d71;
  --accent-dark: #0d5054;
  --warm: #a95f2d;
  --soft: #eaf4f2;
  --shadow: 0 18px 48px rgba(24, 35, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(18, 109, 113, 0.12), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(169, 95, 45, 0.11), transparent 30%),
    linear-gradient(180deg, #eef4f3 0, var(--bg) 360px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 2px 0;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.updated-at {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.language-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 109, 113, 0.26);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(24, 35, 38, 0.06);
}

.language-link:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 109, 113, 0.18);
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(24, 35, 38, 0.045);
}

.site-nav a:hover {
  border-color: rgba(18, 109, 113, 0.3);
  background: var(--surface);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
  min-height: 420px;
}

.hero__content,
.profile-card,
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px);
  border-left: 5px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(234, 244, 242, 0.72), rgba(255, 255, 255, 0.96) 46%),
    var(--surface);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.65rem, 7vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.32;
}

h3 span {
  margin-left: 0.75em;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.title {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: clamp(1.08rem, 2.4vw, 1.42rem);
  font-weight: 800;
}

.title span + span {
  color: var(--warm);
  font-size: clamp(0.98rem, 2vw, 1.15rem);
}

.summary {
  max-width: 680px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1.03rem;
}

.summary:last-of-type {
  margin-bottom: 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  border-color: var(--accent-dark);
}

.profile-card {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(234, 244, 242, 0.78), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.profile-photo {
  width: min(168px, 78%);
  margin: 0 auto;
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(18, 109, 113, 0.2);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 16px 36px rgba(24, 35, 38, 0.12);
}

.profile-card dl {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.profile-card div {
  padding-bottom: 2px;
}

.profile-card div:last-child {
  padding-bottom: 0;
}

.profile-card dd.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 9px;
  width: max-content;
  margin-top: 8px;
}

.profile-card .social-links a {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 109, 113, 0.28);
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-dark);
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.profile-card .social-links a:hover {
  border-color: var(--accent);
  background: var(--soft);
  transform: translateY(-1px);
}

.profile-card .social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.degree {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 0.96rem;
  font-weight: 800;
}

.plain-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.plain-link:hover {
  text-decoration: underline;
}

.inline-gap {
  display: inline-block;
  width: 18px;
}

.section {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  scroll-margin-top: 18px;
}

.section--highlight {
  border-color: rgba(18, 109, 113, 0.24);
  background:
    linear-gradient(135deg, rgba(234, 244, 242, 0.92), rgba(255, 255, 255, 0.98) 58%, rgba(169, 95, 45, 0.08)),
    var(--surface);
}

.section__heading {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.keyword-list span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(18, 109, 113, 0.26);
  border-radius: 8px;
  padding: 8px 16px;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 1.02rem;
  font-weight: 800;
}

.research-profile {
  display: grid;
  gap: 18px;
}

.research-profile p {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.tag-list--compact {
  gap: 8px;
  margin-top: 14px;
}

.tag-list span,
.project span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(23, 107, 103, 0.24);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

.tag-list--compact span {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.82rem;
}

.research-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.research-strip article {
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.76);
}

.research-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 24px;
}

.item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.item:first-child {
  border-top: 0;
  padding-top: 0;
}

.item__meta {
  display: grid;
  align-content: start;
  gap: 6px;
}

.item__meta span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.item__body p,
.project p {
  color: var(--muted);
  margin-bottom: 10px;
}

.item__body p:last-child,
.project p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

li + li {
  margin-top: 6px;
}

.award-list {
  margin: 0;
  color: var(--muted);
}

.outcome-group + .outcome-group {
  margin-top: 28px;
}

.outcome-list {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.outcome-list li {
  padding-left: 4px;
}

.outcome-list strong {
  color: var(--ink);
  font-weight: 850;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-stack {
  display: grid;
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: 44px 180px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #fbfdfc 68%, rgba(234, 244, 242, 0.75));
}

.project-card__index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 850;
}

.project-card__time {
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 850;
  padding-top: 5px;
}

.project-card__content h3 {
  margin-bottom: 6px;
}

.project-card__content p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-card__content .project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.project-card__meta span {
  color: var(--accent-dark);
}

.award-stack {
  display: grid;
  gap: 16px;
}

.award-card {
  display: grid;
  grid-template-columns: 44px 120px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #ffffff, #fbfdfc 68%, rgba(234, 244, 242, 0.75));
}

.award-card__index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 850;
}

.award-card__time {
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 850;
  padding-top: 5px;
}

.award-card__content h3 {
  margin-bottom: 8px;
}

.award-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.award-list--numbered {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
  counter-reset: awards;
}

.award-list--numbered li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff, #fbfdfc 70%, rgba(234, 244, 242, 0.7));
  counter-increment: awards;
}

.award-list--numbered li::before {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 850;
  content: counter(awards);
}

.award-list--numbered strong,
.award-list--numbered span {
  grid-column: 2;
}

.award-list--numbered strong {
  color: var(--ink);
}

.award-list--numbered span {
  color: var(--muted);
}

.award-list--numbered span + span {
  color: var(--accent-dark);
  font-weight: 800;
}

.project-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
}

.project-row__meta {
  display: grid;
  align-content: start;
  gap: 8px;
}

.project-row__meta strong {
  line-height: 1.35;
}

.stacked-name {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}

.stacked-name span {
  display: block;
}

.project-row__meta span {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.project-row__body p {
  margin-bottom: 0;
  color: var(--muted);
}

.item--compact {
  border-top: 0;
  padding-top: 0;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: -44px auto 36px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 28px, 680px);
    padding-top: 24px;
  }

  .header-bar {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 14px;
  }

  .header-actions {
    margin-left: auto;
    justify-content: flex-end;
  }

  .site-nav {
    flex: 1 1 360px;
    width: auto;
    gap: 8px;
  }

  .site-nav a {
    padding: 6px 8px;
    font-size: 0.86rem;
    text-align: center;
  }

  .hero,
  .item,
  .grid,
  .research-strip,
  .project-row {
    grid-template-columns: 1fr;
  }

  .project-card,
  .award-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 14px;
  }

  .project-card__time,
  .award-card__time {
    grid-column: 2;
    align-self: center;
  }

  .project-card__content,
  .award-card__content {
    grid-column: 1 / -1;
  }

  .project-card__time,
  .award-card__time {
    padding-top: 0;
  }

  .hero {
    min-height: 0;
  }

  .profile-card {
    padding: 24px;
  }

  .profile-photo {
    width: min(150px, 60%);
  }

  .hero__content {
    border-left: 0;
    border-top: 5px solid var(--accent);
  }
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 20px, 680px);
  }

  .header-bar {
    padding: 0;
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .updated-at {
    font-size: 0.82rem;
  }

  .language-link {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .site-nav {
    flex: 1 1 100%;
  }

  .site-footer {
    width: min(100% - 20px, 680px);
  }

  .hero__content,
  .section {
    padding: 22px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h3 span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .keyword-list span {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.96rem;
  }

  .actions,
  .button {
    width: 100%;
  }
}
