/* Charfane bridge — minimal path/compat fixes only (do not override icetech layout) */
@font-face {
  font-family: "iconfont";
  src: url("../font/iconfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Hide leftover Meixin chrome on Charfane pages */
body.cf-skin .site-header,
body.cf-skin .site-footer,
body.cf-skin .mx-contact,
body.cf-skin .cookie-consent {
  display: none !important;
}

/* Nav: translucent bar after scroll (keeps text readable) */
#header {
  -webkit-transition: background-color 0.25s ease, padding 0.5s, height 0.5s, -webkit-backdrop-filter 0.25s ease;
  transition: background-color 0.25s ease, padding 0.5s, height 0.5s, backdrop-filter 0.25s ease;
}
#header.scroll,
[data-page="home"] #header.scroll {
  background-color: rgba(33, 33, 33, 0.48);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

/* Fullpage tech detail — align with charfane.com ice technology pages */
/* Content sections: transparent (bg comes from .section-img cover), clip overflow */
#slideContainer .section:not(.fp-auto-height) {
  overflow: hidden;
  background-color: transparent;
}
/* Footer section: natural height, white, like Charfane fp-auto-height */
#slideContainer .section.fp-auto-height,
#slideContainer #techFooterSection,
#slideContainer .section.fp-auto-height .fp-tableCell,
#slideContainer #techFooterSection .fp-tableCell {
  background-color: #fff;
  background-image: none;
}
#slideContainer #techFooterSection footer,
#slideContainer #techFooterSection #footer-nav,
#slideContainer #techFooterSection #copyright {
  background-color: #fff;
  color: #333;
}
#slideContainer #techFooterSection .foot-nav-link a {
  color: #777;
}
#slideContainer #techFooterSection #copyright .wow {
  visibility: visible;
  opacity: 1;
}
/* PC / mobile bg layers — never stack; always cover */
#slideContainer .section-img,
#slideContainer .section-img-m {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  -webkit-background-size: cover !important;
  background-size: cover !important;
  transform-origin: center center;
}
#slideContainer .section-img {
  display: block;
}
#slideContainer .section-img-m {
  display: none;
}
@media (max-width: 767px) {
  #slideContainer .section-img {
    display: none;
  }
  #slideContainer .section-img-m {
    display: block;
    background-size: cover !important;
  }
}

/* Ensure footer QR image size */
.foot-twocode img {
  max-width: 120px;
  height: auto;
}

/* Lazyload placeholders */
img.lazyload {
  opacity: 1;
}

/*
 * Match Charfane btn-base on both <button> and <a>:
 * source uses <button>; UA padding + vertical centering differs from <a>.
 */
button.btn-base,
a.btn-base {
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
button.btn-base.btn-lg,
a.btn-base.btn-lg {
  /* content-box height for text centering inside 1.5rem - 6px borders */
  line-height: calc(1.5rem - 6px);
}
button.btn-base:hover,
a.btn-base:hover {
  text-decoration: none;
}

/* List header: keep .container width; title left, catalogue right */
.page-news .header-title .container.font-m-s,
.page-goods .header-title .container.font-m-s,
.page-goods .header-title .container-fluid.font-m-s {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
}
.page-news .header-title,
.page-goods .header-title {
  padding-left: 0;
}
.page-news .header-title .newstitle,
.page-goods .header-title .newstitle {
  width: auto;
  flex: 0 0 auto;
  display: block;
  margin: 0;
  order: 0;
}
.page-news .header-title .catalogue,
.page-goods .header-title .catalogue {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0 0 0 1rem;
  text-align: right;
  order: 1;
}
.page-news .header-title .catalogue ul,
.page-goods .header-title .catalogue ul {
  margin: 0;
  padding: 0;
}
@media screen and (max-width: 610px) {
  .page-news .header-title .container.font-m-s,
  .page-goods .header-title .container.font-m-s,
  .page-goods .header-title .container-fluid.font-m-s {
    display: block;
  }
  .page-news .header-title .catalogue,
  .page-goods .header-title .catalogue {
    display: block;
    width: 100%;
    text-align: left;
    margin-top: 20px;
    margin-left: 0;
  }
}

/* Product list cards */
.cf-goods-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
  padding: 0;
  list-style: none;
}
.cf-goods-card {
  width: 33.333%;
  padding: 0 0.5rem 1.5rem;
  box-sizing: border-box;
  list-style: none;
}
.cf-goods-card__link {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  text-decoration: none;
  color: inherit;
}
.cf-goods-card__link:hover {
  border-color: #3393ce;
  box-shadow: 0 8px 24px rgba(51, 147, 206, .12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.cf-goods-card__pic {
  position: relative;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
}
.cf-goods-card__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.cf-goods-card__link:hover .cf-goods-card__pic img {
  transform: scale(1.03);
}
.cf-goods-card__body {
  padding: .75rem .9rem .9rem;
}
.cf-goods-card__title {
  margin: 0 0 .35rem;
  font-size: .34rem;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cf-goods-card__more {
  display: inline-block;
  font-size: .28rem;
  color: #3393ce;
}
.cf-goods-card__link:hover .cf-goods-card__more {
  text-decoration: underline;
}
@media (max-width: 991px) {
  .cf-goods-card { width: 50%; }
  .cf-goods-card__title { font-size: .4rem; }
  .cf-goods-card__more { font-size: .32rem; }
}
@media (max-width: 575px) {
  .cf-goods-card { width: 100%; padding-bottom: 1rem; }
  .cf-goods-card__title { font-size: .48rem; }
  .cf-goods-card__more { font-size: .38rem; }
}

/* News list: keep thumbnails at 2:1, never show full tall originals */
.page-news .art-item-auto .art-img,
.page-news .art-item-auto .art-img .imgbox {
  aspect-ratio: 2 / 1;
  height: auto;
  overflow: hidden;
}
.page-news .art-item-auto .art-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Pagination: ESPCMS outputs .btn directly; style like source .page-mf circles */
.page-mf ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-mf ul > li,
.page-mf ul > .btn,
.page-mf ul > a,
.page-mf ul > span {
  display: inline-block;
  margin: 0 12px;
  vertical-align: middle;
}
.page-mf ul > .btn,
.page-mf ul > a,
.page-mf ul > span,
.page-mf ul li a {
  display: inline-block;
  min-width: 40px;
  height: 40px;
  padding: 10px 15px;
  line-height: 20px;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.page-mf ul > .btn:hover,
.page-mf ul > a:hover,
.page-mf ul li a:hover {
  background-color: #3393ce;
  color: #fff;
  text-decoration: none;
}
.page-mf ul > .btn.active,
.page-mf ul > span.active,
.page-mf ul > a.on,
.page-mf ul li a.on,
.page-mf .page-active-mf,
.page-mf .page-active-mf a {
  background-color: #3393ce;
  color: #fff;
  border-radius: 50%;
  cursor: default;
}
.page-mf ul > .btn.prev,
.page-mf ul > .btn.next,
.page-mf ul > a.prev,
.page-mf ul > a.next {
  border-radius: 20px;
  min-width: auto;
  padding: 10px 16px;
}
@media screen and (max-width: 473px) {
  .page-mf ul > li,
  .page-mf ul > .btn,
  .page-mf ul > a,
  .page-mf ul > span {
    margin: 0 4px;
  }
}

