html, body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


#calendarContainer .flatpickr-calendar {
  width: 100% !important;   /* 撑满父容器 */
  max-width: 330px;         /* 和手动输入框保持一致 */
  margin: 0 auto;           /* 居中 */
  position: relative !important; /* 避免 absolute 把它拉偏 */
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
  display: none !important;
}

.flatpickr-calendar {
  background-color: #ffffff !important;   /* 白底 */
  border-radius: 0.75rem !important;      /* Tailwind rounded-xl */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important; /* Tailwind shadow-md */
  border: 1px solid #e5e7eb !important;   /* Tailwind border-gray-200 */
  font-family: inherit !important;
}

/* 顶部导航（月份切换） */
.flatpickr-months {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important; /* Tailwind border-gray-200 */
  border-radius: 0.75rem 0.75rem 0 0 !important;
  padding: 0.5rem 0;
}


/* 星期标题 (Sun, Mon...) */
.flatpickr-weekdays {
  font-weight: 600 !important;  /* Tailwind font-semibold */
  color: #374151 !important;    /* Tailwind text-gray-700 */
}

/* 日期格子 */
.flatpickr-day {
  border-radius: 0.5rem !important;       /* Tailwind rounded-lg */
  transition: all 0.2s ease-in-out;
}

/* hover 效果 */
.flatpickr-day:hover {
  border: 1px solid #000000 !important;   /* Tailwind border-black */
  background: #f9fafb !important;         /* Tailwind bg-gray-50 */
}

/* 选中日期 */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #000000 !important;  /* Tailwind bg-black */
  color: #ffffff !important;       /* Tailwind text-white */
  border: none !important;
}

/* 范围中间的日期 */
.flatpickr-day.inRange {
  background: #e5e7eb !important;  /* Tailwind bg-gray-200 */
  color: #111827 !important;       /* Tailwind text-gray-900 */
}

/* 去掉 flatpickr 默认蓝色背景 */
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #000000 !important;  /* 黑色 */
  color: #ffffff !important;       /* 白字 */
  box-shadow: none !important;
}

.flatpickr-day.inRange {
  background: #e5e7eb !important;  /* 灰色 (Tailwind gray-200) */
  color: #111827 !important;       /* 深灰字 */
  box-shadow: none !important;
}


@keyframes flash {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.image-flash {
  animation: flash 2s ease-in-out infinite;
}

@layer base {
  input, select, textarea {
    font-size: 16px !important;
  }
}


/* html, body {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
} */
