/* 买家评价（方向 A「试戴报告」）：左侧评分汇总卡，右侧评价列表；手机端汇总在上 */
.prv {
  padding-top: var(--prv-pt);
  padding-bottom: var(--prv-pb);
  color: #1c1b19;
}

.prv__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* ---------- 汇总卡（不吸顶也不贴顶：相对右侧列表垂直居中，用户觉得跟着走、贴在顶上都怪） ---------- */
.prv__summary {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: var(--prv-panel);
  border-radius: 18px;
}

.prv__heading {
  margin: 0;
  font-family: var(--title-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.prv__score {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.prv__score b {
  font-family: var(--body-font);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.prv__score span {
  font-size: 14px;
  color: #6e6a64;
}

/* 星星：灰底 + 彩色，单条评价按 is-on 点亮，汇总按平均分裁切 */
.prv__stars {
  display: inline-flex;
  gap: 3px;
  line-height: 0;
}

.prv__stars svg {
  width: 16px;
  height: 16px;
}

.prv__star svg {
  fill: #ddd0bf;
}

.prv__star.is-on svg {
  fill: var(--prv-star);
}

.prv__stars--avg,
.prv__stars--part {
  position: relative;
  align-self: flex-start;
}

.prv__stars--avg svg {
  width: 20px;
  height: 20px;
}

.prv__stars-base,
.prv__stars-fill {
  display: inline-flex;
  gap: 3px;
}

.prv__stars-base svg {
  fill: #ddd0bf;
}

.prv__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

.prv__stars-fill svg {
  flex-shrink: 0;
  fill: var(--prv-star);
}

.prv__bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 500;
  color: #6e6a64;
  font-variant-numeric: tabular-nums;
}

.prv__bars li {
  display: grid;
  grid-template-columns: 12px 1fr 22px;
  gap: 8px;
  align-items: center;
}

.prv__bars li span:last-child {
  text-align: right;
}

.prv__bars i {
  display: block;
  height: 6px;
  background: #efe6da;
  border-radius: 3px;
}

.prv__bars em {
  display: block;
  height: 100%;
  background: var(--prv-star);
  border-radius: 3px;
}

.prv__write {
  display: block;
  margin-top: 4px;
  padding: 12px 18px;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: #1c1b19;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.prv__write:hover {
  opacity: 0.86;
}

/* ---------- 评价列表 ---------- */
.prv__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prv-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 0;
  border-bottom: 1px solid #e5e1da;
}

.prv-item:first-child {
  padding-top: 4px;
}

.prv-item[hidden] {
  display: none;
}

.prv-item__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.prv-item__name {
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
}

.prv-item__verified {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  color: #8a5a35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prv-item__verified svg {
  width: 13px;
  height: 13px;
}

.prv-item__date {
  margin-left: auto;
  font-size: 12px;
  color: #6e6a64;
  font-variant-numeric: tabular-nums;
}

.prv-item__title {
  margin: 2px 0 0;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.prv-item__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #3a3835;
  overflow-wrap: anywhere;
}

.prv-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.prv-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 12px 4px 6px;
  font-size: 12px;
  color: #6e6a64;
  text-decoration: none;
  border: 1px solid #e5e1da;
  border-radius: 999px;
}

a.prv-chip:hover {
  color: #1c1b19;
  border-color: #cfc6b9;
}

.prv-chip__sw {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.prv-item__fit {
  font-size: 12px;
  color: #6e6a64;
}

.prv-item__fit b {
  font-weight: 500;
  color: #1c1b19;
}

.prv-item__photos {
  display: flex;
  gap: 8px;
}

.prv-item__photos a {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 10px;
  background: #f6f6f6;
}

.prv-item__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prv__more {
  align-self: flex-start;
  margin-top: 22px;
  padding: 10px 22px;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
  color: #1c1b19;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #1c1b19;
  border-radius: 999px;
}

.prv__more[hidden] {
  display: none;
}

.prv__empty {
  padding: 24px;
  font-size: 14px;
  color: #6e6a64;
  text-align: center;
  border: 1px dashed #cfc6b9;
  border-radius: 12px;
}

@media (max-width: 959px) {
  .prv {
    padding-top: var(--prv-pt-m);
    padding-bottom: var(--prv-pb-m);
  }

  .prv__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prv__summary {
    padding: 20px 18px;
  }

  .prv__heading {
    font-size: 20px;
  }

  .prv__score b {
    font-size: 42px;
  }

  .prv-item__date {
    margin-left: 0;
  }

  .prv__more {
    align-self: stretch;
  }
}
