@charset "UTF-8";
/* yolv custom css for bootstrap 4.6.2 */

/* Global & Reset */
html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  overflow-x: hidden;
}
/* ul,
ol {
  margin: 0;
  padding: 0;
} */

/* Navbar & Logo */
.navbar .logo {
  width: 120px;
  height: 40px;
  display: block;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  background: url(/static/yolvs/img/logo-w.png) no-repeat center/contain;
}

/* Navbar Hover (Desktop) */
@media (min-width: 992px) {
  .navbar .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Offcanvas (Mobile) */
@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 100%;
    width: 100%;
    padding: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #3c8ce5;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1040;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
  }
}

/* Breadcrumb  */
.breadcrumb {
  font-size: 0.9rem;
  background-color: #f8f9fa;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

/* Pagination */
.pagination .page-link {
  color: #337ab7;
}
.pagination .page-item.active .page-link {
  background-color: #337ab7;
  border-color: #337ab7;
}

/* Carousel Optimized */
.carousel-inner img {
  /* width: 527px; */
  width: 100%;
  /* height: auto; */
  height: 238px;
  /* max-height: 400px; */
  object-fit: cover;
}

.carousel-caption {
  right: 5%;
  left: 5%;
  bottom: 0px;
  /* bottom: 1.25rem; */
  /* padding-bottom: 20px; */
}
.carousel-caption h3 {
  display: inline-block;
  /* padding: 0.3rem 0.6rem; */
  padding-right: 3px;
  background: rgba(0, 0, 0, 0.4);
  /* font-size: 1.2rem; */
  /* letter-spacing: 1px; */
}

/* Content List (liA, liB, liC) */
.liA,
.liB,
.liC {
  list-style: none;
  padding-left: 0;
}
.liA li::before,
.liB li::before,
.liC li::before {
  content: "";
  display: inline-block;
  margin-right: 4px;
  transform: translateY(-50%);
  vertical-align: middle;
}
.liA li::before {
  width: 3px;
  height: 3px;
  background: #999;
  border-radius: 50%;
}
.liB li::before {
  width: 3px;
  height: 3px;
  background: #999;
}
.liC li::before {
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid #999;
}

/* Card Improvements */
/* .card, .card-body {
  overflow: hidden;
} */
.card-body li {
  line-height: 2;
  white-space: nowrap;
  overflow: hidden;
  /* text-overflow: ellipsis; */ /* 补上旧版的截断效果 */
}
.card h2 {
  font-size: 1.1rem;
  height: 40px;
  line-height: 40px;
  padding-top: 0;
  margin-bottom: 0;
}

.card h2 a {
  color: #fff;
  text-decoration: none;
}

.card h2 small{float:right;}

.card-title {
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  /* text-overflow: ellipsis; */
}

/* Images & Media */
.pics small {
  font-size: 90%;
}
.main .pics img, .aside .pics img {
  height: 110px; /* Fixed height might distort, suggest object-fit */
  object-fit: cover;
}
.card .media img {
  width: 110px;
  height: 80px;
  object-fit: cover;
}
.media-body {
  min-width: 0;
  overflow: hidden;
}
.card .media h3{
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  /* text-overflow: ellipsis; */
}
.card .media p {
  font-size: 0.75rem;
  margin: 0;
}

.list .media h3 {
  font-size: 1.1rem;
}
.list .media span {
  color: #999;
}
.list .media p {
  font-size: 0.9rem;
  color: #666;
}

/* Article */
.article h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.article .content {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}
.article .content p {
  text-indent: 2em;
  margin-bottom: 1rem;
}
.article .content img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}
.article .armeta, .article .artool {
  font-size: 0.9rem;
  color: #666;
}

/* ==========================================================================
   4. Utility Classes & Footer
   ========================================================================== */
.text-truncate-single {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#footer {
  margin: 2em 0;
  /* border-top: 1px solid #2780e3; */
  border-top: 1px solid #666;
  padding-top: 1em;
}
/* 利用Flexbox替代float */
.footer ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.footer li {
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  margin-right: 1em;
  margin-bottom: 0.5em;
  line-height: 2;
  font-size: 0.85rem;
  font-weight: normal;
}
.footer-links a {
  color: #373a3c;
  margin-left: 0.5em;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  background-color: #1a73e8;
  border: none;
  border-radius: 50%;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
}

/* 图标 */
.back-to-top::before {
  content: "\F286"; /* bi-chevron-up */
  font-family: "bootstrap-icons";
  font-size: 18px;
  line-height: 1;
  color: #fff;
  display: block;
}

/* 显示状态 */
.back-to-top.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-10px);
}

/* Hover */
.back-to-top:hover {
  background-color: #0056b3;
  transform: translateY(-10px) scale(1.1);
}

/* Active（点击反馈） */
.back-to-top:active {
  transform: translateY(-10px) scale(0.95);
}

/* Tag Cloud */
.tags {
  margin: 0;
  padding: 5px;
  line-height: 2.6;
}
.tags a {
  display: inline-block;
  margin: 0 10px 10px 0;
  transition: transform 0.2s;
}
.tags a:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
/* Tag Colors - Consider moving to utility classes or inline styles if dynamic */
.tagc1 {
  color: darkolivegreen;
}
.tagc2 {
  color: blue;
}
.tagc3 {
  color: blueviolet;
}
.tagc4 {
  color: brown;
}
.tagc5 {
  color: cadetblue;
}
.tagc6 {
  color: green;
}
.tagc7 {
  color: coral;
}
.tagc8 {
  color: cornflowerblue;
}
.tagc9 {
  color: deeppink;
}

/* Sitemap & Links*/
.sitemap h2 {
  border-bottom: 2px solid #ccc;
  font-size: 1.2rem;
  padding-bottom: 3px;
  margin-bottom: 15px;
}
.linkbox {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
}
.linkbox h3, .linkbox h3 a {
  font-size: 1rem;
  color: #693;
}
.f6, .f5 {
  width: 100%;
  padding-bottom: 10px;
  overflow: hidden;
}
.f6 li, .f5 li {
  float: left;
  padding: 8px 10px 0;
  white-space: nowrap;
  list-style: none;
}
.f6 li a, .f5 li a {
  color: #666;
}
.f5 li a img {
  border: 1px solid #eee;
  padding: 1px;
}