@use '../variables' as *; // ==================== Agent匹配岗位添加组件样式 ==================== .agent-match-job-add { background: $bg-white; border-radius: 0.12rem; height: 100%; display: flex; flex-direction: column; // 顶部标题栏 &__header { display: flex; align-items: center; justify-content: space-between; padding: 0.18rem 0.2rem; border-bottom: 1px solid $border-color; flex-shrink: 0; } // 标题文字 &__title { font-size: 0.16rem; font-weight: 700; color: $text-dark; } // 右侧操作区 &__actions { display: flex; align-items: center; gap: 0.1rem; } // 全部添加按钮 &__add-all-btn { height: 0.32rem; padding: 0 0.16rem; background: $bg-white; color: $text-dark; border: 1px solid $border-color; border-radius: 0.16rem; font-size: 0.12rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; line-height: 0.3rem; &:hover { border-color: $text-dark; } } // 关闭按钮 &__close-btn { width: 0.28rem; height: 0.28rem; border: none; background: transparent; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; svg { width: 0.24rem; height: 0.24rem; } } // 岗位列表容器(可滚动) &__list { flex: 1; overflow-y: auto; padding: 0.12rem 0.2rem; // 自定义滚动条 &::-webkit-scrollbar { width: 4px; } &::-webkit-scrollbar-thumb { background: $border-color; border-radius: 2px; } &::-webkit-scrollbar-track { background: transparent; } } // 单个岗位项 &__item { display: flex; align-items: center; justify-content: space-between; padding: 0.14rem 0; border-bottom: 1px solid $border-color; &:last-child { border-bottom: none; } } // 左侧信息区域 &__info { display: flex; align-items: center; gap: 0.12rem; flex: 1; min-width: 0; cursor: pointer; } // 公司 Logo &__logo { width: 0.36rem; height: 0.36rem; border-radius: 0.06rem; background: $bg-main; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: $text-middle; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; } svg { width: 0.2rem; height: 0.2rem; } } // 岗位详情 &__detail { min-width: 0; } // 公司名称 &__company { font-size: 0.14rem; font-weight: 600; color: $text-dark; line-height: 1.4; } // 岗位名称 &__position { font-size: 0.12rem; color: $text-middle; line-height: 1.4; margin-bottom: 0.04rem; } // 标签行 &__tags { display: flex; gap: 0.06rem; flex-wrap: wrap; } // 单个标签 &__tag { font-size: 0.11rem; color: $text-middle; background: $bg-main; padding: 0.02rem 0.08rem; border-radius: 0.03rem; } // 右侧:匹配度 + 按钮 &__right { display: flex; align-items: center; gap: 0.12rem; flex-shrink: 0; } // 匹配度环形容器 &__score { position: relative; width: 0.44rem; height: 0.44rem; flex-shrink: 0; } // 环形 SVG &__ring { width: 100%; height: 100%; } // 匹配度数字 &__score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.11rem; font-weight: 600; color: $text-dark; } // 添加/移除按钮 &__action-btn { height: 0.32rem; padding: 0 0.16rem; border-radius: 0.16rem; font-size: 0.12rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; line-height: 0.3rem; white-space: nowrap; border: 1px solid $text-dark; background: $bg-white; color: $text-dark; &:hover { background: $text-dark; color: $bg-white; } &:disabled { opacity: 0.5; cursor: not-allowed; } // 移除状态 — 深色背景 &--remove { background: $text-dark; color: $bg-white; border-color: $text-dark; &:hover { opacity: 0.85; } } } // 底部查看更多 &__footer { padding: 0.14rem 0.2rem; border-top: 1px solid $border-color; flex-shrink: 0; text-align: center; } // 查看更多按钮 &__more-btn { font-size: 0.12rem; color: $text-middle; background: transparent; border: none; cursor: pointer; text-decoration: underline; padding: 0; &:hover { color: $text-dark; } } }