/* ===== 基础重置 ===== */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}
html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  font-size: 0.16rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
p {
  margin: 0;
}
img {
  max-width: 100%;
  vertical-align: middle;
}

/* ===== 页面骨架 ===== */
.container-box {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.container-box .module {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
.container-box .module > .content {
  max-width: 3.75rem;
  margin: 0 auto;
}
.module .tips {
  position: absolute;
  left: 0;
  width: 100vw;
  padding: 0.16rem 0;
  font-size: 0.12rem;
  color: #999;
  text-align: center;
}
.content .preview-box {
  overflow: hidden;
}

/* ===== 聊天 ===== */
.chat-content-view {
  position: relative;
  width: 100%;
  padding-bottom: 0.4rem;
  overflow: hidden;
  background: #f9f9f9;
}
.type-1 {
  width: 100%;
  border-radius: 0 0 28px 28px;
}
.type-1 .chat-view {
  padding: 0.16rem 0.08rem;
  overflow: hidden;
}
.type-1 .chat-view li {
  margin-bottom: 0.16rem;
  animation: msg-in 0.3s ease-out both;
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(0.12rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.type-1 .chat-view li > div::after {
  display: table;
  clear: both;
  content: "";
}
.type-1 .chat-view li .avatar {
  float: left;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 0.08rem;
}
.type-1 .chat-view li .info {
  float: left;
  max-width: 2.75rem;
  margin: 0 0.09rem;
}
.type-1 .chat-view li .name {
  width: 100%;
  margin-bottom: 0.04rem;
  font-size: 0.12rem;
  line-height: 0.16rem;
  color: #666;
}
.type-1 .chat-view li .computed-unit {
  font-size: 0.16rem;
  line-height: normal;
}
.type-1 .chat-view li .chat-content {
  position: relative;
  padding: 0.05rem;
  background-color: #fff;
  border-radius: 0.05rem;
  word-break: break-all;
}
.type-1 .chat-view .right .avatar,
.type-1 .chat-view .right .info,
.type-1 .chat-view .right .chat-content {
  float: right;
}
.type-1 .chat-view .right .name {
  text-align: right;
}
.type-1 .chat-view .right .chat-content {
  color: #fff;
  background-color: #f0ad4e;
  font-size: 0.16rem;
}

/* ===== 回复选项 ===== */
.type-1.chat-type1 .operate-warp {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.type-1.chat-type1 .operate-warp > .option {
  max-width: 98%;
  padding: 0.1rem;
  margin: 0.04rem;
  font-size: 0.16rem;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  overflow-wrap: break-word;
  cursor: pointer;
  background-color: #f0ad4e;
  border-radius: 0;
  animation: msg-in 0.3s ease-out both;
}
/* optionType: 1=单列 2=两列 3=三列 */
.type-1.chat-type1 .operate-warp.row1 > .option {
  width: 100%;
}
.type-1.chat-type1 .operate-warp.row2 > .option {
  width: calc(50% - 0.08rem);
}
.type-1.chat-type1 .operate-warp.row3 > .option {
  width: calc(33.33% - 0.08rem);
  padding: 0.1rem 0.04rem;
}
.type-1.chat-type1 .operate-warp > .option.cta {
  width: 100%;
}
