@charset "utf-8";

/* 首页右侧模块导航（铅笔形，略窄、离右缘留白） */
.home-side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  width: 52px;
  padding-top: 14px;
}

.home-side-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 14px solid #e60012;
}

.home-side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #e60012;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
}

.home-side-nav__item {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.home-side-nav__item:first-child {
  border-top: none;
}

.home-side-nav__item a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  color: #fff;
  text-decoration: none;
  transition: background 0.25s;
}

.home-side-nav__item a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.home-side-nav__item.is-active a {
  background: rgba(0, 0, 0, 0.06);
}

/* 选中项左右白色耳标 */
.home-side-nav__item.is-active a::before,
.home-side-nav__item.is-active a::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 18px;
  background: #fff;
  transform: translateY(-50%);
  border-radius: 1px;
}

.home-side-nav__item.is-active a::before {
  left: -2px;
}

.home-side-nav__item.is-active a::after {
  right: -2px;
}

.home-side-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.home-side-nav__icon svg {
  width: 20px;
  height: 20px;
}

.home-side-nav__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.home-side-nav__text i {
  font-style: normal;
  display: block;
}

@media (max-width: 1200px) {
  .home-side-nav {
    right: 14px;
    width: 46px;
    padding-top: 12px;
  }

  .home-side-nav::before {
    border-left-width: 23px;
    border-right-width: 23px;
    border-bottom-width: 12px;
  }

  .home-side-nav__item a {
    padding: 8px 3px;
    gap: 3px;
  }

  .home-side-nav__text {
    font-size: 11px;
  }
}

@media (max-width: 1279px) {
  .home-side-nav {
    display: none;
  }
}
