// =============================================================
//  Mumi Pimu Gift  —  Layout 01
//  Framework : Bootstrap 4.6 (CDN)
//  Style     : LESS -> css/style.css
// =============================================================

// ---------- 变量 ----------
@brand:        #ef922d;   // 主橙
@brand-deep:   #dc5213;   // 深橙（按钮侧条）
@brand-hover:  #f55b15;
@navy:         #253241;   // 深蓝（顶栏 / 下拉 / 按钮）
@navy-deep:    #19222d;   // 内页 banner 遮罩
@text:         #41454a;
@text-soft:    #686766;
@gray-bg:      #f1f1f1;
@line:         #e4e3e3;

@head:  'Montserrat', sans-serif;
@alt:   'Poppins', sans-serif;
@body:  Arial, Helvetica, sans-serif;

@ease: all .4s ease;

// ---------- 基础 ----------
body {
  font-family: @body;
  color: @text;
  background: #fff;
  overflow-x: hidden;
}
a { transition: @ease; }
img { max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; }
@media screen and (max-width: 3840px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl ,.container-wide{
    max-width: 1840px;
  }
}
@media screen and (max-width: 2560px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl,.container-wide {
    max-width: 1640px;
  }
}

@media screen and (max-width: 1920px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl,.container-wide {
    max-width: 1440px;
  }
}
@media screen and (max-width: 1600px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl,.container-wide {
    max-width: 1440px;
  }
}
@media screen and (max-width: 1366px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl,.container-wide {
    max-width: 1200px;
  }
}

// =============================================================
//  1. 顶栏
// =============================================================
.topbar {
  height: 55px;
  background: @brand;

  .row-bar {
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .top-info {
    display: flex;
    align-items: center;
    height: 55px;

    span {
      color: #fff;
      font: 14px/1 @body;
      padding: 0 30px;
      border-right: 1px solid rgba(255,255,255,.7);
      white-space: nowrap;
    }
  }
  .top-social {
    display: flex;
    height: 55px;

    a {
      width: 50px;
      height: 55px;
      line-height: 55px;
      text-align: center;
      color: #fff;
      font-size: 18px;
      border-left: 1px solid rgba(255,255,255,.7);

      &:hover { color: @navy; }
    }
  }
  .top-search {
    position: relative;
    width: 55px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    background: darken(@brand, 8%);
    cursor: pointer;

    .search-pop {
      position: absolute;
      right: 0;
      top: 55px;
      width: 300px;
      padding: 22px 20px;
      background: @navy;
      display: none;
      z-index: 9999;

      input {
        width: 190px;
        height: 36px;
        float: left;
        border: 0;
        padding: 0 8px;
        font-size: 12px;
        color: #222;
      }
      button {
        width: 70px;
        height: 36px;
        float: right;
        border: 0;
        background: @brand;
        color: #fff;
        font-size: 14px;
        line-height: 36px;
        cursor: pointer;
      }
    }
    &:hover .search-pop { display: block; }
  }
}

// =============================================================
//  2. 头部 + 导航 + 下拉菜单
// =============================================================
.site-header {
  background: #fff;
  position: relative;

  .row-bar {
    height: 89px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo img {
    height: 56px;
    width: auto;
    display: block;
  }
}

.main-nav {
  > ul { display: flex; align-items: center; }

  > ul > li {
    position: relative;

    > a {
      display: block;
      padding-left: 40px;
      font: 600 18px/89px @head;
      color: #222;
      text-transform: uppercase;

      &:hover,
      &.active { color: @brand; }
    }
  }
}

// 普通下拉菜单
.drop-menu {
  position: absolute;
  left: 0;
  top: 89px;
  min-width: 280px;
  padding: 8px 0;
  background: @navy;
  z-index: 999;
  display: none;
  box-shadow: 0 12px 24px rgba(0,0,0,.15);

  li { display: block; }

  a {
    display: block;
    padding: 0 24px;
    font: 500 15px/46px @alt;
    color: #dfe3e8;
    text-transform: uppercase;
    white-space: nowrap;

    &:hover { background: @brand; color: #fff; }
  }
}
.has-drop:hover .drop-menu { display: block; }

.main-nav > ul > li.has-drop > a i {
  margin-left: 6px;
  font-size: 13px;
  vertical-align: 1px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid @line;
  background: #fff;
  font-size: 20px;
  color: @navy;
  cursor: pointer;
}

// 移动端导航
.mobile-nav {
  display: none;
  padding: 10px 0 20px;
  border-top: 1px solid @line;

  > li {
    border-bottom: 1px solid @line;

    > a {
      display: block;
      padding: 14px 0;
      font: 600 16px @head;
      color: #222;
      text-transform: uppercase;
    }
  }
  .m-sub a {
    display: block;
    padding: 8px 0 8px 16px;
    font: 14px @body;
    color: @text-soft;
  }
}
.footer-cart { z-index: 999; width: 60px; position: fixed; right: 20px; bottom: 200px; cursor: pointer; transform-origin: bottom right; transition: opacity .3s ease, transform .3s ease, visibility .3s;
  span { width: 50px; height: 50px; border-radius: 25px; background: @brand; display: inline-block; text-align: center; position: relative;
    i { color: #FFFFFF; line-height: 50px; text-align: center; font-size: 30px; }
    em { position: absolute; font-style: normal; background: #ff0000; display: inline-block; width: 20px; height: 20px; border-radius: 10px; top: -5px; right: -5px; line-height: 20px; text-align: center; color: #FFFFFF; font-size: 12px; }
    .info { display: none; border-radius: 6px; width: 150px; font-size: 16px; background: #f1f1f1; box-shadow: 0 0 10px 1px rgba(0,0,0,0.15); color: #0b132f; position: absolute; right: 50px; top: -60px; line-height: 50px; overflow: hidden;
      img { width: 100%; } }
    &:hover .info { display: block; } } }
.footer-cart-list { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px) scale(.96); transform-origin: bottom right; transition: opacity .28s ease, transform .28s ease, visibility .28s; z-index: 9999; background: #FFFFFF; width: 230px; position: fixed; bottom: 20px; right: 20px; border: #d1d1d1 solid 1px; box-shadow: 0 0 3px 1px rgba(0,0,0,0.25);
  h3 { background: #7a8599; text-align: center; font-size: 15px; height: 37px; margin: 0; padding: 0; line-height: 37px; position: relative; color: #FFFFFF;
    span { float: left; position: absolute; left: 20px; bottom: 0;
      i { cursor: pointer; } }
    em { font-style: normal; color: #e64545; font-weight: bold; } }
  ul { margin: 0; padding: 0; background: #FFFFFF; height: 150px; overflow-y: scroll;
    li { height: 56px; margin: 5px auto; border-bottom: #d1d1d1 solid 1px; display: flex;
      a { display: inline-block; width: 80px; margin-right: 5px;
        img { max-width: 40px; margin-left: 5px; } }
      span p { margin: 0; padding: 0; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 160px; }
      span a { display: none; }
      &:hover span a { display: block; color: #555555; text-decoration: none; font-size: 14px; } } }
  h4 { display: flex; height: 50px; justify-content: center; align-items: center;
    a { text-decoration: none; border-radius: 4px; }
    a:nth-child(1) { background: #f1f1f1; color: #ff0000; font-size: 14px; padding: 5px 15px; margin-right: 15px; }
    a:nth-child(2) { background: #e64545; color: #FFFFFF; font-size: 14px; padding: 5px 15px; } } }
/* open state: fade/slide the list in from the corner; fade the cart icon out (mutually exclusive) */
.footer-cart-list.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.footer-cart-list h3 span i { transition: transform .2s; }
.footer-cart-list.open h3 span i { transform: rotate(180deg); }
.footer-cart.cart-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.5); }
// =============================================================
//  3. 首页横幅
// =============================================================
.hero-swiper {
  .swiper-slide img { width: 100%; height: 560px; object-fit: cover; display: block; }
  .swiper-button-next,
  .swiper-button-prev {
    color: #fff;
    &::after { font-size: 26px; }
  }
  .swiper-pagination {
    bottom: 18px;

    &-bullet {
      width: 12px;
      height: 12px;
      background: #fff;
      opacity: .6;
      box-shadow: 0 0 4px rgba(0,0,0,.35);
      &-active { opacity: 1; background: @brand; }
    }
  }
}

// =============================================================
//  4. 区块标题（通用）
// =============================================================
.sec-head {
  text-align: center;

  .kicker {
    font: 18px/1.4 @alt;
    color: @brand;
  }
  h2 {
    font: 700 30px/1.35 @head;
    color: #333;
    text-transform: uppercase;
  }
  .line {
    width: 90px;
    height: 4px;
    background: @brand;
    margin: 10px auto;
  }
  .desc {
    max-width: 830px;
    margin: 20px auto 0;
    font: 14px/26px @body;
    color: @text;
  }
}

// =============================================================
//  5. 首页 · 产品分类
// =============================================================
.cats-sec { padding: 80px 0 70px; background: #fff; }
.index-category{
  margin-top: 30px;
  .swiper-button-next{
    &::after{
      color: @brand;
    }
  }
  .swiper-button-prev{
    &::after{
      color: @brand;
    }
  }
  .card{
    width: 100%;
    margin: 0 auto;
    a{
      display: block;
      position: relative;
      .title{
        height: 50px;
        line-height: 50px;
        position: absolute;
        background: rgba(0,0,0,.5);
        left: 0;
        top: -51px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
        color: #ffffff;
        z-index: 999;
      }
      &:hover{
        .title{
          top: 0;
          transition: 0.5s ease-out;
        }
      }
    }
  }
}
.cat-card {
  display: block;
  padding: 25px 15px;
  text-align: center;
  transition: @ease;

  .logo-box {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: @ease;

    img { max-height: 70px; width: auto; max-width: 100%; }
  }
  .cat-name {
    font: 700 18px/1.3 @head;
    color: @navy;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
  }
  .pic { display: block; img { width: 100%; display: block; } }
  h3 {
    margin-top: 14px;
    font: 600 15px @head;
    color: #333;
    text-transform: uppercase;
  }
  &:hover .cat-name { color: @brand; }
  &:hover {
    margin-top: -5px;
    box-shadow: 2px 1px 10px #ccc;

    .logo-box { border-radius: 6px; box-shadow: 2px 1px 17px #ccc; }
  }
}

// =============================================================
//  6. 首页 · 热门产品
// =============================================================
.hot-sec { padding: 90px 0; background: @gray-bg; }

.prod-swiper { padding-bottom: 10px; }

.prod-card {
  background: #fff;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;

  img { width: 100%; height: 200px; object-fit: contain; display: block; }
  h3 {
    margin-top: auto;
    padding: 15px 0 0;
    font: 600 18px @alt;
    color: #333;
  }
  &:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
}

.swiper-dots {
  text-align: center;
  padding-top: 24px;

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #c9c9c9;
    opacity: 1;
    margin: 0 5px;
    &-active { background: @brand; }
  }
}

// =============================================================
//  7. 首页 / 关于 · 欢迎区
// =============================================================
.welcome-sec { padding: 115px 0; background: #fff; }

.welcome-text {
  h2 {
    font: 700 32px/1.35 @head;
    color: #222;
    text-transform: uppercase;

    span { color: @brand; }
  }
  .line {
    width: 80px;
    height: 3px;
    background: @brand;
    margin: 15px 0;
  }
  p {
    font: 14px/28px @body;
    color: @text-soft;
    margin-bottom: 14px;
  }
  .fact-list {
    margin-top: 22px;

    li {
      position: relative;
      padding: 6px 0 6px 18px;
      font: 16px/1.6 @alt;
      color: #727073;

      &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 14px;
        width: 6px;
        height: 6px;
        background: @brand;
      }
    }
  }
  .cert-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 26px;

    img {
      height: 52px;
      width: auto;
      max-width: 46%;
      object-fit: contain;
      margin-right: 14px;
    }
  }
  .btn-more {
    display: inline-block;
    margin-top: 30px;
    font: 600 15px @head;
    color: @brand;

    span {
      display: inline-block;
      margin-left: 6px;
      padding: 2px 7px;
      border-radius: 50px;
      background: #333;
      color: #fff;
      font-size: 10px;
      vertical-align: middle;
    }
    &:hover { color: @brand-hover; }
  }
  .btn-solid {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 50px;
    background: @navy;
    border-right: 10px solid @brand-deep;
    color: #fff;
    font: 600 16px @head;
    text-transform: uppercase;

    &:hover { background: @brand-hover; color: #fff; }
  }
}

.welcome-media {
  img { width: 100%; display: block; }

  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #c9c9c9;
    opacity: 1;
    margin: 0 4px;
    &-active { background: @brand; }
  }
}

// 关于页 · 左侧带橙色几何底图
.about-media {
  position: relative;
  padding: 0 0 40px 40px;

  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    width: 82%;
    height: calc(100% - 40px);
    background: url(../images/ab_bg.png) no-repeat left top;
    background-size: 100% auto;
  }
  img { position: relative; display: block; width: 100%; }
}

// =============================================================
//  8. 新闻
// =============================================================
.news-sec { padding: 80px 0 60px; background: @gray-bg; }

.news-card {
  background: transparent;
  padding: 10px 10px;
  transition: @ease;

  .thumb {
    display: block;
    overflow: hidden;

    img { width: 100%; height: 220px; object-fit: cover; display: block; }
  }
  time {
    display: block;
    padding: 10px 0 8px;
    font: 14px @head;
    color: #646363;
  }
  h3 {
    height: 58px;
    padding: 6px 0;
    font: 700 16px/1.45 @alt;

    a { color: #333; &:hover { color: @brand; } }
  }
  .news-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;

    a {
      font: 700 14px @head;
      color: #333;
      text-decoration: underline;
      text-transform: uppercase;

      &:hover { color: @brand; }
    }
    .views {
      font: 14px @body;
      color: #646363;

      i { margin-right: 6px; }
    }
  }
  &:hover { background: #fff; }
}

// =============================================================
//  9. 留言条
// =============================================================
.cta-sec {
  padding: 60px 0;
  background: @brand;
  text-align: center;

  p {
    margin: 0 auto;
    max-width: 900px;
    font: 700 29px/1.5 @head;
    color: #fff;
  }
  .btn-send {
    margin-top: 40px;
    padding: 12px 45px;
    border: 0;
    background: #222;
    color: #fff;
    font: 14px @head;
    cursor: pointer;

    &:hover { background: #000; }
  }
}

// =============================================================
//  10. 页脚
// =============================================================
.site-footer {
  padding: 90px 0 60px;
  background: @gray-bg;
  color: @navy;

  .f-brand {
    img { height: 60px; width: auto; }

    .sns {
      display: flex;
      margin-top: 18px;

      a {
        width: 36px;
        height: 36px;
        margin-right: 8px;
        border-radius: 50%;
        background: #34404e;
        color: #a9aeb3;
        font-size: 15px;
        line-height: 36px;
        text-align: center;

        &:hover { background: @brand; color: #fff; }
      }
    }
  }
  .f-title {
    margin-bottom: 25px;
    font: 600 20px @alt;
    color: #222;
    text-transform: uppercase;
  }
  .f-list {
    margin: 0 auto;
    width: 100%;
    li a {
      font: 16px/30px @alt;
      color: #69798b;

      &:hover { color: @brand; }
    }
  }
  .f-contact {
    li {
      font: 16px/28px @alt;
      color: #69798b;
    }
  }
}

.copyright {
  padding: 30px 0;
  background: #fff;
  text-align: center;
  font: 14px/26px @body;
  color: #34404e;

  a { color: #34404e; }
}

// =============================================================
//  11. 内页横幅
// =============================================================
.page-banner {
  position: relative;
  height: 260px;
  background: url(../images/about_banner.jpg) center center no-repeat;
  background-size: cover;

  .pb-mask {
    /*width: 800px;
    height: 260px;*/
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: @navy-deep;
    opacity: .6;
    /*transform: skewX(45deg);*/
  }
  .pb-text {
    position: absolute;
    left: 50%;
    top: 0;
    width: 800px;
    height: 260px;
    margin-left: -400px;
    text-align: center;
    color: #fff;

    h1 {
      padding-top: 70px;
      font: 400 40px @head;
      padding-bottom: 20px;
    }
    .crumb {
      font: 14px @body;

      a { color: @brand; padding: 0 8px; }
      span { padding: 0 8px; }
    }
  }
}

// =============================================================
//  12. 产品页
// =============================================================
.products-sec { padding: 50px 0 70px; }

.filter-head {
  position: relative;
  height: 60px;
  line-height: 60px;
  padding-left: 40px;
  background: url(../images/dh_bg.jpg) center no-repeat;
  background-size: cover;
  color: #fff;
  font: 20px @head;
  text-transform: uppercase;
  overflow: hidden;
  display: flex;
justify-content: flex-start;
  align-items: center;
  /* */ &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 26px solid @brand;
    border-right: 26px solid transparent;
  }
}

.filter-item {
  position: relative;
  height: 55px;
  margin-top: 8px;
  border: 1px solid @line;
  background: #fff;

  > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 14px;
    font: 700 15px @head;
    color: #222;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;

    i { color: #b3b3b3; font-size: 12px; margin-left: 8px; }
  }

  .filter-sub {
    position: absolute;
    left: 100%;
    top: 0;
    width: 300px;
    padding: 15px;
    background: @brand;
    z-index: 99;
    display: none;

    li a {
      display: block;
      padding: 4px 0;
      font: 13px/1.5 @body;
      color: #fff;

      &:hover { padding-left: 10px; color: #fff; }
    }
  }

  &:hover {
    > a { background: @brand; color: #fff; }
    > a i { color: #fff; }
    .filter-sub { display: block; }
  }
}

.product-card {
  display: block;
  margin-bottom: 25px;
  border: 1px solid #eee;
  background: #fff;
  text-align: center;

  .pic { padding: 15px; img { width: 100%; display: block; } }
  h3 {
    padding: 15px 8px;
    border-bottom: 1px solid #eee;
    font: 600 18px/1.35 @head;
    color: @navy;
  }
  &:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;

  a, span {
    min-width: 34px;
    height: 28px;
    margin: 0 3px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    background: #fff;
    font: 13px/26px @body;
    color: #666;
    text-align: center;
  }
  a:hover { border-color: @brand; color: @brand; }
  .current { background: @brand; border-color: @brand; color: #fff; }
  .disabled { color: #c4c4c4; }
}

// Below-pagination category grid
.below-pager-cats {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;

  .bpc-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
  }

  .bpc-card {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    text-decoration: none;
    transition: box-shadow .2s;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    padding-bottom: 10px;

    &:hover {
      box-shadow: 0 4px 14px rgba(0,0,0,.08);
      .bpc-name { color: @brand; }
    }
  }

  .bpc-img {
    display: block;
    width: 100%;
    img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      display: block;
    }
  }

  .bpc-name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    padding: 0 6px;
  }
}
// =============================================================
//  13. 关于页
// =============================================================
.about-sec { padding: 90px 0 100px; }

.about-news { padding: 40px 0 80px; background: @gray-bg; }

.news-swiper {
  .swiper-slide img { width: 100%; height: 250px; object-fit: cover; display: block; }
}

// =============================================================
//  14. 响应式
// =============================================================
@media (max-width: 1199px) {
  .main-nav > ul > li > a { padding-left: 24px; font-size: 16px; }
  .welcome-sec { padding: 70px 0; }
  .hero-swiper .swiper-slide img { height: 460px; }
}

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .site-header .row-bar { height: 70px; }
  .main-nav > ul { display: none; }
  .hero-swiper .swiper-slide img { height: 360px; }
  .news-swiper .swiper-slide img { height: 220px; }
  .mobile-nav {
    display: none;
    &.open { display: block; }
  }
  .page-banner {
    height: 200px;
    .pb-mask { width: 100%; height: 200px; transform: none; }
    .pb-text {
      width: 100%;
      height: 200px;
      margin-left: -50%;
      h1 { padding-top: 58px; font-size: 30px; }
    }
  }
  .about-media { padding: 0 0 30px 20px; }
  .about-media::before { top: 20px; }
  .cat-card { padding: 18px 10px; }
  .cta-sec p { font-size: 20px; }
  .site-footer { padding: 50px 0 30px; }
  .filter-sub { display: none !important; }
}

@media (max-width: 767px) {
  .topbar .top-info span { padding: 0 12px; font-size: 12px; }
  .topbar .top-info span:nth-child(2) { display: none; }
  .hero-swiper .swiper-slide img { height: 230px; }
  .news-card .thumb img { height: 200px; }
  .prod-card img { height: 140px; }
  .prod-card h3 { font-size: 15px; }
  .cats-sec { padding: 50px 0 30px; }
  .hot-sec { padding: 55px 0; }
  .welcome-sec { padding: 50px 0; }
  .news-sec { padding: 50px 0 30px; }
  .sec-head h2 { font-size: 24px; }
  .welcome-text h2 { font-size: 24px; }
  .cta-sec { padding: 40px 15px; }
  .cta-sec p { font-size: 17px; }
  .about-sec { padding: 50px 0 60px; }
}

// =============================================================
//  15. 产品详情
// =============================================================
.detail-sec { padding: 50px 0 40px; }

.pd-gallery {
  .pd-main {
    border: 1px solid @line;
    background: #fff;
    img { width: 100%; display: block; object-fit: contain; }
  }
  .pd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;

    a {
      width: 82px; height: 82px; padding: 4px;
      border: 1px solid @line; display: block;
      img { width: 100%; height: 100%; object-fit: contain; display: block; }
      &.active, &:hover { border-color: @brand; }
    }
  }
}

.pd-info {
  h1 { font: 700 26px/1.4 @head; color: #222; }
  .pd-code {
    margin: 10px 0 18px;
    font: 14px @body; color: @text-soft;
    span { color: @brand; font-weight: 700; }
  }
  .pd-desc { font: 14px/28px @body; color: @text; margin-bottom: 22px; }
  .pd-spec {
    width: 100%; border-collapse: collapse; margin-bottom: 26px;
    th, td { border: 1px solid @line; padding: 10px 14px; font: 14px/1.6 @body; text-align: left; }
    th { width: 170px; background: @gray-bg; color: #333; font-weight: 600; }
    td { color: @text; }
  }
  .pd-actions {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    .btn-inquiry {
      padding: 14px 34px; border: 0; background: @brand; color: #fff;
      font: 600 15px @head; text-transform:uppercase; cursor: pointer;
      &:hover { background: @brand-hover; color: #fff; }
    }
    .btn-contact {
      padding: 14px 34px; background: @navy; color: #fff;
      font: 600 15px @head; text-transform: uppercase;
      &:hover { background: @brand-hover; color: #fff; }
    }
  }
}

// Product description separated panel (titled, distinct from the info column)
.pd-detail {
  margin-top: 45px;
  border: 1px solid @line;
  background: #fff;
  .pd-detail-title {
    position: relative;
    padding: 15px 22px;
    font: 600 17px/1.2 @head;
    color: #222;
    background: @gray-bg;
    border-bottom: 1px solid @line;
    text-transform: uppercase;
    &::before {
      content: ""; position: absolute; left: 0; top: 0; bottom: 0;
      width: 4px; background: @brand;
    }
  }
  .pd-detail-body { padding: 22px 24px 8px; }
  .pd-detail-body.article-body { font: 15px/30px @body; color: @text;
    p { margin-bottom: 16px; }
    img { display: block; margin: 18px auto; max-width: 100%; height: auto; }
    h2, h3 { margin: 22px 0 12px; font: 700 19px @head; color: #222; }
    ul { list-style: disc; padding-left: 24px; margin-bottom: 16px;
      li { list-style: disc; padding: 4px 0; } }
  }
}

.related-sec { padding: 50px 0 80px; background: @gray-bg; }

// =============================================================
//  16. 新闻列表 / 详情
// =============================================================
.news-list-sec { padding: 50px 0 70px; }
.news-list .news-card {
  background: #fff; margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  .excerpt { height: 48px; overflow: hidden; font: 14px/24px @body; color: @text-soft; }
}

.article-sec { padding: 50px 0 70px; }
.article {
  .article-head {
    text-align: center; border-bottom: 1px solid @line; padding-bottom: 20px; margin-bottom: 28px;
    h1 { font: 700 26px/1.45 @head; color: #222; }
    .meta { margin-top: 12px; font: 14px @body; color: @text-soft; span { margin: 0 10px; } }
  }
  .article-body {
    font: 15px/30px @body; color: @text;
    p { margin-bottom: 16px; }
    img { display: block; margin: 18px auto; max-width: 100%; height: auto; }
    h2, h3 { margin: 24px 0 12px; font: 700 20px @head; color: #222; }
    ul { list-style: disc; padding-left: 24px; margin-bottom: 16px;
      li { list-style: disc; padding: 4px 0; } }
  }
  .article-foot {
    margin-top: 36px; border-top: 1px solid @line; padding-top: 18px; font: 14px @body;
    .pn { display: block; padding: 6px 0; color: @text-soft; }
    a { color: @text-soft; &:hover { color: @brand; } }
    .back-list { display: inline-block; margin-top: 14px; padding: 10px 28px; background: @navy; color: #fff; font: 600 14px @head; text-transform: uppercase; &:hover { background: @brand-hover; color: #fff; } }
  }
}

// =============================================================
//  17. 联系我们 / 询盘表单
// =============================================================
.contact-sec { padding: 50px 0 70px; }
.contact-info .ci-item {
  display: flex; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid @line;
  > i { width: 46px; height: 46px; line-height: 46px; text-align: center; border-radius: 50%;
    background: @brand; color: #fff; font-size: 18px; margin-right: 16px; flex: 0 0 auto; }
  .ci-txt {
    h4 { font: 600 16px @head; color: #222; text-transform: uppercase; }
    p { margin: 6px 0 0; font: 14px/24px @body; color: @text-soft; word-break: break-word; }
  }
}
.map-box { margin-top: 26px; border: 1px solid @line;
  iframe { width: 100%; height: 340px; border: 0; display: block; } }

.inquiry-form {
  .form-row { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .form-field {
    margin-bottom: 18px; flex: 1 1 100%;
    &.half { flex: 1 1 calc(50% - 10px); }
    label { display: block; margin-bottom: 8px; font: 600 14px @head; color: #333; text-transform: uppercase;
      .req { color: @brand; } }
    input, textarea, select {
      width: 100%; padding: 12px 14px; border: 1px solid @line; background: #fff;
      font: 14px @body; color: @text;
      &:focus { outline: 0; border-color: @brand; }
    }
    textarea { height: 150px; resize: vertical; }
  }
  .form-msg {
    display: none; padding: 12px 16px; margin-bottom: 18px; border-radius: 4px; font: 14px @body;
    &.ok { display: block; background: #e7f6e9; color: #2e7d32; border: 1px solid #b6e0bd; }
    &.err { display: block; background: #fdecea; color: #c0392b; border: 1px solid #f5c6c1; }
  }
  .btn-submit {
    padding: 14px 46px; border: 0; background: @brand; color: #fff;
    font: 600 15px @head; text-transform: uppercase; cursor: pointer;
    &:hover { background: @brand-hover; color: #fff; }
  }
}

// =============================================================
//  18. 询盘车条目 / 轻提示
// =============================================================
.basket-list {
  .bk-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid @line;
    .bk-thumb { width: 70px; height: 70px; border: 1px solid @line; padding: 4px; flex: 0 0 auto;
      img { width: 100%; height: 100%; object-fit: contain; display: block; } }
    .bk-name { flex: 1; padding: 0 16px; font: 600 15px @head; color: @navy; }
    .bk-del { color: #c0392b; cursor: pointer; font-size: 16px; }
  }
  .bk-empty { padding: 30px 0; text-align: center; color: @text-soft; font: 15px @body; }
}
.inq-summary { margin-bottom: 26px; }

.gift-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: @navy; color: #fff; padding: 14px 26px; border-radius: 4px;
  font: 14px @body; z-index: 99999; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0; transition: .3s; pointer-events: none;
  &.show { opacity: 1; }
}

@media (max-width: 767px) {
  .inquiry-form .form-field.half { flex: 1 1 100%; }
  .pd-info h1 { font-size: 22px; }
  .pd-info .pd-spec th { width: 120px; }
  .article .article-head h1 { font-size: 22px; }
}

// =============================================================
//  19. 视频栏目
// =============================================================
.video-list-sec { padding: 50px 0 70px; }
.video-list .video-card {
  display: block; margin-bottom: 25px; padding: 10px;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: @ease;

  .pic {
    position: relative; display: block; overflow: hidden;

    img { width: 100%; height: 210px; object-fit: cover; display: block; transition: @ease; }
    .play {
      position: absolute; left: 50%; top: 50%; margin: -27px 0 0 -27px;
      width: 54px; height: 54px; border-radius: 50%;
      background: rgba(0,0,0,.45); color: #fff; font-size: 18px; line-height: 54px;
      text-align: center; transition: @ease; pointer-events: none;
    }
    .video-badge {
      position: absolute; left: 10px; top: 10px; padding: 3px 10px;
      background: rgba(0,0,0,.55); color: #fff; font: 600 12px @head; text-transform: uppercase;
    }
  }
  h3 {
    height: 46px; overflow: hidden; margin-top: 10px;
    font: 700 16px/1.45 @alt; color: #333;
  }
  time { display: block; padding-top: 6px; font: 14px @head; color: #646363; }

  &:hover {
    transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12);
    h3 { color: @brand; }
    .pic .play { background: @brand; }
    .pic img { transform: scale(1.05); }
  }
}

.video-embed {
  position: relative; overflow: hidden; margin: 10px 0 28px;
  padding-bottom: 56.25%; height: 0; background: #000;

  iframe, video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; display: block; }
  .video-missing {
    position: absolute; left: 0; top: 40%; width: 100%; margin: 0;
    text-align: center; color: #fff; font: 15px @body;
  }
}

.side-video-item {
  margin-bottom: 16px; padding: 8px; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);

  .thumb {
    position: relative; display: block; overflow: hidden;

    img { width: 100%; height: 150px; object-fit: cover; display: block; }
    .play {
      position: absolute; left: 50%; top: 50%; margin: -18px 0 0 -18px;
      width: 36px; height: 36px; border-radius: 50%;
      background: rgba(0,0,0,.45); color: #fff; font-size: 13px; line-height: 36px;
      text-align: center; transition: @ease; pointer-events: none;
    }
  }
  h3 {
    padding-top: 8px; font: 600 15px/1.4 @alt;
    a { color: #333; &:hover { color: @brand; } }
  }

  &:hover .thumb .play { background: @brand; }
}

@media (max-width: 767px) {
  .video-list .video-card .pic img { height: 190px; }
  .video-embed { margin-bottom: 20px; }
}
