/* 
    文章栏目页 、 文章内容页
*/
.category-article{
    background-color: #f2f3f4;
}
.category-article .wrap{
    column-gap: 2rem;
}
.category-article .category-nav{
    background: #fff;
    border-radius: 5px;
    padding: max(1.5vw, 20px);
    height: fit-content;
    white-space: nowrap;
    position: sticky;
    top: calc( var(--nav-height) + 2rem );
}
.category-article .category-nav h3{
    padding-bottom: 5px;
    position: relative;
    border-bottom: 1px solid #eee
}
.category-article .category-nav .category-list{
    row-gap: .5rem;
}
.category-article .category-nav .category-list .item{

}
.category-article .category-nav .category-list .item a{
    transition: all 0.3s;
}
.category-article .category-nav .category-list .item:hover a,
.category-article .category-nav .category-list .item.active a{
    color: var(--color-blue);
    filter: invert(42%) sepia(99%) saturate(1241%) hue-rotate(186deg) brightness(96%) contrast(101%);
    font-weight: 700;
}


.category-article .list{
    width: 100%;
    display: grid;
    grid-gap: 2rem;
    row-gap: 2rem;
    grid-template-columns: var(--grid-list-column-3);
}
.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 p,
.article-post .article-detail img,
.article-post .article-detail div{
    max-width: 100%;
}
.article-post .article-detail img{
    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 .article-detail .bull{
    position: relative;
    padding-left: 1rem;
}
.article-post .article-detail .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: fixed;*/
    text-align: center;
    border-color: #cccccc52;
    width: 100%;
}
.article-post .article-detail table th,
.article-post .article-detail table td{
    padding: 5px 10px;
    min-width: 80px;
    max-width: 50%;
}
.article-post .article-detail table tr th:first-child, 
.article-post .article-detail table tr td:first-child{
    /*width: 10%;*/
    min-width: 40px;
    max-width: 120px;
    background-color: var(--color-blue);
    color: #fff;
    position: sticky;
    left: 0;
}
.article-post .article-detail table tr {
    background-color: #fff;
}
.article-post .article-detail table tr:nth-child(2n+1) {
    background-color: #65cad224;
}

.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: 1rem ;
    border: 1px solid #f1f1f1;
    border-radius: 5px;
    /* box-shadow: 3px 3px 10px 0px rgba(7, 62, 107, 0.11); */
}
.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 10px 0px rgba(7, 62, 107, 0.11);
}
.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%);
}

/* 产品详情页 */
.product-detail-top{
    background-color: #F6F6F6;
}
.product-detail-top .wrap{
    column-gap: 10%;
}
.product-detail-top .left{
    width: 45%;
}
.product-detail-top .left .swiper{
    position: relative;
    overflow: hidden;
}
.product-detail-top .left .swiper-slide img{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}
.product-detail-top .right{
    width: 45%;
}
.product-detail-top .right h1{
    line-height: 1.2;
}
.product-detail-top .right .product-btns {
    border-bottom: 1px solid var(--color-gray);
    padding-bottom: 2rem;
}
.product-detail-top .right .product-btns .btn-list{
    column-gap: 2rem;
    align-items: center;
}
.product-detail-top .right .product-btns .btn-item{
    border: 1px solid var(--color-gray);
    border-radius: 3px;
    padding: 7px 2rem;
    background-color: #fff;
    color: var(--color-gray);
    column-gap: 5px;
}
.product-detail-top .right .product-btns .btn-item.whatsapp{
    color: #25d366;
}
.sticky-nav{
    position: sticky;
    top: calc(var(--nav-height) * 0.85);
    z-index: 2;
}
.product-detail-nav{
    background-color: #ffffff;
    box-shadow: 0px 7px 8px 0px rgba(69, 69, 69, 0.06);
    width: 100%;
    overflow-x: auto;
}
.product-detail-nav .list{
    column-gap: 4rem;
}
.product-detail-nav .item>a{
    padding: 5px 2rem;
    position: relative;
    white-space: nowrap;
}
.product-detail-nav .item>a::after{
    position: absolute;
    content: '';
    border: 8px solid #333;
    border-bottom: 8px solid transparent;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}
.product-detail-nav .item.active>a::after{
    opacity: 1;
    visibility: visible;
}

.product-detail-part .title{
    background-color: #f7f7f7;
}
.product-detail-part .overview{
    justify-content: space-around;
    align-items: center;
}
.product-detail-specs .list{
    
}
.product-detail-specs .list .item{
    border-bottom: 1px solid #E5E5E5;
}
.product-detail-specs .list .item .param{
    padding: 1rem 2rem;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.product-detail-specs .list .item .param .toggle-submenu {
    width: 25px;
    height: 25px;
    position: relative;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2rem;
    background-color: #000;
}
.product-detail-specs .list .item .param .toggle-submenu:before,
.product-detail-specs .list .item .param .toggle-submenu:after {
    content: '';
    position: absolute;
    background-color: #fff;
    transition: all 0.1s ease;
}
.product-detail-specs .list .item .param .toggle-submenu:before {
    width: 2px;
    height: 13px;
    top: 6px;
    left: 12px;
}
.product-detail-specs .list .item .param .toggle-submenu:after {
    width: 13px;
    height: 2px;
    top: 11px;
    left: 6px;
}
.product-detail-specs .list .item.active .toggle-submenu:before {
    transform: rotate(90deg);
}
.product-detail-specs .list .item .value{
    display: none;
    padding: 1rem 2rem;
}