/* 用户预约页 - 美发门店风格 */
.book-page {
  --book-bg: #f5f0ea;
  --book-surface: #ffffff;
  --book-text: #1a1614;
  --book-muted: #7a726a;
  --book-line: #e8e0d6;
  --book-accent: #a67c52;
  --book-accent-soft: #f3ebe3;
  --book-accent-dark: #8b6340;
  --book-success: #3d7a5a;
  --book-danger: #c45c4a;
  --book-radius: 20px;
  --book-shadow: 0 8px 32px rgba(26, 22, 20, 0.06);

  background: var(--book-bg);
  color: var(--book-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  padding-bottom: 40px;
}

.book-hero {
  background: linear-gradient(165deg, #2a221c 0%, #3d3229 45%, #4a3f35 100%);
  color: #faf6f1;
  padding: 28px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.book-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(166, 124, 82, 0.25), transparent 50%);
  pointer-events: none;
}

.book-hero-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #d4b896;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.book-hero h1 {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.book-hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  color: rgba(250, 246, 241, 0.85);
  position: relative;
  z-index: 1;
}

.book-main {
  max-width: 520px;
  margin: -32px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.book-card {
  background: var(--book-surface);
  border-radius: var(--book-radius);
  box-shadow: var(--book-shadow);
  padding: 22px 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.book-card h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--book-text);
}

.book-subtitle {
  font-size: 0.8125rem;
  color: var(--book-muted);
  margin-bottom: 20px;
}

.book-page .store-content {
  font-size: 0.9375rem;
  color: var(--book-muted);
  line-height: 1.75;
}

.book-page .store-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 10px 0;
}

.book-page .closed-banner {
  background: #fff8ed;
  color: #8b6914;
  border: 1px solid #f0e0c0;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 14px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--book-text);
  margin-bottom: 10px;
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--book-line);
  border-radius: 14px;
  font-size: 1rem;
  background: #fdfbf8;
  color: var(--book-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  outline: none;
  border-color: var(--book-accent);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.15);
  background: #fff;
}

.field input::placeholder {
  color: #b5aca2;
}

/* 人数选择 */
.people-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.people-btn {
  min-width: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--book-line);
  border-radius: 999px;
  background: #fdfbf8;
  color: var(--book-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.people-btn.active {
  background: var(--book-accent);
  border-color: var(--book-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(166, 124, 82, 0.35);
}

/* 日期横向滚动 */
.date-scroll-wrap {
  margin: 0 -20px;
  padding: 0 20px;
}

.date-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.date-scroll::-webkit-scrollbar {
  display: none;
}

.date-item {
  flex: 0 0 auto;
  width: 68px;
  padding: 12px 8px;
  border: 1.5px solid var(--book-line);
  border-radius: 16px;
  background: #fdfbf8;
  cursor: pointer;
  scroll-snap-align: center;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.date-item .date-week {
  font-size: 11px;
  color: var(--book-muted);
}

.date-item .date-day {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--book-text);
}

.date-item .date-month {
  font-size: 10px;
  color: var(--book-muted);
}

.date-item.active {
  background: var(--book-text);
  border-color: var(--book-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 22, 20, 0.18);
}

.date-item.active .date-week,
.date-item.active .date-day,
.date-item.active .date-month {
  color: #faf6f1;
}

/* 时间选择 - 简洁美观 */
.time-picker-box {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, #fdfbf8 0%, #f7f2eb 100%);
  border: 1.5px solid var(--book-line);
  border-radius: 16px;
}

.time-col {
  flex: 1;
  max-width: 120px;
  text-align: center;
}

.time-col-label {
  display: block;
  font-size: 0.75rem;
  color: var(--book-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.time-select-wrap {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--book-line);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.time-select-wrap:focus-within {
  border-color: var(--book-accent);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12);
}

.time-select-wrap select {
  width: 100%;
  padding: 14px 28px 14px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--book-text);
  text-align: center;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.time-select-wrap select:focus {
  outline: none;
}

.time-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--book-muted);
  pointer-events: none;
}

.time-sep {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--book-accent);
  line-height: 1;
  padding-bottom: 18px;
  flex-shrink: 0;
}

/* 预约摘要 */
.book-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--book-accent-soft);
  border-radius: 14px;
  margin-bottom: 18px;
}

.book-summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--book-accent-dark);
  background: rgba(166, 124, 82, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.book-summary-value {
  font-size: 0.875rem;
  color: var(--book-text);
  font-weight: 500;
}

.book-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #a67c52 0%, #8b6340 100%);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 99, 64, 0.35);
  transition: transform 0.2s, opacity 0.2s;
}

.book-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#toastBox {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.book-toast {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #fff;
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.book-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.book-toast.success { background: var(--book-success); }
.book-toast.error { background: var(--book-danger); }

@media (min-width: 640px) {
  .book-hero h1 { font-size: 1.875rem; }
  .book-card { padding: 28px 26px; }
}
