:root {
  --ink: #101418;
  --muted: #5f6872;
  --line: #e7ebef;
  --paper: #ffffff;
  --soft: #f6f8fa;
  --accent: #57bcdb;
  --accent-ink: #0f5d74;
  --gold: #f5c34b;
  font-family: Montserrat, Arial, "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 78px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.brand-text span {
  color: var(--muted);
  font-size: 13px;
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.links a.active {
  color: var(--accent-ink);
  font-weight: 700;
}

.hero {
  min-height: 520px;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 46%, rgba(255,255,255,0.18) 100%),
    var(--hero-image, linear-gradient(135deg, #eaf4f8, #ffffff));
  background-size: cover;
  background-position: center;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 96px 28px 72px;
}

.research-hero {
  background-size: cover, auto 180%;
  background-position: center, center -155px;
  background-repeat: no-repeat;
}

.facilities-hero {
  background-size: cover, auto 145%;
  background-position: center, center top;
  background-repeat: no-repeat;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: #252b31;
  font-size: 20px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 28px;
}

.section.alt {
  max-width: none;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.alt > .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 32px;
  font-size: 34px;
  line-height: 1.15;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: start;
}

.home-overview {
  padding-top: 42px;
  padding-bottom: 42px;
}

.home-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 58px;
  align-items: start;
}

.home-intro,
.home-news {
  min-width: 0;
}

.home-overview .section-title {
  margin-bottom: 20px;
}

.home-news {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line);
  padding-left: 42px;
}

.home-news .section-title {
  flex: 0 0 auto;
}

.home-news .news-tabs {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.home-news .news-tab-list {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.home-news .news-tab {
  min-width: 88px;
  min-height: 42px;
  font-size: 15px;
}

.home-news .news-year {
  padding-top: 12px;
}

.home-news .news-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-color: var(--accent) #edf2f4;
  scrollbar-width: thin;
}

.home-news .news-list::-webkit-scrollbar {
  width: 7px;
}

.home-news .news-list::-webkit-scrollbar-track {
  background: #edf2f4;
}

.home-news .news-list::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: var(--accent);
}

.home-news .news-line {
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.48;
}

.lead {
  margin: 0;
  color: #252b31;
  font-size: 20px;
}

.notice {
  align-self: center;
  border-left: 4px solid var(--gold);
  padding: 18px 0 18px 24px;
  color: #222;
  font-size: 17px;
}

.notice a {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-title {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.hiring-page {
  display: grid;
  gap: 34px;
}

.hiring-intro {
  max-width: 900px;
}

.hiring-intro .section-title {
  margin-bottom: 14px;
}

.hiring-intro p {
  margin: 0;
  color: #252b31;
  font-size: 19px;
  line-height: 1.75;
}

.hiring-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hiring-jump a {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hiring-jump a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.hiring-list {
  display: grid;
  gap: 30px;
}

.hiring-card {
  position: relative;
  border-top: 3px solid var(--accent);
  padding-top: 22px;
  scroll-margin-top: 92px;
}

.anchor-target {
  display: block;
  height: 0;
  scroll-margin-top: 92px;
}

.hiring-subtitle {
  margin: 0 0 10px;
  color: #d81b43;
  font-size: 15px;
  font-weight: 700;
}

.hiring-card h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.18;
}

.hiring-card p,
.hiring-card li {
  color: #252b31;
  font-size: 17px;
  line-height: 1.82;
}

.hiring-card p {
  margin: 0 0 15px;
}

.hiring-group {
  margin-top: 20px;
}

.hiring-group h3,
.hiring-contact h3 {
  margin: 0 0 8px;
  color: var(--accent-ink);
  font-size: 18px;
}

.hiring-group ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.4em;
}

.hiring-contact {
  margin-top: 22px;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.hiring-contact p {
  margin-bottom: 0;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.image-strip img,
.card img,
.profile-image {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #eef2f4;
}

.image-strip img {
  aspect-ratio: 4 / 3;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card p,
.text-block p {
  margin: 0;
  color: var(--muted);
}

.facility-intro {
  margin: 0 0 30px;
  border-left: 4px solid var(--gold);
  padding: 14px 0 14px 20px;
  color: #20262c;
  font-size: 18px;
  line-height: 1.6;
}

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

.facility-card img {
  aspect-ratio: 400 / 294;
}

.facility-card {
  position: relative;
}

.facility-card .card-body {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: grid;
  align-items: center;
  padding: 24px;
  background: rgba(13, 32, 42, 0.76);
  opacity: 0;
  transition: opacity 180ms ease;
}

.facility-card:hover .card-body,
.facility-card:focus-within .card-body {
  opacity: 1;
}

.facility-card h3 {
  margin: 0;
  color: #fff;
  text-align: center;
}

.research-card .card-body {
  display: grid;
  gap: 14px;
}

.research-card h3 span {
  display: block;
  margin-top: 8px;
  color: var(--accent-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.representative-papers {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.representative-papers h4 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
}

.research-paper-list {
  display: grid;
  gap: 10px;
}

.research-paper {
  font-size: 14px;
  line-height: 1.55;
}

.research-paper a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.research-paper a:hover {
  text-decoration: underline;
}

.text-list {
  display: grid;
  gap: 18px;
}

.talk-list {
  display: grid;
  gap: 8px;
}

.talk-item {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: #2f363d;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.58;
}

.talk-date {
  color: #a7425c;
  font-weight: 700;
}

.talk-text {
  min-width: 0;
}

.talk-venue {
  color: var(--ink);
  font-weight: 700;
}

.news-list {
  display: grid;
  gap: 28px;
}

.news-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.news-tab {
  min-width: 112px;
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  background: #fff;
  color: #232a31;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}

.news-tab:first-child {
  border-left: 1px solid var(--line);
}

.news-tab.active {
  border-bottom-color: var(--accent);
  color: var(--accent-ink);
  background: #fafeff;
}

.news-tab:hover {
  color: var(--accent-ink);
}

.news-year {
  display: none;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.news-year.active {
  display: block;
}

.news-date {
  margin: 20px 0 6px;
  color: #d81b43;
  font-size: 17px;
  line-height: 1.45;
}

.news-date:first-child {
  margin-top: 0;
}

.news-line {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
  color: #20262c;
  font-size: 16px;
  line-height: 1.75;
}

.news-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d81b43;
}

.news-link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-link:hover {
  color: #d81b43;
}

.news-journal {
  color: #a33a57;
  font-style: italic;
  font-weight: 400;
}

.news-link:hover .news-journal {
  color: #d81b43;
}

.text-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  white-space: pre-line;
}

.feature-note {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.feature-note .text-block p {
  width: max-content;
  white-space: nowrap;
}

.bilibili-logo {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 6px;
  vertical-align: -8px;
}

.feature-note a {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-section {
  padding-top: 52px;
}

.home-community {
  padding-top: 38px;
  padding-bottom: 42px;
}

.home-community-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.home-community .notice {
  align-self: stretch;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.62;
}

.home-community .feature-note {
  overflow: visible;
  border-left: 1px solid var(--line);
  padding: 10px 0 10px 34px;
}

.home-community .feature-note .text-block {
  border-top: 0;
  padding-top: 0;
}

.home-community .feature-note .text-block p {
  width: auto;
  white-space: normal;
  line-height: 1.58;
}

.home-group-photo {
  width: 100vw;
  margin: 28px 0 0;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  overflow: hidden;
}

.home-group-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3.4 / 1;
  object-fit: cover;
  object-position: center 53%;
  background: #eef2f4;
}

.visit-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.visit-count {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #d8e7ec;
  border-radius: 8px;
  min-width: 260px;
  padding: 14px 22px 14px 16px;
  background:
    linear-gradient(135deg, rgba(87, 188, 219, 0.10), rgba(245, 195, 75, 0.08)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(16, 20, 24, 0.08);
  color: var(--muted);
}

.visit-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-ink);
  color: #fff;
}

.visit-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.visit-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.visit-copy span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.visit-count strong {
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.carousel-section {
  overflow: hidden;
  padding-top: 42px;
  padding-bottom: 42px;
}

.carousel-section .section-title {
  margin-bottom: 22px;
}

.photo-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}

.photo-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: photo-scroll 42s linear infinite;
}

.photo-marquee:hover .photo-track {
  animation-play-state: paused;
}

.photo-track figure {
  flex: 0 0 auto;
  width: min(68vw, 520px);
  margin: 0;
}

.photo-track img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: #eef2f4;
}

@keyframes photo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 11px));
  }
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
}

.professor-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: center;
}

.professor-copy {
  display: grid;
  gap: 8px;
}

.professor-copy .text-block {
  padding-top: 12px;
}

.professor-copy .text-block h3 {
  margin: 0 0 6px;
  line-height: 1.2;
}

.professor-copy .text-block p {
  line-height: 1.5;
}

.professor-timeline p {
  line-height: 1.48;
}

.professor-photo {
  width: 100%;
  display: block;
  align-self: center;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #eef2f4;
}

.member-section {
  border-top: 1px solid var(--line);
  padding-top: 46px;
  padding-bottom: 50px;
}

.member-section .section-title {
  margin-bottom: 22px;
}

.person {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.person img {
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
}

.person strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.person p {
  margin: 0;
  line-height: 1.48;
  white-space: pre-line;
}

.join-year {
  display: block;
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5f3;
  color: #24645c;
  font-size: 13px;
  font-weight: 700;
}

.alumni-section {
  padding-top: 56px;
}

.alumni-list {
  border-top: 1px solid var(--line);
}

.alumni-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #2f363d;
  font-size: 16px;
  line-height: 1.6;
}

.alumni-header {
  color: var(--ink);
  font-weight: 700;
}

.pub-list {
  counter-reset: pub;
  display: grid;
  gap: 12px;
}

.pub-year {
  margin: 28px 0 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-ink);
  font-size: 24px;
  line-height: 1.2;
}

.pub-year:first-child {
  margin-top: 0;
}

.pub-item {
  border-left: 3px solid var(--line);
  padding: 10px 0 10px 18px;
  color: #2f363d;
  line-height: 1.65;
}

.pub-authors {
  font-weight: 400;
  color: #2f363d;
}

.pub-number {
  font-weight: 700;
}

.pub-item {
  scroll-margin-top: 96px;
}

.pub-title {
  margin-left: 0.35em;
  color: var(--ink);
  font-weight: 400;
}

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

.pub-link {
  margin-left: 0.35em;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.contact-page {
  display: grid;
  gap: 38px;
}

.contact-profile,
.contact-message-form {
  border-top: 3px solid var(--accent);
  padding-top: 22px;
}

.contact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.contact-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.contact-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact-email {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 700;
}

.contact-email a,
.contact-directions a {
  color: var(--accent-ink);
  text-decoration: none;
}

.contact-email a:hover,
.contact-directions a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 14px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.contact-address {
  display: grid;
  gap: 5px;
  margin: 0 0 26px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

.contact-address p,
.contact-directions p {
  margin: 0;
}

.contact-directions {
  display: grid;
  gap: 18px;
}

.direction-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.direction-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
}

.direction-item h3 {
  margin: 1px 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.direction-item p {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.message-form {
  display: grid;
  gap: 16px;
}

.message-form .section-title {
  margin: 0 0 4px;
  font-size: 26px;
}

.form-note {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.message-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.message-form textarea {
  resize: vertical;
  min-height: 150px;
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(87, 188, 219, 0.18);
}

.message-form button {
  justify-self: start;
  border: 0;
  border-radius: 4px;
  padding: 12px 22px;
  color: #fff;
  background: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.message-form button:hover {
  background: #083f50;
  transform: translateY(-1px);
}

.message-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-status.success {
  color: #247055;
}

.form-status.error {
  color: #b83b3b;
}

.admin-panel {
  display: grid;
  gap: 28px;
}

.admin-login {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  border-top: 3px solid var(--accent);
  padding-top: 20px;
}

.admin-login label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-login input {
  min-width: min(340px, 80vw);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

.admin-login button,
.admin-refresh {
  border: 0;
  border-radius: 4px;
  padding: 12px 20px;
  color: #fff;
  background: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.message-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.message-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.message-name {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.message-email {
  color: var(--accent-ink);
  font-weight: 700;
}

.message-body {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.codex-credit {
  margin-top: 8px;
  color: #7a838c;
}

.icp-record {
  margin-top: 8px;
}

.icp-record a {
  color: #7a838c;
  text-decoration: none;
}

.icp-record a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 22px;
  }

  .links {
    justify-content: flex-start;
    gap: 14px;
  }

  .hero {
    min-height: 440px;
  }

  .research-hero {
    background-size: cover, auto 180%;
    background-position: center, 82% -130px;
    background-repeat: no-repeat;
  }

  .facilities-hero {
    background-size: cover, auto 145%;
    background-position: center, center top;
    background-repeat: no-repeat;
  }

  .hero-inner,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .intro-grid,
  .home-overview-grid,
  .home-community-grid,
  .grid,
  .professor-profile,
  .people-grid,
  .contact-grid,
  .image-strip {
    grid-template-columns: 1fr;
  }

  .home-news {
    height: auto !important;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 38px;
    padding-left: 0;
  }

  .home-community-grid {
    gap: 34px;
  }

  .home-community .feature-note {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 28px 0 0;
  }

  .home-group-photo {
    margin-top: 24px;
    padding-top: 24px;
  }

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

  .photo-track figure {
    width: 82vw;
  }

  .news-tab {
    min-width: 88px;
    flex: 1 1 88px;
  }

  .talk-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-heading {
    flex-direction: column;
  }

  .contact-email {
    text-align: left;
  }

}

@media (max-width: 520px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}
