@import "../../../../themes/page.scss";

.page-scroll__container {
  flex: 0 1 auto;
  height: var(--page-container-safeHeight, 100vh);
  background: #f7f8fa;
  padding-bottom: 140rpx;
}

.evaluate-container {
  background: #fff;
  margin: 24rpx;
  border-radius: 16rpx;
  padding: 32rpx;
}

.product-card {
  display: flex;
  align-items: center;
  padding-bottom: 32rpx;
  margin-bottom: 24rpx;
  border-bottom: 1rpx solid #eee;
}

.product-img {
  width: 120rpx;
  height: 120rpx;
  border-radius: 12rpx;
  background: #f5f5f5;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  margin-left: 24rpx;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8rpx;
}

.product-name {
  font-size: 30rpx;
  color: #333;
  font-weight: 500;
}

.product-spec {
  font-size: 26rpx;
  color: #999;
}

.product-close {
  flex-shrink: 0;
  padding: 16rpx;
}

.rate-row {
  display: flex;
  align-items: center;
  // justify-content: space-between;
  margin-bottom: 32rpx;
}

.rate-label {
  font-size: 30rpx;
  color: #333;
  margin-right: 20px;
}

.rate-wrap {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.rate-score {
  font-size: 26rpx;
  color: #999;
  min-width: 48rpx;
  margin-left: 20px;
}

.comment-section {
  position: relative;
  margin-bottom: 32rpx;
}

.comment-input {
  width: 100%;
  min-height: 200rpx;
  padding: 24rpx;
  font-size: 28rpx;
  color: #333;
  background: #f7f8fa;
  border-radius: 12rpx;
  box-sizing: border-box;
}

.comment-placeholder {
  color: #999;
}
.product-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8rpx;
}
.product-divider {
  font-size: 28rpx;
  color: #dcdcdc;
  margin: 0 30rpx;
}

.comment-count {
  position: absolute;
  top: 24rpx;
  right: 24rpx;
  font-size: 24rpx;
  color: #999;
}

.upload-section {
  margin-bottom: 24rpx;
}

/* 一行 4 个，文件之间 24rpx 缝隙 */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24rpx;
}

.media-item {
  position: relative;
  width: 140rpx;
  height: 140rpx;
  flex-shrink: 0;
  border-radius: 12rpx;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 10px;
}

.upload-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 142rpx;
  height: 142rpx;
  flex-shrink: 0;
  background: #f7f8fa;
  border-radius: 12rpx;
  border: 2rpx dashed #ddd;
}

.upload-label {
  font-size: 24rpx;
  color: #999;
  margin-top: 12rpx;
}

.media-thumb {
  width: 100%;
  height: 100%;
  display: block;
}

.media-item-video {
  position: relative;
  width: 100%;
  height: 100%;
  .media-thumb {
    display: block;
  }
}

.media-item-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.media-delete {
  position: absolute;
  top: 0;
  right: 0;
  width: 48rpx;
  height: 48rpx;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 12rpx 0 12rpx;
}

.publish-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20rpx 32rpx;
  box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.publish-btn {
  height: 88rpx;
  line-height: 88rpx;
  text-align: center;
  font-size: 32rpx;
  font-weight: 500;
  color: #fff;
  background: #1976d2;
  border-radius: 44rpx;
}

.publish-btn.disabled {
  background: #e8e8e8;
  color: #999;
}
