@charset "UTF-8";
/**
 * 
 * @authors Han Zhao (han.zhao@uwaterloo.ca)
 * @modified by Jiaxin Gao
 * @date    2014-11-22 22:24:31
 * @version $Id$
 */
body {
    background-color: #f8f9fa;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0px;
    padding-top: 60px;
    padding-bottom: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bio-text {
    font-size: 15px;        
    font-weight: 350;      
    line-height: 1.6;
}

.name-cn{
    line-height: 1.5;
    font-family:
        "Kaiti SC",          /* macOS */
        "STKaiti",           /* macOS older */
        "KaiTi",             /* Windows */
        "KaiTi_GB2312",      /* Windows older */
        "DFKai-SB",          /* Traditional Chinese systems */
        serif;

    font-weight: 750;
}

html {
  position: relative;
  min-height: 100%;
}

/*.navbar-default {
    background-image: -webkit-linear-gradient(top, #f1f2e5 0%, #dfdfdf 100%);
    background-image: linear-gradient(to bottom, #f1f2e5 0%, #dfdfdf 100%);
}
*/
/* Bootstrap 5 navbar styling */
.navbar-brand {
    color: #800000 !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #800000 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #f09228 !important;
    transform: translateY(-1px);
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover{
  color: #333;
}

bg-primary:hover{background-color:#b00}

.navbar .nav > li.dropdown.open.active > a:hover, 
.navbar .nav > li.dropdown.open > a {
    color: #f1f2e5;
    /* background-color: #297ACC; */
    background-color:#b00;
    border-color: #f1f2e5;
}

.navbar .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar .navbar-nav .open .dropdown-menu > li > a:focus,
.navbar .navbar-nav .open .dropdown-menu > .active > a,
.navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
  color: #f1f2e5 !important;
  /* background-color: #428bca !important; */
  background-color: #666 ;
}

.dropdown-menu li {
    font-size: 1.1em;
}

.dropdown-menu li>a:hover {
    color: #f1f2e5;
    /* background-color: #297ACC; */
    background-color:#b00;
    border-color: #f1f2e5;
}

.footer {
  width: 100%;
  padding: 1px 0;
  margin-top: 20px;
}


.container .text-muted {
  margin: 20px 0;
}

.img_responsive{
  max-width: 60%;
  max-height: 80%;
}

/* Academic red color scheme */
a {
  /*b00;*/
  color: #b00;
  transition: color 0.3s ease;
  text-decoration: none;
}

a:hover, a:focus {
  color: #f09228;
}

/* Button styling to match academic theme */
.btn-outline-primary {
    border-color: #b00;
    color: #b00;
}

.btn-outline-primary:hover {
    background-color: #b00;
    border-color: #b00;
}

/* Card and modern elements */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

/* Alert styling for academic sections */
.alert {
    border-radius: 8px;
}

.border-primary {
    border-color: #b00 !important;
}

.border-secondary {
    border-color: #6c757d !important;
}

a.menu-hobby {
  color: #b00 !important; 
}

/* Fix scroll offset for fixed navbar */
html {
  scroll-padding-top: 70px;
  scroll-behavior: smooth;
}

/* Modern spacing and typography */
.display-5 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.lead {
    font-size: 0.95rem;
    color: #6c757d;
}

/* Social links hover effects */
.navbar-nav .nav-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.2);
}

/* Container width constraints */
.container {
    max-width: 1050px;
}

/* Compact styling for academic layout */
h2.h3 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.1rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.alert {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .d-flex.flex-wrap.gap-2 {
        justify-content: center;
    }
    
    .img-fluid {
        max-width: 200px;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .alert {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
    }
}

.fafont {
  font-family: "Lato", "Segoe UI", "Calibri", sans-serif;
  color: #800000;          /* UIUC academic red */
  font-weight: 500;
}
/*News*/
.news-card {
  border-radius: 12px;
  overflow: hidden; 
}

.news-header {
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
}

.news-header h5 {
  font-size: 1rem;   
  margin: 0;
}

.news-row {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
}

.news-row-last {
  border-bottom: none;
}

.news-year {
  width: 72px;
  flex: 0 0 72px;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.news-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.news-item {
  color: #212529;
  font-weight: 350;
  line-height: 1.3;
}



/* Mobile responsive */
@media (max-width: 768px) {
  .news-row {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }
  .news-year {
    width: 56px;
    flex-basis: 56px;
    font-size: 1rem;
  }
}



/* Publications Section */
.card-header {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.pub-card {
  border: 1px solid #e9ecef;      /* 更清晰的边界 */
  border-radius: 12px;
  overflow: hidden; 
}
.pub-body {
  font-size: 0.95rem;             /* 跟你 lead / bio 视觉一致 */
  color: #212529;
}

.pub-entry {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Publications Left Img */
.pub-thumb {
  flex: 0 0 25%;
  max-width: 22%;
  height: 110px;              /* 固定高度 */
  display: flex;
  align-items: top;
  justify-content: center;
  overflow: hidden;
}
.pub-thumb img {
  width: 100%;
  border-radius: 12px;
  display: block;
  
}

/* Publications Right Content */
.pub-content {
  flex: 1 1 auto;
}
.pub-title {
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  font-family: "Lato", "Segoe UI", "Calibri", sans-serif;
}
.pub-authors {
  font-size: 0.85rem;
  font-weight: 300;
  color: #070707;
  font-family: "Lato", "Segoe UI", "Calibri", sans-serif;
}
.pub-authors b {
  font-weight: 700;   /* 恢复粗体 */
  color: #000;        /* 可选：更明显 */
}
.pub-venue {
  font-size: 0.85rem;
  color: #800000;
  line-height: 1.35;
  font-weight: 500;
}
.pub-venue {
  margin-top: 0.15rem;
}
.pub-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
  margin-bottom: 0.5rem;
}
/* buttons */
.pub-button {
  display: inline-block;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;

  user-select: none;          /* ← 加这一行 */
  -webkit-user-select: none;  /* Safari */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* IE */
}
/* primary = pdf */
.pub-button.primary {
  /* background-color: #b00; */
  border-color: #b00;
  color: #b00;
}
.pub-button.primary:hover {
  background-color: #b00;
  border-color: #b00;
  color: #f1f2e5;
}
/* secondary = code */
.pub-button.secondary {
  border-color: #b00;
  color: #b00;
}
.pub-button.secondary:hover {
  background-color: #b00;
  color: #f1f2e5;
}
/* text buttons */
.pub-button.text {
  border-color: #dee2e6;
  color: #495057;
}
.pub-button.text:hover {
  border-color: #ff770f;
  color: #ff770f;
}
.pub-toggle {
  font-size: 0.8rem;
  display: none;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e9ecef;
  color: #212529;
}
.pub-toggle pre,
.pub-toggle code,
.pub-toggle span {
  white-space: pre-wrap;      /* 保留换行 + 自动换行 */
  word-break: break-word;     /* 超长 URL 自动断行 */
  overflow-wrap: anywhere;    /* 最强换行支持 */
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}
.pub-bib {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.7rem;
  overflow-x: auto;
  white-space: pre;
}

/* divider */
.pub-divider {
  margin: 1.25rem 0;
  border-top: 1px solid #e9ecef;
}
/* Publications Section End*/


/* Mobile */
@media (max-width: 768px) {
  .pub-entry {
    flex-direction: column;
  }
  .pub-thumb {
    max-width: 100%;
    flex-basis: auto;
  }
}


/* EDU experience Section */
.edu-entry {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}

.edu-left {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.edu-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 3px;   
}
.edu-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  line-height: 1.2;
}
.edu-school {
  font-size: 17px;
  font-weight: 600;
}
.edu-school a {
  font-family: "Lato", "Segoe UI", "Calibri", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #800000;
  text-decoration: none;
}
.edu-school a:hover {
  color: #f09228;
}
.edu-detail {
  font-family: "Lato", "Segoe UI", "Calibri", sans-serif;
  font-size: 12px;
  color: #444;
}
.edu-time {
  font-family: "Lato", "Segoe UI", "Calibri", sans-serif;
  font-style: italic;
  color: #555;
  white-space: nowrap;
  margin-left: 15px;
}
/* EDU experience Section End */


.homepage-name {
    font-family: "Lato", "Segoe UI", "Calibri", sans-serif;
    font-size: 2.4rem;
    font-weight: 500;
}