@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@400;500;600;700&display=swap');
/* If Google Fonts is blocked, you can comment out the @import above and the site will fall back to Charter/Palatino/Georgia/Times automatically. */

:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #444444;
  --line: #e6e6e6;
  --link: #0645ad;
  --purple: #4e2376;  /* Nankai purple */
  --gold: #e0c48c;

  --font-serif: "IBM Plex Serif", "Charter", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Avenir Next", "Helvetica Neue", Helvetica, Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;


  --max: 1500px;
  --sidebar: 290px;
  --radius: 18px;
}


*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.68;
  font-size: 20px;
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:visited{ color: #4e2376; }

.skip{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus{
  position: fixed;
  left: 14px;
  top: 14px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 50;
}

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

.layout{
  display: flex;
  gap: 0;
}


/* Typography: classic academic */
.sidebar,
.menu,
.brand .title,
.brand .meta,
.footer{
  font-family: var(--font-sans);
}

.sidebar{
  width: var(--sidebar);
  padding: 22px 18px 34px 0;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: #fff;
}

.brand{
  padding: 8px 12px 18px;
}
.brand .name{
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
  margin: 0;
}
.brand .title{
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--muted);
}
.brand .meta{
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--muted);
}



.brand .social{
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.25;
}
.brand .social a{
  font-weight: 600;
}
.brand .social .sep{
  margin: 0 8px;
  opacity: 0.85;
}

.menu{
  padding: 0 12px 16px;
  font-size: 20px;
}

.menu a{
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
}
.menu a.active{
  font-weight: 700;
  color: var(--text);
  background: #f7f7f9;
}
.menu a:hover{
  background: #f3f5f7;
  text-decoration: none;
  color: var(--text);
}

.menu .section{
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px;
}

.content{
  flex: 1;
  padding: 26px 0 54px 30px;
  min-width: 0;
}
/* Academic-style text alignment (justify) */
.content{
  hyphens: auto;
  overflow-wrap: break-word;
}

.content p,
.content li,
.content dd{
  text-align: justify;
  text-justify: inter-word;
}

/* Keep headings and UI bits aligned normally */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.content .kicker,
.content .meta,
.content .pill,
.content .badge{
  text-align: left;
}


h1{
  font-family: var(--font-serif);
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

h2{
  font-family: var(--font-serif);
  font-size: 32px;
  margin: 26px 0 12px;
  letter-spacing: -0.01em;
}

p{ margin: 12px 0; }

.muted{ color: var(--muted); }

.hr{
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.banner{
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.profile{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 8px;
}

.avatar{
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
}

.kv{
  margin: 0;
  padding: 0;
  list-style: none;
}
.kv li{ margin: 8px 0; }

/* Alumni list */
.alumni{
  margin: 10px 0 22px;
  padding: 0;
  list-style: none;
}

.alumni li{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.alumni li:last-child{
  border-bottom: none;
}

.alumni strong{
  font-weight: 700;
}

.inline-links{
  font-size: 17px;
}
.inline-links a{ margin-right: 12px; }

.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.grid.grid2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.card img{
  width: 100%;
  height: auto;
  display: block;
}

.card .pad{
  padding: 14px 14px 16px;
}

.card h3{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* Clickable research cards */
.card-link{ color: inherit; text-decoration: none; }
.card-link:visited{ color: inherit; }
.card-link:hover{ text-decoration: none; }

/* Optional "learn more" line inside cards */
.more{
  margin-top: 10px !important;
  font-family: var(--font-sans);
  font-size: 16px;
}
.more a{ font-weight: 600; }

/* Research direction pages */
.hero{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 12px 0 6px;
}

.list-people{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.person{
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.person img{
  width: 86px;
  height: 86px;
  object-fit: cover;
  object-position: center center;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.person .name{
  font-weight: 800;
}
.person .role{
  font-size: 16px;
  color: var(--muted);
  margin-top: 3px;
}

.pubgrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pubcard{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pubcard img{
  width: 150px;
  height: 110px;
  object-fit: cover;
  object-position: center center;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.pubtitle{
  font-weight: 800;
  margin-bottom: 6px;
}
.pubmeta{
  color: var(--muted);
  font-size: 16px;
  margin-top: 2px;
}

.bookgrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.book{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.book img{
  width: 160px;
  height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.note{
  font-size: 16px;
  color: var(--muted);
}

.footer{
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

code{ font-size: 0.95em; }

@media (max-width: 980px){
  .layout{ flex-direction: column; }
  .sidebar{
    position: relative;
    height: auto;
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 0 10px;
  }
  .content{ padding: 18px 0 44px; }
  .menu{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .menu .section{ grid-column: 1 / -1; }
  .profile{ grid-template-columns: 180px 1fr; }
  .avatar{ width: 180px; height: 180px; }
  .grid{ grid-template-columns: 1fr; }
  .list-people{ grid-template-columns: 1fr; }
  .pubgrid{ grid-template-columns: 1fr; }
  .bookgrid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  h1{ font-size: 48px; }
  .profile{ grid-template-columns: 1fr; }
  .avatar{ width: 160px; height: 160px; }
  .banner{ height: 240px; }
  .menu{ grid-template-columns: 1fr; }
  .pubcard{ grid-template-columns: 1fr; }
  .pubcard img{ width: 100%; height: 150px; }
  .book{ grid-template-columns: 1fr; }
  .book img{ width: 100%; height: 260px; }
}


/* Publications (single-column, grouped by year) */
.pubyear{
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

h3.pubyear{
  font-size: 24px;
  margin: 26px 0 10px;
}

/* Publications (text-only) */
.bib{
  margin: 10px 0 22px;
  padding-left: 1.25em;
}

.bib li{
  margin: 10px 0;
  text-align: justify;
  text-justify: inter-word;
}

.bib .title{
  font-weight: 600;
}

.bib .venue{
  color: var(--muted);
}


.publist{
  list-style: none;
  padding: 0;
  margin: 6px 0 22px;
}

.pubitem{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pubitem:last-child{
  border-bottom: none;
}

.pubthumb{
  width: 200px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.pubtitle{
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.pubmeta{
  color: var(--muted);
  margin: 4px 0;
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 860px){
  .pubitem{ grid-template-columns: 1fr; }
  .pubthumb{ width: 100%; max-width: 520px; }
}

/* Cohort headings on Group page */
h3.cohort{
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 18px 0 10px;
}


@media (max-width: 720px){
  .banner{ height: 180px; }
}


/* Publication links */
.bib .links{
  color: var(--muted);
  font-size: 0.95em;
}

.bib .doi-link{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.bib .doi-link:hover{
  color: var(--accent);
}

.bib .bib-link{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.bib .bib-link:hover{
  color: var(--accent);
}


/* BibTeX page */
.bibtex{
  margin: 14px 0 26px;
}

.bibtex-entry{
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.bibtex-key{
  font-size: 0.95em;
  color: var(--muted);
}

.bibtex-entry pre{
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  line-height: 1.35;
}

/* BibTeX toggles */
.bibtex-entry details{
  margin-top: 10px;
}

.bibtex-entry summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.bibtex-entry summary:hover{
  text-decoration: underline;
}

/* --- IEEE-style figures for research pages --- */
.ieee-fig{
  margin: 1.25rem 0 1.5rem;
}
.ieee-fig img{
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.ieee-fig figcaption{
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1.0rem;
  line-height: 1.55;
}
.ieee-fig figcaption strong{
  color: var(--fg);
}

/* Reading lists */
.reading{
  margin-top: 0.5rem;
}
.reading li{
  margin: 0.5rem 0;
}
.small{
  font-size: 1.0rem;
  color: var(--muted);
}
