/**
 * 首页：推荐技师横向列表（仅 4 个）+ 头像圆形裁剪；热门服务仅 4 条
 * 正式客户端首页样式（jiang-wei.homes/）
 */
.index-page,
body.jw-route-index,
html.jw-route-index,
.index-page uni-page-body,
.index-page uni-page-wrapper {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html.jw-route-index .index-page,
body.jw-route-index .index-page,
uni-page:not([style*="display: none"]) .index-page,
uni-page:not([style*="display:none"]) .index-page {
  display: block !important;
  visibility: visible !important;
  min-height: 100vh !important;
  height: auto !important;
  overflow: visible !important;
}

html.jw-route-index uni-page-body,
html.jw-route-index uni-page-wrapper,
body.jw-route-index uni-page-body,
body.jw-route-index uni-page-wrapper {
  overflow: visible !important;
  height: auto !important;
  min-height: 100% !important;
}

.index-page .search-bar,
.index-page .banner-section,
.index-page .category-section,
.index-page .coach-section,
.index-page .service-section,
.index-page .service-section .service-grid,
.index-page .service-section .service-grid .service-item,
.index-page .service-section .service-grid .service-item .service-info {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.index-page .coach-section,
.index-page .service-section {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* 首页四大区块永久固定显示（禁止整块删除/隐藏） */
.index-page .banner-section,
.index-page .category-section,
.index-page .coach-section,
.index-page .service-section {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}

.index-page .coach-section .jw-home-coach-mount {
  display: flex !important;
  visibility: visible !important;
}

/* 首页：服务介绍（2 行文字），隐藏原 8 项分类图标 */
.index-page .category-section .category-grid {
  display: none !important;
}

.index-page .category-section .section-title .more {
  display: none !important;
}

.index-page .category-section .section-title .title {
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative;
}

.index-page .category-section .section-title .title::after {
  content: '服务介绍';
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  display: block;
}

.index-page .category-section .jw-svc-intro-mount {
  padding: 0 15px 14px;
}

.index-page .category-section .jw-svc-intro-line {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin: 0 0 8px;
  padding: 0;
}

.index-page .category-section .jw-svc-intro-line:last-child {
  margin-bottom: 0;
}

.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;
}

/* 首页区块标题：推荐技师 → 优先服务者（防 Vue 重渲染回退） */
.index-page .coach-section .section-title .title {
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative;
}
.index-page .coach-section .section-title .title::after {
  content: '优先服务者';
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  display: block;
}

.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,
.index-page .coach-section .coach-scroll .coach-list .coach-item.jw-coach-rich,
.index-page .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;
  max-width: 6.75rem !important;
  flex-shrink: 0 !important;
  box-sizing: border-box;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !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-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: #ffffff;
  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: 50% 42% !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;
  border: 3px solid #d4af37 !important;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.28) !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* 头像金圈内部：全部纯白 */
.index-page .coach-avatar,
.index-page .service-image,
.index-page .jw-gold-ring,
.index-page .jw-gold-ring .jw-ring-photo,
.index-page .jw-gold-ring .jw-ring-photo-wrap,
.index-page .jw-gold-ring.jw-ring-hot,
.index-page .jw-cr-avatar-wrap {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-info,
.index-page .coach-section .coach-scroll .coach-list .coach-item .coach-info .coach-name {
  display: block !important;
  visibility: visible !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;
}

/* 热门服务：圆形缩略图 + 最多 4 条（多余由 JS 隐藏）；列表不显示金额 */
.index-page .service-section .service-grid .service-item .service-info .service-price,
.index-page .service-section .service-grid .service-item .service-price {
  display: none !important;
}

/* 服务 Tab 列表不显示金额，进详情查看套餐 */
.service-page .row-foot-prices,
.service-page .price-cur,
.service-page .price-orig,
.service-page .jw-fill-card .row-price {
  display: none !important;
}
.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: #ffffff;
  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: 50% 42% !important;
  display: block !important;
}

/* 优先服务者：完整卡片（介绍 + 金额 + 下单） */
.index-page .coach-section .jw-coach-section-sub {
  font-size: 12px;
  color: #999;
  margin: -4px 0 12px;
  line-height: 1.5;
}

.index-page .coach-section .jw-home-coach-mount {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.index-page .coach-section .jw-home-coach-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.index-page .coach-section .jw-home-coach-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.index-page .coach-section .jw-home-coach-avatar {
  width: 4.75rem;
  height: 4.75rem;
  min-width: 4.75rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #d4af37;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.22);
  background: #fff;
  position: relative;
}

.index-page .coach-section .jw-home-coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index-page .coach-section .jw-home-coach-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  color: #ccc;
}

.index-page .coach-section .jw-home-coach-body {
  flex: 1;
  min-width: 0;
}

.index-page .coach-section .jw-home-coach-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.index-page .coach-section .jw-home-coach-name {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.index-page .coach-section .jw-home-coach-cat {
  font-size: 11px;
  color: #ff6b00;
  background: #fff4eb;
  padding: 2px 8px;
  border-radius: 10px;
}

.index-page .coach-section .jw-home-coach-intro {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index-page .coach-section .jw-home-coach-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.index-page .coach-section .jw-home-coach-pkgs {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow: hidden;
  margin-bottom: 10px;
  width: 100%;
}

.index-page .coach-section .jw-home-pkg-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.index-page .coach-section .jw-home-pkg-card.active {
  border-color: #ff6b00;
}

.index-page .coach-section .jw-home-pkg-name {
  font-size: 10px;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.index-page .coach-section .jw-home-pkg-dur {
  font-size: 10px;
  color: #888;
  margin-bottom: 3px;
  min-height: 12px;
}

.index-page .coach-section .jw-home-pkg-price {
  font-size: 13px;
  font-weight: 700;
  color: #ff6b00;
  line-height: 1.2;
}

.index-page .coach-section .jw-home-coach-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.index-page .coach-section .jw-home-coach-order {
  flex-shrink: 0;
  border: none;
  background: linear-gradient(90deg, #ff8a3d, #ff6b00);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 18px;
  cursor: pointer;
}

.index-page .coach-section .jw-home-coach-order:active {
  opacity: 0.88;
}
