/* =========================================================
   按摩养生 — 业务页面样式
   依赖 assets/css/style.css 的设计变量与基础组件
   ========================================================= */

.ms-main { background: var(--white); }

.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.ms-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.ms-eyebrow.light { color: var(--gold); }

.ms-full { width: 100%; }

.btn-gold {
  background: var(--gold);
  color: #241a00;
  box-shadow: 0 14px 26px -12px rgba(255, 197, 49, 0.85);
}
.btn-gold:hover { background: #ffd257; }

.btn-xs {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
}
.btn-danger {
  background: #e5484d;
  color: #fff;
  box-shadow: 0 12px 22px -12px rgba(229, 72, 77, 0.7);
}
.btn-danger:hover { background: #cf3b40; }

/* 浅色背景上的 ghost 按钮 */
.ms-modal-card .btn-ghost,
.ms-apply-form .btn-ghost,
.ms-booking-actions .btn-ghost,
.ms-dash-body .btn-ghost,
.ms-account-section .btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: none;
}
.ms-modal-card .btn-ghost:hover,
.ms-apply-form .btn-ghost:hover,
.ms-booking-actions .btn-ghost:hover,
.ms-dash-body .btn-ghost:hover,
.ms-account-section .btn-ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand);
  background: var(--brand-050);
}

.img-fail { opacity: 0; }

/* =========================================================
   列表页 Hero
   ========================================================= */
.ms-hero {
  position: relative;
  padding: 78px 0 88px;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.ms-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.03);
}
.ms-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(4, 18, 36, 0.95) 0%, rgba(5, 24, 45, 0.8) 46%, rgba(5, 24, 45, 0.35) 100%),
    radial-gradient(70% 100% at 100% 0%, rgba(20, 102, 242, 0.28), transparent 65%);
}
.ms-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  gap: 54px;
  align-items: end;
}
.ms-hero-copy { max-width: 660px; }
.ms-hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  margin: 16px 0 16px;
  letter-spacing: -0.03em;
}
.ms-hero-sub {
  font-size: 15.5px;
  line-height: 1.8;
  color: #b9cbe0;
  max-width: 540px;
}

.ms-searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  margin: 28px 0 22px;
  padding: 0 8px 0 18px;
  background: #fff;
  border-radius: var(--r-pill);
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.6);
  color: var(--ink);
}
.ms-searchbox > .icon { width: 20px; height: 20px; color: var(--muted-2); }
.ms-searchbox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink);
}
.ms-searchbox input::placeholder { color: var(--muted-2); }
.ms-search-btn {
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #241a00;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.ms-search-btn:hover { background: #ffd257; }

.ms-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12.5px;
  color: #b9cbe0;
}
.ms-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.ms-hero-trust .icon { width: 15px; height: 15px; color: var(--gold); }
.ms-hero-trust b { font-weight: 600; }

.ms-trust-card {
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
}
.ms-trust-head { display: flex; align-items: center; gap: 12px; }
.ms-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 197, 49, 0.16);
  color: var(--gold);
}
.ms-trust-icon .icon { width: 21px; height: 21px; }
.ms-trust-head b { display: block; font-size: 14px; }
.ms-trust-head small { display: block; font-size: 11.5px; color: #8fa6bf; margin-top: 2px; }
.ms-trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ms-trust-stats div { text-align: center; }
.ms-trust-stats b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.ms-trust-stats small { font-size: 10.5px; color: #8fa6bf; }
.ms-trust-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #9fb4c9;
}
.ms-trust-note .icon { width: 14px; height: 14px; color: var(--teal); }

/* =========================================================
   列表页筛选与卡片
   ========================================================= */
.ms-browse { padding-top: 54px; }

.ms-area-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
}
.ms-area-bar::-webkit-scrollbar { display: none; }
.ms-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 44px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ms-area-chip .icon { width: 15px; height: 15px; color: var(--muted-2); }
.ms-area-chip b {
  min-width: 26px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}
.ms-area-chip:hover { border-color: var(--brand-400); color: var(--brand); }
.ms-area-chip.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.ms-area-chip.active .icon { color: var(--gold); }
.ms-area-chip.active b { background: rgba(255, 255, 255, 0.14); color: #fff; }

.ms-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
}
.ms-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.ms-control > span { font-size: 11.5px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
.ms-control select {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  max-width: 148px;
}

.ms-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  background: #fff;
}
.ms-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ms-switch-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: var(--r-pill);
  background: #dbe5f2;
  transition: background 0.2s;
}
.ms-switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 40, 76, 0.3);
  transition: transform 0.2s var(--ease);
}
.ms-switch input:checked + .ms-switch-track { background: var(--teal); }
.ms-switch input:checked + .ms-switch-track i { transform: translateX(16px); }
.ms-switch b { font-size: 12.5px; font-weight: 700; }

.ms-result-count {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  color: var(--muted-2);
}
.ms-result-count b { font-size: 18px; color: var(--ink); }

.ms-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 16px;
}
.ms-reset {
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.ms-reset:hover { text-decoration: underline; }

.ms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ms-tech-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.ms-tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d6e3f5;
}
.ms-tech-media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4.2;
  background: var(--bg-2);
  overflow: hidden;
}
.ms-tech-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.7s var(--ease);
}
.ms-tech-card:hover .ms-tech-media img { transform: scale(1.04); }

.ms-online-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: rgba(6, 24, 44, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ms-online-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}
.ms-online-chip.free i { background: #2ee6a8; box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.24); }
.ms-online-chip.busy i { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.24); }
.ms-online-chip.offline i { background: #93a3b7; box-shadow: 0 0 0 3px rgba(147, 163, 183, 0.24); }

.ms-photo-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-800);
  font-size: 10.5px;
  font-weight: 700;
}
.ms-photo-badge .icon { width: 12px; height: 12px; color: var(--teal); }

.ms-tech-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ms-tech-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ms-tech-name h3 { font-size: 17px; }
.ms-tech-name small { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

.ms-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: #fff7e0;
  color: #8a6100;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ms-rating .icon { width: 13px; height: 13px; fill: var(--gold); stroke: var(--gold); }
.ms-rating small { font-size: 10.5px; font-weight: 600; color: #a98538; }

.ms-tech-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.ms-tech-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ms-tech-meta .icon { width: 13px; height: 13px; color: var(--muted-2); }

.ms-tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ms-tech-tags span {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--brand-050);
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 600;
}

.ms-tech-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.ms-card-price { display: flex; align-items: baseline; gap: 5px; }
.ms-card-price small { font-size: 10.5px; color: var(--muted-2); }
.ms-card-price b { font-size: 16px; letter-spacing: -0.01em; }
.ms-card-price span { font-size: 11px; color: var(--muted-2); }
.ms-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}
.ms-card-link .icon { width: 14px; height: 14px; stroke-width: 2.2; transition: transform 0.2s; }
.ms-tech-card:hover .ms-card-link .icon { transform: translateX(3px); }

/* 空状态 */
.ms-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 64px 20px;
  text-align: center;
}
.ms-empty[hidden] { display: none; }
.ms-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--muted-2);
  margin-bottom: 6px;
}
.ms-empty-icon .icon { width: 28px; height: 28px; }
.ms-empty h3 { font-size: 18px; }
.ms-empty p { font-size: 13px; color: var(--muted); max-width: 360px; }
.ms-empty .btn { margin-top: 12px; height: 42px; font-size: 13px; }
.ms-empty-box {
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.ms-inline-empty {
  padding: 26px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

/* 入驻 Banner */
.ms-apply-wrap { padding: 0 0 76px; }
.ms-apply-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 48px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(60% 140% at 88% 10%, rgba(20, 102, 242, 0.5), transparent 62%),
    linear-gradient(102deg, #071b33 0%, #0c2b4d 100%);
  color: #fff;
}
.ms-apply-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ms-apply-copy h2 { font-size: 26px; margin: 12px 0 8px; }
.ms-apply-copy p { font-size: 13.5px; color: #a8bdd4; max-width: 520px; }
.ms-apply-banner .btn { position: relative; z-index: 1; flex: none; }

/* =========================================================
   技师详情
   ========================================================= */
.ms-detail-hero {
  padding: 30px 0 6px;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-2);
}
.ms-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 22px;
}
.ms-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.ms-back:hover { color: var(--brand); }

.ms-profile {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding-bottom: 40px;
}
.ms-profile-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 4.3;
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
}
.ms-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ms-profile-body { padding: 4px 0; }
.ms-profile-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ms-profile-title h1 { font-size: clamp(28px, 3.2vw, 40px); }
.ms-profile-zh { display: block; margin-top: 4px; font-size: 13px; color: var(--muted-2); letter-spacing: 0.06em; }
.ms-profile-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.ms-profile-rating b { font-size: 22px; letter-spacing: -0.02em; }
.ms-profile-rating b.new { font-size: 13px; color: var(--brand); }
.ms-profile-rating span { font-size: 11.5px; color: var(--muted-2); }

.ms-stars { display: inline-flex; gap: 2px; color: #dbe3ee; }
.ms-stars .icon { width: 15px; height: 15px; stroke: currentColor; fill: currentColor; stroke-width: 1; }
.ms-stars .icon.on { color: var(--gold); stroke: var(--gold); }
.ms-stars.sm .icon { width: 13px; height: 13px; }

.ms-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0;
  font-size: 13px;
  color: var(--muted);
}
.ms-profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ms-profile-meta .icon { width: 15px; height: 15px; color: var(--brand); }
.ms-profile-bio {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 16px;
}
.ms-profile-skeleton {
  height: 320px;
  border-radius: 24px;
  background: linear-gradient(90deg, #eef3fa 0%, #f8fbff 50%, #eef3fa 100%);
  background-size: 200% 100%;
  animation: msShimmer 1.4s linear infinite;
}
@keyframes msShimmer {
  to { background-position: -200% 0; }
}

.ms-detail-section { padding-top: 38px; }
.ms-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 30px;
  align-items: start;
}
.ms-detail-main { display: grid; gap: 20px; min-width: 0; }
.ms-booking-col { position: sticky; top: calc(var(--header-h) + 18px); min-width: 0; }

.ms-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.ms-panel-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.ms-panel-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand);
}
.ms-panel-icon .icon { width: 21px; height: 21px; }
.ms-panel-head h2, .ms-panel-head h3 { font-size: 17px; }
.ms-panel-head p { font-size: 12px; color: var(--muted-2); margin-top: 2px; }

.ms-service-list { display: grid; gap: 10px; }
.ms-service-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #fbfdff;
  transition: border-color 0.2s, background 0.2s;
}
.ms-service-row:hover { border-color: #cfe0f7; background: var(--brand-050); }
.ms-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
}
.ms-service-icon .icon { width: 20px; height: 20px; }
.ms-service-copy h3 { font-size: 14.5px; }
.ms-service-copy p { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.ms-service-meta { text-align: right; white-space: nowrap; }
.ms-service-meta span { display: block; font-size: 11px; color: var(--muted-2); }
.ms-service-meta b { font-size: 15px; }
.ms-service-pick {
  height: 36px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ms-service-pick:hover { border-color: var(--brand); color: var(--brand); }

.ms-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ms-week-day {
  padding: 14px 6px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #fbfdff;
  text-align: center;
}
.ms-week-day span { display: block; font-size: 11px; color: var(--muted-2); font-weight: 700; }
.ms-week-day b { display: block; font-size: 11.5px; margin-top: 5px; color: var(--muted-2); font-weight: 600; }
.ms-week-day.active { background: #fff; border-color: #d9e7fb; }
.ms-week-day.active b { color: var(--ink); }
.ms-week-day.today { box-shadow: inset 0 0 0 1.5px var(--brand-400); }
.ms-week-day.today small {
  display: inline-block;
  margin-top: 5px;
  font-size: 9.5px;
  color: var(--brand);
  font-weight: 700;
}

.ms-review-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg);
  margin-bottom: 18px;
}
.ms-review-score b { font-size: 32px; letter-spacing: -0.03em; display: block; }
.ms-review-score small { font-size: 11px; color: var(--muted-2); }
.ms-review-meter { height: 8px; border-radius: 8px; background: #e4ecf7; overflow: hidden; }
.ms-review-meter span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gold), #ffde85);
}
.ms-review-list { display: grid; gap: 12px; }
.ms-review {
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #fff;
}
.ms-review-top { display: flex; align-items: center; gap: 10px; }
.ms-review-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.ms-review-top > div { flex: 1; min-width: 0; }
.ms-review-top b { display: block; font-size: 13px; }
.ms-review-top small { display: block; font-size: 10.5px; color: var(--muted-2); }
.ms-review p { font-size: 13px; line-height: 1.7; color: var(--ink-2); margin-top: 10px; }
.ms-review time { display: block; margin-top: 8px; font-size: 10.5px; color: var(--muted-2); }
.ms-review-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12.5px;
}
.ms-review-empty .icon { width: 18px; height: 18px; color: var(--gold); fill: var(--gold); stroke: var(--gold); }

/* 预约面板 */
.ms-book-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.ms-book-head { padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.ms-book-head h3 { font-size: 20px; margin: 10px 0 4px; }
.ms-book-head p { font-size: 11.5px; color: var(--muted-2); }
.ms-book-section { padding-top: 16px; }
.ms-book-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.ms-book-select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.ms-book-select:focus { border-color: var(--brand-400); }

.ms-date-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.ms-date-tab {
  flex: none;
  min-width: 76px;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ms-date-tab span { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ms-date-tab small { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; }
.ms-date-tab:hover { border-color: var(--brand-400); }
.ms-date-tab.active { background: var(--navy-800); border-color: var(--navy-800); }
.ms-date-tab.active span { color: #fff; }
.ms-date-tab.active small { color: var(--gold); }
.ms-date-tab.off { opacity: 0.52; }

.ms-slot-head { display: flex; align-items: center; justify-content: space-between; }
.ms-slot-head small { font-size: 10.5px; color: var(--teal); font-weight: 700; }
.ms-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ms-slot {
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ms-slot b { display: block; font-size: 12.5px; letter-spacing: -0.01em; }
.ms-slot small { display: block; font-size: 9.5px; color: var(--muted-2); }
.ms-slot.free:hover { border-color: var(--brand); color: var(--brand); }
.ms-slot.active { background: var(--brand); border-color: var(--brand); }
.ms-slot.active b, .ms-slot.active small { color: #fff; }
.ms-slot.booked, .ms-slot.past {
  background: #f4f7fb;
  color: #a7b5c7;
  cursor: not-allowed;
  text-decoration: line-through;
}
.ms-slot.booked small, .ms-slot.past small { color: #b6c2d1; }
.ms-slot-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

.ms-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
  outline: none;
}
.ms-textarea:focus { border-color: var(--brand-400); }

.ms-book-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--muted);
}
.ms-book-total b { font-size: 21px; color: var(--ink); letter-spacing: -0.02em; }
.ms-book-card .btn { height: 48px; font-size: 14px; }
.ms-book-card .btn.is-muted {
  background: var(--bg-2);
  color: var(--muted-2);
  box-shadow: none;
}
.ms-book-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--muted-2);
}
.ms-book-safe .icon { width: 13px; height: 13px; color: var(--teal); }

/* =========================================================
   模态框 / Toast
   ========================================================= */
.ms-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ms-modal[hidden] { display: none; }
.ms-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 32, 0.62);
  backdrop-filter: blur(3px);
}
.ms-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(4, 16, 32, 0.6);
  animation: msModalIn 0.28s var(--ease);
}
@keyframes msModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.ms-modal-card h3 { font-size: 21px; }
.ms-modal-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ms-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}
.ms-modal-close .icon { width: 16px; height: 16px; }
.ms-modal-close:hover { background: #e9eff8; color: var(--ink); }
.ms-modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.ms-modal-actions .btn { flex: 1; height: 46px; font-size: 13.5px; }

.ms-booking-summary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg);
}
.ms-booking-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
}
.ms-booking-summary span { color: var(--muted-2); flex: none; }
.ms-booking-summary b { text-align: right; }
.ms-summary-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ms-summary-total b { font-size: 19px; }

.ms-success-card { max-width: 420px; text-align: center; padding: 38px 30px 30px; }
.ms-success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18, 183, 165, 0.12);
  color: var(--teal);
}
.ms-success-icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.ms-success-card h3 { font-size: 22px; }
.ms-success-card > p { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.ms-success-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 6px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 11.5px;
  color: var(--muted-2);
}
.ms-success-code b { font-size: 14px; color: var(--ink); letter-spacing: 0.02em; }

.ms-confirm-card { max-width: 400px; }
.ms-confirm-card h3 { font-size: 19px; }
.ms-confirm-card p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.ms-confirm-actions { display: flex; gap: 10px; margin-top: 22px; }
.ms-confirm-actions .btn { flex: 1; height: 44px; font-size: 13px; }

.ms-review-modal { max-width: 480px; }
.ms-review-target {
  margin: 16px 0;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg);
}
.ms-rate-input { display: flex; justify-content: center; gap: 8px; margin: 6px 0 18px; }
.ms-rate-input button {
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  padding: 4px;
  cursor: pointer;
  color: #dbe3ee;
}
.ms-rate-input button .icon { width: 30px; height: 30px; fill: currentColor; stroke: currentColor; transition: transform 0.15s, color 0.15s; }
.ms-rate-input button:hover { transform: scale(1.08); }
.ms-rate-input button.on { color: var(--gold); }
.ms-form-label { display: block; }
.ms-form-label > span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }

.ms-toast-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: grid;
  gap: 8px;
}
.ms-toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 210px;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 13px;
  background: var(--navy-800);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(4, 16, 32, 0.7);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.ms-toast.show { opacity: 1; transform: none; }
.ms-toast .icon { width: 16px; height: 16px; color: #2ee6a8; }
.ms-toast.error .icon { color: #ff8a8f; }

/* 登录弹窗 */
.ms-auth-card { max-width: 430px; }
.ms-auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.ms-auth-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--gold);
}
.ms-auth-brand .brand-mark .icon { width: 21px; height: 21px; }
.ms-auth-brand b { display: block; font-size: 15px; }
.ms-auth-brand span { display: block; font-size: 11.5px; color: var(--muted-2); }
.ms-auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg);
  margin-bottom: 18px;
}
.ms-auth-tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ms-auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.ms-form { display: grid; gap: 13px; }
.ms-form label { display: block; }
.ms-form label > span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.ms-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.ms-form input:focus { border-color: var(--brand-400); }
.ms-form .btn { height: 46px; margin-top: 4px; font-size: 14px; }
.ms-auth-foot { font-size: 10.5px; color: var(--muted-2); text-align: center; margin-top: 14px; }

/* =========================================================
   账户中心
   ========================================================= */
.ms-account-hero {
  padding: 54px 0 40px;
  background:
    radial-gradient(70% 120% at 92% 0%, rgba(20, 102, 242, 0.12), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-2);
}
.ms-account-hero h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 10px; }
.ms-account-hero p { font-size: 14px; color: var(--muted); }
.ms-account-section { padding-top: 34px; padding-bottom: 76px; }

.ms-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
  min-height: 420px;
}
.ms-auth-side { max-width: 480px; }
.ms-auth-mark {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--gold);
  margin-bottom: 20px;
}
.ms-auth-mark .icon { width: 27px; height: 27px; }
.ms-auth-side h2 { font-size: 30px; }
.ms-auth-side p { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.ms-auth-benefits { display: grid; gap: 12px; margin-top: 24px; }
.ms-auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.ms-auth-benefits li span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand);
}
.ms-auth-benefits li span .icon { width: 17px; height: 17px; }

.ms-inline-auth {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.ms-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.ms-dash-user { display: flex; align-items: center; gap: 14px; }
.ms-avatar {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ms-avatar.sm { width: 38px; height: 38px; font-size: 13px; }
.ms-dash-user h2 { font-size: 21px; }
.ms-dash-user p { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }

.ms-role {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 800;
  background: var(--bg-2);
  color: var(--muted);
}
.ms-role.admin { background: rgba(20, 102, 242, 0.1); color: var(--brand-600); }
.ms-role.technician { background: rgba(18, 183, 165, 0.12); color: #0b8f81; }
.ms-role.customer { background: rgba(255, 197, 49, 0.18); color: #8a6100; }
.ms-role.pending { background: #fff4e2; color: #b96a00; }

.ms-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ms-logout .icon { width: 14px; height: 14px; }
.ms-logout:hover { color: #cf3b40; border-color: #f3c9cb; }

.ms-dash-tabs { display: flex; gap: 8px; padding: 18px 0; overflow-x: auto; }
.ms-dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ms-dash-tab .icon { width: 16px; height: 16px; }
.ms-dash-tab b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 10.5px;
}
.ms-dash-tab.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.ms-dash-tab.active .icon { color: var(--gold); }
.ms-dash-tab.active b { background: rgba(255, 255, 255, 0.16); color: #fff; }

.ms-dash-body { display: grid; gap: 26px; }
.ms-booking-group { display: grid; gap: 12px; }
.ms-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.ms-group-head h3 { font-size: 16px; }
.ms-group-head span {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ms-booking-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.ms-booking-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ms-mini-tech, .ms-mini-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ms-mini-tech img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-2);
}
.ms-mini-tech b, .ms-mini-person b { display: block; font-size: 13.5px; }
.ms-mini-tech small, .ms-mini-person small { display: block; font-size: 11px; color: var(--muted-2); }

.ms-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 800;
  background: var(--bg-2);
  color: var(--muted);
}
.ms-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ms-status.pending { background: #fff4e2; color: #b96a00; }
.ms-status.confirmed { background: #e9f2ff; color: var(--brand-600); }
.ms-status.completed { background: #e8f9f3; color: #0b8f81; }
.ms-status.cancelled { background: #f2f5f9; color: #8494a8; }
.ms-status.approved { background: #e8f9f3; color: #0b8f81; }
.ms-status.rejected { background: #fdeceb; color: #cf3b40; }

.ms-booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.ms-booking-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ms-booking-meta .icon { width: 14px; height: 14px; color: var(--muted-2); }
.ms-booking-note {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.ms-booking-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.ms-booking-foot small { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.02em; }
.ms-booking-foot b { font-size: 16px; }
.ms-booking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }

.ms-text-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  font-family: inherit;
}
.ms-text-link:hover { text-decoration: underline; }
.ms-text-link.danger { color: #cf3b40; }
.ms-text-link.accent { color: #b96a00; }
.ms-reviewed { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--teal); font-weight: 700; }
.ms-reviewed .icon { width: 14px; height: 14px; }

/* 技师工作台 */
.ms-tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ms-dash-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.ms-dash-panel .ms-panel-head { margin-bottom: 16px; }
.ms-status-controls { display: flex; flex-direction: column; gap: 16px; }
.ms-switch.big { height: auto; padding: 14px 16px; }
.ms-switch.big b { font-size: 13px; }
.ms-segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg);
}
.ms-segmented button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.ms-segmented button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.ms-schedule-form { display: grid; gap: 14px; }
.ms-day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-day-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ms-day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ms-day-chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.ms-time-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.ms-time-row label { display: grid; gap: 6px; flex: 1; min-width: 120px; }
.ms-time-row label span { font-size: 11px; font-weight: 700; color: var(--muted); }
.ms-time-row input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.ms-time-row input:focus { border-color: var(--brand-400); }
.ms-time-row .btn { flex: none; }

/* 管理员 */
.ms-admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ms-admin-stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.ms-admin-stat span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand);
  margin-bottom: 12px;
}
.ms-admin-stat span .icon { width: 17px; height: 17px; }
.ms-admin-stat b { display: block; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.ms-admin-stat small { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }
.ms-admin-section { display: grid; gap: 12px; }
.ms-app-list { display: grid; gap: 12px; }
.ms-app-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.ms-app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-app-person { display: flex; align-items: center; gap: 12px; }
.ms-app-person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
}
.ms-app-person h4 { font-size: 14.5px; }
.ms-app-person small { font-size: 11px; color: var(--muted-2); }
.ms-app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.ms-app-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ms-app-services span {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--brand-050);
  color: var(--brand-600);
  font-size: 10.5px;
  font-weight: 600;
}
.ms-app-schedule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.ms-app-schedule .icon { width: 14px; height: 14px; color: var(--muted-2); }
.ms-app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.ms-app-foot small { font-size: 10.5px; color: var(--muted-2); }
.ms-app-foot > div { display: flex; gap: 8px; }

/* =========================================================
   技师入驻申请
   ========================================================= */
.ms-apply-hero {
  position: relative;
  padding: 60px 0 54px;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.ms-apply-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 120% at 85% 0%, rgba(20, 102, 242, 0.42), transparent 62%),
    radial-gradient(40% 90% at 10% 100%, rgba(255, 197, 49, 0.1), transparent 60%);
}
.ms-apply-hero .container { position: relative; }
.ms-apply-hero h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 16px 0 12px; }
.ms-apply-hero p { font-size: 14.5px; color: #b3c6db; max-width: 620px; line-height: 1.8; }
.ms-apply-hero .ms-back { color: #9fb4c9; margin-bottom: 22px; }
.ms-apply-hero .ms-eyebrow { display: flex; margin-bottom: 2px; }
.ms-apply-hero .ms-back:hover { color: #fff; }
.ms-apply-section { padding-top: 36px; padding-bottom: 76px; }

.ms-apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.ms-apply-form { display: grid; gap: 18px; min-width: 0; }
.ms-apply-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.ms-apply-card-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.ms-apply-card-head h2 { font-size: 17px; }
.ms-apply-card-head p { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.6; }

.ms-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ms-field { display: grid; gap: 6px; min-width: 0; }
.ms-field > span { font-size: 11px; font-weight: 700; color: var(--muted); }
.ms-field input, .ms-field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.ms-field input:focus, .ms-field select:focus { border-color: var(--brand-400); }

.ms-photo-upload { display: flex; align-items: center; gap: 22px; }
.ms-photo-preview {
  width: 112px;
  height: 136px;
  flex: none;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--muted-2);
  overflow: hidden;
}
.ms-photo-preview .icon { width: 30px; height: 30px; }
.ms-photo-preview.has-photo { border-style: solid; }
.ms-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.ms-photo-actions { display: grid; gap: 10px; }
.ms-photo-actions small { font-size: 10.5px; color: var(--muted-2); max-width: 300px; line-height: 1.6; }
.ms-photo-btn { cursor: pointer; }

.ms-service-editor { display: grid; gap: 10px; }
.ms-service-edit {
  display: grid;
  grid-template-columns: 30px minmax(0, 1.4fr) 86px minmax(0, 1fr) 40px;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg);
}
.ms-service-edit-index {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted-2);
  padding-bottom: 14px;
}
.ms-service-edit .ms-field select,
.ms-service-edit .ms-field input { height: 42px; background: #fff; }
.ms-row-remove {
  width: 40px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--muted-2);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ms-row-remove span { display: none; }
.ms-row-remove .icon { width: 15px; height: 15px; }
.ms-row-remove:hover { color: #cf3b40; border-color: #f3c9cb; background: #fff8f8; }
.ms-add-service {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px dashed var(--brand-400);
  border-radius: 12px;
  background: var(--brand-050);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.ms-add-service .icon { width: 15px; height: 15px; }
.ms-add-service:hover { background: #e9f2ff; }

.ms-apply-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.ms-apply-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.65;
  max-width: 440px;
}
.ms-apply-notice .icon { width: 15px; height: 15px; color: var(--teal); margin-top: 1px; }
.ms-apply-submit .btn { flex: none; height: 48px; }

.ms-apply-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.ms-apply-side-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}
.ms-apply-side-card h3 { font-size: 18px; margin: 12px 0 18px; }
.ms-review-steps { display: grid; gap: 16px; }
.ms-review-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.ms-review-steps li > b {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
}
.ms-review-steps strong { display: block; font-size: 12.5px; }
.ms-review-steps small { display: block; font-size: 10.5px; color: var(--muted-2); line-height: 1.6; margin-top: 2px; }
.ms-apply-side-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 10.5px;
  color: var(--muted-2);
  line-height: 1.6;
}
.ms-apply-side-note .icon { width: 14px; height: 14px; color: var(--brand); margin-top: 1px; }

/* 申请状态 */
.ms-gate {
  max-width: 560px;
  margin: 20px auto;
  padding: 46px 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.ms-gate-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand);
}
.ms-gate-icon .icon { width: 28px; height: 28px; }
.ms-gate h2 { font-size: 22px; }
.ms-gate p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.75; }
.ms-gate-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.ms-status-view { display: grid; gap: 18px; }
.ms-status-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.ms-status-orb {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff4e2;
  color: #b96a00;
}
.ms-status-orb .icon { width: 26px; height: 26px; }
.ms-status-card.approved .ms-status-orb { background: #e8f9f3; color: #0b8f81; }
.ms-status-card.rejected .ms-status-orb { background: #fdeceb; color: #cf3b40; }
.ms-status-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ms-status-top h2 { font-size: 22px; }
.ms-status-copy > p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.75; }
.ms-status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.ms-status-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ms-status-meta .icon { width: 14px; height: 14px; color: var(--muted-2); }
.ms-status-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ms-status-services span {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--brand-050);
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 600;
}
.ms-status-note {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdeceb;
  color: #cf3b40;
  font-size: 12px;
}
.ms-status-steps {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.ms-status-steps span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}
.ms-status-steps span i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ms-status-steps span.done { background: #e8f9f3; color: #0b8f81; }
.ms-status-steps span.active { background: #fff4e2; color: #b96a00; }
.ms-status-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ms-status-actions .btn { height: 46px; font-size: 13.5px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-hero-inner { gap: 34px; }
  .ms-detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .ms-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .ms-hero { padding: 56px 0 64px; }
  .ms-hero-inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .ms-hero-side { max-width: 440px; }
  .ms-hero-title { font-size: 40px; }
  .ms-profile { grid-template-columns: 260px minmax(0, 1fr); gap: 26px; }
  .ms-detail-layout { grid-template-columns: 1fr; }
  .ms-booking-col { position: static; }
  .ms-apply-layout { grid-template-columns: 1fr; }
  .ms-apply-side { position: static; order: 2; }
  .ms-auth-layout { grid-template-columns: 1fr; gap: 28px; }
  .ms-auth-side { max-width: none; }
  .ms-auth-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ms-tech-grid { grid-template-columns: 1fr; }
  .ms-match { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ms-hero { padding: 40px 0 46px; }
  .ms-hero-title { font-size: 32px; margin: 12px 0 12px; }
  .ms-hero-sub { font-size: 13.5px; line-height: 1.75; }
  .ms-searchbox { height: 50px; margin: 20px 0 16px; padding-left: 14px; }
  .ms-search-btn { height: 38px; padding: 0 18px; font-size: 13px; }
  .ms-hero-trust { gap: 14px; font-size: 11.5px; }
  .ms-hero-side { display: none; }

  .ms-browse { padding-top: 34px; }
  .ms-area-chip { height: 40px; padding-left: 13px; font-size: 12.5px; }
  .ms-area-chip b { height: 25px; min-width: 23px; }
  .ms-toolbar { gap: 8px; }
  .ms-control { height: 42px; padding: 0 12px; }
  .ms-control > span { display: none; }
  .ms-control select { font-size: 12.5px; max-width: 132px; }
  .ms-switch { height: 42px; padding: 0 12px; }
  .ms-switch b { font-size: 11.5px; }
  .ms-result-count { margin-left: 0; }
  .ms-grid { grid-template-columns: 1fr; gap: 18px; }
  .ms-tech-media { aspect-ratio: 5 / 4; }

  .ms-apply-wrap { padding-bottom: 46px; }
  .ms-apply-banner { flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 20px; }
  .ms-apply-copy h2 { font-size: 21px; }
  .ms-apply-banner .btn { width: 100%; }

  .ms-detail-hero { padding-top: 22px; }
  .ms-profile { grid-template-columns: 1fr; gap: 20px; padding-bottom: 28px; }
  .ms-profile-photo { max-width: 320px; aspect-ratio: 4 / 4.1; }
  .ms-profile-title h1 { font-size: 28px; }
  .ms-profile-meta { font-size: 12px; gap: 7px 14px; }
  .ms-detail-section { padding-top: 26px; }
  .ms-panel { padding: 20px 18px; border-radius: 18px; }
  .ms-service-row { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .ms-service-icon { width: 38px; height: 38px; }
  .ms-service-meta { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .ms-service-pick { grid-column: 2; width: 100%; }
  .ms-week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ms-week-day { padding: 11px 4px; }
  .ms-week-day span { font-size: 10px; }
  .ms-week-day b { font-size: 10px; }

  .ms-book-card { padding: 20px 18px; border-radius: 18px; }
  .ms-slots { grid-template-columns: repeat(4, 1fr); }
  .ms-modal { padding: 14px; align-items: flex-end; }
  .ms-modal-card { padding: 24px 20px; border-radius: 20px; max-height: 88vh; }
  .ms-modal-actions { flex-direction: column-reverse; }
  .ms-toast-wrap { left: 14px; right: 14px; bottom: 78px; }
  .ms-toast { max-width: none; }

  .ms-account-hero { padding: 34px 0 26px; }
  .ms-account-hero h1 { font-size: 27px; }
  .ms-account-section { padding-top: 24px; padding-bottom: 46px; }
  .ms-auth-layout { min-height: 0; }
  .ms-auth-side h2 { font-size: 24px; }
  .ms-auth-benefits { grid-template-columns: 1fr; gap: 8px; }
  .ms-auth-benefits li { font-size: 12.5px; }
  .ms-inline-auth { padding: 20px 18px; }

  .ms-dash-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ms-logout { align-self: flex-end; }
  .ms-dash-user h2 { font-size: 18px; }
  .ms-avatar { width: 46px; height: 46px; font-size: 15px; }
  .ms-dash-tabs { padding: 14px 0; }
  .ms-dash-tab { height: 40px; padding: 0 13px; font-size: 12px; }
  .ms-booking-card { padding: 16px; }
  .ms-booking-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ms-tech-grid { gap: 12px; }
  .ms-admin-stats { gap: 10px; }
  .ms-admin-stat { padding: 14px 16px; }
  .ms-admin-stat b { font-size: 22px; }
  .ms-app-card { padding: 16px; }
  .ms-app-foot { align-items: flex-start; }
  .ms-app-foot > div { width: 100%; }
  .ms-app-foot .btn { flex: 1; }

  .ms-apply-hero { padding: 36px 0 34px; }
  .ms-apply-hero h1 { font-size: 28px; }
  .ms-apply-hero p { font-size: 13px; }
  .ms-apply-section { padding-top: 24px; padding-bottom: 46px; }
  .ms-apply-card { padding: 20px 18px; border-radius: 18px; }
  .ms-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .ms-photo-upload { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ms-photo-preview { width: 96px; height: 118px; }
  .ms-service-edit {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px;
    padding: 12px;
  }
  .ms-service-edit-index { display: none; }
  .ms-service-edit .ms-field:nth-of-type(1) { grid-column: 1; }
  .ms-service-edit .ms-field:nth-of-type(2) { grid-column: 2; }
  .ms-service-edit .ms-field:nth-of-type(3) { grid-column: 1 / -1; }
  .ms-row-remove {
    grid-column: 1 / -1;
    width: 100%;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
  }
  .ms-row-remove span { display: inline; }
  .ms-apply-submit { flex-direction: column; align-items: stretch; padding: 18px; }
  .ms-apply-submit .btn { width: 100%; }
  .ms-apply-side-card { padding: 20px 18px; }

  .ms-status-card { grid-template-columns: 1fr; padding: 22px 18px; gap: 14px; }
  .ms-gate { padding: 34px 22px; }
  .ms-status-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .ms-slots { grid-template-columns: repeat(3, 1fr); }
  .ms-week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ms-detail-main { gap: 14px; }
  .ms-admin-stats { grid-template-columns: 1fr; }
}
