/* ============================================================
   囍事台 · 自绘日期选择器（替代浏览器原生 date 面板）
   ============================================================ */
.dp-input {
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5E34' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M7.5 3.5v4M16.5 3.5v4M3.5 10h17'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 16px 16px !important;
  cursor: pointer;
}
.dp-input:focus {
  cursor: pointer;
}

.dp-pop {
  position: fixed;
  z-index: 8200;
  width: 296px;
  padding: 15px 15px 11px;
  border-radius: 15px;
  border: 1px solid rgba(196, 154, 91, 0.4);
  background: linear-gradient(165deg, #FFFDF8 0%, #F8EFE4 100%);
  box-shadow: 0 20px 56px rgba(20, 7, 12, 0.26), 0 2px 8px rgba(20, 7, 12, 0.08);
  font-family: var(--font-body, "Noto Serif SC", "Songti SC", serif);
  animation: dpIn 0.16s ease both;
}
@keyframes dpIn {
  from { opacity: 0; transform: translateY(4px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.dp-month {
  color: var(--ink, #2E1A20);
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.dp-nav {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 38, 53, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--wine, #8B2635);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.16s ease;
}
.dp-nav:hover {
  border-color: rgba(196, 154, 91, 0.6);
  background: #FFFDF8;
}
.dp-nav:disabled {
  opacity: 0.28;
  cursor: default;
}
.dp-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 4px;
}
.dp-week span {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(122, 85, 96, 0.55);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.dp-day {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink, #2E1A20);
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.14s ease;
}
.dp-day:hover {
  background: rgba(196, 154, 91, 0.15);
}
.dp-day.is-other {
  color: rgba(122, 85, 96, 0.28);
}
.dp-day.is-today {
  border-color: rgba(196, 154, 91, 0.9);
  color: var(--wine, #8B2635);
  font-weight: 600;
}
.dp-day.is-selected {
  background: linear-gradient(145deg, #9B3041, #6B1C28);
  border-color: transparent;
  color: #FFF7E8;
  box-shadow: 0 4px 10px rgba(139, 38, 53, 0.22);
}
.dp-day.is-selected:hover {
  background: linear-gradient(145deg, #A83A4C, #7A2230);
}
.dp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(196, 154, 91, 0.2);
}
.dp-link {
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: var(--wine, #8B2635);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.dp-link:hover {
  color: #B23A48;
}
@media (max-width: 520px) {
  .dp-pop {
    width: min(296px, calc(100vw - 20px));
    padding: 13px 12px 9px;
  }
  .dp-day {
    height: 34px;
  }
}
