:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --ink: #162033;
  --muted: #5f6b7a;
  --line: #e6edf3;
  --accent: #126b79;
  --accent-soft: #eef6f7;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  line-height: 1.72;
}

.site-backdrop {
  display: none;
}

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

a:hover {
  text-decoration: underline;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand-wordmark-image {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-wordmark-image img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .90rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.page-shell {
  padding: 28px 0 56px;
}

.hero,
.page-hero,
.section {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero,
.page-hero {
  overflow: hidden;
}

.hero-home {
  padding: 24px 24px 28px;
  margin-bottom: 22px;
}

.hero-visual {
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.hero-copy {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.page-hero .eyebrow,
.section-head .eyebrow,
.hero-home .eyebrow,
.team-section .eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-home {
  text-align: center;
}

.hero-home h1 {
  margin: 0 auto 18px;
  max-width: 1100px;
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
  hyphens: none;
  text-transform: none;
}

.page-hero h1,
.section-head h2,
.team-section .section-head h2 {
  margin: 0;
  font-size: clamp(.96rem, 1.15vw, 1.06rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  hyphens: none;
}

.page-hero {
  padding: 24px 28px;
  margin-bottom: 22px;
}

.page-hero--split,
.page-hero--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 430px);
  gap: 22px;
  align-items: center;
}

.page-hero--compact h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow),
.section-head + p,
.section .muted,
.hero-text,
.muted,
.card p,
.stack-card p,
.resource-card li,
.pub-item,
.member-meta,
.note {
  color: var(--muted);
}

.hero-text {
  margin: 0 0 14px;
  font-size: .84rem;
  line-height: 1.55;
  letter-spacing: .01em;
}

.feature-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.feature-image {
  width: 100%;
  height: auto;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.button.secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid #d7e4e7;
}

.button:hover {
  text-decoration: none;
}

.section {
  padding: 24px 28px;
  margin: 18px 0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.text-link {
  font-weight: 700;
  white-space: nowrap;
}

.grid,
.post-list,
.compact-list,
.stack-list,
.pub-list,
.review-list {
  display: grid;
  gap: 16px;
}

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

.card,
.post-card,
.compact-item,
.stack-card,
.resource-card,
.logo-card,
.member-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
}

.card-body {
  padding: 18px;
}

.card h3,
.post-card h3,
.compact-item h3,
.stack-card h3,
.resource-card h3,
.pub-title {
  margin: 0 0 10px;
}

.post-card,
.compact-item,
.stack-card,
.resource-card {
  padding: 18px 20px;
}

.research-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

.compact-meta,
.pub-meta {
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 8px;
}

.pub-item {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.pub-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.pub-meta {
  opacity: 1 !important;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.pub-meta span {
  opacity: 1;
  margin: 0;
}

.pub-journal {
  color: #000 !important;
  font-weight: 900 !important;
  font-size: 1.18rem !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
  letter-spacing: 0 !important;
  -webkit-text-fill-color: #000 !important;
}

.pub-date {
  color: var(--muted) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  opacity: 1 !important;
}

.pub-title a {
  color: var(--ink);
}

/* Publication images centered */
.pub-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.pub-gallery img,
.hero-image-inline img {
  width: 100%;
  max-width: 240px;
  max-height: 340px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin: 0;
  display: block;
  flex: 0 0 auto;
}

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

.logo-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.logo-card img {
  max-height: 84px;
  width: auto;
  object-fit: contain;
}

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

.resource-card ul,
.stack-card ul {
  margin: 0;
  padding-left: 18px;
}

.image-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.image-panel img {
  width: 100%;
  height: auto;
}

.image-caption {
  padding: 10px 14px;
  font-size: .92rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.scholar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.scholar-row img {
  height: 40px;
  width: auto;
}

.post-thumb {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.prose p {
  margin-top: 0;
}

/* Team */
.team-section .section-head {
  margin-bottom: 16px;
}

.team-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.team-grid--pi {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
  justify-items: center;
}

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

.member-card {
  padding: 24px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
}

.member-avatar {
  width: 118px;
  height: 118px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5f7fa;
  flex-shrink: 0;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.08);
  transform-origin: center;
}

.member-card--lead {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.member-card--lead .member-avatar {
  width: 220px;
  height: 280px;
  border-radius: 18px;
  background: #fff;
}

.member-card--lead .member-avatar img {
  object-fit: contain;
  object-position: center top;
  transform: none;
}

.member-card .card-body {
  width: 100%;
  padding: 0;
}

.member-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.32;
  letter-spacing: .01em;
  text-transform: none;
}

.member-meta {
  margin: 0 0 10px;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--accent);
  font-weight: 600;
  text-transform: none;
}

.member-card .card-body p {
  margin: 0 0 6px;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink);
}

.member-link a {
  word-break: break-word;
  font-size: .82rem;
}

.member-card--lead .card-body p,
.member-card--lead .member-link a {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink);
}

.member-card--lead .member-line,
.member-card--lead .member-link a {
  font-weight: 400;
}

.member-card--lead .member-link a {
  text-decoration: none;
}

.team-section .logo-card {
  min-height: 110px;
}

.team-section .logo-card img {
  max-height: 72px;
}

/* Footer */
.site-footer {
  padding: 8px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .94rem;
}

.footer-dot {
  opacity: .4;
  margin: 0 8px;
}

.publication-feature-figure img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 1100px) {
  .brand-wordmark-image img {
    height: 46px;
    max-width: 300px;
  }
}

@media (max-width: 980px) {
  .page-hero--split,
  .page-hero--feature,
  .grid-2,
  .two-col-section,
  .logo-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-home h1 {
    text-align: center;
    text-wrap: balance;
    hyphens: none;
  }
}

@media (max-width: 768px) {
  .container,
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .page-shell {
    padding-top: 18px;
  }

  .hero-home,
  .page-hero,
  .section {
    padding: 18px;
    border-radius: 18px;
  }

  .site-nav a {
    padding: 9px 12px;
    font-size: 1rem;
  }

  .brand-wordmark-image img {
    height: 40px;
    max-width: 250px;
  }

  .hero-home h1 {
    font-size: 1.08rem;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
    text-align: center;
    text-wrap: balance;
    hyphens: none;
    text-transform: none;
  }

  .page-hero h1,
  .section-head h2,
  .team-section .section-head h2 {
    font-size: .9rem;
    line-height: 1.22;
    letter-spacing: .12em;
  }

  .eyebrow,
  .page-hero .eyebrow,
  .section-head .eyebrow,
  .hero-home .eyebrow,
  .team-section .eyebrow {
    font-size: 0.92rem;
    letter-spacing: .06em;
  }

  .team-grid--members {
    grid-template-columns: 1fr;
  }

  .member-avatar {
    width: 108px;
    height: 108px;
  }

  .member-card--lead .member-avatar {
    width: 180px;
    height: 230px;
  }

  .pub-gallery img,
  .hero-image-inline img {
    max-width: 180px;
    max-height: 250px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Home research card titles */
.research-card h3 {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
}

@media (max-width: 899px) {
  .research-card h3 {
    font-size: 1rem;
    line-height: 1.5;
    white-space: normal;
  }
}
/* all blue titles across the whole site */
.eyebrow,
.page-hero .eyebrow,
.section-head .eyebrow,
.team-profile-head .eyebrow,
.contact-title {
  font-size: 1.12rem !important;
  line-height: 1.08 !important;
  letter-spacing: 0.06em !important;
}

@media (max-width: 768px) {
  .eyebrow,
  .page-hero .eyebrow,
  .section-head .eyebrow,
  .team-profile-head .eyebrow,
  .contact-title {
    font-size: 0.92rem !important;
    letter-spacing: 0.06em !important;
  }
}


/* home research card paragraph spacing */
.research-card .card-body p {
  line-height: 1.15;
}

/* Research 所有文字两端对齐 */
.section,
.prose,
.research-card,
.card-body,
.section p,
.section li,
.research-prose {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: none !important;
}
/* 👇 👇 👇 你要的标题已经加在这里 👇 👇 👇 */
.hero-home h1::before {
  content: "Systems Approaches to Gut Biology and Disease";
  display: block;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 700;
  /* 直接继承 eyebrow 的颜色和样式 */
  @extend .eyebrow;
  color: var(--accent) !important;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* ============================================== */
/* 📱 终极手机端完美适配（直接粘贴到你的CSS最后） */
/* ============================================== */
@media (max-width: 480px) {
  /* 顶部导航变成竖排，避免挤爆 */
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  /* 导航栏居中、紧凑、不换行溢出 */
  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 0;
  }

  .site-nav a {
    font-size: 0.82rem;
    padding: 6px 10px;
    white-space: nowrap;
  }

  /* Logo 缩小，手机更协调 */
  .brand-wordmark-image img {
    height: 36px;
    max-width: 220px;
  }

  /* 页面容器边距更小 */
  .container,
  .page-shell {
    width: calc(100% - 16px);
  }

  /* 卡片内边距统一缩小 */
  .hero-home,
  .page-hero,
  .section,
  .post-card,
  .compact-item,
  .stack-card,
  .resource-card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  /* 标题层级更清晰 */
  .hero-home h1 {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  .page-hero h1,
  .section-head h2 {
    font-size: 0.92rem !important;
    line-height: 1.3 !important;
  }

  /* 蓝色小标题 */
  .eyebrow {
    font-size: 0.9rem !important;
  }

  /* 正文阅读更舒服 */
  p, li, .muted, .pub-item, .member-meta, .note {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  /* 成员卡片单列、更紧凑 */
  .team-grid--members {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .member-card {
    padding: 18px 16px;
  }

  .member-avatar {
    width: 96px;
    height: 96px;
  }

  /* 论文图片手机更小 */
  .pub-gallery img {
    max-width: 140px;
    max-height: 200px;
  }

  /* 按钮更适合手指点击 */
  .button {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* 底部脚注居中更美观 */
  .footer-inner {
    align-items: center;
    text-align: center;
  }
}
/* 缩小 PI 介绍与 Lab Members 之间的空白 */
.team-grid--pi {
  margin-bottom: 16px !important; /* 原来很大，改成小间距 */
  gap: 16px !important;
}
.team-section .section-head {
  margin-top: 16px !important; /* 成员标题上间距缩小 */
  margin-bottom: 16px !important;
}
.team-grid--members {
  margin-top: 0 !important; /* 去掉成员网格顶部额外间距 */
  gap: 20px !important; /* 成员卡片之间正常间距 */
}

/* ============================================== */
/* 📱 手机端 PI 与 Lab Members 之间空白彻底修复 */
/* ============================================== */
@media (max-width: 768px) {
  /* 把 PI 卡片下方间距压到最小 */
  .team-grid--pi {
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  /* PI 内部彻底收紧 */
  .member-card--lead {
    padding-top: 14px !important;
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
  }

  /* 头像下方间距收紧 */
  .member-card--lead .member-avatar {
    margin-bottom: 12px !important;
  }

  /* Lab Members 标题上方空白彻底压扁 */
  .team-section .section-head {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
  }

  /* 成员网格顶部空白清零 */
  .team-grid--members {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 手机导航栏文字限制2行，其余不变 */
@media (max-width: 768px) {
  .site-nav a {
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important;
  }
}
}
