最终选定
方案 E · 液态毛玻璃 + ✦ 金 icon
C 的胶囊壳子 · 不透明度从 .85 降到 .55(更透)· icon 换成 A 的 ✦ 金色
关键参数(前端实现锚点)
| 属性 | 值 | 说明 |
| 底色 alpha | rgba(255,255,255,.55) | 从 C 的 .85 降到 .55,更透,毛玻璃感更强 |
| backdrop-filter | blur(20px) saturate(160%) | +saturate 让背景透过去时颜色更饱和、更"液态" |
| icon | ✦ · 颜色 #C8965A | 来自方案 A 的金色 sparkle,比 ▶ 更暗示"AI/概念" |
| 圆角 | 22px(高的一半) | 胶囊形 |
| 尺寸 | 高 44rpx · padding 0 18px | 小程序 rpx 自动适配;和微信原生按钮高度一致 |
| 位置 | absolute · right 32rpx · bottom 36rpx | 避开 home indicator |
代码 ①|H5 / 通用 CSS(设计/UI 参考)
<button class="ai-cta">
<span class="ai-cta__icon">✦</span>
<span class="ai-cta__text">AI 体验</span>
</button>
<style>
.ai-cta {
position: absolute;
right: 16px;
bottom: 18px;
height: 44px;
padding: 0 18px;
border: 1px solid rgba(255,255,255,.4);
border-radius: 22px;
/* —— 关键:液态毛玻璃 —— */
background: rgba(255,255,255,.55);
backdrop-filter: blur(20px) saturate(160%);
-webkit-backdrop-filter: blur(20px) saturate(160%);
/* —— 文本 & 阴影 —— */
color: #1A1A1A;
font-size: 14px;
font-weight: 700;
letter-spacing: .5px;
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
box-shadow:
0 6px 18px rgba(20,15,8,.18),
inset 0 1px 0 rgba(255,255,255,.55);
transition: transform .15s ease, background .15s ease;
}
.ai-cta:active { transform: scale(.97); background: rgba(255,255,255,.65); }
.ai-cta__icon {
font-size: 14px;
line-height: 1;
color: #C8965A; /* 金色 ✦ */
}
</style>
代码 ②|微信小程序 WXML + WXSS(前端直接用)
<!-- pages/concept/concept.wxml -->
<button class="ai-cta" bindtap="onTapAiExp" hover-class="ai-cta--hover">
<text class="ai-cta__icon">✦</text>
<text class="ai-cta__text">AI 体验</text>
</button>
/* pages/concept/concept.wxss */
.ai-cta {
position: absolute;
right: 32rpx;
bottom: 36rpx;
height: 88rpx;
padding: 0 36rpx;
border: 2rpx solid rgba(255,255,255,.4);
border-radius: 44rpx;
background: rgba(255,255,255,.55);
backdrop-filter: blur(20px) saturate(160%);
-webkit-backdrop-filter: blur(20px) saturate(160%);
color: #1A1A1A;
font-size: 28rpx;
font-weight: 700;
letter-spacing: 1rpx;
display: flex;
align-items: center;
line-height: 1;
box-shadow:
0 12rpx 36rpx rgba(20,15,8,.18),
inset 0 2rpx 0 rgba(255,255,255,.55);
z-index: 10;
}
.ai-cta--hover {
transform: scale(.97);
background: rgba(255,255,255,.65) !important;
}
.ai-cta__icon {
font-size: 28rpx;
margin-right: 12rpx;
color: #C8965A; /* 金色 ✦ */
}
.ai-cta__text {
font-size: 28rpx;
}
/* 去掉小程序 button 默认边框 / 灰底 */
.ai-cta::after { border: none; }
.ai-cta[plain] { background: rgba(255,255,255,.55); }
// pages/concept/concept.js 片段
Page({
onTapAiExp() {
wx.reportEvent && wx.reportEvent('ai_btn_click', { source: 'concept' })
wx.navigateTo({ url: '/pages/ai-exp/ai-exp' })
}
})
兼容性 · 必看
backdrop-filter 在 iOS Safari ≥ 9、Android Chrome ≥ 76、微信小程序基础库 ≥ 2.13 起支持。低版本会降级为纯白底(看起来还是干净的胶囊,不会破)。
如果要兜底保毛玻璃效果,可加 @supports not (backdrop-filter: blur()) 把背景改成 rgba(255,255,255,.85),或者放一张半透模糊图当背景。