/* 客户评价轮播 */
.reviews-section {
  padding: clamp(48px, 6vw, 88px) 0;
  background: #f5f8fa;
  border-top: 1px solid #e4ecf0;
  border-bottom: 1px solid #e4ecf0;
}

.reviews-section .rv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.reviews-section h2 {
  margin: 6px 0 0;
}

.rv-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a5c6a;
  font-size: 13px;
}

.rv-summary strong {
  font-size: 28px;
  line-height: 1;
  color: #0d2b3e;
  letter-spacing: -0.02em;
}

.rv-stars {
  display: inline-flex;
  gap: 2px;
}

.rv-stars svg.on path {
  fill: #f0a92b;
}

.rv-stars svg.off path {
  fill: #d7e3e8;
}

.rv-carousel {
  position: relative;
}

.rv-track {
  position: relative;
  min-height: 232px;
}

.rv-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  background: #fff;
  border: 1px solid #e1eaee;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 12px 30px rgba(13, 43, 62, 0.06);
  max-width: 900px;
}

.rv-card.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.rv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rv-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.rv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rv-who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.rv-who strong {
  font-size: 15px;
  color: #0d2b3e;
}

.rv-who span {
  font-size: 12.5px;
  color: #6b7c8f;
}

.rv-head .rv-stars {
  margin-left: auto;
}

.rv-text {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #33475b;
}

.rv-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #6b7c8f;
}

.rv-chip {
  background: #eef6f7;
  color: #0d6d74;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 600;
}

.rv-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.rv-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d5e2e7;
  background: #fff;
  color: #0d2b3e;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rv-nav:hover {
  border-color: #0d7d84;
  color: #0d7d84;
}

.rv-dots {
  display: flex;
  gap: 7px;
}

.rv-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #cbd9e0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.rv-dot.is-active {
  background: #0d7d84;
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .rv-card {
    padding: 20px;
    max-width: none;
  }
  .rv-head {
    flex-wrap: wrap;
  }
  .rv-head .rv-stars {
    margin-left: 0;
    width: 100%;
  }
  .rv-track {
    min-height: 300px;
  }
}

/* 晒图 */
.rv-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.rv-photo {
  width: 92px;
  height: 92px;
  padding: 0;
  border: 1px solid #e1eaee;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f8f9;
  cursor: zoom-in;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.rv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rv-photo:hover {
  transform: translateY(-2px);
  border-color: #0d7d84;
}

.rv-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}

.rv-lightbox::backdrop {
  background: rgba(8, 32, 42, 0.82);
}

.rv-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.rv-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0d2b3e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* 表单里的晒图字段 */
.rv-photo-field {
  border: 1px dashed #d5e2e7;
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 0 0 12px;
}

.rv-photo-field legend {
  font-size: 12.5px;
  font-weight: 600;
  color: #4a5c6a;
  padding: 0 6px;
}

.rv-opt {
  font-weight: 400;
  color: #8a9aa6;
}

.rv-photo-add {
  display: inline-block;
  border: 1px solid #0d7d84;
  color: #0d6d74;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
}

.rv-photo-add:hover {
  background: #0d7d84;
  color: #fff;
}

.rv-photo-hint {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: #8a9aa6;
}

.rv-photo-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rv-photo-preview {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e1eaee;
}

.rv-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rv-photo-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 32, 42, 0.75);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* 我也想评价 */
.rv-write {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.rv-write-btn {
  border: 1px solid #0d7d84;
  background: #fff;
  color: #0d6d74;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.rv-write-btn:hover {
  background: #0d7d84;
  color: #fff;
  transform: translateY(-1px);
}

.rv-write-hint {
  font-size: 12.5px;
  color: #6b7c8f;
}

/* 评价弹窗 */
.rv-dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 80px rgba(8, 32, 42, 0.3);
  background: #fff;
}

.rv-dialog::backdrop {
  background: rgba(8, 32, 42, 0.45);
  backdrop-filter: blur(2px);
}

.rv-form {
  padding: 22px 24px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #0d2b3e;
}

.rv-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rv-dialog-head h3 {
  margin: 0;
  font-size: 19px;
}

.rv-close {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #6b7c8f;
  cursor: pointer;
}

.rv-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #4a5c6a;
  margin-bottom: 12px;
}

.rv-form input,
.rv-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid #d5e2e7;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #0d2b3e;
  background: #fff;
}

.rv-form input:focus,
.rv-form textarea:focus {
  outline: 2px solid #0d7d84;
  outline-offset: 1px;
}

.rv-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.rv-rate {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}

.rv-rate legend {
  font-size: 12.5px;
  font-weight: 600;
  color: #4a5c6a;
  padding: 0;
  margin-bottom: 4px;
}

.rv-rate-stars {
  display: inline-flex;
  gap: 4px;
  flex-direction: row-reverse;
}

.rv-rate-stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.rv-rate-stars label {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  color: #d7e3e8;
  cursor: pointer;
  transition: color 0.12s ease;
}

.rv-rate-stars input:checked ~ label,
.rv-rate-stars label:hover,
.rv-rate-stars label:hover ~ label {
  color: #f0a92b;
}

.rv-rate-stars input:focus-visible + label {
  outline: 2px solid #0d7d84;
  border-radius: 4px;
}

.rv-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rv-form-note {
  font-size: 12px;
  color: #6b7c8f;
  margin: 0 0 14px;
}

.rv-form-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rv-form-status {
  flex: 1 1 100%;
  font-size: 12.5px;
  min-height: 16px;
}

.rv-form-status.is-ok {
  color: #1f7a4d;
}

.rv-form-status.is-err {
  color: #b03a3a;
}

.rv-cancel {
  border: 1px solid #d5e2e7;
  background: #fff;
  color: #4a5c6a;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.rv-submit {
  margin-left: auto;
  border: 0;
  background: #0d7d84;
  color: #fff;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.rv-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 560px) {
  .rv-form-grid {
    grid-template-columns: 1fr;
  }
  .rv-submit {
    margin-left: 0;
    width: 100%;
  }
}
