Files
ai_wht_wechat/miniprogram/miniprogram/pages/profile/xhs-login/xhs-login.wxss
2025-12-19 22:36:48 +08:00

313 lines
4.9 KiB
Plaintext

/* pages/profile/xhs-login/xhs-login.wxss */
page {
background: #07c160;
height: 100%;
width: 100%;
}
.page-container {
min-height: 100vh;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40rpx;
box-sizing: border-box;
position: relative;
}
/* 背景渐变动画 */
.background-gradient {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #07c160;
background-size: 200% 200%;
animation: gradientMove 8s ease infinite;
z-index: 0;
}
@keyframes gradientMove {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* 登录卡片 - 毛玻璃效果 */
.login-card {
width: 100%;
max-width: 680rpx;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20rpx);
-webkit-backdrop-filter: blur(20rpx);
border-radius: 32rpx;
padding: 48rpx;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.12);
position: relative;
z-index: 1;
}
/* 平台头部 */
.platform-header {
display: flex;
align-items: center;
gap: 24rpx;
margin-bottom: 48rpx;
}
.platform-icon {
width: 120rpx;
height: 120rpx;
border-radius: 24rpx;
background: #07c160;
flex-shrink: 0;
box-shadow: 0 4rpx 16rpx rgba(255, 36, 66, 0.3);
}
.platform-text {
flex: 1;
display: flex;
flex-direction: column;
gap: 12rpx;
}
.platform-name {
font-size: 36rpx;
font-weight: bold;
color: #1a1a1a;
}
.platform-tip {
font-size: 26rpx;
color: #999;
}
/* 表单 */
.login-form {
width: 100%;
}
.form-item {
margin-bottom: 32rpx;
}
/* 手机号输入 */
.phone-input-wrapper {
display: flex;
align-items: center;
height: 96rpx;
background: #f8f8f8;
border-radius: 16rpx;
overflow: hidden;
border: 2rpx solid transparent;
transition: all 0.3s ease;
}
.phone-input-wrapper:focus-within {
border-color: #07c160;
background: white;
}
.country-code {
display: flex;
align-items: center;
gap: 8rpx;
padding: 0 24rpx;
height: 100%;
border-right: 1rpx solid #e0e0e0;
flex-shrink: 0;
}
.code-text {
font-size: 28rpx;
color: #1a1a1a;
font-weight: 500;
}
.arrow-down {
font-size: 20rpx;
color: #999;
}
.phone-input {
flex: 1;
height: 100%;
padding: 0 24rpx;
font-size: 28rpx;
color: #1a1a1a;
}
/* 验证码输入 */
.code-input-wrapper {
display: flex;
align-items: center;
height: 96rpx;
background: #f8f8f8;
border-radius: 16rpx;
overflow: hidden;
border: 2rpx solid transparent;
transition: all 0.3s ease;
}
.code-input-wrapper:focus-within {
border-color: #07c160;
background: white;
}
.code-input {
flex: 1;
height: 100%;
padding: 0 24rpx;
font-size: 28rpx;
color: #1a1a1a;
}
.send-code-text {
padding: 0 24rpx;
height: 100%;
display: flex;
align-items: center;
font-size: 26rpx;
color: #07c160;
white-space: nowrap;
flex-shrink: 0;
font-weight: 500;
}
.send-code-text.disabled {
color: #999;
}
/* 协议勾选 */
.agreement-row {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 32rpx;
}
.agreement-checkbox {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
gap: 4rpx;
}
.agreement-text {
font-size: 24rpx;
color: #666;
line-height: 1.6;
}
.agreement-link {
font-size: 24rpx;
color: #07c160;
line-height: 1.6;
}
/* 登录按钮 */
.login-btn {
width: 100%;
height: 96rpx;
background: #07c160;
color: white;
border: none;
border-radius: 48rpx;
font-size: 32rpx;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
box-shadow: 0 4rpx 16rpx rgba(255, 36, 66, 0.3);
transition: all 0.3s ease;
}
.login-btn:active {
transform: scale(0.98);
box-shadow: 0 2rpx 8rpx rgba(255, 36, 66, 0.3);
}
.login-btn::after {
border: none;
}
/* 提示弹窗 */
.modal-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.modal-dialog {
width: 560rpx;
background: white;
border-radius: 24rpx;
overflow: hidden;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.2);
}
.modal-title {
padding: 40rpx 32rpx 24rpx;
font-size: 32rpx;
font-weight: bold;
color: #1a1a1a;
text-align: center;
}
.modal-content {
padding: 0 32rpx 40rpx;
font-size: 28rpx;
color: #666;
text-align: center;
line-height: 1.6;
}
.modal-footer {
display: flex;
border-top: 1rpx solid #e0e0e0;
}
.modal-btn {
flex: 1;
height: 96rpx;
background: white;
border: none;
font-size: 32rpx;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.modal-btn::after {
border: none;
}
.modal-btn.cancel {
color: #666;
border-right: 1rpx solid #e0e0e0;
}
.modal-btn.confirm {
color: #07c160;
font-weight: 600;
}