/* ========================================
   首页 —— 英雄区域
   ======================================== */

/* 为什么选择我们 —— 内容宽度 1280px */
.why-section .container {
  max-width: 1280px;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -120px;
  padding-top: 120px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  width: 100%;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 预订组件 */
.booking-widget {
  background: transparent;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-form .form-group {
  display: flex;
  flex-direction: column;
}

.booking-form .form-group label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.booking-form .form-group input,
.booking-form .form-group select {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.4rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary);
  width: 100%;
}

.booking-form .form-group input:focus,
.booking-form .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.btn-search {
  width: 100%;
  padding: 0.75rem;
  font-weight: 600;
}

/* ========================================
   评价轮播
   ======================================== */
/* ========================================
   客户评价 —— Google 风格
   ======================================== */

/* 聚合评分条 */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 2rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  max-width: 480px;
  flex-wrap: wrap;
}

.rating-score {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.rating-stars {
  font-size: 1.6rem;
  color: #FBBC04; /* Google 星级金色 */
  letter-spacing: 2px;
}

.rating-count {
  font-size: 0.9rem;
  color: var(--primarys);
  width: 100%;
  text-align: center;
  margin-top: 0.25rem;
}

/* 评论网格 */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  /* max-width: 900px; */
  margin: 0 auto;
  /* 高度限制，超出滚动 */
  max-height: 560px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* 加载更多按钮 */
.reviews-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.reviews-loadmore .btn {
  min-width: 160px;
  background: var(--primary);          /* 黑底 */
  color: #fff;                          /* 白字 */
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reviews-loadmore .btn:hover:not(:disabled) {
  background: var(--accent);           /* 黄底 */
  color: var(--primary);               /* 黑字 */
  border-color: var(--accent);
}

.reviews-loadmore .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 评论卡片 */
.review-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 卡片头部：头像 + 名字/星级 + 来源 */
.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.review-meta {
  flex: 1;
  min-width: 0;
}

.review-name {
  display: block;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-stars {
  font-size: 0.85rem;
  color: #FBBC04;
  letter-spacing: 1px;
}

/* Google 来源徽章 */
.review-source {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4285F4; /* Google 蓝 */
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 评价图片 */
.review-images {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.review-image {
  width: 96px;
  height: 96px;
  border-radius: 0.4rem;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.review-image:hover {
  transform: scale(1.05);
}

.review-time {
  font-size: 0.78rem;
  color: var(--primarys);
}

/* 骨架屏 */
.review-skeleton {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ========================================
   响应式 —— 首页
   ======================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }
}
