@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

* {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #F5F5F5;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: 18px;
  color: #222;
}

::-webkit-scrollbar { display: none; }

/* iOS Status Bar */
.status-bar {
  background: #1B6B4A;
  color: white;
  padding: 12px 24px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.status-bar .dynamic-island {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
}

/* Big Button for Elderly */
.big-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 24px 28px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: white;
}

.big-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.big-btn i {
  font-size: 32px;
}

.big-btn-primary {
  background: linear-gradient(135deg, #1B6B4A 0%, #2D8B54 100%);
  box-shadow: 0 6px 20px rgba(27, 107, 74, 0.3);
}

.big-btn-secondary {
  background: linear-gradient(135deg, #C4956A 0%, #D4A86A 100%);
  box-shadow: 0 6px 20px rgba(196, 149, 106, 0.3);
}

.big-btn-outline {
  background: white;
  color: #1B6B4A;
  border: 2px solid #1B6B4A;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.big-btn-danger {
  background: white;
  color: #DC2626;
  border: 2px solid #DC2626;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Card */
.card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* Nav bar */
.nav-bar {
  background: #1B6B4A;
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  text-decoration: none;
}

.nav-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
}

/* Date item */
.date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: 16px;
  background: white;
  border: 2px solid #E5E7EB;
  min-width: 80px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #333;
}

.date-item.active {
  background: #1B6B4A;
  border-color: #1B6B4A;
  color: white;
}

.date-item.active .date-weekday {
  color: rgba(255,255,255,0.7);
}

.date-weekday {
  font-size: 14px;
  color: #999;
  margin-bottom: 4px;
}

.date-day {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.date-month {
  font-size: 13px;
  margin-top: 2px;
}

/* Time slot */
.time-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px 12px;
  border-radius: 16px;
  background: white;
  border: 2px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.time-slot.active {
  background: #1B6B4A;
  border-color: #1B6B4A;
  color: white;
}

.time-slot.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #F9FAFB;
}

.time-slot .time-text {
  font-size: 20px;
  font-weight: 700;
}

.time-slot .time-status {
  font-size: 13px;
  margin-top: 4px;
}

.time-slot.active .time-status {
  color: rgba(255,255,255,0.7);
}

.time-slot .remain-text {
  font-size: 13px;
  margin-top: 2px;
  color: #6B7280;
}

.time-slot.active .remain-text {
  color: rgba(255,255,255,0.85);
}

/* Appointment people selector */
.people-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  border: 2px solid #E5E7EB;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid #D1D5DB;
  background: #fff;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.qty-btn.plus {
  border-color: #1B6B4A;
  color: #1B6B4A;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value {
  min-width: 56px;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: #1B6B4A;
}

/* Appointment card */
.appt-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-left: 6px solid #1B6B4A;
}

.appt-card.cancelled {
  border-left-color: #D1D5DB;
  opacity: 0.6;
}

/* Scroll container */
.scroll-x {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.scroll-x > * { flex-shrink: 0; }

/* Safe bottom padding */
.safe-bottom { padding-bottom: 32px; }

/* Success animation */
@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.animate-bounce-in { animation: bounceIn 0.5s ease-out forwards; }

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 1.5s ease-out infinite; }

/* 预约页 — 顾客必读须知（蒙层 + 倒计时按钮） */
.booking-notice-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.booking-notice-mask.hidden {
  display: none;
}

.booking-notice-dialog {
  width: 100%;
  max-width: 360px;
  max-height: 82vh;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.booking-notice-title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  color: #111;
}

.booking-notice-body {
  flex: 1;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 18px;
  padding-right: 4px;
}

.booking-notice-body p {
  margin: 0 0 12px;
}

.booking-notice-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.booking-notice-btn:disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}

.booking-notice-btn:not(:disabled) {
  background: linear-gradient(135deg, #1B6B4A 0%, #2D8B54 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 107, 74, 0.35);
}
