html,
body,
#app {
  /* width: 100%;
  min-height: 100%; */
  font-family: "PingFang SC";
  position: relative;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, .2);
  border-radius: 10px;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1
}

.flex-y-center {
  display: flex;
  align-items: center;
}

.flex-x-sb {
  display: flex;
  justify-content: space-between;
}

.link-text {
  color: #067EFF;
  cursor: pointer;
}

.color-link {
  color: #067EFF !important;
}

.pointer {
  cursor: pointer;
}

.ml-10 {
  margin-left: 10px;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-ellipsis-1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.overflow-ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.rich-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

[v-cloak] {
  display: none !important;
}
/* 视频播放器进度条 */
.xgplayer .xgplayer-progress-cache {
  background: rgba(255, 255, 255, 0.3) !important;
}
.xgplayer .xgplayer-progress-played {
  background: #FFF !important;
}
.xgplayer .xgplayer-progress-btn {
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.6) !important;
}
.xgplayer xg-video-container.xg-video-container {
  bottom: 65px !important;
}

.warning-toast {
  z-index: 9999 !important;
}

/* 错误图片 */
.el-image .image-error {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #f5f7fa;
  color: #909399;
}

.el-image .image-error .el-icon-picture-outline {
  font-size: 30px;
}

/* 错误页面 */
.error {
  height: 100vh !important;
  background: #f2f2f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error .error-icon {
  width: 7.67vw;
  height: 7.67vw;
}

.error .error-title {
  font-size: 4.66vw;
  color: #000;
  font-weight: 500;
  margin: 2.19vw 0 4.38vw 0;
}

.error .error-text {
  font-size: 3.84vw;
  color: #000;
  width: 65.75vw;
  text-align: center;
}

.msg-box {
  padding: 50px 70px 30px;
  text-align: center;
}

.msg-box img {
  display: block;
  width: 20.53vw;
  height: 20.53vw;
  border-radius: 10.67vw;
  margin: 0 auto;
  background: #ccc;
}

.msg-box .name {
  padding: 0 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 4.53vw;
  color: #000;
  margin: 3.73vw 0 1.6vw 0;
  font-weight: bold;
}

.msg-box .msg {
  font-size: 4vw;
  color: rgba(60, 60, 67, 0.6);
  margin-bottom: 3.73vw;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
}

.msg-box .text {
  display: -webkit-box;
  word-break: break-word;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 4vw;
  color: #3c3c43;
}

.msg-box .button {
  margin-top: 38px;
  border-radius: 100px;
  background: #067EFF;
  color: #fff;
  cursor: pointer;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.msg-box .button:active {
  opacity: 0.8;
}

.image-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 2px;
}

.image-container .item {
  width: 100%;
  height: 100%;
  max-height: 420px;
  overflow: hidden;
  /* 维持宽高比为1:1 */
  aspect-ratio: 1 / 1;
}

.image-container .item .el-image,
.image-container .item .el-image img {
  width: 100%;
  height: 100%;
}

.image-type-1 .item .el-image {
  border-radius: 20px 20px 0 0;
}

.image-type-2 .item:nth-child(1) .el-image,
.image-type-3 .item:nth-child(1) .el-image,
.image-type-4 .item:nth-child(1) .el-image,
.image-type-5 .item:nth-child(1) .el-image,
.image-type-6 .item:nth-child(1) .el-image,
.image-type-7 .item:nth-child(1) .el-image,
.image-type-8 .item:nth-child(1) .el-image,
.image-type-9 .item:nth-child(1) .el-image {
  border-radius: 20px 0 0 0;
}

.image-type-2 .item:nth-child(2) .el-image,
.image-type-3 .item:nth-child(2) .el-image,
.image-type-4 .item:nth-child(2) .el-image,
.image-type-5 .item:nth-child(2) .el-image,
.image-type-6 .item:nth-child(3) .el-image,
.image-type-7 .item:nth-child(2) .el-image,
.image-type-8 .item:nth-child(2) .el-image,
.image-type-9 .item:nth-child(3) .el-image {
  border-radius: 0 20px 0 0;
}

.image-type-1 .item {
  grid-column: span 6;
}

.image-type-2 .item,
.image-type-4 .item,
.image-type-5 .item:nth-child(1),
.image-type-5 .item:nth-child(2),
.image-type-7 .item,
.image-type-8 .item:nth-child(1),
.image-type-8 .item:nth-child(2) {
  grid-column: span 3;
}

.image-type-3 .item:nth-child(1) {
  grid-column: span 4;
  grid-row: span 2;
}

.image-type-3 .item:nth-child(2),
.image-type-3 .item:nth-child(3),
.image-type-5 .item,
.image-type-6 .item,
.image-type-7 .item:nth-child(5),
.image-type-7 .item:nth-child(6),
.image-type-7 .item:nth-child(7),
.image-type-8 .item,
.image-type-9 .item {
  grid-column: span 2;
}

/* 图片预览的弹窗 */
.top-content {
  position: fixed;
  padding: 5px 16px;
  top: 0;
  height: 44px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 17px;
  background-color: rgba(0, 0, 0, 1);
}

.close-icon {
  cursor: pointer;
}

.down-icon {
  visibility: hidden;
}

.bottom-tips {
  position: fixed;
  bottom: 0;
}

/* 语音 */
.audio-container {
  margin-top: 16px;
}

.audio-container .audio-item {
  position: relative;
  margin: 23px 15px 0;
}

.audio-bg {
  width: 100%;
  height: 160.554px;
  border-radius: 20px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: blur(5px);
}

.audio-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
}

.audio-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.duration {
  color: #fff;
  padding: 2.33px 6.98px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 9.23px;
  left: 8.93px;
}

.duration-text {
  font-size: 11.634px;
  letter-spacing: 0.465px;
  margin-right: 2.33px;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.progress-bar {
  position: absolute;
  bottom: 10px;
  left: 28px;
  right: 28px;
}

.progress-bar .el-slider__runway {
  height: 2px;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.3);
}

.progress-bar .el-slider__bar {
  height: 2px;
  background-color: #fff;
}

.progress-bar .el-slider__button-wrapper {
  display: none;
}

/* 视频 */
.video-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-content {
  width: 100%;
  object-fit: contain;
  border-radius: 20px 20px 0 0;
  height: 420px;
  background-color: #000;
}

.video-img .el-image {
  width: 100%;
  height: 100%;
  border-radius: 20px 20px 0 0;
  height: 420px;
}

.video-img .video-play {
  width: 76px;
  height: 76px;
}

/* 文件 */
.file-container {
  background-color: #F2F2F7;
  border-radius: 23.269px;
  margin: 20px 15px 0;
}

.file-item {
  padding: 25px 16px 0;
  cursor: pointer;
}

.file-item+.file-item {
  margin-top: 9px;
}

.file-item:last-child {
  padding-bottom: 25px;
}

.file-icon {
  width: 42px;
  height: 42px;
  margin-right: 10px;
}

.file-name {
  color: #111;
  font-size: 16px;
  font-weight: 500;
  word-break: break-word;
}

.file-size {
  color: rgba(0, 0, 0, 0.40);
  font-size: 12px;
}

.red-packet-container {
  padding: 20px 16px 0;
}

.red-packet-container .red-packet-box {
  border-radius: 20px;
  background: linear-gradient(270deg, #F83E3D 0%, #DD2F30 100%);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  cursor: default;
  height: 150px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.red-packet-container .red-packet-box .red-packet-icon-bg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.red-packet-container .red-packet-box .red-packet-icon {
  width: 42px;
  height: 42px;
  user-select: none;
  position: absolute;
  left: 25px;
  z-index: 2;
}

.red-packet-container .red-packet-box .red-packet-text {
  color: #FFDAAE;
  font-size: 18px;
  font-weight: 500;
  margin-left: 101px;
  letter-spacing: -0.113px;
}

.font-weight-bold {
  font-weight: bold;
}
/* 文字 */
.text-container {
  overflow: hidden;
  margin-top: 16px;
  padding: 0 15px;
  font-size: 17.452px;
  position: relative;
}

.text-container .text {
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: justify;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 14;
  position: relative;
  line-height: 1.5;
  /* max-height: 21em; */
  white-space: pre-wrap;
  transition: .3s max-height;
  word-break: break-word;
  user-select: text;
  padding: 0 5px;
}

.show-more {
  position: absolute;
  right: 15px;
  bottom: 0;
  background-color: #fff;
  display: flex;
  line-height: 1.5;
}

.more-dot {
  margin-right: 5px;
}

.show-more-btn {
  color: #067EFF;
  cursor: pointer;
  user-select: none;
}
.rich-container {
  margin-top: 10px;
  padding: 0 15px;
  font-size: 17.452px;
  overflow: hidden;
  word-break: break-word;
  user-select: text;
}
.rich-container img, .rich-container video {
  max-width: 100%;
  max-height: 100%;
}
.tag-list {
  padding: 0 20px 0 12px;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
}

.tag-list .tag-item {
  box-sizing: border-box;
  padding: 3px 10px;
  color: #067EFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  /* 128.571% */
  border-radius: 40px;
  background-color: rgba(6, 126, 255, 0.08);
  margin: 0 0 8px 8px;
}

.address-text {
  color: rgba(0, 0, 0, 0.40);
  font-size: 13.961px;
  font-style: normal;
  font-weight: 500;
  line-height: 20.942px;
  letter-spacing: -0.475px;
  margin-left: 4.65px;
}
.main-container-item {
  padding: 0 20px 0 12px;
  margin-top: 16px;
}

/* 表态区 */
.action-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
  padding: 0 15px;
  gap: 5px;
}

.action-content .interaction-item {
  display: flex;
  align-items: center;
  padding: 6px 14px 6px;
  border-radius: 100px;
  background: #F5F5F5;
  white-space: nowrap;
  overflow: hidden;
}

.action-content .interaction-item .split-line {
  margin: 0 5px;
  color: rgba(0, 0, 0, 0.20);
}
.action-content .interaction-item .like-text {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.60);
}

.view-count {
  display: flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.40);
  font-size: 13.961px;
}

.view-count .count {
  margin-left: 6px;
  white-space: nowrap;
}
.create-time {
  color: rgba(0, 0, 0, 0.40);
  font-size: 13.961px;
  margin-left: 4px;
}
.applet-icon {
  margin-right: 5px;
}
.applet-text {
  color: rgba(0, 0, 0, 0.60);
  font-size: 13.961px;
}

.action-content .icon {
  width: 24px;
  height: 24px;
}

.action-content .icon+.icon {
  margin-left: 10px;
}

.interaction-count {
  font-weight: 900;
  margin-left: 10px;
  white-space: nowrap;
}
.applet-icon {
  width: 20px;
  height: 20px;
}
/* 评论区 */
.comment {
  margin-top: 16px;
  padding: 0 15px 0 25px;
  justify-content: space-between;
}

.comment .avatar-content .el-avatar {
  margin-left: -10px;
  border: 2px solid #fff;
}

.comment-text {
  color: #39F;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.76px;
  margin-left: 12px;
  cursor: pointer;
}

.comment-popup-wrapper {
  height: 70%;
}

.comment-popup-wrapper.big {
  width: 50%;
  height: 50%;
  border-radius: 5px;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.comment-popup-wrapper:not(.big) .top-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.comment-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.comment-container .van-list {
  flex: 1;
  overflow: auto;
}

.comment-item {
  padding: 16px;
  display: flex;
}

.comment-name {
  color: rgba(0, 0, 0, 0.40);
  font-size: 12px;
}

.comment-time {
  color: rgba(0, 0, 0, 0.40);
  font-size: 12px;
  margin-top: 3px;
}

.user-tag {
  font-size: 11px;
  height: 18px;
  white-space: nowrap;
  line-height: 18px;
  text-align: center;
  border-radius: 20px;
  margin-left: 8px;
  padding: 0 4px;
}

.user-tag.creator-tag {
  color: #067EFF;
  background-color: #067EFF33;
}

.user-tag.admin-tag {
  color: #e6a23c;
  background-color: #fdf6ec;
}

.comment-content {
  margin-top: 4px;
  text-align: justify;
  overflow: hidden;
  position: relative;
}

.comment-content .text {
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: justify;
  line-height: 20px;
  position: relative;
  white-space: pre-wrap;
  transition: .3s height;
  word-break: break-word;
  user-select: text;
  font-size: 14px;
}

.comment-content .reply-name {
  color: #067EFF;
  margin-right: 5px;
}
