/* jQuery ActionSheet 样式 */
.actionsheet {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transition: opacity 0.16s ease;
}

.actionsheet-menu {
  position: fixed;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

/* 箭头：根据 data-dir 定位，偏移量由 JS 写入 --arrow-x / --arrow-y */
.actionsheet-menu::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  transform: rotate(45deg);
}
.actionsheet-menu[data-dir='bottom']::before {
  top: -6px;
  left: var(--arrow-x, 50%);
  margin-left: -5px;
  border-right: none;
  border-bottom: none;
}
.actionsheet-menu[data-dir='top']::before {
  bottom: -6px;
  left: var(--arrow-x, 50%);
  margin-left: -5px;
  border-left: none;
  border-top: none;
}
.actionsheet-menu[data-dir='right']::before {
  left: -6px;
  top: var(--arrow-y, 50%);
  margin-top: -5px;
  border-left: none;
  border-bottom: none;
}
.actionsheet-menu[data-dir='left']::before {
  right: -6px;
  top: var(--arrow-y, 50%);
  margin-top: -5px;
  border-right: none;
  border-top: none;
}

.actionsheet-show .actionsheet-menu {
  opacity: 1;
  transform: scale(1);
}

.actionsheet-item {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease;
}
.actionsheet-item:hover {
  background: #f3f4f6;
}
.actionsheet-item:active {
  background: #e5e7eb;
}

.actionsheet-text {
  flex: 1;
}

.actionsheet-item-danger .actionsheet-text {
  color: #e11d48;
}

.actionsheet-item-disabled {
  color: #b0b3b8;
  cursor: not-allowed;
  pointer-events: none;
}
.actionsheet-item-disabled:hover {
  background: transparent;
}

.actionsheet-divider {
  height: 1px;
  margin: 6px 0;
  background: #eceef1;
}
