/* pages/activity/customerService 静态复刻 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.uni-body.pages-activity-customerService {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #222;
  background: #d9ecf9;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.cs-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: rgba(217, 236, 249, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.cs-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 4px;
  font-size: 22px;
  line-height: 1;
  color: #111;
  text-decoration: none;
}

.cs-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  padding-right: 44px;
}

.serviceContent {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  min-height: calc(100vh - 52px);
}

.Scroll {
  min-height: 200px;
}

.uni-scroll-view-content {
  padding-bottom: 8px;
}

.customerBox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.customerAvatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

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

.customerText {
  background: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  color: #333;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  max-width: calc(100% - 54px);
}

/* 首条问候：占满可用宽度，正常换行 */
.customerText--intro {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
}

/* 「客服电话」、号码等短句：白底宽度随文字 */
.customerText--tight {
  flex: 0 1 auto;
  align-self: flex-start;
  display: inline-block;
  vertical-align: top;
  width: fit-content;
  max-width: calc(100% - 54px);
}

.customerHrefText {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: #007aff;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.customerHrefText:hover,
.customerHrefText:focus-visible {
  text-decoration: underline;
}

.customerHrefText:disabled {
  opacity: 0.55;
  cursor: default;
  text-decoration: none;
}

.customerBoxQuestion {
  margin-bottom: 14px;
  width: 100%;
}

.customerBoxQuestion .userBox {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.userText {
  display: inline-block;
  background: #95ec69;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  color: #111;
  line-height: 1.55;
  max-width: 78%;
  width: fit-content;
  box-shadow: 0 1px 2px rgba(0, 80, 0, 0.08);
}

.customerBoxQuestion > .customerBox {
  margin-bottom: 0;
}

.customerBoxQuestion + .customerBoxQuestion {
  margin-top: 0;
}
