
/* =========================================================
   Static academic homepage stylesheet
   Edit this file to change the overall appearance.
   No Jekyll, no build tools, no external CSS framework.
   ========================================================= */
:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #A02337;
  --accent-soft: #f8eef0;
  --card: #fafafa;
  --max-width: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  line-height: 1.65;
  font-size: 18px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
}
.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.icon-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.email-icon {
  color: #A02337;
}

.scholar-icon {
  color: #4285f4;
  font-size: 1.05em;
}

.github-icon {
  color: #24292f;
}

.orcid-icon {
  color: #a6ce39;
}

.linkedin-icon {
  color: #0A66C2;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: #333;
  font-size: 17px;
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.polyu-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.polyu-logo {
  display: block;
  height: 34px;
  width: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 20px 70px;
}

h1, h2, h3 { line-height: 1.25; color: #111; }
h1 { font-size: 2.2rem; margin: 0 0 18px; font-weight: 500; }
h2 {
  font-size: 1.45rem;
  margin: 42px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--accent);
}
h3 { font-size: 1.08rem; margin: 20px 0 8px; font-weight: 600; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }

.profile {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 10px;
  align-items: start;
}

.profile-left {
  display: flex;
  flex-direction: column;
}

.profile-photo {
  width: 230px;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}
.intro p { margin-bottom: 13px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button-link {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  color: #333;
  background: #fff;
}
.button-link:hover { background: var(--accent-soft); text-decoration: none; }

.news-year {
  font-size: 1.08rem;
  margin: 22px 0 8px;
  color: #111;
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 0;
}

.news-list { list-style: none; padding-left: 0; margin: 0; }
.news-list li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.news-date { color: var(--muted); font-size: 15px; white-space: nowrap; }

.pub-list { list-style: none; padding-left: 0; margin: 0; counter-reset: pub-counter; }
.pub-item {
  counter-increment: pub-counter;
  margin: 0 0 20px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.pub-item::before {
  content: counter(pub-counter) ".";
  color: var(--muted);
  font-size: 14px;
  float: left;
  margin-right: 8px;
}
.pub-title { font-weight: 600; color: #111; margin-bottom: 5px; }
.pub-authors, .pub-venue { color: #444; font-size: 16px; }
.pub-venue { font-style: italic; }
.pub-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .pub-actions a {
  font-size: 13px;
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #ead0d6;
}
.pub-actions a:hover { text-decoration: none; background: #f2dfe3; }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--accent); font-size: 14px; }
details p { margin-top: 8px; color: #444; font-size: 15px; }


/* ===================== Publications page: working papers and venue-rank badges ===================== */
.working-section {
  margin-top: 10px;
}

.working-paper-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 10px 0 28px;
}

.working-paper-card {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid #ead0d6;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fff9fa);
}

.working-paper-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}

.working-status,
.working-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.working-status.writing {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #ead0d6;
}

.working-status.review {
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.working-type {
  color: #555;
  background: #f4f4f4;
  border: 1px solid var(--line);
}

.working-paper-title {
  font-size: 1.03rem;
  line-height: 1.45;
  font-weight: 650;
  color: #111;
  margin-bottom: 5px;
}

.working-paper-meta {
  color: #444;
  font-size: 15px;
  margin-bottom: 6px;
}

.working-paper-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.pub-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  counter-reset: none;
}

.pub-item {
  counter-increment: none;
  margin: 0 0 20px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.pub-item::before {
  content: none;
}

.pub-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.pub-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pub-badge {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #ead0d6;
}

.pub-badge-featured {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.rank-badge {
  color: #333;
  background: #f6f6f6;
  border: 1px solid var(--line);
}

.rank-ccf-a {
  color: var(--accent);
  background: #fff5f7;
  border-color: #e7c1c9;
}

.rank-ccf-b {
  color: #8a5a00;
  background: #fff8e8;
  border-color: #f1d99a;
}

.rank-ccf-c {
  color: #4d5966;
  background: #f2f4f7;
  border-color: #d8dee6;
}

.rank-journal {
  color: #14532d;
  background: #eef8f1;
  border-color: #cdebd5;
}

.pub-title {
  font-weight: 650;
  color: #111;
  margin-bottom: 5px;
  line-height: 1.45;
}

.pub-actions {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid #ead0d6;
  background: #fff;
}

.pub-link:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.cv-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
}
.cv-name { font-size: 2rem; margin: 0 0 6px; }
.cv-contact { color: var(--muted); font-size: 15px; }
.cv-section { margin-top: 26px; }
.cv-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.cv-item-title { font-weight: 600; }
.cv-meta { color: var(--muted); font-size: 14px; margin: 2px 0 6px; }
.cv-item ul { margin: 6px 0 0; }
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 20px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .profile, .cv-header, .two-column { grid-template-columns: 1fr; }
  .profile-photo { max-width: 260px; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .nav { align-items: flex-start; gap: 10px; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
}


/* Compact and modest working papers section */
.working-papers {
  margin-top: 34px;
}

.working-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 14px;
}

.working-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
  padding: 9px 0;
}

.working-row + .working-row {
  border-top: 1px dashed var(--line);
}

.working-status {
  font-size: 12px;
  color: var(--muted);
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}

.working-title {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  line-height: 1.45;
}

.working-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 720px) {
  .working-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .working-status {
    width: fit-content;
  }
}

.working-authors {
  color: #444;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 2px;
}

/* ===================== Unified publication badge colors =====================
   Venue abbreviations use the same style as WWW.
   Conference ranking badges (CCF / CORE / CAAI) use one unified style.
   Journal ranking badges use one unified Q-style.
   ========================================================================== */

.pub-badge,
.pub-badge-featured {
  color: #ffffff !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.rank-badge.rank-conference,
.rank-badge.rank-ccf,
.rank-badge.rank-core,
.rank-badge.rank-caai,
.rank-ccf-a,
.rank-ccf-b,
.rank-ccf-c {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
  border-color: #ead0d6 !important;
}

.rank-badge.rank-journal,
.rank-journal {
  color: #14532d !important;
  background: #eef8f1 !important;
  border-color: #cdebd5 !important;
}

/* Page view counter */
.visitor-section {
  margin-top: 42px;
}

.visitor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
}

.visitor-label {
  font-size: 14px;
  color: var(--muted);
}

.visitor-badge {
  display: block;
  height: 22px;
}

@media (max-width: 720px) {
  .visitor-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* CV PDF online viewer */
.cv-viewer-section {
  margin-top: 0;
}

.cv-viewer-section .cv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cv-viewer-section h1 {
  margin: 0;
}

.pdf-viewer {
  width: 100%;
  height: 860px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f7;
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pdf-fallback {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .cv-viewer-section .cv-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-viewer {
    height: 680px;
  }
}

/* ClustrMaps visitor map */
.clustrmaps-container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  line-height: 0;
}

.clustrmaps-container > a,
.clustrmaps-container > img,
.clustrmaps-container iframe,
.clustrmaps-container canvas,
.clustrmaps-container svg {
  max-width: 100% !important;
}

@media (max-width: 720px) {
  .clustrmaps-container {
    max-width: 100%;
  }
}
