:root{
  --blue:#0c4f86;
  --blue-dark:#083a64;
  --gray:#f3f4f6;
  --text:#111827;
  --muted:#6b7280;
  --max:1100px;

  --pill:#0b3f6f;
  --pill-2:#0c4f86;
  --pill-border:rgba(255,255,255,.22);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;color:var(--text);background:#fff}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{max-width:var(--max);margin:0 auto;padding:0 18px}

/* ===== Top header (logo + title) ===== */
.topbar{
  padding:18px 0 10px;
  border-bottom:1px solid #e5e7eb;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;align-items:center;gap:12px;
}
.brand img{
  width:420px;height:50px;object-fit:contain;
}
.brand .brand-text{line-height:1.1}
.brand .brand-text .cn{font-weight:700;color:#b91c1c;font-size:18px}
.brand .brand-text .en{font-weight:700;color:#b91c1c;font-size:12px;letter-spacing:.3px}
.lab-title{
  font-size:44px;
  font-weight:800;
  color:#9ca3af;
  letter-spacing:.6px;
  white-space:nowrap;
}

/* ===== Nav ===== */
.navwrap{background:var(--blue)}
.navbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding-right:84px; /* space for lang toggle on the far right */
}

/* blue strip + persistent white active tab + moving white hover block */
.nav{
  position:relative;
  display:flex;
  align-items:stretch;
  justify-content:center; /* center the nav items */
  gap:0;
  flex:1;
  flex-wrap:wrap;
  padding:0;
  margin:0;

  overflow:hidden;
}

/* moving white highlight (hover) */
.nav-indicator{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:0;
  background:#fff;
  border-radius:0;          /* no rounded corner */
  box-shadow:none;          /* match flat mock */
  transition:transform .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1), opacity .15s ease;
  opacity:0;
  z-index:1;
}

/* each item */
.nav a{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 26px;
  color:#fff;
  font-weight:800;
  font-size:18px;
  line-height:1;
  border-radius:0;          /* no rounded corner */
  background:transparent;
  white-space:nowrap;
}

/* persistent active: stays white even when hovering other tabs */
.nav a.active{
  background:#fff;
  color:var(--blue) !important;
  box-shadow:none;
}

/* ensure hover text visible on white hover block */
.nav a:hover:not(.active),
.nav a:focus-visible:not(.active){
  color:var(--blue) !important;
}

/* hover/focus text turns blue since hover block is white *//* ===== Language toggle button ===== */
/* Float outside the blue nav bar, at the top-right corner */
.lang-toggle{
  position:fixed;
  right:18px;
  top:14px;
  z-index:9999;
  display:flex;
  align-items:center;
}

.lang-btn{
  position:relative;
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
}

.lang-btn img{
  width:42px;
  height:auto;
  display:block;
  transition:transform .15s ease, filter .15s ease;
}

.lang-btn:hover img{
  transform:scale(1.06);
  filter:drop-shadow(0 3px 10px rgba(0,0,0,.28));
}

/* Tooltip */
.lang-tip{
  position:absolute;
  right:0;
  top:44px;
  padding:6px 10px;
  border-radius:10px;
  background:rgba(17,24,39,.92);
  color:#fff;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
}

.lang-btn:hover .lang-tip{
  opacity:1;
  transform:translateY(0);
}

@media (max-width: 900px){
  .lang-toggle{
    right:12px;
    top:10px;
  }
}
/* ===== Page layout ===== */
-dot{
  width:10px;height:10px;border-radius:999px;background:#fff;opacity:.9
}
.lang-label{
  font-weight:800;
  letter-spacing:.2px;
  font-size:14px;
  white-space:nowrap;
}
.lang-sub{
  font-size:12px;
  opacity:.85;
  margin-left:-4px;
}

/* ===== Page layout ===== */
.main{min-height:70vh;padding:34px 0 60px}
.section-title{
  font-size:34px;
  font-weight:800;
  margin:0 0 24px;
}

/* ===== Home: 3 circles ===== */
.home-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:42px;
  align-items:start;
  margin-top:10px;
}
.home-card{
  text-align:center;
  display:block;
  transition:transform .18s ease;
}
.home-card h3{
  margin:0 0 18px;
  font-size:26px;
  font-weight:800;
  transition:transform .18s ease, color .18s ease;
}
.circle{
  width:320px;height:320px;
  border-radius:50%;
  margin:0 auto;
  overflow:hidden;
  background:var(--gray);
  border:0;
  box-shadow:0 2px 0 rgba(0,0,0,.04);
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.circle img{width:100%;height:100%;object-fit:cover}

.home-card:hover .circle{
  transform:scale(1.035);
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  filter:saturate(1.03) contrast(1.02);
}
.home-card:hover h3{
  transform:translateY(-2px);
  color:#0b3f6f;
}
.home-card .hint{
  margin-top:14px;
  color:var(--muted);
  font-size:14px;
}

/* ===== Publications ===== */
.breadcrumb{
  display:flex;align-items:center;gap:10px;
  color:#2563eb;font-weight:800;font-size:22px;margin:0 0 16px;
}
.breadcrumb .arrow{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;
  background:#e5e7eb;color:#2563eb;
}
.rule{height:1px;background:#e5e7eb;margin:10px 0 16px}

/* Year collapsible */
.pub-controls{
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0 16px;
}
.btn{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
  font-weight:800;
}
.btn:hover{background:#f9fafb}
.year-block{
  border:1px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;
  margin:12px 0;
  background:#fff;
}
.year-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  background:#f8fafc;
  font-weight:900;
}
.year-summary .left{
  display:flex;align-items:center;gap:10px;
}
.chev{
  width:26px;height:26px;border-radius:50%;
  background:#e5e7eb;display:inline-flex;align-items:center;justify-content:center;
  color:#111827;font-weight:900;
}
.year-block[open] .chev{transform:rotate(90deg)}
.year-summary .count{
  color:#6b7280;font-weight:800;font-size:13px;
}
.publist{margin:0;padding:10px 16px 14px;list-style:none}
.publist li{
  font-size:15px;
  line-height:1.6;
  margin:10px 0;
}
.publist b{font-weight:800}
.publist em{font-style:italic}

/* ===== Members ===== */
.members-title{
  font-size:34px;font-weight:900;color:#60a5fa;margin:0 0 18px;
}
.photo-frame{
  background:#fff;
  border:1px solid #e5e7eb;
  padding:18px;
  border-radius:14px;
}
.photo-frame img{width:100%;height:auto;border-radius:10px}

/* ===== Contact ===== */
.contact-block{
  font-size:18px;line-height:1.9;color:#111827;
  max-width:720px;
}
.contact-block .label{font-weight:900}

/* ===== Footer links ===== */
.footer-links{
  margin-top:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  color:#9ca3af;
  flex-wrap:wrap;
}
.footer-links .mini{
  display:flex;align-items:center;gap:10px;
  font-weight:900;
}
.footer-links img{width:200px;height:46px;object-fit:contain;opacity:.95}

/* ===== Responsive ===== */
@media (max-width: 1100px){
  .lab-title{font-size:36px}
  .circle{width:280px;height:280px}
}
@media (max-width: 900px){
  .topbar-inner{flex-direction:column;align-items:flex-start}
  .lab-title{font-size:34px}
  .home-grid{grid-template-columns:1fr;gap:28px}
  .circle{width:300px;height:300px}
  .nav a{font-size:16px;padding:12px 16px}
  .navbar{flex-direction:column;align-items:stretch}
  .lang-toggle{justify-content:flex-end;padding-bottom:10px}
}
.nav a:hover,
.nav a:focus-visible{ color:var(--blue) !important; outline:none; }

/* ===== CV PDF embed ===== */
.cv-pdf { margin-top: 2px; }

.cv-pdf-toolbar{
  display:flex;
  justify-content:flex-end;
  margin-bottom: 5px;
}

.cv-pdf-frame{
  width: 58%;
  height: 82vh;   /* 你可以改成 75vh/90vh 看视觉效果 */
  margin: 0px auto;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.cv-pdf-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
}
