dapaijizhang3/pages/game/create/create.wxss

369 lines
6.0 KiB
Plaintext
Raw Permalink Normal View History

2025-11-20 16:42:59 +08:00
/* 创建房间页面样式 */
page {
background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
min-height: 100vh;
}
.container {
padding: 30rpx;
padding-bottom: 120rpx;
}
/* 表单卡片 */
.form-card {
background: #1A1A1Afff;
border-radius: 20rpx;
padding: 32rpx 24rpx;
margin-bottom: 30rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.15);
}
.form-item {
margin-bottom: 32rpx;
}
.form-item:last-child {
margin-bottom: 0;
}
.label {
display: block;
font-size: 28rpx;
color: #FFFFFF;
margin-bottom: 16rpx;
font-weight: 600;
}
.label-row {
display: flex;
align-items: center;
margin-bottom: 16rpx;
}
.label-hint {
font-size: 22rpx;
color: #B0B0B0;
margin-left: 8rpx;
font-weight: normal;
}
.input {
width: 100%;
height: 80rpx;
background: #f8f9fa;
border: 2rpx solid rgba(0, 0, 0, 0.1);
border-radius: 12rpx;
padding-left: 24rpx;
font-size: 30rpx;
color: #FFFFFF;
box-sizing: border-box;
transition: all 0.3s;
}
.input:focus {
border-color: #1A1A1A;
background: #1A1A1A;
box-shadow: 0 0 0 4rpx rgba(0, 0, 0, 0.1);
}
/* 游戏类型选择器 */
.game-type-selector {
display: flex;
gap: 12rpx;
}
.type-option {
flex: 1;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
background: #f8f9fa;
border: 2rpx solid rgba(0, 0, 0, 0.1);
border-radius: 12rpx;
font-size: 28rpx;
color: #E0E0E0;
transition: all 0.3s;
font-weight: 500;
}
.type-option.active {
background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
color: white;
border-color: #1A1A1A;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.3);
}
.type-option:active {
transform: scale(0.96);
}
/* 快捷设置列表 */
.quick-settings-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12rpx;
}
.quick-setting-item {
position: relative;
height: 80rpx;
}
.quick-input {
width: 100%;
height: 100%;
background: #f8f9fa;
border: 2rpx solid rgba(0, 0, 0, 0.1);
border-radius: 12rpx;
padding: 0 10rpx;
font-size: 28rpx;
color: #FFFFFF;
box-sizing: border-box;
text-align: center;
}
.quick-input:focus {
border-color: #1A1A1A;
background: #1A1A1A;
box-shadow: 0 0 0 4rpx rgba(0, 0, 0, 0.1);
}
.remove-btn {
position: absolute;
top: -8rpx;
right: -8rpx;
width: 40rpx;
height: 40rpx;
background: #ff3b30;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
line-height: 1;
box-shadow: 0 2rpx 8rpx rgba(255, 59, 48, 0.3);
z-index: 1;
}
.remove-btn:active {
opacity: 0.8;
transform: scale(0.95);
}
.add-btn {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 8rpx;
height: 80rpx;
background: rgba(0, 0, 0, 0.05);
border: 2rpx dashed rgba(0, 0, 0, 0.3);
border-radius: 12rpx;
color: #1A1A1A;
font-size: 24rpx;
}
.add-btn:active {
background: rgba(0, 0, 0, 0.1);
}
.add-icon {
font-size: 36rpx;
font-weight: bold;
line-height: 1;
}
.add-text {
font-weight: 500;
font-size: 24rpx;
}
/* 提交按钮 */
.submit-btn {
width: calc(100% - 40rpx);
margin: 0 20rpx;
padding: 28rpx;
background: linear-gradient(135deg, #50C878 0%, #06a854 100%);
color: white;
border-radius: 16rpx;
font-size: 32rpx;
font-weight: bold;
border: none;
box-shadow: 0 8rpx 24rpx rgba(7, 193, 96, 0.4);
transition: all 0.3s;
}
.submit-btn:active {
opacity: 0.9;
transform: scale(0.98);
}
.submit-btn[disabled] {
background: #e0e0e0;
color: #B0B0B0;
box-shadow: none;
}
/* 弹窗遮罩 */
.modal-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
/* 弹窗内容 */
.modal-content {
width: 600rpx;
background: #1A1A1Afff;
border-radius: 24rpx;
overflow: hidden;
}
/* 弹窗头部 */
.modal-header {
padding: 48rpx 32rpx 32rpx;
text-align: center;
background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ed 100%);
}
.success-icon {
width: 100rpx;
height: 100rpx;
background: linear-gradient(135deg, #50C878 0%, #06a854 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 64rpx;
color: white;
margin: 0 auto 20rpx;
line-height: 1;
}
.success-title {
font-size: 36rpx;
font-weight: bold;
color: #FFFFFF;
display: block;
}
/* 弹窗主体 */
.modal-body {
padding: 32rpx;
}
/* 编码区域 */
.code-section {
background: #f8f9fa;
border-radius: 12rpx;
padding: 20rpx;
margin-bottom: 24rpx;
text-align: center;
}
.code-label {
font-size: 24rpx;
color: #B0B0B0;
display: block;
margin-bottom: 8rpx;
}
.code-value {
font-size: 40rpx;
font-weight: bold;
color: #FFFFFF;
letter-spacing: 4rpx;
display: block;
font-family: 'Courier New', monospace;
}
/* 二维码区域 */
.qrcode-section {
text-align: center;
position: relative;
}
.qrcode-image {
width: 400rpx;
height: 400rpx;
margin: 0 auto 16rpx;
display: block;
border-radius: 8rpx;
}
.qrcode-loading {
width: 400rpx;
height: 400rpx;
margin: 0 auto 16rpx;
background: #f5f5f5;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
color: #B0B0B0;
}
.invite-code {
font-size: 28rpx;
color: #E0E0E0;
display: block;
margin-bottom: 16rpx;
}
.copy-btn {
width: 200rpx;
padding: 16rpx;
background: #f8f8f8;
color: #FFFFFF;
border-radius: 8rpx;
font-size: 28rpx;
border: none;
margin: 0 auto;
}
.copy-btn:active {
background: #e8e8e8;
}
/* 弹窗底部 */
.modal-footer {
display: flex;
border-top: 1rpx solid #e5e5e5;
}
.footer-btn {
flex: 1;
padding: 32rpx;
font-size: 32rpx;
font-weight: 500;
border: none;
background: #1A1A1A;
border-radius: 0;
margin: 0;
}
.footer-btn:active {
background: #f8f8f8;
}
.footer-btn.share-btn {
color: #ff9500;
border-right: 1rpx solid #e5e5e5;
}
.footer-btn.enter-btn {
color: #50C878;
font-weight: bold;
}