// 星妈实验室详情页面样式
.xingmalabdetailpage {
  width: 750rpx;
  height: calc(100vh - 218rpx);
  left: 0rpx;
  top: 0rpx;
  overflow-y: auto;
  position: absolute;

  // 左上角头部区域 - 脱离滚动
  .xingmalabdetailpageheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 750rpx;
    height: 200rpx;
    z-index: 100;
    display: flex;
    align-items: center;
    // justify-content: space-between;
    padding: 80rpx 40rpx 30rpx 40rpx;
    background-color: #fff;
    box-sizing: border-box;

    // 返回按钮
    .xingmalabdetailpagebackbtn {
      width: 20rpx;
      height: 33rpx;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      // cursor: pointer;
      z-index: 101;
      margin-right: 35rpx;
    }

    // 用户信息
    .xingmalabdetailpageuserinfo {
      display: flex;
      align-items: center;
      gap: 10rpx;

      // 头像
      .xingmalabdetailpageavatar {
        width: 66rpx;
        height: 66rpx;
        border-radius: 50%;
        object-fit: contain;
        background-color: #f8f9fa;
      }

      // 昵称
      .xingmalabdetailpagenickname {
        font-size: 28rpx;
        font-weight: 600;
        color: #1d1e25;
        text-shadow: 0 2rpx 4rpx rgba(255, 255, 255, 0.8);
        max-width: 300rpx;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }

  .xingmalabdetailpagebg {
    width: 750rpx;
    height: 1842rpx;
    left: 0rpx;
    top: 0rpx;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  // 文本和时间容器
  .xingmalabdetailpagecontent {
    width: 688rpx;
    left: 31rpx;
    top: 1232rpx;
    position: absolute;
    // 确保内容不被底部固定容器遮挡
    z-index: 1;
  }

  .xingmalabdetailpagetext {
    width: 100%;
    min-height: 131rpx;
    white-space: pre-wrap;
    position: relative;
    font-size: 32rpx;
    line-height: 50rpx;
    color: rgba(29, 30, 37, 1);
    text-align: left;
    word-wrap: break-word;
    word-break: break-all;
    // 移除固定高度，让内容自适应
    height: auto;
    display: block;
  }

  .xingmalabdetailpagepicbg {
    width: 730rpx;
    height: 1030rpx;
    left: 10rpx;
    top: 191rpx;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .xingmalabdetailpagepic {
    width: 688rpx;
    height: 914rpx;
    left: 31rpx;
    top: 207rpx;
    border-radius: 24rpx;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f8f9fa;
  }

  .xingmalabdetailpagenum {
    width: 348rpx;
    height: 26rpx;
    left: 207rpx;
    top: 1144rpx;
    position: absolute;
    font-size: 28rpx;
    line-height: 26rpx;
    color: rgba(178, 124, 30, 1);
    text-align: center;
  }

  .xingmalabdetailpagebottomcon {
    width: 750rpx;
    height: 218rpx;
    left: 0rpx;
    bottom: 0rpx;
    background-color: #fff;
    position: fixed;

    .xingmalabdetailpagebottomconbg {
      width: 750rpx;
      height: 218rpx;
      left: 0rpx;
      top: 0rpx;
      position: absolute;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
    }

    .xingmalabdetailpagebottomconlikebtn {
      width: 119rpx;
      height: 44rpx;
      left: 135rpx;
      top: 56rpx;
      position: absolute;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;

      transition: opacity 0.3s ease;

      &:hover {
        opacity: 0.8;
      }
    }

    .xingmalabdetailpagebottomconsharebtn {
      width: 121rpx;
      height: 42rpx;
      left: 498rpx;
      top: 58rpx;
      position: absolute;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      border: none;
      padding: 0;
      margin: 0;
      line-height: 1;
      font-size: 0;
      color: transparent;
      background-color: transparent !important;
      transition: opacity 0.3s ease;

      // &:hover {
      //   opacity: 0.8;
      // }

      &::after {
        border: none !important;
      }
    }
  }

  .xingmalabdetailpagetime {
    width: 203rpx;
    height: 23rpx;
    margin-top: 20rpx;
    position: relative;
    font-size: 24rpx;
    line-height: 23rpx;
    color: rgba(111, 109, 103, 1);
    display: block;
  }
}

// 手机号授权按钮样式
.phone-auth-btn-cover {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  color: transparent !important;

  &::after {
    border: none !important;
  }
}

// 授权覆盖层样式
.auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;

  .auth-like-btn {
    position: absolute;
    width: 119rpx;
    height: 44rpx;
    left: 135rpx;
    top: 56rpx;
  }

  .auth-share-btn {
    position: absolute;
    width: 121rpx;
    height: 42rpx;
    left: 498rpx;
    top: 58rpx;
  }
}
