/* ============================================================
   导航居中 / 回到顶部 / 运行时间
   ============================================================ */

/* ---------- 导航栏：logo 左、菜单居中、搜索右 ---------- */
@media screen and (min-width: 1100px) {
  #nav {
    position: relative;
  }

  #nav .menus_items {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 2px;
  }
}

/* ---------- 回到顶部（环形进度） ---------- */
#np-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbe6ef;
  background: rgba(20, 25, 32, .62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}

#np-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#np-top:hover {
  background: rgba(91, 124, 153, .55);
  color: #fff;
}

#np-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#np-top svg circle {
  fill: none;
  stroke-width: 2;
}

#np-top .np-top-bg {
  stroke: rgba(255, 255, 255, .12);
}

#np-top .np-top-bar {
  stroke: #8fb7d1;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transition: stroke-dashoffset .15s linear;
}

#np-top i {
  position: relative;
  z-index: 1;
  font-size: 15px;
}

/* 原来的回到顶部按钮先隐藏，避免两个箭头 */
#rightside #go-up {
  display: none !important;
}

/* ---------- 页脚运行时间 ---------- */
.np-runtime {
  display: inline-block;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(231, 236, 242, .72);
  font-variant-numeric: tabular-nums;
}

.np-runtime b {
  color: #8fb7d1;
  font-weight: 600;
  margin: 0 2px;
}

[data-theme='light'] .np-runtime {
  color: rgba(60, 66, 76, .7);
  border-left-color: rgba(0, 0, 0, .1);
}

@media screen and (max-width: 768px) {
  #np-top {
    right: 14px;
    bottom: 84px;
    width: 42px;
    height: 42px;
  }
  .np-runtime {
    display: block;
    margin: 6px 0 0;
    padding-left: 0;
    border-left: none;
  }
}
