/* laok */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
/* Bootstrap 4 theme styles */
/* 全局样式 */

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px; /* 滚动条宽度 */
    height: 8px; /* 滚动条高度 */
}
::-webkit-scrollbar-thumb {
    background-color: #888; /* 滚动条颜色 */
    border-radius: 4px; /* 圆角 */
}
::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* 鼠标悬停时的颜色 */
}

html {
  position: relative; 
  min-height: 100%; 
}
body {
	top:45.29px;
    width: 100%;
    min-height: 100vh; /* 确保高度撑满整个视口 */
    margin: 0; /* 移除默认边距 */
   
    /* 备用方案（兼容旧浏览器） */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* 确保内容在背景之上 */
    position: relative;
    z-index: 1;
}

/* 定义body a标签全局颜色变量 */
:root {
    --body-a-color: #6c757d;
}
body a{
    color: var(--body-a-color);
    /* text-decoration: none; */
}


.navbar {
	padding: 0;
	position: fixed; /* 固定定位 */
	top: 0;          /* 贴顶 */
	left: 0;         /* 贴左 */
	width: 100%;     /* 撑满视口宽度 */
	z-index: 1000;   /* 确保导航栏在最上层 */
  /* height: 60px; */
}

.navbar .container a{
  /* color: #777; */
  text-decoration: none;
  /* font-weight: bold; */
  /* padding: 0.4rem .4rem; */
}
    
.navbar .navbar-brand > img {
	width:36px;
	height:auto;
	align-content: center;
	/* padding-bottom: 10px; */
	display: unset;
}

/* .navbar-toggler {
    padding: .3rem .3rem;
    font-size: 1rem;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: .8rem;
    margin-right: 3px;
} */

.search-details {
	font-size: 12px;
}
.search-row:last-child hr {
	display: none;
}

.search-wrapper .search-input {
    width: 80%;
    display: inline-block;
	/* 字体取反色、加粗 */
    color: #333;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
    background-color: #ffffffde;
}
.search-wrapper .search-input:focus {
    border-color: #73a8ed;
    box-shadow: none;
}

.search-submit {
    display: inline-block;
    border-radius: 4px;
    background: #eee;
    border: 1px solid #ddd;
    vertical-align: top;
	width: 32px;
    height: 32px;
}
.search-result-item {
	margin-bottom: 0.8rem;
	/* padding: 1rem; */
	/*background: #fff;*/
	/* border: 1px solid #dee2e6; */
	border-radius: 0.375rem;
	transition: box-shadow 0.2s ease;
}



.search-result-item:hover {
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
}

.search-result-item img {
	width:100%;
}
.result-title {
	margin: 0.5rem 0;
}

.result-summary {
	line-height: 1.6;
	margin: 0.75rem 0;
	max-width: 100%;
	overflow: hidden;
}

/* 断词解决方案 */
.text-break {
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
  
}

/* 保证在移动端的正常截断 */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; /* 修复flex容器中的截断问题 */
}

/* 缩略图 */
.result-thumbnail img {
	border-radius: 0.25rem;
	width: 100%;
	height: auto;
	aspect-ratio: 3/2;
	object-fit: cover;
	padding: 1rem;
}

.item-thumbnail-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2; /* 保持宽高比 */
    object-fit: cover; /* 保持图片比例 */
    border-radius: 0.25rem; /* 圆角 */
}
/* 
.blog-item{
	margin-bottom: 1.2rem;
	padding: 10px 10px 10px 10px;
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.8rem;
	transition: box-shadow 0.2s ease;
}
.blog-item:hover {
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
	border: 1px solid #4bf34b;
}
*/

.list-blog {
  margin: 1rem 0;
  /* padding: 1rem; */
  /* background: #fff; */
  /* border: 1px solid #dee2e6; */
  border-radius: 0.3rem;
  /* transition: box-shadow 0.2s ease; */
}

.blog-item-images .blog-item-meta .list-blog-date {
	padding: 0 0 0 0.2rem;
	border-radius: 0.8rem 0.8rem 0 0;
}


.card-header {

    border-bottom: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0.3rem 0.3rem 0 0;
}

.pb-3, .py-3 {
    padding-bottom: 0rem !important;
}
.pt-3, .py-3 {
    padding-top: 0rem !important;
}

.card-header a {
    /* filter: invert(1); */
    text-decoration: none;
    font-weight: bold;
}

.card-body {
	/*padding: 0.5rem;*/
	/* font-size: 16px; */
	padding: 0.8rem;
  flex: unset;
}


/* .card-footer {
    padding: .2rem .2rem;
}

.card-footer-blog  a {
    color: #fff;
    text-decoration: none;
} */

.badge {
  display: inline-block;
  padding: .25em .4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  /* border-radius: 0rem; */
  margin: 0.1rem 0.1rem;
  background-color: #77777701;
  
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}


.card-footer-search {
	margin: 0.5rem 1rem 0.5rem 1rem;
}
.card-footer-search  a {
    color: #fff; /* 字体颜色 */
    text-decoration: none;
}



.btn-group .btn{
	margin: 0.3rem .3rem 0.3rem .3rem;
}


@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}


.list-group-item {
  position: relative;
  display: block;
  padding:0.75rem 0.75rem;
  background-color: #ffffff70; 
  /* border: 1px solid rgba(0, 0, 0, .125); */
  animation: fadeIn 2s ease-in-out; /* 淡入效果 */
}

.list-group-item a{
	color: var(--body-a-color);
	text-decoration: none;
}
.list-group-item a:hover{
	color: var(--body-a-color);
	text-decoration: none;
}
.list-group-title{
  font-weight: bold;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-title {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 10px;
}

.container {
	/*width: auto;*/
	max-width: 1280px;
	/* padding: 0 15px; */
  /* 移除默认背景 */
	/* background-color: transparent;  */
	border: none; /* 移除默认边框 */
}

.container a{
	/* 字体颜色 */
  /*color: #6c757d;*/
  text-decoration: none;
}


/* 标签悬停效果 */
.hover-bg-primary:hover {
    background-color: var(--bs-primary)!important;
    color: white!important;
}

/* 链接箭头动效 */
.icon-link-hover i {
    transition: transform 0.2s ease;
}
.icon-link:hover i {
    transform: translateX(4px);
}

.tags {
  margin: 0 0.1rem 0 0.1rem;
}
.label-primary {
    background-color: #4287eed1;
    color: #fff;
}
.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    text-decoration: none;
}

/* Typography */
/* Tables */
table {
  width: 100%;
  border: 1px solid #f0f0f0;
  margin: 30px 0; }

th {
  font-weight: bold;
  background: whitesmoke;
  padding: 5px; }

td {
  padding: 5px;
  border: 1px solid #f0f0f0; }

/* Notice Styles */
blockquote {
  margin-bottom: 1rem;
  padding-left: 20px;
  font-size: 1.25rem; }
  blockquote cite {
    display: block;
    font-size: 80%;
    color: #666666; }
    blockquote cite::before {
      content: "\2014 \00A0"; }
  blockquote > blockquote > blockquote {
    margin: 0; }
    blockquote > blockquote > blockquote p {
      padding: 15px;
      display: block;
      margin-top: 0rem;
      margin-bottom: 0rem;
      border: 1px solid #f0f0f0; }
    blockquote > blockquote > blockquote > p {
      /* Yellow */
      margin-left: -75px;
      color: #8a6d3b;
      background-color: #fcf8e3;
      border-color: #faebcc; }
    blockquote > blockquote > blockquote blockquote > p {
      /* Red */
      margin-left: -100px;
      color: #a94442;
      background-color: #f2dede;
      border-color: #ebccd1; }
    blockquote > blockquote > blockquote blockquote > blockquote > p {
      /* Blue */
      margin-left: -125px;
      color: #31708f;
      background-color: #d9edf7;
      border-color: #bce8f1; }
    blockquote > blockquote > blockquote blockquote > blockquote > blockquote > p {
      /* Blue */
      margin-left: -150px;
      color: #3c763d;
      background-color: #dff0d8;
      border-color: #d6e9c6; }

.default-animation {
  transition: all 0.5s ease; }

.pulse {
  animation-name: pulse_animation;
  animation-duration: 2000ms;
  transform-origin: 70% 70%;
  animation-iteration-count: infinite;
  animation-timing-function: linear; }

@keyframes pulse_animation {
  0% {
    transform: scale(1); }
  30% {
    transform: scale(1); }
  40% {
    transform: scale(1.08); }
  50% {
    transform: scale(1); }
  60% {
    transform: scale(1); }
  70% {
    transform: scale(1.05); }
  80% {
    transform: scale(1); }
  100% {
    transform: scale(1); } }
/* images responsive */
img {
  max-width: 100%; 
  width: 100%;}

/* Center the footer text */
.container .text-muted {
  /* margin: 20px 0; */
  /* text-align: center;  */
}


/* Sticky footer styles
-------------------------------------------------- */


.header {
  background-color: #563f79;	    
  padding-top: 30px;
  padding-bottom: 50px;
  text-align: center;
  color: #f5f2f8; 

}
  .header h1 {
    font-size: 60px;
    color: #f0f0f0;
    margin-top: 65px; }
    @media only all and (min-width: 48rem) and (max-width: 59.938rem) {
      .header h1 {
        font-size: 40px; } }
    @media only all and (max-width: 47.938rem) {
      .header h1 {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 2.5rem; } }
  .header h2 {
    margin-top: 65px;
    font-weight: normal; }
    @media only all and (min-width: 48rem) and (max-width: 59.938rem) {
      .header h2 {
        font-size: 30px; } }
    @media only all and (max-width: 47.938rem) {
      .header h2 {
        font-size: 25px; } }
  .header .btn {
    font-size: 1.375rem;
    padding: 10px 30px;
    margin-top: 30px;
    border-radius: 3px;
    box-shadow: none;
    border: 0; }
    @media only all and (max-width: 47.938rem) {
      .header .btn {
        font-size: 1.25rem; } }

.main-content {
  margin-top: 2rem; }

.list-group {
  margin-top: 15px; 
}

.footer {
	/* position: absolute; */
    margin: 0;
    padding: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: auto;
    /*background-color: #f5f5f5;*/
    background-color: rgba(255,255,255,0.6); 
    backdrop-filter: blur(8px);
    /* z-index: 1000; /* 确保在其它元素之上 */
    text-align: center
    text-decoration: none;
}

.footer p{
  text-align: center;
  padding-bottom: 0;
  margin-bottom: 0;
}
.footer a{
	margin: 0;
	padding: 0;
	color: #6c757d; /* 字体颜色 */
    text-decoration: none;
}



.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center; }
  .hero.hero-fullscreen {
    height: 100vh; }
  .hero.hero-large {
    height: 500px; }
  .hero.hero-medium {
    height: 400px; }
  .hero.hero-small {
    height: 110px; }
  .hero.hero-tiny {
    height: 8rem; }
  .header-fixed .hero {
    background-position: 50% 0; }
  .hero #to-start {
    display: inline-block;
    position: absolute;
    bottom: 10px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2; }


.blog-header-image {
  margin: 15px 0; }

.sidebar-content {
  /* margin-bottom: 50px;  */
}




.related-pages {
  padding: 0;
  list-style: none; }
  .related-pages li {
    border-bottom: 1px solid #f0f0f0;
    line-height: 34px; }
    .related-pages li:last-child {
      border-bottom: 0; }
    .related-pages li a {
      display: block; }
  .related-pages .score {
    display: block;
    float: right;
    color: #999;
    font-size: 85%; }

.btn-file {
  position: relative;
  overflow: hidden; }
  .btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block; }

.modular .features {
  padding: 3.125rem 0;
  text-align: center; }
  .modular .features h2 {
    margin: 0;
    line-height: 100%; }
  .modular .features h2 + h3 {
    margin-top: 0;
    font-weight: normal; }
  .modular .features h4 {
    margin: 0.625rem 0; }
  .modular .features p {
    margin: 10px 0;
    font-size: 17px; }
    @media only all and (max-width: 47.938rem) {
      .modular .features p {
        font-size: 14px; } }
  .modular .features .feature-items {
    margin-top: 30px; }
    .modular .features .feature-items .feature {
      display: block;
      vertical-align: top;
      margin-top: 20px;
      margin-bottom: 10px; }
      .modular .features .feature-items .feature i.fa {
        font-size: 2.5rem;
        color: #62488A; }
      .modular .features .feature-items .feature h4 {
        font-size: 1rem;
        font-weight: normal; }
      .modular .features .feature-items .feature p {
        font-size: 14px;
        margin: 5px 0 10px; }
  .modular .features.big {
    text-align: center; }
    .modular .features.big .feature {
      margin: 30px 0; }
      .modular .features.big .feature.has-icon {
        display: flex; }
        .modular .features.big .feature.has-icon i.fa {
          flex: 0 0 auto;
          font-size: 3.125rem; }
        .modular .features.big .feature.has-icon .feature-content {
          flex: 1 1 auto; }
          .modular .features.big .feature.has-icon .feature-content.push {
            margin-left: 35px; }
      .modular .features.big .feature .feature-content {
        padding-right: 15px; }
        .modular .features.big .feature .feature-content h4 {
          font-size: 1.5rem;
          text-align: left;
          margin: 0; }
        .modular .features.big .feature .feature-content p {
          padding: 0;
          text-align: left;
          font-size: 14px; }

.callout {
  background: #f0f0f0;
  color: #666666;
  padding: 15px 15px; }
  .callout:after {
    content: "";
    display: table;
    clear: both; }
  .callout .container h2 {
    padding-top: 1.25rem; }
  .callout .container img.float-md-left {
    margin-right: 2rem; }
  .callout .container img.float-md-right {
    margin-left: 2rem; }
  @media only all and (max-width: 47.938rem) {
    .callout .container img {
      margin-bottom: 1rem; }
      .callout .container img.float-md-left, .callout .container img.float-md-right {
        margin: 0 auto; } }

.modular .modular-row:last-child {
  margin-bottom: 2rem; }
.modular .modular-anchor {
  display: block;
  position: relative;
  top: -50px;
  visibility: hidden; }

body.fixed-nav {
  padding-top: 50px; }

#grav-login {
  max-width: 50rem !important; }
  #grav-login .col-sm-2 {
    width: 50%;
    text-align: right;
    padding-top: 5px; }
  #grav-login .col-sm-10 {
    width: 50%; }
  #grav-login form {
    padding-top: 30px; }
  #grav-login .rememberme {
    float: right !important; }
  #grav-login .form-actions button {
    margin-top: 50px; }
  #grav-login .form-actions .button.secondary {
    line-height: 26px; }
    #grav-login .form-actions .button.secondary i {
      line-height: 26px; }
  #grav-login .button {
    vertical-align: bottom !important; }

/*# sourceMappingURL=theme.css.map */



/* 添加样式 */
.baidu-style-grid {
    margin: 0 -8px;
}

.grid-item {
    padding: 8px;
    break-inside: avoid;
}

.lazy-img {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.lazy-img.loaded {
    background: transparent;
}

.image-overlay {
    opacity: 0;
    background: rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.grid-item:hover .image-overlay {
    opacity: 1;
}

.hover-actions {
    transform: translateY(20px);
    transition: 0.3s ease;
}

.grid-item:hover .hover-actions {
    transform: translateY(0);
}

.lightbox-image {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.lightbox-image.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

@media (max-width: 768px) {
  .grid-item {
      width: 50% !important;
  }
}



.blog-list-item {
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
}

.object-fit-cover {
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-list-item:hover .object-fit-cover {
  transform: scale(1.03);
}



/* 优化图片区域容器 */
.list-img {
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  min-height: 120px; /* 保持最小高度，避免缩小时变形 */
  height: 100%;
  width: 100%;
  /* 背景取反色 */
  /* background-color: rgba(255, 255, 255, 0.8); */
  overflow: hidden; /* 隐藏溢出内容 */
  /* background-color: rgba(0, 0, 0, 0.3); */
  /* padding: 0.5rem; */
  box-sizing: border-box;
  border-radius: 0.25rem;
  margin-left: 0.25rem;

}

.list-img img {
  width:100%;
  /* 保持图片比例 */
  /* object-fit: cover;  */
  margin-left: 0.5rem;
}

/* 图片样式 */
.object-fit-contain {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
}

.list-item {
  padding-top: 0;
  padding-bottom: 0;

}



@media (max-width: 768px) {
  .list-img {
    border-radius: unset; /* 移除圆角 */
    margin-left: unset; /* 移除左边距 */
  }

  .list-img img {
    width:100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例 */
    margin-left: unset; /* 移除左边距 */
    
  }
  .list-item {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}



