/* ============================================================
   Meta-Optics @ Tsinghua University — Yuanmu Yang Research Group
   Minimal academic style
   ============================================================ */

:root {
  --accent: #316886;          /* Deep blue */
  --accent-soft: #eaf2f7;
  --ink: #22272e;
  --ink-soft: #4a5560;
  --muted: #8a93a0;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 10px;
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Marcellus", "FZBoYaSong", "方正博雅宋", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand-text { display: none; }
.brand-text .l1 { font-weight: 700; font-size: 15px; letter-spacing: .2px; color: var(--ink); line-height: 1.3; }
.brand-text .l2 { font-size: 11px; color: var(--muted); line-height: 1.3; }

.main-nav {
  display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink-soft);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.main-nav a.active { color: var(--accent); font-weight: 600; }

.lang-switch {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 4px; margin-left: 8px; flex-shrink: 0;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-size: 13px; padding: 3px 9px; border-radius: 999px;
  color: var(--muted); font-family: inherit;
}
.lang-switch button.active { background: var(--accent); color: #fff; font-weight: 600; }

.nav-toggle {
  display: none; border: 0; background: transparent; font-size: 22px;
  cursor: pointer; color: var(--ink); padding: 4px 8px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf9fc 0%, #ffffff 100%);
}
.hero .tagline { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.hero .welcome-text {
  font-size: 19px; font-weight: 400; line-height: 1.65; color: var(--ink);
  font-family: var(--serif); max-width: 880px;
}
.hero .welcome-text p { margin-bottom: 14px; }
.hero .welcome-text p:last-child { margin-bottom: 0; }
.hero .welcome-text strong { font-weight: 600; }
.hero p { color: var(--ink-soft); max-width: 820px; font-size: 16.5px; }

/* Hero 左文右图布局 */
.hero-content {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-text .welcome-text { max-width: none; }
.hero-image {
  flex: 0 0 auto;
  width: 46%;
  max-width: 620px;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(49, 104, 134, 0.2);
  display: block;
}

/* ---------------- Sections ---------------- */
.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }

/* 首页 section 交替背景色 */
body[data-page="home"] .hero {
  background: linear-gradient(180deg, #f5f8fa 0%, #ffffff 100%);
}
body[data-page="home"] .section:nth-of-type(even) {
  background-color: #f7f9fb;
}
body[data-page="home"] .section:nth-of-type(odd) {
  background-color: #ffffff;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 26px; gap: 16px; flex-wrap: wrap;
}
.section-title {
  font-size: 22px; font-weight: 700; color: var(--ink);
  position: relative; padding-left: 14px; font-family: var(--serif);
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 2px; background: var(--accent);
}
.section-note { color: var(--muted); font-size: 14px; }

/* ---------------- Highlights ---------------- */
.highlight-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.highlight-card:last-child { border-bottom: 0; }
.highlight-card .thumb {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; aspect-ratio: 16/9;
}
.highlight-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.highlight-card h3 { font-size: 17.5px; font-weight: 600; line-height: 1.55; margin-bottom: 10px; font-family: var(--serif); }
.highlight-card .cite { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 8px; }
.highlight-card .cite .journal { font-style: italic; }
.highlight-card .report { font-size: 14px; color: var(--muted); }

/* ---------------- News ---------------- */
.news-list { list-style: none; }
.news-list li {
  display: grid; grid-template-columns: 128px 1fr; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-date { color: var(--accent); font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.news-text { color: var(--ink-soft); font-size: 15px; }
.news-text a { word-break: break-all; }

/* ---------------- People ---------------- */
.pi-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start;
  padding: 12px 0 8px;
}
.pi-card .portrait {
  width: 240px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
}
.pi-card .portrait img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.pi-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; font-family: var(--serif); }
.pi-card .role { color: var(--accent); font-weight: 500; font-size: 14.5px; margin-bottom: 14px; }
.pi-card .bio,
.pi-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px 0;
}
.pi-card p:last-child {
  margin-bottom: 0;
}

.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px; margin-top: 4px;
}
.person { text-align: center; }
.person .avatar {
  width: 132px; height: 132px; margin: 0 auto 10px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line); background: var(--bg-soft);
}
.avatar-ph {
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--accent); font-weight: 600;
  border: none;
}
.person .avatar-ph { font-size: 46px; }
.alum .avatar-ph { font-size: 22px; }
.person .pname { font-size: 15px; font-weight: 600; color: var(--ink); }
.person .prole { font-size: 13px; color: var(--muted); margin-top: 2px; }
.person-link { text-decoration: none; color: inherit; display: block; transition: opacity .2s; }
.person-link:hover { opacity: .75; }
.person-link:hover .pname { color: var(--accent); }

.alumni-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.alum {
  display: flex; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; background: var(--bg-soft);
}
.alum .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.alum .aname { font-size: 14.5px; font-weight: 600; }
.alum .aperiod { font-size: 12.5px; color: var(--muted); }
.alum .anow { font-size: 12.5px; color: var(--ink-soft); }

/* ---------------- Publications ---------------- */
.pub-year { margin-bottom: 34px; }
.pub-year h3 {
  font-size: 19px; font-weight: 700; color: var(--accent);
  padding-bottom: 8px; border-bottom: 2px solid var(--accent);
  margin-bottom: 18px; display: inline-block; font-family: var(--serif);
}
.pub-item { margin-bottom: 16px; }
.pub-item .ptitle { font-size: 15.5px; font-weight: 600; line-height: 1.6; }
.pub-item .ptitle a { color: var(--ink); }
.pub-item .ptitle a:hover { color: var(--accent); }
.pub-item .pcite { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pub-item .pcite .journal { font-style: italic; color: var(--accent); font-weight: 600; }
.pub-item .pauthors { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.author-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.author-link:hover { text-decoration: underline; }
.pub-note { color: var(--muted); font-size: 13.5px; font-style: italic; }
.pub-top-note { margin-bottom: 26px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------------- Research ---------------- */
.research-block { margin-bottom: 44px; }
.research-block:last-child { margin-bottom: 0; }
.research-block .rhead { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 18px; }
.research-block .rhead img {
  width: 300px; border-radius: var(--radius); border: 1px solid var(--line); flex-shrink: 0;
}
.research-block h2 { font-size: 21px; font-weight: 700; margin-bottom: 10px; font-family: var(--serif); }
.research-block .rdesc { color: var(--ink-soft); font-size: 15px; }

/* ---------------- Openings ---------------- */
.openings-box {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 30px 34px;
  background: var(--bg-soft); font-size: 15.5px; color: var(--ink-soft);
  max-width: 860px;
}
.openings-box a { font-weight: 500; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start;
}
.contact-card { display: grid; gap: 18px; }
.contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; }
.contact-row .k { color: var(--muted); font-size: 14px; font-weight: 600; }
.contact-row .v { color: var(--ink-soft); font-size: 15px; }
.contact-row .v.email { color: var(--accent); font-weight: 500; }
.contact-map { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; height: 420px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------- Photos ---------------- */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.photo-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.photo-item:hover img { transform: scale(1.02); }
.photo-item figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); background: var(--bg-soft); }

/* ---------------- Footer ---------------- */
.site-footer { padding: 34px 0 40px; background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.footer-meta { font-size: 13.5px; color: var(--muted); text-align: right; }
.footer-beian { margin-top: 4px; }
.footer-beian a { color: var(--muted); text-decoration: none; }
.footer-beian a:hover { text-decoration: underline; }

/* ---------------- Utility ---------------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.back-top { display: inline-block; margin-top: 18px; font-size: 14px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .highlight-card { grid-template-columns: 1fr; }
  .highlight-card .thumb { aspect-ratio: 16/8; }
  .research-block .rhead { flex-direction: column; }
  .research-block .rhead img { width: 100%; }
  .pi-card { grid-template-columns: 180px 1fr; gap: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { height: 62px; }
  .main-nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .nav-toggle { display: block; margin-left: auto; }
  .lang-switch { margin-left: 4px; }
  .brand img { height: 28px; }
  .hero { padding: 40px 0 28px; }
  .hero .welcome-text { font-size: 16px; }
  .hero-content { flex-direction: column; gap: 28px; }
  .hero-image { width: 100%; max-width: none; order: -1; }
  .section { padding: 34px 0; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .news-date { font-size: 13.5px; }
  .pi-card { grid-template-columns: 1fr; }
  .pi-card .portrait { width: 180px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------------- Carousel ---------------- */
.carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.carousel-track {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
}
.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-prev:hover, .carousel-next:hover {
  background: #fff;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: #fff;
}

/* ---------------- Sponsors / Funding ---------------- */
.section-sponsors { background: var(--bg-soft, #f7f9fb); }
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px 48px;
  margin-top: 28px;
}
.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
.sponsor-item img {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.82);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.sponsor-item:hover img {
  transform: translateY(-2px);
  filter: saturate(1);
}
/* 文字标识样式 */
.sponsor-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.3s ease;
}
.sponsor-item:hover .sponsor-text {
  transform: translateY(-2px);
}
.sponsor-text .st-zh {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.sponsor-text .st-en {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}
.sponsor-text.most .st-zh { color: #1a5276; }
.sponsor-text.bjst {
  background: #c0392b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 3px;
}
.sponsor-text.bjst .st-zh { color: #fff; font-size: 14px; }
.sponsor-text.bjst .st-en { color: rgba(255,255,255,0.8); font-size: 9px; }

/* PI bio 中的链接 */
.bio-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.bio-link:hover { text-decoration: underline; }

/* 复合政府标识（图形+文字横排） */
.sponsor-combo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: transform 0.3s ease;
  white-space: nowrap;
}
.sponsor-item:hover .sponsor-combo { transform: translateY(-2px); }
.sponsor-combo img {
  height: 44px;
  width: auto;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
}
.sponsor-combo .sc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.sponsor-combo .sc-zh {
  font-size: 15px;
  font-weight: 700;
  color: #1a5276;
}
.sponsor-combo .sc-en {
  font-size: 9.5px;
  color: #7f8c8d;
  margin-top: 1px;
}
/* NSFC 样式 */
.sponsor-combo.nsfc { background: #f0f0f0; }
/* 科技部样式 */
.sponsor-combo.most { background: #fff; border: 1px solid #e8e8e8; }
/* 北京市科委样式 */
.sponsor-combo.bjst { background: #b22222; padding: 10px 18px; }
.sponsor-combo.bjst .sc-zh { color: #fff; font-size: 13px; }
.sponsor-combo.bjst .sc-en { color: rgba(255,255,255,0.85); font-size: 8.5px; }
@media (max-width: 720px) {
  .sponsors-grid { gap: 24px 28px; }
  .sponsor-item { height: 48px; }
  .sponsor-item img { max-height: 44px; max-width: 130px; }
}

/* ---------------- Scrollable News ---------------- */
.news-scrollable {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.news-scrollable::-webkit-scrollbar {
  width: 6px;
}
.news-scrollable::-webkit-scrollbar-track {
  background: transparent;
}
.news-scrollable::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 3px;
}
.news-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}


/* ---------------- Publication Tags ---------------- */
.pub-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pub-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.5;
}
.tag-esi {
  background: #fef3e2;
  color: #b45309;
  border: 1px solid #fde68a;
}
.tag-news {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.tag-cover {
  background: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.tag-invited {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.tag-editorial {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.tag-editors_pick {
  background: #cffafe;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

/* ---------------- Publication Related (Editorial / News & Views / News) ---------------- */
.pub-related {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pub-related-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 4px;
}
.pub-related-item:last-child {
  margin-bottom: 0;
}
.pub-related-type {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  min-width: 90px;
}
.pub-related-content {
  color: var(--ink-soft);
}
.pub-related-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.pub-related-content a:hover {
  text-decoration: underline;
}
.pub-related-journal {
  color: var(--muted);
  font-style: italic;
}

/* ---------------- Openings Page ---------------- */
.openings-container { max-width: 860px; }
.openings-title {
  font-size: 28px;
  font-family: var(--serif);
  margin-bottom: 18px;
  color: var(--ink);
}
.openings-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.opening-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.opening-card:hover {
  box-shadow: 0 4px 16px rgba(49, 104, 134, 0.1);
  transform: translateY(-1px);
}
.opening-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.opening-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.opening-icon::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.opening-postdoc .opening-icon::after { background: #316886; }
.opening-phd .opening-icon::after { background: #5a8a6f; }
.opening-undergrad .opening-icon::after { background: #b8860b; }
.opening-visiting .opening-icon::after { background: #8b5a8b; }
.opening-card-title {
  font-size: 18px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.opening-card-content {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.openings-contact {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  text-align: center;
}
.openings-contact-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px 0;
}
.openings-contact-email {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.openings-contact-email a {
  color: var(--accent);
  text-decoration: none;
}
.openings-contact-email a:hover {
  text-decoration: underline;
}

/* 头像确保头部不被截掉 */
.person .avatar, .alum .avatar {
  object-position: center top;
}

/* ================= Research Page ================= */
.research-intro {
  text-align: center;
  margin-bottom: 48px;
  padding-top: 20px;
}
.research-intro h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.research-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 研究主题卡片 */
.research-theme {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}
.research-theme:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 标题区 */
.rt-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.rt-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
}
.rt-title-wrap {
  flex: 1;
}
.rt-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}
.rt-subtitle {
  font-size: 15px;
  color: var(--accent);
  margin: 0;
  font-weight: 500;
}

/* 内容区：左右布局 */
.rt-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.rt-content {
  min-width: 0;
}

/* 内容块 */
.rt-block {
  margin-bottom: 28px;
}
.rt-block:last-child {
  margin-bottom: 0;
}
.rt-block-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rt-block-num {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.7;
}
.rt-block-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  text-align: justify;
}

/* 精选论文 */
.rt-pubs {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rt-pub-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rt-pub-item:last-child {
  border-bottom: none;
}
.rt-pub-num {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 2px;
}
.rt-pub-info {
  flex: 1;
  min-width: 0;
}
.rt-pub-title {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  display: block;
  line-height: 1.5;
  margin-bottom: 3px;
}
a.rt-pub-title:hover {
  color: var(--accent);
}
.rt-pub-journal {
  font-size: 12.5px;
  color: var(--muted);
}
.rt-pub-journal em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* 右侧媒体区 */
.rt-media {
  position: sticky;
  top: 100px;
}
.rt-image, .rt-video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.rt-video {
  background: #000;
}
.rt-media-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f5f8fa 100%);
  border: 2px dashed var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.rt-placeholder-icon {
  font-size: 40px;
  opacity: 0.5;
}
.rt-placeholder-text {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}
.rt-placeholder-text span {
  font-size: 11px;
  opacity: 0.7;
}

/* 响应式 */
@media (max-width: 900px) {
  .rt-body {
    grid-template-columns: 1fr;
  }
  .rt-media {
    position: static;
    order: -1;
  }
  .research-theme {
    padding: 24px;
  }
  .rt-title {
    font-size: 22px;
  }
  .research-intro h1 {
    font-size: 32px;
  }
}

/* Highlight 标题链接样式 */
.highlight-card h3 {
  margin: 0 0 8px 0;
}
.highlight-title-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.highlight-title-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Research 多图并排显示 */
.rt-images-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rt-image-multi {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
