/* =========================
   Global variables
   ========================= */
:root {
  --fd-blue: #173f8f;
  --fd-blue-dark: #0b1f4d;
  --fd-blue-mid: #3353a4;
  --fd-blue-soft: #eaf1fb;

  --bg-main: #f4f7fb;
  --bg-hero: #eef3f8;
  --bg-section: #ffffff;

  --text-main: #172033;
  --text-muted: #5f6b7a;

  --line-soft: #d9e2ef;
  --card-border: #d7e1ef;
  --shadow-soft: 0 18px 48px rgba(11, 31, 77, 0.10);
  --shadow-hover: 0 26px 68px rgba(11, 31, 77, 0.16);
}

/* =========================
   Base
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
}

img {
  max-width: 100%;
}

/* =========================
   Header / navigation
   ========================= */
.site-header,
header {
  width: 100%;
  min-height: 76px; 
  padding: 0.8rem 4.5vw;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 2rem;
  background: rgba(248, 251, 255, 0.94);
  color: var(--fd-blue);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  justify-self: start;
  text-decoration: none;
  color: inherit;
  min-width: 320px;
}

.brand-logo {
  width: 200px;
  height: auto;
  display: block;
}

header > div:first-child > img:first-child {
  margin-right: 1.15rem !important;
  margin-top: 0 !important;
}

.lab-logo-slot {
  width: 150px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.header-lab-logo {
  justify-self: end;
}

.lab-logo {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.site-title h1,
header h1 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--fd-blue);
  font-family: "Times New Roman", "SimSun", serif;
}

.site-title h2,
header h2 {
  margin-top: 0.2rem;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--fd-blue);
  font-family: "Times New Roman", "SimSun", serif;
}

.site-nav,
nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  flex-wrap: nowrap;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  white-space: nowrap;
}

.site-nav a,
nav a {
  position: relative;
  color: var(--fd-blue);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 700;
  font-family: Arial, "SimSun", sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav a::after,
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.38rem;
  width: 0;
  height: 2px;
  background: var(--fd-blue);
  transition: width 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after,
nav a:hover::after {
  width: 100%;
}

@media (min-width: 761px) {
  .site-header,
  header {
    grid-template-columns: minmax(150px, 0.85fr) minmax(0, auto) minmax(86px, 0.85fr);
    gap: clamp(0.85rem, 1.8vw, 2rem);
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: clamp(128px, 13vw, 200px);
  }

  .lab-logo-slot {
    width: clamp(74px, 8vw, 150px);
    height: clamp(46px, 5.2vw, 70px);
  }

  .site-nav,
  nav {
    gap: clamp(0.65rem, 1.25vw, 1.45rem);
  }

  .site-nav a,
  nav a {
    font-size: clamp(0.95rem, 1.28vw, 1.28rem);
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .site-header,
  header {
    padding-left: 2.5vw;
    padding-right: 2.5vw;
  }
}

/* =========================
   Compact footer
   ========================= */
.site-footer {
  width: 100%;
  padding: 0.85rem 4.5vw 1rem;
  background: var(--fd-blue-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: 1rem 1.8rem;
  align-items: center;
}

.footer-brand {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 800;
}

.footer-brand span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.1rem;
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.45;
}

.footer-contact a {
  color: #b8ccff;
  font-weight: 800;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =========================
   Homepage hero
   ========================= */
.particles-hero {
  position: relative;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.96) 0%, rgba(238,243,248,0.96) 52%, rgba(224,234,247,0.96) 100%);
}

.particles-hero_text {
  position: relative;
  width: 100%;
  height: 400px;       /* 你想显示的高度 */
  overflow: hidden;    /* 裁剪超出部分 */
  display: grid;
  place-items: center;
}

.particles-hero_text {
  width: 100%;
  height: 300px;   /* 调整这里就能改显示高度 */
  position: relative;
  overflow: hidden; /* 防止溢出 */
  
}

#magic {
  position: absolute;
  inset: 0;           /* 让 three.js 画布填满 hero */
  
}

.myElement {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

.hero-text,
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  padding: 0 2rem;
  text-align: center;
  color: var(--text-main);
}

.hero-kicker {
  margin-bottom: 1.1rem;
  color: var(--fd-blue);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--fd-blue);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.hero-text h2 {
  margin-bottom: 1.35rem;
  color: var(--fd-blue);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

/* =========================
   Homepage research preview
   ========================= */
.research-preview {
  padding: 6.2rem 7vw 6.8rem;
  background: var(--bg-main);
}

.home-section-header {
  max-width: 820px;
  margin: 0 auto 3.4rem;
  text-align: center;
}

.section-label {
  margin-bottom: 0.65rem;
  color: var(--fd-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-label.light {
  color: rgba(255,255,255,0.72);
}

.home-section-header h2 {
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  line-height: 1.12;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 600;
}

.home-section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.research-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1220px;
  margin: 0 auto;
}

.research-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-section);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.research-tile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--fd-blue-soft);
}

.research-tile-image::before,
.research-tile-image::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.research-tile-image::before {
  width: 46%;
  height: 46%;
  right: -12%;
  top: -14%;
  background: rgba(255,255,255,0.24);
}

.research-tile-image::after {
  width: 34%;
  height: 34%;
  left: 10%;
  bottom: 12%;
  border: 1px solid rgba(255,255,255,0.34);
}

.research-tile-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-optical {
  background:
    linear-gradient(135deg, rgba(23,63,143,0.94), rgba(111,164,224,0.72)),
    radial-gradient(circle at 25% 35%, rgba(255,255,255,0.38), transparent 34%);
}

.image-spectroscopy {
  background:
    linear-gradient(135deg, rgba(11,31,77,0.94), rgba(76,120,182,0.74)),
    radial-gradient(circle at 65% 38%, rgba(255,255,255,0.34), transparent 32%);
}

.image-quantum {
  background:
    linear-gradient(135deg, rgba(21,54,118,0.95), rgba(125,153,202,0.70)),
    radial-gradient(circle at 42% 48%, rgba(255,255,255,0.32), transparent 35%);
}

.research-tile-text {
  min-height: 158px;
  padding: 1.55rem 1.55rem 1.65rem;
  background: var(--fd-blue-dark);
  color: #ffffff;
}

.research-tile-text h3 {
  margin-bottom: 0.72rem;
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 800;
}

.research-tile-text p {
  color: rgba(255,255,255,0.82);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* =========================
   Homepage bottom call-to-action
   ========================= */
.home-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 4.5rem 7vw;
  background:
    linear-gradient(135deg, var(--fd-blue-dark), #123a84);
  color: #ffffff;
}

.home-cta h2 {
  max-width: 760px;
  margin-bottom: 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
}

.home-cta p:not(.section-label) {
  max-width: 780px;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
}

.home-page .home-cta {
  display: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

#research,
#research-preview {
  scroll-margin-top: 120px;
}

/* =========================
   Publications page styles
   ========================= */
ol {
  font-size: 1.5rem;
  margin: 0 6rem;
  padding-left: 2rem;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 28px 0 20px;
}

.pub-card {
  width: min(1200px, 70%);
  min-height: 190px;
  height: auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;

  border: 1px solid rgba(23, 63, 143, 0.13);
  border-radius: 16px;
  padding: 18px 18px 18px 22px;

  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(11, 31, 77, 0.045);

  position: relative;
  align-items: center;

  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 63, 143, 0.26);
  box-shadow: 0 20px 46px rgba(11, 31, 77, 0.09);
}

#pubList .pub-card::before,
.pub-card::before {
  content: attr(data-idx) !important;
  position: absolute;
  top: 14px;
  left: 14px;

  min-width: 30px;
  height: 24px;
  padding: 0 0.45rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: rgba(23, 63, 143, 0.08);
  color: var(--fd-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.pub-card .content {
  padding-top: 1.35rem;
}

.pub-year-divider {
  width: min(1200px, 70%);
  margin: 18px auto -18px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--fd-blue-dark);
  font-family: "Times New Roman", "SimSun", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.pub-year-divider::before,
.pub-year-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(23, 63, 143, 0.12);
}

.pub-year-divider span {
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 63, 143, 0.14);
  box-shadow: 0 6px 18px rgba(11, 31, 77, 0.055);
}

.title {
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.34;
  margin: 0 0 0.65rem;
  color: var(--fd-blue-mid);
}


.title a {
  color: inherit;
  text-decoration: none;
}

.title a:hover {
  text-decoration: underline;
}

.authors {
  color: #2f3742;
  font-size: 0.93rem;
  line-height: 1.55;
}

.meta {
  margin-top: 0.25rem;
  font-style: italic;
  color: #687382;
  font-size: 0.93rem;
  line-height: 1.45;
}

.hr {
  height: 1px;
  background: #e0e4eb;
  margin: 12px 0;
}

.figure {
  justify-self: center;
  align-self: center;

  display: block;
  width: 220px;
  height: 128px;

  object-fit: contain;
  padding: 8px;

  border-radius: 10px;
  border: 1px solid rgba(23, 63, 143, 0.10);
  background: #ffffff;

  box-shadow: 0 6px 18px rgba(11, 31, 77, 0.045);
}

.links {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.links a {
  color: var(--fd-blue-mid);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  align-items:center;
  margin: 10px 0 40px;
  font-size:14px;
}

.pagination button{
  border:1px solid #ddd;
  background:#fff;
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
}

.pagination button[disabled]{
  opacity:0.4;
  cursor:not-allowed;
}

.pagination .page-btn.active{
  background: var(--fd-blue-mid);
  color:#fff;
  border-color: var(--fd-blue-mid);
}

/* =========================
   Legacy welcome/research blocks, retained for compatibility
   ========================= */
.welcome-section,
.research-section {
  width: 100%;
  padding: 4rem 2rem 5rem;
  text-align: center;
  background-color: var(--bg-main);
  color: var(--text-main);
}

.welcome-title,
.section-title {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  font-family: "Times New Roman", "SimSun", serif;
}

.welcome-line,
.section-line {
  width: 33.33vw;
  height: 3px;
  background-color: var(--fd-blue-dark);
  margin: 0 auto 1.8rem;
}

.section-line {
  margin-bottom: 3rem;
}

.welcome-text,
.research-text {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333333;
}

.research-block {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.research-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--fd-blue-mid);
  font-family: "Times New Roman", "SimSun", serif;
}

/* =========================
   Members page styles
   ========================= */
.members{
  width: 65%;
  margin: 40px auto 80px;
}

.subsection-title{
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fd-blue-mid);
  margin: 26px 0 8px;
}

.divider{
  height: 1px;
  border: 0;
  background: #e0e4eb;
  margin: 8px 0 24px;
}

.mentor{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  align-items: center;
}

.mentor-photo img{
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #fff;
}

.mentor-name{
  margin: 2px 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fd-blue-mid);
}

.mentor-bio{
  color: #333;
  line-height: 1.6;
}

.mentor-contacts{
  margin-top: 10px;
  display: flex;
  gap: 14px;
}

.mentor-contacts a{
  color: var(--fd-blue-mid);
  text-decoration: none;
}

.mentor-contacts a:hover{
  text-decoration: underline;
}

.student-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.student-card{
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

.student-photo{
  width: 110px;
  height: 166px;
  border-radius: 8px;
  border: 1px solid #fff;
  object-fit: contain;
  background-color: #fff;
}

.student-name{
  font-weight: 800;
  color: var(--fd-blue-mid);
  margin-bottom: 4px;
}

.student-bio{
  color: #333;
  line-height: 1.5;
  font-size: 0.95rem;
}

.former-student-card {
  grid-column: 1 / -1;
  width: 100%;
}

.former-student-text {
  width: 100%;
  white-space: nowrap;
}

/* =========================
   Contact page styles
   ========================= */
.contact-page {
  width: 100%;
  padding: 4rem 2rem 5rem;
  background-color: var(--bg-main);
  color: var(--text-main);
}

.contact-page .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 3rem;
  font-family: "Times New Roman", "SimSun", serif;
}

.contact-block {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2rem 2.5rem;
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-align: left;
}

.contact-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fd-blue-mid);
  margin-bottom: 1rem;
  font-family: "Times New Roman", "SimSun", serif;
}

.contact-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333333;
  text-align: left;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1080px) {
  .site-header,
  header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand lab-logo"
      "nav nav";
    align-items: center;
    padding: 0.8rem 5vw 0.9rem;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .header-lab-logo {
    grid-area: lab-logo;
    justify-self: end;
  }

  .site-nav,
  nav {
    grid-area: nav;
    justify-content: flex-start;
    justify-self: stretch;
    gap: 0.8rem 1.05rem;
  }

  .research-tile-grid {
    gap: 1.35rem;
  }
}

@media (max-width: 900px) {
  .research-tile-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .home-cta {
    grid-template-columns: 1fr;
  }

  .members{
    width: 88%;
  }

  .student-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
    gap: 1rem;
  }

  .brand-logo {
    width: 150px;
  }

  .site-title h1,
  .site-title h2,
  header h1,
  header h2 {
    font-size: 1rem;
  }

  .particles-hero {
    min-height: 500px;
  }

  .research-preview {
    padding: 4.5rem 6vw;
  }

  .research-tile-text {
    min-height: auto;
  }

  .pub-card {
    width: 88%;
    height: auto;
    grid-template-columns: 1fr;
  }

  .figure {
    max-width: 80%;
  }

  .mentor{
    grid-template-columns: 1fr;
  }

  .mentor-photo img{
    height: 220px;
  }

  .student-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Homepage split overview: lab snapshots + research preview
   ========================= */
.home-overview {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(340px, 0.40fr) minmax(0, 0.60fr);
  gap: 2.2rem;
  align-items: stretch;
  width: 65%;
  max-width: none;
  margin: 0 auto;
  padding: 5.4rem 0 6.5rem;
  background: transparent;
}

.home-overview::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(244,247,251,0.95), rgba(238,243,249,0.95));
}

.lab-snapshot {
  height: 100%;
  position: sticky;
  top: 118px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 1.45rem;
  box-shadow: 0 18px 48px rgba(11, 31, 77, 0.08);
  overflow: hidden;
}

.snapshot-header h2 {
  margin-bottom: 0.7rem;
  color: var(--text-main);
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.16;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 600;
}

.snapshot-header p:not(.section-label) {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.snapshot-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(23,63,143,0.90), rgba(120,158,211,0.58)),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.34), transparent 32%);
  overflow: hidden;
  border-radius: 18px;
}

.snapshot-slider::after {
  content: "Lab Snapshots";
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(11,31,77,0.72);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.snapshot-slider::after {
  content: none !important;
  display: none !important;
}

.snapshot-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.05s ease, transform 5.5s ease;
}

.snapshot-slide.active {
  opacity: 1;
  transform: scale(1.055);
}

.snapshot-slide.is-missing {
  display: none;
}

.snapshot-note p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.snapshot-link {
  display: inline-flex;
  align-items: center;
  color: var(--fd-blue);
  font-weight: 800;
  text-decoration: none;
}

.snapshot-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #eaf1fb;
  margin-bottom: 1.2rem;
}

.snapshot-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.snapshot-slide.active {
  opacity: 1;
  z-index: 1;
}

.snapshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片底部说明文字 */
.snapshot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.75rem 1rem;
  background: rgba(11, 31, 77, 0.78);
  color: #ffffff;

  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;

  backdrop-filter: blur(6px);
}

.snapshot-link:hover {
  text-decoration: underline;
}

.research-preview.compact {
  padding: 0;
  background: transparent;
}

.research-preview.compact .home-section-header {
  max-width: 780px;
  margin: 0 0 2rem;
  text-align: left;
}

.research-preview.compact .home-section-header h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.research-preview.compact .home-section-header p {
  max-width: 740px;
}

.research-preview.compact .research-tile-grid {
  max-width: none;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.research-preview.compact .research-tile {
  border-radius: 22px;
}

.research-preview.compact .research-tile-image {
  aspect-ratio: 16 / 10;
}

.research-preview.compact .research-tile-text {
  min-height: 168px;
  padding: 1.35rem 1.35rem 1.45rem;
}

.research-preview.compact .research-tile-text h3 {
  font-size: 1.08rem;
}

.research-preview.compact .research-tile-text p {
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .home-overview {
    width: 88%;
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .lab-snapshot {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 1.5rem;
    align-items: center;
  }

  .snapshot-header p:not(.section-label),
  .snapshot-note p {
    max-width: 620px;
  }

  .snapshot-slider {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .research-preview.compact .home-section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .home-overview {
    width: min(100% - 40px, 760px);
    padding: 4.8rem 0 5.6rem;
  }

  .lab-snapshot {
    grid-template-columns: 1fr;
  }

  .snapshot-slider {
    grid-row: auto;
    max-width: 620px;
    margin: 0 auto 1.2rem;
  }

  .research-preview.compact .research-tile-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .home-overview {
    width: min(100% - 32px, 620px);
    padding: 4.2rem 0 5rem;
  }

  .lab-snapshot {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .snapshot-slider {
    border-radius: 16px;
  }

  .research-preview.compact .home-section-header {
    margin-bottom: 1.7rem;
  }
}



/* =========================
   Homepage split overview: lab snapshots + news preview
   ========================= */
.news-panel {
  height: 100%;
  min-width: 0;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: 0 18px 48px rgba(11, 31, 77, 0.08);
}

.news-panel .home-section-header {
  max-width: 780px;
  margin: 0 0 1.7rem;
  text-align: left;
}

.news-panel .home-section-header h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.news-panel .home-section-header p {
  max-width: 740px;
}

.news-scroll-window {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.7rem;
  scroll-behavior: smooth;
}

.news-scroll-window::-webkit-scrollbar {
  width: 8px;
}

.news-scroll-window::-webkit-scrollbar-track {
  background: rgba(217, 226, 239, 0.55);
  border-radius: 999px;
}

.news-scroll-window::-webkit-scrollbar-thumb {
  background: rgba(23, 63, 143, 0.45);
  border-radius: 999px;
}

.news-scroll-window::-webkit-scrollbar-thumb:hover {
  background: rgba(23, 63, 143, 0.65);
}

.news-item {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.55rem;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(11, 31, 77, 0.055);
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 4px;
  border-radius: 999px;
  background: var(--fd-blue);
}

.news-item time {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--fd-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-item h3 {
  margin-bottom: 0.55rem;
  color: var(--text-main);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
}

.news-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.news-actions {
  margin-top: 1.4rem;
}

.news-link {
  display: inline-flex;
  align-items: center;
  color: var(--fd-blue);
  font-weight: 800;
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .news-panel .home-section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .news-panel {
    padding: 1.5rem;
  }

  .news-scroll-window {
    max-height: 460px;
  }
}

@media (max-width: 640px) {
  .news-panel {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .news-scroll-window {
    max-height: 420px;
    padding-right: 0.45rem;
  }

  .news-item {
    padding: 1.1rem 1rem 1.1rem 1.25rem;
  }
}


/* ===== Fix lab snapshot image area and equal-height news panel ===== */

.home-overview {
  align-items: stretch;
}

/* 左侧卡片本身仍然是完整卡片，不让图片撑满整个卡片 */
.lab-snapshot {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

/* 照片只占左侧卡片中的一个固定比例区域 */
.snapshot-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;

  margin: 0 0 1.2rem;
  overflow: hidden;
  border-radius: 20px;

  background:
    linear-gradient(135deg, rgba(23,63,143,0.90), rgba(120,158,211,0.58)),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.34), transparent 32%);
}

/* slide 是 slider 内部的绝对定位层，不再撑满整个 lab-snapshot */
.snapshot-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.05s ease, transform 5.5s ease;
}

.snapshot-slide.active {
  opacity: 1;
  transform: scale(1.045);
  z-index: 1;
}

.snapshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片底部说明条 */
.snapshot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;
  padding: 0.75rem 1rem;

  background: rgba(11, 31, 77, 0.78);
  color: #ffffff;

  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;

  backdrop-filter: blur(6px);
}

/* 右侧 News 卡片用于等高和内部滚动 */
.news-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;

  min-height: 0;
  overflow: hidden;
}

.news-scroll-window {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

/* 窄屏上下排列时，不强行等高 */
@media (max-width: 1180px) {
  .lab-snapshot,
  .news-panel {
    height: auto !important;
  }

  .news-scroll-window {
    max-height: 460px;
  }
}

/* ===== Final override: compact lab image + scrollable news ===== */

.home-overview {
  align-items: start;
}

/* 左侧 Lab 卡片不要被强制拉高 */
.lab-snapshot {
  height: auto;
  display: block;
}

/* 缩短照片区域：不要再用 aspect-ratio 自动撑高 */
.snapshot-slider {
  position: relative;
  width: 100%;

  height: 420px;          /* 这里控制照片高度 */
  aspect-ratio: auto;     /* 覆盖前面的 4 / 3 */

  margin: 0 0 1.1rem;
  overflow: hidden;
  border-radius: 18px;

  background: #eaf1fb;
  
}

/* 照片 slide 只占据 snapshot-slider 内部 */
.snapshot-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  transform: scale(1.01);
  transition: opacity 1s ease, transform 5.5s ease;
}

.snapshot-slide.active {
  opacity: 1;
  transform: scale(1.035);
  z-index: 1;
}

.snapshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 图片底部说明条 */
.snapshot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;
  padding: 0.65rem 0.9rem;

  background: rgba(11, 31, 77, 0.78);
  color: #ffffff;

  font-size: 0.88rem;
  line-height: 1.4;
  text-align: left;

  backdrop-filter: blur(6px);
}

/* 右侧 News 设置固定高度，内部才会滚动 */
.news-panel {
  height: 700px;          /* 右侧 News 整体高度 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* News 标题区不参与滚动 */
.news-panel .home-section-header {
  flex: 0 0 auto;
  margin-bottom: 1.2rem;
}

/* News 列表恢复为可滚动窗口 */
.news-scroll-window {
  flex: 1 1 auto;
  min-height: 0;

  max-height: none;
  overflow-y: auto;

  padding-right: 0.7rem;
}

/* 底部 View all news 固定在卡片底部 */
.news-actions {
  flex: 0 0 auto;
  margin-top: 1rem;
}

/* 窄屏时恢复自然高度 */
@media (max-width: 1180px) {
  .news-panel {
    height: auto;
  }

  .news-scroll-window {
    max-height: 420px;
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .snapshot-slider {
    height: 190px;
  }

  .news-scroll-window {
    max-height: 360px;
  }
}

.snapshot-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  transform: none;              /* 不再缩放整个 slide */
  transition: opacity 1s ease;
  overflow: hidden;
  border-radius: inherit;
}

.snapshot-slide.active {
  opacity: 1;
  z-index: 1;
  transform: none;              /* 不再缩放整个 slide */
}

.snapshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;

  transform: scale(1.01);       /* 只缩放图片 */
  transition: transform 5.5s ease;
  will-change: transform;
}

.snapshot-slide.active img {
  transform: scale(1.045);      /* 图片缓慢放大 */
}

.snapshot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 3;
  padding: 0.65rem 0.9rem;

  background: rgba(11, 31, 77, 0.82);
  color: #ffffff;

  font-size: 0.88rem;
  line-height: 1.4;
  text-align: left;

  backdrop-filter: blur(6px);
}

/* =========================
   Research page layout
   Scoped to .research-page to avoid changing other pages
   ========================= */
.research-page {
  padding: 4.2rem 2rem 6.5rem;
  text-align: initial;
  background:
    radial-gradient(circle at 12% 12%, rgba(23, 63, 143, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(244,247,251,0.96), rgba(238,243,249,0.96));
}

.research-page-inner {
  width: 65%;
  max-width: none;
  margin: 0 auto;
}

.research-page-heading {
  text-align: center;
  margin-bottom: 3.6rem;
}

.research-page .section-title {
  margin-bottom: 1.2rem;
}

.research-page .section-line {
  width: min(520px, 54vw);
  height: 2px;
  margin: 0 auto;
  background: var(--fd-blue-dark);
}

.research-overview-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.86fr) minmax(0, 1.45fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 4.6rem;
  padding: clamp(2rem, 4vw, 3.15rem);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 63, 143, 0.18);
  border-radius: 28px;
  box-shadow: 0 20px 54px rgba(11, 31, 77, 0.075);
}

.research-overview-text {
  grid-column: 1 / -1;
}

.research-overview-kicker {
  grid-column: 1 / -1;
  margin-bottom: -1.9rem;
}

.research-overview-label {
  text-align: left;
  padding-right: 2.5rem;
  border-right: 1px solid rgba(23, 63, 143, 0.18);
}

.research-overview-label .section-label,
.research-direction-text .direction-label {
  margin: 0 0 0.9rem;
  color: var(--fd-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.research-overview-label h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.24;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 600;
}

.research-overview-text p,
.research-direction-text .research-text {
  max-width: none;
  margin: 0;
  color: #263242;
  font-size: 1.02rem;
  line-height: 1.85;
  text-align: left;
}

.research-direction-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 5rem;
}

.research-direction-card.reverse {
  direction: rtl;
}

.research-direction-card.reverse > * {
  direction: ltr;
}

.research-direction-text {
  text-align: left;
}

.research-direction-text .research-subtitle {
  margin: 0 0 1.25rem;
  color: #17315f;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.24;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 700;
}

.research-direction-visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(23, 63, 143, 0.18);
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.88), transparent 30%),
    radial-gradient(circle at 72% 76%, rgba(102,151,216,0.26), transparent 34%),
    linear-gradient(135deg, rgba(23,63,143,0.92), rgba(104,145,205,0.62));
  box-shadow: 0 20px 50px rgba(11, 31, 77, 0.12);
}

.research-direction-visual::before,
.research-direction-visual::after {
  content: "";
  position: absolute;
  inset: 1.4rem;
  border-radius: 26px;
  pointer-events: none;
}

.research-direction-visual::before {
  border: 1px solid rgba(255,255,255,0.20);
}

.research-direction-visual::after {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(255,255,255,0.14) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, rgba(255,255,255,0.10) 49% 51%, transparent 51%);
  opacity: 0.42;
}

.visual-orbit,
.visual-node,
.visual-beam,
.visual-surface,
.visual-state {
  position: absolute;
  z-index: 1;
}

.visual-orbit {
  left: 50%;
  top: 50%;
  border: 1.5px solid rgba(255,255,255,0.58);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--orbit-rotate, 0deg));
}

.orbit-one {
  width: 210px;
  height: 98px;
  --orbit-rotate: 18deg;
}

.orbit-two {
  width: 230px;
  height: 108px;
  --orbit-rotate: -42deg;
}

.orbit-three {
  width: 155px;
  height: 155px;
  opacity: 0.72;
}

.visual-node {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 24px rgba(255,255,255,0.65);
}

.node-center {
  width: 34px;
  height: 34px;
  left: calc(50% - 17px);
  top: calc(50% - 17px);
  background: #ffffff;
}

.node-a { left: 26%; top: 36%; }
.node-b { right: 25%; top: 57%; }
.node-c { left: 49%; bottom: 21%; }

.visual-beam {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.88), transparent);
  filter: blur(0.2px);
}

.beam-one {
  width: 78%;
  left: 11%;
  top: 48%;
  transform: rotate(-11deg);
}

.research-visual-quantum {
  background:
    radial-gradient(circle at 66% 28%, rgba(255,255,255,0.86), transparent 26%),
    radial-gradient(circle at 24% 74%, rgba(133,174,228,0.26), transparent 36%),
    linear-gradient(135deg, rgba(11,31,77,0.96), rgba(66,111,179,0.72));
}

.visual-surface {
  left: 12%;
  right: 12%;
  bottom: 24%;
  height: 28%;
  border-radius: 50% 50% 0 0;
  border-top: 1.5px solid rgba(255,255,255,0.58);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent);
}

.visual-state {
  left: 23%;
  right: 23%;
  height: 2px;
  background: rgba(255,255,255,0.58);
}

.state-one { top: 32%; }
.state-two { top: 45%; opacity: 0.78; }
.state-three { top: 58%; opacity: 0.56; }

.beam-two {
  width: 76%;
  left: 12%;
  top: 40%;
  transform: rotate(17deg);
}

.node-q1 {
  right: 26%;
  top: 25%;
  width: 28px;
  height: 28px;
}

.node-q2 {
  left: 29%;
  bottom: 28%;
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.research-image-visual {
  margin: 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.research-image-visual::before,
.research-image-visual::after {
  content: none;
}

.research-image-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1080px) {
  .research-page-inner {
    width: 88%;
  }
}

@media (max-width: 900px) {
  .research-page {
    padding: 3.4rem 1.4rem 5rem;
  }

  .research-page-inner {
    width: min(100% - 40px, 760px);
  }

  .research-overview-card,
  .research-direction-card {
    grid-template-columns: 1fr;
  }

  .research-overview-card {
    gap: 1.8rem;
    margin-bottom: 3.8rem;
  }

  .research-overview-label {
    padding-right: 0;
    padding-bottom: 1.65rem;
    border-right: none;
    border-bottom: 1px solid rgba(23, 63, 143, 0.18);
  }

  .research-direction-card.reverse {
    direction: ltr;
  }

  .research-direction-visual {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .research-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .research-overview-card {
    padding: 1.55rem;
    border-radius: 22px;
  }

  .research-direction-card {
    margin-bottom: 3.6rem;
  }

  .research-direction-visual {
    min-height: 220px;
    border-radius: 22px;
  }

  .orbit-one {
    width: 170px;
    height: 80px;
  }

  .orbit-two {
    width: 185px;
    height: 88px;
  }

  .orbit-three {
    width: 120px;
    height: 120px;
  }
}

/* ===== Research particle hero final layout ===== */

.research-page-body .particles-hero_text {
  position: relative;
  width: 100%;
  height: clamp(220px, 24vw, 280px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: block;
  background: var(--bg-main);
}

.research-page-body #magic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.research-page-body #magic canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 640px) {
  .research-page-body .particles-hero_text {
    height: 190px;
  }
}

/* Research page particle background */
.research-page-body .particles-hero_text {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(238, 243, 248, 0.96) 52%,
      rgba(224, 234, 247, 0.96) 100%
    );
}

/* =========================
   Members page final layout
   Scoped to .members-page to avoid changing other pages
   ========================= */

.members.members-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 92px;
}

.members-page .members-hero {
  margin-bottom: 38px;
  padding: 0 0 10px;
}

.members-page .members-kicker {
  margin: 0 0 0.55rem;
  color: var(--fd-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.members-page .members-hero h1 {
  margin: 0 0 0.55rem;
  color: var(--fd-blue-dark);
  font-size: clamp(2.15rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 700;
}

.members-page .members-hero p:last-child {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.members-page .member-section {
  margin-top: 36px;
}

.members-page .members-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--fd-blue-mid);
  font-size: 1.34rem;
  line-height: 1.25;
  font-weight: 800;
}

.members-page .members-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(23, 63, 143, 0.22), transparent);
}

/* PI profile: designed for future expansion */
.members-page .pi-profile {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(11, 31, 77, 0.055);
}

.members-page .pi-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 28px;
  border-right: 1px solid rgba(23, 63, 143, 0.14);
  text-align: center;
}

.members-page .pi-photo {
  width: 168px;
  height: 168px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid rgba(23, 63, 143, 0.12);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 31, 77, 0.06);
}

.members-page .pi-role {
  margin-top: 16px;
  color: var(--fd-blue-mid);
  font-size: 0.98rem;
  font-weight: 800;
}

.members-page .pi-link-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.members-page .pi-link-list a {
  color: var(--fd-blue-mid);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.members-page .pi-link-list a:hover {
  text-decoration: underline;
}

.members-page .pi-main {
  min-width: 0;
  align-self: center;
}

.members-page .pi-main h3 {
  margin: 0 0 6px;
  color: var(--fd-blue-mid);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.18;
  font-weight: 800;
}

.members-page .pi-name-link {
  color: inherit;
  text-decoration: none;
}

.members-page .pi-name-link:hover {
  color: var(--fd-blue);
  text-decoration: underline;
}

.members-page .pi-affiliation {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.35;
}

.members-page .pi-affiliation + .pi-affiliation {
  margin-top: 2px;
}

.members-page .pi-affiliation:last-of-type {
  margin-bottom: 18px;
}

.members-page .pi-subsection {
  margin-top: 18px;
}

.members-page .pi-subsection h4 {
  margin: 0 0 8px;
  color: var(--fd-blue-dark);
  font-size: 0.96rem;
  line-height: 1.3;
  font-weight: 800;
}

.members-page .pi-subsection p {
  margin: 0;
  color: #263242;
  font-size: 0.98rem;
  line-height: 1.72;
}

.members-page .pi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.members-page .pi-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.36rem 0.72rem;
  border: 1px solid rgba(23, 63, 143, 0.14);
  border-radius: 999px;
  background: var(--fd-blue-soft);
  color: var(--fd-blue-mid);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Current students */
.members-page .student-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.members-page .student-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 144px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 31, 77, 0.045);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.members-page .student-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 63, 143, 0.26);
  box-shadow: 0 18px 42px rgba(11, 31, 77, 0.09);
}

.members-page .member-photo-box {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(23, 63, 143, 0.12);
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  flex-shrink: 0;
}

.members-page .member-photo-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.members-page .member-photo-placeholder {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--fd-blue-mid);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.82), transparent 34%),
    linear-gradient(135deg, #e9f1fc, #f7faff);
}

.members-page .student-text {
  min-width: 0;
}

.members-page .student-name {
  margin: 0 0 6px;
  color: var(--fd-blue-mid);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
}

.members-page .student-bio {
  margin: 0;
  color: #303a46;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Former members: compact list, easier to extend */
.members-page .former-list {
  display: grid;
  gap: 12px;
}

.members-page .former-member {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(11, 31, 77, 0.035);
}

.members-page .former-name {
  margin: 0 0 5px;
  color: var(--fd-blue-mid);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
}

.members-page .former-member p {
  margin: 0;
  color: #303a46;
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .members.members-page {
    width: min(980px, calc(100% - 40px));
  }

  .members-page .student-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .members.members-page {
    width: min(100% - 32px, 680px);
    padding-top: 38px;
  }

  .members-page .pi-profile {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .members-page .pi-sidebar {
    padding-right: 0;
    padding-bottom: 22px;
    border-right: none;
    border-bottom: 1px solid rgba(23, 63, 143, 0.14);
  }

  .members-page .pi-main {
    align-self: auto;
  }

  .members-page .student-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Members page width + full-image photo display final override
   ========================================================= */

/* 恢复接近最初版的整体宽度 */
.members.members-page {
  width: 65%;
  max-width: none;
  margin: 40px auto 80px;
  padding: 0 0 92px;
}

/* 所有成员区块统一跟随 members 宽度 */
.members-page .members-hero,
.members-page .member-section {
  width: 100%;
}

/* PI 照片：竖版框，完整显示 */
.members-page .pi-photo {
  width: 170px;
  height: 212px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

/* 学生始终一排三个 */
.members-page .student-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* 学生卡片压缩一点，保证三列稳定 */
.members-page .student-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 16px;
}

/* 学生照片框：固定比例，但不是正方形 */
.members-page .member-photo-box {
  width: 104px;
  height: 124px;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 核心：完整显示照片，不裁剪 */
.members-page .member-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* 缺失图片占位符也保持同样大小 */
.members-page .member-photo-placeholder {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 防止文字把卡片撑爆 */
.members-page .student-text {
  min-width: 0;
}

.members-page .student-name,
.members-page .student-bio {
  overflow-wrap: anywhere;
}

/* 中等屏幕仍保持三列 */
@media (max-width: 1080px) {
  .members.members-page {
    width: 88%;
  }

  .members-page .student-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .members-page .student-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .members-page .member-photo-box {
    width: 104px;
    height: 124px;
  }
}

/* 很窄的手机屏幕再变成单列，否则三列不可读 */
@media (max-width: 760px) {
  .members.members-page {
    width: min(100% - 32px, 680px);
  }

  .members-page .student-grid {
    grid-template-columns: 1fr;
  }

  .members-page .student-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 124px;
  }

  .members-page .member-photo-box {
    width: 92px;
    height: 112px;
  }
}

/* =========================================================
   Members student photo size + no photo-frame final override
   放在文件末尾，用于覆盖前面所有 members/student photo 设置
   ========================================================= */

/* 桌面端：保持一排三个学生卡片 */
.members-page .student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* 提高学生照片在卡片中的占比 */
.members-page .student-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 164px;
  padding: 14px 16px;
}

/* 照片容器只负责布局占位，不显示外框 */
.members-page .member-photo-box {
  position: relative;
  width: 128px;
  height: 128px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* 学生照片完整显示，不裁剪，不加外框 */
.members-page .member-photo-box img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;

  display: block;
  object-fit: contain !important;
  object-position: center;

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 缺失图片时的文字占位，同步使用更大的照片区域 */
.members-page .member-photo-placeholder {
  width: 128px;
  height: 128px;

  display: none;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  color: var(--fd-blue-mid);
  font-size: 1.3rem;
  font-weight: 800;
}

/* 防止长文字挤坏三列布局 */
.members-page .student-text {
  min-width: 0;
}

.members-page .student-name,
.members-page .student-bio {
  overflow-wrap: anywhere;
}

/* 中等屏幕仍保持三列，但略微缩小照片 */
@media (max-width: 1080px) {
  .members.members-page {
    width: 88%;
  }

  .members-page .student-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .members-page .student-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    min-height: 146px;
    padding: 12px 14px;
  }

  .members-page .member-photo-box,
  .members-page .member-photo-placeholder {
    width: 96px;
    height: 116px;
  }
}

/* 手机端再切换为单列，否则三列不可读 */
@media (max-width: 760px) {
  .members.members-page {
    width: min(100% - 32px, 680px);
  }

  .members-page .student-grid {
    grid-template-columns: 1fr;
  }

  .members-page .student-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 146px;
  }

  .members-page .member-photo-box,
  .members-page .member-photo-placeholder {
    width: 96px;
    height: 116px;
  }
}

@media (min-width: 761px) {
  .members-page .student-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* =========================================================
   News page layout
   Scoped to .news-page to avoid changing homepage news panel
   ========================================================= */

.news-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 90px;
}

/* 顶部标题区：简单、直接，不做大图 hero */
.news-page .news-hero {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(23, 63, 143, 0.16);
}

.news-page .news-kicker {
  margin: 0 0 0.6rem;
  color: var(--fd-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-page .news-hero h1 {
  margin: 0 0 0.7rem;
  color: var(--fd-blue-dark);
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.1;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 700;
}

.news-page .news-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* 新闻列表 */
.news-page .news-list {
  display: grid;
  gap: 22px;
}

/* 每条新闻一个框 */
.news-page .news-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;

  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(11, 31, 77, 0.055);

  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-page .news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 63, 143, 0.26);
  box-shadow: 0 20px 48px rgba(11, 31, 77, 0.10);
}

/* 左侧配图区域：固定比例，图片完整显示，不裁剪 */
.news-page .news-figure {
  position: relative;
  min-height: 178px;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(23, 63, 143, 0.12);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(135deg, #eef4ff, #ffffff);
}

.news-page .news-figure img {
  width: 100%;
  height: 100%;
  max-height: 260px;

  display: block;
  object-fit: contain;       /* 核心：显示全图，不裁剪 */
  object-position: center;
  padding: 8px;
  background: #ffffff;
}

/* 没有图片时可写成 <figure class="news-figure is-placeholder"></figure> */
.news-page .news-figure.is-placeholder::after {
  content: "News Image";
  position: absolute;
  inset: auto auto 12px 12px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 31, 77, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 右侧文字内容 */
.news-page .news-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.25rem 0.4rem 0.25rem 0;
}

.news-page .news-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
}

.news-page .news-meta-row time {
  color: var(--fd-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-page .news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0.22rem 0.62rem;

  border: 1px solid rgba(23, 63, 143, 0.14);
  border-radius: 999px;
  background: var(--fd-blue-soft);
  color: var(--fd-blue-mid);

  font-size: 0.76rem;
  line-height: 1;
  font-weight: 800;
}

.news-page .news-content h2 {
  margin: 0 0 0.62rem;
  color: var(--fd-blue-mid);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  font-weight: 800;
}

.news-page .news-content p {
  margin: 0;
  color: #303a46;
  font-size: 0.98rem;
  line-height: 1.72;
}

.news-page .news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1rem;
}

.news-page .news-links a {
  color: var(--fd-blue-mid);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.news-page .news-links a:hover {
  text-decoration: underline;
}

/* 稍微强调第一条新闻；不需要可删除这个选择器 */
.news-page .news-card:first-child {
  border-color: rgba(23, 63, 143, 0.24);
}

/* 中等屏幕：仍保持左图右文 */
@media (max-width: 900px) {
  .news-page {
    width: min(100% - 40px, 760px);
    padding-top: 42px;
  }

  .news-page .news-card {
    grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }

  .news-page .news-figure {
    min-height: 160px;
  }

  .news-page .news-figure img {
    max-height: 220px;
  }
}

/* 手机端：图片自动移到上方，避免左侧太窄 */
@media (max-width: 640px) {
  .news-page {
    width: min(100% - 32px, 620px);
    padding: 36px 0 70px;
  }

  .news-page .news-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .news-page .news-figure {
    height: 210px;
    min-height: 210px;
  }

  .news-page .news-figure img {
    max-height: none;
  }

  .news-page .news-content {
    padding: 0.2rem 0.15rem 0.35rem;
  }
}

/* =========================================================
   Contact & Join Us page final layout
   Scoped to .contact-join-page to avoid changing other pages
   ========================================================= */

.contact-join-page {
  width: 100%;
  padding: 0 0 6rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(23, 63, 143, 0.08), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(51, 83, 164, 0.07), transparent 28%),
    linear-gradient(180deg, #f6f9fd 0%, var(--bg-main) 100%);
  color: var(--text-main);
}

.contact-join-page .contact-hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 5.4rem 0 3.2rem;
  text-align: center;
}

.contact-join-page .contact-kicker {
  margin: 0 0 0.75rem;
  color: var(--fd-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.contact-join-page .contact-hero h1 {
  margin: 0 0 1.05rem;
  color: var(--fd-blue-dark);
  font-size: clamp(2.35rem, 4.4vw, 4rem);
  line-height: 1.08;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 700;
}

.contact-join-page .contact-hero p:not(.contact-kicker) {
  max-width: 850px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.82;
}

.contact-join-page .contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.contact-join-page .contact-primary-link,
.contact-join-page .contact-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-join-page .contact-primary-link {
  background: var(--fd-blue-dark);
  color: #ffffff;
  border: 1px solid var(--fd-blue-dark);
  box-shadow: 0 12px 26px rgba(11, 31, 77, 0.14);
}

.contact-join-page .contact-secondary-link {
  background: rgba(255, 255, 255, 0.78);
  color: var(--fd-blue);
  border: 1px solid rgba(23, 63, 143, 0.22);
}

.contact-join-page .contact-primary-link:hover,
.contact-join-page .contact-secondary-link:hover {
  transform: translateY(-2px);
}

.contact-join-page .contact-secondary-link:hover {
  background: #ffffff;
  border-color: rgba(23, 63, 143, 0.36);
}

.contact-join-page .contact-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.contact-join-page .join-main,
.contact-join-page .contact-side {
  min-width: 0;
}

.contact-join-page .join-section-heading {
  margin-bottom: 1.55rem;
  padding: 1.8rem 2rem;
  border: 1px solid rgba(23, 63, 143, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(11, 31, 77, 0.045);
}

.contact-join-page .join-section-heading .section-label,
.contact-join-page .highlight-card .section-label {
  margin: 0 0 0.7rem;
  color: var(--fd-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-join-page .join-section-heading h2 {
  margin: 0 0 0.75rem;
  color: var(--fd-blue-dark);
  font-size: clamp(1.75rem, 2.7vw, 2.45rem);
  line-height: 1.16;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 700;
}

.contact-join-page .join-section-heading p {
  max-width: 790px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.contact-join-page .join-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-join-page .join-card {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 1.45rem 1.55rem 1.35rem;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(11, 31, 77, 0.055);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-join-page .join-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--fd-blue), rgba(23, 63, 143, 0.18));
}

.contact-join-page .join-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 63, 143, 0.28);
  box-shadow: 0 22px 50px rgba(11, 31, 77, 0.10);
}

.contact-join-page .join-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.contact-join-page .join-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--fd-blue-soft);
  color: var(--fd-blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-join-page .join-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(23, 63, 143, 0.13);
  border-radius: 999px;
  background: rgba(234, 241, 251, 0.76);
  color: var(--fd-blue-mid);
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 800;
}

.contact-join-page .join-card h3 {
  margin: 0 0 0.8rem;
  color: var(--fd-blue-mid);
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 800;
}

.contact-join-page .join-card p {
  margin: 0 0 1rem;
  color: #303a46;
  font-size: 0.96rem;
  line-height: 1.72;
}

.contact-join-page .join-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #303a46;
  font-size: 0.94rem;
  line-height: 1.68;
}

.contact-join-page .join-card li + li {
  margin-top: 0.28rem;
}

.contact-join-page .contact-side {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 16px;
}

.contact-join-page .contact-info-card {
  padding: 1.45rem;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(11, 31, 77, 0.05);
}

.contact-join-page .highlight-card {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--fd-blue-dark), #173f8f);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(11, 31, 77, 0.14);
}

.contact-join-page .highlight-card .section-label {
  color: rgba(255, 255, 255, 0.74);
}

.contact-join-page .highlight-card h2 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.24;
  font-family: "Times New Roman", "SimSun", serif;
  font-weight: 700;
}

.contact-join-page .highlight-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.72;
}

.contact-join-page .contact-checklist {
  display: grid;
  gap: 0.55rem;
}

.contact-join-page .contact-checklist span {
  display: block;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-join-page .contact-label {
  margin: 0 0 0.55rem;
  color: var(--fd-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-join-page .contact-main-link {
  color: var(--fd-blue-mid);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-join-page .contact-main-link:hover {
  text-decoration: underline;
}

.contact-join-page .contact-info-card p:not(.section-label):not(.contact-label) {
  margin: 0;
  color: #303a46;
  font-size: 0.98rem;
  line-height: 1.72;
}

@media (max-width: 1080px) {
  .contact-join-page .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-join-page .contact-side {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 820px) {
  .contact-join-page .contact-hero,
  .contact-join-page .contact-shell {
    width: min(100% - 40px, 720px);
  }

  .contact-join-page .contact-hero {
    padding-top: 4.2rem;
    text-align: left;
  }

  .contact-join-page .contact-hero p:not(.contact-kicker) {
    margin-left: 0;
  }

  .contact-join-page .contact-hero-actions {
    justify-content: flex-start;
  }

  .contact-join-page .join-card-grid,
  .contact-join-page .contact-side {
    grid-template-columns: 1fr;
  }

  .contact-join-page .join-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .contact-join-page {
    padding-bottom: 4.6rem;
  }

  .contact-join-page .contact-hero,
  .contact-join-page .contact-shell {
    width: min(100% - 32px, 620px);
  }

  .contact-join-page .contact-hero {
    padding-top: 3.4rem;
    padding-bottom: 2.2rem;
  }

  .contact-join-page .join-section-heading,
  .contact-join-page .join-card,
  .contact-join-page .contact-info-card {
    border-radius: 16px;
  }

  .contact-join-page .join-section-heading {
    padding: 1.35rem;
  }

  .contact-join-page .join-card {
    padding: 1.3rem 1.25rem 1.35rem;
  }
}

/* ===== Contact side card color + spacing override ===== */

/* 整个深蓝卡片的基础文字颜色 */
.contact-join-page .highlight-card {
  color: rgba(255, 255, 255, 0.78);
}

/* 顶部小标签：HOW TO CONTACT */
.contact-join-page .highlight-card .section-label {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.75rem;
}

/* 主标题：Before writing */
.contact-join-page .highlight-card h2 {
  color: #ffffff;
  margin: 0 0 0.65rem;
}

/* 普通内容文字 */
.contact-join-page .highlight-card p:not(.section-label):not(.contact-label) {
  color: rgba(255, 255, 255, 0.76);
  margin: 0 0 1.55rem;   /* 空隙放在段落末尾 */
}

/* 小标题：EMAIL / ADDRESS */
.contact-join-page .highlight-card .contact-label {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 0.35rem;   /* 小标题和内容之间只留很小间距 */
}

/* 邮箱链接 */
.contact-join-page .highlight-card .contact-main-link {
  display: block;
  color: #9db8ff;
  margin: 0 0 1.55rem;   /* 空隙放在邮箱这一段末尾 */
  text-decoration: none;
}

.contact-join-page .highlight-card .contact-main-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 最后一段不要再额外留底部空隙 */
.contact-join-page .highlight-card p:last-child {
  margin-bottom: 0;
}

/* ===== Homepage one-screen compact override ===== */
@media (min-width: 1181px) {
  .home-page {
    min-height: 100vh;
  }

  .home-page .particles-hero {
    min-height: 430px;
  }

  .home-page .hero-kicker {
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
  }

  .home-page .hero-text h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(2.05rem, 2.8vw, 2.9rem);
  }

  .home-page .hero-tagline {
    font-size: 0.98rem;
  }

  .home-page .hero-intro {
    max-width: 720px;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .home-page .home-overview {
    grid-template-columns: minmax(340px, 0.40fr) minmax(0, 0.60fr);
    gap: 1.55rem;
    width: 65%;
    padding: 1.2rem 0 1.3rem;
  }

  .home-page .lab-snapshot,
  .home-page .news-panel {
    border-radius: 18px;
  }

  .home-page .lab-snapshot {
    padding: 1rem;
  }

  .home-page .snapshot-header h2,
  .home-page .news-panel .home-section-header h2 {
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  }

  .home-page .snapshot-header p:not(.section-label),
  .home-page .snapshot-note p,
  .home-page .news-panel .home-section-header p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .home-page .snapshot-slider {
    height: 480px;
    margin-bottom: 0.8rem;
  }

  .home-page .news-panel {
    height: 710px;
    padding: 1.2rem;
  }

  .home-page .news-panel .home-section-header {
    margin-bottom: 0.85rem;
  }

  .home-page .news-item {
    padding: 0.75rem 0.85rem 0.8rem;
  }

  .home-page .news-item h3 {
    font-size: 0.98rem;
  }

  .home-page .news-item p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .home-page .home-cta {
    display: none;
  }

  .home-page .site-footer {
    padding-top: 0.55rem;
    padding-bottom: 0.6rem;
  }

  .home-page .footer-brand,
  .home-page .footer-contact {
    font-size: 0.8rem;
  }
}

@media (max-width: 760px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

/* ===== Homepage desktop equal-height + footer peek ===== */
@media (min-width: 761px) {
  .home-page {
    --home-desktop-card-height: clamp(300px, calc(100vh - 430px), 560px);
  }

  .home-page .particles-hero {
    min-height: clamp(210px, 25vh, 360px);
    padding: clamp(1rem, 1.8vh, 2.2rem) 0;
  }

  .home-page .home-overview {
    align-items: stretch;
    grid-template-columns: minmax(260px, 0.4fr) minmax(0, 0.6fr);
    gap: clamp(1rem, 2vw, 1.55rem);
    width: min(100% - 40px, 1160px);
    padding: clamp(0.65rem, 1.3vh, 1.1rem) 0 clamp(0.7rem, 1.4vh, 1.2rem);
  }

  .home-page .lab-snapshot,
  .home-page .news-panel {
    height: var(--home-desktop-card-height) !important;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .home-page .lab-snapshot {
    position: static;
  }

  .home-page .snapshot-header,
  .home-page .snapshot-note,
  .home-page .news-panel .home-section-header,
  .home-page .news-actions {
    flex: 0 0 auto;
  }

  .home-page .snapshot-slider {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }

  .home-page .news-scroll-window {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
}

@media (min-width: 761px) and (max-height: 720px) {
  .home-page {
    --home-desktop-card-height: clamp(220px, calc(100vh - 395px), 360px);
  }

  .home-page .particles-hero {
    min-height: clamp(180px, 22vh, 240px);
  }

  .home-page .snapshot-header p:not(.section-label),
  .home-page .snapshot-note p,
  .home-page .news-panel .home-section-header p,
  .home-page .news-item p {
    line-height: 1.42;
  }
}

/* Desktop zoom/small viewport: never clip Lab or News content. */
@media (min-width: 761px) and (max-width: 1180px) {
  .home-page .home-overview {
    grid-template-columns: 1fr;
    align-items: start;
    width: min(100% - 40px, 760px);
  }
}

@media (min-width: 761px) and (max-width: 1180px),
       (min-width: 761px) and (max-height: 720px) {
  .home-page .lab-snapshot,
  .home-page .news-panel {
    height: auto !important;
    max-height: none;
    overflow: visible;
  }

  .home-page .lab-snapshot {
    gap: 0;
  }

  .home-page .snapshot-header h2 {
    margin-bottom: 0.45rem;
  }

  .home-page .snapshot-header p:not(.section-label) {
    margin-bottom: 0.75rem;
  }

  .home-page .snapshot-note p {
    margin-bottom: 0.65rem;
  }

  .home-page .snapshot-slider {
    height: clamp(220px, 28vw, 360px);
    min-height: clamp(220px, 28vw, 360px);
    flex: 0 0 auto;
  }

  .home-page .news-scroll-window {
    max-height: clamp(260px, 42vh, 430px);
    overflow-y: auto;
  }
}

@media (min-width: 761px) and (max-height: 620px) {
  .home-page .snapshot-slider {
    height: clamp(180px, 26vw, 300px);
    min-height: clamp(180px, 26vw, 300px);
  }
}

/* ===== Final mobile polish for Home and Research ===== */
@media (max-width: 760px) {
  .site-header,
  header {
    min-height: auto;
    padding: 0.68rem 1rem 0.76rem;
    gap: 0.62rem;
  }

  header > div:first-child {
    width: 100%;
    gap: 0.85rem;
  }

  header > div:first-child > img:first-child,
  .brand-logo {
    width: 132px !important;
    margin: 0 !important;
  }

  .lab-logo-slot {
    width: 85px;
    height: 60px;
    margin-right: 0.2rem;
  }

  .brand {
    min-width: 0;
    gap: 0.85rem;
  }

  .site-title h1,
  .site-title h2,
  header h1,
  header h2 {
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .site-nav,
  nav {
    width: 100%;
    gap: 0.58rem 0.82rem;
    justify-content: flex-start;
  }

  .site-nav a,
  nav a {
    font-size: 0.94rem;
  }

  .home-page .particles-hero {
    min-height: 320px;
    padding: 2rem 0;
  }

  .home-page .hero-text,
  .hero-content {
    padding: 0 1.15rem;
  }

  .home-page .hero-kicker {
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
  }

  .home-page .hero-text h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    line-height: 1.16;
  }

  .home-page .hero-tagline,
  .home-page .hero-intro {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .home-page .home-overview {
    width: min(100% - 28px, 620px);
    gap: 1.2rem;
    padding: 2rem 0 2.4rem;
  }

  .home-page .lab-snapshot,
  .home-page .news-panel {
    padding: 1rem;
    border-radius: 16px;
  }

  .home-page .snapshot-header h2,
  .home-page .news-panel .home-section-header h2 {
    font-size: 1.45rem;
  }

  .home-page .snapshot-header p:not(.section-label),
  .home-page .snapshot-note p,
  .home-page .news-panel .home-section-header p,
  .home-page .news-item p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .home-page .snapshot-slider {
    height: 210px;
    border-radius: 14px;
  }

  .home-page .snapshot-caption {
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
  }

  .home-page .news-panel {
    height: auto;
    overflow: visible;
  }

  .home-page .news-panel .home-section-header {
    margin-bottom: 0.9rem;
    text-align: left;
  }

  .home-page .news-scroll-window {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .home-page .news-item {
    margin-bottom: 0.75rem;
    padding: 0.95rem 0.9rem 0.95rem 1.1rem;
    border-radius: 14px;
  }

  .home-page .news-item h3 {
    font-size: 1rem;
  }

  .research-page-body .particles-hero_text {
    height: 132px;
  }

  .research-page {
    padding: 1.8rem 0 3.2rem;
  }

  .research-page-inner {
    width: min(100% - 28px, 620px);
  }

  .research-page-heading {
    margin-bottom: 1.5rem;
  }

  .research-overview-card {
    gap: 1.15rem;
    margin-bottom: 2.4rem;
    padding: 1.1rem;
    border-radius: 16px;
  }

  .research-overview-label {
    padding-bottom: 1.1rem;
  }

  .research-overview-label h2,
  .research-direction-text .research-subtitle {
    font-size: 1.42rem;
    line-height: 1.25;
  }

  .research-overview-text p,
  .research-direction-text .research-text {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .research-direction-card {
    gap: 1.2rem;
    margin-bottom: 2.8rem;
  }

  .research-direction-visual {
    min-height: 170px;
    border-radius: 16px;
    order: -1;
  }

  .research-direction-visual::before,
  .research-direction-visual::after {
    inset: 0.75rem;
    border-radius: 14px;
  }

  .orbit-one {
    width: 132px;
    height: 62px;
  }

  .orbit-two {
    width: 148px;
    height: 70px;
  }

  .orbit-three {
    width: 96px;
    height: 96px;
  }

  .node-center {
    width: 26px;
    height: 26px;
    left: calc(50% - 13px);
    top: calc(50% - 13px);
  }

  .visual-node {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 420px) {
  header > div:first-child > img:first-child,
  .brand-logo {
    width: 112px !important;
  }

  .lab-logo-slot {
    width: 50px;
    height: 36px;
  }

  .site-title h1,
  .site-title h2,
  header h1,
  header h2 {
    font-size: 0.84rem;
  }

  .home-page .particles-hero {
    min-height: 300px;
  }

  .home-page .snapshot-slider {
    height: 180px;
  }

  .research-page-body .particles-hero_text {
    height: 110px;
  }
}
