/* 移动端固定疗愈路线详情 */
@media (max-width: 768px) {
  html.hm-mobile-route-detail-mode {
    margin-top: 0 !important;
    scrollbar-width: none;
  }

  body.hm-mobile-route-detail-mode {
    padding-top: 0 !important;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html.hm-mobile-route-detail-mode::-webkit-scrollbar,
  body.hm-mobile-route-detail-mode::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  body.hm-mobile-route-detail-mode #wpadminbar,
  body.hm-mobile-route-detail-mode header.ct-header,
  body.hm-mobile-route-detail-mode #zc__frame__chat_container,
  body.hm-mobile-route-detail-mode #zc__sdk__sys__btnbox {
    display: none !important;
  }

  .hm-mobile-page--route-detail,
  .hm-mobile-page__section--route-detail {
    --hm-route-top-height: 0.56em;
    --hm-route-handle-height: var(--hm-route-handle-measured-height, 0.24em);
    --hm-route-footer-control-height: 0.56em;
    --hm-route-footer-padding-y: 0.12em;
    --hm-route-footer-height: var(
      --hm-route-footer-measured-height,
      calc(
        var(--hm-route-footer-control-height) + var(--hm-route-footer-padding-y) +
          var(--hm-route-footer-padding-y) + env(safe-area-inset-bottom, 0px)
      )
    );
    --hm-route-sheet-collapsed-height: calc(
      var(--hm-route-handle-height) + var(--hm-route-footer-height)
    );
    --hm-route-sheet-expanded-top: 1.24em;
    position: relative;
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: #ffffff;
    box-sizing: border-box;
    font-size: 100px;
  }

  .hm-mobile-route__header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 0.56em minmax(0, 1fr) 0.56em;
    align-items: center;
    width: 100%;
    height: 0.56em;
    background: linear-gradient(90deg, #0285ef 5.8503%, #01dcd8 95.165%);
  }

  .hm-mobile-route__back,
  .hm-mobile-route__menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 0.56em;
    height: 0.56em;
    color: #ffffff;
    text-decoration: none;
  }

  .hm-mobile-route__back .iconfont {
    display: block;
    flex: 0 0 0.24em;
    width: 0.24em;
    height: 0.24em;
    font-size: 100px !important;
    line-height: 1;
  }

  .hm-mobile-route__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 56px;
  }

  .hm-mobile-route__brand img {
    display: block;
    width: auto;
    max-width: 164px;
    height: 30px;
    object-fit: contain;
  }

  .hm-mobile-route__menu .ct-header-trigger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 0.56em;
    height: 0.56em;
    padding: 0;
    color: #ffffff !important;
    font-size: 100px !important;
  }

  .hm-mobile-route__menu .ct-header-trigger .ct-icon {
    width: 0.24em;
    height: 0.24em;
    fill: currentColor !important;
  }

  .hm-mobile-route__map {
    position: absolute;
    top: var(--hm-route-top-height);
    right: 0;
    bottom: var(--hm-route-footer-height);
    left: 0;
    z-index: 1;
    background: #dfeff7;
    overflow: hidden;
  }

  .hm-mobile-route__line {
    position: absolute;
    inset: 0;
    z-index: 1180;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
  }

  .hm-mobile-route__line-path {
    fill: none;
    stroke: #028cee;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .hm-mobile-route__map::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
      linear-gradient(90deg, rgba(255,255,255,0.42) 1px, transparent 1px),
      linear-gradient(0deg, rgba(255,255,255,0.42) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.35;
  }

  .hm-mobile-route__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    color: #666666;
    font-size: 0.14em;
    transform: translate(-50%, -50%);
  }

  .hm-mobile-route__sheet,
  .hm-mobile-route__place {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    background: #ffffff;
    box-sizing: border-box;
  }

  .hm-mobile-route__sheet {
    height: var(--hm-route-sheet-collapsed-height);
    overflow: hidden;
    border-radius: 0.14em 0.14em 0 0;
    background: #ffffff;
    box-shadow: 0 -0.04em 0.18em rgba(26, 47, 68, 0.1);
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hm-mobile-route__sheet.is-expanded {
    top: var(--hm-route-sheet-expanded-top);
    height: auto;
    border-radius: 0.14em 0.14em 0 0;
    box-shadow: 0 -0.04em 0.18em rgba(26, 47, 68, 0.12);
  }

  .hm-mobile-route__handle {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.24em;
    height: 0.24em;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666666;
    transform: translateX(-50%);
    cursor: pointer;
  }

  .hm-mobile-route__handle::after {
    content: none;
  }

  .hm-mobile-route__handle svg {
    display: block;
    width: 24px;
    height: 24px;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
  }

  .hm-mobile-route__handle[aria-expanded="true"] svg {
    transform: rotate(0deg);
  }

  .hm-mobile-route__list {
    display: none;
    height: calc(100% - var(--hm-route-footer-height));
    padding: 0.24em 0.16em;
    overflow-y: auto;
    background: #ffffff;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  .hm-mobile-route__list::-webkit-scrollbar {
    display: none;
  }

  .hm-mobile-route__sheet.is-expanded .hm-mobile-route__list {
    display: block;
  }

  .hm-mobile-route__stop {
    display: block;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
  }

  .hm-mobile-route__stop:last-child {
    margin-bottom: 0;
  }

  .hm-mobile-route__stop-title {
    margin: 0 0 2px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
  }

  .hm-mobile-route__tag {
    display: flex;
    width: max-content;
    align-items: center;
    max-width: 160px;
    height: 22px;
    margin-bottom: 8px;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--tag-bg, rgba(240,147,42,0.1));
    color: var(--tag-color, #f0932a);
    font-size: 12px;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .hm-mobile-route__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .hm-mobile-route__thumbs img,
  .hm-mobile-route__thumbs span {
    display: block;
    width: 100%;
    aspect-ratio: 109 / 61;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
  }

  .hm-mobile-route__footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 0.9em 1.1em;
    grid-template-rows: 0.26em 0.26em;
    gap: 0.04em 0.12em;
    height: auto;
    min-height: var(--hm-route-footer-height);
    padding: var(--hm-route-footer-padding-y) 0.16em
      calc(var(--hm-route-footer-padding-y) + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    box-shadow: inset 0 0.5px 0 #f0f0f0;
    box-sizing: border-box;
  }

  .hm-mobile-route__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999999;
    font-size: 15px;
    line-height: 22px;
    cursor: pointer;
  }

  .hm-mobile-route__meta.is-active {
    color: #666666;
  }

  .hm-mobile-route__meta .iconfont {
    width: 16px;
    height: 16px;
    color: #333333;
    font-size: 100px !important;
  }

  .hm-mobile-route__meta:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .hm-mobile-route__secondary,
  .hm-mobile-route__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0;
    border-radius: 6px;
    font-family: "PingFang SC", sans-serif;
    font-size: 17px;
    cursor: pointer;
    box-sizing: border-box;
  }

  .hm-mobile-route__secondary {
    grid-column: 2;
    grid-row: 1 / span 2;
    border: 1px solid rgba(126, 134, 142, 0.24);
    background: #ffffff;
    color: #333333;
    font-size: 17px;
    line-height: 24px;
    margin-top: 0;
  }

  .hm-mobile-route__primary {
    grid-column: 3;
    grid-row: 1 / span 2;
    flex-direction: column;
    border: 0;
    background: linear-gradient(90deg, #0285ef 5.8503%, #01dcd8 95.165%);
    box-shadow: 0 0.06em 0.06em rgba(2, 134, 238, 0.2);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.294118;
    margin-top: 0;
  }

  .hm-mobile-route__primary.is-contact {
    flex-direction: row;
  }

  .hm-mobile-route__primary strong {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.411765;
  }

  .hm-mobile-route__picker-scrim {
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(0, 0, 0, 0.24);
  }

  .hm-mobile-route__picker-scrim[hidden] {
    display: none;
  }

  .hm-mobile-route__picker {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    min-height: calc(189px + env(safe-area-inset-bottom, 0px));
    padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    background: #ffffff;
    box-shadow: 0 -6px 24px rgba(26, 47, 68, 0.16);
    box-sizing: border-box;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 24px;
  }

  .hm-mobile-route__picker[hidden] {
    display: none;
  }

  .hm-mobile-route__picker--date {
    display: flex;
    flex-direction: column;
    min-height: calc(355px + env(safe-area-inset-bottom, 0px));
    height: calc(355px + env(safe-area-inset-bottom, 0px));
  }

  .hm-mobile-route__picker--people {
    display: flex;
    flex-direction: column;
    top: auto !important;
    min-height: calc(177px + env(safe-area-inset-bottom, 0px)) !important;
    height: auto !important;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .hm-mobile-route__picker-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    min-height: 51px;
    margin: 0 -16px 19px;
    padding: 0 16px;
    border-bottom: 1px solid #eeeeee;
  }

  .hm-mobile-route__picker--people .hm-mobile-route__picker-head {
    height: 53px;
    min-height: 53px;
    margin: 0 -16px 16px;
    padding: 14px 16px;
    box-sizing: border-box;
  }

  .hm-mobile-route__picker--people .hm-mobile-route__picker-close,
  .hm-mobile-route__picker--people .hm-mobile-route__picker-confirm {
    height: 24px;
    line-height: 24px;
  }

  .hm-mobile-route__picker-head h2 {
    margin: 0;
    color: #333333;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
  }

  .hm-mobile-route__picker-close,
  .hm-mobile-route__picker-confirm {
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #333333;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
  }

  .hm-mobile-route__picker-close {
    justify-self: start;
    width: 40px;
    color: #999999;
    background: url("../../images/icon_close_figma.svg") center / 20px 20px no-repeat;
    font-size: 0;
    line-height: 0;
  }

  .hm-mobile-route__picker-confirm {
    justify-self: end;
    color: #0288ee;
  }

  .hm-mobile-route__calendar {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    padding-top: 2px;
  }

  .hm-mobile-route__calendar::-webkit-scrollbar {
    display: none;
  }

  .hm-mobile-route__calendar-weeks,
  .hm-mobile-route__calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px 10px;
  }

  .hm-mobile-route__calendar-week {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    color: #777777;
    font-size: 16px;
    line-height: 22px;
  }

  .hm-mobile-route__calendar-month {
    margin-top: 8px;
  }

  .hm-mobile-route__calendar-month-title {
    height: 32px;
    margin: 0 -16px 8px;
    padding: 4px 20px;
    background: #f5f5f5;
    color: #191919;
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    box-sizing: border-box;
  }

  .hm-mobile-route__calendar-empty {
    display: block;
    width: 36px;
    height: 36px;
  }

  .hm-mobile-route__calendar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #333333;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
  }

  .hm-mobile-route__calendar button.is-muted {
    color: #b5b5b5;
    cursor: pointer;
  }

  .hm-mobile-route__calendar button.is-disabled {
    color: #d8d8d8;
    cursor: default;
  }

  .hm-mobile-route__calendar button.is-today {
    background: #f4f6fb;
    color: #0288ee;
  }

  .hm-mobile-route__calendar button.is-selected {
    background: #0288ee;
    color: #ffffff;
  }

  .hm-mobile-route__people-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px 88px 20px;
    align-items: center;
    gap: 8px;
    flex: 0 0 48px;
    height: 48px;
    margin: 0 !important;
    font-size: 16px;
    line-height: 24px;
  }

  .hm-mobile-route__people-row > div {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
  }

  .hm-mobile-route__people-row strong,
  .hm-mobile-route__people-row span {
    font-size: 16px;
    line-height: 24px;
  }

  .hm-mobile-route__people-row strong {
    color: #333333;
    font-weight: 400;
  }

  .hm-mobile-route__people-row span {
    margin-left: 8px;
    color: #b6b6b6;
  }

  .hm-mobile-route__people-row button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: #666666;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
    cursor: pointer;
    opacity: 1;
    appearance: none;
    -webkit-appearance: none;
  }

  .hm-mobile-route__people-row button:disabled {
    color: #999999;
    opacity: 1;
  }

  .hm-mobile-route__people-row button svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .hm-mobile-route__people-row output {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    color: #333333;
    font-size: 16px;
    line-height: 24px;
  }

  .hm-mobile-route__toast {
    position: fixed;
    left: 50%;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    max-width: calc(100% - 48px);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 34, 34, 0.86);
    color: #ffffff;
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
    transform: translateX(-50%);
  }

  .hm-mobile-route__toast[hidden] {
    display: none;
  }

  .hm-mobile-route__place {
    top: auto;
    z-index: 25;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 7.75em);
    min-height: 31.25em;
    max-height: 45em;
    overflow: hidden;
    border-radius: 1.375em 1.375em 0 0;
    box-shadow: 0 -0.5em 1.75em rgba(26, 47, 68, 0.2);
    font-size: 16px;
    transform: translateY(0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hm-mobile-route__place[hidden] {
    display: none;
  }

  .hm-mobile-route__place-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.875em;
    padding: 0.875em 1.25em 0.625em;
    box-sizing: border-box;
    flex: 0 0 auto;
  }

  .hm-mobile-route__place-head h2 {
    margin: 0;
    color: #333333;
    font-size: 1.1875em;
    font-weight: 600;
    line-height: 1.625;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hm-mobile-route__place-close {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.875em;
    height: 1.875em;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999999;
    cursor: pointer;
  }

  .hm-mobile-route__place-close svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .hm-mobile-route__place-body {
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 0 1.25em 1.25em;
    overflow-y: auto;
    scrollbar-width: none;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1.5;
  }

  .hm-mobile-route__place-body::-webkit-scrollbar {
    display: none;
  }

  .hm-mobile-route__place-images {
    display: flex;
    gap: 0.75em;
    margin: 0 0 1em;
    padding-bottom: 0.125em;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hm-mobile-route__place-images::-webkit-scrollbar {
    display: none;
  }

  .hm-mobile-route__place-images img,
  .hm-mobile-route__place-image--empty {
    flex: 0 0 auto;
    width: 130px;
    height: 152px;
    border-radius: 8px;
    aspect-ratio: 65 / 76;
    object-fit: cover;
    background: #e2e8f0;
  }

  .hm-mobile-route__place-image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 600;
  }

  .hm-mobile-route__place-desc {
    margin: 0 0 1em;
    color: #666666;
    font-size: 0.9375em;
    line-height: 1.7;
  }

  .hm-mobile-route__place-feature {
    display: flex;
    gap: 0.625em;
    margin-bottom: 0.875em;
  }

  .hm-mobile-route__place-dot {
    flex: 0 0 auto;
    width: 0.5em;
    height: 0.5em;
    margin-top: 0.5625em;
    border-radius: 50%;
    background: linear-gradient(90deg, #0285ef 5.8503%, #01dcd8 95.165%);
  }

  .hm-mobile-route__place-feature strong {
    display: block;
    margin-bottom: 0.25em;
    color: #333333;
    font-size: 0.9375em;
    font-weight: 600;
    line-height: 1.5;
  }

  .hm-mobile-route__place-feature p {
    margin: 0;
    color: #666666;
    font-size: 0.9375em;
    line-height: 1.6;
  }

  .hm-mobile-route__experience {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    margin-top: 1em;
    padding: 0;
    border: none;
    background: transparent;
  }

  .hm-mobile-route__experience-item {
    margin-bottom: 0;
    padding: 0.875em;
    border-radius: 0.5em;
    background: #f2fbff;
  }

  .hm-mobile-route__experience-item:last-child {
    margin-bottom: 0;
  }

  .hm-mobile-route__experience-item strong {
    display: block;
    margin-bottom: 0.25em;
    background: none;
    color: #333333;
    font-size: 0.9375em;
    font-weight: 600;
    line-height: 1.5;
  }

  .hm-mobile-route__experience-item p {
    margin: 0;
    color: #666666;
    font-size: 0.875em;
    line-height: 1.5;
  }

  .hm-mobile-route__placeholder {
    padding: 0.8em 0.16em;
    color: #666666;
    font-size: 0.14em;
    text-align: center;
  }

  .hm-mobile-route__back:focus-visible,
  .hm-mobile-route__handle:focus-visible,
  .hm-mobile-route__stop:focus-visible,
  .hm-mobile-route__secondary:focus-visible,
  .hm-mobile-route__primary:focus-visible,
  .hm-mobile-route__place-close:focus-visible {
    outline: 0.02em solid #0288ee;
    outline-offset: 0.02em;
  }
}
