/* ============================================================
   会员页
   ============================================================ */
.members-page {
  background: #f4f5f8;
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.members-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) 16px 14px;
  background: #fff;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid #f0f1f3;
}
.search-box {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  background: #f4f5f8;
  border-radius: 21px;
}
.search-icon { width: 18px; height: 18px; color: #9aa0ad; flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; background: transparent;
  outline: none; font-size: 14px; color: #1a1d24;
  font-family: inherit; min-width: 0;
}
.search-box input::placeholder { color: #9aa0ad; }

.add-btn {
  width: 42px; height: 42px;
  border: none; background: transparent;
  color: #4d62c9;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  border-radius: 50%;
  transition: background .18s, transform .18s;
  -webkit-tap-highlight-color: transparent;
}
.add-btn:active { background: #f0f1f8; transform: scale(.94); }

.members-body { padding: 16px 14px; }

.empty-card {
  background: #fff;
  border-radius: 18px;
  padding: 64px 24px;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  box-shadow: 0 2px 10px rgba(20,30,80,.04);
}
.empty-file-icon,
.empty-cal-icon { width: 76px; height: 76px; color: #e2e5ed; }
.empty-text-v2 { font-size: 14px; color: #9aa0ad; margin: 0; }

.empty-action-btn {
  padding: 13px 44px;
  background: linear-gradient(180deg, #4d62c9 0%, #3d4fb5 100%);
  color: #fff; border: none; border-radius: 24px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; letter-spacing: 1px;
  box-shadow: 0 10px 22px -8px rgba(77, 98, 201, .6);
  transition: transform .18s;
  -webkit-tap-highlight-color: transparent;
}
.empty-action-btn:active { transform: scale(.96); }

/* 会员列表 */
.member-list { display: flex; flex-direction: column; gap: 10px; }
.member-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20,30,80,.04);
}
.member-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #4d62c9, #3d4fb5);
  color: #fff; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 15px; font-weight: 600; color: #1a1d24; }
.member-meta { font-size: 12px; color: #9aa0ad; margin-top: 3px; }
.member-balance { font-size: 15px; font-weight: 700; color: #4d62c9; }

/* ============================================================
   预约页
   ============================================================ */
.booking-page {
  background: #f4f5f8;
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.booking-toolbar {
  display: flex; align-items: center;
  padding: calc(env(safe-area-inset-top) + 12px) 0 14px;
  background: #fff;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid #f0f1f3;
}
.date-arrow {
  width: 34px; height: 44px;
  background: transparent; border: none;
  color: #b0b5c0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.date-arrow svg { width: 16px; height: 16px; }
.date-arrow:active { color: #4d62c9; }

.date-scroll {
  flex: 1; display: flex; gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px;
}
.date-scroll::-webkit-scrollbar { display: none; }

.date-item {
  flex-shrink: 0;
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.date-item .date-week { font-size: 12px; color: #9aa0ad; font-weight: 500; }
.date-item .date-day {
  font-size: 14px; color: #555a66; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
}
.date-item.active {
  background: linear-gradient(180deg, #5266cf 0%, #3d4fb5 100%);
  box-shadow: 0 8px 18px -8px rgba(77, 98, 201, .65);
}
.date-item.active .date-week,
.date-item.active .date-day { color: #fff; font-weight: 700; }

.booking-body { padding: 16px 14px; }

.fab-add {
  position: fixed;
  left: 22px;
  bottom: calc(72px + env(safe-area-inset-bottom) + 20px);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5063ca 0%, #3d4fb5 100%);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 26px -8px rgba(77, 98, 201, .65);
  z-index: 50;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s;
}
.fab-add:active { transform: scale(.9); }
.fab-add svg { width: 24px; height: 24px; }

/* ============================================================
   我的页
   ============================================================ */
.profile-page {
  background: #f4f5f8;
  min-height: 100vh;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
.profile-hero {
  position: relative;
  background: linear-gradient(140deg, #5063ca 0%, #3b4dad 100%);
  padding: calc(env(safe-area-inset-top) + 26px) 22px 24px;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
  margin-bottom: 14px;
}
.profile-hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(320px 220px at 0% 100%, rgba(255, 255, 255, .06), transparent 60%);
}
.hero-user {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.hero-avatar {
  width: 62px; height: 62px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #2a1a08;
  background: linear-gradient(180deg, #d7bd93 0%, #a9885a 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.22), inset 0 0 0 2px rgba(255,255,255,.18);
}
.hero-avatar svg { width: 42px; height: 42px; }
.hero-info { flex: 1; min-width: 0; }
.hero-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.hero-name {
  font-size: 18px; font-weight: 700; color: #fff;
  max-width: 140px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.hero-crown { color: #ffd966; flex-shrink: 0; }
.hero-expire {
  margin-top: 6px;
  font-size: 12.5px; color: rgba(255,255,255,.82);
}
.hero-expire b { color: #fff; font-weight: 700; margin: 0 2px; }

.hero-renew {
  position: relative; z-index: 1;
  width: 100%; height: 46px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, transform .16s;
}
.hero-renew:active { background: rgba(255,255,255,.22); transform: scale(.99); }
.hero-renew svg { width: 16px; height: 16px; }

.menu-group {
  background: #fff;
  margin: 0 14px 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,30,80,.04);
}
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5f6f8;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f8f9fb; }

.menu-left {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: #1a1d24; font-weight: 500;
}
.menu-icon { width: 20px; height: 20px; color: #7a8090; flex-shrink: 0; }
.menu-right { display: flex; align-items: center; gap: 8px; }
.menu-value { color: #9aa0ad; font-size: 13px; }
.color-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #1e2a6e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  flex-shrink: 0;
}
.menu-arrow { width: 16px; height: 16px; color: #c8ccd4; flex-shrink: 0; }

.profile-actions {
  display: flex; gap: 12px;
  padding: 8px 14px 20px;
}
.btn-contact, .btn-logout {
  flex: 1; height: 46px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: transform .16s, background .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn-contact svg, .btn-logout svg { width: 16px; height: 16px; }
.btn-contact {
  background: linear-gradient(180deg, #5063ca 0%, #3d4fb5 100%);
  color: #fff; border: none;
  box-shadow: 0 10px 22px -8px rgba(77, 98, 201, .6);
}
.btn-contact:active { transform: scale(.97); }
.btn-logout {
  background: #fff; color: #4d62c9;
  border: 1px solid #dfe3f0;
}
.btn-logout:active { background: #f8f9fb; transform: scale(.97); }

/* 弹层 */
.sheet-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0;
  transition: opacity .24s ease;
  backdrop-filter: blur(2px);
}
.sheet-mask.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sheet-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  font-size: 15px; color: #1a1d24;
  cursor: pointer;
  border-bottom: 1px solid #f5f6f8;
  -webkit-tap-highlight-color: transparent;
}
.sheet-item:last-child { border-bottom: none; }
.sheet-item:active { background: #f8f9fb; }
.sheet-item.active { color: #4d62c9; font-weight: 600; }
.sheet-check { color: #4d62c9; font-weight: 800; font-size: 16px; }
.sheet-cancel {
  justify-content: center;
  margin-top: 8px;
  border-top: 6px solid #f4f5f8;
  font-weight: 500; color: #6b7280;
}
.sheet-center { text-align: center; }
.sheet-confirm-text {
  padding: 26px 24px 22px;
  font-size: 15px; color: #1a1d24;
  line-height: 1.5;
}
.sheet-confirm-actions {
  display: flex; gap: 12px;
  padding: 0 20px 20px;
}
.sheet-btn {
  flex: 1; height: 46px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none;
  -webkit-tap-highlight-color: transparent;
}
.sheet-btn-ghost { background: #f4f5f8; color: #555a66; }
.sheet-btn-primary {
  background: linear-gradient(180deg, #5063ca 0%, #3d4fb5 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(77, 98, 201, .55);
}

@media (max-width: 360px) {
  .date-item { min-width: 56px; padding: 7px 8px; }
  .date-item .date-day { font-size: 13px; }
  .fab-add { width: 48px; height: 48px; left: 18px; }
  .profile-hero { padding-left: 18px; padding-right: 18px; }
  .hero-avatar { width: 54px; height: 54px; }
  .hero-name { font-size: 16px; }
  .menu-item { padding: 14px 14px; font-size: 14px; }
}