:root {
  --bg: #f7f6f2;
  --ink: #1f2724;
  --sub: #55615b;
  --brand: #1f6a4b;
  --brand-2: #d09a32;
  --card: #ffffff;
  --line: rgba(31, 39, 36, 0.12);
  --shadow: 0 12px 34px rgba(24, 40, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.75;
  background: radial-gradient(circle at 12% 6%, #fdf8e9 0%, var(--bg) 32%), var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("assets/images/bg/bg-ipbes-kmgbf-sdg-composite.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.14;
  filter: saturate(0.9) contrast(1.01);
}

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

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.35;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: #b7dfc3;
  top: -60px;
  right: -40px;
}

.orb-b {
  width: 240px;
  height: 240px;
  background: #ffd88a;
  bottom: 10%;
  left: -80px;
}

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

.hero {
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 0 18px;
  margin-bottom: 18px;
}

.hero-corner-logo {
  flex: 0 0 auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.hero-logo-pku {
  height: 52px;
  width: auto;
}

.hero-logo-iiasa {
  height: 58px;
  width: auto;
  max-width: min(320px, 42vw);
}

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

.hero-photo-wrap {
  background: linear-gradient(160deg, #f3f6f4, #e4eee8);
  border: 1px solid #d7e5dc;
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.hero-panda-wrap {
  background: linear-gradient(160deg, #fffef8, #eef5ec);
  border: 1px solid #d7e5dc;
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-panda {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  padding: 6px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.hero h1 {
  font-family: "Fraunces", "Source Serif 4", serif;
  margin: 0;
  line-height: 1.12;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.hero-name-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  margin-top: 0;
}

.hero h1 > span:not(.hero-name-row) {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-family: "Source Sans 3", sans-serif;
  color: var(--sub);
  margin-top: 8px;
  font-weight: 500;
}

.hero-inline-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  transform: translateY(2px);
}

.hero-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d3e1d8;
  background: rgba(255, 255, 255, 0.86);
  color: #2a5b45;
  text-decoration: none;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(24, 40, 32, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-inline-link:hover {
  color: #1f6a4b;
  border-color: #b9d5c5;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 40, 32, 0.12);
}

.lead {
  margin: 14px 0 0;
  font-size: 1.18rem;
  font-weight: 600;
  color: #33413b;
  max-width: 820px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chips span {
  border: 1px solid #c9dfd2;
  background: #f2faf5;
  color: #1c5d42;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid #d3e1d8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(24, 40, 32, 0.08);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #5c6d65;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover {
  color: #234d3a;
  transform: translateY(-1px);
}

.lang-btn.is-active {
  background: #1f6a4b;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 106, 75, 0.22);
}

.contacts {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.contacts a,
.contacts span {
  color: var(--sub);
  font-size: 0.94rem;
  text-decoration: none;
}

.contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d3e1d8;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(24, 40, 32, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.contacts a:hover {
  color: #1f6a4b;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 40, 32, 0.1);
}

.hero-note {
  margin: 14px 0 0;
  color: #56655f;
  font-size: 0.94rem;
  line-height: 1.6;
}

.hero-note a {
  color: #1f6a4b;
  font-weight: 700;
  text-decoration: none;
}

.hero-note a:hover {
  text-decoration: underline;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 14px;
  flex-wrap: wrap;
}

.nav a {
  color: #45524c;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 7px 11px;
  border-radius: 999px;
}

.nav a:hover {
  background: #e9f5ee;
  color: #16573d;
}

.section {
  padding: 52px 0 20px;
}

.section h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  display: block;
  width: 48%;
  height: 6px;
  margin-top: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.papers-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.papers-heading span:first-child {
  display: inline-block;
}

.profile-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(23, 38, 31, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 38, 31, 0.16);
}

.profile-link span,
.profile-link svg {
  display: block;
}

.profile-link span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.profile-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.profile-link-researchgate {
  background: #00ccbb;
  color: #ffffff;
}

.profile-link-github {
  background: #1f2328;
  color: #ffffff;
}

.profile-link-orcid {
  background: #a6ce39;
  color: #ffffff;
}

.section p {
  margin: 0 0 12px;
  color: #35423d;
  font-size: 1.03rem;
}

.card {
  border: 1px solid #dce6e0;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(31, 39, 36, 0.06);
}

.watch-intro-card {
  margin-bottom: 18px;
}

.watch-intro {
  margin: 0 0 14px;
  color: #34413c;
}

.watch-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.watch-controls {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.watch-sort,
.watch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.watch-badge,
.watch-updated {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.watch-badge {
  background: #eef7f1;
  border: 1px solid #c8dfd2;
  color: #1b5d42;
}

.watch-updated {
  background: #fbf4e3;
  border: 1px solid #ead8a8;
  color: #775614;
}

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

.watch-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 246, 0.98));
  border: 1px solid rgba(31, 39, 36, 0.12);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.watch-card-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--sub);
}

.watch-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.watch-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f6a4b, #2d8360);
  color: #fff;
  font-weight: 800;
}

.watch-date {
  color: #6b7a74;
  font-size: 0.92rem;
  font-weight: 600;
}

.watch-card h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", "Source Serif 4", serif;
  font-size: 1.18rem;
  line-height: 1.3;
}

.watch-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.watch-card h3 a:hover {
  color: var(--brand);
}

.watch-journal,
.watch-authors,
.watch-abstract {
  margin: 0;
  color: #44514b;
}

.watch-journal {
  font-weight: 700;
}

.watch-authors {
  margin-top: 4px;
  font-size: 0.96rem;
}

.watch-abstract {
  margin-top: 12px;
  font-size: 0.98rem;
}

.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.watch-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf5ef;
  border: 1px solid #d4e5da;
  color: #28553f;
  font-size: 0.85rem;
  font-weight: 700;
}

.watch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.watch-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.watch-action-primary {
  background: #1f6a4b;
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 106, 75, 0.2);
}

.watch-action-secondary {
  background: #f7f3e7;
  color: #78591a;
  border: 1px solid #e5d6ab;
}

.watch-action:hover {
  transform: translateY(-1px);
}

.watch-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #d7e5dc;
  background: rgba(255, 255, 255, 0.9);
  color: #456057;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.watch-control-btn:hover {
  color: #1f6a4b;
  border-color: #c0d8ca;
  transform: translateY(-1px);
}

.watch-control-btn.is-active {
  background: #1f6a4b;
  color: #ffffff;
  border-color: #1f6a4b;
  box-shadow: 0 10px 22px rgba(31, 106, 75, 0.2);
}

.timeline {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid #cad8d0;
  list-style: none;
}

.timeline li {
  margin: 0 0 10px;
  padding-left: 10px;
}

.timeline span {
  display: inline-block;
  font-weight: 700;
  color: #1b5d43;
  margin-right: 8px;
  font-size: 0.98rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.exp-card {
  border: 1px solid #dce6e0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(31, 39, 36, 0.07);
}

.exp-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 20px;
  background: linear-gradient(180deg, #f9fcfa 0%, #eef5f0 100%);
  border-bottom: 1px solid #e1ece5;
}

.exp-card img {
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 14px;
}

.exp-card-species .exp-card-media {
  min-height: 410px;
  padding: 22px;
}

.exp-card-feature .exp-card-media {
  min-height: 410px;
  padding: 22px;
}

.exp-card-copy {
  padding: 14px 16px 18px;
}

.exp-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #1c5b42;
}

.exp-card p {
  margin: 0;
  font-size: 1rem;
  color: #495851;
}

.exp-species-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.exp-species-tile {
  margin: 0;
  border: 1px solid #d9e7de;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  min-height: 180px;
}

.exp-species-tile img {
  max-height: 122px;
  width: auto;
}

.exp-species-tile figcaption {
  font-size: 0.92rem;
  font-weight: 700;
  color: #365344;
  line-height: 1.2;
}

.research-points {
  margin: 0;
  padding-left: 18px;
  color: #384740;
}

.research-points li {
  margin: 0 0 7px;
}

.gallery-intro {
  color: #5b6761;
  margin-bottom: 12px;
  font-size: 1rem;
}

.atlas-group {
  margin-bottom: 24px;
}

.atlas-group h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  color: #1c5b42;
}

.atlas-grid {
  display: grid;
  gap: 14px;
}

.atlas-grid-collab {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atlas-grid-photo {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atlas-grid-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atlas-item {
  background: #fff;
  border: 1px solid #dce6e0;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
}

.atlas-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.atlas-grid-results .atlas-item img {
  height: auto;
  max-height: 380px;
  object-fit: contain;
  background: #f5f8f6;
}

.atlas-item figcaption {
  padding: 10px 11px 12px;
  font-size: 1rem;
  color: #53605a;
}

.atlas-item figcaption a {
  margin-left: 8px;
  color: #1c5b42;
  font-weight: 700;
  text-decoration: none;
}

.atlas-item figcaption a:hover {
  text-decoration: underline;
}

.pub-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.pub-list li {
  border: 1px solid #dce6e0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  color: #36433e;
}

.pub-list a {
  display: inline-block;
  margin-left: 8px;
  color: #145a40;
  border: 1px solid #bfd7cc;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel {
  background: #fff;
  border: 1px solid #dce6e0;
  border-radius: 14px;
  padding: 16px;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

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

.skills span {
  background: #eef7f1;
  color: #185a40;
  border: 1px solid #c8dfd2;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
}

.footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 24px 0 34px;
  color: #60706a;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-topbar {
    padding: 0 16px;
    margin-bottom: 14px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .watch-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap,
  .hero-panda-wrap {
    width: min(290px, 72%);
    margin: 0 auto;
  }

  .lang-switch {
    justify-content: center;
  }

  .atlas-grid-photo,
  .atlas-grid-results,
  .atlas-grid-collab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .papers-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .hero-topbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    padding: 0 14px;
  }

  .hero-name-row {
    gap: 10px;
  }

  .hero-inline-links {
    width: 100%;
    transform: none;
  }

  .hero-logo-pku {
    height: 40px;
  }

  .hero-logo-iiasa {
    height: 44px;
    max-width: min(250px, 64vw);
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  .atlas-grid-photo,
  .atlas-grid-results,
  .atlas-grid-collab {
    grid-template-columns: 1fr;
  }

  .exp-card img {
    height: auto;
    max-height: none;
  }

  .exp-card-media {
    min-height: 0;
    padding: 12px;
  }

  .exp-card-species .exp-card-media {
    min-height: 0;
    padding: 12px;
  }

  .exp-species-grid {
    gap: 10px;
  }

  .exp-species-tile {
    min-height: 132px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
}
