* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f4f8f7;
  color: #183d36;
}

body[data-lang="zh"] .lang-en {
  display: none !important;
}

body[data-lang="en"] .lang-zh {
  display: none !important;
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dbe7e3;
  padding: 16px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #176b5b;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #19735f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.nav-area {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  color: #294d46;
  text-decoration: none;
  margin-left: 14px;
  font-weight: 600;
  padding-bottom: 4px;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: #17836d;
  border-bottom: 2px solid #17836d;
}

.lang-switch {
  display: inline-flex;
  background: #eef6f4;
  border: 1px solid #dbe7e3;
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #42625b;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

body[data-lang="zh"] .lang-switch button[data-set-lang="zh"],
body[data-lang="en"] .lang-switch button[data-set-lang="en"] {
  background: #19735f;
  color: #ffffff;
}

.hero {
  padding: 86px 7%;
  background:
    radial-gradient(circle at 80% 20%, rgba(25, 115, 95, 0.12), transparent 28%),
    linear-gradient(135deg, #eaf6f2 0%, #ffffff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 38px;
  align-items: center;
}

.eyebrow {
  color: #23866f;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.hero h1 {
  font-size: 56px;
  margin: 12px 0;
  color: #143d35;
}

.hero-desc,
.section-title p {
  font-size: 18px;
  line-height: 1.8;
  color: #4f6b65;
}

.hero-buttons {
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin-right: 12px;
  margin-top: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn {
  background: #19735f;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(25, 115, 95, 0.18);
}

.secondary-btn {
  background: #ffffff;
  color: #19735f;
  border: 1px solid #19735f;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe7e3;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(24, 71, 62, 0.09);
}

.panel-title {
  color: #153d36;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.focus-item {
  background: #f4f8f7;
  border: 1px solid #e0ebe7;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  color: #425f58;
  font-weight: 600;
}

.section {
  padding: 48px 7%;
}

.section-title {
  margin-bottom: 20px;
  max-width: 920px;
}

.section-title h2 {
  font-size: 34px;
  color: #153d36;
  margin: 8px 0;
}

.cards,
.info-grid,
.people-grid,
.research-grid {
  display: grid;
  gap: 22px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.info-grid {
  grid-template-columns: repeat(2, 1fr);
  margin: 26px 0;
}

.people-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.research-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.card,
.tool-card,
.person-card,
.contact-box,
.note-box,
.info-box,
.research-card {
  background: #ffffff;
  border: 1px solid #dbe7e3;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(24, 71, 62, 0.06);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.card h3,
.tool-card h2,
.note-box h3,
.info-box h3,
.research-card h2 {
  color: #153d36;
}

.card p,
.tool-card p,
.person-card p,
.page p,
.page li,
.contact-box p,
.note-box p,
.info-box p,
.research-card p {
  color: #526d67;
  line-height: 1.8;
}

.highlight {
  margin: 16px 7% 48px 7%;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #eaf6f2 100%);
  border: 1px solid #dbe7e3;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.highlight h2 {
  margin: 0 0 8px 0;
  color: #153d36;
}

.highlight p {
  margin: 0;
  color: #526d67;
}

.page {
  padding: 50px 7%;
  min-height: 70vh;
}

.page h1 {
  font-size: 38px;
  color: #153d36;
  margin-top: 8px;
}

.page h2 {
  margin-top: 32px;
  color: #176b5b;
}

.nice-list {
  padding-left: 22px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dff1ec;
  color: #176b5b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
}

.role {
  color: #176b5b !important;
  font-weight: 700;
}

.tool-card {
  margin: 22px 0;
  position: relative;
}

.tool-card.featured {
  border-left: 5px solid #19735f;
}

.tool-tag {
  display: inline-block;
  background: #dff1ec;
  color: #176b5b;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tool-tag.coming {
  background: #fff3cd;
  color: #956400;
}

.note-box {
  background: #fffdf4;
  border-color: #f1e2a6;
  margin-top: 24px;
}

.small-note {
  font-size: 0.88rem;
  color: #6b7f7a !important;
  margin-top: 14px;
}

footer {
  text-align: center;
  padding: 24px;
  color: #6b7f7a;
  border-top: 1px solid #dbe7e3;
  background: #ffffff;
}

.footer-domain {
  margin-top: 4px;
  color: #19735f;
  font-weight: 700;
}

@media screen and (max-width: 1060px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-area {
    margin-top: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav a {
    display: inline-block;
    margin: 6px 12px 6px 0;
  }

  .hero {
    padding: 56px 7%;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .cards,
  .info-grid,
  .people-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}


/* ================= People page: PI full-row card + student cards + photos ================ */

.people-section {
  margin-top: 34px;
}

.pi-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eaf6f2 100%);
  border: 1px solid #dbe7e3;
  border-left: 6px solid #19735f;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 26px rgba(24, 71, 62, 0.09);
  margin-top: 18px;
}

.pi-photo-wrap {
  width: 190px;
  height: 190px;
}

.pi-photo,
.pi-photo-fallback {
  width: 190px;
  height: 190px;
  border-radius: 22px;
  object-fit: cover;
  border: 4px solid #dff1ec;
  box-shadow: 0 4px 16px rgba(24, 71, 62, 0.10);
}

.pi-photo-fallback {
  background: #dff1ec;
  color: #176b5b;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 900;
}

.pi-info h3 {
  color: #153d36;
  font-size: 2rem;
  margin: 0 0 8px 0;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}

.person-photo {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border: 3px solid #dff1ec;
  box-shadow: 0 4px 14px rgba(24, 71, 62, 0.08);
}

@media screen and (max-width: 980px) {
  .pi-card {
    grid-template-columns: 1fr;
  }

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