/* 光合小店信任模块：小红书背书、教练卡、好评卡。
   教练卡与小程序 CoachProfileCard、好评卡与 PublicReviewCard 同一套规格（小程序 rpx 折半为 px）。 */

/* 口碑卡：口碑数字 + 保障 */
.store-header {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(31, 42, 34, 0.08);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(31, 42, 34, 0.05);
}

.store-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 2px;
}

.store-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.store-stat + .store-stat {
  border-left: 1px solid rgba(31, 42, 34, 0.08);
}

.store-stat-num {
  color: #4a7d52;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.store-stat-label {
  color: #5c6a60;
  font-size: 13px;
  line-height: 1.4;
}

.store-source {
  margin-top: 10px;
  color: rgba(92, 106, 96, 0.8);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* 保障条：三列，图标在上文字在下（单行放不下三条时不会折行） */
.guarantee-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 42, 34, 0.08);
}

.guarantee-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guarantee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #1f2a22;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.guarantee-item svg {
  width: 18px;
  height: 18px;
  color: #4a7d52;
  flex-shrink: 0;
}

/* 教练入口 */
.coach-entry-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  background: #fff;
  border: 1px solid rgba(31, 42, 34, 0.08);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(31, 42, 34, 0.05);
  color: inherit;
  text-decoration: none;
}

.coach-entry-card:active {
  transform: scale(0.99);
}

.coach-entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
}

.coach-entry-avatars {
  display: flex;
  flex-shrink: 0;
  padding-left: 6px;
}

.coach-entry-avatar {
  width: 24px;
  height: 24px;
  margin-left: -6px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #c7d6bc 0%, #7ba37a 100%);
  box-shadow: 0 0 0 1.5px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.coach-entry-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coach-entry-text {
  flex: 1;
  min-width: 0;
}

.coach-entry-title {
  color: #1f2a22;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.coach-entry-sub {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5c6a60;
  font-size: 13px;
  line-height: 1.45;
}

.coach-entry-chevron {
  flex-shrink: 0;
  color: #7ba37a;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

/* 区块标题 */
.trust-section {
  margin: 0;
}

/* 区块标题：居中文字 + 两侧主题色渐变短线（小店首页、产品详情共用） */
.line-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #1f2a22;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 2px;
}

.line-head::before,
.line-head::after {
  content: '';
  width: 40px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-head-color, #7ba37a) 100%);
}

.line-head::after {
  background: linear-gradient(90deg, var(--line-head-color, #7ba37a) 0%, transparent 100%);
}

.line-head-sub {
  margin: -6px 0 16px;
  color: #8a948d;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* 好评单张卡片（小店首页）：条目平铺 + 分隔线，与产品详情页的评价区块一致 */
.review-block {
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(31, 42, 34, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(31, 42, 34, 0.04);
}

.review-block .review-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(31, 42, 34, 0.08);
}

.review-more {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  color: #4a7d52;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.review-more[disabled] {
  opacity: 0.6;
}

.review-more[hidden] {
  display: none;
}

.trust-more-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  height: 42px;
  border: 1px solid rgba(31, 42, 34, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #4a7d52;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.trust-more-btn[disabled] {
  opacity: 0.6;
}

.trust-empty {
  padding: 20px 0;
  color: #5c6a60;
  font-size: 14px;
  text-align: center;
}

/* 好评卡：与小程序 PublicReviewCard 一致 */
.review-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(31, 42, 34, 0.08);
  border-radius: 24px;
  padding: 16px 16px 18px;
  box-shadow: 0 6px 18px rgba(31, 42, 34, 0.04);
  overflow: hidden;
}

.review-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 163, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.review-card-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31, 42, 34, 0.08);
}

.review-card-head::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  height: 13px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7ba37a 0%, #c7d6bc 100%);
}

.review-card-nickname {
  flex: 1;
  min-width: 0;
  color: #1f2a22;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card-date {
  flex-shrink: 0;
  margin-left: 12px;
  color: rgba(92, 106, 96, 0.7);
  font-size: 11px;
}

.review-card-text {
  position: relative;
  z-index: 1;
  color: #5c6a60;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review-card-text.clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card-toggle {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: #4a7d52;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.review-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.review-card-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(123, 163, 122, 0.14);
  color: #4a7d52;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

/* 平铺形态：嵌在教练卡里 */
.review-card.flat {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.review-card.flat::after {
  display: none;
}

.review-card.flat .review-card-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

/* 教练卡：与小程序 CoachProfileCard 同款 */
.coach-card {
  --coach-accent: #7ba37a;
  --coach-accent-deep: #4a7d52;
  --coach-accent-light: rgba(123, 163, 122, 0.14);
  background: #fff;
  border: 1px solid rgba(31, 42, 34, 0.08);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(31, 42, 34, 0.08);
  overflow: hidden;
}

.coach-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 0;
}

.coach-header.solo {
  padding-bottom: 18px;
}

.coach-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #c7d6bc 0%, #7ba37a 100%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7ba37a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coach-avatar-letter {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.coach-main {
  flex: 1;
  min-width: 0;
}

.coach-name-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.coach-name {
  color: #1f2a22;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.coach-super-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: var(--coach-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.coach-super-badge svg {
  width: 13px;
  height: 13px;
}

.coach-meta {
  display: block;
  margin-bottom: 10px;
  color: #5c6a60;
  font-size: 13px;
  line-height: 1.5;
}

.coach-hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--coach-accent-light);
  color: var(--coach-accent-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.coach-hours-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.coach-rule {
  height: 1px;
  margin: 14px 18px 0;
  background: rgba(31, 42, 34, 0.08);
}

.coach-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 18px 14px;
}

.coach-section.first {
  padding-top: 14px;
}

.coach-section.stacked {
  flex-direction: column;
  gap: 8px;
}

.coach-section-label {
  flex-shrink: 0;
  width: 46px;
  color: #5c6a60;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.coach-section.stacked .coach-section-label {
  width: 100%;
}

.coach-section-value {
  flex: 1;
  min-width: 0;
  width: 100%;
  color: #5c6a60;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.coach-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  padding: 14px 18px;
  border-top: 1px solid rgba(31, 42, 34, 0.08);
  background: #f6f8f5;
  color: var(--coach-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.coach-footer-chevron {
  font-size: 18px;
  line-height: 1;
}

/* 约满/暂停：白底描边 chip，绝对定位在右上角（与小程序一致，H5 无订阅提醒所以不带铃铛） */
.coach-header {
  position: relative;
}

.coach-header.with-status .coach-name-row {
  padding-right: 64px;
}

.coach-status-chip {
  position: absolute;
  top: 18px;
  right: 12px;
  height: 32px;
  min-width: 56px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(31, 42, 34, 0.08);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(31, 42, 34, 0.06);
  color: #5c6a60;
  font-size: 13px;
  font-weight: 600;
}

.coach-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 23px;
}

.coach-first-price-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--coach-accent-light);
  color: var(--coach-accent-deep);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

/* 页脚 */
.shop-footer {
  margin-top: 32px;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(31, 42, 34, 0.08);
  color: rgba(92, 106, 96, 0.82);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.shop-footer a {
  color: inherit;
  text-decoration: none;
}

/* 底部导航栏：首页 / 教练团队 / 我的订单 */
body.has-tab-bar {
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(31, 42, 34, 0.08);
  box-shadow: 0 -4px 16px rgba(31, 42, 34, 0.04);
}

.tab-bar-inner {
  width: min(100%, 520px);
  height: 56px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8a948d;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
}

.tab-item.active {
  color: #4a7d52;
  font-weight: 650;
}

.tab-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.tab-icon svg {
  width: 24px;
  height: 24px;
}

.tab-badge {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #4a7d52;
  box-shadow: 0 0 0 1.5px #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

