/* vipkei.com 手机首页专用样式
 * externalized from templets/default/index_m.htm
 * version: 20260613-p1s5-home-gallery
 */

/* =========================================================
   VIPKEI 手机首页局部样式
   仅作用于 body.m-home-page-template，不影响列表、详情和单页。
   ========================================================= */
.m-home-page-template,
.m-home-page-template * {
  box-sizing: border-box;
}

.m-home-page-template {
  margin: 0;
  background: #f4f7f9;
  color: #333;
}

.m-home-page-template .mian {
  width: 100%;
  min-width: 0;
  background: #f4f7f9;
}

.m-home-page-template .m-home-main {
  display: block;
  width: 100%;
  padding-bottom: 12px;
}

.m-home-page-template .m-home-quick-nav {
  width: 100%;
  height: auto;
  margin: 0;
  background: #30b7ef;
}

.m-home-page-template .m-home-quick-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-home-page-template .m-home-quick-nav li {
  min-width: 0;
  margin: 0;
  border-right: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.m-home-page-template .m-home-quick-nav li:nth-child(4n) {
  border-right: 0;
}

.m-home-page-template .m-home-quick-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 4px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-home-page-template .m-home-quick-nav a:focus-visible,
.m-home-page-template .m-home-quick-nav a:active {
  background: rgba(11, 61, 92, .18);
  outline: 0;
}

.m-home-page-template .m-home-intro,
.m-home-page-template .m-home-section {
  width: calc(100% - 12px);
  margin: 10px 6px 0;
  border: 1px solid #e6edf1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(11, 61, 92, .045);
}

.m-home-page-template .m-home-intro {
  padding: 15px 13px;
  text-align: center;
}

.m-home-page-template .m-home-intro h1 {
  margin: 0;
  color: #0b3d5c;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.m-home-page-template .m-home-intro p {
  margin: 8px 0 0;
  color: #59666f;
  font-size: 14px;
  line-height: 1.75;
}

.m-home-page-template .m-home-section {
  padding: 13px 11px 14px;
}

.m-home-page-template .m-home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf1f4;
}

.m-home-page-template .m-home-section__head h2 {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-left: 10px;
  color: #163f59;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.m-home-page-template .m-home-section__head h2::before {
  position: absolute;
  top: .12em;
  bottom: .12em;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: #30b7ef;
  content: "";
}

.m-home-page-template .m-home-section__more {
  flex: 0 0 auto;
  color: #168fc0;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.m-home-page-template .m-home-section__more:focus-visible,
.m-home-page-template .m-home-section__more:active {
  color: #0b3d5c;
  text-decoration: underline;
}

.m-home-page-template .m-home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-home-page-template .m-home-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6edf1;
  border-radius: 5px;
  background: #fff;
}

.m-home-page-template .m-home-card__image {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f3f5f6;
}

.m-home-page-template .m-home-product-grid .m-home-card__image {
  aspect-ratio: 1 / 1;
}

.m-home-page-template .m-home-case-grid .m-home-card__image {
  aspect-ratio: 4 / 3;
}

.m-home-page-template .m-home-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.m-home-page-template .m-home-card__title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  padding: 8px 7px;
  overflow: hidden;
  color: #253b49;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.m-home-page-template .m-home-card__title a {
  color: inherit;
  text-decoration: none;
}

.m-home-page-template .m-home-advantages {
  display: grid;
  gap: 12px;
}

.m-home-page-template .m-home-advantage {
  overflow: hidden;
  border: 1px solid #e6edf1;
  border-radius: 5px;
  background: #fff;
}

.m-home-page-template .m-home-advantage img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.m-home-page-template .m-home-advantage__content {
  padding: 10px 10px 11px;
}

.m-home-page-template .m-home-advantage h3 {
  margin: 0;
  color: #163f59;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.m-home-page-template .m-home-advantage p {
  margin: 6px 0 0;
  color: #53616a;
  font-size: 14px;
  line-height: 1.8;
  text-align: justify;
}

.m-home-page-template .m-home-about__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
}

.m-home-page-template .m-home-about__text {
  margin: 10px 0 0;
  color: #4d5b64;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  text-align: justify;
}


.m-home-page-template .m-home-section__intro {
  margin: -1px 0 11px;
  color: #5c6a73;
  font-size: 13px;
  line-height: 1.75;
}

.m-home-page-template .m-home-gallery {
  overflow: hidden;
}

.m-home-page-template .m-home-gallery__shell {
  min-width: 0;
}

.m-home-page-template .m-home-gallery__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.m-home-page-template .m-home-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.m-home-page-template .m-home-gallery__viewport:focus-visible {
  border-radius: 5px;
  outline: 2px solid #168fc0;
  outline-offset: 3px;
}

/* VIPKEI MOBILE HOME GALLERY FIXED SIZE 20260613
 * 修复 grid percentage + max-content 导致单张相册被计算成超宽、超高。
 */
.m-home-page-template .m-home-gallery__track {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0 14% 0 0;
  list-style: none;
}

.m-home-page-template .m-home-gallery__slide {
  flex: 0 0 86%;
  width: 86%;
  min-width: 0;
  max-width: 86%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.m-home-page-template .m-home-gallery__card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #dfe9ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(11, 61, 92, .08);
}

.m-home-page-template .m-home-gallery__image {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  overflow: hidden;
  background: #eef3f6;
}

.m-home-page-template .m-home-gallery__image::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(11, 61, 92, .78);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  content: "生产实景";
}

.m-home-page-template .m-home-gallery__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .28s ease;
}

.m-home-page-template .m-home-gallery__image:active img {
  transform: scale(1.015);
}

.m-home-page-template img.is-vk-fallback {
  object-fit: contain !important;
}

.m-home-page-template .m-home-gallery__content {
  padding: 10px 11px 11px;
}

.m-home-page-template .m-home-gallery__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #168fc0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
}

.m-home-page-template .m-home-gallery__title {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: #203d4e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.m-home-page-template .m-home-gallery__title a {
  color: inherit;
  text-decoration: none;
}

.m-home-page-template .m-home-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 11px;
}

.m-home-page-template .m-home-gallery__controls[hidden] {
  display: none;
}

.m-home-page-template .m-home-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #cfe2eb;
  border-radius: 50%;
  background: #f5fafc;
  color: #137fa8;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.m-home-page-template .m-home-gallery__button:focus-visible {
  outline: 2px solid #0b3d5c;
  outline-offset: 2px;
}

.m-home-page-template .m-home-gallery__button:disabled {
  cursor: default;
  opacity: .38;
}

.m-home-page-template .m-home-gallery__status {
  min-width: 48px;
  margin: 0;
  color: #5b6b75;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: center;
}

.m-home-page-template .m-home-cases .m-home-card {
  box-shadow: 0 2px 8px rgba(11, 61, 92, .055);
}

.m-home-page-template .m-home-cases .m-home-card__title {
  min-height: 51px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.m-home-page-template .m-home-news-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.m-home-page-template .m-home-news-tab {
  min-height: 40px;
  padding: 7px 4px;
  border: 1px solid #d9e6ed;
  border-radius: 4px;
  background: #f5f9fb;
  color: #355365;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.m-home-page-template .m-home-news-tab[aria-selected="true"] {
  border-color: #30b7ef;
  background: #30b7ef;
  color: #fff;
}

.m-home-page-template .m-home-news-tab:focus-visible {
  outline: 2px solid #0b3d5c;
  outline-offset: 2px;
}

.m-home-page-template .m-home-news-panel[hidden] {
  display: none;
}

.m-home-page-template .m-home-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-home-page-template .m-home-news-list li {
  border-bottom: 1px solid #edf1f4;
}

.m-home-page-template .m-home-news-list li:last-child {
  border-bottom: 0;
}

.m-home-page-template .m-home-news-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  color: #334b5a;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.m-home-page-template .m-home-news-list__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-home-page-template .m-home-news-list time {
  color: #8a979f;
  font-size: 12px;
  white-space: nowrap;
}

.m-home-page-template .m-home-news-panel__more {
  display: block;
  width: fit-content;
  margin: 11px 0 0 auto;
  color: #168fc0;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.m-home-page-template .m-home-news-panel__more:focus-visible,
.m-home-page-template .m-home-news-panel__more:active {
  color: #0b3d5c;
  text-decoration: underline;
}


@media (min-width: 520px) {
  .m-home-page-template .m-home-gallery__track {
    grid-auto-columns: 72%;
    padding-right: 28%;
  }
}

@media (min-width: 720px) {
  .m-home-page-template .m-home-gallery__track {
    grid-auto-columns: 58%;
    padding-right: 42%;
  }
}

@media (max-width: 359px) {
  .m-home-page-template .m-home-quick-nav a {
    font-size: 12px;
  }

  .m-home-page-template .m-home-intro h1 {
    font-size: 19px;
  }

  .m-home-page-template .m-home-news-tab {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-home-page-template *,
  .m-home-page-template *::before,
  .m-home-page-template *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
