/**
 * PisellSingleLineText 组件样式
 * 不依赖全局 antd token，使用内置样式
 */

.pisell-single-line-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 {
    display: inline-block;
    line-height: 1.5;
  }

  &-link {
    transition: color 0.2s ease-in-out;

    &:hover {
      color: #6D48C4 !important; // 项目统一 hover 色
    }

    &:active {
      color: #5F3DA8 !important; // 项目统一 active 色
    }

    &:focus {
      outline: 2px solid rgba(127, 86, 218, 0.2);
      outline-offset: 2px;
    }
  }

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

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