findme-miniprogram-frontend/subpackages/qr/qr-code/qr-code.wxss
2025-12-27 17:16:03 +08:00

202 lines
No EOL
3.6 KiB
Text

/* 全局渐变背景 */
.qr-code-container {
min-height: 100vh;
background: linear-gradient(135deg, #64516A 0%, #553B73 30%, #103055 100%);
/* background-image: url(/images/code-img.png); */
background-size: cover; /* 图片自适应容器(常用) */
background-repeat: no-repeat; /* 禁止图片重复 */
background-position: center; /* 图片居中显示 */
color: #ffffff;
/* padding-bottom: 100rpx; */
}
/* 导航栏样式 */
.nav-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 100rpx 30rpx 30rpx;
position: relative;
z-index: 10;
}
.back-btn {
width: 60rpx;
height: 60rpx;
display: flex;
align-items: center;
justify-content: center;
}
.back-icon {
font-size: 40rpx;
font-weight: bold;
color: #ffffff;
}
.title {
font-size: 36rpx;
font-weight: 600;
color: #ffffff;
}
.right-buttons {
display: flex;
align-items: center;
}
.menu-btn {
width: 60rpx;
height: 60rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10rpx;
}
.menu-icon {
font-size: 24rpx;
color: #ffffff;
letter-spacing: 2rpx;
}
.theme-toggle {
width: 60rpx;
height: 60rpx;
display: flex;
align-items: center;
justify-content: center;
}
/* 主体内容样式 */
.main-content {
display: flex;
flex-direction: column;
align-items: center;
padding: 80rpx 30rpx 50rpx;
/* border: 1px solid red; */
}
/* 用户信息样式 */
.user-info {
color: #202020;
width: 73%;
/* border: 1px solid red; */
text-align: start;
margin-bottom: 70rpx;
}
.username {
font-size: 44rpx;
font-weight: 700;
/* color: #ffffff; */
margin-bottom: 15rpx;
display: block;
}
.user-id {
font-size: 30rpx;
display: block;
}
/* 二维码容器样式 */
.qr-code-box {
width: 460rpx;
height: 460rpx;
background-color: #000000;
border-radius: 40rpx;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.3);
margin-bottom: 40rpx;
position: relative;
}
.qr-code-image {
width: 420rpx;
height: 420rpx;
/* position: relative; */
/* background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1, #5f27cd); */
padding: 25rpx;
/* border-radius: 16rpx; */
}
/* 刷新按钮样式 */
.refresh-btn {
width: 200rpx;
height: 60rpx;
display: flex;
align-items: center;
justify-content: space-around;
background-color: rgba(255, 255, 255, .5);
border-radius: 12rpx;
padding: 16rpx 8rpx;
margin-bottom: 120rpx;
/* border: 1px solid rgba(255, 255, 255, .4); */
/* border: 1px solid red; */
}
.refresh-icon {
color: #ffffff;
margin-left: 10rpx;
width:35rpx;
height:35rpx;
/* height: 40rpx; */
/* border: 1px solid red; */
}
.refresh-text {
width: 160rpx;
height: 48rpx;
line-height: 48rpx;
text-align: center;
/* border: 1px solid red; */
font-size: 28rpx;
color: #000000;
}
/* 底部操作按钮区域样式 */
.action-buttons {
display: flex;
justify-content: space-around;
width: 100%;
padding: 0 60rpx;
position: fixed;
bottom: 80rpx;
left: 0;
}
.action-btn-out{
/* border: 1px solid red; */
width: 120rpx;
height: 180rpx;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: column;
}
.action-btn {
width: 120rpx;
height: 120rpx;
background-color: #202529;
border-radius: 24rpx;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.2),
0rpx -3rpx 2rpx rgba(255, 255, 255, 0.2);
/* border: 1px solid rgba(255, 255, 255, 0.15); */
}
.action-icon {
width: 70rpx;
height:70rpx;
opacity: 0.9;
}