/* ==========================================
   蔚蓝 侧边菜单组件样式
   ========================================== */

.sakete-slide-menu {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: var(--font-family);
}

.sakete-slide-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================
   菜单项样式
   ========================================== */

.sakete-slide-menu__item {
  position: relative;
  width: max(3.75rem, 40px);
  height: max(3.75rem, 40px);
  border-radius: 5px;
  background: #dddddd;
  transition: transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

/* 伪元素：渐变色背景层 */
.sakete-slide-menu__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

/* 激活状态：显示伪元素 */
.sakete-slide-menu__item--active::before {
  opacity: 1;
}

/* ==========================================
   链接样式
   ========================================== */

.sakete-slide-menu__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

/* ==========================================
   图标容器样式
   ========================================== */

.sakete-slide-menu__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;
  height: 60%;
  position: relative;
  z-index: 1;
}

/* ==========================================
   返回顶部按钮样式
   ========================================== */

.sakete-slide-menu__item--gotop {
  /* 返回顶部按钮使用相同的样式，但不需要激活状态 */
}

.sakete-slide-menu__gotop-icon {
  width: 80%;
  height: 80%;
  color: var(--text-color-light);
  transition: all 0.3s ease;
}

.sakete-slide-menu__item--gotop:hover .sakete-slide-menu__gotop-icon {
  transform: translateY(-0.125rem); /* 悬停时向上移动 */
}

/* ==========================================
   响应式设计
   ========================================== */

@media screen and (max-width: 768px) {
  .sakete-slide-menu {
    right: var(--spacing-sm);
  }
}

@media screen and (max-width: 576px) {
  .sakete-slide-menu {
    right: var(--spacing-sm);
  }
}
