dapaijizhang3/components/guide/guide.wxss

165 lines
2.8 KiB
Plaintext
Raw Normal View History

2025-11-20 16:42:59 +08:00
/* 新用户引导样式 */
/* 遮罩层 */
.guide-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
}
.guide-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.75);
}
/* 高亮区域(通过透明背景实现打洞效果)*/
.guide-spotlight {
position: absolute;
background: transparent;
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
z-index: 10000;
transition: all 0.3s ease;
}
/* 提示内容容器 */
.guide-content {
position: absolute;
z-index: 10001;
max-width: 600rpx;
transition: all 0.3s ease;
}
.guide-text-wrapper {
background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
border: 1rpx solid rgba(212, 175, 55, 0.3);
border-radius: 16rpx;
padding: 32rpx 28rpx 24rpx;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.8);
}
/* 箭头指示器 */
.guide-arrow {
position: absolute;
width: 0;
height: 0;
border: 20rpx solid transparent;
}
.guide-arrow.top {
bottom: 100%;
left: 50%;
margin-left: -20rpx;
border-bottom-color: #1A1A1A;
border-top: none;
}
.guide-arrow.bottom {
top: 100%;
left: 50%;
margin-left: -20rpx;
border-top-color: #1A1A1A;
border-bottom: none;
}
.guide-arrow.left {
right: 100%;
top: 50%;
margin-top: -20rpx;
border-right-color: #1A1A1A;
border-left: none;
}
.guide-arrow.right {
left: 100%;
top: 50%;
margin-top: -20rpx;
border-left-color: #1A1A1A;
border-right: none;
}
/* 文本样式 */
.guide-title {
font-size: 32rpx;
font-weight: bold;
color: #F4E6C3;
margin-bottom: 16rpx;
line-height: 1.4;
}
.guide-desc {
font-size: 26rpx;
color: #E0E0E0;
line-height: 1.6;
margin-bottom: 24rpx;
}
/* 底部操作栏 */
.guide-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 20rpx;
border-top: 1rpx solid rgba(212, 175, 55, 0.2);
}
/* 进度点 */
.guide-dots {
display: flex;
gap: 12rpx;
align-items: center;
}
.guide-dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background: #3A3A3A;
transition: all 0.3s ease;
}
.guide-dot.active {
width: 32rpx;
border-radius: 6rpx;
background: linear-gradient(135deg, #D4AF37 0%, #F4E6C3 100%);
box-shadow: 0 2rpx 8rpx rgba(212, 175, 55, 0.4);
}
/* 操作按钮 */
.guide-actions {
display: flex;
gap: 24rpx;
align-items: center;
}
.guide-skip {
font-size: 26rpx;
color: #B0B0B0;
padding: 8rpx 16rpx;
}
.guide-next {
font-size: 26rpx;
font-weight: 500;
color: #000000;
background: linear-gradient(135deg, #D4AF37 0%, #F4E6C3 100%);
padding: 12rpx 32rpx;
border-radius: 24rpx;
box-shadow: 0 4rpx 12rpx rgba(212, 175, 55, 0.4);
}
.guide-skip:active {
opacity: 0.6;
}
.guide-next:active {
opacity: 0.9;
transform: scale(0.98);
}