/* ==========================================================================
   茱萸 ZhuYu — 专属定制日历选择器样式表 (ZhuYuDatePicker)
   禅意素雅金设计风格，适配桌面端弹窗与移动端页面
   ========================================================================== */

.zy-datepicker-input {
  cursor: pointer !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23c59b27' d='M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L48 64C21.5 64 0 85.5 0 112l0 32 448 0 0-32c0-26.5-21.5-48-48-48l-56 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM448 192L0 192l0 256c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 15px 15px !important;
  padding-right: 34px !important;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 0.02em;
  user-select: none;
}

.zy-datepicker-input:hover {
  border-color: #c59b27 !important;
}

.zy-datepicker-input:focus {
  border-color: #c59b27 !important;
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2) !important;
}

.zy-datepicker-popup {
  position: fixed !important;
  z-index: 100000 !important;
  display: none;
  width: 296px;
  background: #ffffff;
  border: 1px solid #e7dfd1;
  border-radius: 12px;
  box-shadow: 0 12px 30px -4px rgba(44, 37, 29, 0.16), 0 6px 12px -4px rgba(44, 37, 29, 0.08);
  padding: 0.8rem;
  font-family: inherit;
  user-select: none;
  animation: zyDpFadeIn 0.18s ease-out;
  box-sizing: border-box;
}

@keyframes zyDpFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.zy-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.zy-dp-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c251d;
}

.zy-dp-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: #786b59;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zy-dp-btn:hover {
  background: #fbf6ec;
  color: #c59b27;
}

.zy-dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8c7e6c;
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f3ede2;
}

.zy-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 0.65rem;
}

.zy-dp-cell {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #2c251d;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}

.zy-dp-cell:hover:not(.zy-dp-disabled) {
  background: #fdf8ef;
  color: #c59b27;
  font-weight: 700;
}

.zy-dp-cell.zy-dp-today {
  border: 1.5px solid #c59b27;
  color: #c59b27;
  font-weight: 700;
}

.zy-dp-cell.zy-dp-selected {
  background: #c59b27 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.35);
}

.zy-dp-cell.zy-dp-other-month {
  color: #d1c7b7;
}

.zy-dp-cell.zy-dp-disabled {
  color: #e5ded3 !important;
  cursor: not-allowed !important;
  background: transparent !important;
  text-decoration: line-through;
}

.zy-dp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.55rem;
  border-top: 1px solid #f3ede2;
  gap: 0.45rem;
}

.zy-dp-footer-btn {
  flex: 1;
  padding: 0.38rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #e7dfd1;
  background: #faf8f5;
  color: #6b6357;
  transition: all 0.15s ease;
}

.zy-dp-footer-btn:hover {
  background: #f4ede0;
  color: #2c251d;
}

.zy-dp-btn-today {
  border-color: #ebd9a2;
  background: #fefcf7;
  color: #927318;
}

.zy-dp-btn-today:hover {
  background: #fcf4de;
  color: #785a08;
}

.zy-dp-btn-close {
  background: #c59b27;
  color: #ffffff;
  border-color: #c59b27;
}

.zy-dp-btn-close:hover {
  background: #a37c16;
  border-color: #a37c16;
  color: #ffffff;
}
