/*!
 * Designed by AIR RAYA GROUP (http://www.airraya.com/)
 * Designed by iBlogger.ca (http://www.iblogger.ca/)
 */

@import url(https://fonts.googleapis.com/css?family=Codystar);
@import url(https://fonts.googleapis.com/css?family=Sacramento);
@import url(https://fonts.googleapis.com/css?family=Underdog);
@import url(https://fonts.googleapis.com/css?family=Wallpoet);

body, html {
  min-width: 1200px;
  width: 100%;
  overflow-x: auto;
}

.container {
  width: 1200px !important;
  max-width: 1200px !important;
  min-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.lab-navbar-strict {
  min-width: 1200px !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9998 !important;
}

@media (max-width: 1199px) {
  .container, .lab-navbar-strict {
    width: 1200px !important;
    min-width: 1200px !important;
    max-width: 1200px !important;
  }
}

/* 移除原有自适应相关样式 */
@media (max-width: 768px) {
  .lab-hero, .lab-hero-title, .lab-hero-subtitle, .lab-hero-desc, .lab-navbar .navbar-nav > li > a, .lab-logo img {
    font-size: inherit !important;
    padding: inherit !important;
    height: inherit !important;
  }
}

body {
    overflow-x: hidden;
	color: #4a4949;
  padding-top: 70px !important; /* 为固定导航栏留出空间 */
}
header {
	padding: 150px 0px 100px 0px;
	background: #10c4e5;
	background-image: -webkit-linear-gradient(right,#0093ff,#10c4e5);
    background-image: -o-linear-gradient(right,#0093ff,#10c4e5);
    background-image: -moz-linear-gradient(right,#0093ff,#10c4e5);
    background-image: linear-gradient(right,#0093ff,#10c4e5);
}

h1.article-title {
	color: #fff;
}
.article-meta {
	text-align: center;
}
.profile {
	width: 100px;
	margin: auto;
}
.designer {
	width: 50px;
}
span.name {
	color: #fff;
}
p.article-date {
	color: #fff;
}
h4.front, h1.front {
	color: #fff;
}
p {
    margin: 0 0 10.5px;
    line-height: 2;
	color: #4a4949;
}
p.white {
	color: #fff;
}
p.black {
	color: #000;
}
img.about {
	margin-top: 20px;
}
aside#sidebar {
	background: #f2f1eb;
	padding: 20px;
	margin-top: 20px;
}
img {
    border: 0;
    padding-bottom: 10px;
    display: block;
    max-width: 100%;
    height: auto;
	padding-top: 10px;
}
a.recent {
	font-size: 20px;
	
}
.btn-default {
    color: #2a2a2a;
    background-color: #f6f6f6;
    border-color: #f6f6f6;
}
.btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
    color: #ffffff;
    background-color: #e6d40e;
    border-color: #e6d40e;
}
.navbar-default {
    background-color: #f0cd0e;
}
.footer-above {
	background: #0093ff;
	color: #fff;
	padding: 40px 0px 40px 0px;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
    color: #06a4f6;
    background-color: transparent;
}
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
    color: #06a4f6;
    background-color: transparent;
}
.label-default {
    background-color: #f0cd0e;
}
a {
    color: #06a5f6;
    text-decoration: none;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background-color: #0dbce9;
}
.navbar-default .navbar-toggle {
    border-color: #fff;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    border-color: #0dbce9;
}
.footer-below {
	background: #fff;
	color: #18181a;
	padding: 20px 0px 5px 0px;
}
#backToTopBtn {
    position: fixed;
    bottom: 2em;
    right: 2em;
    text-decoration: none;
    color: white;
    background-color: rgba(0,0,0,0.3);
    display: none;
}
.btn-social {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 100%;
    text-align: center;
    font-size: 20px;
    line-height: 45px;
}
i.fa.fa-facebook {
	color: #fff;
}
i.fa.fa-twitter {
	color: #fff;
}
i.fa.fa-gitlab {
	color: #fff;
}
i.fa.fa-bitbucket {
	color: #fff;
}

/* 实验室首页与导航栏自定义样式，JSDoc注释风格 */
/**
 * @file mywebsite.css
 * @description 实验室首页与导航栏自定义样式，仿 group.imzcb.cn
 */

.lab-navbar {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.lab-logo img {
  border-radius: 50%;
  background: #f5f5f5;
}
.lab-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #222;
}
.lab-navbar .navbar-nav > li > a {
  font-size: 1.1em;
  color: #222 !important;
  padding: 18px 20px;
  transition: color 0.2s;
}
.lab-navbar .navbar-nav > li > a:hover,
.lab-navbar .navbar-nav > li.active > a {
  color: #1976d2 !important;
  background: none;
}

/* 首页大图区块 */
.lab-hero {
  position: relative;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.lab-hero-logo {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.lab-hero-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}
.lab-hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 18px;
  color: #e0e0e0;
}
.lab-hero-desc {
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto 28px auto;
  color: #f5f5f5;
}
.lab-hero-btn {
  font-size: 1.1em;
  padding: 12px 36px;
  border-radius: 30px;
  background: #1976d2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.lab-hero-btn:hover {
  background: #1256a2;
  color: #fff;
}

/* 导航栏菜单项悬停字体变蓝，背景不变色 */
.lab-navbar-strict .navbar-nav > li > a:hover,
.lab-navbar-strict .navbar-nav > li > a:focus {
  color: #2196f3 !important;
  background: none !important;
  text-decoration: none;
}

@media screen and (max-width: 900px) {
  html, body {
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  .container, .container-fluid, .research-page, .tools-section, .people-list, .person-card {
    width: 90vw !important;
    max-width: 90vw !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  .lab-navbar-strict {
    min-width: 0 !important;
  }
  /* 首页、人员、新闻等卡片一行一个 */
  .home-news-cards, .people-list, .people-cards, .card-group, .row {
    flex-direction: column !important;
    display: flex !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .home-news-card, .people-card, .card, .person-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto 16px auto !important;
    height: auto !important;
  }
  .home-news-card img, .people-card img, .card img, .person-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  /* 标题、正文、间距、字体缩小 */
  h1, h2, h3, h4, h5, h6 {
    font-size: 1.1em !important;
    word-break: break-all;
  }
  .publications-hero-title, .news-hero-title, .lab-hero-title {
    font-size: 1.2em !important;
    padding: 0 8px !important;
  }
  .article-entry, .publications-container, .news-list, .people-list, .tools-list {
    padding: 0 4px !important;
  }
  .publication-item, .news-card, .card, .person-card {
    padding: 10px 6px !important;
    margin-bottom: 12px !important;
  }
  /* 表格、iframe、图片自适应 */
  table, .table {
    width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
  }
  img, iframe {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
  /* footer自适应 */
  .footer-custom, #footer {
    font-size: 0.95em !important;
    padding: 18px 0 8px 0 !important;
    text-align: center !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .container.research-content {
    margin-left: 5vw !important;
  }
  .index-hero, .home-hero {
    height: 200px !important;
    min-height: 160px !important;
  }
  .index-hero + .row .front,
  .home-hero + .row .front,
  .front {
    margin-top: 72px !important;
  }
  .people-tab-btn {
    font-size: 1em !important;
    padding: 6px 18px !important;
    height: 36px !important;
    min-width: 80px !important;
    border-radius: 18px !important;
  }
  .person-block {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .person-card {
    width: 60vw !important;
    max-width: 60vw !important;
    min-width: 60 !important;
    height: 380px !important;
    min-height: 380px !important;
    max-height: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .person-card .person-photo {
    width: 50% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px !important;
  }
  .lab-navbar-strict {
    overflow: visible !important;
    z-index: 9999 !important;
  }
  .footer-custom a, #footer a {
    font-size: 0.85em !important;
  }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/**
 * @description 移动端导航栏logo和标题左移，紧贴屏幕左侧
 */
.lab-navbar-strict > div > div:first-child {
  margin-left: 0 !important;
}
.lab-navbar-strict img {
  margin-left: 0 !important;
}

/* 移动端导航菜单样式增强 */
.nav-mobile-toggle {
  z-index: 9999 !important;
}

.nav-mobile-menu {
  position: fixed !important;
  top: 70px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9997 !important;
  background: rgba(0, 0, 0, 0.92) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
  border-radius: 0 0 12px 12px !important;
  max-height: calc(100vh - 70px) !important;
  overflow-y: auto !important;
}

.nav-mobile-menu ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-mobile-menu li a {
  color: #fff !important;
  display: block !important;
  font-size: 1.2em !important;
  padding: 18px 0 !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-decoration: none !important;
}

.nav-mobile-menu li:last-child a {
  border-bottom: none !important;
}

/* 确保移动端菜单在所有页面都能正常显示 */
body {
  padding-top: 70px !important; /* 为固定导航栏留出空间 */
}

/**
 * @file 移动端导航栏样式
 * @description 仅在屏幕宽度<=900px时显示，logo和标题一行，菜单按钮一行，下拉菜单纵向排列且不溢出屏幕
 */
@media (max-width: 1024px) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobile-navbar {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
    position: fixed !important;
    left: 0; right: 0;
    z-index: 99999 !important;
    background: #000 !important;
  }
  .mobile-navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    background: #000 !important;
  }
  .mobile-navbar-logo-title {
    display: flex;
    align-items: center;
    margin-left: 8px !important;
  }
  .mobile-navbar-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1em !important;
    object-fit: cover;
    margin-left: 0 !important;
  }
  .mobile-navbar-title {
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.2;
    word-break: break-all;
    text-align: left !important;
  }
  .mobile-navbar-menu-btn {
    font-size: 1em !important;
    padding: 6px 18px !important;
    height: 36px !important;
    min-width: 80px !important;
    border-radius: 18px !important;
    background: #1976d2;
    color: #fff;
    border: none;
    cursor: pointer;
    outline: none;
    display: block;
    margin: 0 1em 0 0;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
  }
  .mobile-navbar-menu-btn:hover,
  .mobile-navbar-menu-btn:focus {
    background: #1256a2;
    color: #fff;
  }
  .mobile-navbar-menu {
    display: none;
    flex-direction: column;
    width: 100vw;
    background: #000 !important;
    position: absolute;
    left: 0;
    top: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-radius: 0 0 12px 12px;
    z-index: 99998 !important;
    animation: fadeInDown 0.2s;
  }
  .mobile-navbar-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 18px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: block;
    transition: background 0.2s;
  }
  .mobile-navbar-menu a:last-child {
    border-bottom: none;
  }
  .mobile-navbar-menu a:hover {
    background: #1976d2;
    color: #fff;
  }
  /* 隐藏PC端导航栏 */
  .lab-navbar-strict {
    display: none !important;
  }
  .footer-custom a, #footer a {
    font-size: 0.85em !important;
  }
  /* 为页面内容留出导航栏高度，避免被遮挡 */
  main, .container, .container-fluid {
    margin-top: 80px !important;
  }
}

@media (min-width: 1025px) {
  .mobile-navbar {
    display: none !important;
  }
}