/* ================================================================
   Personal page — Shuhao (Sullivan) Zhang
   Layout reference: coder-qicao.github.io
   Palette: deep navy background · white text · bright orange accent
            · deep green badges/cards
   ================================================================ */

:root{
  --bg:        #0B2E4F;     /* deep navy background        */
  --bg-2:      #133A5F;     /* card background (lighter)   */
  --bg-3:      #0F345A;     /* nested card                 */
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.18);
  --text:      #ECEFF4;
  --text-soft: #B7C2D0;
  --muted:     #8290A1;
  --orange:    #FF7A29;     /* slightly brighter for dark bg */
  --green:     #2F8266;     /* a touch lighter for dark bg   */
  --green-bg:  rgba(47,130,102,.18);
  --maxw:      820px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  color: var(--orange);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover{ color: #ffb27a; }

h1, h2, h3{
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0;
}

strong{ color: var(--text); font-weight: 600; }

/* ============== Top bar ============== */
.topbar{
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center;
  padding: 18px clamp(20px, 4vw, 40px);
  background: rgba(11, 46, 79, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand{
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.topbar-brand:hover{ color: var(--orange); }

/* ============== Page container ============== */
.page{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 28px) 80px;
}

/* ============== Hero ============== */
.hero{
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 16px 0 48px;
}
.avatar{
  width: 220px; height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  margin-bottom: 28px;
}
.avatar img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-name{
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-title{
  margin: 0 0 4px;
  color: var(--orange);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .01em;
}
.hero-affiliation{
  margin: 0 0 22px;
  color: var(--text);
  font-size: 1.05rem;
}

.socials{
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 14px;
}
.socials a{
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--line-2);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.socials a:hover{
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(255,122,41,.08);
}
.socials svg{ width: 18px; height: 18px; }

/* ============== Card (research interests) ============== */
.card{
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 56px;
}
.card-label{
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  margin: 0 0 12px;
}
.interests{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.interests li{
  position: relative;
  color: var(--text-soft);
  font-size: 1rem;
  padding-left: 16px;
}
.interests li::before{
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
}

/* ============== Block sections ============== */
.block{ margin-bottom: 56px; }
.block h2{
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.block p{
  margin: 0 0 14px;
  color: var(--text-soft);
}
.block p strong{ color: var(--text); }

/* ============== News ============== */
.news{
  list-style: none; padding: 0; margin: 0;
}
.news li{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 8px 0;
  align-items: start;
}
.news .date{
  font-family: ui-monospace, "DM Mono", monospace;
  font-size: .92rem;
  color: var(--muted);
  letter-spacing: .04em;
  padding-top: 1px;
}
.news .text{
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.news .text strong{ color: var(--text); }

/* ============== Publications ============== */
.pub{
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 18px;
  transition: border-color .15s ease, transform .15s ease;
}
.pub:hover{ border-color: var(--line-2); }
.pub h3{
  font-family: "Inter", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.005em;
  color: var(--text);
  line-height: 1.4;
}
.pub .authors{
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: .98rem;
}
.pub .me{ color: var(--orange); font-weight: 700; }
.pub .venue{
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: .94rem;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pub .desc{
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.6;
}
.pub .actions{
  margin: 12px 0 0;
  font-size: .94rem;
}

/* badges */
.badge{
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--green-bg);
  color: #7CC4A8;
  border: 1px solid rgba(124,196,168,.4);
}
.badge-accent{
  background: rgba(255,122,41,.15);
  color: var(--orange);
  border-color: rgba(255,122,41,.45);
}

/* ============== Footer ============== */
.foot{
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.foot p{
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

/* ============== Responsive ============== */
@media (max-width: 640px){
  .page{ padding: 36px 18px 64px; }
  .avatar{ width: 170px; height: 170px; }
  .hero{ padding-bottom: 36px; }
  .news li{ grid-template-columns: 80px 1fr; gap: 12px; }
  .card, .pub{ padding: 18px 20px; }
}
