// 星妈实验室发布页面样式
.xingmalabpublishpage {
  width: 750rpx;
  height: 1624rpx;
  left: 0rpx;
  top: 0rpx;
  position: absolute;
  
  .xingmalabpublishpagebg {
    width: 750rpx;
    height: 1624rpx;
    left: 0rpx;
    top: 0rpx;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  // 未选择状态
  .xingmalabpublishpagenosel {
    width: 750rpx;
    height: 1416rpx;
    left: 0rpx;
    top: 208rpx;
    position: absolute;
    
    .xingmalabpublishpagenoseltextplaceholder {
      width: 263rpx;
      height: 31rpx;
      left: 41rpx;
      top: 953rpx;
      position: absolute;
      font-size: 32rpx;
      line-height: 31rpx;
      color: rgba(189, 191, 195, 1);
    }
    
    .xingmalabpublishpagenoselbottomcon {
      width: 750rpx;
      height: 218rpx;
      left: 0rpx;
      top: 1198rpx;
      position: absolute;
      
      .xingmalabpublishpagenoselbottomconbg {
        width: 750rpx;
        height: 218rpx;
        left: 0rpx;
        top: 0rpx;
        position: absolute;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
      }
      
      .xingmalabpublishpagenoselbottomconbtn {
        width: 686rpx;
        height: 94rpx;
        left: 32rpx;
        top: 32rpx;
        position: absolute;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        
        transition: opacity 0.3s ease;
        
        &:hover {
          opacity: 0.8;
        }
      }
    }
    
    .xingmalabpublishpagenoselbtn {
      width: 686rpx;
      height: 912rpx;
      left: 32rpx;
      top: 0rpx;
      position: absolute;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      
      transition: opacity 0.3s ease;
      
      &:hover {
        opacity: 0.8;
      }
    }
  }
  
  // 选择状态
  .xingmalabpublishpagesel {
    width: 750rpx;
    height: 1416rpx;
    left: 0rpx;
    top: 208rpx;
    position: absolute;
    
    .xingmalabpublishpagenoseltext {
      width: 295rpx;
      height: 31rpx;
      left: 33rpx;
      top: 949rpx;
      position: absolute;
      font-size: 32rpx;
      line-height: 31rpx;
      color: rgba(29, 30, 37, 1);
    }
    
    // 藏品图片上传区域
    .collection-image-area {
      position: absolute;
      left: 32rpx;
      top: 200rpx;
      width: 686rpx;
      height: 400rpx;
      
      .upload-placeholder {
        width: 100%;
        height: 100%;
        border: 2rpx dashed #ddd;
        border-radius: 16rpx;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        
        transition: all 0.3s ease;
        
        &:hover {
          border-color: #007aff;
          background-color: #f0f8ff;
        }
        
        .upload-icon {
          font-size: 80rpx;
          color: #999;
          margin-bottom: 20rpx;
        }
        
        .upload-text {
          font-size: 28rpx;
          color: #666;
        }
      }
      
      .uploaded-image-container {
        width: 100%;
        height: 100%;
        position: relative;
        
        .uploaded-image {
          width: 100%;
          height: 100%;
          border-radius: 16rpx;
          object-fit: cover;
          
        }
        
        .reupload-btn {
          position: absolute;
          bottom: 20rpx;
          right: 20rpx;
          background-color: rgba(0, 0, 0, 0.7);
          color: white;
          padding: 12rpx 24rpx;
          border-radius: 20rpx;
          font-size: 24rpx;
          
          transition: all 0.3s ease;
          
          &:hover {
            background-color: rgba(0, 0, 0, 0.9);
          }
        }
      }
    }
    
    // 藏品文案介绍区域
    .collection-description-area {
      position: absolute;
      left: 32rpx;
      top: 650rpx;
      width: 686rpx;
      height: 200rpx;
      
      .description-textarea {
        width: 100%;
        height: 160rpx;
        border: 2rpx solid #e0e0e0;
        border-radius: 16rpx;
        padding: 20rpx;
        font-size: 28rpx;
        line-height: 1.5;
        resize: none;
        background-color: white;
        
        &:focus {
          border-color: #007aff;
          outline: none;
        }
      }
      
      .word-count {
        position: absolute;
        bottom: 10rpx;
        right: 20rpx;
        font-size: 24rpx;
        color: #999;
      }
    }
    
    .xingmalabpublishpageselbottomcon {
      width: 750rpx;
      height: 218rpx;
      left: 0rpx;
      top: 1198rpx;
      position: absolute;
      
      .xingmalabpublishpageselbottomconpublishbtnbg {
        width: 750rpx;
        height: 218rpx;
        left: 0rpx;
        top: 0rpx;
        position: absolute;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
      }
      
      .xingmalabpublishpageselbottomconpublishbtn {
        width: 686rpx;
        height: 94rpx;
        left: 32rpx;
        top: 32rpx;
        position: absolute;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        
        transition: opacity 0.3s ease;
        
        &:hover {
          opacity: 0.8;
        }
      }
    }
    
    .xingmalabpublishpageselpic {
      width: 686rpx;
      height: 912rpx;
      left: 32rpx;
      top: 0rpx;
      position: absolute;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
    }
    
    .xingmalabpublishpageselcpver {
      width: 686rpx;
      height: 189rpx;
      left: 32rpx;
      top: 723rpx;
      position: absolute;
      opacity: 0.3;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
    }
    
    .xingmalabpublishpageselretry {
      width: 270rpx;
      height: 76rpx;
      left: 240rpx;
      top: 804rpx;
      position: absolute;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      
      transition: opacity 0.3s ease;
      
      &:hover {
        opacity: 0.8;
      }
    }
  }
  
  // 成功状态
  .xingmalabpublishpagesuc {
    width: 750rpx;
    height: 1413rpx;
    left: 0rpx;
    top: 211rpx;
    position: absolute;
    
    .xingmalabpublishpagesucbottomconicon {
      width: 125rpx;
      height: 148rpx;
      left: 312rpx;
      top: 0rpx;
      position: absolute;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
    }
    
    .xingmalabpublishpagesucbottomcon {
      width: 750rpx;
      height: 218rpx;
      left: 0rpx;
      top: 1195rpx;
      position: absolute;
      
      .xingmalabpublishpagesucbottomconbg {
        width: 750rpx;
        height: 218rpx;
        left: 0rpx;
        top: 0rpx;
        position: absolute;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
      }
      
      .xingmalabpublishpagesucbottomconbtn {
        width: 686rpx;
        height: 94rpx;
        left: 32rpx;
        top: 32rpx;
        position: absolute;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        
        transition: opacity 0.3s ease;
        
        &:hover {
          opacity: 0.8;
        }
      }
    }
    
    .xingmalabpublishpagesucdesc {
      width: 538rpx;
      height: 117rpx;
      left: 111rpx;
      top: 191rpx;
      position: absolute;
      font-size: 30rpx;
      color: rgba(29, 30, 37, 1);
      line-height: 1.5;
      text-align: center;
    }
    
    .xingmalabpublishpagesucpicbg {
      width: 576rpx;
      height: 812rpx;
      left: 87rpx;
      top: 341rpx;
      position: absolute;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
    }
    
    .xingmalabpublishpagesucpic {
      width: 534rpx;
      height: 708rpx;
      left: 108rpx;
      top: 356rpx;
      position: absolute;
      object-fit: cover;
      border-radius: 16rpx;
    }
    
    .xingmalabpublishpagesucnum {
      width: 222rpx;
      height: 25rpx;
      left: 271rpx;
      top: 1081rpx;
      position: absolute;
      font-size: 32rpx;
      line-height: 25rpx;
      color: rgba(178, 124, 30, 1);
      text-align: center;
    }
  }
}

// 确认发布弹窗样式
.confirm-popup {
  background: white;
  border-radius: 24rpx;
  padding: 40rpx;
  width: 600rpx;
  max-width: 90vw;
  
  .confirm-title {
    font-size: 36rpx;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40rpx;
    color: #333;
  }
  
  .confirm-content {
    margin-bottom: 40rpx;
    
    .confirm-image {
      width: 100%;
      height: 300rpx;
      margin-bottom: 20rpx;
      border-radius: 16rpx;
      overflow: hidden;
      
      image {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    
    .confirm-description {
      font-size: 28rpx;
      color: #666;
      line-height: 1.5;
      text-align: center;
      padding: 20rpx;
      background-color: #f8f9fa;
      border-radius: 12rpx;
      min-height: 80rpx;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  
  .confirm-actions {
    display: flex;
    gap: 20rpx;
    
    .confirm-btn {
      flex: 1;
      height: 80rpx;
      border-radius: 40rpx;
      font-size: 28rpx;
      border: none;
      
      transition: all 0.3s ease;
      
      &.cancel {
        background-color: #f0f0f0;
        color: #666;
        
        &:hover {
          background-color: #e0e0e0;
        }
      }
      
      &.confirm {
        background-color: #007aff;
        color: white;
        
        &:hover {
          background-color: #0056cc;
        }
      }
    }
  }
}

// 响应式适配
@media screen and (max-width: 750px) {
  .xingmalabpublishpage {
    width: 100vw;
    height: 100vh;
    
    .xingmalabpublishpagebg,
    .xingmalabpublishpagenosel,
    .xingmalabpublishpagesel,
    .xingmalabpublishpagesuc {
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
    }
    
    .collection-image-area,
    .collection-description-area {
      position: relative;
      left: auto;
      top: auto;
      margin: 20rpx auto;
      width: 90%;
    }
  }
}

// 动画效果
.xingmalabpublishpage {
  .xingmalabpublishpagenosel,
  .xingmalabpublishpagesel,
  .xingmalabpublishpagesuc {
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .collection-image-area,
  .collection-description-area {
    animation: slideInUp 0.8s ease-out 0.3s both;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// 上传状态样式
.upload-placeholder {
  &.uploading {
    opacity: 0.7;
    pointer-events: none;
  }
}

// 文案输入框焦点样式
.description-textarea {
  &:focus {
    box-shadow: 0 0 0 4rpx rgba(0, 122, 255, 0.2);
  }
}
