/* Action Sheet Fix CSS */

/* 修复移动端 action sheet 样式问题 */
.action-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.action-sheet.show {
  transform: translateY(0);
}

.action-sheet__header {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.action-sheet__title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.action-sheet__body {
  padding: 16px;
}

.action-sheet__footer {
  padding: 16px;
}

.action-sheet__button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  text-align: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.action-sheet__button--primary {
  background-color: #ff4d4f;
  color: #fff;
}

.action-sheet__button--default {
  background-color: #f5f5f5;
  color: #333;
}

.action-sheet__button--default:hover {
  background-color: #e8e8e8;
}

.action-sheet__button--primary:hover {
  background-color: #ff7875;
}

.action-sheet__mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-sheet__mask.show {
  opacity: 1;
}

/* 适配不同屏幕尺寸 */
@media (max-width: 375px) {
  .action-sheet__header,
  .action-sheet__body,
  .action-sheet__footer {
    padding: 12px;
  }
  
  .action-sheet__title {
    font-size: 14px;
  }
  
  .action-sheet__button {
    padding: 10px;
    font-size: 14px;
  }
}

/* 防止滚动穿透 */
.action-sheet-open {
  overflow: hidden;
}
