.more_blue {
    color: #108cda;
}

.p_product2 {
    width: 100%;
    position: relative;
    background-color: #f7f7f5;
    padding-top: 100px;
}

.p_product2 .top_card {
    width: 1200px;
    background-color: #fff;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;
    height: 280px;
    overflow: hidden;
}

.p_product2 .top_card .top_left,
.p_product2 .top_card .top_right {
    width: 50%;
    height: 100%;
}

.p_product2 .top_card .top_left {
    background-image: url(/images/product/2.png);
    background-size: 100% 100%;
    background-position: center;
    position: relative;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
    /* 图片数量为1时隐藏箭头 */
    @if (count($product_category->images) <= 1)
        display: none;
    @endif
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.p_product2 .top_card .top_right {
    box-sizing: border-box;
    padding: 0px 20px;
}

.p_product2 .top_card .c_content {
    font-size: 14px;
    color: #808180;
   /* min-height: 100px; */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



.p_product2 .top_card .btns {
    width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.p_product2 .top_card .btns button {
    width: 180px;
    padding: 7px 0;
    background-color: #108cda;
    color: #fff;
    margin-right: 20px;
    border-radius: 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.p_product2 .types_btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
    width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
   overflow-x: auto;
      scrollbar-width: none; 
    -ms-overflow-style: none;
}

.p_product2 .types_btn .types_item {
    margin-right: 20px;
    border: 1px #d8d8d8 solid;
    border-radius: 10px;
    padding: 5px 20px;
    color: #808180;
    margin: 0 20px;
     display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}
.p_product2 .types_btn::-webkit-scrollbar {
    display: none;
}
.p_product2 .types_btn .types_item:last-child {
    margin-right: 0px;
}

.p_product2 .types_btn .types_item:hover {
    background-color: #108cda;
    color: #fff;
}

.p_product2 .content_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-rows: repeat(3, 1fr); */
    grid-gap: 20px;
    width: 1200px;
    margin: 0 auto;
}

.p_product2 .content_list .list_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.p_product2 .content_list .list_item .tags {
    position: absolute;
    left: 20px;
    top: 20px;
    padding: 5px 10px;
    background-color: #108cda;
    color: #fff;
    border-radius: 5px;
}

.p_product2 .content_list .list_item .iamge {
    width: 300px;
    height: 300px;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
}

.p_product2 .content_list .list_item .content {
    width: 300px;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 0 0 20px 20px;
}

.p_product2 .content_list .list_item .content .title {
    font-weight: bold;
    font-size: 16px;
    color: #3c3e42;
    line-height: 23px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.p_product2 .content_list .list_item .content .dec {
    min-height: 85px;
    font-weight: 400;
    font-size: 14px;
    color: #808180;
    line-height: 28px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    /* 超出四行隐藏 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.p_product2 .content_list .list_item .content .btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.p_product2 .content_list .list_item .content .btns button {
    width: 45%;
    /* 不换行超出隐藏 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p_product2 .content_list .list_item .content .btns button:nth-child(1) {
    width: 101px;
    border: 1px #108cda solid;
    color: #108cda;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 20px;
    box-sizing: border-box;
}

.p_product2 .content_list .list_item .content .btns button:nth-child(1):hover {
    width: 101px;
    /* border: 1px #108cda solid; */
    color: #fff;
    padding: 10px 20px;
    background-color: #108cda;
    border-radius: 20px;
    box-sizing: border-box;
}

.p_product2 .content_list .list_item .content .btns button:nth-child(2) {
    background-color: #108cda;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
}

.p_product2 .pages_box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
    margin-top: 50px;
}

.p_product2 .pages_box .pages_start,
.p_product2 .pages_box .pages_item {
    margin-right: 20px;
    padding: 10px 20px;
    border: 1px #e5e5e5 solid;
    background-color: #fff;
    border-radius: 10px;
}

.p_product2 .pages_box .pages_end {
    padding: 10px 20px;
    border: 1px #e5e5e5 solid;
    background-color: #fff;
    border-radius: 10px;
}

.p_product2 .card_line {
    background-color: #fff;
    padding: 50px 0;
    box-sizing: border-box;
}

.p_product2 .card_line .card_coontent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-gap: 20px;
    width: 1200px;
    margin: 0 auto;
    margin-top: 16px;
}

.p_product2 .card_line .card_coontent .image_box {
    background-image: url(./images/矩形\ 89@2x.png);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.p_product2 .card_line .card_title {
    width: 1200px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 auto;
    padding: 20px 0;
}

.p_product2 .card_line .card_title .text {
    font-size: 24px;
    font-weight: bold;
}

.p_product2 .card_line .card_title .more {
    color: #808180;
}

.p_product2 .card_line .card_coontent .image_box .cover_box {
    width: 90%;
    height: 90%;
    background-color: rgba(225, 225, 225, 0.6);
    position: relative;
    left: 5%;
    top: -95%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    /* 核心添加：默认隐藏 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.p_product2 .card_line .card_coontent .image_box:hover .cover_box {
    opacity: 1;
    visibility: visible;
}

.p_product2 .card_line .card_coontent .image_box .flxd {
    width: 90%;
    height: 70%;
    position: absolute;
    left: 5%;
    top: 30%;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.p_product2 .card_line .card_coontent .image_box .cover_box .add {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.p_product2 .card_line .card_coontent .image_box .cover_box .arrow {
    background-color: #fff;
    width: 100%;
    max-height: 80px;
    border-radius: 10px;
    /* 两行隐藏 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px;
    position: relative;
    font-weight: bold;
}

.p_product2 .card_line .card_coontent .image_box .cover_box .arrow .icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #108cda;
    border-radius: 10px 0 0 10px;
}
.p_product2 .types_btn .types_item.active {
    background-color: #108cda; 
    color: #fff; 
    border-color: #108cda; 
}

.p_product2 .types_btn .types_item.active:hover {
    background-color: #108cda !important;
    color: #fff !important;
}
.p_product2 .content_list .list_item .view {
    position: absolute;
    top: 25%;
    left: 38%;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.67);
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
     opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease; 
}
.p_product2 .content_list .list_item:hover .view {
    opacity: 1;
    pointer-events: auto; 
}
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #B6B9C4;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator-dot.active {
    background: #108CDA;
    width: 20px; 
    border-radius: 5px; 
}