/**
 * PisellLongText 组件样式
 * 基于 Figma 设计规范，与 SingleLineText 设计体系一致
 */

.pisell-long-text {
  &-edit {
    position: relative;
    width: 100%;
  }

  &-error {
    margin-top: 4px;
    font-size: 12px;
    color: #d92d20; // Error/600
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in-out;
  }

  &-read {
    .pisell-lowcode-typography {
      margin-bottom: 0;
    }
  }

  &-expand-btn {
    padding: 0;
    height: auto;
    font-size: 14px;
    margin-top: 8px;
    color: #6d48c4;

    &:hover {
      color: #6d48c4 !important;
    }
  }

  &-word-count {
    margin-top: 8px;
    font-size: 12px;
    color: #667085; // Gray/500
    text-align: right;
  }

  &-disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
}

// 错误提示淡入动画
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
