
/** ADD YOUR AWESOME CODES HERE **/

/* 顶栏 Logo 尺寸限制（首页 Yamifood + 内页企业导航） */
.site-logo-link,
.navbar-brand.site-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.site-logo,
.navbar-brand .site-logo,
.navbar-brand img.site-logo,
.top-navbar .navbar-brand img {
  display: block;
  max-height: 44px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .site-logo-link,
  .navbar-brand.site-logo-link {
    max-width: 180px;
  }
  .site-logo,
  .navbar-brand .site-logo,
  .top-navbar .navbar-brand img {
    max-height: 36px;
    max-width: 160px;
  }
}

/* 首页轮播样式见 css/home-hero.css */

/* 首页引用横幅：恢复模板 qt-bg.jpg 科技底图，文案限定左侧暗区 */
body.page-home-yami .qt-box.qt-background {
  padding: clamp(5.5rem, 12vh, 9.5rem) 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  background: url(../images/qt-bg.jpg) no-repeat left center / cover fixed !important;
  position: relative;
  overflow: hidden;
}

body.page-home-yami .qt-box.qt-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

body.page-home-yami .qt-box.qt-background .container {
  width: 100%;
  position: relative;
  z-index: 1;
}

body.page-home-yami .qt-box .qt-quote-col {
  max-width: 640px;
}

body.page-home-yami .qt-background p.lead {
  margin-bottom: 1.35rem;
  line-height: 1.55;
  font-family: 'Arbutus Slab', serif;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  font-weight: 300;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.55);
}

body.page-home-yami .qt-background span.lead {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

@media (max-width: 991px) {
  body.page-home-yami .qt-box.qt-background {
    padding: clamp(4rem, 10vh, 6.5rem) 0;
    min-height: 260px;
  }
}

@media (max-width: 767px) {
  body.page-home-yami .qt-box.qt-background {
    padding: clamp(3.25rem, 9vh, 4.5rem) 0;
    min-height: 220px;
    background-attachment: scroll;
  }

  body.page-home-yami .qt-background p.lead {
    font-size: 1.35rem;
    line-height: 1.5;
  }

  body.page-home-yami .qt-background span.lead {
    font-size: 1rem;
  }
}

/* 首页推荐产品：对齐 Yamifood 模板（整图 + 悬停金色遮罩滑入） */
body.page-home-yami #home-products .special-grid {
  margin-bottom: 0;
}

body.page-home-yami #home-products .special-grid > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

body.page-home-yami #home-products .gallery-single {
  position: relative;
  margin: 30px 0;
  overflow: hidden;
  box-shadow: 0 0 10px #ccc;
  background: #111;
}

body.page-home-yami #home-products .gallery-single > img,
body.page-home-yami #home-products .gallery-single img.img-fluid {
  display: block;
  width: 100%;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  padding: 0;
  border: 0;
  background: #f0f0f0;
  transition: transform 0.45s ease;
}

body.page-home-yami #home-products .gallery-single:hover > img,
body.page-home-yami #home-products .gallery-single:hover img.img-fluid {
  transform: scale(1.06);
}

body.page-home-yami #home-products .gallery-single .why-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 12px 14px;
  background: rgba(207, 166, 113, 0.92);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.page-home-yami #home-products .gallery-single:hover .why-text {
  bottom: 0;
}

body.page-home-yami #home-products .gallery-single .why-text h4 {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  font-family: 'Arbutus Slab', serif;
  line-height: 1.3;
  margin: 0 0 10px;
}

body.page-home-yami #home-products .gallery-single .why-text p {
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.35);
  margin: 0 0 12px;
  padding-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-home-yami #home-products .gallery-single .why-text h5 {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

@media (max-width: 991px) {
  body.page-home-yami #home-products .gallery-single > img,
  body.page-home-yami #home-products .gallery-single img.img-fluid {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }
  body.page-home-yami #home-products .gallery-single .why-text h4 {
    font-size: 18px;
  }
  body.page-home-yami #home-products .gallery-single .why-text p {
    font-size: 14px;
  }
  body.page-home-yami #home-products .gallery-single .why-text h5 {
    font-size: 22px;
  }
}

@media (max-width: 575px) {
  body.page-home-yami #home-products .gallery-single > img,
  body.page-home-yami #home-products .gallery-single img.img-fluid {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }
}

/* 首页合作伙伴 LOGO：居中容器内滚动，不满屏 */
body.page-home-yami .home-partners-box {
  padding: 4.5rem 0 4.75rem;
  background: linear-gradient(180deg, #f4f9fc 0%, #fff 100%);
  text-align: center;
}

body.page-home-yami .home-partners-box .heading-title {
  margin-bottom: 2.25rem;
}

body.page-home-yami .home-partners-box > .container:last-child {
  max-width: 1140px;
}

.partners-marquee-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 12px;
  background: #f8fafc;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.partners-marquee {
  width: 100%;
}

.partners-marquee__track {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  min-height: 100px;
  margin: 0 auto;
  animation: partners-marquee-scroll 50s linear infinite;
  will-change: transform;
}

.partners-marquee-wrap:hover .partners-marquee__track {
  animation-play-state: paused;
}

.partners-marquee__item {
  flex: 0 0 188px;
  width: 188px;
  padding: 0 1.65rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
}

.partners-marquee__item img {
  display: block;
  max-width: 100%;
  max-height: 84px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  filter: grayscale(20%);
  opacity: 0.88;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partners-marquee__item img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

@keyframes partners-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1199px) {
  .partners-marquee__item {
    flex: 0 0 118px;
    width: 118px;
  }
}

@media (max-width: 991px) {
  .partners-marquee__item {
    flex: 0 0 108px;
    width: 108px;
  }
}

@media (max-width: 767px) {
  body.page-home-yami .home-partners-box {
    padding: 2.75rem 0 2.75rem;
  }

  .partners-marquee__item {
    flex: 0 0 96px;
    width: 96px;
    padding: 0 0.85rem;
    height: 64px;
  }

  .partners-marquee__item img {
    max-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1140px;
    gap: 1.25rem 0;
  }

  .partners-marquee-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .partners-marquee__item {
    flex: 0 0 20%;
    width: 20%;
    max-width: 130px;
  }
}

/* 页脚：深色极简（公司名 + 三列联系方式 + 版权） */
.site-footer--premium {
  background: #121212;
  color: rgba(255, 255, 255, 0.62);
  padding: 3.5rem 0 2.25rem;
  margin-top: 0;
}

.site-footer--premium a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer--premium a:hover,
.site-footer--premium a:focus {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.site-footer__company {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__divider {
  width: min(92%, 720px);
  height: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.22);
}

.site-footer__contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  max-width: 960px;
  margin: 0 auto 3rem;
  text-align: center;
}

.site-footer__contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.65rem;
  line-height: 1;
}

.site-footer__contact-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
  max-width: 280px;
}

.site-footer__label {
  color: rgba(255, 255, 255, 0.58);
}

.site-footer__address {
  margin: 0;
}

.site-footer__emails {
  display: inline;
}

.site-footer__emails a {
  display: inline;
  word-break: break-all;
}

.site-footer__emails a + a::before {
  content: '';
  display: block;
  height: 0.35rem;
}

.site-footer__bottom {
  padding-top: 0.25rem;
  text-align: center;
}

.site-footer__bottom .footer-copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.02em;
}

.home-case-gallery {
  margin-top: 30px;
}

.home-gallery-link {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-gallery-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(6, 30, 46, 0.18);
}

.product-detail-video {
  width: 100%;
  max-width: 960px;
  border-radius: 8px;
  background: #000;
}

.about-emails a {
  display: block;
  color: var(--primary, #ff8e21);
  word-break: break-all;
}

.about-emails a + a {
  margin-top: 0.35rem;
}

@media (max-width: 767px) {
  .site-footer--premium {
    padding-top: 2.75rem;
  }

  .site-footer__contact-row {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-bottom: 2.5rem;
  }

  .site-footer__contact-text {
    max-width: 320px;
  }
}

/* 产品列表页 / 详情页：与首页推荐产品同款卡片 */
body.page-products #product-list .special-grid,
body.page-product-detail #related-products .special-grid {
  margin-bottom: 0;
}

body.page-products #product-list .special-grid > a,
body.page-product-detail #related-products .special-grid > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

body.page-products #product-list .gallery-single,
body.page-product-detail #related-products .gallery-single {
  position: relative;
  margin: 15px 0;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  background: #111;
}

body.page-products #product-list .gallery-single > img,
body.page-products #product-list .gallery-single img.img-fluid,
body.page-product-detail #related-products .gallery-single > img,
body.page-product-detail #related-products .gallery-single img.img-fluid {
  display: block;
  width: 100%;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

body.page-products #product-list .gallery-single:hover > img,
body.page-product-detail #related-products .gallery-single:hover > img {
  transform: scale(1.06);
}

body.page-products #product-list .gallery-single .why-text,
body.page-product-detail #related-products .gallery-single .why-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100%;
  height: 100%;
  padding: 12px 14px;
  background: rgba(31, 158, 215, 0.92);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.page-products #product-list .gallery-single:hover .why-text,
body.page-product-detail #related-products .gallery-single:hover .why-text {
  bottom: 0;
}

body.page-products #product-list .gallery-single .why-text h4,
body.page-product-detail #related-products .gallery-single .why-text h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
}

body.page-products #product-list .gallery-single .why-text p,
body.page-product-detail #related-products .gallery-single .why-text p {
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
  margin: 0 0 10px;
  padding-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-products #product-list .gallery-single .why-text h5,
body.page-product-detail #related-products .gallery-single .why-text h5 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

body.page-product-detail .page-hero--detail {
  background: #fff;
  padding: 2rem 0;
  display: block;
  text-align: left;
}

body.page-product-detail .page-hero--detail .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

body.page-product-detail .page-hero--detail .col-lg-7,
body.page-product-detail .page-hero--detail .col-lg-5 {
  display: block;
}

/* 产品描述区域 */
.detail-desc-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}
.detail-desc-section .detail-summary {
  color: #444;
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
}

body.page-product-detail .detail-title,
body.page-product-detail .detail-summary,
body.page-product-detail .page-hero-sub {
  color: #333;
}

body.page-product-detail .detail-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

body.page-product-detail .page-hero-sub {
  max-width: 100%;
}

body.page-product-detail .detail-hero-meta {
  margin-top: 1rem;
}

body.page-product-detail .detail-hero-meta .detail-price {
  font-size: 1rem;
  padding: 0.45rem 0.85rem;
  background-color: var(--brand);
  color: #fff;
  border-radius: 4px;
}

body.page-product-detail .product-detail-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #444;
}

body.page-product-detail .product-detail-body p {
  margin-bottom: 1rem;
}

body.page-product-detail .product-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 991px) {
  body.page-products #product-list .gallery-single > img,
  body.page-product-detail #related-products .gallery-single > img {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }
}
