@use '../variables' as *; // ==================== 简历评估问题修复抽屉 ==================== // 遮罩层 .fix-drawer-overlay { position: fixed; inset: 0; background: $overlay-bg; z-index: 2000; } // 遮罩层过渡动画 .fix-drawer-overlay-enter-active, .fix-drawer-overlay-leave-active { transition: opacity 0.3s ease; } .fix-drawer-overlay-enter-from, .fix-drawer-overlay-leave-to { opacity: 0; } // 抽屉主体 .fix-drawer { position: fixed; top: 0; right: 0; width: 8rem; height: var(--app-height, 100vh); background: $bg-main; z-index: 2001; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08); font-size: 0.14rem; // ---- 顶部栏 ---- &__header { display: flex; align-items: center; gap: 0.1rem; padding: 0.16rem 0.24rem; border-bottom: 1px solid $border-color; background: $bg-white; flex-shrink: 0; } &__close-btn { width: 0.28rem; height: 0.28rem; border-radius: 50%; border: none; background: none; color: $text-dark; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; &:hover { background: $bg-main; color: $accent; } } &__close-icon { width: 0.16rem; height: 0.16rem; } &__title { font-size: 0.18rem; font-weight: 700; color: $text-dark; margin: 0; } // ---- 可滚动内容区 ---- &__body { flex: 1; overflow-y: auto; padding: 0.2rem 0.24rem 0.4rem; } // ---- 通用区块 ---- &__section { margin-bottom: 0.2rem; } &__section-title { font-size: 0.14rem; font-weight: 600; color: $text-dark; margin: 0 0 0.1rem 0; } &__card { background: $bg-white; border-radius: 0.1rem; padding: 0.2rem; } // ---- 原文 ---- &__original-text { font-size: 0.13rem; color: $text-dark; line-height: 1.8; margin: 0; white-space: pre-wrap; word-break: break-all; } // ---- 问题检查 ---- &__label { font-size: 0.13rem; font-weight: 700; color: $text-dark; margin: 0.14rem 0 0.06rem 0; &:first-child { margin-top: 0; } } &__text { font-size: 0.13rem; color: $text-dark; line-height: 1.8; margin: 0; white-space: pre-wrap; word-break: break-all; } // ---- AI 改进后的版本(差异高亮) ---- &__diff-text { font-size: 0.13rem; color: $text-dark; line-height: 1.8; margin: 0; white-space: pre-wrap; word-break: break-all; } // 差异高亮样式 — 品牌色背景 &__highlight { background-color: rgba($accent, 0.2); border-radius: 2px; padding: 0 1px; } // ---- 自己改写 ---- &__textarea { width: 100%; min-height: 0.5rem; font-size: 0.13rem; color: $text-dark; line-height: 1.8; border: none; border-bottom: 1px solid $border-color; outline: none; resize: none; overflow: hidden; background: transparent; font-family: inherit; box-sizing: border-box; padding: 0.1rem 0; // 让 textarea 根据内容自动撑高 field-sizing: content; &:last-of-type { border-bottom: none; } &::placeholder { color: $text-light; } } &__textarea-footer { display: flex; justify-content: flex-end; margin-top: 0.1rem; } &__ai-btn { font-size: 0.13rem; font-weight: 500; color: $bg-white; background: $btn-dark; border: none; border-radius: 0.16rem; padding: 0.06rem 0.2rem; cursor: pointer; transition: background 0.2s; &:hover { background: $btn-dark-hover; } } // ---- AI 润色结果 ---- &__polish-text { font-size: 0.13rem; color: $text-dark; line-height: 1.8; margin: 0; padding: 0.08rem 0; border-bottom: 1px solid $border-color; white-space: pre-wrap; word-break: break-all; &:last-of-type { border-bottom: none; } } &__replace-btn { font-size: 0.13rem; font-weight: 500; color: $bg-white; background: $btn-dark; border: none; border-radius: 0.16rem; padding: 0.06rem 0.2rem; cursor: pointer; transition: background 0.2s; &:hover { background: $btn-dark-hover; } } // ---- 评价卡片(始终显示,独立盒子) ---- &__feedback-card { display: flex; align-items: center; justify-content: space-between; } &__feedback-label { font-size: 0.12rem; color: $text-middle; flex-shrink: 0; } &__feedback-actions { display: flex; align-items: center; gap: 0.1rem; } &__feedback-btn { display: flex; align-items: center; gap: 0.03rem; font-size: 0.12rem; color: $text-light; background: none; border: none; cursor: pointer; padding: 0.03rem 0.06rem; border-radius: 0.04rem; transition: color 0.2s; &:hover { color: $text-dark; } // 选中态 &--active { color: $accent; } } &__feedback-icon { width: 0.14rem; height: 0.14rem; flex-shrink: 0; // 无用按钮的图标翻转朝下 &--down { transform: rotate(180deg); } } // ---- 底部提交按钮 ---- &__footer { padding: 0.16rem 0.24rem; display: flex; justify-content: center; flex-shrink: 0; background: $bg-main; border-top: 1px solid $border-color; } &__submit-btn { width: 2.4rem; padding: 0.12rem 0; font-size: 0.15rem; font-weight: 600; color: $bg-white; background: $btn-dark; border: none; border-radius: 0.24rem; cursor: pointer; transition: background 0.2s; &:hover { background: $btn-dark-hover; } } } // 抽屉滑入动画 .fix-drawer-slide-enter-active, .fix-drawer-slide-leave-active { transition: transform 0.3s ease; } .fix-drawer-slide-enter-from, .fix-drawer-slide-leave-to { transform: translateX(100%); }