/* ============================================================
   客人端专属样式
   ============================================================ */

/* ===== 体验须知弹窗 ===== */
.notice-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .25s;
}
.notice-card {
  width: 100%; max-width: 420px;
  background: var(--ivory);
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 12px 40px rgba(27,40,69,0.25);
  animation: slideUp .35s ease;
  max-height: 85vh;
  overflow-y: auto;
}
.notice__logo {
  text-align: center; margin-bottom: 16px;
}
.notice__logo img {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.notice__title {
  font-size: 18px; font-weight: 700; color: var(--navy);
  text-align: center; letter-spacing: 2px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.notice__body {
  margin-bottom: 20px;
}
.notice__item {
  display: flex; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px; line-height: 1.7; color: var(--text);
}
.notice__item:last-child { border-bottom: none; }
.notice__num {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  margin-top: 1px;
}
.notice__text { flex: 1; }
.notice__text strong { color: var(--navy); }
.notice__agree {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: rgba(27,40,69,0.04);
  border-radius: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 13px; color: var(--text-soft);
}
.notice__agree input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* 日期选择器（横向滚动 7 天） */
.date-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 auto;
  width: 64px;
  padding: 12px 6px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.date-chip__day {
  font-size: 11px; color: var(--text-soft);
  letter-spacing: 2px;
}
.date-chip__num {
  font-size: 22px; font-weight: 600; color: var(--navy);
  margin: 2px 0;
  line-height: 1.1;
}
.date-chip__month {
  font-size: 10px; color: var(--text-mute);
}
.date-chip--active {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,40,69,0.25);
}
.date-chip--active .date-chip__day,
.date-chip--active .date-chip__num,
.date-chip--active .date-chip__month { color: #fff; }
.date-chip--active .date-chip__day,
.date-chip--active .date-chip__month { opacity: .75; }

/* 时段网格 */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.slot {
  position: relative;
  padding: 14px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s;
  text-align: left;
  display: flex; flex-direction: column; gap: 4px;
}
.slot__time {
  font-size: 16px; font-weight: 600; color: var(--navy);
  letter-spacing: 1px;
}
.slot__meta {
  font-size: 11px; color: var(--text-soft);
  display: flex; align-items: center; gap: 4px;
}
.slot--available { border-color: var(--line); }
.slot--available:hover { border-color: var(--ok); background: var(--ok-bg); }
.slot--few { border-color: var(--warn); background: var(--warn-bg); }
.slot--few:hover { transform: translateY(-1px); }
.slot--full,
.slot--expired,
.slot--closed {
  border-color: var(--line);
  background: var(--full-bg);
  cursor: not-allowed;
  opacity: .7;
}
.slot--full .slot__time,
.slot--expired .slot__time,
.slot--closed .slot__time { color: var(--text-mute); }
.slot--selected {
  border-color: var(--gold) !important;
  background: linear-gradient(135deg, rgba(201,169,97,0.12), rgba(168,138,74,0.08)) !important;
  box-shadow: 0 0 0 2px var(--gold);
}
.slot--selected::after {
  content: '✓';
  position: absolute; top: 6px; right: 8px;
  color: var(--gold-deep);
  font-weight: 700;
}

/* 我的预约卡片 */
.booking-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  transition: all .2s;
}
.booking-item__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.booking-item__date {
  font-size: 15px; font-weight: 600; color: var(--navy);
  letter-spacing: 1px;
}
.booking-item__body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  font-size: 13px; color: var(--text-soft);
}
.booking-item__body strong { color: var(--text); font-weight: 500; }
.booking-item__foot {
  margin-top: 10px;
  display: flex; justify-content: flex-end; gap: 8px;
}
.booking-item--cancelled { opacity: .55; }
.booking-item--cancelled .booking-item__date { text-decoration: line-through; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 560px;
  background: var(--ivory);
  border-radius: 22px 22px 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  max-height: 86vh;
  overflow-y: auto;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal__handle {
  width: 36px; height: 4px; background: var(--line);
  border-radius: 2px; margin: -10px auto 14px;
}
.modal__title {
  font-size: 18px; font-weight: 600; color: var(--navy);
  letter-spacing: 2px; text-align: center; margin-bottom: 16px;
}
.modal__summary {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: center;
}
.modal__summary .date { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.modal__summary .slot { font-size: 22px; font-weight: 700; color: var(--gold-soft); margin: 4px 0; letter-spacing: 2px; }
.modal__summary .cap { font-size: 12px; opacity: .8; }

/* ===== 底部 Tab Bar ===== */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(27,40,69,0.05);
}
.tabbar__item {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 2px;
  position: relative;
  transition: color .2s;
}
.tabbar__item.is-active { color: var(--gold-deep); font-weight: 600; }
.tabbar__item.is-active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}

/* ===== 预约确认页 ===== */
.confirm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.confirm-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-lbl { color: var(--text-soft); }
.confirm-val { font-weight: 600; color: var(--navy); }
.confirm-notice {
  background: rgba(27,40,69,0.04);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.confirm-notice__title {
  font-size: 13px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
.confirm-notice__text {
  font-size: 12px; line-height: 1.8;
  color: var(--text-soft);
}

/* ===== 增强的预约卡片 ===== */
.booking-item__tip {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(201,169,97,0.08);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}
.badge--done {
  background: #d5f5e3;
  color: #27ae60;
}
