﻿/*瀑布流*/
.jdgm-all-reviews-page__wrapper {
  margin: 0 auto;
  width: 90% !important;
  padding: 50px 3px;
}
.reviews_header *{
  margin: 0;
  line-height: 1.4;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.reviews_header{
  padding-bottom: 24px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.reviews_header .reviews_summary{width:30%;display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;}
.reviews_header .reviews_summary .out-of .rating{
  margin-top: -4px;
  margin-right: 8px;
}
.reviews_header .reviews_middle{width:40%;display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(0,0,0,0.1);
}
.reviews_header .reviews_write {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(0,0,0,0.1);
}
.reviews_persent *{float:left;}
.reviews_persent{
  margin-top: 10px;
  height: 14px;
  cursor: pointer;
}
.reviews_middle .reviews_persent:first-child{margin-top:0px;}
.reviews_persent:hover *{
  opacity: 0.8;
}
.reviews_persent .rating{
   margin-top: -7px;
}
.reviews_persent .line{
    margin: 0 24px;
    width: 140px;
    height:100%;
    background: rgba(224,224,224,0.5);
    border-radius:10px;
  }
.reviews_persent .line .line-child {
  border-radius: 10px;
  background-color: #000;
  height: 100%;
}
.reviews_persent .frequency{
  margin: 0;
  width: 24px;
  text-align: left;
  color: #7b7b7b;
  margin-top: -2px;
  font-size: 80%;
}
.reviews_clear_filter{
  display: none;
  margin-top: 16px;
  margin-bottom: 18px;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.reviews_middle .jdgm--active *{
  opacity: 0.8;
}
.jdgm-write-rev-link{
  color: white;
  background: #000;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border-radius: 25px;
  text-align: center;
}
.jdgm-write-rev-link:hover{
  opacity: 0.8;
  color: white;
}

@media (max-width: 768px) {
    .reviews_header{display:block;}
    .reviews_header .reviews_summary{
        width:100%;
        margin-bottom:24px;
    }
    .reviews_header .reviews_middle{
        width:100%;
        margin-bottom:24px;
    }
    .reviews_header .reviews_write{
        width:100%;
        margin-bottom:24px;
    }
}


.reviews_actions{
  background-color: white;
  box-shadow: 0px 4px 16px rgba(0,0,0,0.1);
  border-radius: 10px;
  margin: 24px 0;
  padding: 0 16px;
}
.reviews_actions .jdgm-subtab{
  padding: 10px 0;
  border-bottom: none;
}
.reviews_actions .jdgm-subtab__name {
  display: inline-block;
  padding: 8px 16px;
  cursor: pointer;
  color: #404446;
  border-radius: 25px;
  background: #c7cacf;
}
.reviews_actions .jdgm-subtab__name:hover{
  text-decoration: none;
  opacity: 0.8;
}
.reviews_actions .jdgm-subtab__name.jdgm--active {
  pointer-events: none;
  text-decoration: none;
  background-color: #272b2f;
  color: #fff;
}
.reviews_actions .jdgm-sort-dropdown {
  padding: 10px 0;
  font-size: 14px;
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.reviews_actions .layui-icon-down{
  font-size: 12px;
}

.reviews_form_wrapper{
  display: none;
  padding: 24px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.jdgm-form {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 600px;
}
.jdgm-form__title {
  margin-bottom: 16px;
  font-size: 150%;
  font-weight: bold;
  text-align: center;
  color: #000;
}
.jdgm-form__fieldset:not(:last-of-type), .jdgm-form__fieldset-actions {
  margin-bottom: 24px;
}
.jdgm-form .jdgm-form__fieldset > label {
  display: block;
  margin-bottom: 8px;
  text-align: center;
  color: #000;
  font-weight: 400;
}
.jdgm-form .jdgm-form__fieldset label[for] {
  cursor: pointer;
}
.jdgm-form input[type="text"], .jdgm-form input[type="email"], .jdgm-form input[type="url"], .jdgm-form textarea {
  padding: 8px 16px;
  width: 100%;
  border: 1px solid #e4e4e4;
  border-radius:25px;
}
.jdgm-form #Rating{
  text-align: center;
  width: 100%;
}
.jdgm-form #Rating .layui-rate{padding:0px;}
.jdgm-form #Rating i.layui-icon {
  color: #ff4500;
  font-size: 24px;
}

#upLoadBtn{
  width: 130px;
  height: 130px;
}
#upLoadBtn i{font-size: 45px;}
.jdgm-picture-fieldset__box {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.jdgm-picture-fieldset__box-wrapper {
  float: left;
  display: inline-block;
}
.jdgm-picture-fieldset__box-wrapper li {
  list-style: none;
  position: relative;
  float: left;
  margin-right: 20px;
}
.jdgm-picture-fieldset__box-wrapper li img{
  width:132px;
  height:132px;
}
.jdgm-picture-fieldset__box-wrapper li i{
  position: absolute;
  top: 0px;
  background: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #f00;
  text-align: center;
  line-height: 20px;
  z-index: 9999;
  cursor: pointer;
}

.jdgm-form__fieldset-actions{text-align:center;}
.jdgm-btn, input[type="submit"].jdgm-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border-radius:25px;
}
.jdgm-btn--border {
  color: #000;
  background-color: white;
  border: 2px solid #000;
  border-color: #000;
}
.jdgm-btn--solid, input[type="submit"].jdgm-btn--solid {
  color: white;
  background-color: #000;
  border: 2px solid #108474;
  border-color: #000;
}





.waterfall {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 20px;
}

        /* 每一列 */
.waterfall .waterfall-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 28px;                  /* 卡片之间的间距，与列间距一致 */
        }

/* ===== 新增响应式代码 ===== */
/* 平板：2列 */
@media (max-width: 1024px) and (min-width: 769px) {
    .waterfall {
        flex-wrap: wrap;
        gap: 20px;
    }
    .waterfall .waterfall-col {
        flex: 0 0 calc(50% - 10px);  /* 两列，减去gap的一半 */
        min-width: 0;
    }
}

/* 手机：1列 */
@media (max-width: 768px) {
    .waterfall {
        flex-wrap: wrap;
        gap: 20px;
    }
    .waterfall .waterfall-col {
        flex: 0 0 100%;  /* 单列占满 */
        min-width: 0;
    }
}


        /* 卡片 —— 无任何固定高度，完全由内容撑开 */
.waterfall .card {
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 15px 30px -12px rgba(0, 40, 60, 0.15);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s;
  border: 1px solid rgba(175, 200, 215, 0.3);
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.waterfall .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 40px -15px #1a4b60a0;
        }

        /* 卡片内图片：永远100%宽，高度自适应，保持比例 */
.waterfall .card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #e5f0f5;
  object-fit: cover;
  max-height: 300px;
}
.waterfall .card .card-img img:hover{
  opacity: 0.8;
}
.waterfall .card-img {
  height: 300px;
}
.waterfall .other-images{
  height: 82px;
  overflow: hidden;
  padding-top: 2px;
}
.waterfall .other-images img {
  width: 80px;
  margin-right: 2px;
  height: 100%;
  border-radius: 3px;
  cursor: pointer;
}
.waterfall .other-images img:hover{
  opacity: 0.8;
}
        /* 卡片文字区域 */
.waterfall .card-content {
  padding: 8px 10px 10px 8px;
  color: #1f3f4d;
}
.waterfall .card-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 12px;
            color: #0c2c3b;
            line-height: 1.3;
        }
.waterfall .card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #315a6b;
  margin-bottom: 10px;
}
.waterfall .card-author{
  float:right;
}
.waterfall .card-author span::before {
  content: 'Verified';
  color: white;
  background-color: #000;
  vertical-align: top;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 6px;
  margin-left: 3px;
}
.reviews .loading-btn {
  text-align: center;
  margin: 20px 0px;
  display: none;
}

