/* ─────────────────────────────────────────────────────────────
   Wanyu Bian — Blue/Pink clean + elegant theme
   (Single shared stylesheet for all pages)
   ───────────────────────────────────────────────────────────── */

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

:root {
  --blue:        #4b8dff;
  --pink:        #ff5ca8;
  --ink:         #0d1325;
  --muted:       #5c6784;
  --border:      rgba(15,23,42,0.10);
  --card-bg:     rgba(255,255,255,0.72);
  --item-bg:     linear-gradient(135deg, rgba(75,141,255,0.07), rgba(255,92,168,0.07));
  --item-border: rgba(75,141,255,0.16);
  --shadow:      0 18px 50px rgba(15,23,42,0.10);
  --shadow-soft: 0 10px 24px rgba(15,23,42,0.07);
  --radius:      18px;
  --radius-lg:   26px;
  --radius-sm:   12px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 10% 0%,  rgba(98,161,255,0.18), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(255,112,182,0.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 60%, #ffffff 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 980px;
  padding: 0 22px;
  margin: 0 auto;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar .inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 0 0 4px rgba(75,141,255,0.12);
}
.navlinks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0; margin: 0;
}
.navlinks a {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  transition: background .15s, color .15s, transform .12s;
}
.navlinks a:hover {
  background: rgba(75,141,255,0.10);
  color: var(--ink);
  transform: translateY(-1px);
}
.navlinks a.active {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(75,141,255,0.13), rgba(255,92,168,0.13));
  border: 1px solid rgba(75,141,255,0.20);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding: 44px 0 28px; }
.hero-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(75,141,255,0.55), rgba(255,92,168,0.55));
  filter: blur(26px);
  opacity: 0.22;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  padding: 28px 28px;
  align-items: center;
}
.avatar {
  width: 128px; height: 128px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.85);
  box-shadow: 0 16px 34px rgba(15,23,42,0.18);
}
.h-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.cn-name {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "PMingLiU", "SimSun", serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-left: 8px;
  font-size: 18px;
  color: rgba(13,19,37,0.62);
}
.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  color: rgba(13,19,37,0.72);
  transition: border-color .15s, background .15s;
}
.pill:hover { border-color: rgba(75,141,255,0.35); background: rgba(255,255,255,0.85); }
.pill .icon { width: 15px; height: 15px; fill: currentColor; opacity: 0.85; }
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 4px 14px rgba(75,141,255,0.30);
}
.btn.primary:hover { box-shadow: 0 6px 20px rgba(75,141,255,0.40); }

/* ── Page header ─────────────────────────────────────────── */
.page-head { padding: 34px 0 10px; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.page-head p  { margin: 10px 0 0; color: var(--muted); max-width: 72ch; }

/* ── Content grid ─────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 18px;
  padding: 18px 0 64px;
}

/* ── Shared card shell ────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
}

/* Section label — the small uppercase title every card uses */
.card h2 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card p { margin: 0 0 10px; color: rgba(13,19,37,0.80); font-size: 14px; }
.card p:last-child { margin-bottom: 0; }

/* Full-width cards */
.education-card,
.service-card {
  grid-column: 1 / -1;
}

/* ── Generic item tile (shared by edu, service, award, news) ─ */
.tile {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  transition: transform .15s, box-shadow .15s;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(75,141,255,0.14);
}

/* ── Summary ──────────────────────────────────────────────── */
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgba(75,141,255,0.20);
  background: linear-gradient(135deg, rgba(75,141,255,0.10), rgba(255,92,168,0.10));
  color: rgba(13,19,37,0.78);
  transition: transform .15s, box-shadow .15s;
  cursor: default;
}
.badge.primary {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  font-weight: 600;
  border: 0;
  box-shadow: 0 4px 12px rgba(75,141,255,0.25);
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(75,141,255,0.22); }

/* ── Latest News ──────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  transition: transform .15s, box-shadow .15s;
}
.news-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75,141,255,0.12); }
.news-item .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}
.news-item .desc {
  font-size: 13px;
  color: rgba(13,19,37,0.78);
  line-height: 1.55;
}
.news-item .desc a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(75,141,255,0.35);
}
.news-item .desc a:hover { text-decoration-color: var(--blue); }

/* ── Education ────────────────────────────────────────────── */
.edu {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.edu li {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  transition: transform .15s, box-shadow .15s;
}
.edu li:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75,141,255,0.14); }
.edu li strong { color: rgba(13,19,37,0.90); font-size: 14px; }
.edu li em { color: var(--muted); font-size: 13px; }
.edu li .dates {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(13,19,37,0.52);
  letter-spacing: 0.02em;
}

/* ── Professional Service ─────────────────────────────────── */
.service-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.service-role-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  font-size: 13px;
  font-weight: 600;
  color: rgba(13,19,37,0.82);
  transition: transform .15s, box-shadow .15s;
}
.service-role-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(75,141,255,0.14); }
.service-role-item strong { color: var(--blue); margin-left: 4px; }
.service-intro > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.service-item {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  transition: transform .15s, box-shadow .15s;
}
.service-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75,141,255,0.14); }
.service-venue {
  font-size: 13px;
  font-weight: 600;
  color: rgba(13,19,37,0.90);
  margin-bottom: 5px;
  line-height: 1.35;
}
.service-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Leadership & Awards ──────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.award-group h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.award-items { display: flex; flex-direction: column; gap: 8px; }
.award-item {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  transition: transform .15s, box-shadow .15s;
}
.award-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75,141,255,0.14); }
.award-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(13,19,37,0.88);
  line-height: 1.45;
}
.award-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Publication / item cards ─────────────────────────────── */
.item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  margin-top: 10px;
  transition: transform .15s, box-shadow .15s;
}
.item:first-of-type { margin-top: 0; }
.item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75,141,255,0.14); }
.item .title { margin: 0; font-weight: 650; font-size: 14px; }
.item .meta  { margin-top: 6px; font-size: 13px; color: var(--muted); }
.item .links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.item .links a {
  font-size: 13px;
  color: rgba(13,19,37,0.85);
  text-decoration: underline;
  text-decoration-color: rgba(75,141,255,0.35);
}
.item .links a:hover { text-decoration-color: var(--blue); }

/* ── Talks ────────────────────────────────────────────────── */
.talk {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  margin: 10px 0;
  transition: transform .15s, box-shadow .15s;
}
.talk:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75,141,255,0.14); }
.talk-top { display: flex; align-items: center; gap: 10px; }
.talk-title { line-height: 1.25; font-weight: 600; font-size: 14px; }
.talk-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ── Publications ─────────────────────────────────────────── */
.pub-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  margin-top: 10px;
  transition: transform .15s, box-shadow .15s;
}
.pub-item:first-of-type { margin-top: 0; }
.pub-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75,141,255,0.14); }
.pub-number {
  flex-shrink: 0;
  width: 28px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(75,141,255,0.5);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.pub-body { flex: 1; min-width: 0; }
.pub-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(13,19,37,0.92);
  line-height: 1.45;
  margin-bottom: 5px;
}
.pub-authors {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.pub-authors strong { color: var(--ink); }
.pub-venue {
  font-size: 12.5px;
  color: rgba(13,19,37,0.60);
  margin-bottom: 8px;
  line-height: 1.4;
}
.pub-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(75,141,255,0.13), rgba(255,92,168,0.13));
  border: 1px solid rgba(75,141,255,0.20);
  color: rgba(13,19,37,0.75);
}
.pub-badge.award {
  background: linear-gradient(135deg, rgba(255,185,0,0.15), rgba(255,92,168,0.15));
  border-color: rgba(255,185,0,0.35);
  color: rgba(160,100,0,0.90);
}
.pub-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pub-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(75,141,255,0.30);
  transition: text-decoration-color .15s;
}
.pub-links a:hover { text-decoration-color: var(--blue); }

/* ── Patents ──────────────────────────────────────────────── */
.patent-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--item-border);
  background: var(--item-bg);
  margin-top: 10px;
  transition: transform .15s, box-shadow .15s;
}
.patent-item:first-of-type { margin-top: 0; }
.patent-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(75,141,255,0.14); }
.patent-left { flex: 1; min-width: 0; }
.patent-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(13,19,37,0.92);
  line-height: 1.45;
  margin-bottom: 5px;
}
.patent-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.patent-right { flex-shrink: 0; padding-top: 2px; }
.patent-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.patent-role.lead {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  box-shadow: 0 3px 10px rgba(75,141,255,0.25);
}
.patent-role.contrib {
  background: linear-gradient(135deg, rgba(75,141,255,0.12), rgba(255,92,168,0.12));
  border: 1px solid rgba(75,141,255,0.22);
  color: rgba(13,19,37,0.75);
}
.grid.single { grid-template-columns: 1fr; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: rgba(13,19,37,0.55);
  font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: 0 auto; }
  .meta-row, .cta { justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
}
