﻿/* ============================================================
   卢知轩 Zhixuan Lu — Academic Homepage
   Design inspired by zqtian.xmu.edu.cn (clean, modern, bilingual)
   ============================================================ */

:root {
  --navy-900: #0b1f42;
  --navy-700: #123a6e;
  --teal-600: #0e7490;
  --teal-500: #0f9bb0;
  --cyan-400: #22b8cf;
  --sky-300:  #7dd3fc;
  --ink:      #1e293b;
  --muted:    #5b6b7f;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f4f8fb;
  --bg-dark:  #0d2247;
  --card-bg:  #ffffff;
  --radius:   14px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, .06), 0 4px 14px rgba(15, 30, 60, .05);
  --shadow-md: 0 6px 24px rgba(15, 30, 60, .10);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
               "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section { scroll-margin-top: 76px; }

/* Language toggling: only show the active language's content */
html[lang="zh-CN"] [data-en],
html[lang="en"]    [data-zh] { display: none !important; }

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

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--line);
  box-shadow: 0 1px 10px rgba(15,30,60,.06);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--teal-600));
  color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(14,116,144,.35);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 16px; color: var(--ink); }
.brand-name em { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.site-header.scrolled .brand-name strong { color: var(--ink); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: #eaf2fb; font-size: 14.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px; transition: background .2s, color .2s;
}
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.site-header.scrolled .site-nav a:hover { background: var(--bg-alt); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden;
}
.site-header.scrolled .lang-switch { border-color: var(--line); }
.lang-switch button {
  background: transparent; border: 0; color: #dbeafe; font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; cursor: pointer; transition: background .2s, color .2s; font-family: inherit;
}
.site-header.scrolled .lang-switch button { color: var(--muted); }
.lang-switch button.active { background: rgba(255,255,255,.18); color: #fff; }
.site-header.scrolled .lang-switch button.active { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 22px; height: 2px;
  background: currentColor; color: var(--ink); border-radius: 2px; transition: transform .25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg .rings { animation: ringPulse 7s ease-in-out infinite; transform-origin: 1180px 180px; }
@keyframes ringPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 140px 24px 96px; width: 100%; }
.hero-eyebrow {
  font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-300);
  margin: 0 0 18px; font-weight: 600;
}
.hero-name { font-size: clamp(40px, 6vw, 64px); font-weight: 800; margin: 0 0 6px; letter-spacing: .01em; }
.hero-name-en { display: block; font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; color: #bfdbfe; margin-top: 4px; letter-spacing: .03em; }
.hero-role { font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: #e0f2fe; margin: 10px 0 10px; }
.hero-tagline { font-size: 16px; color: #b6cdf0; max-width: 640px; margin: 0 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.hero-chips li {
  font-size: 13.5px; font-weight: 600; color: #d7ecff;
  background: rgba(125,211,252,.12); border: 1px solid rgba(125,211,252,.35);
  padding: 6px 14px; border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; padding: 12px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-light:hover { box-shadow: 0 10px 26px rgba(2,20,60,.35); }
.btn-ghost { color: #e0f2fe; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-dark); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.stats-inner {
  max-width: 1120px; margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 40px; font-weight: 800; color: var(--cyan-400); line-height: 1.1; }
.stat-num a { color: inherit; }
.stat-label { display: block; margin-top: 6px; font-size: 13.5px; color: #b6cdf0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #e2e8f0; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; color: var(--ink); margin: 0; }
.section-dark .section-head h2 { color: #fff; }
.section-head.light .eyebrow { color: var(--cyan-400); }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-500); margin: 0 0 10px;
}
.section-note { color: var(--muted); font-size: 14.5px; max-width: 760px; margin: -20px 0 34px; }
.badge-inline {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal-600);
  background: #e0f7fa; border: 1px solid #b2ebf2; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.profile-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 30px 28px; text-align: center; position: sticky; top: 88px;
}
.profile-avatar {
  width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--teal-600));
  color: #fff; font-size: 40px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(14,116,144,.35);
}
.profile-card h3 { font-size: 22px; font-weight: 800; margin: 0 0 2px; }
.profile-card h3 span { display: block; font-size: 15px; font-weight: 600; color: var(--muted); }
.profile-role { color: var(--teal-600); font-weight: 600; font-size: 14px; margin: 0 0 20px; }
.facts { text-align: left; border-top: 1px solid var(--line); padding-top: 16px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.facts dd a { color: var(--teal-600); font-weight: 600; }
.profile-links { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.profile-links a { font-size: 14px; font-weight: 600; }

.bio-block { font-size: 15.5px; color: #334155; }
.bio-lead { font-size: 17px; font-weight: 600; color: var(--ink); }
.bio-block p em { color: var(--teal-600); font-style: normal; font-weight: 600; }

.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 34px; }
.timeline-col h4 {
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-500);
  border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 14px;
}
.timeline-list li { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.tl-year { flex: none; min-width: 84px; font-weight: 700; color: var(--navy-700); font-variant-numeric: tabular-nums; }

/* ---------- Research cards ---------- */
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #e0f7fa; color: var(--teal-600); font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Publications ---------- */
.pub-group { margin-bottom: 26px; }
.pub-year {
  font-size: 15px; font-weight: 800; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
}
.pub-year::after { content: ""; height: 2px; width: 44px; background: var(--cyan-400); border-radius: 2px; }
.pub-items { display: flex; flex-direction: column; gap: 10px; counter-reset: pub; }
.pub-item {
  display: flex; gap: 16px; padding: 16px 18px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.pub-item:hover { border-color: #b6e3ea; box-shadow: var(--shadow-sm); }
.pub-idx {
  flex: none; width: 30px; height: 30px; border-radius: 8px; margin-top: 2px;
  background: var(--bg-alt); color: var(--teal-600);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.pub-body { min-width: 0; }
.pub-authors { font-size: 13.5px; color: var(--muted); margin: 0 0 3px; }
.pub-authors strong { color: var(--ink); }
.pub-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.pub-meta { font-size: 13.5px; color: var(--muted); margin: 0; }
.pub-meta em { font-style: normal; font-weight: 600; color: var(--teal-600); }
.pub-doi { font-size: 13px; font-weight: 600; white-space: nowrap; }
.pub-badge {
  display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; border: 1px solid transparent;
}
.pub-badge.first { color: #0e7490; background: #e0f7fa; border-color: #b2ebf2; }
.pub-badge.corresp { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
.pub-badge.cofirst { color: #7c3aed; background: #f3e8ff; border-color: #ddd6fe; }
.pub-badge.firstcorr { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.pub-badge.coauthor { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; }

/* ---------- Projects ---------- */
.project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-list li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.project-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.proj-num {
  flex: none; font-size: 15px; font-weight: 800; color: var(--cyan-400);
  background: var(--bg-alt); width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
}
.project-list h3 { font-size: 16px; font-weight: 700; margin: 0 0 3px; }
.proj-code { font-size: 13px; color: var(--muted); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; margin: 0; }

/* ---------- Teaching ---------- */
.course-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course {
  display: flex; gap: 16px; align-items: center;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 22px; box-shadow: var(--shadow-sm);
}
.course-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--teal-600)); color: #fff;
  display: grid; place-items: center; font-size: 19px; font-weight: 700;
}
.course h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 2px; }
.course p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-bottom: 30px; }
.contact-item { border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 16px; }
.contact-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-400); margin-bottom: 6px; }
.contact-value { display: block; font-size: 16px; font-weight: 500; color: #e2e8f0; }
.contact-value a { color: #7dd3fc; font-weight: 600; }
.contact-links { display: flex; gap: 18px; flex-wrap: wrap; }
.contact-note { font-size: 14.5px; color: #9fb3d1; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #081731; color: #7d93b8; font-size: 13px; padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-meta { opacity: .8; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .research-grid, .project-list, .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .timeline, .course-list { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,.98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    flex-direction: column; padding: 10px 16px 18px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { color: var(--ink) !important; padding: 11px 14px; }
  .nav-toggle { display: block; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 120px 24px 72px; }
  .hero-name-en { font-size: 20px; }
  .hero-chips li { font-size: 12.5px; }
  .stat-num { font-size: 32px; }
}

/* ---------- Project title (added) ---------- */
.proj-title { font-size: 13.5px; color: var(--muted); margin: 0 0 3px; line-height: 1.5; }

/* ---------- Profile avatar photo ---------- */
.profile-avatar { overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; max-width: 920px; }
.news-item { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-date { flex: none; min-width: 96px; font-weight: 800; color: var(--navy-700); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-body h3 { font-size: 16px; font-weight: 700; margin: 0 0 3px; }
.news-body p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6,16,36,.93); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #dbeafe; font-size: 14.5px; padding: 0 24px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; width: 46px; height: 46px; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 4px; }
}

/* ---------- Nav dropdown (Members) ---------- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; }
.nav-item > a::after { content: ""; width: 0; height: 0; margin-left: 7px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .65; transition: transform .2s; }
.has-dropdown:hover > a::after { transform: translateY(1px); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; display: none; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 14px; color: var(--ink) !important; font-size: 14px; font-weight: 500; border-radius: 8px; }
.dropdown a:hover { background: var(--bg-alt); text-decoration: none; }

/* ---------- Students ---------- */
.students-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.student-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.student-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.student-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 3px solid #cfeef3; background: var(--bg-alt); }
.student-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.student-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.student-card p { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 720px) {
  .nav-item > a::after { display: none; }
  .dropdown { position: static; display: block; min-width: 0; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; padding: 0 0 0 12px; margin: 0 0 4px 14px; }
  .dropdown a { padding: 9px 10px; }
  .students-grid { grid-template-columns: 1fr; }
}


/* ---------- Publication badge legend ---------- */
.badge-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -8px 0 32px; font-size: 12.5px; color: var(--muted); }
.badge-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.badge-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.badge-legend .d-first { background: #0e7490; }
.badge-legend .d-corresp { background: #1d4ed8; }
.badge-legend .d-cofirst { background: #7c3aed; }
.badge-legend .d-firstcorr { background: #15803d; }
.badge-legend .d-coauthor { background: #94a3b8; }

/* Home section now hosts the profile (moved from About) */
#home { padding-top: 128px; }

/* ===== 2026 redesign: persistent navy header + alternating section backgrounds ===== */
.site-header { background: #0d2247; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 1px 10px rgba(15,30,60,.10); }
.brand-name strong { color: #fff; }
.brand-name em { color: #9fb3d1; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { color: #fff; }
.section-alt { background: #eef4f9; }
.contact-label { color: var(--teal-600); }
.contact-value { color: var(--ink); }
.contact-value a { color: var(--navy-700); }
.contact-note { color: var(--muted); }

/* ===== 2026-08: collapse + filter + more buttons ===== */
.news-list.collapsed .news-item:nth-child(n+11) { display: none; }

.gallery-grid.collapsed .gallery-item:nth-child(n+10) { display: none; }
@media (max-width: 960px) {
  .gallery-grid.collapsed .gallery-item:nth-child(n+7) { display: none; }
}
@media (max-width: 640px) {
  .gallery-grid.collapsed .gallery-item:nth-child(n+4) { display: none; }
}

.more-wrap { text-align: center; margin-top: 10px; }
.btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-700);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn-more:hover { background: var(--bg-alt); border-color: #cbd5e1; }

.pub-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 2px 0 24px;
}
.pub-filter-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer; user-select: none;
  transition: border-color .2s, background .2s;
}
.pub-filter-item:hover { border-color: #cbd5e1; }
.pub-filter-item input[type="checkbox"] {
  width: 15px; height: 15px; margin: 0; cursor: pointer;
  accent-color: var(--navy-700);
}

/* ===== Clickable avatar & member photos ===== */
.profile-avatar img, .student-photo img { cursor: zoom-in; }

/* ===== Visit counter ===== */
.visit-counter {
  font-size: 13px;
  color: #9fb3d1;
}
.visit-counter strong {
  color: #7dd3fc;
  font-weight: 700;
}
