169 lines
3.4 KiB
Plaintext
169 lines
3.4 KiB
Plaintext
page {
|
|
background-color: #f6f6f6;
|
|
}
|
|
|
|
.page-container {
|
|
background-color: #f6f6f6;
|
|
padding: 0 24rpx;
|
|
box-sizing: border-box;
|
|
padding-bottom: 160rpx; // 为底部按钮预留空间
|
|
|
|
.empty {
|
|
height: 50rpx;
|
|
}
|
|
}
|
|
|
|
.wrapper {
|
|
background-color: #ffffff;
|
|
border-radius: 20rpx;
|
|
padding: 36rpx 24rpx;
|
|
box-shadow: 0 6rpx 8rpx rgba(0, 0, 0, 0.15);
|
|
margin: 30rpx 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.wrapper-title {
|
|
font-size: 32rpx;
|
|
color: #141414;
|
|
margin-bottom: 36rpx;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
|
|
.canvas-wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 400rpx;
|
|
background: #f8f9fa;
|
|
border-radius: 12rpx;
|
|
border: 2rpx dashed #dee2e6;
|
|
}
|
|
|
|
.canvas-content {
|
|
max-width: 100%;
|
|
border-radius: 8rpx;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
}
|
|
|
|
/* 数字选择区域 */
|
|
.number-selection-area {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
margin-top: 40rpx;
|
|
}
|
|
|
|
.number-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 40rpx;
|
|
width: 100%;
|
|
}
|
|
|
|
.number-item {
|
|
height: 90rpx;
|
|
background: #ffffff;
|
|
border: 2rpx solid #e8e8e8;
|
|
border-radius: 16rpx;
|
|
padding: 24rpx;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease-in-out;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
flex: 1;
|
|
min-width: 0;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08), 0 2rpx 4rpx rgba(0, 0, 0, 0.06);
|
|
|
|
&:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1), 0 1rpx 2rpx rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
&.active {
|
|
border-color: #93d333;
|
|
box-shadow: 0 4rpx 16rpx rgba(147, 211, 51, 0.25), 0 0 0 4rpx rgba(147, 211, 51, 0.15);
|
|
}
|
|
|
|
.number-text {
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
color: #141414;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.number-column {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 40rpx;
|
|
|
|
.number-item {
|
|
flex: 1;
|
|
}
|
|
|
|
.random-button {
|
|
flex: 2;
|
|
}
|
|
|
|
/* 随机按钮样式 */
|
|
&.random-button {
|
|
flex: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12rpx;
|
|
|
|
.random-icon {
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
|
|
.toy-icon {
|
|
font-size: 32rpx;
|
|
color: #141414;
|
|
}
|
|
}
|
|
|
|
.number-text {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
&.active {
|
|
border-color: #93d333;
|
|
box-shadow: 0 0 0 4rpx rgba(147, 211, 51, 0.2);
|
|
|
|
.random-icon .toy-icon {
|
|
color: #93d333;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 底部按钮区域 */
|
|
.bottom-btn-box {
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 180rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
background-color: #fff;
|
|
box-shadow: 0px -3.9rpx 5.2rpx rgba(0, 0, 0, 0.15);
|
|
padding: 24rpx;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
box-sizing: border-box;
|
|
border-radius: 16rpx 16rpx 0 0;
|
|
z-index: 100;
|
|
} |