@charset "UTF-8";
/*评论样式*/
.rating {
    position: relative;
    color: var(--main_btn);
    display: inline-block;
    margin-left: 2px;
    margin-bottom: 1rem;
}

.rating > div:first-child {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    text-overflow: clip;
    white-space: nowrap;
    overflow: hidden;
}

.rating > div:last-child {
    color: #ccc;
}

.rating > div > i {
    margin: -2px;
    color: orange;
    font-size: 1.5rem;
}

.product-detail .rating > div > i {
    font-size: 1.2rem;
}

.rating > div > i:last-child {
    margin-right: 0;
}

.grade {
    margin-top: 10px;
    width: auto;
    display: flex;
    justify-content: space-between;
    flex: 1;
    max-width: 35%;
    margin: 0 3.5rem;
}

.grade > div {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-direction: column;
}

.grade > div > span {
    margin: 5px 0;
}

.grade > div:first-child > span {
    width: auto;
    max-width: 140px;
    min-width: 50px;
    display: flex;
    align-items: center;
}

.grade > div:nth-child(2) {
    flex: 1;
    justify-content: space-around;
}

.grade > div:nth-child(2) > span {
    width: 100%;
    display: inline-block;
    height: 12px;
    border-radius: 10px;
    background-color: #e2e2e2;
    position: relative;
}

.grade > div:nth-child(2) > span > span {
    height: 100%;
    display: inline-block;
    border-radius: 10px;
    background-color: orange;
    position: absolute;
    top: 0;
    left: 0;
}

.grade > div:last-child > span {
    width: 40px;
    text-align: right;
}

.grade i {
    color: orange;
    margin-left: 5px;
}

.add-review-btn {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 0.5rem 2rem;
    height: 3rem;
    cursor: pointer;
}

.add-review-btn:hover,
.review .loading-review-btn > i:hover {
    border-color: var(--main_btn);
    background-color: var(--product_package_bg);
}

.review > div:first-child {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 0 7rem 3rem 7rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.review > div .rating-number {
    font-size: 3rem;
    color: orange;
    margin-bottom: 0.3rem;
    font-weight: 900;
}

.add-review-box {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 22;
    height: 100%;
    min-height: 100%;
    display: none;
}

.add-review-box > div:last-child {
    overflow-y: auto;
    position: relative;
    z-index: 22;
    width: 100%;
    height: 100%;
}

.add-review-box > div:last-child > div:last-child {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    padding: 50px 0;
    max-width: 760px;
    display: flex;
    min-height: 100vh;
}

.add-review-box > div:last-child > div:last-child > div:first-child {
    width: 160px;
    padding: 10px 15px;
    background-color: #f2f2f2;
}

.add-review-box > div:last-child > div:last-child > div:last-child {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #fff;
}

.close-add-review-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.23rem;
}

.close-add-review-box:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.comment-items {
    display: flex;
    margin-bottom: 15px;
    width: 100%;
    flex-direction: column;
    padding: 0 10px 0 15px;
    max-width: 100%;
    overflow: hidden;
}

.comment-items:first-child {
    display: flex;
    flex-direction: row;
    padding-top: 10px;
    justify-content: space-between;
}

.comment-items > div:first-child {
    margin-bottom: 5px;
    display: flex;
}

.comment-items > span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.3rem;
    font-weight: 600;
}

.comment-items > div:last-child {
    display: flex;
    padding: 5px 0;
}

.comment-items > div:last-child > div {
    width: calc((100% / 6) - 10px);
    margin-right: 10px;
    height: calc(((600px - 25px) / 6) - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 1px 1px #ccc;
    position: relative;
    overflow: hidden;
}

.comment-items > div:last-child > div > i {
    display: block;
}

.del-img {
    font-size: 1.5rem;
    position: absolute;
    bottom: -45%;
    left: 0;
    display: flex;
    height: max-content;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.reviews-img-item:hover > i {
    bottom: 0;
    transition: bottom 0.3s;
}

.comment-items > div:last-child > .add-reviews-img > i {
    margin: 0;
    font-size: 1.8rem;
}

.comment-items > div:last-child > i {
    padding-left: 3px;
}

.comment-items input,
.comment-items textarea {
    width: calc(100% - 20px);
    border-radius: 2px;
    border: 1px solid #b1b1b1;
    padding: 3px 7px;
    height: 35px;
}

.comment-items input:focus,
.comment-items textarea:focus {
    transition: box-shadow 0.3s;
    box-shadow: inset 1px 1px 2px 0 #ccc, inset -1px -1px 1px 0 #e0e0e0;
}

.comment-items textarea {
    height: 100px;
}

.comment-items input[type="file"] {
    display: none;
}

.comment-star {
    color: var(--main_btn);
}

.submit-btn {
    text-align: center;
    border-radius: 5px;
    border: 1px solid var(--border);
    padding: 10px 20px;
    margin: auto 20px 50px auto;
    width: 200px;
    background-color: var(--main_btn);
    color: var(--main_btn_text);
    cursor: pointer;
}

.selected-items {
    position: relative;
}

.selected-items:before {
    content: "";
    position: absolute;
    border: 10px solid transparent;
    border-left-color: #f2f2f2;
    left: 0;
    top: 0;
}

.upper-limit {
    font-size: 12px;
    margin-left: auto;
    margin-right: 20px;
    margin-top: auto;
    color: var(--sub_text);
}

.review .card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
    row-gap: 1rem;
    column-gap: 1rem;
    padding: 0;
}

.review .card-list .review-container {
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.05);
    border-radius: 0.8rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review .card-list .review-container .reviews-imgs {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-height: 100px;
}

.review .card-list .review-container .reviews-imgs .reviews-img-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.review .card-list .review-container .reviews-imgs div:not(div:first-child) {
    display: none;
}

.review .card-list .review-container .review-user-name {
    position: absolute;
    bottom: 0.5rem;
    background-color: #fff;
    max-width: calc(100% - 1rem);
    left: 0.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    padding: 1px 0.8rem 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);
}

.name-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.1rem;
    line-height: 2.1rem;
    width: 2.1rem;
    padding: 0.4rem 0.4rem;
    color: #fff;
    text-transform: uppercase;
    border-radius: 50%;
    margin: 0 1px;
}

.card-list > .review-container:nth-child(n) .name-label {
    background-color: rgb(88, 86, 214);
}

.card-list > .review-container:nth-child(2n) .name-label {
    background-color: rgb(255, 187, 3);
}

.card-list > .review-container:nth-child(3n) .name-label {
    background-color: rgb(230, 81, 50);
}

.card-list > .review-container:nth-child(4n) .name-label {
    background-color: rgb(94, 205, 98);
}


.review .card-list .review-container .review-user-name > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.review .card-list .review-container .reviews-item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem;
    text-align: left;
}

.review .card-list .review-container .reviews-item-content .content {
    line-height: 1.5;
    font-size: 1.1rem;
}

.card-list .rating {
    margin-bottom: 0.5rem;
}

.card-list .rating > div > i {
    font-size: 1rem;
}

.review .card-list .review-container .reviews-item-content > div:last-child {
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 0.5rem;
}

.review-time {
    margin-left: auto;
    color: #727272;
    font-size: 0.8rem;
}

.reply > i {
    font-size: 1.25rem;
    color: #b5b5b5;
}

.review .loading-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 0 2rem;
}

.review .loading-review-btn > i {
    font-size: 1.8rem;
    color: #d4d4d4;
    padding: 0.3rem 2rem;
    border-radius: 0.3rem;
    border: 1px solid #ccc;
}


/*评论回复样式*/
.show_all_reply {
    display: flex;
    align-items: center;
}

.show_all_reply > span {
    font-size: 0.8rem;
    color: #b5b5b5;
    padding: 0 0.3rem;
}

.reply > div:last-of-type {
    background-color: #f5f5f5;
}

.reply > span:last-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.fixed_box {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.all_reply_box {
    width: 100%;
    background-color: #fff;
    max-width: 768px;
    padding: 15px 10px 20px 10px;
    border-radius: 10px 10px 0 0;
    height: 80vh;
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.all_reply_box .fa-user-circle-o {
    color: #808080 !important;
    margin-right: 8px !important;
    font-size: 16px !important;
}

.all_reply_box > div:first-of-type {
    display: flex;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    position: relative;
    color: var(--main_text);
    margin-bottom: 5px;
}

.all_reply_box > div:first-of-type > span {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.all_reply_box > div:first-of-type > i {
    position: absolute;
    right: 5px;
}

.all_reply_box > div:nth-child(2) {
    padding: 0 10px;
    overflow-y: auto;
    flex: 1;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.user_reply {
    margin-bottom: 20px;
    text-align: left;
}

.user_reply > div:first-of-type > div:first-child {
    padding: 5px;
}

.user_reply > div:first-of-type span,
.reply_user_item > span {
    font-size: 14px;
    color: #9b9b9b;
}

.user_reply > div:first-of-type .fa-user-circle-o {
    font-size: 20px !important;
}

.review_content {
    margin: 5px 0;
    margin-left: 27px;
    font-size: 16px;
    color: var(--main_text);
}

.time-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 32px;
}

.time-data > .fa-commenting-o {
    font-size: 16px;
    color: var(--main_text);
}

.time-data > span:last-of-type {
    font-size: 12px !important;
    color: #ccc !important;
}

.other_reply {
    padding-left: 27px;
    margin-top: 15px;
}

.reply_item {
    margin: 20px 0;
}

.reply_user_item {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.reply_user_item > span:last-of-type {
    margin: 5px 0;
    font-size: 14px;
    padding-left: 27px;
    color: var(--main_text)
}

.reply_user_item > span:last-of-type > a:first-child {
    display: inline-block;
    color: #337ab7;
}

.is_official {
    display: flex;
    align-items: center;
    color: var(--important_text) !important;
    font-weight: 800;
}

.official_icon {
    display: inline-block;
    height: 18px;
    width: 18px;
    background-image: url(../shared/official.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
}

.add_reply_btn > i {
    font-size: 30px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    border-radius: 5px;
    width: 100%;
    margin: auto auto 0 auto;
    margin-top: 5px;
}

.add_reply_form {
    display: none;
}

#reply_data {
    width: calc(100% - 20px);
    max-width: 500px;
    background-color: #fff;
    padding: 15px;
    padding-top: 40px;
    border-radius: 10px;
    flex-direction: column;
    display: flex;
    position: relative;
}

#reply_data input, #reply_data textarea {
    all: unset;
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    padding: 3px 5px;
    box-sizing: border-box;
    border-radius: 5px;
}

#reply_data textarea {
    border-bottom: none;
    height: 120px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
    width: 100%;
}

#reply_data > i {
    position: absolute;
    top: 5px;
    right: 10px;
    display: flex;
}

.add_reply_img {
    height: 75px;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15px;
}

.add_reply_img_btn {
    display: flex;
    height: calc((100vw - 100px) / 6);
    max-width: 50px;
    max-height: 50px;
    width: calc((100% - 50px) / 6);
    justify-content: center;
    align-items: center;
    border: 1px dashed #ccc;
    margin-left: auto;
    margin-right: 5px;
}

.user_reply_img {
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.user_reply_img > div {
    max-height: 50px;
    max-width: 50px;
    width: calc((100vw - 100px) / 6);
    height: calc((100vw - 100px) / 6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    margin-left: 5px;
    position: relative;
}

.user_reply_img > div:first-child {
    margin-left: 5px;
}

.user_reply_img > div > i {
    font-size: 12px;
    display: flex;
    border-radius: 50%;
    border: 1px solid #989898;
    position: absolute;
    right: -6px;
    top: -6px;
    justify-content: center;
    align-items: center;
    color: #fff;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    width: 12px;
}

.user_reply_img img {
    max-width: 100%;
    max-height: 100%;
}

.submit_reply_btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 7px;
    background-color: var(--main_btn);
    color: var(--main_btn_text);
    cursor: default;
}

.load_reply_btn {
    color: #649dff;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
}

.load_reply_btn > span {
    font-weight: 700;
    font-size: 12px;
}

.load_reply_btn > i {
    font-weight: 700;
    font-size: 12px;
}

.user_reply + .load_reply_btn {
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 25px;
    padding: 5px 10px;
    font-size: 14px;
}

.show_page {
    background-color: #eeeeee !important;
}

.reviews {
    margin-left: 100px;
    flex: 1;
}

.review-item {
    display: none;
    margin-bottom: 20px;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
}

.add-visible-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-visible-item-btn {
    padding: 0px 40px;
    border: 2px solid var(--border);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #9c9c9c;
}

.add-visible-item-btn:hover {
    box-shadow: inset 0 0 2px 0 var(--border), 0 0 1px 0 var(--border);
}

.show-review {
    display: flex;
}


.user {
    display: flex;
    align-items: center;
}

.profile-picture {
    font-size: 34px;
    margin-right: 10px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #909090;
}

.profile-picture > img {
    border-radius: 50%;
}

.review-star {
    color: var(--main_btn);
    padding: 10px 10px 0 10px;
    font-size: 16px;
}

.review-content {
    padding: 10px;
    word-wrap: break-word;
    word-break: break-all;
}

.review-picture {
    display: flex;
}

.review-picture img {
    max-width: 100%;
}

.review-picture > div,
.reviews-img-item.shade > div {
    display: flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    margin: 10px;
    box-shadow: 0 0 0 1px var(--border);
    position: relative;
}

.reviews-img-item.shade > div {
    margin-top: auto !important;
    display: flex !important;

}

.review-picture.shade > div.active,
.reviews-img-item.shade > div.active {
    box-shadow: 0 0 0 2px var(--important_text);
}

.review-picture > i,
.reviews-img-item > i {
    display: none;
}

.review-picture.shade,
.reviews-img-item.shade {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    justify-content: center;
    padding: 10px;
    background-color: #000;
    z-index: 7;
    margin: 0 !important;
}

.review-picture.shade::before,
.reviews-img-item.shade:before {
    content: "";
    width: calc(100% - 20px);
    height: calc(100vh - 130px);
    position: absolute;
    top: 10px;
    left: 10px;
    background-image: var(--img_url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.review-picture.shade > i,
.reviews-img-item.shade > i {
    color: #dddddd;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 30px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-picture.shade > div {
    margin-top: auto;
}

.layui-icon-reply-fill {
    color: #b5b5b5;
}

@media (max-width: 1200px) {
    .review .card-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .comment-items > div:last-child > div {
        width: calc((100% / 4) - 5px);
        height: calc(((760px - 115px) / 4) - 5px);
        margin-right: 5px;
        margin-bottom: 10px;
    }

    .comment-items > div:last-child {
        flex-wrap: wrap;
    }

    .reviews-img-item > i {
        bottom: 0;
    }

    .add-review-box > div:last-child > div:last-child > div:first-child {
        width: 90px;
        padding: 7px;
    }

    .review-picture > div,
    .reviews-img-item.shade > div {
        width: 50px;
        height: 50px;
        margin: 10px 5px;
    }

    .review > div:first-child {
        flex-direction: column;
        padding: 0 3rem 3rem;
    }

    .review .card-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .grade {
        margin: 0 2rem;
        max-width: 60%;
    }

    .review > div:first-child > div {
        margin-bottom: 2rem;
        width: 100%;
    }

    .review > div:first-child > .add-review-btn {
        width: auto;
    }
}

@media (max-width: 760px) {
    .comment-items > div:last-child > div {
        width: calc((100% / 4) - 5px);
        height: calc(((100vw - 115px) / 4) - 5px);
        margin-right: 5px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .grade {
        max-width: 100%;
    }
}
