* {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
}

.box {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article {
  padding: 0.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 300;
}



.new-mobile-navbar {
  position: fixed;
  top: auto;
  
  bottom: 0px;
  background-color: var(--bs-body-bg);
  padding: 1rem 0;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.02);
  display: none;
  animation: Into 1s ease;
  transition: all 0.5s;
  z-index: 999;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.menu {
  display: none;
  position: absolute;
  bottom: 100%;
  /* 从底部向上弹出 */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bs-body-bg);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  margin-bottom: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu.active {
  display: flex;
  gap: 1rem;
  opacity: 1;
  visibility: visible;
  animation: slideUp 0.3s ease forwards;
}

#article {
  position: relative;
  cursor: pointer;
}

/* 遮罩层 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.navbar-head {
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3333;
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 10%;
  background-color: rgba(13, 110, 253, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: rgba(13, 110, 253, 1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
  transform: translateY(0);
}
@font-face {
    font-family: "阿里妈妈方圆体 VF Regular";src: url("https://ilogs.cn/assets/font/AlimamaFangYuanTiVF-Thin.woff2") format("woff2"),
  url("https://ilogs.cn/assets/font/AlimamaFangYuanTiVF-Thin.woff") format("woff");
  font-display: swap;
}
/* 媒体查询 - 仅在屏幕宽度小于996px时显示导航栏*/
@media (max-width: 996px) {

:root, [data-bs-theme=dark] {
    --bs-font-sans-serif: "阿里妈妈方圆体 VF Regular", -apple-system, SF UI Text, Arial, sans-serif;
    --bg-auto-rgb: 10, 12, 25;
    --link-color-rgba: 222, 226, 230, 0.8;
    --link-color-second-rgba: 222, 226, 230, .65;
    --primary-color-rgba: 13, 110, 253;
    --primary-bg-rgba: 13,110,253, .2;

}

:root, [data-bs-theme=light] {
    --bg-auto-rgb: 242, 241, 246;
    --bs-font-sans-serif: "阿里妈妈方圆体 VF Regular", -apple-system, SF UI Text, Arial, sans-serif;
    --link-color-rgba: 0, 0, 0, 1;
    --link-color-second-rgba: 0, 0, 0, .65;
    --primary-color-rgba: 13, 110, 253;
    --primary-bg-rgba: 13,110,253, .2;
}

  .new-mobile-navbar {
    display: flex;
	
  }

  body {
    padding-bottom: 80px;
  }
}


@media (max-width: 576px) {
  .new-mobile-navbar {
   width: 100%;
	
  }


}



/* 进入动画 */
@keyframes Into {
  0% {
    opacity: 0;
    transform: translateY(100%) translateX(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0%) translateX(0);
  }
}

/* 菜单向上滑动动画 */
@keyframes slideUp {
  0% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}
