﻿/* ================================================================
   游客点评区块样式
   ================================================================ */

/* ------------------------------------------------------------
   01. 点评区块
   ------------------------------------------------------------ */
.reviews-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.reviews-header {
  text-align: center;
  margin-bottom: 48px;
}

.reviews-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.reviews-subtitle {
  font-size: 1.125rem;
  color: #666;
}

/* 评分概览卡片 */
.reviews-summary {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 48px;
}

/* 左侧评分统计 */
.rating-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overall-rating {
  font-size: 4.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 8px;
}

.rating-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.rating-star {
  width: 24px;
  height: 24px;
  background: #ffc107;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rating-star.half {
  background: linear-gradient(90deg, #ffc107 50%, #e0e0e0 50%);
}

.rating-star.empty {
  background: #e0e0e0;
}

.total-reviews {
  font-size: 1rem;
  color: #666;
  margin-bottom: 24px;
}

.rating-breakdown {
  width: 100%;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.rating-bar-label {
  font-size: 0.875rem;
  color: #666;
  min-width: 32px;
}

.rating-bar {
  flex: 1;
  height: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffc107 0%, #ffb300 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.rating-bar-count {
  font-size: 0.875rem;
  color: #999;
  min-width: 48px;
  text-align: right;
}

/* 右侧标签云 */
.review-tags-section {
  display: flex;
  flex-direction: column;
}

.review-tags-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.review-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-tag {
  padding: 10px 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  font-size: 0.875rem;
  color: #666;
  transition: all 0.2s ease;
  cursor: pointer;
}

.review-tag:hover {
  background: #2d5a27;
  border-color: #2d5a27;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
}

.review-tag.active {
  background: #2d5a27;
  border-color: #2d5a27;
  color: white;
}

/* 评论列表 */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviewer-info {
  flex: 1;
  min-width: 0;
}

.reviewer-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #999;
}

.review-rating {
  display: flex;
  gap: 2px;
}

.review-rating .rating-star {
  width: 14px;
  height: 14px;
}

.review-date {
  color: #999;
}

.review-content {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

.review-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.review-image {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.review-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f5f5f5;
}

.review-helpful {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #666;
}

.helpful-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #666;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.helpful-btn:hover {
  background: #f8fafc;
  border-color: #2d5a27;
  color: #2d5a27;
}

.helpful-btn.active {
  background: #2d5a27;
  border-color: #2d5a27;
  color: white;
}

.review-reply {
  font-size: 0.875rem;
  color: #999;
  cursor: pointer;
}

.review-reply:hover {
  color: #2d5a27;
}

/* 商家回复 */
.merchant-reply {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #2d5a27;
}

.merchant-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.merchant-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #2d5a27;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.merchant-reply-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.merchant-reply-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
}

/* 加载更多按钮 */
.load-more-container {
  text-align: center;
  margin-top: 32px;
}

.load-more-btn {
  padding: 12px 32px;
  background: transparent;
  border: 2px solid #2d5a27;
  border-radius: 8px;
  color: #2d5a27;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: #2d5a27;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 90, 39, 0.3);
}

/* 响应式设计 */



