/* 时段配置页样式 */
.time-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.time-card .time-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.time-card .time-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #4A90D9;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.time-card .time-card-date {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
}

.time-card .time-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-left: 32px;
}

.time-card .time-card-time {
  font-size: 13px;
  color: #666666;
  background-color: #F0F7FF;
  padding: 3px 10px;
  border-radius: 4px;
}

.time-card .time-card-count {
  font-size: 12px;
  color: #999999;
}

.time-card .time-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid #F0F0F0;
}

/* 添加/编辑弹窗 */
.time-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9997;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.time-dialog .time-dialog-box {
  background-color: #FFFFFF;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.time-dialog .time-dialog-title {
  font-size: 17px;
  font-weight: 600;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
}

/* 日期范围/时间范围行 */
.range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-row .range-input {
  flex: 1;
  min-width: 0;
}

.range-row .range-sep {
  font-size: 14px;
  color: #999999;
  flex-shrink: 0;
  padding: 0 4px;
}

/* 预览信息区 */
.preview-info {
  background-color: #F8F9FA;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid #E8E8E8;
}

.preview-info .preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: #666666;
}

.preview-info .preview-row strong {
  color: #333333;
}

.time-dialog .dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.time-dialog .dialog-actions .btn {
  flex: 1;
  height: 44px;
  font-size: 15px;
}

/* 添加按钮 */
.add-date-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  height: 48px;
  margin: 12px 16px;
  border: 2px dashed #4A90D9;
  border-radius: 10px;
  background: none;
  color: #4A90D9;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
}

.add-date-btn:active {
  background-color: #F0F7FF;
}
