Files
mini-programs/src/pages/login/verification/index.scss
2025-08-24 15:40:37 +08:00

466 lines
8.6 KiB
SCSS

// 验证码页面样式
.verification_page {
min-height: 100vh;
background: #FAFAFA;
position: relative;
overflow: hidden;
box-sizing: border-box;
}
// 背景
.background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
.bg_color {
width: 100%;
height: 100%;
background: #FAFAFA;
}
}
// 状态栏
.status_bar {
position: relative;
z-index: 10;
display: flex;
justify-content: space-between;
align-items: center;
padding: 21px 16px 0;
height: 54px;
.time {
font-family: 'SF Pro';
font-weight: 590;
font-size: 17px;
line-height: 1.294;
color: #000000;
}
.status_icons {
display: flex;
align-items: center;
gap: 7px;
.signal_icon {
width: 19.2px;
height: 12.23px;
background: #000000;
border-radius: 2px;
}
.wifi_icon {
width: 17.14px;
height: 12.33px;
background: #000000;
border-radius: 2px;
}
.battery_icon {
width: 27.33px;
height: 13px;
background: #000000;
border-radius: 4px;
position: relative;
&::before {
content: '';
position: absolute;
right: -1.33px;
top: 4.78px;
width: 1.33px;
height: 4.08px;
background: #000000;
opacity: 0.4;
}
}
}
}
// 导航栏
.navigation_bar {
position: relative;
z-index: 10;
background: transparent;
.nav_content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 24px;
height: 44px;
.back_button {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: #FFFFFF;
border-radius: 50%;
cursor: pointer;
.back_icon {
width: 8px;
height: 16px;
background: #000000;
clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
}
.nav_placeholder {
flex: 1;
}
.nav_actions {
display: flex;
gap: 12px;
.action_button {
width: 30px;
height: 30px;
background: rgba(255, 255, 255, 0.7);
border: 0.35px solid #DEDEDE;
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
&.share_button {
.share_icon {
width: 20px;
height: 20px;
background: #191919;
border-radius: 50%;
position: relative;
&::before,
&::after {
content: '';
position: absolute;
width: 4px;
height: 4px;
background: #000000;
border-radius: 50%;
}
&::before {
top: 6.75px;
left: 0.75px;
}
&::after {
top: 6.75px;
right: 0.75px;
}
}
}
&.home_button {
.home_icon {
width: 20px;
height: 20px;
background: #000000;
border-radius: 50%;
position: relative;
&::before {
content: '';
position: absolute;
top: 1.5px;
left: 1.5px;
width: 17px;
height: 17px;
border: 2px solid #000000;
border-radius: 50%;
}
&::after {
content: '';
position: absolute;
top: 7px;
left: 7px;
width: 6px;
height: 6px;
background: #000000;
border-radius: 50%;
}
}
}
}
}
}
}
// 主要内容
.main_content {
position: relative;
z-index: 10;
padding: 0px 24px 36px;
display: flex;
flex-direction: column;
gap: 36px;
}
// 标题区域
.title_section {
display: flex;
flex-direction: column;
gap: 8px;
text-align: left;
padding: 12px 24px 36px 24px ;
.main_title {
font-family: 'PingFang SC';
font-weight: 600;
font-size: 28px;
line-height: 1.4;
color: #000000;
}
.sub_title {
font-family: 'PingFang SC';
font-weight: 300;
font-size: 18px;
line-height: 1.4;
color: #000000;
}
}
// 表单区域
.form_section {
display: flex;
flex-direction: column;
gap: 12px;
}
// 输入组
.input_group {
.input_container {
display: flex;
justify-content: space-between;
align-items: center;
background: #FFFFFF;
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 12px;
padding: 10px 12px;
box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
.phone_input {
flex: 1;
font-family: 'PingFang SC';
font-weight: 500;
font-size: 20px;
line-height: 1.6;
color: #000000;
border: none;
outline: none;
background: transparent;
&::placeholder {
color: rgba(60, 60, 67, 0.3);
}
}
.char_count {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 14px;
line-height: 1.714;
color: rgba(60, 60, 67, 0.3);
.count_number {
color: rgba(60, 60, 67, 0.3);
transition: color 0.3s ease;
&.active {
color: #000000;
font-weight: 500;
}
}
}
}
}
// 验证码组
.verification_group {
display: flex;
gap: 12px;
align-items: center;
.input_container {
flex: 1;
display: flex;
justify-content: space-between;
align-items: center;
background: #FFFFFF;
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 12px;
padding: 10px 12px;
width: 210px;
height: 52px;
box-sizing: border-box;
box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
.code_input {
flex: 1;
font-family: 'PingFang SC';
font-weight: 500;
font-size: 20px;
line-height: 1.6;
color: #000000;
border: none;
outline: none;
background: transparent;
&::placeholder {
color: rgba(60, 60, 67, 0.3);
}
}
.char_count {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 14px;
line-height: 1.714;
color: rgba(60, 60, 67, 0.3);
.count_number {
color: rgba(60, 60, 67, 0.3);
transition: color 0.3s ease;
&.active {
color: #000000;
font-weight: 500;
}
}
}
}
.send_code_button {
width: 120px;
height: 52px;
box-sizing: border-box;
padding: 12px 2px;
background: #000000;
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 16px;
font-family: 'PingFang SC';
font-weight: 600;
font-size: 16px;
line-height: 1.4;
color: #FFFFFF;
box-shadow: 0px 8px 64px 0px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(32px);
cursor: pointer;
transition: all 0.3s ease;
&.disabled {
opacity: 0.5;
cursor: not-allowed;
}
// 倒计时文案样式
.countdown_text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
gap: 2px;
.countdown_line1 {
font-family: 'PingFang SC';
font-weight: 500;
font-size: 12px;
line-height: 1.2;
color: #FFFFFF;
}
.countdown_line2 {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 11px;
line-height: 1.2;
color: rgba(255, 255, 255, 0.8);
}
}
}
}
// 登录按钮
.login_button {
width: 100%;
height: 52px;
background: #000000;
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 16px;
font-family: 'PingFang SC';
font-weight: 600;
font-size: 16px;
padding: 6px 2px;
color: #FFFFFF;
box-shadow: 0px 8px 64px 0px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(32px);
cursor: pointer;
transition: all 0.3s ease;
&.loading {
opacity: 0.7;
cursor: not-allowed;
}
}
// 协议区域
.terms_section {
padding: 0 24px;
text-align: center;
line-height: 1.5;
.terms_text {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 14px;
color: rgba(60, 60, 67, 0.6);
}
.terms_link {
font-family: 'PingFang SC';
font-weight: 500;
font-size: 14px;
color: #000000;
text-decoration: underline;
cursor: pointer;
margin: 0 4px;
&:hover {
color: #333333;
}
}
}
// 底部指示器
.home_indicator {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 140.4px;
height: 5px;
background: #000000;
border-radius: 2.5px;
z-index: 10;
}