/* 
    文章栏目页 、 文章内容页
*/
.category-article .title .en{
    text-transform: uppercase;
}
.category-article .article-recommend{
    box-shadow: 1px 1px 10px #99999912;
    transition: all 0.3s ease-in-out;
}
.category-article .article-recommend:hover{
    box-shadow: 1px 1px 10px #99999954;
}
.category-article .article-recommend .img{
    width: 60%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
}
.category-article .article-recommend .img img{
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}
.category-article .article-recommend .text{
    width: 40%;
    background-color: #F9FAFC;
    padding: 3rem;
}
.category-article .article-recommend .text .title{
    margin-top: auto;
}
.category-article .article-list .list{
    width: 100%;
    display: grid;
    grid-gap: 3rem;
    row-gap: 3rem;
    grid-template-columns: var(--grid-list-column-3);
}
.category-article .article-list .item{
    border: 1px solid #f7f9f9;
    box-shadow: 1px 1px 10px #99999912;
    transition: all 0.3s ease-in-out;
}
.category-article .article-list .item:hover{
    box-shadow: 1px 1px 10px #99999954;
}
.category-article .article-list .item>a{
    height: 100%;
}
.category-article .article-list .item .img{
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.category-article .article-list .item .img img{
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}
.category-article .article-list .item .text{
    padding: 2rem 1rem 1rem;
    width: 100%;
    flex-grow: 1;
    background-color: #f9fafc;
}
.category-article .article-list .item .text .title{
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.4em;
    height: 2.9em;
    margin-bottom: .5rem;
}
.category-article .article-list .item .text .tags{
    font-size: 0.85em;
    margin-top: auto;
    /* text-align: right; */
}
.pagination-warp .screen-reader-text{
    display: none;
}
.pagination-warp .nav-links{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
} 
.pagination-warp .nav-links .page-numbers{
    font-size: 1.1rem;
    width: 2rem;
    aspect-ratio: 1 / 1;
    /* border: 1px solid; */
    text-align: center;
    line-height: 2rem;
    border-bottom: 1px dashed transparent;
    transition: all 0.2s;
} 
.pagination-warp .nav-links span.current,
.pagination-warp .nav-links .page-numbers:hover{
    border-bottom: 1px dashed #ccc;
}
/* 文章页面 */
.article-post .bread-crumbs a{
    margin-inline-end:6px;
    transition: all 0.2s ease-in-out;
    border-bottom: 1px dashed transparent;
    color: var(--color-gray);
}
.article-post .bread-crumbs a:hover{
    border-bottom: 1px dashed var(--color-blue);
}

.article-post .bread-crumbs a::after{
    content: "/";
    margin-inline-start: 5px;
}
.article-post .bread-crumbs a:last-child::after{
    content: "";
}
.article-post .content{
    flex-grow: 1;
}
.article-post .content .article-title{
    padding-bottom: 1rem;
    border-bottom: 1px solid #D8D8D8;
}
.article-post .content .article-title .author{
    column-gap: 1rem;
}
/* 文章内容默认样式定义 */
.article-post .article-detail a{
    color: var(--color-blue);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    margin-inline: 1px;
}
.article-post .article-detail a:hover{
    text-decoration: underline;
}
.article-post .article-detail h1,
.article-post .article-detail h2,
.article-post .article-detail h3,
.article-post .article-detail h4,
.article-post .article-detail h5,
.article-post .article-detail h6,
.article-post .article-detail ul,
.article-post .article-detail p{
    margin-top: 0.6em;
    margin-bottom: 0.6em;
    word-wrap: break-word;
    letter-spacing: .5px;
}
.article-post .article-detail h1{
    font-size: 2rem;
}
.article-post .article-detail h2{
    font-size: 1.65rem;
}
.article-post .article-detail h3{
    font-size: 1.3rem;
}
.article-post .article-detail h4{
    font-size: 1.25rem;
}
.article-post .article-detail h5{
    font-size: 1.1rem;
}
.article-post .article-detail h6{
    font-size: 1rem;
}
.article-post .article-detail video,
.article-post .article-detail img{
    max-width: 100%;
}
.article-post .article-detail video.aligncenter,
.article-post .article-detail img.aligncenter{
    margin: 1rem auto;
    border-radius: 5px;
    height: auto!important;
    display: block;
}
.article-post .article-detail ol,
.article-post .article-detail ul{
    /*list-style-type: unset;*/
}

.article-post .wp-block-image .aligncenter, 
.article-post .wp-block-image .alignleft, 
.article-post .wp-block-image .alignright, 
.article-post .wp-block-image.aligncenter, 
.article-post .wp-block-image.alignleft, 
.article-post .wp-block-image.alignright {
    display: table;
    width: 100%;
}
p.bull{
    position: relative;
    padding-left: 1rem;
}
p.bull::before{
    position: absolute;
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 5px;
    background-color: var(--color-black);
    left: 0;
    top: 0.65em;
}

.article-post .article-detail .table{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.article-post .article-detail table{
    border-collapse: collapse;
    table-layout: auto;
    text-align: center;
    width: 100%;
    position: relative;
    border: 1px solid #ddd;
}
.article-post .article-detail table th,
.article-post .article-detail table td{
    padding: 6px 10px;
    min-width: 80px;
    max-width: 50%;
    border: 1px solid #ddd;
}
.article-post .article-detail table tr th:first-child, 
.article-post .article-detail table tr td:first-child{
    white-space: nowrap; 
    width: 1%;
    max-width: 160px;
    /*background-color: var(--color-blue);*/
    font-weight: 500;
}

.article-post .article-detail table tr {
    background-color: #f5f5f5;
}
.article-post .article-detail table tr:nth-child(2n+1) {
    background-color: #fff;
}
.article-post .article-detail table thead tr{
    background-color: #f5f5f5 !important;
}

/* =========================
  wp图集改成小红书、微信贴图的效果
   ========================= */

/* 外层容器 */
.article-post .wp-gallery-carousel-wrap {
  position: relative;
  display: block;

  width: 100%;
  max-width: 540px;
  min-width: 0;

  margin-inline: auto;

  overflow: hidden;
  box-sizing: border-box;
}

/* 防止 WordPress 外层 flex 把轮播撑坏 */
.article-post .wp-block-group.is-layout-flex > .wp-gallery-carousel-wrap {
  flex: 0 1 540px;
  width: 100%;
  min-width: 0;
}

/* Gallery 滚动容器 */
.article-post
.wp-gallery-carousel-wrap
.wp-block-gallery.has-nested-images {
  display: flex !important;
  flex-flow: row nowrap !important;

  justify-content: flex-start !important;
  align-items: stretch !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  gap: 0 !important;

  margin: 0 !important;
  padding: 14px 0 34px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;

  cursor: grab;
  user-select: none;

  /* 手机允许页面上下滚动 */
  touch-action: pan-y;
}

.article-post
.wp-gallery-carousel-wrap
.wp-block-gallery.has-nested-images::-webkit-scrollbar {
  display: none;
}

/* 鼠标拖拽期间 */
.article-post
.wp-gallery-carousel-wrap
.wp-block-gallery.has-nested-images.is-dragging {
  cursor: grabbing;

  scroll-behavior: auto !important;

  /* 拖拽过程中先关闭吸附，松手后再自动归位 */
  scroll-snap-type: none !important;
}

/* 每一张图占一屏 */
.article-post
.wp-gallery-carousel-wrap
.wp-block-gallery.has-nested-images
> .wp-block-image {
  display: block !important;

  position: relative;

  flex: 0 0 100% !important;

  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 18px 10px !important;

  box-sizing: border-box !important;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* 图片 */
.article-post
.wp-gallery-carousel-wrap
.wp-block-gallery.has-nested-images
> .wp-block-image
> img {
  display: block;

  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;

  aspect-ratio: 3 / 4;
  object-fit: cover;

  margin: 0 !important;
  padding: 8px;

  box-sizing: border-box;

  border-radius: 18px;
  background: #fff;

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.12);

  cursor: inherit;

  user-select: none;
  -webkit-user-select: none;

  -webkit-user-drag: none;
}

/* 胶带效果 */
.article-post
.wp-gallery-carousel-wrap
.wp-block-gallery.has-nested-images
> .wp-block-image::before {
  content: "";

  position: absolute;

  top: 2px;
  right: 44px;

  width: 54px;
  height: 20px;

  background: rgba(255, 235, 150, 0.85);

  border-radius: 3px;

  transform: rotate(8deg);

  z-index: 2;

  pointer-events: none;

  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08);
}

/* =========================
   左右按钮
   ========================= */

.article-post .wp-gallery-carousel-btn {
  position: absolute;

  top: 50%;
  z-index: 10;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 0;
  border-radius: 999px;

  color: #333;

  background: rgba(255, 255, 255, 0.92);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.16);

  cursor: pointer;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;

  line-height: 1;

  box-sizing: border-box;

  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* 解决 ? ? 看起来偏下 */
.article-post .wp-gallery-carousel-btn span {
  display: block;
  line-height: 1;

  transform: translateY(-2px);
}

.article-post .wp-gallery-carousel-btn:hover:not(:disabled) {
  background: #fff;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.2);
}

.article-post .wp-gallery-carousel-btn:active:not(:disabled) {
  transform:
    translateY(-50%)
    scale(0.94);
}

.article-post .wp-gallery-carousel-prev {
  left: 8px;
}

.article-post .wp-gallery-carousel-next {
  right: 8px;
}

/* 第一张 / 最后一张时禁用对应按钮 */
.article-post .wp-gallery-carousel-btn:disabled,
.article-post .wp-gallery-carousel-btn.is-disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

/* =========================
   圆点
   ========================= */

.article-post .wp-gallery-carousel-dots {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 8px;

  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;
}

.article-post .wp-gallery-carousel-dots button {
  display: block;

  width: 6px;
  height: 6px;

  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 999px;

  background: #d7d7d7;

  cursor: pointer;

  transition:
    width 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.article-post
.wp-gallery-carousel-dots
button:hover {
  transform: scale(1.25);
}

.article-post
.wp-gallery-carousel-dots
button.is-active {
  width: 18px;

  background: #ff2442;
}

/* =========================
   手机端
   ========================= */

@media (max-width: 768px) {

  .article-post .wp-gallery-carousel-wrap {
    max-width: 100%;
  }

  .article-post
  .wp-gallery-carousel-wrap
  .wp-block-gallery.has-nested-images
  > .wp-block-image {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .article-post .wp-gallery-carousel-btn {
    width: 38px;
    height: 38px;

    font-size: 28px;
  }

  .article-post .wp-gallery-carousel-prev {
    left: 6px;
  }

  .article-post .wp-gallery-carousel-next {
    right: 6px;
  }
}


.article-post .article-tags{
    justify-content: end;
    color: var(--color-gray);
    column-gap: 5px;
}
.article-post .article-tags>a{
    color: var(--color-gray);
    transition: all 0.2s ease-in-out;
}
.article-post .article-tags>a:hover{
    color: var(--color-blue);
}
.article-post .article-nextprev{
    padding-top: 2rem;
    border-top: 1px dashed var(--color-blue);
    row-gap: 8px;
}
.article-post .article-nextprev a {
    transition: all 0.2s ease-in-out;
    border-bottom: 1px dashed transparent;
}
.article-post .article-nextprev a:hover {
    border-bottom: 1px dashed var(--color-blue);
    color: var(--color-blue);
}
.article-post .sidebar{
    width: 100%;
    max-width: 358px;
    margin-left: 3vw;
    flex-shrink: 0;
}
.article-post .sidebar .sticky{
    position: sticky;
    top: var(--nav-height);
    top:  calc(var(--nav-height) + 5px ) ;
}
.article-post .sidebar .hot-articles {
    padding: 2rem;
    box-shadow: 3px 3px 15px 0px rgb(0 158 173 / 12%);
    border-radius: 10px;
}
.article-post .sidebar .hot-articles .list{
    row-gap: 10px;
}
.article-post .sidebar .hot-articles .item{
    column-gap: 5px;
    align-items: baseline;
}
.article-post .sidebar .hot-articles .item a{
    transition: all 0.2s ease-in-out;
    line-height: 1.3;
    /* border-bottom: 1px dashed transparent; */
}
.article-post .sidebar .hot-articles .item a:hover{
    /* border-bottom: 1px dashed var(--color-blue); */
    color: var(--color-blue);
}
.article-post .sidebar .hot-labels {
    padding: 2rem;
    box-shadow: 3px 3px 15px 0px rgb(0 158 173 / 12%);
    border-radius: 10px;
}
.article-post .sidebar .hot-labels .list{
    row-gap: 8px;
    column-gap: 4px;
}
.article-post .sidebar .hot-labels .item{
    box-sizing: border-box;
    background-color: transparent;
    border-radius: 2rem;
    /*color: #fff;*/
    /*opacity: 0.7;/*/
    width: calc( (100% - 8px) / 3);
    font-size: calc( (12 / 14 ) * var(--font-size-root) );
    overflow: hidden;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-post .sidebar .hot-labels .item:nth-child(5n+1){
    color: #f39f3d;
    background-color: #f39f3d2b;
}
.article-post .sidebar .hot-labels .item:nth-child(5n+2){
    color: #ea4c31;
    background-color: #ea4c312b;
}
.article-post .sidebar .hot-labels .item:nth-child(5n+3){
    color: #5a2e8f;
    background-color: #5a2e8f2b;
}
.article-post .sidebar .hot-labels .item:nth-child(5n+4){
    color: #00a549;
    background-color: #00a5492b;
}
.article-post .sidebar .hot-labels .item:nth-child(5n+5){
    color: #00a5ad;
    background-color: #00a5ad2b;
}
/* 相关产品 */
.article-related-product{
    background-color: #f7f7f7;
    overflow-x: hidden;
}
.article-related-product .related-product-container {
    position: relative;
}
.article-related-product .list {
    row-gap: 2rem;
    width: 100%;
    column-gap: 2rem;
}
.article-related-product .list .item {
    width: calc((100% - 6rem) / 4);
    background-color: #fff;
}
.article-related-product .related-product-container .swiper-button-next,
.article-related-product .related-product-container .swiper-button-prev {
    color: var(--color-blue);
    position: absolute;
    right: 0;
    left: unset;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 40px;
    background-color: #f5f5f7;
    transform: translate(100%, 150%);
    border: 1px solid var(--color-blue);
    box-shadow: 0px 1px 10px #00000030;
}
.article-related-product .related-product-container .swiper-button-next:after,
.article-related-product .related-product-container .swiper-button-prev:after {
    font-size: 1rem;
}
.article-related-product .related-product-container .swiper-button-prev,
.article-related-product .related-product-container .swiper-rtl .swiper-button-next {
    transform: translate(calc(100% - 2rem), -150%);

}
.article-related-product .related-product-container .swiper-button-next,
.article-related-product .related-product-container .swiper-rtl .swiper-button-prev {
    transform: translate(calc(100% + 2rem), -150%);
}
/*相册轮播*/


.case-contact-form .contact-form{
    max-width: 980px;
    margin-inline: auto;
    width: 100%;
}