.calendar-input {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 180px;
  cursor: pointer;
}

.calendar-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  padding: 12px;
  display: none;
  font-family: "Microsoft YaHei";
  width: fit-content;
}

.cal-nav {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 10px;
}

.cal-nav button {
  border: none;
  background: #f5f7fa;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
}

.cal-title {
  flex: 1;
  text-align: center;
  font-weight: bold;
}

.week-head {
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 5px;
}
.week-head span {
  text-align: center;
  color: #666;
  font-size: 13px;
}

/* ✅ 修复：和 JS 保持一致，使用 grid */
.day-grid {
  display: grid !important;
  gap: 2px !important;
}

.day {
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6px;
  gap: 0px;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center !important;
}

.day span {
  display: block;
  width: 100% !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

/* 🔥 非本月日期 → 文字浅灰色 🔥 */
.day.other-month span {
  color: #eee !important;
}

.day.other-month {
  color: #ddd;
  background: #fafafa;
  cursor: default;
}

.day.selected {
  background: #e6f7ff;
}

.day span:nth-child(1) {
  font-weight: bold;
}

.day span:nth-child(2),
.day span:nth-child(3) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 👇 👇 👇 【新增】鼠标悬停日期变色 👇 👇 👇 */
.day:not(.other-month):hover {
  background-color: #f0f7ff !important;
}