/**
 * 首页：推荐技师横向列表（仅 4 个）+ 头像圆形裁剪；热门服务仅 4 条
 * 正式客户端首页样式（jiang-wei.homes/）
 */
.index-page {
  background: linear-gradient(180deg, #fff9f9 0%, #fafafa 42%, #f5f5f5 100%) !important;
}

.index-page .coach-section,
.index-page .service-section {
  background: transparent !important;
}

.index-page .coach-info .jw-coach-served {
  display: block;
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.35;
  margin-top: 2px;
  padding: 0 0.25rem 0.5rem;
}

.index-page .coach-section .coach-scroll {
  width: 100%;
  overflow-x: hidden !important;
  overflow-y: hidden;
}

.index-page .coach-section .coach-scroll .coach-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: space-between;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item {
  display: block !important;
  flex: 0 0 6.75rem !important;
  width: 6.75rem !important;
  min-width: 6.75rem !important;
  max-width: 6.75rem !important;
  flex-shrink: 0 !important;
  box-sizing: border-box;
  overflow: hidden !important;
  border-radius: 0.5rem !important;
}

/* 推荐技师头像：必须裁剪在圆内，防止图片溢出 */
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-avatar {
  width: 5.5rem !important;
  height: 5.5rem !important;
  margin: 0.5rem auto 0.375rem !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #f5f0e6;
  border: 3px solid #d4af37;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.28);
}

/* 金圈改在边框上，避免 ::before 负 inset 把图顶出圆外 */
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-avatar::before,
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-avatar::after {
  display: none !important;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-avatar uni-image,
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-avatar > div,
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-avatar img,
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-avatar image {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  overflow: hidden !important;
  z-index: 1;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-avatar.default-avatar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item.jw-coach-rich {
  display: block !important;
  flex: 0 0 6.75rem !important;
  width: 6.75rem !important;
  min-width: 6.75rem !important;
  padding: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item.jw-coach-rich .jw-cr-left,
.index-page .coach-section .coach-scroll .coach-list .coach-item.jw-coach-rich .jw-cr-mid,
.index-page .coach-section .coach-scroll .coach-list .coach-item.jw-coach-rich .jw-cr-right {
  display: none !important;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-info {
  box-sizing: border-box;
  padding: 0 0.375rem 0.5rem !important;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-info .coach-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  display: block;
}

/* 推荐技师：头像下只显示姓名 */
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-info .coach-tags,
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-info .coach-price {
  display: none !important;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-info .coach-name {
  margin-bottom: 0 !important;
}

.index-page .coach-section scroll-view,
.index-page .coach-section .uni-scroll-view {
  width: 100% !important;
}

/* 热门服务：圆形缩略图 + 最多 4 条（多余由 JS 隐藏） */
.index-page .service-section .service-grid .service-item .service-image {
  width: 4.75rem !important;
  height: 4.75rem !important;
  min-width: 4.75rem !important;
  min-height: 4.75rem !important;
  border-radius: 50% !important;
  margin-right: 0.625rem !important;
  overflow: hidden !important;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: 0 0 0 2px #d4af37, 0 2px 6px rgba(184, 134, 11, 0.25);
  background: #f5f0e6;
  position: relative;
}

.index-page .service-section .service-grid .service-item .service-image.default-service-image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

.index-page .service-section .service-grid .service-item .service-image uni-image,
.index-page .service-section .service-grid .service-item .service-image > div,
.index-page .service-section .service-grid .service-item .service-image img,
.index-page .service-section .service-grid .service-item .service-image image {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
