@use '../variables' as *; /* Agent岗位预览抽屉 — 从浏览器右侧弹出 */ /* 遮罩层 */ .agent-job-drawer-mask { position: fixed; top: 0; left: 0; width: 100vw; height: var(--app-height, 100vh); background: rgba(0, 0, 0, 0.3); z-index: 2000; display: flex; justify-content: flex-end; } /* 抽屉主体 */ .agent-job-drawer { width: 6.4rem; height: var(--app-height, 100vh); background: $bg-white; display: flex; flex-direction: column; font-size: 0.14rem; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08); /* 顶部标题栏 */ &__header { display: flex; align-items: center; justify-content: space-between; padding: 0.2rem 0.24rem; height: 0.64rem; box-sizing: border-box; } &__header-left { display: flex; align-items: center; gap: 0.16rem; } /* 关闭按钮 */ &__close { width: 0.24rem; height: 0.24rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } &__close-icon { width: 0.24rem; height: 0.24rem; color: $text-middle; } /* 标题文字 */ &__title { font-size: 0.18rem; font-weight: 620; color: $text-dark; line-height: 0.24rem; } /* 内容区域(可滚动) */ &__body { flex: 1; overflow-y: auto; padding: 0.24rem; } /* 岗位标题区域 */ &__job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.24rem; margin-bottom: 0.24rem; } &__job-info { flex: 1; min-width: 0; } /* 岗位标题 */ &__job-title { font-size: 0.24rem; font-weight: 620; color: $text-dark; line-height: 0.32rem; margin: 0 0 0.08rem; } /* 元信息 */ &__meta { font-size: 0.12rem; color: $text-middle; line-height: 0.16rem; font-weight: 330; } /* 匹配度环 */ &__match { position: relative; width: 0.62rem; height: 0.62rem; flex-shrink: 0; } &__ring-svg { width: 100%; height: 100%; } &__match-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.14rem; font-weight: 630; color: #9FD051; } /* 内容段落 */ &__section { margin-bottom: 0.24rem; } &__section-title { font-size: 0.18rem; font-weight: 600; color: $text-dark; line-height: 0.24rem; margin-bottom: 0.16rem; /* 加分项标题样式 */ &--bonus { font-size: 0.14rem; font-weight: 330; color: $text-dark; line-height: 0.19rem; } } &__section-content { font-size: 0.14rem; color: $text-middle; line-height: 0.19rem; font-weight: 330; white-space: pre-wrap; word-break: break-word; } /* 技能标签 */ &__tags { display: flex; flex-wrap: wrap; gap: 0.08rem; margin-bottom: 0.12rem; } &__tag { display: flex; justify-content: center; align-items: center; padding: 0.04rem 0.06rem; background: $bg-main; border-radius: 0.04rem; font-size: 0.12rem; color: $text-middle; line-height: 0.18rem; font-weight: 330; } /* 公司概况 */ &__company { display: flex; flex-direction: column; gap: 0.12rem; } &__company-row { display: flex; align-items: flex-start; gap: 0.12rem; } &__company-logo { width: 0.48rem; height: 0.48rem; border-radius: 0.08rem; overflow: hidden; flex-shrink: 0; background: #EDF9FA; display: flex; align-items: center; justify-content: center; img { width: 100%; height: 100%; object-fit: cover; } svg { width: 0.32rem; height: 0.32rem; } } &__company-info { display: flex; flex-direction: column; gap: 0.06rem; } &__company-name { font-size: 0.18rem; font-weight: 620; color: $text-dark; line-height: 0.24rem; } &__company-detail { font-size: 0.14rem; font-weight: 400; color: $text-middle; line-height: 0.19rem; } &__company-desc { font-size: 0.14rem; font-weight: 330; color: $text-middle; line-height: 0.24rem; } } /* 抽屉动画 */ .agent-job-drawer-enter-active, .agent-job-drawer-leave-active { transition: opacity 0.3s ease; .agent-job-drawer { transition: transform 0.3s ease; } } .agent-job-drawer-enter-from, .agent-job-drawer-leave-to { opacity: 0; .agent-job-drawer { transform: translateX(100%); } }