/* 天干地支选择器样式 */

/* 选择按钮悬停效果 */
.ganzhi-selector-btn:hover {
  background: #5a3a7a !important;
  transform: scale(1.1);
}

/* 天干地支按钮基础样式 */
.ganzhi-item-btn {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  color: #333;
}

/* 按钮悬停效果 */
.ganzhi-item-btn:hover:not(.selected) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

/* 选中状态样式 */
.ganzhi-item-btn.selected {
  /* 移除放大加粗效果，只保留背景色和边框颜色变化 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  /* 背景色和边框颜色由内联样式控制，使用五行颜色 */
}

.ganzhi-gan-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.ganzhi-gan-row:last-child {
  margin-bottom: 0;
}

.ganzhi-gan-row .ganzhi-item-btn {
  flex: 1;
}

/* 抽屉基础与显示/隐藏动画 */
#ganzhiSelectorDrawer {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  transform-origin: top center;
}

#ganzhiSelectorDrawer.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#ganzhiSelectorDrawer.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

#ganzhiSelectorDrawer.full-width {
  width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

/* 输入框高亮样式 */
.solar-reverse-input-highlight {
  border: 1px solid #764ba2 !important;
  background-color: #f3f0f7 !important;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1) !important;
  transition: all 0.3s ease;
}

.solar-reverse-input-highlight:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2) !important;
}

