:root {
  --page-max: 480px;
  --bg: #f8f1fa;
  --card: #fffafd;
  --card-2: #f4eaf7;
  --line: rgba(101, 57, 131, 0.12);
  --text: #321d3f;
  --muted: #806f88;
  --brown: #653983;
  --brown-2: #391c47;
  --gold: #bf8544;
  --orange: #f06a2b;
  --green: #46a83f;
  --shadow: 0 7px 20px rgba(73, 39, 91, 0.09);
  --radius: clamp(12px, 3.2vw, 18px);
  --gap: clamp(7px, 2vw, 11px);
  --pad: clamp(10px, 2.8vw, 14px);
  --nav-h: clamp(66px, 17vw, 82px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: clamp(13px, 3.4vw, 16px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: #eee6f2;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial,
    sans-serif;
  font-size: var(--font);
  color: var(--text);
  background: #eee6f2;
}

button {
  font: inherit;
}

button,
.action-btn {
  border: 0;
  color: inherit;
  background: none;
  padding: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100%, var(--page-max));
  min-height: 100vh;
  margin: 2px auto 0;
  background:
    radial-gradient(circle at 90% 0, rgba(203, 161, 212, 0.22), transparent 28%),
    linear-gradient(180deg, #fffafd 0%, #f8f1fa 100%);
  box-shadow: 0 0 50px rgba(57, 28, 71, 0.1);
  overflow-x: hidden;
}

.topbar {
  height: clamp(58px, 15vw, 72px);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) var(--pad) 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: rgba(255, 250, 253, 0.96);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar__location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  font-size: 0.86em;
  font-weight: 700;
  white-space: nowrap;
}

.topbar__brand strong {
  font-size: clamp(19px, 5.6vw, 29px);
  letter-spacing: 0.04em;
  font-family: 'Songti SC', 'STSong', serif;
}

.topbar__menu {
  justify-self: end;
  width: clamp(56px, 15vw, 76px);
  height: clamp(31px, 8vw, 40px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(101, 57, 131, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brown-2);
}

.css-icon--pin {
  width: 14px;
  height: 18px;
  border-radius: 9px 9px 12px 12px;
  background: var(--gold);
  position: relative;
  transform: rotate(-2deg);
}

.css-icon--pin::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f8f1fa;
  top: 4px;
  left: 4.5px;
}

.chevron {
  display: inline-block;
  width: 0.52em;
  height: 0.52em;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
}

.chevron--right {
  transform: rotate(45deg);
}

.chevron--down {
  transform: rotate(135deg) translateY(2px);
}

.page {
  /* 最后一张内容卡片始终停在底部导航上方，不被导航覆盖 */
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px);
}

.card {
  margin: var(--gap);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  margin-top: 0;
  min-height: 0;
  aspect-ratio: 5 / 3;
  position: relative;
  background:
    linear-gradient(
      90deg,
      rgba(250, 239, 252, 0.98) 0%,
      rgba(235, 220, 240, 0.9) 48%,
      rgba(129, 80, 154, 0.22) 100%
    ),
    linear-gradient(180deg, #f3e5f6 0%, #d9bde2 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 58%;
  padding: clamp(18px, 5vw, 28px) 0 clamp(20px, 5vw, 28px) clamp(16px, 4.5vw, 24px);
}

.hero__eyebrow {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #81509a;
  font-size: 0.69em;
  font-weight: 700;
}

.hero h1 {
  margin: 9px 0 4px;
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1.08;
  font-family: 'Songti SC', 'STSong', serif;
  color: #391c47;
  letter-spacing: 0.04em;
}

.hero p {
  margin: 0 0 14px;
  color: #653983;
  font-size: clamp(14px, 4vw, 20px);
  font-family: 'Songti SC', 'STSong', serif;
}

.primary-btn {
  min-width: 108px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #81509a, #391c47);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(57, 28, 71, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-art__sun {
  position: absolute;
  right: 5%;
  top: 7%;
  width: 44%;
  height: 76%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(235, 220, 240, 0.95) 0 20%,
    rgba(173, 116, 181, 0.42) 47%,
    transparent 69%
  );
  filter: blur(2px);
}

.hero-art__candle {
  position: absolute;
  bottom: 15%;
  width: 9%;
  height: 24%;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(#f7e7ce, #d8a979);
  opacity: 0.58;
}

.hero-art__candle::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 17px;
  top: -15px;
  left: 50%;
  border-radius: 70% 30% 65% 35%;
  background: #ffb54d;
  transform: translateX(-50%) rotate(10deg);
  filter: blur(0.4px);
}

.hero-art__candle--1 {
  left: 49%;
  height: 18%;
}
.hero-art__candle--2 {
  left: 57%;
  height: 12%;
  width: 7%;
}

.hero-art__towel {
  position: absolute;
  right: 3%;
  bottom: 2%;
  width: 31%;
  height: 23%;
  border-radius: 50% 50% 34% 34%;
  background:
    repeating-linear-gradient(0deg, rgba(98, 52, 18, 0.05) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #c58c51, #9e6331);
  transform: rotate(-7deg);
}

.hero-art__towel--2 {
  right: 14%;
  bottom: 9%;
  transform: rotate(7deg);
  background:
    repeating-linear-gradient(0deg, rgba(98, 52, 18, 0.04) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #dfb781, #bd8051);
}

.hero-art__flower {
  position: absolute;
  right: 5%;
  bottom: 11%;
  width: 52px;
  height: 52px;
  z-index: 3;
}

.hero-art__flower i {
  position: absolute;
  width: 18px;
  height: 30px;
  background: #fffef2;
  border-radius: 60% 40% 55% 45%;
  left: 17px;
  top: 2px;
  transform-origin: 9px 24px;
  box-shadow: inset 0 -6px 8px rgba(239, 196, 99, 0.16);
}
.hero-art__flower i:nth-child(2) {
  transform: rotate(72deg);
}
.hero-art__flower i:nth-child(3) {
  transform: rotate(144deg);
}
.hero-art__flower i:nth-child(4) {
  transform: rotate(216deg);
}
.hero-art__flower i:nth-child(5) {
  transform: rotate(288deg);
}
.hero-art__flower b {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f1b33b;
  left: 20px;
  top: 19px;
}

.hero-art__foot {
  position: absolute;
  right: 14%;
  top: 15%;
  width: 27%;
  height: 66%;
  border-radius: 48% 42% 52% 45%;
  background: linear-gradient(110deg, #f2b27f 0%, #ffc89a 52%, #d77d4d 100%);
  transform: rotate(13deg);
  box-shadow:
    inset -12px -18px 30px rgba(145, 59, 24, 0.12),
    0 18px 35px rgba(120, 55, 19, 0.15);
  z-index: 2;
}

.toe {
  position: absolute;
  top: -5%;
  border-radius: 50%;
  background: linear-gradient(150deg, #fbc498, #dd8758);
}
.toe--1 {
  width: 25%;
  height: 18%;
  left: 0;
}
.toe--2 {
  width: 23%;
  height: 16%;
  left: 18%;
  top: -10%;
}
.toe--3 {
  width: 21%;
  height: 14%;
  left: 37%;
  top: -11%;
}
.toe--4 {
  width: 19%;
  height: 13%;
  left: 54%;
  top: -8%;
}
.toe--5 {
  width: 17%;
  height: 12%;
  left: 68%;
  top: -3%;
}

.hero-art__hand {
  position: absolute;
  right: -3%;
  width: 34%;
  height: 15%;
  border-radius: 50px;
  background: linear-gradient(180deg, #d98b5a, #f1ae7b);
  z-index: 4;
  box-shadow: inset 0 -8px 14px rgba(105, 47, 17, 0.09);
}
.hero-art__hand--1 {
  top: 36%;
  transform: rotate(-18deg);
}
.hero-art__hand--2 {
  top: 54%;
  transform: rotate(10deg);
}

.hero__dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(101, 57, 131, 0.18);
}
.hero__dots span {
  width: 7px;
  height: 7px;
  border: 1.4px solid #fff;
  border-radius: 50%;
}
.hero__dots .is-active {
  background: #fff;
}

.section {
  padding: var(--pad);
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.section__num {
  color: #bf8544;
  font-family: Georgia, serif;
  font-size: 1.1em;
  font-weight: 700;
}

.section__title h2 {
  margin: 0;
  font-size: 1.08em;
  white-space: nowrap;
}

.section__title small {
  padding: 4px 7px;
  background: #f1e6f5;
  color: #81509a;
  border-radius: 999px;
  font-size: 0.66em;
  white-space: nowrap;
}

.text-btn {
  color: #745082;
  font-size: 0.78em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tech-scroll {
  --tech-gap: clamp(6px, 1.6vw, 8px);
  display: flex;
  gap: var(--tech-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1px 1px 6px;
}

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

/* 关键：首屏严格 3 张卡片 */
.tech-card {
  flex: 0 0 calc((100% - (var(--tech-gap) * 2)) / 3);
  min-width: 0;
  scroll-snap-align: start;
  border-radius: clamp(11px, 3vw, 15px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 14px rgba(73, 39, 91, 0.1);
  transform: translateY(0) scale(1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
  will-change: transform;
  cursor: pointer;
}

.tech-card:focus-visible {
  outline: 3px solid rgba(191, 133, 68, 0.42);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .tech-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 12px 26px rgba(73, 39, 91, 0.18);
    filter: brightness(1.015);
  }
}

.tech-card:active {
  transform: translateY(-1px) scale(0.985);
  transition-duration: 0.09s;
}

.tech-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 0.9 / 1;
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 50% 22%, #ead6c3 0 13%, transparent 13.4%),
    linear-gradient(180deg, #e8d7c5 0%, #f6eee5 55%, #d6b28f 100%);
}

/* HOME TECH IMAGE HOVER */
.tech-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform 0.32s ease,
    filter 0.32s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tech-card:hover .tech-photo img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.02);
  }
}

.avatar-placeholder {
  position: absolute;
  inset: 14% 14% 0;
}

.avatar-placeholder::before {
  content: '';
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  left: 27%;
  top: 6%;
  border-radius: 50%;
  background: linear-gradient(160deg, #5b3522 0 32%, #f0bc96 33% 78%, #6a3b24 79%);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.avatar-placeholder::after {
  content: '';
  position: absolute;
  width: 86%;
  height: 62%;
  left: 7%;
  bottom: -4%;
  border-radius: 46% 46% 10% 10%;
  background:
    linear-gradient(78deg, transparent 46%, rgba(152, 95, 52, 0.32) 47% 49%, transparent 50%),
    linear-gradient(102deg, transparent 46%, rgba(152, 95, 52, 0.32) 47% 49%, transparent 50%),
    linear-gradient(180deg, #e6c9aa 0%, #cfaa83 100%);
}

.avatar-placeholder i {
  position: absolute;
  width: 24%;
  height: 10%;
  background: #5b3423;
  border-radius: 50%;
  top: 4%;
  left: 38%;
  z-index: 3;
}

.status {
  position: absolute;
  z-index: 5;
  left: 6px;
  top: 6px;
  padding: 3px 6px;
  border-radius: 7px;
  color: #fff;
  font-size: clamp(8px, 2.1vw, 11px);
  font-weight: 700;
}

.status--online {
  background: var(--green);
}
.status--busy {
  background: var(--orange);
}
.status--offline {
  background: #8d8580;
}

.tech-card__body {
  padding: clamp(6px, 1.6vw, 8px);
}

.tech-card__name {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  align-items: center;
}

.tech-card__name strong {
  font-size: 0.86em;
  white-space: nowrap;
}

.tech-card__name span {
  color: #bf8544;
  font-size: 0.69em;
  font-weight: 800;
  white-space: nowrap;
}

.tech-card p {
  margin: 4px 0 4px;
  color: #806f88;
  font-size: clamp(8px, 2.2vw, 11px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #bf8544;
}
.tech-card__price b {
  font-size: 1em;
}
.tech-card__price small {
  font-size: 0.62em;
  color: #8b758f;
}

.tech-book {
  width: 100%;
  margin-top: 5px;
  padding: clamp(5px, 1.4vw, 7px) 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #81509a, #391c47);
  color: #fff;
  font-size: clamp(9px, 2.45vw, 12px);
  font-weight: 800;
}

.technician-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  padding: max(18px, env(safe-area-inset-top, 0px)) 12px max(18px, env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
}

.technician-detail-modal[hidden] {
  display: none;
}

.technician-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(34, 17, 43, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.technician-detail {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(101, 57, 131, 0.14);
  border-radius: 24px;
  background: #fffafd;
  box-shadow: 0 24px 70px rgba(42, 20, 52, 0.3);
  animation: technician-detail-in 0.2s ease-out;
}

@keyframes technician-detail-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.technician-detail__close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(48, 25, 59, 0.66);
  color: #fff;
  box-shadow: 0 5px 16px rgba(42, 20, 52, 0.22);
}

.technician-detail__close span {
  margin-top: -2px;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.technician-detail__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #ead6c3, #c69d76);
}

.technician-detail__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.technician-detail__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(57, 28, 71, 0.25));
  pointer-events: none;
}

.technician-detail__status {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(57, 28, 71, 0.2);
}

.technician-detail__content {
  padding: 18px;
}

.technician-detail__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.technician-detail__heading small {
  color: #9a7aa6;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.technician-detail__heading h2 {
  margin: 3px 0 0;
  color: #321d3f;
  font-size: 24px;
}

.technician-detail__heading > strong {
  color: #bf8544;
  font-size: 15px;
  white-space: nowrap;
}

.technician-detail__experience {
  margin: 9px 0 13px;
  color: #806f88;
  font-size: 13px;
}

.technician-detail__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.technician-detail__skills span {
  padding: 6px 10px;
  border: 1px solid rgba(101, 57, 131, 0.14);
  border-radius: 999px;
  background: #f1e6f5;
  color: #653983;
  font-size: 12px;
  font-weight: 700;
}

.technician-detail__footer {
  margin-top: 18px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(101, 57, 131, 0.12);
}

.technician-detail__footer > div {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.technician-detail__footer span {
  margin-right: 4px;
  color: #806f88;
  font-size: 11px;
}

.technician-detail__footer strong {
  color: #bf8544;
  font-size: 22px;
}

.technician-detail__footer small {
  color: #8b758f;
  font-size: 11px;
}

.technician-detail__book {
  min-width: 128px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #81509a, #391c47);
  color: #fff;
  box-shadow: 0 7px 17px rgba(57, 28, 71, 0.24);
  font-size: 14px;
  font-weight: 800;
}

.has-technician-detail {
  overflow: hidden;
}

@media (max-width: 480px) {
  .technician-detail-modal {
    padding: max(12px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px));
    align-items: end;
  }

  .technician-detail {
    max-height: calc(100vh - max(20px, env(safe-area-inset-top, 0px)));
    border-radius: 22px 22px 14px 14px;
  }

  .technician-detail__photo {
    aspect-ratio: 16 / 11;
  }
}

/* =========================================================
   HOME TECH SHOWCASE CSS START
   服务保障下方技师展示
========================================================= */

.home-tech-showcase {
  position: relative;

  margin: 12px -6px 0;

  padding-top: 12px;

  border-top: 1px solid rgba(101, 57, 131, 0.09);

  overflow: visible;
}

.home-tech-grid {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 6px;

  width: 100%;
}

.home-tech-grid .tech-card {
  width: 100%;
  min-width: 0;

  flex: none;

  scroll-snap-align: unset;

  border-radius: clamp(12px, 3.2vw, 16px);

  box-shadow: 0 6px 16px rgba(73, 39, 91, 0.11);
}

.home-tech-grid .tech-card__body {
  padding: clamp(9px, 2.4vw, 12px);
}

.home-tech-grid .tech-card__name strong {
  font-size: 0.95em;
}

.home-tech-grid .tech-card__name span {
  font-size: 0.76em;
}

.home-tech-grid .tech-card p {
  margin: 6px 0 7px;

  font-size: clamp(9px, 2.45vw, 12px);
}

.home-tech-grid .tech-card__price b {
  font-size: 1.08em;
}

.home-tech-grid .tech-card__price small {
  font-size: 0.68em;
}

.home-tech-grid .tech-book {
  margin-top: 8px;

  padding: clamp(7px, 2vw, 9px) 4px;

  font-size: clamp(10px, 2.6vw, 13px);
}

/* =========================================================
   查看更多 / 收起
========================================================= */

.home-tech-toggle-wrap {
  display: flex;

  justify-content: center;

  margin: 11px 0 1px;
}

.home-tech-toggle-wrap[hidden] {
  display: none !important;
}

.home-tech-toggle {
  min-width: 112px;

  height: 36px;

  padding: 0 23px;

  border: 1px solid rgba(101, 57, 131, 0.24);

  border-radius: 999px;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #eadcef);

  color: #653983;

  box-shadow: 0 5px 15px rgba(73, 39, 91, 0.15);

  font-size: clamp(12px, 3.1vw, 14px);

  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

/* =========================================================
   折叠状态

   遮罩上边缘：
   第二行卡片实际高度 50% 处。

   遮罩下边缘：
   向下延伸 16px，
   衔接固定底部导航栏上沿。
========================================================= */

.home-tech-showcase.is-collapsed .home-tech-toggle-wrap {
  position: absolute;

  left: 0;
  right: 0;

  top: var(--home-tech-mask-top, 68%);

  bottom: -16px;

  z-index: 12;

  margin: 0;

  display: flex;

  align-items: flex-start;
  justify-content: center;

  pointer-events: none;

  /*
   * 上沿完全透明，
   * 向下逐渐形成羽化遮罩。
   */
  background: linear-gradient(
    180deg,
    rgba(248, 241, 250, 0) 0%,

    rgba(248, 241, 250, 0.1) 10%,

    rgba(248, 241, 250, 0.3) 22%,

    rgba(248, 241, 250, 0.58) 36%,

    rgba(248, 241, 250, 0.82) 52%,

    rgba(248, 241, 250, 0.95) 72%,

    #f8f1fa 100%
  );

  -webkit-backdrop-filter: blur(1.2px);

  backdrop-filter: blur(1.2px);
}

/*
 * 按钮中心恰好落在
 * 第二行技师卡片垂直中心线上。
 */
.home-tech-showcase.is-collapsed .home-tech-toggle {
  position: absolute;

  z-index: 3;

  top: 0;
  left: 50%;

  pointer-events: auto;

  transform: translate(-50%, -50%);

  box-shadow: 0 7px 20px rgba(73, 39, 91, 0.19);
}

/* =========================================================
   展开状态

   遮罩完全消失，
   收起按钮回到底部正常位置。
========================================================= */

.home-tech-showcase.is-expanded .home-tech-toggle-wrap {
  position: relative;

  margin: 12px 0 1px;

  background: none;

  pointer-events: auto;
}

.home-tech-showcase.is-expanded .home-tech-toggle {
  position: static;

  transform: none;
}

/* =========================================================
   按钮交互
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .home-tech-showcase.is-expanded .home-tech-toggle:hover {
    transform: translateY(-2px);

    background: #f3e8f6;

    box-shadow: 0 7px 16px rgba(73, 39, 91, 0.14);
  }

  .home-tech-showcase.is-collapsed .home-tech-toggle:hover {
    transform: translate(-50%, calc(-50% - 2px));

    box-shadow: 0 9px 22px rgba(73, 39, 91, 0.23);
  }
}

.home-tech-showcase.is-expanded .home-tech-toggle:active {
  transform: scale(0.95);
}

.home-tech-showcase.is-collapsed .home-tech-toggle:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* =========================================================
   卡片交互
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .home-tech-grid .tech-card:hover {
    transform: translateY(-4px) scale(1.008);

    box-shadow: 0 12px 25px rgba(73, 39, 91, 0.16);
  }
}

.home-tech-grid .tech-card:active {
  transform: scale(0.985);
}

.home-tech-empty,
.home-tech-grid .loading-card {
  grid-column: 1 / -1;
}

/* =========================================================
   首页右下角返回顶部
========================================================= */

.home-back-top {
  position: fixed;

  right: 15px;

  bottom: calc(var(--nav-h, 62px) + env(safe-area-inset-bottom, 0px) + 15px);

  z-index: 90;

  width: 43px;
  height: 43px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;

  background: #653983;

  color: #fff;

  box-shadow: 0 6px 17px rgba(57, 28, 71, 0.28);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(8px);

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.home-back-top.is-visible {
  opacity: 0.94;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}

.home-back-top svg {
  width: 25px;
  height: 25px;

  fill: none;

  stroke: currentColor;

  stroke-width: 3.6;

  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .home-back-top:hover {
    opacity: 1;

    transform: translateY(-3px);

    box-shadow: 0 9px 21px rgba(57, 28, 71, 0.34);
  }
}

.home-back-top:active {
  transform: scale(0.91);
}

/* HOME TECH SHOWCASE CSS END */

.more-card {
  flex: 0 0 27%;
  min-width: 84px;
  scroll-snap-align: start;
  border-radius: 14px;
  background: linear-gradient(180deg, #faf4fc, #eee1f2);
  box-shadow: inset 0 0 0 1px rgba(101, 57, 131, 0.09);
  color: #653983;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.more-card__icon {
  font-weight: 900;
  letter-spacing: 3px;
}

.more-card__arrow {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #e4cfe9;
  display: grid;
  place-items: center;
}

.swipe-hint {
  margin: 2px auto 0;
  width: max-content;
  max-width: 100%;
  color: #9b7aa5;
  font-size: 0.72em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint-arrow {
  font-size: 1.35em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.6vw, 9px);
}

.project-card {
  display: block;
  min-width: 0;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(73, 39, 91, 0.09);
  padding-bottom: 9px;
  transform: translateY(0) scale(1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: translateY(-4px) scale(1.018);
    box-shadow: 0 11px 24px rgba(73, 39, 91, 0.16);
    filter: brightness(1.015);
  }
}

.project-card:active {
  transform: translateY(-1px) scale(0.97);
  transition-duration: 0.09s;
}

.project-art {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #f2c28e, #9c6038);
}

/* HOME PROJECT IMAGE HOVER */
.project-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform 0.32s ease,
    filter 0.32s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-art img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.02);
  }
}

.project-card strong,
.project-card small,
.project-card > span:last-child {
  display: block;
  padding-left: 7px;
  padding-right: 5px;
}

.project-card strong {
  margin-top: 6px;
  font-size: clamp(10px, 2.75vw, 14px);
  white-space: nowrap;
}

.project-card small {
  margin-top: 4px;
  color: #806f88;
  font-size: clamp(8px, 2.15vw, 11px);
}

.project-card > span:last-child {
  margin-top: 4px;
  color: #806f88;
  font-size: clamp(8px, 2vw, 10px);
  white-space: nowrap;
}

.project-card b {
  color: #bf8544;
  font-size: 1.35em;
}

.project-card em {
  color: #bf8544;
  font-style: normal;
  font-size: 0.82em;
  margin-left: 3px;
}

.foot-shape {
  position: absolute;
  width: 31%;
  height: 78%;
  border-radius: 48% 44% 42% 51%;
  background: linear-gradient(180deg, #f6c49e, #e98e61);
  left: 37%;
  top: 11%;
  transform: rotate(17deg);
  box-shadow: inset -5px -7px 10px rgba(118, 54, 25, 0.1);
}

.foot-shape::before {
  content: '';
  position: absolute;
  width: 33%;
  height: 18%;
  border-radius: 50%;
  left: -3%;
  top: -7%;
  background: #f4bd94;
  box-shadow:
    10px -5px 0 -1px #f2b68d,
    19px -5px 0 -2px #f0b086,
    27px -1px 0 -3px #eeaa80;
}

.massage-hand {
  position: absolute;
  width: 49%;
  height: 23%;
  border-radius: 999px;
  background: #f0ac81;
  right: 5%;
  top: 47%;
  transform: rotate(-13deg);
}

.project-art--press .press-dot {
  position: absolute;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(121, 57, 22, 0.25);
  left: 46%;
  top: 51%;
}

.back-shape {
  position: absolute;
  width: 78%;
  height: 60%;
  left: 8%;
  bottom: -6%;
  border-radius: 48% 48% 8% 8%;
  background: linear-gradient(180deg, #edb386, #d98454);
}

.oil-drop {
  position: absolute;
  width: 20%;
  height: 30%;
  left: 42%;
  top: 22%;
  background: #f4d386;
  border-radius: 70% 30% 55% 45%;
  transform: rotate(45deg);
}

.head-shape {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  right: 14%;
  top: 20%;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(160deg, #6c3b25 0 34%, #efb78e 35%);
}

.wave-line,
.wave-line::before,
.wave-line::after {
  position: absolute;
  content: '';
  width: 34%;
  height: 11%;
  border-top: 3px solid rgba(255, 239, 208, 0.8);
  border-radius: 50%;
  left: 10%;
  top: 35%;
}
.wave-line::before {
  left: 7%;
  top: 10px;
  width: 100%;
}
.wave-line::after {
  left: 14%;
  top: 22px;
  width: 84%;
}

.vip-banner {
  min-height: clamp(85px, 23vw, 112px);
  padding: clamp(12px, 3vw, 18px);
  background:
    radial-gradient(circle at 11% 90%, rgba(203, 161, 212, 0.28), transparent 35%),
    linear-gradient(100deg, #391c47, #2d1638 70%, #653983);
  color: #f2d49b;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.vip-card-icon {
  width: clamp(67px, 18vw, 88px);
  height: clamp(47px, 12vw, 62px);
  border-radius: 9px;
  position: relative;
  display: grid;
  place-items: center;
  color: #e8c37d;
  background: linear-gradient(135deg, #4b285d, #81509a);
  border: 1px solid rgba(232, 195, 125, 0.34);
  transform: rotate(-5deg);
  box-shadow: 0 8px 18px rgba(25, 10, 31, 0.22);
}
.vip-card-icon span {
  font-family: Georgia, serif;
  font-size: 1.3em;
}
.vip-card-icon i {
  position: absolute;
  width: 13px;
  height: 9px;
  top: -9px;
  left: 12px;
  background: #d6a44e;
  clip-path: polygon(0 100%, 18% 0, 50% 55%, 82% 0, 100% 100%);
}

.vip-banner__content h2 {
  margin: 0 0 6px;
  font-size: clamp(14px, 4vw, 20px);
}
.vip-banner__content p {
  margin: 0;
  font-size: clamp(8px, 2.2vw, 11px);
  color: #d9c5df;
}

.vip-btn {
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1d59b, #d9a95b);
  color: #391c47;
  font-weight: 900;
  white-space: nowrap;
  font-size: 0.78em;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 9px;
  border-radius: 13px;
  background: #f8f1fa;
}

.guarantee-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: center;
  padding: 7px;
  text-align: left;
  border-right: 1px solid rgba(101, 57, 131, 0.08);
}

.guarantee-item:last-child {
  border-right: 0;
}

.guarantee-item strong,
.guarantee-item small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guarantee-item strong {
  font-size: clamp(8px, 2.3vw, 12px);
}

.guarantee-item small {
  margin-top: 3px;
  color: #8b758f;
  font-size: clamp(6px, 1.7vw, 9px);
}

.guarantee-icon {
  width: clamp(24px, 6.5vw, 32px);
  aspect-ratio: 1;
  position: relative;
  display: block;
}

.guarantee-icon--shield {
  border: 2px solid #bf8544;
  border-radius: 11px 11px 16px 16px;
}
.guarantee-icon--shield::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #bf8544;
  font-weight: 900;
}

.guarantee-icon--bottle {
  width: 20px;
  margin-inline: 3px;
  border: 2px solid #bf8544;
  border-radius: 5px 5px 8px 8px;
}
.guarantee-icon--bottle::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 6px;
  left: 4px;
  top: -6px;
  border: 2px solid #bf8544;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.guarantee-icon--leaf::before,
.guarantee-icon--leaf::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 23px;
  border: 2px solid #bf8544;
  border-radius: 100% 0 100% 0;
  top: 3px;
}
.guarantee-icon--leaf::before {
  left: 3px;
  transform: rotate(-28deg);
}
.guarantee-icon--leaf::after {
  right: 3px;
  transform: scaleX(-1) rotate(-28deg);
}

.guarantee-icon--heart::before {
  content: '♡';
  position: absolute;
  inset: -6px 0 0;
  color: #bf8544;
  font-size: 38px;
  line-height: 1;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.promo-card {
  min-height: clamp(92px, 25vw, 122px);
  border-radius: 14px;
  padding: 13px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  text-align: left;
  overflow: hidden;
}

.promo-card--new {
  background: linear-gradient(120deg, #f1e6f5, #dec5e5);
}
.promo-card--invite {
  background: linear-gradient(120deg, #f5eaf8, #d8b9df);
}

.promo-card__text strong,
.promo-card__text small {
  display: block;
}

.promo-card__text strong {
  color: #653983;
  font-family: 'Songti SC', 'STSong', serif;
  font-size: clamp(15px, 4vw, 20px);
}

.promo-card__text small {
  margin: 4px 0 9px;
  color: #81509a;
  font-size: clamp(8px, 2.2vw, 11px);
}

.promo-card__text em {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: #653983;
  font-style: normal;
  font-size: clamp(8px, 2.1vw, 10px);
  font-weight: 800;
}

.gift-art,
.coupon-art {
  position: relative;
  height: 72px;
}

.gift-box {
  position: absolute;
  width: 58px;
  height: 48px;
  right: 7px;
  bottom: 2px;
  border-radius: 6px;
  background: linear-gradient(135deg, #81509a, #653983);
  box-shadow: 0 10px 18px rgba(73, 39, 91, 0.18);
}

.gift-ribbon {
  position: absolute;
  width: 10px;
  height: 60px;
  right: 31px;
  bottom: 0;
  background: #bf8544;
  z-index: 2;
}

.gift-bow::before,
.gift-bow::after {
  content: '';
  position: absolute;
  width: 29px;
  height: 18px;
  right: 29px;
  top: 5px;
  border: 7px solid #bf8544;
  border-radius: 50% 50% 50% 0;
  transform: rotate(20deg);
}
.gift-bow::after {
  right: 5px;
  border-radius: 50% 50% 0 50%;
  transform: scaleX(-1) rotate(20deg);
}

.coupon-art i {
  position: absolute;
  width: 47px;
  height: 58px;
  right: 7px;
  bottom: 3px;
  border-radius: 8px;
  background: linear-gradient(155deg, #81509a, #653983);
  transform: rotate(6deg);
  box-shadow: 0 9px 15px rgba(73, 39, 91, 0.14);
}
.coupon-art i:nth-child(2) {
  right: 27px;
  bottom: 0;
  transform: rotate(-7deg);
  background: #81509a;
}
.coupon-art i:nth-child(3) {
  right: 47px;
  bottom: 4px;
  transform: rotate(-15deg);
  background: #ad74b5;
}
.coupon-art i::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e6c57e;
  left: 17px;
  top: 10px;
}

.bottom-nav {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, var(--page-max));
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 7px 9px var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  /* 关键修复：使用完全不透明背景，页面内容不会透过导航显示 */
  background: #fffafd;
  border-top: 1px solid rgba(101, 57, 131, 0.12);
  box-shadow: 0 -7px 20px rgba(57, 28, 71, 0.1);

  /* 防止底部导航内部或后方内容从圆角/边缘穿出 */
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}

.nav-icon-img {
  width: 25px;
  height: 25px;

  display: block;

  object-fit: contain;

  flex: 0 0 25px;

  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.nav-item:hover .nav-icon-img {
  transform: translateY(-1px) scale(1.05);
}

.nav-item:active .nav-icon-img {
  transform: scale(0.92);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #806f88;
  font-size: clamp(10px, 2.7vw, 13px);
}

.nav-item.is-active {
  color: #653983;
  font-weight: 800;
}

.nav-icon {
  width: clamp(23px, 6vw, 30px);
  height: clamp(23px, 6vw, 30px);
  position: relative;
  display: block;
}

.nav-icon--home::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 18px;
  height: 15px;
  background: currentColor;
  border-radius: 2px;
}
.nav-icon--home::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 17px;
  height: 17px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.nav-icon--foot {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  margin-top: 1px;
  border: 0;
  transform: none;
}

.nav-icon--foot::before,
.nav-icon--foot::after {
  content: '';
  display: none;
}

.nav-icon--foot {
  background:
    linear-gradient(currentColor, currentColor) left top / 9px 9px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 9px 9px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 9px 9px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 9px 9px no-repeat;
  border-radius: 3px;
}

.nav-icon--foot::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  left: -3px;
  top: -7px;
  box-shadow:
    5px -3px 0 -1px currentColor,
    10px -2px 0 -1.3px currentColor;
}

.nav-icon--calendar {
  border: 2px solid currentColor;
  border-radius: 4px;
  margin-top: 3px;
}
.nav-icon--calendar::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.nav-icon--gift {
  border: 2px solid currentColor;
  border-radius: 4px;
  margin-top: 6px;
}
.nav-icon--gift::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  background: currentColor;
}
.nav-icon--gift::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 50%;
  left: 4px;
  top: -7px;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 20px);
  transform: translate(-50%, 14px);
  max-width: min(84vw, 360px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(57, 28, 71, 0.92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 360px) {
  .section__title small {
    display: none;
  }
  .vip-banner {
    gap: 8px;
  }
  .vip-banner__content p {
    display: none;
  }
}

@media (min-width: 481px) {
  body {
    padding: 18px 0;
  }
  .app-shell {
    min-height: calc(100vh - 36px);
    border-radius: 28px;
    overflow: hidden;
  }
  .bottom-nav {
    bottom: 18px;
    border-radius: 0 0 28px 28px;
    background: #fffafd;
  }
}
