/* 移动端我的路线样式 */
@media (max-width: 768px) {
  .hm-mobile-page--my-routes {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    gap: 0;
    margin: 0 auto;
    padding: 0 0 calc(0.8em + env(safe-area-inset-bottom, 0px));
    background: #f5f5f5;
    box-sizing: border-box;
    font-size: 100px;
  }

  .hm-mobile-page__section--my-routes {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0.68em 0 calc(0.8em + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: #f5f5f5;
    box-sizing: border-box;
    font-size: 100px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hm-mobile-page__section--my-routes::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .hm-mobile-routes__header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 120;
    display: grid;
    flex: 0 0 0.56em;
    grid-template-columns: 0.56em minmax(0, 1fr) 0.56em;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: 0.56em;
    min-height: 0.56em;
    background: linear-gradient(90deg, #078cf2 0%, #08d8cd 100%);
    box-sizing: border-box;
  }

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

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

  .hm-mobile-routes__title {
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-family: "PingFang SC", sans-serif;
    font-size: 0.16em;
    font-weight: 500;
    line-height: 1.5em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hm-mobile-routes__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

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

  .hm-mobile-routes__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.56em;
    height: 0.56em;
  }

  .hm-mobile-routes__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-routes__menu .ct-header-trigger .ct-icon {
    width: 0.24em;
    height: 0.24em;
    fill: currentColor !important;
  }

  .hm-mobile-routes__list {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.12em;
    width: calc(100% - 0.32em);
    margin-top: 0.12em;
  }

  .hm-mobile-routes__item {
    position: relative;
    display: grid;
    grid-template-columns: 0.54em auto 0.16em;
    align-items: center;
    gap: 0.08em;
    width: 100%;
    height: 0.78em;
    min-height: 0.78em;
    padding: 0.12em;
    border: 0;
    border-radius: 0.08em;
    background: #ffffff;
    color: #333333;
    text-align: left;
    box-sizing: border-box;
    cursor: pointer;
  }

  .hm-mobile-routes__item.is-deleting {
    pointer-events: none;
  }

  .hm-mobile-routes__item.is-deleting > :not(.hm-mobile-routes__item-loading) {
    opacity: 0.45;
  }

  .hm-mobile-routes__item-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72);
    color: #028cee;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.14em;
    font-weight: 500;
    line-height: 1.4;
  }

  .hm-mobile-routes__cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.857143em;
    height: 3.857143em;
    overflow: hidden;
    border-radius: 0.285714em;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    font-family: "PingFang SC", sans-serif;
    font-size: 0.14em;
    font-weight: 500;
  }

  .hm-mobile-routes__cover > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hm-mobile-routes__content {
    display: flex;
    flex-direction: column;
    gap: 0.04em;
    width: 2.25em;
    height: 0.54em;
    min-width: 2.25em;
    font-size: 100px;
  }

  .hm-mobile-routes__name {
    display: block;
    width: 14.0625em;
    height: 1.5em;
    overflow: hidden;
    color: #333333;
    font-family: "PingFang SC", sans-serif;
    font-size: 0.16em;
    font-weight: 500;
    line-height: 1.5em;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
  }

  .hm-mobile-routes__meta {
    display: flex;
    align-items: center;
    gap: 0.285714em;
    width: 16.071429em;
    height: 1.571429em;
    color: #666666;
    font-family: "PingFang SC", sans-serif;
    font-size: 0.14em;
    font-weight: 400;
    line-height: 1.571429em;
    text-align: left;
    text-transform: none;
  }

  .hm-mobile-routes__meta-part {
    display: inline-flex;
    align-items: center;
    gap: 0.285714em;
    height: 1.571429em;
    white-space: nowrap;
  }

  .hm-mobile-routes__meta-icon {
    flex: 0 0 1.142857em;
    font-size: 1em !important;
    width: 1.142857em;
    height: 1.142857em;
    color: #999999;
  }

  .hm-mobile-routes__meta-divider {
    color: #999999;
  }

  .hm-mobile-routes__delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.16em;
    height: 0.16em;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999999;
    cursor: pointer;
  }

  .hm-mobile-routes__delete svg {
    display: block;
    width: 0.16em;
    height: 0.16em;
    fill: currentColor;
  }

  .hm-mobile-routes__status {
    width: 24.5em;
    padding: 3em 0;
    color: #777777;
    font-size: 0.14em;
    line-height: 1.571429em;
    text-align: center;
    box-sizing: border-box;
    margin: auto;
  }

  .hm-mobile-routes__footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    height: calc(0.68em + env(safe-area-inset-bottom, 0px));
    margin: 0 auto;
    padding: 0.12em 0.16em calc(0.12em + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    box-sizing: border-box;
  }

  .hm-mobile-routes__create {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 0.44em;
    padding: 0;
    border: 0;
    border-radius: 0.06em;
    background: linear-gradient(90deg, #078cf2 0%, #08d8cd 100%);
    box-shadow: 0 0.06em 0.12em rgba(2, 134, 238, 0.2);
    color: #ffffff;
    cursor: pointer;
    font-size: 100px;
    text-decoration: none;
  }

  .hm-mobile-routes__create > span {
    font-family: "PingFang SC", sans-serif;
    font-size: 0.17em;
    font-weight: 400;
    line-height: 1.333333em;
    cursor: pointer;
  }

  .hm-mobile-routes__toast {
    position: fixed;
    right: 0.24rem;
    bottom: calc(0.86rem + env(safe-area-inset-bottom, 0px));
    left: 0.24rem;
    z-index: 220;
    max-width: calc(100vw - 0.48rem);
    margin: 0 auto;
    padding: 0.11rem 0.16rem;
    border-radius: 0.08rem;
    background: rgba(32, 32, 32, 0.9);
    box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.18);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.14rem;
    line-height: 1.45;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.08rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .hm-mobile-routes__toast.is-show {
    opacity: 1;
    transform: translateY(0);
  }

  .hm-mobile-routes__toast--error {
    background: rgba(221, 68, 68, 0.94);
  }

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

  .hm-mobile-routes__back:focus-visible,
  .hm-mobile-routes__item:focus-visible,
  .hm-mobile-routes__delete:focus-visible,
  .hm-mobile-routes__create:focus-visible {
    outline: 0.02em solid #0288ee;
    outline-offset: 0.02em;
  }
}
