/* 预订日期与时间选择器（account/date-picker.js）。主页面和客服工作台共用，颜色与字体都在这里自带，
   不依赖各自页面的变量；配色、圆角、弹性曲线跟随主页面（--blue #0071e3、--spring）。 */
.oura-dp {
  --dp-blue: #0071e3;
  --dp-blue-press: #0062c4;
  --dp-ink: #1d1d1f;
  --dp-secondary: #6e6e73;
  --dp-tertiary: #c7c7cc;
  --dp-fill: rgba(118,118,128,.12);
  --dp-fill-soft: rgba(118,118,128,.08);
  --dp-sep: rgba(60,60,67,.14);
  --dp-row: 46px;
  --dp-spring: cubic-bezier(.32,.72,0,1);
  --dp-ease: cubic-bezier(.25,.1,.25,1);
  position: fixed; inset: 0; z-index: 2147483000;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--dp-ink); overflow: hidden;
  font-size: 16px; line-height: 1.35; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.oura-dp[open] { display: flex; align-items: flex-end; justify-content: center; }
.oura-dp.is-fallback { background: rgba(0,0,0,.32); }
.oura-dp::backdrop { background: rgba(0,0,0,.32); animation: dpFadeIn .3s var(--dp-ease) both; }
.oura-dp.is-closing::backdrop { animation: dpFadeOut .26s var(--dp-ease) forwards; }
.oura-dp *, .oura-dp *::before, .oura-dp *::after { box-sizing: border-box; }
.oura-dp [hidden] { display: none !important; }
/* 重置只用元素级优先级（:where），下面 .dp-slot / .dp-done 等的背景才不会被它盖掉 */
:where(.oura-dp) button {
  margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit;
  cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
:where(.oura-dp) button:disabled { cursor: default; }
.oura-dp button:focus { outline: none; }
.oura-dp button:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 2px; }

/* ---------- 面板：手机底部弹出，宽屏居中 ---------- */
.dp-sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-height: min(94vh, 880px); max-height: min(94dvh, 880px);
  border-radius: 22px 22px 0 0; background: #fff; outline: none;
  box-shadow: 0 -12px 48px rgba(0,0,0,.14);
  animation: dpSheetUp .5s var(--dp-spring) both;
  transition: transform .4s var(--dp-spring);
}
.oura-dp.is-closing .dp-sheet { animation: dpSheetDown .26s var(--dp-ease) forwards; }

.dp-head { position: relative; flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: 16px 10px 6px; touch-action: none; }
.dp-grabber { position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(60,60,67,.24); }
.dp-titles { grid-column: 2; min-width: 0; text-align: center; }
.dp-titles h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.dp-sum { margin: 3px 0 0; min-height: 18px; font-size: 13px; line-height: 18px; color: var(--dp-secondary); font-variant-numeric: tabular-nums; transition: color .25s var(--dp-ease); }
.dp-sum.is-set { color: var(--dp-blue); font-weight: 500; }
.dp-x { position: relative; grid-column: 3; justify-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--dp-fill); color: var(--dp-secondary); transition: background .2s var(--dp-ease), transform .15s var(--dp-ease); }
.dp-x::before { content: ""; position: absolute; inset: -7px; }
.dp-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dp-x:active { background: rgba(118,118,128,.2); transform: scale(.92); }
.oura-dp .dp-x:focus-visible { outline-offset: 3px; border-radius: 50%; }

.dp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 14px 4px; }

/* ---------- 月历 ---------- */
.dp-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding-left: 2px; }
.dp-ym { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 8px; border-radius: 12px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: color .25s var(--dp-ease), background .2s var(--dp-ease); }
.dp-ym svg { width: 8px; height: 14px; fill: none; stroke: var(--dp-blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--dp-spring); }
.dp-ym[aria-expanded="true"] { color: var(--dp-blue); }
.dp-ym[aria-expanded="true"] svg { transform: rotate(90deg); }
.dp-ym:active { background: var(--dp-fill-soft); }
.dp-nav { display: flex; gap: 2px; transition: opacity .25s var(--dp-ease); }
.dp-nav.is-off { opacity: 0; pointer-events: none; }
.dp-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--dp-blue); transition: background .2s var(--dp-ease), color .2s var(--dp-ease); }
.dp-arrow svg { width: 10px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dp-arrow:disabled { color: var(--dp-tertiary); }
.dp-arrow:not(:disabled):active { background: var(--dp-fill); }
.oura-dp .dp-arrow:focus-visible, .oura-dp .dp-day:focus-visible { outline-offset: -2px; border-radius: 50%; }

.dp-stage { position: relative; }
.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); height: 26px; align-items: center; text-align: center; font-size: 13px; font-weight: 600; color: #8e8e93; }
.dp-grid {
  --dp-rows: 5;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: var(--dp-row);
  height: calc(var(--dp-rows) * var(--dp-row)); overflow: hidden;
  transition: height .4s var(--dp-spring);
}
.dp-grid.is-next { animation: dpSlideNext .42s var(--dp-spring); }
.dp-grid.is-prev { animation: dpSlidePrev .42s var(--dp-spring); }
.dp-day { position: relative; display: grid; place-items: center; width: 100%; height: 100%; font-size: 19px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--dp-ink); }
.dp-day::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  background: var(--dp-blue); opacity: 0; transform: scale(.55);
  transition: transform .38s var(--dp-spring), opacity .2s var(--dp-ease), background .2s var(--dp-ease);
}
.dp-day > span { position: relative; transition: color .2s var(--dp-ease); }
.dp-day.is-today { color: var(--dp-blue); font-weight: 600; }
.dp-day.is-today:disabled { color: rgba(0,113,227,.42); }
.dp-day:disabled { color: var(--dp-tertiary); }
.dp-day[aria-pressed="true"] { color: #fff; font-weight: 600; }
.dp-day[aria-pressed="true"]::before { opacity: 1; transform: scale(1); }
.dp-day:not(:disabled):not([aria-pressed="true"]):active::before { opacity: 1; transform: scale(.92); background: var(--dp-fill); }
@media (hover: hover) and (pointer: fine) {
  .dp-day:not(:disabled):not([aria-pressed="true"]):hover::before { opacity: 1; transform: scale(1); background: var(--dp-fill-soft); }
  .dp-arrow:not(:disabled):hover, .dp-ym:hover { background: var(--dp-fill-soft); }
  .dp-slot:not(:disabled):not([aria-pressed="true"]):hover, .dp-month:not(:disabled):not([aria-pressed="true"]):hover { background: var(--dp-fill); }
}

/* 年份 + 月份速选：点「2026 年 12 月 ›」展开 */
.dp-panel { padding: 8px 2px 12px; animation: dpFadeIn .28s var(--dp-ease) both; }
.dp-years { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--dp-fill); }
.dp-year { position: relative; flex: 1 1 0; min-width: 0; height: 34px; border-radius: 8px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .25s var(--dp-ease), box-shadow .25s var(--dp-ease); }
.dp-year::before { content: ""; position: absolute; inset: -5px 0; }
.dp-year[aria-pressed="true"] { background: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04), 0 0 0 .5px rgba(0,0,0,.04); }
.dp-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.dp-month { height: 48px; border-radius: 14px; background: var(--dp-fill-soft); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .2s var(--dp-ease), color .2s var(--dp-ease), transform .15s var(--dp-ease); }
.dp-month.is-now { color: var(--dp-blue); }
.dp-month[aria-pressed="true"] { background: var(--dp-blue); color: #fff; font-weight: 600; }
.dp-month:disabled { background: none; color: var(--dp-tertiary); }
.dp-month:not(:disabled):active { transform: scale(.96); }
.dp-hint { margin: 6px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--dp-secondary); text-align: center; }

/* ---------- 时间 ---------- */
.dp-time { margin-top: 10px; padding: 14px 0 6px; border-top: .5px solid var(--dp-sep); }
.dp-time-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin: 0 2px 12px; }
.dp-time-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.dp-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--dp-fill); }
.dp-seg-btn { position: relative; min-width: 58px; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 14px; font-weight: 500; transition: background .25s var(--dp-ease), box-shadow .25s var(--dp-ease); }
.dp-seg-btn::before { content: ""; position: absolute; inset: -7px 0; }
.dp-seg-btn[aria-pressed="true"] { background: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04), 0 0 0 .5px rgba(0,0,0,.04); }
.dp-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; animation: dpFadeIn .25s var(--dp-ease); }
.dp-slot { height: 46px; border-radius: 14px; background: var(--dp-fill-soft); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; transition: background .2s var(--dp-ease), color .2s var(--dp-ease), transform .15s var(--dp-ease), box-shadow .2s var(--dp-ease); }
.dp-slot[aria-pressed="true"] { background: var(--dp-blue); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(0,113,227,.28); }
.dp-slot:disabled { background: none; color: var(--dp-tertiary); box-shadow: inset 0 0 0 .5px var(--dp-sep); }
.dp-slot:not(:disabled):active { transform: scale(.95); }

/* ---------- 底部确认 ---------- */
.dp-foot { flex: none; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: .5px solid var(--dp-sep); background: rgba(255,255,255,.94); }
.dp-done { display: block; width: 100%; height: 50px; border-radius: 999px; background: var(--dp-blue); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .01em; transition: background .25s var(--dp-ease), color .25s var(--dp-ease), transform .15s var(--dp-ease); }
.dp-done:disabled { background: var(--dp-fill); color: #8e8e93; }
.dp-done:not(:disabled):active { background: var(--dp-blue-press); transform: scale(.98); }
.dp-done.is-ready { animation: dpReady .5s var(--dp-spring); }
.oura-dp .dp-done:focus-visible { outline-offset: 3px; border-radius: 999px; }

/* 宽屏：居中卡片 */
@media (min-width: 640px) {
  .oura-dp[open] { align-items: center; padding: 24px; }
  .dp-sheet { width: 420px; max-height: min(90vh, 860px); border-radius: 24px; box-shadow: 0 32px 96px rgba(0,0,0,.24), 0 0 0 .5px rgba(0,0,0,.06); animation: dpPopIn .42s var(--dp-spring) both; }
  .oura-dp.is-closing .dp-sheet { animation: dpPopOut .2s var(--dp-ease) forwards; }
  .dp-grabber { display: none; }
  .dp-head { padding-top: 14px; touch-action: auto; }
  .dp-body { padding: 2px 18px 6px; }
  .dp-foot { padding: 12px 18px 16px; border-radius: 0 0 24px 24px; }
}
/* 矮屏手机（iPhone SE 等）：收紧行高，日历和时间尽量一屏放下 */
@media (max-height: 700px) {
  .oura-dp { --dp-row: 40px; }
  .dp-day::before { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .dp-slot { height: 42px; }
  .dp-time { margin-top: 6px; padding-top: 10px; }
  .dp-time-head { margin-bottom: 10px; }
}
@media (max-width: 360px) {
  .dp-day { font-size: 17px; }
  .dp-slot { font-size: 16px; }
  .dp-seg-btn { min-width: 50px; padding: 0 9px; }
}

@keyframes dpFadeIn { from { opacity: 0; } }
@keyframes dpFadeOut { to { opacity: 0; } }
@keyframes dpSheetUp { from { transform: translateY(100%); } }
@keyframes dpSheetDown { to { transform: translateY(100%); } }
@keyframes dpPopIn { from { opacity: 0; transform: scale(.94) translateY(8px); } }
@keyframes dpPopOut { to { opacity: 0; transform: scale(.97); } }
@keyframes dpSlideNext { from { opacity: 0; transform: translateX(32px); } }
@keyframes dpSlidePrev { from { opacity: 0; transform: translateX(-32px); } }
@keyframes dpReady { 40% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) {
  .oura-dp *, .oura-dp *::before, .oura-dp::backdrop { animation: none !important; transition: none !important; }
}
