AI投递助手样式优化

This commit is contained in:
2026-07-10 10:01:07 +08:00
parent cf268520e1
commit 0e5c7d14d0
5 changed files with 671 additions and 30 deletions
@@ -392,3 +392,234 @@
}
}
}
// ==================== 浏览器插件安装教程抽屉 ====================
/* 遮罩层 */
.agent-browser-guide-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-browser-guide-drawer {
width: 9.6rem;
max-width: 9.6rem;
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;
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: 520;
color: $text-dark;
line-height: 0.24rem;
}
/* 内容区域 */
&__body {
flex: 1;
overflow-y: auto;
padding: 0 0.32rem 0.32rem;
display: flex;
flex-direction: column;
gap: 0.16rem;
}
/* 步骤卡片 */
&__card {
border: 1px solid #F0F0F0;
border-radius: 0.12rem;
padding: 0.16rem 0.2rem;
}
&__step-row {
display: flex;
align-items: flex-start;
gap: 0.12rem;
margin-bottom: 0.16rem;
}
&__step-num {
display: flex;
justify-content: center;
align-items: center;
width: 0.32rem;
height: 0.32rem;
background: #EDF9FA;
border-radius: 0.08rem;
font-size: 0.18rem;
font-weight: 520;
color: $accent;
flex-shrink: 0;
}
&__step-info {
flex: 1;
}
&__step-title {
font-size: 0.18rem;
font-weight: 520;
color: $text-dark;
line-height: 0.24rem;
margin: 0 0 0.04rem;
}
&__step-desc {
font-size: 0.14rem;
font-weight: 330;
color: $text-middle;
line-height: 0.19rem;
margin: 0;
}
/* 下载按钮区域 */
&__download-box {
display: flex;
align-items: center;
gap: 0.16rem;
padding: 0.04rem 0.04rem 0.04rem 0.16rem;
background: $bg-main;
border-radius: 0.12rem;
height: 0.44rem;
}
&__download-name {
font-size: 0.14rem;
font-weight: 450;
color: $text-dark;
line-height: 0.19rem;
}
&__download-btn {
display: flex;
align-items: center;
gap: 0.04rem;
padding: 0.08rem 0.12rem;
background: $accent;
border: none;
border-radius: 0.08rem;
color: $bg-white;
font-size: 0.14rem;
font-weight: 520;
cursor: pointer;
transition: background 0.2s;
&:hover {
background: $accent-hover;
}
}
/* 浏览器链接区域 */
&__browser-links {
display: flex;
align-items: flex-start;
gap: 0.24rem;
margin-bottom: 0.16rem;
}
&__browser-link {
display: flex;
align-items: center;
gap: 0.04rem;
padding: 0.12rem 0.16rem;
background: $bg-white;
border: 1px solid #F0F0F0;
border-radius: 0.08rem;
font-size: 0.14rem;
font-weight: 450;
color: $text-middle;
cursor: pointer;
transition: border-color 0.2s;
&:hover {
border-color: $accent;
}
svg {
flex-shrink: 0;
}
span {
white-space: nowrap;
}
}
&__copy-btn {
display: flex;
align-items: center;
gap: 0.04rem;
color: $accent;
font-size: 0.14rem;
font-weight: 450;
margin-left: 0.12rem;
}
/* 步骤示意图 */
&__step-img {
width: 100%;
max-width: 4rem;
border-radius: 0.08rem;
margin-top: 0.12rem;
}
}
/* 抽屉动画 */
.agent-browser-guide-drawer-enter-active,
.agent-browser-guide-drawer-leave-active {
transition: opacity 0.3s ease;
.agent-browser-guide-drawer {
transition: transform 0.3s ease;
}
}
.agent-browser-guide-drawer-enter-from,
.agent-browser-guide-drawer-leave-to {
opacity: 0;
.agent-browser-guide-drawer {
transform: translateX(100%);
}
}