/* ============================================================
   Axtrivc's Blog — Floating Publish Button Styles
   ============================================================ */

#axtrivc-fab {
  position: fixed;
  right: 28px;
  bottom: 72px;  /* 在音乐栏（56px）之上 */
  z-index: 9990;  /* 高于音乐栏 9980 */
  pointer-events: none;
}

#axtrivc-fab * {
  box-sizing: border-box;
}

/* 主按钮（圆形 + 号） */
#axtrivc-fab .fab-main {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--theme-accent, #07C160);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18),
              0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              background 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 2;
}

#axtrivc-fab .fab-main:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25),
              0 3px 8px rgba(0, 0, 0, 0.12);
  filter: brightness(1.08);
}

#axtrivc-fab.open .fab-main {
  transform: rotate(0deg);
  background: linear-gradient(135deg, #5A5A5A 0%, #333333 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

#axtrivc-fab .fab-main i {
  transition: transform 0.25s ease;
}

#axtrivc-fab.open .fab-main i {
  transform: rotate(90deg);
}

/* 展开菜单 */
#axtrivc-fab .fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#axtrivc-fab.open .fab-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 单个子项 */
#axtrivc-fab .fab-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-decoration: none;
  color: var(--theme-text-current, #333);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
}

#axtrivc-fab .fab-item-label {
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text-current, #333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#axtrivc-fab .fab-item:hover .fab-item-label {
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#axtrivc-fab .fab-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

#axtrivc-fab .fab-item:hover .fab-item-icon {
  transform: scale(1.08);
}

/* 手机端调整 */
@media (max-width: 768px) {
  #axtrivc-fab {
    right: 18px;
    bottom: 80px;
  }
  #axtrivc-fab .fab-main {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  #axtrivc-fab .fab-menu {
    bottom: 62px;
  }
  #axtrivc-fab .fab-item-icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  #axtrivc-fab .fab-item-label {
    font-size: 12px;
    padding: 5px 12px;
  }
}
