/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6uyw4BMUTPHjx4wXiWtFCc.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url("/?originalUrl=https%3A%2F%2Ffonts.gstatic.com%2Fs%2Flato%2Fv15%2FS6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

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

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  color: #111;
  /* font-size: 14px; */
}

heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700
}

name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

li {
  margin: 5px 5px 5px 15px;
}

/* for selection by year / topic */
.pub-switch-row {
  margin: 10px 0;
  /* font-size: 17px; */
}

.pub-switch {
  color: #1772d0;
  cursor: pointer;
  font-weight: normal;
  pointer-events: auto;
}

.pub-switch.active {
  font-weight: bold;
  color: #111;
  cursor: default;
  pointer-events: none;
  /* 不可点击 */
}

.pub-year-link,
.pub-topic-link {
  color: #1772d0;
  cursor: pointer;
}

.pub-badge {
  color: red;
  font-weight: bold;
  margin-bottom: 2px;
  display: block;
}

.publication-table {
  width: 100%;
  border: none;
  border-spacing: 0;
  margin-bottom: 15px;
}

.pub-img-cell {
  width: 30%;
  vertical-align: center;
  text-align: center;
  padding-right: 20px;
}

.pub-img {
  max-width: 100%;
  max-height: 120px;
  /* border-radius: 6px; */
  /* 可根据图片风格微调 */
}

.pub-text-cell {
  vertical-align: center;
  padding-bottom: 3px;
}

.publication-title {
  font-weight: bold;
  /* font-size: 13px; */
  margin-bottom: 2px;
}

.publication-authors {
  /* font-size: 13px; */
  color: #777;
  /* font-style: italic; */
  margin-bottom: 2px;
}

.publication-venue {
  /* font-size: 13px; */
  color: #777;
  font-style: italic;
  margin-bottom: 2px;
}

.publication-links a {
  /* font-size: 13px; */
  color: #1772d0;
}


.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: linear-gradient(0deg, #1a237e 0%, #4b5ac0 100%);
  color: #fff;
  backdrop-filter: blur(8px);
  z-index: 999;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

.container {
  max-width: 810px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  height: 56px;
  /* 跟navbar高度一致 */
  box-sizing: border-box;
}

.navbar-left {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

.navbar-title {
  color: white;
}

.navbar-right a {
  color: white;
  text-decoration: none;
  margin-left: 32px;
  font-size: 16px;
  font-weight: normal;
  transition: color 0.2s;
}

.navbar-right a:hover {
  color: #f09228;
  text-decoration: underline;
}

body {
  /* 顶部留出导航栏高度 */
  padding-top: 56px;
}

html {
  scroll-behavior: smooth;
}

#home,
#group,
#teaching,
#talks,
#news,
#datasets,
#honors,
#contact,
h3[id^="year-"],
h3[id^="topic-"],
#publications-anchor,
#publications-list {
  scroll-margin-top: 50px;
}

.pub-sticky-header {
  position: sticky;
  scroll-margin-top: 50px;
  top: 50px;
  /* 导航栏高度 */
  background: #fff;
  z-index: 10;
  padding: 8px 0 4px 0;
  font-size: 18px;
  /* font-weight: bold; */
  border-bottom: 1px solid #eee;
}

/* 悬停注释 */
.hint {
  position: relative;
  border-bottom: 1px dotted #999;
}
.hint-img{
  position: relative;   /* tooltip 定位锚点 */
  border: none;         /* 明确不要虚线 */
  cursor: default;
}
/* tooltip 本体 */
.hint::after,
.hint-img::after
{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(-30px);
  transform: translateX(-50%);
  background: rgba(34,34,34,0.95);
  color: #fff;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}
/* hover 即刻显示 */
.hint:hover::after,
.hint:hover::before,
.hint-img:hover::after,
.hint-img:hover::before 
{
  opacity: 1;
}

/* ===== 图片卡片 ===== */
.photo-wrap{
  display: inline-block;
  position: relative;            /* tooltip 定位锚点 */
  border-radius: 12px;
  overflow: visible;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.photo-wrap img{
  width: 100%;
  max-width: 100%;
  display: block;
}
/* ===== hover 提升（可选） ===== */
.photo-wrap:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
