* {
  box-sizing: border-box;
}

/* 自定义弹窗样式 */
.invite-popup {
  display: flex;
  flex-direction: column;
  background: transparent !important;
  box-shadow: none !important;
}

/* 海报样式 */

.poster-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #e8f4ff;
}

.invite-code {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.code-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.code-value {
  font-size: 16px;
  font-weight: bold;
}

.qr-code {
  width: 80px;
  height: 80px;
}

/* 信息卡片样式 */
.info-card {
  width: 400px;
  background-color: white;
  border-radius: 20px;
  padding: 25px 24px 23px;
  overflow: hidden;
}

.info-item {
  display: flex;
  align-items: center; /* 垂直居中对齐 */
  padding: 15px;
  border-radius: 5px;
  background: rgba(196, 226, 254, 0.5);
  margin-bottom: 7px;
  overflow: hidden;
  width: 100%;
}

.btn-group {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: #323757;
  font-family: "PingFang SC";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 13px;
  flex-shrink: 0;
  width: 65px;
  margin-right: 10px; /* 添加右侧间距 */
  /* 81.25% */
}

.info-value {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  flex: 1; /* 占据剩余空间 */
  display: flex;
  align-items: center;
  position: relative; /* 为绝对定位的图标做准备 */
  padding-right: 25px; /* 为图标预留空间 */
  justify-content: flex-end; /* 添加这一行，让内容右对齐 */
  overflow: hidden;
}

/* 修改 needLink 和 needCode 样式确保右对齐 */
.needLink,
.needCode {
  text-align: right; /* 改为右对齐 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #323757; /* 与截图中保持一致的颜色 */
  font-weight: 500;
  width: 100%;
}

.copy-icon {
  width: 18px;
  height: 18px;
  position: absolute; /* 绝对定位 */
  right: 0; /* 靠右对齐 */
  top: 50%; /* 垂直居中 */
  transform: translateY(-50%); /* 精确垂直居中 */
  cursor: pointer;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  background: linear-gradient(90deg, #79bef3 0%, #177cff 100%);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  color: #fff;
  font-family: "PingFang SC";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.download-btn img {
  margin-right: 6px;
}

.close-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  cursor: pointer;
}

/* 添加下载相关样式 */
.downloadRef {
  width: 400px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.downloadRefBox {
  border-radius: 20px;
  overflow: hidden;
}

.downloadRef img {
  width: 100%;
  display: block;
}

.downloadBoottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 98px;
  background-color: #fff;
  padding: 0 20px;
}

.downloadBoottom .avatar {
  width: 68.524px;
  height: 68.524px;
  border-radius: 50px;
}

.downloadBoottom .codeWrap {
  color: #000;
  font-family: "PingFang SC";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 13px;
  /* 65% */
}

.downloadBoottom .codeWrap .code-label {
  color: #000;
  font-family: "PingFang SC";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 13px;
  /* 65% */
}

.downloadBoottom .codeWrap .code {
  margin-top: 19px;
  color: #000;
  font-family: "DIN Alternate";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  /* 54.167% */
  letter-spacing: 1.2px;
}

.codeWrap {
  flex: 1;
  padding: 0 15px;
}

.code {
  font-size: 16px;
  font-weight: bold;
}

#qrcode {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 防止内容溢出 */
}

#qrcode img {
  width: 90px !important;
  height: 90px !important;
  object-fit: contain;
  /* 确保图片完整显示 */
}

/* 添加媒体查询以适应不同屏幕尺寸 */
/* 默认尺寸保持不变，针对大屏幕 1920px及以上 */
.downloadRef,
.info-card {
  width: 414px;
}


@media screen and (max-width: 1600px) {

  .downloadRef,
  .info-card {
    width: 300px;
  }

  .invite-popup .layui-layer-content {
    width: 300px !important;
  }
}

/* 1366px宽度屏幕 */
@media screen and (max-width: 1366px) {

  .downloadRef,
  .info-card {
    width: 300px;
  }

  /* 调整弹窗宽度 */
  .invite-popup .layui-layer-content {
    width: 300px !important;
  }

  /* 调整底部区域大小 */
  .downloadBoottom {
    height: 85px;
    padding: 0 15px;
  }

  .downloadBoottom .avatar {
    width: 55px;
    height: 55px;
  }

  #qrcode,
  #qrcode img {
    width: 80px !important;
    height: 80px !important;
  }

  /* 调整文字大小 */
  .downloadBoottom .codeWrap .code-label {
    font-size: 18px;
  }

  .downloadBoottom .codeWrap .code {
    font-size: 22px;
    margin-top: 15px;
  }
}