
/* =========================================================
   VIIcode Blog Home
   /index.php?route=blog/home
========================================================= */

body.blog-home {
    background: #f7f7f7;
}



/* =========================
   Breadcrumb
========================= */

body.blog-home .breadcrumb {
    margin-bottom: 0;
}

body.blog-post{
  background:#f7f7f7;
}
.blog-page{
    width: 1440px;
    margin: 0 auto;
    max-width: calc(100% - 96px);
}

.blog-post-wrap{
    max-width: 900px;
    margin: 50px auto;
    padding: 50px 50px 80px;
    background: #fff;
}

.title-wrapper{
  text-align:center;
  margin-bottom:40px;
}

.title-wrapper h1{
  margin:0 0 15px;
  font-size:36px;
  line-height:1.4;
  font-weight:400;
}

.title-wrapper .description{
  font-size:15px;
  line-height:1.8;
  color:#777;
}

.post-body{
  font-size:16px;
  line-height:2;
  color:#444;
}

.post-body h1,
.post-body h2{
  margin:40px 0 15px;
  font-size:26px;
  line-height:1.5;
}

.post-body h3{
  margin:30px 0 12px;
  font-size:20px;
}

.post-body p{
  margin-bottom:20px;
}

.post-body img{
  display:block;
  max-width:100% !important;
  height:auto !important;
  margin:30px auto;
}

.post-body table{
  width:100% !important;
  max-width:100%;
}


/*blog-post*/
.vii-related-products .widget-title{
    margin: 0 0 30px;
    color: #1E1E1E;
    font-size: 30px;
    font-weight: 500;
    line-height: 43px;
    text-align: center;
    display: flex;
    justify-content: center;
}
.vii-related-products {
    width: 1440px;
    max-width:100%;
    margin: 100px auto;
    box-sizing: border-box;
}

.vii-add-bag{
    display: inline-flex;
    width: 146px;
    min-width: 146px;
    height: 44px;
    margin: 0;
    align-items: center;
    justify-content: center;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 44px;
    text-shadow: none;
}

.vii-related-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}

.vii-related-item {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.vii-related-item .product-thumb {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    align-items: center;
    text-align: center;
}

/* 商品图片 */

.vii-related-item .product-thumb .image {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 16px;
  overflow: hidden;
  background: #FFF;
}

.vii-related-item .product-thumb .image a {
  display: block;
  width: 100%;
  height: 100%;
}

.vii-related-item .product-thumb .image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .vii-related-item .product-thumb:hover .image img {
    transform: scale(1.035);
  }
}

/* 商品文字 */

.vii-related-item .caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0 !important;
  padding: 0 !important;
  color: #1E1E1E;
}

.vii-related-item .product-name {
  min-height: 0 !important;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.vii-related-item .product-name a {
  display: block;
  color: #1E1E1E;
  text-decoration: none;
}

.vii-related-item .vii-product-description {
  margin: 0 0 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.55;
}

.vii-related-item .price {
  margin: 0 0 16px;
  color: #1E1E1E;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

/* 购买按钮改成下划线文字 */

.vii-related-item .product-button-wrapper {
  margin-top: auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}


.vii-more-product{
    display: none;;
}


@media(max-width:991px){
    .vii-related-products{
    max-width: 100%;
}
}
@media(max-width:767px){

  .blog-post-wrap{
    padding:30px 15px 50px;
  }
  .blog-post-wrap{
    margin: 0px auto;
      
  }
    .vii-related-products {
    margin: 100px auto 50px;
    width: 100%;
  }

  .vii-related-products .widget-title {
        margin-bottom: 21px;
        font-size: 24px;
        text-align: center;
        line-height: 34px;
  }
  .vii-related-item .vii-buy-now {
  display: inline-block;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0;
  padding: 0 0 3px !important;
  border: 0 !important;
  border-bottom: 1px solid #1E1E1E !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1E1E1E !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}
  .vii-add-bag{
      display: inline-flex;
        margin: 0;
        align-items: center;
        justify-content: center;
        color: #1E1E1E;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
        border: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 17px;
        padding: 0;
        text-shadow: none;
        text-decoration: underline;
        text-underline-offset: 4px;
        text-decoration-thickness: 1px;
        width: auto;
        min-width: 100%;
        height: auto;
  }

  .vii-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 25px 16px !important;
  }

  .vii-related-item .product-thumb .image {
    margin-bottom: 15px;
  }

  .vii-related-item .product-thumb .image img {
    padding: 6px;
  }

  .vii-related-item .product-name {
        margin-bottom: 5px;
        font-size: 14px;
        line-height: 17px;
  }

  .vii-related-item .vii-product-description {
        margin-bottom: 14px;
        font-size: 12px;
        line-height: 14px;
  }
  

  .vii-related-item .price {
    margin-bottom: 31px;
    font-size: 12px;
    line-height: 14px;
  }

  .vii-related-item .vii-buy-now {
    font-size: 14px;
    line-height: 17px;
  }
  .vii-more-product{
    display: block;
    margin-top: 30px;
    color: #1e1e1e;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
  }

    /* 只在手机端切换图片 */
  .vii-feature-image-pc,.vii-member-image-pc{
    display: none !important;
  }

  .vii-feature-image-mobile,.vii-member-image-mobile{
    display: block !important;
  }


    .vii-product-page {
        max-width: none;
        margin: 0;
        padding: 16px 0 0 0;
    }
     .vii-product-hero,.vii-product-info,.vii-benefit-section,.vii-active-section,.vii-routine-section,.vii-member-banner{
         width: calc(100% - 32px);
         margin: 0 auto;
     }       
     .vii-core-section{
         padding: 0px 16px;
     }

    .vii-product-hero {
        display: block;

        width: 100%;
        max-width: none;

        margin: 0;
    }


    /* Gallery */

    .vii-product-media {
        width: 100%;
    }

    .vii-main-gallery {
        width: 100%;
        height: auto;

        aspect-ratio: 1 / 1;

        background: #f5f5f5;
    }

    .vii-main-gallery .swiper-slide {
        height: auto;

        aspect-ratio: 1 / 1;
    }

    .vii-main-image {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }

  .title-wrapper{
    text-align:left;
    margin-bottom:30px;
  }

  .title-wrapper h1{
    font-size:26px;
  }

  .post-body{
    font-size:15px;
    line-height:1.9;
  }

  .post-body h1,
  .post-body h2{
    font-size:21px;
    margin-top:32px;
  }

}


/* =========================
   Page
========================= */

.blog-page {
    padding: 64px 0 10px;
}

.blog-page-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}


/* =========================
   Header
========================= */

.blog-page-header {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

body.blog-home #content .blog-page-title {
    margin: 0 0 16px;
    padding: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: .04em;
    color: #222;
}

body.blog-home #content .blog-page-title:after {
    display: none;
}

.blog-page-title span {
    background: transparent !important;
}

.blog-page-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: #777;
}


/* =========================
   Grid
========================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 28px;
    width: 100%;
}


/* =========================
   Card
========================= */

.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
}


/* =========================
   Image
========================= */

.blog-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eee;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    transition: transform .55s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.025);
}


/* =========================
   Content
========================= */

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 25px 24px 26px;
}
.blog-card-body a{
    color: #1E1E1E;
}

/* Meta */

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
    min-height: 20px;
    margin-bottom: 11px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .03em;
    color: #999;
}

.blog-card-category a {
    color: #777;
    text-decoration: none;
}

.blog-card-category a:hover {
    color: #222;
}


/* =========================
   Title
========================= */

body.blog-home #content .blog-card-title {
    margin: 0 0 14px;
    padding: 0;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: .01em;
}

body.blog-home #content .blog-card-title a {
    display: -webkit-box;
    height: auto;
    min-height: 62px;
    overflow: hidden;

    color: #222;
    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.blog-home #content .blog-card-title a:hover {
    color: #666;
}


/* =========================
   Description
========================= */

.blog-card-description {
    display: -webkit-box;
    margin: 0 0 24px;

    overflow: hidden;

    font-size: 14px;
    line-height: 1.9;
    color: #777;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* =========================
   Read More
========================= */

body.blog-home #content .blog-card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    margin-top: auto;
    padding: 0 0 5px;

    border: 0;
    border-bottom: 1px solid #555;
    border-radius: 0;

    background: transparent;

    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .08em;
    color: #333;

    text-decoration: none;

    transition:
        color .25s ease,
        border-color .25s ease;
}

body.blog-home #content .blog-card-link:hover {
    color: #888;
    border-color: #aaa;
    background: transparent;
}

.blog-card-arrow {
    margin-left: 8px;
    font-size: 15px;
    transition: transform .25s ease;
}

.blog-card-link:hover .blog-card-arrow {
    transform: translateX(4px);
}


/* =========================
   Pagination
========================= */

.blog-pagination {
    margin-top: 60px;
}

body.blog-home .pagination {
    margin: 0;
}
/* =========================
   Blog 分类导航
========================= */

.blog-category-nav{
    display:flex;
    justify-content:center;
    gap:14px;
    margin:32px 0 42px;
    flex-wrap:wrap;
}

.blog-category-nav a{
    min-width:120px;
    padding:9px 18px;
    border:1px solid #ddd;
    color:#333;
    font-size:14px;
    line-height:1.4;
    text-align:center;
    text-decoration:none;
    background:#fff;
}

.blog-category-nav a:hover,
.blog-category-nav a.is-active{
    border-color:#222;
    color:#222;
    text-decoration:none;
}


/* 手机端 */
@media(max-width:767px){

    .blog-category-nav{
        justify-content:flex-start;
        flex-wrap:nowrap;
        gap:10px;
        margin:24px 0 30px;
        overflow-x:auto;
        padding-bottom:5px;
    }

    .blog-category-nav a{
        min-width:auto;
        flex:0 0 auto;
        padding:8px 16px;
        font-size:13px;
        white-space:nowrap;
    }

}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1199px) {

    .blog-page {
        padding: 55px 0 75px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {

    .blog-page {
        padding: 38px 0 60px;
        max-width: calc(100% - 32px);
    }

    .blog-page-header {
        margin-bottom: 30px;
        text-align: left;
    }

    body.blog-home #content .blog-page-title {
        margin-bottom: 10px;
        font-size: 28px;
        line-height: 1.3;
    }

    .blog-page-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card {
        border-radius: 2px;
    }

    .blog-card-image {
        aspect-ratio: 16 / 10;
    }

    .blog-card-body {
        padding: 21px 18px 23px;
    }

    body.blog-home #content .blog-card-title {
        font-size: 18px;
        line-height: 1.55;
    }

    body.blog-home #content .blog-card-title a {
        min-height: 0;
    }

    .blog-card-description {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.8;

        -webkit-line-clamp: 3;
    }

    .blog-pagination {
        margin-top: 40px;
    }

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 420px) {

    .blog-page {
        padding-top: 32px;
    }

    body.blog-home #content .blog-page-title {
        font-size: 25px;
    }

    .blog-card-body {
        padding: 18px 16px 21px;
    }

}