/* cj-detail — 独立页 + hxnl 内嵌侧滑层，全部限定 H5，不影响 PC */
@media (max-width: 992px) {
  body.page-h5.page-cj-detail .cj-detail-main.page-main,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-wrap {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.page-h5.page-cj-detail .cj-detail-wrap,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-wrap {
    flex: 1;
    min-height: 0;
  }

  body.page-h5.page-cj-detail .cj-detail-hero,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-hero {
    height: auto;
    min-height: calc(240 / 1080 * 100vw);
    padding: 0;
    background-image: url("../img/h5/cj_detail.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  body.page-h5.page-cj-detail .cj-detail-hero-bar,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-hero-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: calc(240 / 1080 * 100vw);
    padding: 0;
  }

  body.page-h5.page-cj-detail .cj-detail-hero-main,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-hero-main {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    max-width: none;
    z-index: 1;
  }

  body.page-h5.page-cj-detail .cj-detail-back,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-back {
    grid-row: 1;
    grid-column: 1;
    z-index: 2;
    justify-self: end;
    align-self: start;
    width: clamp(56px, calc(72 / 1080 * 100vw), 72px);
    height: clamp(28px, calc(36 / 1080 * 100vw), 36px);
    margin: 8px 15px 0 0;
    padding: 0;
    gap: calc(10 / 1080 * 100vw);
    border: none;
    border-radius: 999px;
    background: #244765;
    color: #fff;
    font-size: clamp(11px, calc(14 / 1080 * 100vw), 14px);
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
  }

  body.page-h5.page-cj-detail .cj-detail-back:hover,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-back:hover {
    background: #244765;
    border-color: transparent;
  }

  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-back--slide {
    cursor: pointer;
  }

  body.page-h5.page-cj-detail .cj-detail-title,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-title {
    font-size: 20px;
    line-height: 28px;
  }

  body.page-h5.page-cj-detail .cj-detail-line,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-line {
    width: 80px;
    height: 3px;
    margin-top: 10px;
  }

  body.page-h5.page-cj-detail .cj-detail-desc,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-desc {
    margin-top: 10px;
    font-size: 12px;
    line-height: 18px;
    padding: 0;
  }

  body.page-h5.page-cj-detail .cj-detail-content,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-content {
    flex: 1;
    min-height: 0;
    padding: 16px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.page-h5.page-cj-detail .cj-detail-inner,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-detail-inner {
    padding: 0 15px calc(48px + env(safe-area-inset-bottom, 0px));
  }

  body.page-h5.page-cj-detail .cj-block + .cj-block,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-block + .cj-block {
    margin-top: 20px;
  }

  body.page-h5.page-cj-detail .cj-block-head,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-block-head {
    margin-bottom: 12px;
  }

  body.page-h5.page-cj-detail .cj-block-title,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-block-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  body.page-h5.page-cj-detail .cj-block-title::before,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-block-title::before {
    width: 3px;
    height: 15px;
  }

  body.page-h5.page-cj-detail .cj-block-line,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-block-line {
    height: 2px;
  }

  body.page-h5.page-cj-detail .cj-block-img--11cj,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-block-img--11cj {
    width: 100%;
  }

  body.page-h5.page-cj-detail .cj-tags,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  body.page-h5.page-cj-detail .cj-tags li,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-tags li {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    min-width: 0;
    height: auto;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
  }

  body.page-h5.page-cj-detail .cj-table-scroll,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-table-scroll {
    width: 100%;
    max-width: 100%;
    max-height: min(420px, 55vh);
    margin: 0;
    padding: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  body.page-h5.page-cj-detail .cj-protocol-table,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-protocol-table {
    width: max-content;
    min-width: 1180px;
    font-size: 11px;
    line-height: 1.45;
  }

  body.page-h5.page-cj-detail .cj-protocol-table th,
  body.page-h5.page-cj-detail .cj-protocol-table td,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-protocol-table th,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-protocol-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  body.page-h5.page-cj-detail .cj-block-img--table,
  body.page-h5.page-hxnl .hxnl-cj-detail .cj-block-img--table {
    display: block;
    width: auto;
    max-width: none;
    height: auto;
    object-fit: contain;
  }
}
