/* 移动端公共样式 */
@media (max-width: 768px) {
  /* 试验：375 稿 rem 基准（1rem = 10px @ 375 宽），暂未恢复 body 16px */
  html {
    font-size: calc(100vw / 3.75);
  }

  html.hm-mobile-overview-mode {
    margin-top: 0 !important;
    scrollbar-width: none;
  }

  body.hm-mobile-overview-mode.admin-bar {
    padding-top: 0 !important;
  }

  body.hm-mobile-overview-mode {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

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

  body.hm-mobile-overview-mode #wpadminbar {
    display: none !important;
  }

  body.hm-mobile-overview-mode [data-device="mobile"] .ct-header-account,
  body.hm-mobile-overview-mode [data-device="mobile"] .ct-account-item,
  body.hm-mobile-overview-mode [data-device="mobile"] .ct-account-item .ct-icon,
  body.hm-mobile-overview-mode [data-device="mobile"] .ct-account-item img,
  body.hm-mobile-overview-mode [data-device="mobile"] .ct-account-item .avatar {
    width: 24px !important;
    height: 24px !important;
  }

  .hm-page {
    background-color: rgb(248, 248, 248) !important;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .elementor-location-footer {
    display: none !important;
  }

  .hm-route-topbar,
  .hm-topbar,
  .hm-main {
    display: none !important;
  }

  .hm-mobile-page {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 0.12rem;
    width: 100vw;
    max-width: 100vw;
    padding: 0.12rem 0.16rem calc(0.12rem + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .hm-mobile-page__section {
    display: flex;
    width: 100%;
    background: #ffffff;
    border-radius: 0.08rem;
    padding: 0.16rem;
    box-sizing: border-box;
  }
  .hm-mobile-page__section_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hm-mobile-page__section_head_title {
    display: flex;
    align-items: center;
    gap: 0.04rem;
  }

  .hm-mobile-page__section_head_title > img {
    width: 0.2rem;
    height: 0.2rem;
  }

  .hm-mobile-page__section_head_title > span {
    font-weight: 600;
    font-size: 18px;
    color: #333333;
    line-height: 26px;
  }

  .hm-mobile-page__section_head_desc {
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    line-height: 22px;
  }

  .hm-mobile-page__section_head_action {
    display: flex;
    align-items: center;
    gap: 0.04rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666666;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
    cursor: pointer;
  }

  .hm-mobile-page__section_head_action:visited,
  .hm-mobile-page__section_head_action:hover,
  .hm-mobile-page__section_head_action:active {
    color: #666666;
    text-decoration: none;
  }

  .hm-mobile-page__section_head_action .iconfont {
    width: 0.14rem;
    height: 0.14rem;
    color: #999999;
  }

  .hm-mobile-page__section_head_action_icon {
    display: block;
    width: 0.06rem;
    height: 0.1rem;
    flex: 0 0 auto;
  }
  .hm-mobile-page__section_body--list {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
  }

  .hm-mobile-page__section_body--list_item {
    background: #f5f5f5;
    border-radius: 8px 8px 8px 8px;
    padding: 0.12rem;
    display: flex;
    align-items: center;
    gap: 0.08rem;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
  }

  .hm-mobile-page__section_body--list_item > img {
    width: 0.54rem;
    height: 0.54rem;
    flex: 0 0 0.54rem;
    align-self: center;
    border-radius: 0.04rem;
    object-fit: cover;
    display: block;
  }

  .hm-mobile-page__section_body--list_item_content {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
  }

  .hm-mobile-page__section_body--list_item_content_title {
    font-weight: 500;
    font-size: 14px;
    color: #333333;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hm-mobile-page__section_body--list_item_content_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.04rem;
    max-width: 100%;
    overflow: visible;
  }

  .hm-mobile-page__section_body--list_item_content_tags > span {
    flex: 0 0 auto;
    background: #ebf7fd;
    border-radius: 0.04rem;
    font-weight: 400;
    font-size: 0.12rem;
    color: #029ae9;
    line-height: 0.22rem;
    padding: 0 0.08rem;
    box-sizing: border-box;
  }
}
