/* ==========================================================================
   Yang Zhou — School of Computer Science, Wuhan University
   Layout system follows maureenzou.github.io: a 980px shell split into an
   identity rail plus a fluid content column, white cards on a light grey
   ground, soft shadows, a compact type scale, and page-level tabs on top.
   Every list on the page shares one row grid, so years and text align
   across publications, funding and awards.
   DM Sans is self-hosted from assets/fonts/ — nothing loads from a CDN, so
   the page renders identically inside and outside China.
   ========================================================================== */

@font-face{font-family:'DM Sans';font-style:normal;font-weight:300 700;
  font-display:swap;src:url('../fonts/dmsans.woff2') format('woff2')}

:root{
  --shell:980px;
  --rail:212px;
  --gutter:78px;            /* one left column for every list; fits "Foundation" */
  --bg:#f4f5f7;
  --card:#ffffff;
  --ink:#14161a;
  --body:#3f464e;
  --muted:#6b7280;
  --faint:#9aa3ad;
  --line:#e8eaee;
  --line-2:#dfe3e8;
  --surface-2:#f7f9fb;      /* tinted surface: pre, th, overview grid on the guide */
  --accent:#0f6fde;
  --accent-dark:#0a52a8;
  --accent-soft:#eaf3fd;
  --accent-edge:#cfe2f8;
  --award:#b4491c;
  --r:12px;
  --r-lg:16px;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --font:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',
         'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Helvetica,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;background:var(--bg);color:var(--body);
  font-family:var(--font);font-size:15.5px;line-height:1.62;
  letter-spacing:-.002em;font-synthesis:weight style;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
p{margin:0 0 11px}
ul{margin:0;padding:0;list-style:none}
sup{font-size:.7em}
b,strong{font-weight:600;color:var(--ink)}
em{font-style:italic}
code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.84em;
  background:#f1f4f8;border:1px solid var(--line);border-radius:4px;padding:1px 5px;color:var(--ink)}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-dark);text-decoration:underline;text-underline-offset:2px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.icon{width:15px;height:15px;flex:none;stroke-width:1.75}
.vega-star{width:.8em;height:.8em;fill:var(--accent);vertical-align:-.06em;margin-right:.3em}
.top .vega-star{fill:currentColor}

/* --------------------------------------------------------------- topbar -- */
.top{position:sticky;top:0;z-index:30;background:rgba(244,245,247,.9);
  backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
.top .in{max-width:var(--shell);margin:0 auto;padding:11px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:16px}
.top .brand{font-size:15px;font-weight:600;color:var(--ink);white-space:nowrap}
.top .brand:hover{color:var(--accent);text-decoration:none}
.top ul{display:flex;align-items:center;gap:18px;font-size:14px;
  overflow-x:auto;scrollbar-width:none}
.top ul::-webkit-scrollbar{display:none}
.top ul a{color:var(--muted);white-space:nowrap}
.top ul a:hover{color:var(--accent);text-decoration:none}
.top .bar{width:1px;height:15px;background:var(--line-2);flex:none}

/* ---------------------------------------------------------------- shell -- */
/* the rail and the About card share grid row 1, so they are the same height;
   every later section sits alone in column 2 */
.shell{max-width:var(--shell);margin:0 auto;padding:26px 22px 52px;
  display:grid;grid-template-columns:var(--rail) minmax(0,1fr);gap:18px 26px}
.shell > .rail{grid-column:1;grid-row:1}
.shell > section{grid-column:2}

/* ----------------------------------------------------------------- rail -- */
/* not sticky: it scrolls with the page */
.rail.card{padding:20px 16px;display:flex;flex-direction:column}
.rail img{width:100%;border-radius:var(--r);margin-bottom:13px}
.rail h1{margin:0 0 3px;font-size:19.5px;font-weight:600;color:var(--ink);
  letter-spacing:-.018em;line-height:1.2}
.rail h1 .cn{color:var(--faint);font-weight:400;font-size:.85em}
.rail .post{margin:0;font-size:13px;line-height:1.55;color:var(--muted)}
.rail .post b{color:var(--body);font-weight:600}
.rail nav{display:flex;flex-direction:column;margin-top:auto;
  padding-top:12px;border-top:1px solid var(--line)}
.rail nav a{display:flex;align-items:center;gap:9px;padding:5px 0;
  font-size:13.5px;color:var(--body)}
.rail nav a:hover{color:var(--accent);text-decoration:none}
.rail nav .icon{color:var(--faint)}
.rail nav a:hover .icon{color:var(--accent)}

/* ---------------------------------------------------------------- cards -- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow)}
.shell > section.card{padding:20px 22px;min-width:0}
h2{margin:0 0 12px;font-size:17px;font-weight:600;color:var(--ink);
  letter-spacing:-.015em;display:flex;align-items:center;gap:8px}
h2 .icon{width:16px;height:16px;color:var(--accent)}
.card > p:last-child{margin-bottom:0}

/* ------------------------------------------------------- research threads -- */
/* the label runs inline so each item gets the card's full width and a
   larger size; 15px leaves the longest line ~5% spare */
.lead-in{margin-bottom:8px}
.threads{display:flex;flex-direction:column;gap:6px;margin:0}
.threads li{font-size:15px;line-height:1.55;color:var(--body);text-wrap:pretty}
.threads li b{color:var(--ink);font-weight:600}

/* ------------------------------------------------------------------ rows -- */
/* publications, funding and awards all share this grid so they line up */
.row{display:grid;grid-template-columns:var(--gutter) minmax(0,1fr);gap:0 14px;padding:10px 0}
.row + .row{border-top:1px solid var(--line)}
.row .yr{color:var(--faint);font-size:13px;padding-top:2px;
  font-variant-numeric:tabular-nums;white-space:nowrap}
/* publications: title / authors / links then venue-year-award */
.pub{padding:9px 0}
.pub + .pub{border-top:1px solid var(--line)}
.pub .t{font-size:15px;font-weight:600;color:var(--ink);line-height:1.4;text-wrap:pretty}
.pub .au{font-size:13.5px;color:var(--muted);line-height:1.5}
.pub .au b{color:var(--body);font-weight:600}
.pub .vn{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;
  font-size:13.5px;color:var(--body);line-height:1.5;margin-top:3px}
.pub .vn em{color:inherit;font-style:italic}
.pub .award{color:var(--award);font-weight:600}
.pub .lk{display:inline-flex;gap:5px;flex:none}
.pub .lk a{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:500;
  color:var(--accent);border:1px solid var(--accent-edge);background:var(--accent-soft);
  border-radius:5px;padding:1px 7px;line-height:1.6;white-space:nowrap}
.pub .lk a:hover{background:var(--accent);border-color:var(--accent);color:#fff;text-decoration:none}
.pub .lk .icon{width:12px;height:12px}
.note{color:var(--faint);font-size:12.5px;padding-top:12px;margin:0}

.rec{padding:7px 0}
.rec .d{font-size:14.5px;line-height:1.5;text-wrap:pretty}
.rec .d b{color:var(--ink);font-weight:600}
.rec .d .m{color:var(--muted);font-size:13.5px;white-space:nowrap}
h3{margin:15px 0 1px;font-size:11.5px;font-weight:600;letter-spacing:.11em;
  text-transform:uppercase;color:var(--faint)}
h3:first-of-type{margin-top:0}

/* ------------------------------------------------- publications by year -- */
/* the full list: one compact line per paper, sharing the year gutter of .row */
.pubs ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.pubs .t{display:block;font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.4;
  text-wrap:pretty}
.pubs .t:hover{color:var(--accent)}
.pubs .m{font-size:13px;color:var(--muted);line-height:1.5;margin-top:1px;text-wrap:pretty}
.pubs .m em{color:var(--body);font-style:italic}
.pubs .au b{color:var(--body);font-weight:600}
.pubs .award{color:var(--award);font-weight:600}

/* --------------------------------------------------- publications switch -- */
/* Highlights / By year share one card; the tabs only exist with JS */
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-wrap:wrap;margin-bottom:12px}
.sec-head h2{margin:0}
.seg{display:none;gap:2px;padding:2px;border:1px solid var(--line-2);border-radius:8px;
  background:var(--surface-2)}
.js .seg{display:inline-flex}
.seg button{font:inherit;font-size:12.5px;font-weight:500;color:var(--muted);background:none;
  border:0;border-radius:6px;padding:3px 11px;line-height:1.6;cursor:pointer}
.seg button:hover{color:var(--ink)}
.seg button[aria-selected="true"]{background:var(--card);color:var(--accent);
  box-shadow:0 1px 2px rgba(16,24,40,.1)}
.js .nojs{display:none}
.js .pub-panel:not(.on){display:none}
.pub-panel + .pub-panel{margin-top:14px}
.js .pub-panel + .pub-panel{margin-top:0}

/* -------------------------------------------------------------- openings -- */
/* the one call to action on the page, so it is the one tinted card */
.openings{background:var(--accent-soft);border-color:var(--accent-edge);box-shadow:none}
.openings.card{padding:15px 22px}
.openings h2{margin-bottom:7px}
.openings a{font-weight:600}
.zh{font-size:14.5px;line-height:1.8}
.openings p{margin:0 0 7px}
.openings p:last-child{margin-bottom:0}

/* --------------------------------------------------------------- contact -- */
.foot{display:flex;flex-direction:column;gap:7px;font-size:14px;color:var(--muted)}
.foot > span{display:flex;align-items:center;gap:9px;min-width:0}
.foot .icon{color:var(--faint)}

/* ------------------------------------------------------------ responsive -- */
@media (max-width:860px){
  .shell{grid-template-columns:1fr;gap:18px;padding:18px 16px 44px}
  .shell > .rail,.shell > section{grid-column:1}
  .rail.card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:0 16px;align-items:start}
  .rail img{margin:0}
  .rail nav{flex-direction:row;flex-wrap:wrap;gap:0 18px;grid-column:1/-1;margin-top:13px}
}
@media (max-width:560px){
  .rail.card{grid-template-columns:1fr}
  .rail img{width:124px;margin-bottom:12px}
  .row{grid-template-columns:1fr;gap:0}
  .row .yr{padding-top:0}
}
@media print{
  .top,.rail nav,.pub .lk{display:none}
  body{background:#fff;font-size:10pt;color:#000}
  .shell{display:block;max-width:none;padding:0}
  .card{border:0;box-shadow:none;padding:0!important}
  .row,.pub{break-inside:avoid}
  .seg{display:none!important}
  .pub-panel{display:block!important}
}
