/* vipkei.com 手机产品详情页专用样式
 * source: templets/default/article_image_m.htm
 * version: 20260612-p1s5-product-detail
 */

.m-product-detail-template .m-prod-focus__media {
      display: flex;
      overflow: hidden;
      width: 100%;
      aspect-ratio: 4 / 3;
      align-items: center;
      justify-content: center;
      background: #FFFFFF;
    }

    .m-product-detail-template .m-prod-focus__item.is-fallback-hidden {
      display: none;
    }

    .m-product-detail-template .vip-article iframe,
    .m-product-detail-template .vip-article video,
    .m-product-detail-template .vip-article embed,
    .m-product-detail-template .vip-article object {
      display: block;
      max-width: 100%;
      margin-right: auto;
      margin-left: auto;
    }

    .m-product-detail-template .m-responsive-media {
      position: relative;
      overflow: hidden;
      width: 100%;
      aspect-ratio: 16 / 9;
      margin: 15px 0;
      border-radius: 3px;
      background: #000000;
    }

    .m-product-detail-template .m-responsive-media iframe,
    .m-product-detail-template .m-responsive-media video {
      position: absolute;
      inset: 0;
      width: 100% !important;
      height: 100% !important;
      margin: 0 !important;
      border: 0;
    }

    .m-product-detail-template .m-related-products {
      width: calc(100% - 12px);
      margin: 10px 6px 14px;
      padding: 14px 12px 13px;
      border: 1px solid #E0E7EA;
      border-radius: 4px;
      background: #FFFFFF;
      box-shadow: 0 3px 12px rgba(20, 48, 74, .04);
    }

    .m-product-detail-template .m-related-products[hidden] {
      display: none;
    }

    .m-product-detail-template .m-related-products__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 0 0 11px;
    }

    .m-product-detail-template .m-related-products__title {
      position: relative;
      margin: 0;
      padding-left: 11px;
      color: #2B2B2B;
      font-size: 19px;
      font-weight: 700;
      line-height: 1.45;
    }

    .m-product-detail-template .m-related-products__title::before {
      position: absolute;
      top: .18em;
      bottom: .18em;
      left: 0;
      width: 4px;
      border-radius: 1px;
      background: #30B7EF;
      content: "";
    }

    .m-product-detail-template .m-related-products__more {
      flex: 0 0 auto;
      color: #168FBD;
      font-size: 13px;
      line-height: 1.5;
      text-decoration: none;
    }

    .m-product-detail-template .m-related-products__grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      width: 100%;
    }

    .m-product-detail-template .m-related-product-card {
      min-width: 0;
      overflow: hidden;
      border: 1px solid #E1E8EC;
      border-radius: 4px;
      background: #FFFFFF;
    }

    .m-product-detail-template .m-related-product-card__image {
      display: block;
      overflow: hidden;
      width: 100%;
      aspect-ratio: 1 / 1;
      background: #F6F8F9;
    }

    .m-product-detail-template .m-related-product-card__image img {
      display: block;
      width: 100%;
      height: 100%;
      margin: 0;
      object-fit: cover;
      object-position: center;
    }

    .m-product-detail-template .m-related-product-card__image img.is-placeholder {
      object-fit: contain;
      padding: 8px;
    }

    .m-product-detail-template .m-related-product-card__title {
      display: -webkit-box;
      min-height: 56px;
      margin: 0;
      padding: 8px 8px 9px;
      overflow: hidden;
      color: #3E474D;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.45;
      text-align: left;
      text-overflow: ellipsis;
      overflow-wrap: anywhere;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .m-product-detail-template .m-related-product-card > a {
      display: block;
      color: inherit;
      text-decoration: none;
    }

    .m-product-detail-template .m-related-product-card > a:active .m-related-product-card__title {
      color: #168FBD;
    }

    @media (max-width: 359px) {
      .m-product-detail-template .m-related-products {
        padding-right: 10px;
        padding-left: 10px;
      }

      .m-product-detail-template .m-related-products__grid {
        gap: 8px;
      }

      .m-product-detail-template .m-related-product-card__title {
        min-height: 54px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 13px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .m-product-detail-template .m-related-product-card,
      .m-product-detail-template .m-prod-focus {
        scroll-behavior: auto;
      }
    }
