/* ============================================
   Miami Massage — Customer Pages Styles
   顾客端专用样式
   ============================================ */

/* ── Hero Banner ── */
.hero-banner {
  margin: 12px 16px 0;
  background: linear-gradient(135deg, #0C1A2E 0%, #1E3A5F 100%);
  border-radius: var(--r-2xl);
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(14,165,233,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-tag {
  display: inline-block;
  background: rgba(14,165,233,0.25);
  color: #7DD3FC;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.hero-banner h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.hero-banner p {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.hero-btn {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.15s;
}
.hero-btn:active { background: #0284C7; }
.hero-price {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: var(--r-md);
  z-index: 1;
}

/* ── Category Grid ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 20px;
}
.cat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-cell:active { transform: scale(0.95); }
.cat-cell.active {
  border-color: var(--c-dark);
  background: var(--c-bg);
  box-shadow: var(--shadow-md);
}
.cat-emoji { font-size: 24px; }
.cat-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-sub);
  text-align: center;
  line-height: 1.2;
}

/* ── Service Cards ── */
.service-list { padding: 16px 20px; }

.pop-card {
  display: flex;
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  margin-bottom: 12px;
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.pop-card:active { transform: scale(0.985); box-shadow: var(--shadow-md); }
.pop-img {
  width: 100px;
  background: var(--c-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
}
.pop-info { padding: 14px; flex: 1; }
.pop-info h3 { font-size: 14px; font-weight: 700; color: var(--c-text); margin-bottom: 3px; }
.star-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.star-row .stars { color: var(--c-orange); font-size: 12px; letter-spacing: 1px; }
.star-row .rating { font-size: 12px; color: var(--c-text-mid); font-weight: 500; }
.pop-dur { font-size: 12px; color: var(--c-text-hint); margin-bottom: 8px; }
.pop-bottom { display: flex; justify-content: space-between; align-items: center; }
.pop-price { font-size: 17px; font-weight: 800; color: var(--c-text); }
.pop-unit { font-size: 11px; color: var(--c-text-hint); font-weight: 400; }
.pop-btn {
  padding: 7px 16px;
  background: var(--c-dark);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pop-btn:active { background: var(--c-dark-sub); }

/* ── Service Row Card (横向列表) ── */
#popularList, .service-list { padding: 0 20px 16px; }
.svc-row {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border-light);
  margin-bottom: 12px;
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.svc-row:active { transform: scale(0.985); box-shadow: var(--shadow-md); }
.svc-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}
.svc-detail { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.svc-name { font-size: 14px; font-weight: 700; color: var(--c-text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-rating { display: flex; align-items: center; gap: 3px; margin-bottom: 6px; }
.svc-stars { color: #F59E0B; font-size: 11px; letter-spacing: 0; }
.svc-rate-num { font-size: 12px; font-weight: 600; color: var(--c-text); margin-left: 2px; }
.svc-rate-count { font-size: 11px; color: var(--c-text-hint); }
.svc-durs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dur-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--c-bg-soft);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-mid);
  border: 1px solid var(--c-border-light);
}
.svc-bottom { display: flex; justify-content: space-between; align-items: center; }
.svc-pricing { display: flex; align-items: baseline; gap: 4px; }
.svc-from { font-size: 11px; color: var(--c-text-hint); }
.svc-price { font-size: 17px; font-weight: 800; color: var(--c-text); }
.svc-book-btn {
  padding: 6px 14px;
  background: var(--c-dark);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Service Detail Card (保留供 booking 等页面使用) ── */
.svc-card {
  background: var(--c-bg);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.svc-card:active { transform: scale(0.985); }
.svc-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
  background: var(--c-accent-soft);
}
.svc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  letter-spacing: 0.3px;
}
.svc-body { padding: 16px 18px; }
.svc-body h3 { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.svc-desc { font-size: 12px; color: var(--c-text-hint); line-height: 1.6; margin-bottom: 12px; }
.svc-bottom { display: flex; justify-content: space-between; align-items: center; }
.svc-price { font-size: 18px; font-weight: 800; color: var(--c-text); }
.svc-per { font-size: 11px; color: var(--c-text-hint); font-weight: 400; }

/* ── Search Box ── */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.search-box:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.search-box svg { width: 18px; height: 18px; color: var(--c-text-hint); flex-shrink: 0; }
.search-box input {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--c-text);
  flex: 1;
}
.search-box input::placeholder { color: var(--c-text-disabled); }

/* ── Booking Summary ── */
.booking-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  padding: 16px;
  border: 1px solid var(--c-border-light);
  margin-bottom: 20px;
}
.booking-summary .bsc-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.booking-summary .bsc-info { flex: 1; }
.booking-summary .bsc-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.booking-summary .bsc-info .bsc-sub { font-size: 12px; color: var(--c-text-hint); margin-bottom: 4px; }
.booking-summary .bsc-info .bsc-price { font-size: 18px; font-weight: 800; }

/* ── Duration Selector ── */
.dur-opts { display: flex; gap: 10px; }
.dur-opt {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--c-bg);
  transition: all 0.2s;
}
.dur-opt:active { transform: scale(0.96); }
.dur-opt.sel {
  border-color: var(--c-dark);
  background: var(--c-dark);
}
.dur-opt .dv { font-size: 20px; font-weight: 800; color: var(--c-text-sub); }
.dur-opt.sel .dv { color: #fff; }
.dur-opt .du { font-size: 11px; color: var(--c-text-hint); }
.dur-opt.sel .du { color: rgba(255,255,255,0.6); }

/* ── Time Grid ── */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.t-slot {
  padding: 10px;
  text-align: center;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-sub);
  background: var(--c-bg);
  cursor: pointer;
  transition: all 0.2s;
}
.t-slot:active { transform: scale(0.95); }
.t-slot.sel {
  background: var(--c-dark);
  color: #fff;
  border-color: var(--c-dark);
}
.t-slot.off {
  color: var(--c-text-disabled);
  background: var(--c-bg-soft);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── Booking Footer ── */
.booking-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 16px 20px calc(16px + var(--safe-bottom));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border-light);
  z-index: 500;
}
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.total-label { font-size: 13px; color: var(--c-text-mid); }
.total-price { font-size: 24px; font-weight: 800; }

/* ── Order Status ── */
.status-hero {
  background: var(--c-bg);
  padding: 24px;
  border-bottom: 1px solid var(--c-border-light);
  text-align: center;
}
.status-hero h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.status-hero p { font-size: 13px; color: var(--c-text-hint); }

/* ── Order Info Card ── */
.order-info-card {
  background: var(--c-bg);
  margin: 16px 20px 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border-light);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.oi-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--c-bg-soft); }
.oi-row:last-child { border-bottom: none; }
.oi-key { font-size: 13px; color: var(--c-text-hint); }
.oi-val { font-size: 13px; font-weight: 600; color: var(--c-text); text-align: right; max-width: 65%; }

/* ── Timeline ── */
.timeline-card {
  background: var(--c-bg);
  margin: 12px 20px 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border-light);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.tl-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.tl-item { display: flex; gap: 14px; margin-bottom: 18px; position: relative; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  width: 1px;
  height: calc(100% - 6px);
  background: var(--c-border);
}
.tl-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 1;
}
.tl-dot.done { background: var(--c-dark); color: #fff; }
.tl-dot.now { background: var(--c-accent); color: #fff; animation: pulse 2s infinite; }
.tl-dot.wait { background: var(--c-bg-muted); color: var(--c-text-hint); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(14,165,233,0); }
}
.tl-info h4 { font-size: 13px; font-weight: 600; color: var(--c-text); }
.tl-info p { font-size: 11px; color: var(--c-text-hint); margin-top: 2px; }

/* ── Order List Item ── */
.order-card {
  background: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 16px;
  border: 1px solid var(--c-border-light);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.order-card:active { transform: scale(0.985); }
.order-card .oc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-card .oc-no { font-size: 12px; color: var(--c-text-hint); font-weight: 500; }
.order-card .oc-mid { display: flex; gap: 12px; align-items: center; }
.order-card .oc-thumb { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--c-accent-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.order-card .oc-info { flex: 1; }
.order-card .oc-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.order-card .oc-info .oc-sub { font-size: 12px; color: var(--c-text-hint); }
.order-card .oc-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-bg-soft); }
.order-card .oc-price { font-size: 16px; font-weight: 800; }
.order-card .oc-date { font-size: 12px; color: var(--c-text-hint); }

/* ── Payment Methods ── */
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--c-bg);
}
.payment-option:active { transform: scale(0.98); }
.payment-option.selected {
  border-color: var(--c-dark);
  background: var(--c-bg-soft);
}
.payment-option .po-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.payment-option .po-info { flex: 1; }
.payment-option .po-info h4 { font-size: 14px; font-weight: 700; }
.payment-option .po-info p { font-size: 12px; color: var(--c-text-hint); }
.payment-option .po-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.payment-option.selected .po-check {
  background: var(--c-dark);
  border-color: var(--c-dark);
}
.payment-option.selected .po-check::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ── Profile ── */
.profile-header {
  text-align: center;
  padding: 24px 20px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 12px;
  border: 3px solid var(--c-border-light);
}
.profile-name { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.profile-phone { font-size: 13px; color: var(--c-text-hint); }

.menu-group { margin: 12px 20px; }
.menu-group .mg-label { font-size: 11px; font-weight: 700; color: var(--c-text-hint); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; padding-left: 4px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.menu-item:first-of-type { border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-sm); }
.menu-item:last-of-type { border-radius: var(--r-sm) var(--r-sm) var(--r-lg) var(--r-lg); margin-bottom: 0; }
.menu-item:only-of-type { border-radius: var(--r-lg); }
.menu-item:active { background: var(--c-bg-soft); }
.menu-item .mi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-item .mi-icon svg { width: 20px; height: 20px; }
.menu-item .mi-label { flex: 1; font-size: 14px; font-weight: 600; }
.menu-item .mi-arrow { color: var(--c-text-hint); }
.menu-item .mi-arrow svg { width: 16px; height: 16px; }
