
:root {
  --bg: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #202632;
  --muted: #687386;
  --line: rgba(40, 91, 154, 0.12);
  --accent: #2b5f9e;
  --accent-deep: #173e6c;
  --accent-soft: #edf4fc;
  --accent-soft-2: #f5f9ff;
  --shadow: 0 18px 50px rgba(29, 59, 99, 0.08);
  --shadow-soft: 0 8px 24px rgba(29, 59, 99, 0.07);
  --max-width: 1080px;
  --mouse-x: 50%;
  --mouse-y: 30%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, "Noto Sans", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  background:
    linear-gradient(rgba(43,95,158,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,95,158,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 38px 38px;
}

body.home-page {
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y),
      rgba(74, 137, 210, .13), transparent 27rem),
    linear-gradient(rgba(43,95,158,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,95,158,.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 38px 38px, 38px 38px, auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
a:hover { color: var(--accent-deep); }

#ambient-network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -3;
  opacity: .45;
}

.page-glow {
  position: fixed;
  width: 42rem;
  height: 42rem;
  left: -16rem;
  top: -18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,150,217,.12), rgba(93,150,217,0) 68%);
  pointer-events: none;
  z-index: -2;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 20px 0;
  background: linear-gradient(to bottom, rgba(247,249,252,.92), rgba(247,249,252,.60), transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 62px;
  padding: 8px 10px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 30px rgba(27,58,96,.07), inset 0 0 0 1px rgba(43,95,158,.055);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2b3a;
  font-weight: 720;
  letter-spacing: .005em;
  white-space: nowrap;
}

.brand:hover { transform: translateY(-1px); }

.brand-mark {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .07em;
  background: linear-gradient(145deg, #234f85, #4e83bd);
  box-shadow: 0 7px 16px rgba(39,86,139,.23);
}

.brand-text { font-size: 15px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 13px;
  background: rgba(242,246,251,.74);
}

.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 10px;
  color: #4d5867;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent-deep);
  background: rgba(255,255,255,.74);
}

.nav-links a.active {
  color: #173f70;
  font-weight: 680;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38,73,116,.09);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #447ab7;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

main.container { padding-top: 48px; padding-bottom: 40px; }

/* ---------- Homepage hero ---------- */
.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  gap: 58px;
  align-items: center;
  min-height: 350px;
  padding: 48px 50px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 26px;
  background:
    radial-gradient(circle at var(--hero-x, 78%) var(--hero-y, 25%),
      rgba(82,143,211,.16), transparent 18rem),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,250,255,.88));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(43,95,158,.045);
  backdrop-filter: blur(12px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 60%, rgba(255,255,255,.55) 76%, transparent 92%);
  transform: translateX(-120%);
  animation: hero-sheen 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-sheen {
  0%, 63%, 100% { transform: translateX(-120%); }
  76% { transform: translateX(120%); }
}

.hero-copy, .portrait-wrap { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(58,111,172,.13);
  border-radius: 999px;
  background: rgba(239,246,254,.72);
  color: #52647b;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .03em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d84bf;
  box-shadow: 0 0 0 4px rgba(77,132,191,.10);
}

.name {
  margin: 0 0 9px;
  font-size: clamp(36px, 5vw, 49px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #17283d;
}

.cn-name {
  margin-left: 8px;
  color: #627087;
  font-size: .58em;
  font-weight: 510;
  letter-spacing: .01em;
}

.role {
  margin: 0 0 6px;
  color: #274f7f;
  font-size: 19px;
  font-weight: 720;
}

.affiliation {
  margin: 0;
  color: #475364;
  line-height: 1.7;
}

.affiliation a {
  color: #344e6b;
  border-bottom: 1px solid rgba(43,95,158,.19);
}
.affiliation a:hover { border-bottom-color: rgba(43,95,158,.6); }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(43,95,158,.11);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: #415066;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(29,59,99,.035);
}

.contact-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(43,95,158,.22);
  background: #fff;
  box-shadow: 0 8px 18px rgba(29,59,99,.08);
}

.chip-icon {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: #35669e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.portrait-wrap {
  justify-self: end;
  width: 225px;
}

.portrait-ring {
  position: absolute;
  inset: -10px 12px 18px -12px;
  border-radius: 24px;
  border: 1px solid rgba(58,111,172,.16);
  transform: rotate(-3deg);
  background: linear-gradient(150deg, rgba(100,156,219,.08), rgba(255,255,255,.25));
}

.portrait {
  position: relative;
  z-index: 2;
  display: block;
  width: 220px;
  aspect-ratio: .78;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 17px;
  border: 4px solid rgba(255,255,255,.86);
  box-shadow: 0 18px 40px rgba(27,58,96,.17);
  transition: transform .25s ease, box-shadow .25s ease;
}

.portrait-wrap:hover .portrait {
  transform: translateY(-4px) rotate(.4deg);
  box-shadow: 0 24px 48px rgba(27,58,96,.21);
}

.hero-decoration {
  position: absolute;
  border: 1px solid rgba(57,108,167,.10);
  border-radius: 50%;
  pointer-events: none;
}
.hero-decoration-one {
  width: 270px;
  height: 270px;
  right: -58px;
  top: -92px;
}
.hero-decoration-two {
  width: 150px;
  height: 150px;
  right: 118px;
  bottom: -88px;
}

/* ---------- Content cards ---------- */
.section {
  margin-top: 24px;
}

.home-page .content-card {
  position: relative;
  padding: 27px 30px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 26px rgba(29,59,99,.045), inset 0 0 0 1px rgba(43,95,158,.035);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-page .content-card:hover {
  transform: translateY(-2px);
  border-color: rgba(55,108,168,.13);
  box-shadow: 0 12px 30px rgba(29,59,99,.07);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.section-number {
  color: #7a98ba;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

h1.page-title {
  margin: 0 0 8px;
  color: #17283d;
  font-size: 34px;
  letter-spacing: -.025em;
}

h2 {
  margin: 0;
  color: #1d3e64;
  font-size: 21px;
  letter-spacing: -.012em;
}

.inner-page h2 {
  margin: 31px 0 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

h3 { color: #243b55; font-size: 18px; margin: 26px 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.advisor-link {
  font-weight: 650;
  color: #265f9d;
  border-bottom: 1px dashed rgba(43,95,158,.35);
}
.advisor-link:hover { border-bottom-color: rgba(43,95,158,.8); }

/* ---------- Research tags ---------- */
.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 5px 0 0;
  list-style: none;
}

.interest-list li {
  position: relative;
  overflow: hidden;
  padding: 7px 11px;
  border: 1px solid rgba(43,95,158,.09);
  border-radius: 9px;
  background: linear-gradient(135deg, #f7fbff, #edf4fc);
  color: #31577f;
  font-size: 13px;
  font-weight: 590;
  transition: transform .18s ease, box-shadow .18s ease;
}

.interest-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(29,59,99,.07);
}

/* ---------- News ---------- */
.news-list, .clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  margin: 0;
  padding: 8px 0 8px 14px;
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5c89ba;
  box-shadow: 0 0 0 4px rgba(92,137,186,.08);
}

.news-date {
  color: #6e8094;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

/* ---------- Inner pages ---------- */
.inner-page main.container {
  margin-top: 22px;
  padding-top: 34px;
  padding-bottom: 30px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
}

.inner-page main.container > .page-title,
.inner-page main.container > .muted,
.inner-page main.container > .section,
.inner-page main.container > h2,
.inner-page main.container > ol {
  margin-left: 28px;
  margin-right: 28px;
}

.pub-list { list-style: none; padding: 0; }
.pub-item { margin: 0 0 24px; }
.pub-title { color: #202631; font-weight: 680; }
.pub-title:hover { color: var(--accent); }
.pub-authors, .pub-venue { margin-top: 3px; }

.me {
  color: #183f6e;
  font-weight: 760;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(55,108,168,.16);
  border-radius: 999px;
  background: #f5f9ff;
  color: #315d8c;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
  white-space: nowrap;
}

.year-title { margin-top: 34px !important; }
.project, .honor, .service-block { margin: 0 0 23px; }
.project-title, .honor-title { font-weight: 680; }
.meta { margin-top: 3px; color: var(--muted); font-size: 15px; }
ul.standard { margin-top: 8px; padding-left: 22px; }

.note {
  margin: 18px 0 28px;
  padding: 12px 15px;
  border-left: 3px solid #8eacd0;
  background: #fafcff;
  color: #505a66;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .site-header { position: static; padding: 12px 12px 0; }
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }

  main.container { padding-top: 28px; }

  .hero-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 28px;
  }
  .portrait-wrap {
    grid-row: 1;
    justify-self: start;
    width: 180px;
  }
  .portrait { width: 178px; }
  .name { font-size: 36px; }
  .cn-name { display: block; margin: 7px 0 0; }
  .contact-row { gap: 8px; }

  .inner-page main.container {
    margin-top: 10px;
    border-radius: 16px;
  }
  .inner-page main.container > .page-title,
  .inner-page main.container > .muted,
  .inner-page main.container > .section,
  .inner-page main.container > h2,
  .inner-page main.container > ol {
    margin-left: 18px;
    margin-right: 18px;
  }

  .site-footer { flex-direction: column; gap: 2px; }
}

@media (max-width: 560px) {
  body { background-size: 30px 30px; }
  .container { padding-left: 15px; padding-right: 15px; }
  .brand-text { display: none; }
  .nav-shell { flex-direction: row; align-items: center; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .hero-card { padding: 29px 21px; border-radius: 20px; }
  .name { font-size: 32px; }
  .home-page .content-card { padding: 23px 21px; }
  .news-list li { grid-template-columns: 78px 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  #ambient-network { display: none; }
}
