:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-muted: #eef3f1;
  --ink: #17201c;
  --muted: #5c6862;
  --line: #d8e0dc;
  --green: #126b54;
  --green-dark: #0d4f3e;
  --red: #8a2332;
  --gold: #9a6a20;
  --shadow: 0 14px 36px rgba(16, 32, 28, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:hover {
  color: var(--green);
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 224, 220, 0.86);
  background: rgba(244, 246, 245, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

nav a {
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

nav a.active,
nav a:hover {
  background: var(--surface);
  color: var(--green-dark);
}

.hero {
  padding: 72px 0 54px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 350px);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  font-weight: 820;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  font-weight: 780;
}

h3 {
  font-size: 1.08rem;
  font-weight: 760;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.credentials {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.profile-link,
.button-link,
.filter-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 680;
  text-decoration: none;
}

.profile-link,
.button-link {
  padding: 8px 12px;
}

.profile-link:first-child {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.verified-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portrait-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.portrait-panel img,
.portrait-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-fallback {
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: 820;
}

.section {
  padding: 70px 0;
}

.section-tight {
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-muted {
  background: var(--surface-muted);
  border-block: 1px solid var(--line);
}

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

.metric-card {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 2.1rem;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  font-weight: 760;
}

.metric-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
}

.body-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.04rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.expertise-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 7px 12px;
  color: var(--ink);
  font-weight: 680;
  text-decoration: none;
}

.highlight-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.highlight-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.highlight-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  max-width: 780px;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

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

.research-card,
.record-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.research-card {
  min-height: 220px;
  padding: 20px;
}

.card-topline,
.record-meta,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-topline {
  justify-content: space-between;
  min-height: 26px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status {
  border: 1px solid rgba(154, 106, 32, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--gold);
  text-transform: none;
}

.research-card h3 a,
.record-card h3 a,
.text-link {
  color: var(--ink);
  text-decoration-color: rgba(18, 107, 84, 0.38);
  text-underline-offset: 3px;
}

.research-card p,
.record-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.split-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.record-list {
  display: grid;
  gap: 12px;
}

.compact-list {
  gap: 10px;
}

.record-card {
  padding: 18px;
}

.record-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.record-meta span,
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--bg);
}

.tags {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.record-note {
  color: var(--gold);
  font-size: 0.9rem;
}

.record-summary {
  border-left: 3px solid rgba(18, 107, 84, 0.28);
  padding-left: 12px;
  font-size: 0.94rem;
}

.page-hero {
  padding: 64px 0 42px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.filter-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  padding: 7px 11px;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.cv-section-nav {
  position: sticky;
  top: 96px;
  display: grid;
  justify-content: stretch;
  gap: 8px;
}

.cv-section-nav a {
  display: block;
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 680;
  text-decoration: none;
}

.cv-sections {
  display: grid;
  gap: 40px;
}

.cv-section {
  scroll-margin-top: 96px;
}

.cv-item-list {
  display: grid;
  gap: 12px;
}

.cv-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cv-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--bg);
}

.cv-item ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.cv-item li + li {
  margin-top: 6px;
}

[hidden] {
  display: none !important;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #eff4f2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.site-footer p,
.site-footer ul {
  margin: 10px 0 0;
  color: #c7d4ce;
}

.site-footer ul {
  padding-left: 18px;
}

.site-footer a {
  color: #eff4f2;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .split-sections,
  .detail-grid,
  .cv-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cv-section-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portrait-panel {
    width: min(340px, 100%);
  }

  .research-grid,
  .record-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .page-hero {
    padding-block: 44px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .research-grid,
  .record-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .profile-link,
  .button-link {
    width: 100%;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cv-section-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cv-section-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .filter-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
