/* ============================================================
   CAITS — Academic Website  v8  (Fresh Tech Blue Design)
   Clean sky blue + sapphire accents, glassmorphism, refined shadows
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

:root {
  /* ── Premium Palette: Fresh Tech Blue ── */
  --navy:      #0a1e3d;
  --navy-mid:  #0f2d5e;
  --navy-lt:   #164080;
  --navy-soft: #1d5299;
  --accent:    #3b82f6;
  --accent-lt: #60a5fa;
  --accent-dk: #1d4ed8;
  --accent-bg: #eff6ff;
  --accent-bdr:#93c5fd;
  --blue:      #3b82f6;
  --blue-lt:   #60a5fa;
  --blue-dk:   #1d4ed8;
  --blue-bg:   #eff6ff;
  --blue-bdr:  #93c5fd;
  --bg:        #f7f9fc;
  --bg-alt:    #eef2f7;
  --bg-card:   #ffffff;
  --border:    #d4dce8;
  --border-lt: #e8edf4;
  --text:      #0c1524;
  --text-sub:  #2e3a4e;
  --text-dim:  #6b7a8d;
  --green:     #10b981;
  --green-bg:  #ecfdf5;
  --gold:      #d97706;
  --gold-bg:   #fffbeb;
  --purple:    #8b5cf6;
  --purple-bg: #f5f3ff;
  /* Typography */
  --font:  'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10,30,61,0.03);
  --shadow-sm: 0 1px 3px rgba(10,30,61,0.05), 0 1px 2px rgba(10,30,61,0.03);
  --shadow:    0 4px 6px -1px rgba(10,30,61,0.06), 0 2px 4px -2px rgba(10,30,61,0.04);
  --shadow-md: 0 10px 20px -4px rgba(10,30,61,0.08), 0 4px 8px -4px rgba(10,30,61,0.04);
  --shadow-lg: 0 20px 40px -8px rgba(10,30,61,0.1), 0 8px 16px -6px rgba(10,30,61,0.04);
  --shadow-xl: 0 32px 64px -12px rgba(10,30,61,0.14);
  --shadow-glow-green: 0 0 40px rgba(59,130,246,0.18);
  --shadow-glow-blue: 0 0 40px rgba(59,130,246,0.15);
  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
}

/* ── RESPONSIVE BASE FONT SIZE ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
/* Scale base font for different viewports */
@media (max-width: 1280px) { html { font-size: 15.5px; } }
@media (max-width: 960px)  { html { font-size: 15px; } }
@media (max-width: 768px)  { html { font-size: 14.5px; } }
@media (max-width: 520px)  { html { font-size: 14px; } }
@media (max-width: 375px)  { html { font-size: 13.5px; } }
@media (min-width: 1600px) { html { font-size: 17px; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  position: relative;
  padding-bottom: 68px; /* Space for footer */
}
a { color: var(--accent-dk); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); text-decoration: underline; }
img { max-width: 100%; display: block; }
p { margin-bottom: 0.65rem; }
p:last-child { margin-bottom: 0; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  background: linear-gradient(100deg, #f4f9ff 0%, #e9f2ff 45%, #dfeeff 100%);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 8px 24px rgba(55,105,190,0.12), 0 0 0 1px rgba(120,170,245,0.2) inset;
  border-bottom: 1px solid rgba(120,170,245,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: visible;
}
.nav::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(105deg, rgba(147,197,253,0) 0%, rgba(147,197,253,0.35) 45%, rgba(96,165,250,0) 70%);
  transform: translateX(-120%);
  animation: navSweep 8s linear infinite;
  pointer-events: none;
}
.nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120,170,245,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,245,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.25;
  pointer-events: none;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: stretch;
  position: relative;
  min-height: 56px;
}
.nav-logo-wrap {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0.78rem 1.3rem 0.78rem 0;
  border-right: 1px solid rgba(120,170,245,0.35);
  margin-right: 0.5rem;
  text-decoration: none !important; flex-shrink: 0;
  transition: opacity 0.2s;
  min-height: 50px;
}
.nav-logo-wrap:hover { opacity: 0.85; text-decoration: none !important; }
.nav-logo-abbr {
  font-family: var(--mono); font-size: 1.12rem; font-weight: 600;
  letter-spacing: 0.14em; line-height: 1;
  background: linear-gradient(135deg, var(--accent-lt), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-full {
  display: none;
}
.nav-links { display: flex; align-items: stretch; flex-wrap: nowrap; margin-left: 0; }
.nav-link {
  color: #2a4f84; font-size: 0.92rem;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  padding: 0 0.72rem;
  display: flex; align-items: center;
  min-height: 56px;
  border-bottom: 2px solid transparent;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.25s;
  letter-spacing: 0;
  position: relative;
  font-weight: 700;
}
.nav-link:hover {
  color: #1e63d7;
  background: rgba(59,130,246,0.09);
  text-decoration: none !important;
}
.nav-link.active {
  color: #1d4ed8;
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-lt));
  box-shadow: 0 0 14px rgba(59,130,246,0.45);
  border-radius: 2px;
}
.nav-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0.75rem; margin-left: auto;
}
.nav-menu-btn span { display: block; width: 22px; height: 2px; background: rgba(42,79,132,0.85); border-radius: 2px; transition: 0.2s; }

/* ── HOME TOP BRAND BAR ───────────────────────────────────── */
.home-top-brandbar {
  background: linear-gradient(180deg, rgba(245,249,255,0.98) 0%, rgba(234,243,255,0.94) 100%);
  border-bottom: 1px solid rgba(147,197,253,0.34);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.65);
  position: relative;
  overflow: hidden;
}
.home-top-brandbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 58% at 14% 28%, rgba(59,130,246,0.1) 0%, transparent 72%),
    radial-gradient(ellipse 40% 62% at 84% 38%, rgba(96,165,250,0.12) 0%, transparent 74%);
  pointer-events: none;
}
.home-top-brandbar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding-top: 0.68rem;
  padding-bottom: 0.68rem;
}
.home-brand-hero {
  display: flex;
  align-items: center;
  gap: 0.74rem;
  min-width: 0;
  text-decoration: none !important;
}
.home-brand-hero:hover {
  text-decoration: none !important;
  opacity: 0.92;
}
.home-brand-hero .hero-title-stack {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.75rem; box-sizing: border-box; }
.page-wrap {
  display: grid; grid-template-columns: 1fr 300px; gap: 0;
  max-width: 1280px; margin: 0 auto; padding: 0 1.75rem;
  align-items: start; box-sizing: border-box; width: 100%;
}
.main-col { padding: 2rem 2.5rem 2.5rem 0; border-right: 1px solid var(--border); min-width: 0; }
.side-col  { padding: 2rem 0 2.5rem 2rem; min-width: 0; }

/* ── HERO BANNER ─────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(125deg, #f5f9ff 0%, #eaf3ff 52%, #e1eeff 100%);
  color: var(--text);
  padding: 2.75rem 0 2.5rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(147,197,253,0.35);
  box-shadow: inset 0 -1px 0 rgba(147,197,253,0.22);
}
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 52% 72% at 82% 18%, rgba(96,165,250,0.24) 0%, transparent 70%),
    radial-gradient(ellipse 42% 58% at 10% 82%, rgba(59,130,246,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 52% 48%, rgba(147,197,253,0.22) 0%, transparent 68%);
  pointer-events: none;
}
.hero-banner::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(147,197,253,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147,197,253,0.11) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.08));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.08));
  animation: heroGridFloat 14s linear infinite;
  pointer-events: none;
}
.hero-banner .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 1.2rem;
  row-gap: 1rem;
  position: relative;
  z-index: 1;
}
.hero-logo-box {
  grid-column: 1;
  grid-row: 1;
  width: 64px; height: 64px; flex-shrink: 0;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(147,197,253,0.45);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.95rem;
  box-shadow: 0 10px 22px rgba(59,130,246,0.11), 0 0 0 1px rgba(255,255,255,0.65) inset;
  overflow: hidden;
  align-self: start;
}
.hero-logo-box.is-loading {
  color: transparent;
}
.hero-logo-box img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-main-text {
  display: contents;
}
.hero-title-stack {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
  align-self: center;
}
.hero-lab-name  {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-size: clamp(1.02rem, 2.45vw, 1.46rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 0;
  letter-spacing: -0.03em;
  color: #163a66;
}
.hero-lab-en {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  font-size: clamp(0.64rem, 1.2vw, 0.76rem);
  color: rgba(29,78,216,0.72);
  margin-bottom: 0;
  font-style: italic;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-justified-line {
  display: block;
  max-width: 100%;
}
.brand-line-track {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.brand-justified-line--cn .brand-line-track {
  gap: 0;
}
.brand-justified-line--en .brand-line-track {
  gap: 0;
}
.brand-line-token {
  display: block;
  flex: 0 0 auto;
  white-space: nowrap;
}
.hero-copy-card {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  box-sizing: border-box;
  justify-self: stretch;
  padding: 1.05rem 1.15rem 1.08rem;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(245,249,255,0.92) 48%, rgba(238,245,255,0.9) 100%);
  border: 1px solid rgba(147,197,253,0.2);
  box-shadow:
    0 16px 34px rgba(59,130,246,0.07),
    0 1px 0 rgba(255,255,255,0.86) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.hero-copy-card::before {
  content: '';
  position: absolute;
  top: -42px;
  right: -26px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96,165,250,0.18) 0%, rgba(96,165,250,0.04) 48%, transparent 72%);
  pointer-events: none;
}
.hero-copy-card::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,0.9), rgba(96,165,250,0.5), rgba(191,219,254,0));
  pointer-events: none;
}
.hero-copy-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.45rem;
}
.hero-copy-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: rgba(219,234,254,0.78);
  color: #2b61a9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy-card-mark {
  width: 62px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(37,99,235,0.22) 0 12px, transparent 12px 16px, rgba(96,165,250,0.18) 16px 28px, transparent 28px 32px, rgba(37,99,235,0.12) 32px 44px, transparent 44px 48px, rgba(96,165,250,0.1) 48px 62px);
  flex-shrink: 0;
}
.hero-copy-card-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid rgba(147,197,253,0.22);
}
.hero-copy-card-title {
  margin: 0;
  color: #173e72;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-copy-card-subtitle {
  color: rgba(37,99,235,0.62);
  font-size: 0.76rem;
  font-style: italic;
  white-space: nowrap;
}
.hero-intro {
  position: relative;
  z-index: 1;
  font-size: clamp(0.9rem, 1.75vw, 1rem);
  color: #355882;
  line-height: 1.88;
  max-width: 100%;
  text-align: justify;
  text-justify: inter-ideograph;
}
.home-page .hero-banner-home {
  padding: 1.15rem 0 1.5rem;
}
.home-page .hero-banner-home .container {
  display: block;
}
.home-page .hero-banner-home .hero-copy-card {
  grid-column: auto;
  grid-row: auto;
}
.hero-stats {
  display: flex; gap: clamp(1rem, 3vw, 2.25rem); margin-top: 1.35rem;
  flex-wrap: wrap;
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  font-family: var(--mono); font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700;
  background: linear-gradient(135deg, var(--accent-lt), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label {
  font-size: clamp(0.68rem, 1.5vw, 0.78rem); color: rgba(36,74,124,0.84);
  margin-top: 0.22rem; letter-spacing: 0.06em;
}

/* ── NEWS CAROUSEL ───────────────────────────────────────── */
.news-carousel {
  background: linear-gradient(180deg, #edf4ff 0%, var(--bg) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
@keyframes heroGridFloat {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(0,18px,0); }
}
.news-carousel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 2rem;
  position: relative;
}
.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(59,130,246,0.12);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  cursor: default;
}
.carousel-slide.clickable {
  cursor: pointer;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.2rem;
  background: linear-gradient(transparent, rgba(5,14,30,0.85));
  color: #fff;
}
.carousel-slide-title {
  font-size: clamp(0.88rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
.carousel-slide-date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #ffffff;
}
.carousel-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}
.carousel-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
}
.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,0.4);
}

/* ── PINNED NEWS (inline badge) ──────────────────────────── */
.news-pin-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  margin-left: 0;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.news-item.pinned {
  background: rgba(239,246,255,0.45);
}

/* ── SECTION TITLES ─────────────────────────────────────── */
.sec-title {
  font-size: clamp(0.9rem, 2vw, 1rem); font-weight: 700; color: var(--text);
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f4f9ff, #eaf3ff);
  border-left: 3px solid var(--accent);
  box-shadow: inset 0 0 0 1px rgba(147,197,253,0.25), 0 2px 8px rgba(59,130,246,0.08);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Page header - original */
.page-header {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.page-header .container { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.page-header h1 { font-size: clamp(1.1rem, 2.8vw, 1.3rem); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.page-header-sub { font-size: clamp(0.78rem, 1.6vw, 0.85rem); color: var(--text-dim); word-break: break-word; }

/* Page header - premium version */
.page-header-premium {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-lt) 100%);
  padding: 2.75rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}
.page-header-premium::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 75% 35%, rgba(59,130,246,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 65%, rgba(96,165,250,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-premium .container { position: relative; z-index: 1; }
.page-header-premium .page-header-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 0.2rem;
}
.page-header-premium .page-header-sub {
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  color: rgba(96,165,250,0.7);
  font-style: italic; letter-spacing: 0.04em;
}
.page-header-premium .page-header-desc {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: #ffffff;
  margin-top: 0.65rem; max-width: 600px; line-height: 1.75;
}

/* ── NEWS ────────────────────────────────────────────────── */
.news-list { list-style: none; }
.news-item {
  display: flex; gap: 0.32rem; padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border-lt);
  font-size: 0.95rem; align-items: center;
  transition: all 0.2s;
  border-radius: var(--r-sm);
  margin: 0 -0.5rem;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: rgba(239,246,255,0.6); }
.news-date {
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--text-dim); white-space: nowrap; flex-shrink: 0;
}
.news-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-width: 0;
  flex-shrink: 0;
}
.news-text { color: var(--text-sub); flex: 1; line-height: 1.55; display: inline-flex; align-items: center; gap: 0.35rem; }
.news-text a { color: var(--accent-dk); }
.news-text a:hover { text-decoration: underline; }
.news-more {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.9rem; font-size: 0.88rem;
  padding: 0.42rem 0.9rem;
  background: linear-gradient(135deg, var(--accent-bg), #fff);
  border: 1px solid var(--accent-bdr);
  border-radius: 20px;
  color: var(--accent-dk);
  font-weight: 600;
  transition: all 0.25s;
}
.news-more:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
  border-color: var(--accent);
}
.news-tag {
  display: inline-block; font-size: 0.72rem; padding: 0.08rem 0.48rem;
  border-radius: 4px; margin-left: 0; vertical-align: middle;
  font-weight: 600; white-space: nowrap;
}
/* ... existing tag colors ... */
.news-tag-paper { background: #dbeafe; color: #1e40af; }
.news-tag-competition { background: #fce7f3; color: #9d174d; }
.news-tag-project { background: #d1fae5; color: #065f46; }
.news-tag-exchange { background: #e0e7ff; color: #3730a3; }
.news-tag-talent { background: #fef3c7; color: #92400e; }
.news-tag-team { background: #f3e8ff; color: #6b21a8; }
.news-tag-recruit { background: #ffe4e6; color: #be123c; }
.news-tag-award { background: var(--gold-bg); color: var(--gold); }
.news-tag-event { background: var(--green-bg); color: var(--green); }

/* News Detail Content Styles */
.news-detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.news-detail-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.news-detail-date {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.news-detail-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.news-detail-content p { margin-bottom: 1rem; }
.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
  display: block; /* Default block */
}
/* Quill Alignment Classes */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-align-center img { margin-left: auto; margin-right: auto; }
.ql-align-right img { margin-left: auto; margin-right: 0; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px; padding: 0 0.7rem;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-sub); font-size: 0.85rem; font-family: var(--mono);
  border-radius: var(--r); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.page-btn:hover { border-color: var(--accent-bdr); color: var(--accent-dk); background: var(--accent-bg); }
.page-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-dk)); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(59,130,246,0.3); }
.page-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.page-info { font-size: 0.82rem; color: var(--text-dim); padding: 0 0.35rem; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.widget { margin-bottom: 1.5rem; }
.widget-title {
  font-size: 0.9rem; font-weight: 700;
  padding: 0.48rem 0.9rem;
  background: linear-gradient(135deg, #f6faff, #e9f3ff);
  border-left: 3px solid var(--accent);
  margin-bottom: 0.72rem;
  letter-spacing: 0.03em;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  box-shadow: inset 0 0 0 1px rgba(147,197,253,0.25), 0 2px 8px rgba(59,130,246,0.08);
}
.contact-list { list-style: none; font-size: 0.88rem; }
.contact-list li {
  padding: 0.35rem 0; color: var(--text-sub);
  border-bottom: 1px solid var(--border-lt);
  display: flex; gap: 0.5rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { color: var(--text); white-space: nowrap; min-width: 36px; }
.contact-list a { color: var(--accent-dk); }
.research-tag-list { display: flex; flex-direction: column; }
.research-tag {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.55rem; font-size: 0.88rem;
  color: var(--text-sub); border-bottom: 1px solid var(--border-lt);
  transition: all 0.2s;
  border-radius: var(--r-sm);
}
.research-tag:last-child { border-bottom: none; }
.research-tag:hover { background: var(--accent-bg); transform: translateX(4px); }
.research-tag-icon { font-size: 0.95rem; flex-shrink: 0; }
.research-tag-name { font-weight: 600; color: var(--text); }
.join-box {
  background: linear-gradient(135deg, var(--accent-bg) 0%, #dbeafe 100%);
  border: 1px solid var(--accent-bdr);
  border-radius: var(--r-lg);
  padding: 0.9rem 1.05rem 0.82rem;
  font-size: 0.88rem; color: var(--text-sub); line-height: 1.72;
  box-shadow: var(--shadow-xs);
}
.join-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.72rem;
}
.join-box-detail {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-ideograph;
}
.join-box a { color: var(--accent-dk); font-weight: 600; }
.join-box-inline-link {
  display: inline;
  margin-left: 0.18rem;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── CARDS / GENERAL ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(147,197,253,0.75); transform: translateY(-2px); }

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.15rem; max-width: 100%; box-sizing: border-box; }
.filter-btn {
  font-size: 0.82rem; padding: 0.32rem 0.85rem;
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--bg-card); color: var(--text-sub);
  cursor: pointer; font-family: var(--mono);
  transition: all 0.2s; letter-spacing: 0.02em;
  box-shadow: var(--shadow-xs);
}
.filter-btn:hover { border-color: var(--accent-bdr); color: var(--accent-dk); background: var(--accent-bg); }
.filter-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-dk)); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(59,130,246,0.25); }

/* ── PUBLICATIONS ─────────────────────────────────────────── */
.year-group { margin-bottom: 1.75rem; }
.year-label {
  font-family: var(--mono); font-size: 1.6rem; font-weight: 700;
  color: var(--border); letter-spacing: -0.02em;
  margin-bottom: 0.75rem; line-height: 1; user-select: none;
}
.pub-item {
  display: flex; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border-lt);
  align-items: flex-start;
}
.pub-item:last-child { border-bottom: none; }
.pub-thumb {
  width: 136px; height: 84px; flex-shrink: 0;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: var(--text-dim); text-align: center;
  line-height: 1.1; padding: 2px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pub-info { flex: 1; min-width: 0; }
.pub-title { font-weight: 700; color: var(--text); line-height: 1.45; font-size: 0.98rem; }
.pub-title a { color: var(--text); text-decoration: none; transition: color 0.15s; }
.pub-title a:hover { color: var(--accent); }
.pub-authors { font-size: 0.88rem; color: var(--text-sub); line-height: 1.5; margin: 0.15rem 0 0.2rem; }
.pub-venue-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem 0.42rem;
  margin-bottom: 0.4rem;
}
.pub-venue {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
  color: var(--accent);
}
.pub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem 0.42rem;
  align-items: center;
}
.pub-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pub-link {
  font-size: 0.72rem; color: #1e4f95; text-decoration: none;
  border: 1px solid #9ac0f9; border-radius: 4px;
  background: linear-gradient(135deg, #f3f8ff, #e8f2ff);
  padding: 0.08rem 0.42rem; transition: all 0.15s;
  font-weight: 600;
}
.pub-link:hover { border-color: #2f6fdf; color: #ffffff; background: linear-gradient(135deg, #4a8cff, #2d6cdf); box-shadow: 0 4px 10px rgba(59,130,246,0.28); }
.pub-tag-badge {
  display: inline-block; vertical-align: middle;
  font-size: 0.66rem; font-weight: 700; color: #b42318;
  border: 1px solid rgba(244, 114, 114, 0.46); border-radius: 7px;
  padding: 0.08rem 0.48rem; line-height: 1.45;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.14);
  white-space: nowrap;
}
.pub-badge-highlight {
  display: inline-block; vertical-align: middle;
  font-size: 0.66rem; font-weight: 700; color: #b45309;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.42);
  padding: 0.08rem 0.5rem; border-radius: 7px; line-height: 1.45;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.14);
}
.pub-badge-top {
  display: inline-block; vertical-align: middle;
  font-size: 0.66rem; font-weight: 800; color: #b91c1c;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid rgba(251, 113, 133, 0.42);
  padding: 0.08rem 0.5rem; border-radius: 7px; line-height: 1.45;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.14);
}
.pub-type-badge {
  display: inline-block; vertical-align: middle;
  font-size: 0.68rem; font-weight: 700; color: #fff;
  border-radius: 7px; padding: 0.08rem 0.52rem; line-height: 1.45;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.16);
  background: var(--dim); /* Default fallback */
}
.pub-type-badge.type-patent { background: #9333ea; } /* Purple */
.pub-type-badge.type-book { background: #f97316; }   /* Orange */
.pub-type-badge.type-textbook { background: #10b981; } /* Green */
.pub-type-badge.type-project { background: #0ea5e9; } /* Light Blue */
.pub-type-badge.type-competition { background: #ef4444; } /* Red */
.student-email {
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-lt);
}

/* ── RESEARCH PAGE (legacy accordion) ── */
.research-section {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.research-section:last-child { border-bottom: none; }
.research-header {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.6rem 0 1rem;
  cursor: pointer; user-select: none;
}
.research-number {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  color: rgba(59,130,246,0.4); line-height: 1;
  width: 28px; text-align: right; flex-shrink: 0;
}
.research-icon-big {
  width: 42px; height: 42px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-bg), #bfdbfe);
  border: 1px solid var(--accent-bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.research-title-block { flex: 1; min-width: 0; }
.research-title-cn { font-size: clamp(0.95rem, 2.2vw, 1.1rem); font-weight: 700; color: var(--text); line-height: 1.25; }
.research-title-en { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.12rem; font-style: italic; }
.research-chevron {
  color: var(--text-dim); font-size: 0.85rem; flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.research-section.open .research-chevron { transform: rotate(90deg); }
.research-body { display: none; padding: 0 0 1.75rem; }
.research-section.open .research-body { display: block; }
.research-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  align-items: start; margin-bottom: 1.25rem;
}
.research-layout.media-none { grid-template-columns: 1fr; }
.research-desc-block { font-size: 0.95rem; color: var(--text-sub); line-height: 1.85; }
.research-media-block { min-width: 0; }
.research-media-img {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--border); object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.research-media-iframe {
  width: 100%; aspect-ratio: 16/9;
  border: none; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ── MEMBERS ─────────────────────────────────────────────── */
.member-group { margin-bottom: 2.25rem; }
.member-group-title {
  font-size: 0.82rem; font-weight: 700;
  color: var(--accent-dk); text-transform: uppercase; letter-spacing: 0.12em;
  padding-bottom: 0.42rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0.9rem;
}
.mentor-grid { display: flex; flex-direction: column; gap: 0; width: 100%; box-sizing: border-box; }
.mentor-card {
  display: flex; gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-lt);
  align-items: flex-start;
  transition: background 0.15s;
}
.mentor-card:last-child { border-bottom: none; }
.mentor-card:hover { background: rgba(239,246,255,0.3); }
.mentor-avatar {
  width: 110px; height: 143px; flex-shrink: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden; background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.mentor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mentor-avatar-initials {
  width: 110px; height: 143px; flex-shrink: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--accent-lt); font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.mentor-info { flex: 1; min-width: 0; }
.mentor-name { font-size: clamp(0.95rem, 2.2vw, 1.1rem); font-weight: 700; color: var(--text); line-height: 1.2; }
.mentor-name-en { font-size: 0.82rem; color: var(--text-dim); }
.mentor-role {
  display: inline-block; font-size: 0.78rem; color: var(--accent-dk);
  background: var(--accent-bg); border: 1px solid var(--accent-bdr);
  padding: 0.1rem 0.58rem; border-radius: 4px;
  margin: 0.3rem 0 0.55rem; font-weight: 600;
}
.mentor-bio { font-size: 0.92rem; color: var(--text-sub); line-height: 1.82; }
.mentor-research { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.38rem; }
.mentor-email { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); margin-top: 0.35rem; }
.mentor-email a { color: var(--text-dim); }
.mentor-email a:hover { color: var(--accent-dk); }

.student-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem; margin-top: 0.35rem; width: 100%; box-sizing: border-box;
}
.student-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 0.85rem 0.9rem; background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.student-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent-bdr); }
.student-card-top { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 0.5rem; min-height: 117px; }
.student-card-top > div:not(.student-avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 0.2rem; }
.student-avatar {
  width: 90px; height: 117px; min-width: 90px; min-height: 117px; flex-shrink: 0;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.student-avatar img { width: 100%; height: 100%; object-fit: cover; }
.student-avatar-initials {
  width: 90px; height: 117px; flex-shrink: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy-lt) 0%, var(--navy-soft) 100%);
  color: var(--accent-lt); font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.student-name { font-weight: 700; font-size: 0.98rem; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-name-en { font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-role { font-size: 0.78rem; color: var(--accent-dk); font-weight: 600; margin-top: 0.15rem; }
.student-year { font-size: 0.78rem; color: var(--accent-dk); font-weight: 600; }
.student-research {
  font-size: 0.85rem; color: var(--text-sub); line-height: 1.55;
  width: 100%; flex: 1; display: flex; align-items: center;
  border-top: 1px solid var(--border-lt); padding-top: 0.35rem;
}
.student-achievements { font-size: 0.8rem; color: #5b6e8c; font-style: italic; margin-top: 0.3rem; line-height: 1.45; }

/* ── ALUMNI ────────────────────────────────────────────── */
.alumni-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem; margin-top: 0.35rem; width: 100%; box-sizing: border-box;
}
.alumni-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 0.85rem 0.9rem; background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.alumni-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent-bdr);
}
.alumni-card-top {
  display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 0.5rem; min-height: 117px;
}
.alumni-card-top > div:not(.alumni-card-avatar) {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 0.2rem;
}
.alumni-card-avatar {
  width: 90px; height: 117px; min-width: 90px; min-height: 117px; flex-shrink: 0;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.alumni-avatar-img,
.alumni-avatar-fallback {
  width: 100%;
  height: 100%;
}
.alumni-avatar-img {
  display: block;
  object-fit: cover;
}
.alumni-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lt);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--navy-lt) 0%, var(--navy-soft) 100%);
}
.alumni-name {
  font-weight: 700; font-size: 0.98rem; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alumni-name-en {
  font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alumni-identity-degree {
  font-size: 0.78rem; color: var(--accent-dk); font-weight: 600; margin-top: 0.15rem;
}
.alumni-identity-year {
  font-size: 0.78rem; color: var(--accent-dk); font-weight: 600;
}
.alumni-employer-wrap {
  font-size: 0.85rem; color: var(--text-sub); line-height: 1.55;
  width: 100%; flex: 1; display: flex; align-items: center;
  border-top: 1px solid var(--border-lt); padding-top: 0.35rem;
  word-break: break-all; overflow-wrap: break-word; height: auto;
}

/* ── ACTIVITIES ──────────────────────────────────────────── */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px,1fr)); gap: 1.15rem; }
.activity-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; background: var(--bg-card);
  box-shadow: var(--shadow-xs); text-decoration: none !important;
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
  display: flex; flex-direction: column; height: 100%;
}
.activity-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none !important; }
.activity-card-img {
  width: 100%; height: 165px; overflow: hidden;
  background: var(--bg-alt); position: relative; flex-shrink: 0;
}
.activity-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.activity-card:hover .activity-card-img img { transform: scale(1.06); }
.activity-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.85rem;
  background: linear-gradient(135deg, var(--bg-alt), #d4dce8);
}
.activity-card-body { padding: 0.95rem 1rem; flex: 1; display: flex; flex-direction: column; }
.activity-card-title {
  font-weight: 700; font-size: 0.98rem; color: var(--text); margin-bottom: 0.4rem; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  height: calc(1.45 * 0.98rem * 2);
}
.activity-card-date { font-size: 0.82rem; color: var(--text-dim); font-family: var(--mono); margin-bottom: 0; }
.activity-card-summary { display: none; }

.activity-detail-title { font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 800; margin-bottom: 0.4rem; }
.activity-detail-date  { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); }
.activity-hero{background:linear-gradient(145deg,#f5f9ff,#eef4ff);border:1px solid #dbe7ff;border-radius:var(--r-lg);padding:1rem 1.1rem;margin-bottom:.95rem;}
.activity-hero-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:.45rem;}
.activity-summary{
  font-size:.92rem;color:#2b4368;line-height:1.8;margin:.35rem 0 .78rem;
  background:linear-gradient(120deg,#ffffff,#f4f8ff);
  border:1px solid #d7e4ff;border-left:4px solid #4c7dff;border-radius:10px;
  padding:.6rem .75rem;
  box-shadow:0 3px 12px rgba(60,96,180,.08);
}
.activity-hero-cover{width:100%;max-height:360px;object-fit:cover;border:1px solid var(--border);border-radius:10px;}
.activity-detail-content{font-size:0.95rem;color:var(--text-sub);line-height:1.95;}
.activity-detail-content.card-like{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r-lg);padding:1rem;}
.activity-detail-content p { margin-bottom: 0.75rem; }
.activity-media-sec{margin-top:1.05rem;}
.activity-video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.8rem;}
.activity-video-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r-lg);padding:.65rem;}
.activity-video-card video{width:100%;border-radius:8px;display:block;background:#000;}

.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.photo-gallery-item{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r-lg);padding:.45rem;}
.photo-gallery-item img {
  width: 100%; height: 152px; object-fit: cover;
  border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
}
.photo-gallery-item img:hover { opacity: 0.9; transform: scale(1.02); box-shadow: var(--shadow-md); }
.activity-media-caption { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.35rem; line-height:1.55; }
.lightbox { position: fixed; inset: 0; background: rgba(10,30,61,0.92); z-index: 999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(12px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--r-lg); box-shadow: var(--shadow-xl); }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 1.8rem; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.2rem; cursor: pointer; opacity: 0.55; padding: 1rem; user-select: none; transition: opacity 0.2s; }
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 0.25rem; }
.lightbox-next { right: 0.25rem; }

/* ── BLOG ────────────────────────────────────────────────── */
.blog-list { display: flex; flex-direction: column; }
.blog-item {
  display: flex; gap: 1.2rem; padding: 1rem 0;
  border-bottom: 1px solid var(--border-lt); align-items: flex-start;
  transition: background 0.15s;
}
.blog-item:last-child { border-bottom: none; }
.blog-item:hover { background: rgba(239,246,255,0.25); }
.blog-item-cover {
  width: 108px; height: 72px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-alt); overflow: hidden;
}
.blog-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-item-title { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.22rem; line-height: 1.38; }
.blog-item-title a { color: var(--text); transition: color 0.15s; }
.blog-item-title a:hover { color: var(--accent-dk); text-decoration: none; }
.blog-item-meta { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 0.25rem; font-family: var(--mono); display: flex; align-items: center; gap: 0.28rem; flex-wrap: wrap; }
.blog-item-meta .blog-tag { font-size: 0.7rem; padding: 0.04rem 0.36rem; border-radius: 999px; }
.blog-item-summary { font-size: 0.88rem; color: var(--text-sub); line-height: 1.55; }
.blog-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.35rem; }
.blog-tag {
  font-size: 0.75rem; background: var(--bg-alt);
  border: 1px solid var(--border); color: var(--text-dim);
  padding: 0.08rem 0.45rem; border-radius: 4px;
  transition: all 0.15s;
}
.blog-tag:hover { border-color: var(--accent-bdr); color: var(--accent-dk); }
.blog-detail-header { margin-bottom: 1.35rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.blog-detail-title { font-size: clamp(1.15rem, 3.5vw, 1.5rem); font-weight: 800; margin-bottom: 0.45rem; }
.blog-detail-meta { font-size: 0.85rem; color: var(--text-dim); font-family: var(--mono); }
.blog-detail-content { font-size: 0.95rem; color: var(--text-sub); line-height: 1.95; }
.blog-detail-content h2 { font-size: 1.15rem; color: var(--text); margin: 1.4rem 0 0.6rem; font-weight: 700; }
.blog-detail-content h3 { font-size: 1.02rem; color: var(--text); margin: 1.1rem 0 0.45rem; font-weight: 700; }
.blog-detail-content p  { margin-bottom: 0.8rem; }
.blog-detail-content pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r); padding: 0.9rem 1.2rem; overflow-x: auto; font-size: 0.85rem; margin-bottom: 0.8rem; }
.blog-detail-content code { font-family: var(--mono); background: var(--bg-alt); padding: 0.06em 0.35em; border-radius: 3px; font-size: 0.88em; }
.blog-detail-content pre code { background: none; padding: 0; }
.blog-detail-content img { max-width: 100%; border: 1px solid var(--border); border-radius: var(--r); margin: 0.6rem 0; }
.blog-detail-content blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--text-dim); margin: 0.85rem 0; }

/* ── PDF VIEWER ─────────────────────────────────────────── */
.pdf-viewer-container {
  width: 100%;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.pdf-viewer-container iframe {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  border: none;
}
.pdf-viewer-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.pdf-viewer-toolbar a {
  color: var(--accent-dk); font-weight: 600;
}

/* ── RESOURCES ───────────────────────────────────────────── */
.resource-tabs-wrap {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.resource-tab {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #f5f9ff, #eaf3ff);
  color: var(--text-sub);
  border-radius: 999px;
  font-size: .78rem;
  padding: .36rem .82rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
}
.resource-tab:hover { border-color: var(--accent-bdr); color: var(--accent-dk); }
.resource-tab.active {
  background: linear-gradient(135deg, #4a8cff, #2d6cdf);
  color: #fff;
  border-color: #2d6cdf;
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
}
.resource-panels-wrap { min-height: 180px; }
.resource-group { margin-bottom: 1.75rem; }
.resource-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(147,197,253,0.32);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 6px 18px rgba(59,130,246,0.06);
  transition: all 0.2s ease;
}
.resource-item:last-child { margin-bottom: 0; }
.resource-item:hover {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border-color: rgba(96,165,250,0.52);
  box-shadow: 0 10px 24px rgba(59,130,246,0.1);
  transform: translateY(-1px);
}
.resource-main {
  flex: 1;
  min-width: 0;
}
.resource-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
}
.resource-title {
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.resource-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.resource-author {
  color: #5b77a6;
  font-size: 0.75rem;
  font-family: var(--mono);
  margin-top: 0.3rem;
}
.resource-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 0.32rem;
  line-height: 1.7;
}
.resource-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .resource-item { flex-wrap: wrap; gap: .7rem; padding: 0.75rem 0.8rem; }
  .resource-actions { width: 100%; }
}

/* ── COURSES ─────────────────────────────────────────────── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-bdr);
}
.course-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.course-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem;
  margin-bottom: 1rem;
}
.course-card-title {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  line-height: 1.35;
}
.course-code-badge {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--accent-dk); background: var(--accent-bg);
  padding: 0.2rem 0.5rem; border-radius: 4px;
  border: 1px solid var(--accent-bdr);
  white-space: nowrap; flex-shrink: 0;
}
.course-info-list {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.course-info-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--text-sub);
}
.course-info-icon {
  width: 24px; text-align: center; flex-shrink: 0;
  font-size: 1rem;
}
.course-info-text { font-weight: 500; }
.course-card-desc {
  font-size: 0.9rem; color: var(--text-sub);
  line-height: 1.65; margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.course-card-footer { margin-top: auto; }
.course-resource-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.75rem;
  border-radius: var(--r);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s;
}
.course-resource-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(59,130,246,0.25);
}
.course-resource-btn.active:hover {
  background: linear-gradient(135deg, var(--accent-lt), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59,130,246,0.3);
}
.course-resource-btn.disabled {
  background: var(--bg-alt);
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: not-allowed;
  opacity: 0.8;
}
.btn-icon { font-size: 1.1em; }
@media (max-width: 520px) {
  .course-grid { grid-template-columns: 1fr; }
}

/* ── JOIN ────────────────────────────────────────────────── */
.join-section { margin-bottom: 1.75rem; }
.join-section h3 { font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.join-section p { font-size: 0.92rem; color: var(--text-sub); line-height: 1.85; }

/* ── NEWS DETAIL ─────────────────────────────────────────── */
.back-link {
  font-size: 0.88rem; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 1.15rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r);
  transition: all 0.15s;
}
.back-link:hover { color: var(--accent-dk); text-decoration: none; background: var(--accent-bg); }
.news-detail-header { margin-bottom: 1.35rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.news-detail-title { font-size: clamp(1.1rem, 3.2vw, 1.4rem); font-weight: 800; margin-bottom: 0.38rem; }
.news-detail-date  { font-size: 0.85rem; color: var(--text-dim); font-family: var(--mono); }
.news-detail-content { font-size: 0.95rem; color: var(--text-sub); line-height: 1.95; }
.news-detail-content p { margin-bottom: 0.75rem; }
.news-detail-content img { max-width: 100%; border: 1px solid var(--border); border-radius: var(--r); margin: 0.55rem 0; }
.news-detail-content strong { color: var(--text); }

/* ── FRIEND LINKS ────────────────────────────────────────── */
.friend-links-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.friend-links-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.friend-links-title::before {
  content: '🔗';
  font-size: 0.95rem;
}
.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.friend-link-item {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-sub);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 500;
}
.friend-link-item:hover {
  color: var(--accent-dk);
  border-color: var(--accent-bdr);
  background: var(--accent-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: linear-gradient(100deg, #f3f8ff 0%, #eaf2ff 55%, #e3eeff 100%);
  border-top: 1px solid rgba(120,170,245,0.35);
  padding: 0.6rem 0 0.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 88vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(96,165,250,0), rgba(96,165,250,0.8), rgba(96,165,250,0));
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.75rem;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.2rem;
}
.footer-copy  {
  font-size: 0.78rem;
  color: #40618f;
  width: 100%;
  text-align: center;
  letter-spacing:.02em;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.42rem;
  min-height: 2.14rem;
}
.footer-copy-main { white-space: nowrap; }
.footer-copy-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.42rem;
  white-space: nowrap;
}
.footer-record { display: inline-block; margin-top: 0; font-size: 0.72rem; color: #5b77a6; white-space: nowrap; }
.footer-record:hover { color: #1d4ed8; text-decoration: none; }
.footer-visitor {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.72rem;
  color: #5b77a6;
  white-space: nowrap;
}
.footer-visitor-prefix,
.footer-visitor-suffix {
  color: #6d83aa;
  letter-spacing: 0.02em;
}
.footer-visitor-number {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  color: #b42318;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(244, 63, 94, 0.14);
}
.footer-admin { font-size: 0.82rem; color: #ffffff; display: none !important; }
.footer-admin:hover { color: rgba(96,165,250,0.7); }

/* ── MEMBER DETAIL MODAL ─────────────────────────────────── */
.member-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.member-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.member-modal {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 0 0 1px var(--border);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.member-modal-overlay.active .member-modal {
  transform: translateY(0) scale(1);
}
.member-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: all 0.2s;
  z-index: 2;
}
.member-modal-close:hover {
  background: var(--accent-bg);
  color: var(--accent-dk);
}
.member-modal-header {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-lt);
  align-items: flex-start;
}
.member-modal-avatar {
  width: 88px;
  height: 108px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.member-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-modal-avatar-initials {
  width: 88px;
  height: 108px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--accent-lt);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.member-modal-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.member-modal-name-en {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.member-modal-role {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-dk);
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  padding: 0.1rem 0.58rem;
  border-radius: 4px;
  margin: 0.35rem 0 0;
  font-weight: 600;
}
.member-modal-email {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}
.member-modal-email a {
  color: var(--accent-dk);
}
.member-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.member-modal-section {
  margin-bottom: 1rem;
}
.member-modal-section:last-child {
  margin-bottom: 0;
}
.member-modal-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dk);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.member-modal-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.member-modal-section-content {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.8;
  text-align: justify;
}
.member-modal-co-advisor {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ── MODAL PUBLICATION LIST ──────────────────────────────── */
.modal-pub-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.modal-pub-item {
  padding: 0.65rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.modal-achievement-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
}
.modal-achievement-marker {
  flex-shrink: 0;
  width: 4px;
  align-self: stretch;
  min-height: 2.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
  opacity: 0.9;
}
.modal-achievement-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.modal-achievement-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.modal-achievement-year {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}
.modal-achievement-title {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.modal-achievement-tags {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}
.modal-publication-item {
  align-items: flex-start;
}
.modal-achievement-badge {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.08rem 0.34rem;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.modal-achievement-badge.primary,
.modal-pub-badge.primary {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.modal-achievement-badge.secondary,
.modal-pub-badge.secondary,
.modal-pub-badge.tag {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}
.modal-pub-item:hover {
  border-color: var(--accent-bdr);
  background: var(--accent-bg);
}
.modal-pub-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.2rem;
}
.modal-pub-authors {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
  line-height: 1.4;
}
.modal-pub-authors-compact {
  margin-bottom: 0;
}
.modal-pub-venue {
  font-size: 0.78rem;
  color: var(--accent-dk);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.modal-pub-venue-compact {
  display: block;
  gap: 0;
}
.modal-publication-tags {
  margin-top: 0.06rem;
}
.modal-pub-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.04rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  vertical-align: middle;
}
.modal-pub-badge.highlight {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.modal-pub-badge.top {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.modal-pub-badge.tag,
.modal-pub-badge.primary,
.modal-pub-badge.secondary,
.modal-pub-badge.top {
  font-family: var(--mono);
  white-space: nowrap;
}
.modal-pub-links {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
}
.modal-pub-link {
  font-size: 0.72rem;
  color: var(--accent-dk);
  border: 1px solid var(--accent-bdr);
  padding: 0.08rem 0.45rem;
  border-radius: 3px;
  background: var(--accent-bg);
  text-decoration: none !important;
  transition: all 0.2s;
  font-weight: 500;
}
.modal-pub-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none !important;
}
.modal-pub-more {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.45rem;
  text-align: right;
}
.modal-pub-more a {
  color: var(--accent-dk);
  font-weight: 600;
}
.modal-pub-more a:hover {
  text-decoration: underline;
}

/* Student achievements label */
.student-achievements-label {
  font-weight: 600;
  color: var(--accent-dk);
}

/* Make member cards clickable */
.mentor-card.clickable,
.student-card.clickable {
  cursor: pointer;
}
.mentor-card.clickable:hover {
  background: rgba(239,246,255,0.5);
}
.student-card.clickable:hover {
  background: var(--accent-bg);
  border-color: var(--accent-bdr);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.12);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .page-wrap { grid-template-columns: 1fr; }
  .main-col { padding: 1.5rem 0; border-right: none; border-bottom: 1px solid var(--border); }
  .side-col { padding: 1.5rem 0; }
  .research-layout { grid-template-columns: 1fr; }
  .carousel-container { max-height: 360px; }
}
@media (max-width: 980px) {
  .nav-menu-btn { display: flex; }
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: max-content;
    min-width: 8.6rem;
    max-width: min(72vw, 14rem);
    background: linear-gradient(180deg, #f4f9ff 0%, #e7f1ff 100%);
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 0.35rem;
    border: 1px solid rgba(120,170,245,0.35);
    border-radius: 10px;
    z-index: 100;
    box-shadow: 0 16px 30px rgba(64,113,192,0.2);
    overflow-y: auto;
    max-height: 80vh;
  }
  .nav-inner.nav-open .nav-links,
  .nav-links.open { display: flex; }
  .nav-link {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(120,170,245,0.22);
    border-bottom-width: 1px !important;
    font-size: 0.92rem;
    min-height: 0;
  }
  .nav-link.active {
    border-left: 3px solid var(--accent);
  }
  .nav-link.active::after {
    display: none;
  }
  .footer-copy {
    flex-direction: column;
    gap: 0.05rem;
    min-height: auto;
  }
  .footer-copy-meta {
    flex-wrap: wrap;
    row-gap: 0.08rem;
  }
}
@media (max-width: 768px) {
  .mentor-grid-2col { grid-template-columns: 1fr; }
  .nav-inner { flex-wrap: wrap; }
  .nav-logo-wrap {
    display: none;
  }
  .hero-banner .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.9rem;
    row-gap: 0.5rem;
    align-items: start;
  }
  .hero-banner { padding: 2rem 0 1.75rem; }
  .hero-logo-box { grid-column: 1; grid-row: 1; }
  .hero-main-text { display: contents; }
  .hero-title-stack { grid-column: 2; grid-row: 1; min-width: 0; }
  .hero-main-text .hero-lab-name { margin-bottom: 0.08rem; }
  .hero-main-text .hero-lab-en { margin-bottom: 0; }
  .hero-main-text .hero-copy-card {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.2rem;
    padding: 0.82rem 0.9rem;
  }
  .hero-main-text .hero-intro {
    font-size: 0.84rem;
    line-height: 1.72;
  }
  .hero-stats { gap: 1.2rem; }
  .hero-logo-box { width: 64px; height: 64px; font-size: 2rem; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .pub-item { flex-direction: column; }
  .pub-thumb { width: 100%; height: 128px; }
  .student-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
  .page-header-premium { padding: 1.75rem 0 1.5rem; }
  .carousel-container { max-height: 280px; }
  /* Adjust body text and list items for tablet */
  .news-item { font-size: 0.9rem; }
  .pub-item { font-size: 0.88rem; }
  .blog-item-summary { font-size: 0.85rem; }
  .contact-list { font-size: 0.85rem; }
  .container { padding: 0 1.25rem; }
  .page-wrap { padding: 0 1.25rem; }
  .mentor-card { gap: 1rem; }
  .mentor-avatar, .mentor-avatar-initials { width: 90px; height: 117px; }
  .mentor-bio { font-size: 0.88rem; }
  .home-top-brandbar-inner {
    min-height: 84px;
    padding-top: 0.74rem;
    padding-bottom: 0.74rem;
  }
  .home-brand-hero {
    gap: 0.72rem;
    align-items: flex-start;
  }
  .home-brand-hero .hero-lab-name {
    font-size: clamp(1.04rem, 3.65vw, 1.32rem);
    line-height: 1.14;
  }
  .home-brand-hero .hero-lab-en {
    font-size: clamp(0.68rem, 1.95vw, 0.79rem);
    line-height: 1.25;
  }
  .home-page .hero-banner-home {
    padding: 1rem 0 1.2rem;
  }
  .home-page .hero-banner-home .hero-copy-card {
    padding: 0.92rem 0.95rem 0.96rem;
  }
  .hero-copy-card-title-row {
    gap: 0.6rem;
    margin-bottom: 0.42rem;
    padding-bottom: 0.54rem;
  }
  .hero-copy-card-title {
    font-size: 1rem;
  }
  .hero-copy-card-subtitle {
    font-size: 0.72rem;
  }
}
@media (max-width: 520px) {
  .mentor-grid-2col { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .student-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); width: 100%; box-sizing: border-box; }
  .carousel-container { max-height: 220px; }
  /* Tighter spacing on small phones */
  .container { padding: 0 1rem; }
  .page-wrap { padding: 0 1rem; }
  .hero-banner { padding: 1.5rem 0 1.25rem; }
  .hero-logo-box { width: 56px; height: 56px; font-size: 1.7rem; }
  .hero-main-text .hero-lab-name { font-size: clamp(1rem, 4.6vw, 1.2rem); line-height: 1.18; }
  .hero-main-text .hero-lab-en { font-size: clamp(0.66rem, 2.6vw, 0.76rem); line-height: 1.25; }
  .hero-main-text .hero-intro { font-size: 0.76rem; line-height: 1.5; margin-top: 0.12rem; }
  .hero-copy-card {
    padding: 0.84rem 0.88rem 0.9rem;
    border-radius: 16px;
  }
  .hero-copy-card-head {
    margin-bottom: 0.38rem;
  }
  .hero-copy-card-kicker {
    min-height: 1.58rem;
    padding: 0.22rem 0.52rem;
    font-size: 0.64rem;
  }
  .hero-copy-card-mark {
    width: 44px;
    height: 12px;
  }
  .hero-copy-card-title-row {
    align-items: baseline;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.45rem;
  }
  .hero-copy-card-title {
    font-size: 0.96rem;
  }
  .hero-copy-card-subtitle {
    font-size: 0.68rem;
    white-space: nowrap;
    text-align: right;
  }
  .hero-intro {
    font-size: 0.8rem;
    line-height: 1.72;
  }
  .news-item { gap: 0.38rem; padding: 0.55rem 0.35rem; font-size: 0.88rem; }
  .news-date { font-size: 0.76rem; }
  .news-meta { min-width: auto; }
  .home-top-brandbar-inner {
    min-height: 76px;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
  }
  .home-brand-hero {
    gap: 0.64rem;
  }
  .home-brand-hero .hero-lab-name {
    font-size: clamp(0.98rem, 4.35vw, 1.18rem);
    line-height: 1.14;
  }
  .home-brand-hero .hero-lab-en {
    font-size: clamp(0.65rem, 2.35vw, 0.75rem);
    line-height: 1.25;
  }
  .home-page .hero-banner-home {
    padding: 0.92rem 0 1.05rem;
  }
  .home-brand-hero .hero-title-stack .hero-lab-name {
    font-size: clamp(1rem, 4.6vw, 1.22rem);
    line-height: 1.18;
  }
  .home-brand-hero .hero-title-stack .hero-lab-en {
    font-size: clamp(0.66rem, 2.6vw, 0.78rem);
    line-height: 1.25;
  }
  .blog-item { gap: 0.85rem; }
  .blog-item-cover { width: 80px; height: 56px; }
  .blog-item-title { font-size: 0.92rem; }
  .mentor-card { flex-direction: row; gap: 0.8rem; padding: 1rem 0; align-items: flex-start; }
  .mentor-avatar, .mentor-avatar-initials { width: 80px; height: 104px; flex-shrink: 0; }
  .student-card { padding: 0.65rem 0.65rem; }
  .student-avatar, .student-avatar-initials { width: 75px; height: 97px; min-width: 75px; min-height: 97px; }
  .student-card-top { min-height: 97px; margin-bottom: 0.4rem; }
  .student-name { font-size: 0.9rem; }
  .alumni-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); width: 100%; box-sizing: border-box; }
  .alumni-card { padding: 0.65rem 0.65rem; }
  .alumni-card-avatar { width: 75px; height: 97px; min-width: 75px; min-height: 97px; }
  .alumni-card-top { min-height: 97px; margin-bottom: 0.4rem; }
  .alumni-name { font-size: 0.9rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 375px) {
  .mentor-grid-2col { grid-template-columns: 1fr; }
  .student-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0.85rem; }
  .nav-logo-full { font-size: 0.62rem; }
  .nav-logo-abbr { font-size: 0.95rem; }
}

/* ── STATS BAR (between carousel and news) ───────────────── */
.stats-bar {
  background: linear-gradient(110deg, rgba(245,250,255,0.95) 0%, rgba(234,243,255,0.92) 100%);
  padding: 1rem 0 0.9rem;
  border: 1px solid rgba(147,197,253,0.42);
  border-left: 0;
  border-right: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 8px 18px rgba(59,130,246,0.08);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 32%, rgba(147,197,253,0.25), transparent 28%), radial-gradient(circle at 86% 70%, rgba(96,165,250,0.22), transparent 34%);
  pointer-events: none;
}
.stats-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.75rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(0.65rem, 1.5vw, 1rem);
}
.stats-bar .hero-stat-item { text-align: center; }
.stats-bar .hero-stat-item {
  min-width: 0;
  padding: .35rem .7rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(147,197,253,0.35);
  box-shadow: 0 3px 10px rgba(59,130,246,0.08);
}
.stats-bar .hero-stat-num {
  font-family: var(--mono); font-size: clamp(1.3rem, 3.5vw, 1.8rem); font-weight: 700;
  background: linear-gradient(135deg, var(--accent-dk), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stats-bar .hero-stat-num::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  margin: .32rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,0), rgba(59,130,246,0.8), rgba(59,130,246,0));
}
.stats-bar .hero-stat-label {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem); color: var(--text-dim);
  margin-top: 0.25rem; letter-spacing: 0.06em;
}
@keyframes navSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ── HOME LAYOUT (narrower news + sidebar) ───────────────── */
.home-layout {
  grid-template-columns: 1fr 380px;
  align-items: stretch;
}
/* Reduce bottom padding for home layout columns to minimize gap */
.home-layout .main-col { padding-bottom: 0.5rem; }
.home-layout .side-col { padding-bottom: 0.5rem; display: flex; flex-direction: column; }
.home-layout .home-join-widget { margin-top: auto; }

@media (max-width: 1100px) {
  .home-layout { grid-template-columns: 1fr 320px; }
  .main-col { padding-right: 1.4rem; }
  .side-col { padding-left: 1.25rem; }
}

@media (max-width: 1024px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-layout .side-col { display: block; padding-left: 0; }
  .home-layout .home-join-widget { margin-top: 1rem; }
}

/* ── HOME RESEARCH SECTION (full-width with images) ──────── */
.home-research-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 0.5rem 0 2rem;
  border-top: none;
}
.home-research-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.home-research-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text);
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
}
.home-research-card:hover {
  border-color: var(--accent-bdr);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  text-decoration: none !important;
}
.home-research-card-img {
  width: 100%; height: 160px; overflow: hidden;
  background: var(--bg-alt);
}
.home-research-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-research-card:hover .home-research-card-img img { transform: scale(1.06); }
.home-research-card-body {
  padding: 0.95rem 1.1rem;
  flex: 1;
}
.home-research-card-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  line-height: 1.35; margin-bottom: 0.35rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.home-research-card:hover .home-research-card-title { color: var(--accent-dk); }
.home-research-card-icon { font-size: 1.1rem; flex-shrink: 0; }
.home-research-card-desc {
  font-size: 0.85rem; color: var(--text-sub);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .home-research-expanded { grid-template-columns: 1fr 1fr; }
  .home-research-card-img { height: 120px; }
}
@media (max-width: 520px) {
  .home-research-expanded { grid-template-columns: 1fr; }
}

/* Legacy compat (unused but keep for safety) */
.home-research-grid { display: none; }

/* ── JOIN STRIP ──────────────────────────────────────────── */
.join-strip { display: none; /* moved to sidebar widget */
  padding: 0;
  margin: 0;
}
.join-strip .join-box {
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin: 0;
}

/* ── INDUSTRY NEWS (sidebar) ─────────────────────────────── */
.industry-news-list {
  display: flex; flex-direction: column;
}
.industry-news-item {
  display: flex; gap: 0.5rem; align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-lt);
  text-decoration: none !important;
  transition: background 0.15s;
  font-size: 0.85rem;
}
.industry-news-item:last-child { border-bottom: none; }
.industry-news-item:hover { background: rgba(239,246,255,0.4); }
.industry-news-date {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--text-dim); white-space: nowrap; flex-shrink: 0;
}
.industry-news-title {
  color: #1f2937; flex: 1; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.industry-news-item:nth-child(1) .industry-news-title {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.industry-news-item:nth-child(2) .industry-news-title {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.industry-news-item:nth-child(3) .industry-news-title {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 55%, #1f2937 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.industry-news-item:hover .industry-news-title { color: var(--accent-dk); }

/* ── SHOWCASE (Smooth Continuous Marquee) ────────────────── */
.showcase-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 1.5rem 0 2rem;
  border-top: none;
}
.showcase-marquee-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}
.showcase-marquee {
  display: flex;
  gap: var(--showcase-sequence-gap, 1rem);
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.showcase-marquee-group {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--marquee-distance, 50%))); }
}
.showcase-marquee-card {
  flex-shrink: 0;
  width: 240px;
  text-decoration: none !important;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.showcase-marquee-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  text-decoration: none !important;
  border-color: var(--accent-bdr);
}
.showcase-marquee-img {
  width: 100%; height: 140px; overflow: hidden;
  background: var(--bg-alt);
}
.showcase-marquee-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.showcase-marquee-card:hover .showcase-marquee-img img { transform: scale(1.06); }
.showcase-marquee-title {
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.showcase-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--text-dim);
  background: linear-gradient(135deg, var(--bg-alt), #d4dce8);
}
@media (max-width: 768px) {
  .nav::before, .nav::after { display: none; }
  .stats-bar { padding: 0.8rem 0 0.75rem; }
  .stats-bar-inner { gap: 0.7rem; padding: 0 1rem; }
  .stats-bar .hero-stat-item { min-width: 0; }
  .showcase-marquee-card { width: 200px; }
  .showcase-marquee-img { height: 110px; }
}
@media (max-width: 520px) {
  .stats-bar-inner { gap: 0.55rem; }
  .stats-bar .hero-stat-item { min-width: 0; }
  .showcase-marquee-card { width: 180px; }
  .showcase-marquee-img { height: 100px; }
}

/* ── PARTNERS ────────────────────────────────────────────── */
.partners-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(246,250,255,0.96) 100%);
  padding: 0.65rem 0 1.15rem;
  border-top: 1px solid rgba(147,197,253,0.18);
}
.partners-rows {
  display: block;
}
.partners-row-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.partners-row-track {
  display: flex;
  gap: var(--partners-sequence-gap, 1.4rem);
  width: max-content;
  animation: partnerMarqueeScroll 24s linear infinite;
}
.partners-row-group {
  display: flex;
  align-items: stretch;
  gap: 0.95rem;
  flex-shrink: 0;
}
@keyframes partnerMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--partners-marquee-distance, 50%))); }
}
.partner-logo-column {
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.partner-logo-item {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
}
.partner-logo-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.98), rgba(242,247,255,0.92));
  border: 1px solid rgba(147,197,253,0.22);
  box-shadow: 0 6px 18px rgba(59,130,246,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.partner-logo-item:hover .partner-logo-circle {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,0.32);
  box-shadow: 0 9px 20px rgba(59,130,246,0.08), inset 0 1px 0 rgba(255,255,255,0.92);
}
.partner-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 768px) {
  .partners-section { padding: 0.55rem 0 1rem; }
  .partners-row-group { gap: 0.75rem; }
  .partner-logo-column { width: 74px; gap: 0.45rem; }
  .partner-logo-item { width: 74px; height: 74px; }
  .partner-logo-circle { width: 66px; height: 66px; }
}
@media (max-width: 520px) {
  .partners-section { padding: 0.45rem 0 0.85rem; }
  .partners-row-group { gap: 0.6rem; }
  .partner-logo-column { width: 62px; gap: 0.35rem; }
  .partner-logo-item { width: 62px; height: 62px; }
  .partner-logo-circle { width: 56px; height: 56px; }
}



/* ── TEACHER GRID (2 per row with hover) ─────────────────── */
.mentor-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mentor-card-v2 {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.mentor-card-v2 .mentor-card-top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.mentor-card-v2 .mentor-avatar,
.mentor-card-v2 .mentor-avatar-initials {
  width: 88px;
  height: 112px;
  border-radius: var(--r);
}
.mentor-card-v2 .mentor-info {
  flex: 1;
  min-width: 0;
}
.mentor-card-v2 .mentor-name {
  display: block;
  margin-bottom: 0.1rem;
}
.mentor-card-v2 .mentor-name-en {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.mentor-card-v2 .mentor-role {
  margin: 0.28rem 0 0.45rem;
}
.mentor-card-v2 .mentor-bio {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-sub);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mentor-card-v2 .mentor-research {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.52;
  border-top: 1px solid var(--border-lt);
  padding-top: 0.48rem;
  min-height: 1.25rem; /* 占位高度 */
  margin-top: auto; /* 让底部的 research 和 email 始终沉底对齐 */
}
.mentor-card-v2 .mentor-email {
  margin-top: 0;
}
.mentor-card-v2 .mentor-email a,
.mentor-card-v2 .mentor-email span {
  font-size: 0.78rem;
  color: var(--accent-dk);
  word-break: break-all;
}
.mentor-card-v2:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent-bdr);
}
@media (max-width: 768px) {
  .mentor-grid-2col { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .mentor-card-v2 { padding: 0.9rem; gap: 0.62rem; }
  .mentor-card-v2 .mentor-card-top { gap: 0.72rem; }
  .mentor-card-v2 .mentor-avatar, .mentor-card-v2 .mentor-avatar-initials { width: 94px; height: 118px; }
  .mentor-card-v2 .mentor-bio { font-size: 0.82rem; line-height: 1.48; }
  .mentor-card-v2 .mentor-research { font-size: 0.78rem; padding-top: 0.4rem; }
}

/* ── STUDENT CO-ADVISOR ──────────────────────────────────── */
.student-co-advisor {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* ── BLOG FILTER BAR ─────────────────────────────────────── */
.blog-filter-bar {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 1.15rem; max-width: 100%; box-sizing: border-box;
}
/* ── SEARCH MODAL ────────────────────────────────────────── */
.nav-search-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(46,86,146,0.86); font-size: 1.05rem;
  padding: 0 0.65rem;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
  margin-left: auto;
}
.nav-search-btn:hover { color: #1d4ed8; }
@media (max-width: 768px) {
  .nav-search-btn { padding: 0 0.5rem; font-size: 1.1rem; order: -1; margin-left: 0; margin-right: 0.25rem; }
}

.search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,30,61,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.search-overlay.open { display: flex; opacity: 1; }
.search-overlay.closing { opacity: 0; }

.search-modal {
  width: 90%; max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-overlay.open .search-modal { transform: translateY(0); }

.search-input-wrap {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.search-input-icon { font-size: 1.15rem; color: var(--text-dim); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none;
  font-size: 1rem; font-family: var(--font);
  color: var(--text); background: transparent;
  padding: 0.25rem 0;
}
.search-input::placeholder { color: var(--text-dim); }
.search-close-btn {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.15rem 0.5rem;
  font-size: 0.75rem; color: var(--text-dim); cursor: pointer;
  font-family: var(--mono); transition: all 0.15s;
}
.search-close-btn:hover { background: var(--border); color: var(--text); }

.search-results {
  max-height: 55vh; overflow-y: auto;
  padding: 0.5rem 0;
}
.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.search-result-group {
  padding: 0.35rem 1.25rem 0.15rem;
}
.search-result-group-title {
  font-size: 0.72rem; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.search-result-item {
  display: block; padding: 0.55rem 1.25rem;
  text-decoration: none !important;
  border-radius: var(--r-sm);
  transition: background 0.15s;
  margin: 0 0.35rem;
}
.search-result-item:hover {
  background: var(--accent-bg);
  text-decoration: none !important;
}
.search-result-title {
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  line-height: 1.35; margin-bottom: 0.1rem;
}
.search-result-sub {
  font-size: 0.8rem; color: var(--text-dim); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.search-result-type {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  padding: 0.06rem 0.4rem; border-radius: 3px;
  margin-right: 0.4rem; vertical-align: middle;
}
.search-type-news { background: #dbeafe; color: #1e40af; }
.search-type-member { background: #d1fae5; color: #065f46; }
.search-type-innovation { background: #ede9fe; color: #5b21b6; }
.search-type-pub { background: #fce7f3; color: #9d174d; }
.search-type-blog { background: #e0e7ff; color: #3730a3; }
.search-type-research { background: #fef3c7; color: #92400e; }
.search-type-activity { background: #f3e8ff; color: #6b21a8; }
.search-type-resource { background: #dcfce7; color: #166534; }
.search-type-course { background: #ffe4e6; color: #9f1239; }

.search-empty {
  padding: 2rem 1.25rem; text-align: center;
  color: var(--text-dim); font-size: 0.9rem;
}
.search-hint {
  padding: 1rem 1.25rem; text-align: center;
  color: var(--text-dim); font-size: 0.85rem;
}
.search-hint kbd {
  display: inline-block; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0.1rem 0.4rem; font-family: var(--mono);
  font-size: 0.78rem; margin: 0 0.15rem;
}
.news-detail-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 2.2vw, 1.7rem);
  box-shadow: var(--shadow-xs);
}
.news-detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .55rem;
}
.news-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .58rem;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1e56d8;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.news-detail-lead {
  margin-top: .65rem;
  font-size: .9rem;
  color: var(--text-dim);
  background: linear-gradient(135deg, #f7fbff 0%, #eff6ff 100%);
  border: 1px solid #d9e7ff;
  border-radius: 10px;
  padding: .6rem .75rem;
}
.news-detail-source {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}
.news-detail-content {
  font-size: 0.98rem;
  line-height: 1.9;
}
.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3 {
  line-height: 1.38;
  margin: 1.25rem 0 .7rem;
}
.news-detail-content p {
  margin: .8rem 0;
}
.news-detail-content img,
.news-detail-content video,
.news-detail-content iframe {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 1.1rem auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-sm);
}
.news-detail-content iframe {
  aspect-ratio: 16 / 9;
  min-height: 240px;
}
.news-detail-content blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  padding: .7rem .95rem;
  color: var(--text-sub);
  margin: .9rem 0;
}
.news-detail-content ul,
.news-detail-content ol {
  margin: .7rem 0 .7rem 1.35rem;
}
.news-detail-content .nd-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .9rem;
}
.news-detail-content .nd-card {
  background: #f8fbff;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  padding: .7rem .8rem;
}
.news-detail-content .nd-card h4 {
  margin: 0 0 .35rem;
  font-size: .88rem;
  color: var(--text);
}
.news-detail-content figure {
  margin: 1rem auto;
}
.news-detail-content figcaption {
  text-align: center;
  margin-top: .35rem;
  color: var(--text-dim);
  font-size: .8rem;
}
.news-detail-content hr {
  border: 0;
  border-top: 1px dashed var(--border);
  margin: 1rem 0;
}
@media (max-width: 760px) {
  .news-detail-content .nd-grid {
    grid-template-columns: 1fr;
  }
}
/* Fix for member avatar display on mobile */
.mentor-avatar img, 
.student-avatar img,
.member-modal-avatar img {
  object-position: top center;
}

@media (max-width: 480px) {
  .mentor-card {
    gap: 1rem;
    padding: 1.25rem 0;
  }
  .mentor-avatar {
    width: 80px;
    height: 100px;
  }
  .mentor-avatar img { object-fit: cover; }
}
