/* ===== Font Definitions ===== */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/alegreya/v35/4UaBrEBBsBhlBjvfkSLhx6g.woff2) format('woff2');
}

@font-face {
  font-family: 'Alegreya SC';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/alegreyasc/v26/taiOGmRtCJ62-O0HhNEa-Z6p2BQK9b7.woff2) format('woff2');
}

/* ===== Base Styles ===== */
html {
  background-color: #ffffff;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: 'Alegreya', serif !important;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
}

p,
li,
td,
a {
  overflow-wrap: anywhere;
}

/* Base text styles */
tr, td, th, p, a, li {
  font-family: 'Alegreya', serif;
  font-size: 16px;
}

/* Link styles */
a {
  color: #004b91;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:focus, a:hover {
  color: #77BBDD;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #005ea8;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== Heading Styles ===== */
h2 {
  margin: 0;
  font-weight: 700;
  font-family: 'Alegreya SC', serif;
  font-size: 24px;
  color: #333;
  text-decoration: underline;
  text-decoration-color: #77BBDD;
  text-decoration-thickness: 3px;
}

h2 a {
  color: #333 !important;
  text-decoration: none;
}

h2 a:hover {
  color: #333 !important;
  opacity: 0.7;
}

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Alegreya SC', serif;
  color: #333;
  padding-bottom: 6px;
}

/* ===== Component Styles ===== */
/* Author styles */
.author {
  font-family: 'Alegreya', serif;
  font-size: 14px;
}

.strong-author {
  font-family: 'Alegreya', serif;
  font-size: 14px;
  font-weight: bold;
}

/* Paper title styles */
.papertitle {
  font-family: 'Alegreya', serif;
  font-size: 18px;
  font-weight: 700;
}

/* Award and venue styles */
.award-venue {
  color: #ffa03c;
  font-weight: bold;
}

.strong-venue {
  color: #77BBDD;
  font-weight: bold;
}

.venue {
  font-weight: bold;
}

.accepted-venue {
  background-color: #eacef1;
  color: #673797;
  padding: 2px 6px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accepted-venue-detail {
  font-weight: bold;
  color: #663399;
}

/* TL;DR styles */
.TLDR {
  color: #9f9f9f;
  padding-top: 5px;
}

.TLDR strong {
  font-weight: bold;
}

/* List styles */
.news-list, .award-list {
  list-style-type: disc;
  font-size: 14px;
}

.award-list li {
  margin-bottom: 3px;
  font-size: 14px;
}

.award-list .year {
  float: right;
}

/* Website name styles */
.webname {
  padding-top: 20px;
  margin: 0;
  font-family: 'Alegreya SC', serif;
  font-size: 32px;
  font-weight: 700;
  color: #333;
}

/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-content {
  margin: 10% auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  border: 5px solid #77BBDD;
  width: 32%;
  max-width: 400px;
}

.academic-links-content {
  text-align: left;
}

.close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover, .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* ===== Special Effects ===== */
/* Shadow effects */
.drop-shadow {
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1), 0 4px 15px 0 rgba(0, 0, 0, 0.3);
}

/* Highlight mark */
mark {
  background-color: rgba(102, 192, 255, 0.2);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

/* 日期样式 */
.dates {
  font-size: 16px;
  color: gray;
  float: right;
}

/* Chinese text styles */
.chinese-text {
  font-family: 'LXGW WenKai Screen', serif;
}

/* Font Awesome icon styles */
.fa {
  font-size: 1.3rem;
  margin-right: 10px;
  color: #333;
  transition: color 0.3s ease;
}

.fa:hover {
  color: #77BBDD;
}

/* Coffee Talk button styles */
button.coffee-talk-btn {
  background-color: rgba(119, 187, 221, 0.2) !important;
  color: #77BBDD !important;
  border: 1px solid rgba(119, 187, 221, 0.4) !important;
}

button.coffee-talk-btn:hover {
  background-color: rgba(119, 187, 221, 0.3) !important;
  border-color: rgba(119, 187, 221, 0.6) !important;
  color: #77BBDD !important;
}

/* Details/Summary styles for collapsible sections */
details {
  margin-top: 20px;
}

details summary {
  cursor: pointer;
  padding: 10px 20px;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Alegreya SC', serif;
  color: #333;
  text-decoration: underline;
  text-decoration-color: #77BBDD;
  text-decoration-thickness: 3px;
  list-style: none;
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '▶ ';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
  color: #77BBDD;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary:hover {
  opacity: 0.8;
}

/* ===== Link Button Styles ===== */
.btn-sm.badge-button {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.875rem;
  color: #004b91;
  border: none;
  border-radius: 0.15rem;
  text-decoration: none;
  margin-right: 3px;
  margin-bottom: 3px;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-sm.badge-button:hover {
  background-color: #f0f7ff;
  color: #003366;
}

/* ===== Highlight Mark ===== */
mark {
  background-color: rgba(102, 192, 255, 0.2);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

/* Date styles */
.dates {
  font-size: 16px;
  color: gray;
  float: right;
}

html {
  background-color: #ffffff;
  font-size: 100%;
}

body {
  /*font-family: 'Lato', sans-serif !important;*/
  font-family: 'Alegreya', serif !important;
}
.chinese-text  {
  font-family: 'LXGW WenKai Screen', serif;
}
/* Link colors */
a:link {
    color: #006EE7;
}
a:visited {
    color: #006EE7;
}
a:hover {
    color: #006EE7;
}
a:active {
    color: #006EE7;
}

.footer-text {
  font-size: 0.8rem;
  font-weight: lighter;
  text-align: right;
  color: #555;
}

.about-headshot {
  max-width: 65%;
}

.about-headshot-mobile {
  max-width: 50%;
}

.title-name {
  font-family: 'Alegreya SC', serif;
  font-size: 2.1em;
  line-height: 90%;
  font-weight: 500;
  margin-bottom: 1rem;
}
.title-email {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.title-small{
  font-size: 1.1rem;
}


.link-button {
  font-family: 'Alegreya', serif;
  font-size: 1.2rem;
  color: #006EE7;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.link-button:hover {
  color: #FF9547;
  text-decoration: none;
}

.link-button-small {
  font-family: 'Alegreya', serif;
  font-size: 1rem;
  color: #006EE7;
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  transition: color 0.3s ease;
}

.link-button-small:hover {
  color: #FF9547;
  text-decoration: none;
}

.drop-shadow {
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1), 0 4px 15px 0 rgba(0, 0, 0, 0.3);
}

/* Style font awesome */
.fa {
  padding-left: 5px;
  padding-right: 5px;
  font-size: 30px;
  text-align: center;
  text-decoration: none;
}
.fa:hover {
  opacity: 0.7;
  text-decoration: none;
}


/* Expand/collapsible news entries */

.news-title {
  font-family: 'Alegreya', serif;
  font-size: 1.3rem;
  font-weight: 200;
  margin-bottom: 1rem;
}

.expandable-list ul {
  list-style-type:none;
  margin-left: 1em;
  padding-left: 0;
  margin-bottom: 0;
}

.expandable-list .extra-item {
  display: none;
}

.news-date {
  /* color: #E03838; */
  display: inline-block;
  font-weight: 500;
  width: 4em;
  font-family: 'Alegreya', serif;
}

.news-entry {
  font-size: 0.9rem;
}

.news-expand-button {
  cursor: pointer;
  text-align: center;
  margin-left: 1em;
  color: #006EE7;
}


/* Content summaries */

.content-header {
  margin-bottom: 1rem;
  border-bottom: 2px solid #77BBDD;
  text-align: right;
}

.content-header col {
  padding-right: 0px;
}

.content-header p {
  font-weight: bold;
  font-size: 1.8rem;
  margin-bottom: 0;
  margin-right: 0;
}

.content-header-linebreak {
  height: 30px;
  margin-bottom: 15px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

.summary-title {
  font-family: 'Alegreya', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.summary-authors{
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.summary-publication-status {
  margin-top: 0px;
  margin-bottom: 0px;
  color: #006EE7;
  font-style: italic;
}

.summary-publication-status-highlight {
  margin-top: 0px;
  margin-bottom: 0px;
  color: #49bf9d;
  font-family: 'Lora', serif;
  font-style: italic;
}
.summary-publication-status-highlight::before {
  content: '★ ';
}
.summary-publication-status-highlight::after {
  content: ' ★';
}

.summary-publication-status-award {
  margin-top: 0px;
  margin-bottom: 0px;
  color: #ffaf03;
  font-family: 'Lora', serif;
  font-style: italic;
}
.summary-publication-status-award::before {
  content: "\f091"; /* Unicode for Font Awesome trophy icon */
  font-family: 'Lora', 'Font Awesome 6 Free', serif;
  font-weight: 900; /* Font Awesome solid style */
  margin-right: 4px;
  font-style: normal;
}
.summary-publication-status-award::after {
  content: "\f091";
  font-family: 'Lora', 'Font Awesome 6 Free', serif;
  font-weight: 900;
  margin-left: 4px;
  font-style: normal;
}

.summary-extras {
  padding-left: 5px;
  padding-right: 5px;
  font-weight: bolder;
  background: #E0383833;
}
.summary-extras:hover {
  text-decoration: none;
}

.summary-extras-btn {
  padding-left: 10px;
  padding-right: 10px;
  font-weight: bolder;
  color: #000;
  background: #FFDC55;
}
.summary-extras-btn:visited{
  color: #000;
  background: #FFDC55;
}

.summary-text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}
.summary-text::before {
  content: '\f002 TL;DR: ';
  font-family: 'Lora','Font Awesome 6 Free', serif;
  font-weight: 600;
}
.summary-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-button {
  font-size: 0.9rem;
  background: hsla(217, 100%, 84%, 0.2);
  color: #006EE7;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.badge-button:hover {
  background: hsla(217, 100%, 84%, 0.3);
  text-decoration: none;
  color: #006EE7;
}

.big-badge-button {
  font-size: 1.0rem;
  background: hsla(217, 100%, 84%, 0.2) 4%;
}
.big-badge-button:hover {
  text-decoration: none;
}

.full-title {
  font-family: 'Alegreya', serif;
  font-size: 3em;
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: center;
}

.authors-list {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 1.2em;
  text-align: center;
}

.plain-link {
  color: #000000 !important;
  text-decoration: underline !important;
}

.publication-status {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 1.2em;
  text-align: center;
  color: #006EE7;
}

.extras {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 1.2em;
  text-align: center;
  color: #006EE7;
  font-weight: bolder;
}
.hover {
  text-decoration: none;
}

.big-teaser-image {
  padding: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
	max-height: 400px;
	max-width: auto;
}

.abstract {
  text-align: left;
  padding: 10px;
}


.selected-figure {
  text-align: center;
  max-height: 300px; 
  max-width: 100%;
  padding: 5px;
}
.selected-figure-caption {
  max-width: 600px;
}

/* Paper list link buttons */
/* Click-to-enlarge figures (profile, paper thumbnails, org cards) */
.hoverZoomLink {
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.hoverZoomLink:hover {
  filter: brightness(1.06);
}

.paper-link-btn {
  display: inline-block;
  padding: 1px 4px;
  font-size: 0.8rem;
  color: #004b91;
  border: none;
  border-radius: 0.1rem;
  text-decoration: none;
  margin-right: 2px;
  margin-bottom: 2px;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.paper-link-btn:hover {
  background-color: #f0f7ff;
  color: #003366;
}

.award-venue i {
  color: #ffa03c !important; /* Orange trophy */
}
.strong-venue i {
  color: #77BBDD !important; /* Blue star */
}

/* Homepage robot demo + visitor map */
.lab-window-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 18px;
}

.lab-widget {
  display: flex;
  flex-direction: column;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(22, 45, 61, 0.08);
  overflow: hidden;
}

.lab-widget-demo {
  min-height: 430px;
}

.robot-demo-launch {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 24px;
  background: #fffbf0;
}

.robot-demo-launch[hidden] {
  display: none;
}

.robot-demo-launch-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid #9db9c9;
  border-radius: 6px;
  background: #ffffff;
  color: #153449;
  cursor: pointer;
  font: 700 15px/1.2 Arial, Helvetica, sans-serif;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.robot-demo-launch-button:hover,
.robot-demo-launch-button:focus-visible {
  border-color: #3f88ad;
  outline: 3px solid rgba(63, 136, 173, 0.22);
  outline-offset: 2px;
}

.btn-sm.badge-button:active,
.paper-link-btn:active,
.link-button:active,
.link-button-small:active,
.robot-demo-launch-button:active,
#togglePapers:active,
.close:active {
  transform: scale(0.97);
}

.robot-demo-runtime-frame {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  background: #fffbf0;
}

.robot-demo-runtime-frame[hidden] {
  display: none;
}

.visitor-map-slot {
  display: grid;
  flex: 1 1 auto;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 35%, rgba(119, 187, 221, 0.18), transparent 35%),
    linear-gradient(135deg, #f5fafc 0%, #e8f2f8 100%);
}

.visitor-map-slot script {
  display: none;
}

.visitor-map-slot a,
.visitor-map-slot img,
.visitor-map-slot canvas,
.visitor-map-slot svg,
.visitor-map-slot iframe {
  max-width: 100%;
  max-height: 100%;
}

.visitor-map-fallback {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 320px;
  padding: 14px;
  color: #2f5368;
  text-align: center;
  text-decoration: none;
}

.visitor-map-fallback[hidden] {
  display: none;
}

.visitor-map-fallback img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.visitor-map-ready .visitor-map-fallback {
  display: none;
}

.visitor-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding: 9px 11px;
  color: #405b6b;
  border-top: 1px solid #e7eef4;
  background: #ffffff;
  font-size: 0.88rem;
}

.visitor-stat-row span {
  min-width: 112px;
}

.visitor-stat-row b {
  color: #153449;
}

/* Hidden full-mode Organization + Entrepreneurship columns */
.org-entre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.org-entre-grid details {
  min-width: 0;
}

@media (max-width: 760px) {
  .lab-window-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-row {
    display: flex;
    flex-direction: column;
  }

  .profile-intro,
  .profile-photo {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
  }

  .profile-intro {
    padding: 16px !important;
  }

  .profile-photo {
    order: -1;
    padding: 18px 16px 0 !important;
  }

  .profile-photo img {
    width: min(48vw, 180px) !important;
    margin: 0 auto !important;
  }

  .webname {
    padding-top: 8px;
    font-size: 28px;
  }

  .modal-content,
  #AwardModal .modal-content {
    box-sizing: border-box;
    width: calc(100% - 32px) !important;
    max-width: 520px;
    margin-top: 18% !important;
  }

  #cv-timeline,
  #tl-detail-panel {
    max-width: 100%;
    overflow-x: auto;
  }

  .org-entre-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  details summary::before,
  .btn-sm.badge-button,
  .paper-link-btn,
  .link-button,
  .link-button-small,
  .hoverZoomLink,
  .robot-demo-launch-button,
  #togglePapers,
  .close {
    transition-property: background-color, color, border-color, filter;
    transition-duration: 160ms;
  }

  details[open] summary::before,
  .btn-sm.badge-button:active,
  .paper-link-btn:active,
  .link-button:active,
  .link-button-small:active,
  .robot-demo-launch-button:active,
  #togglePapers:active,
  .close:active {
    transform: none;
  }
}
