美化了样式2.0
This commit is contained in:
@ -1,190 +1,241 @@
|
||||
.mt-21 {
|
||||
margin-top: 39.38rpx;
|
||||
}
|
||||
/* ========== 基础 ========== */
|
||||
.page {
|
||||
padding: 105rpx 36.56rpx 40.31rpx 49.76rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 72rpx 32rpx 48rpx;
|
||||
background-color: #ffffff;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
border-radius: 24rpx;
|
||||
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.title-wrap {
|
||||
margin-top: 24rpx;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 40rpx;
|
||||
line-height: 1.2;
|
||||
color: #1c2023;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
margin-top: 12rpx;
|
||||
font-size: 28rpx;
|
||||
color: #666a73;
|
||||
}
|
||||
|
||||
.bold-text { font-weight: 700; }
|
||||
|
||||
/* ========== 卡片容器 ========== */
|
||||
.card {
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
height: 100%;
|
||||
}
|
||||
.image {
|
||||
width: 232.5rpx;
|
||||
height: 232.5rpx;
|
||||
}
|
||||
.group {
|
||||
margin-top: 35.14rpx;
|
||||
}
|
||||
.font {
|
||||
font-size: 37.5rpx;
|
||||
font-family: AlibabaPuHuiTi;
|
||||
line-height: 34.73rpx;
|
||||
color: #1c2023;
|
||||
}
|
||||
.text {
|
||||
line-height: 35.21rpx;
|
||||
}
|
||||
.group_2 {
|
||||
margin-top: 87.15rpx;
|
||||
}
|
||||
.font_2 {
|
||||
font-size: 30rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 27.69rpx;
|
||||
color: #1c2023;
|
||||
}
|
||||
.text_2 {
|
||||
line-height: 28.29rpx;
|
||||
}
|
||||
.text_3 {
|
||||
line-height: 28.2rpx;
|
||||
}
|
||||
.group_1 {
|
||||
padding-left: 2.74rpx;
|
||||
padding-right: 2.74rpx;
|
||||
}
|
||||
.section {
|
||||
margin-right: 11.32rpx;
|
||||
padding: 20.63rpx 16.88rpx 18.75rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 9.38rpx;
|
||||
box-shadow: 0rpx 3.75rpx 11.25rpx #00000040;
|
||||
}
|
||||
.text-wrapper {
|
||||
margin-left: 16.88rpx;
|
||||
margin-right: 16.88rpx;
|
||||
padding: 15.92rpx 0 12.64rpx;
|
||||
background-color: #ffffff00;
|
||||
margin-right: 100rpx;
|
||||
}
|
||||
.font_3 {
|
||||
font-size: 30rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 27.69rpx;
|
||||
color: #b3b3b3;
|
||||
}
|
||||
.text_4 {
|
||||
margin-left: 16.26rpx;
|
||||
}
|
||||
.section_2 {
|
||||
margin-right: 11.32rpx;
|
||||
padding: 20.63rpx 16.88rpx 18.75rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 9.38rpx;
|
||||
box-shadow: 0rpx 3.75rpx 7.5rpx #00000040;
|
||||
}
|
||||
.text_5 {
|
||||
margin-left: 16.26rpx;
|
||||
line-height: 27.86rpx;
|
||||
}
|
||||
.text-wrapper_3 {
|
||||
margin-right: 5.63rpx;
|
||||
padding: 13.16rpx 0 10.93rpx;
|
||||
background-color: #ff8d1a;
|
||||
border-radius: 9.38rpx;
|
||||
width: 157.5rpx;
|
||||
height: 45rpx;
|
||||
}
|
||||
.text_6 {
|
||||
color: #ffffff;
|
||||
font-size: 22.5rpx;
|
||||
font-family: AlibabaPuHuiTi;
|
||||
line-height: 20.91rpx;
|
||||
}
|
||||
.font_4 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 24.49rpx;
|
||||
color: #383838;
|
||||
}
|
||||
.text_7 {
|
||||
margin-right: 6.39rpx;
|
||||
margin-top: 28.76rpx;
|
||||
line-height: 24.36rpx;
|
||||
}
|
||||
.text-wrapper_4 {
|
||||
margin-right: 11.32rpx;
|
||||
margin-top: 46.26rpx;
|
||||
padding: 36.73rpx 0 34.16rpx;
|
||||
background-color: #ff8d1a;
|
||||
border-radius: 9.38rpx;
|
||||
}
|
||||
.text_8 {
|
||||
color: #ffffff;
|
||||
font-size: 30rpx;
|
||||
font-family: AlibabaPuHuiTi;
|
||||
line-height: 26.61rpx;
|
||||
}
|
||||
.group_3 {
|
||||
margin-top: 48.75rpx;
|
||||
}
|
||||
.image_2 {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.image_1 {
|
||||
width: 37.5rpx;
|
||||
height: 37.5rpx;
|
||||
}
|
||||
.group_4 {
|
||||
line-height: 24.49rpx;
|
||||
height: 24.56rpx;
|
||||
}
|
||||
.font_5 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 24.49rpx;
|
||||
color: #ff5e00;
|
||||
}
|
||||
.text_9 {
|
||||
color: #1c2023;
|
||||
line-height: 24.43rpx;
|
||||
}
|
||||
.text_10 {
|
||||
color: #1c2023;
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 19.93rpx;
|
||||
}
|
||||
.group_5 {
|
||||
margin-top: 43.91rpx;
|
||||
line-height: 24.41rpx;
|
||||
}
|
||||
.text_11 {
|
||||
line-height: 24.28rpx;
|
||||
}
|
||||
.text_12 {
|
||||
line-height: 24.41rpx;
|
||||
}
|
||||
.section_3 {
|
||||
margin-top: 100.11rpx;
|
||||
padding: 12.06rpx 21.69rpx 12.32rpx 24.15rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 9.38rpx;
|
||||
width: 215.63rpx;
|
||||
border: solid 1.88rpx #ff8d1a;
|
||||
}
|
||||
.text_13 {
|
||||
color: #ff8d1a;
|
||||
line-height: 27.66rpx;
|
||||
}
|
||||
.image_3 {
|
||||
width: 41.25rpx;
|
||||
height: 41.25rpx;
|
||||
margin-top: 32rpx;
|
||||
background: #fff;
|
||||
border-radius: 24rpx;
|
||||
box-shadow: 0 10rpx 28rpx rgba(0,0,0,0.06);
|
||||
padding: 28rpx;
|
||||
}
|
||||
|
||||
/* 欢迎文本加粗 */
|
||||
.bold-text {
|
||||
font-weight: bold;
|
||||
/* ========== 标签切换 ========== */
|
||||
.tabs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 32rpx;
|
||||
padding: 8rpx 4rpx 20rpx;
|
||||
border-bottom: 1rpx solid #f1f1f1;
|
||||
}
|
||||
|
||||
/* 切换按钮默认样式,保持原 font_2 大小;active 时放大加粗 */
|
||||
.toggle-text {
|
||||
font-size: 28rpx;
|
||||
font-weight: normal;
|
||||
transition: font-size 0.2s;
|
||||
.tab {
|
||||
font-size: 28rpx;
|
||||
color: #666a73;
|
||||
padding: 8rpx 6rpx;
|
||||
position: relative;
|
||||
transition: color .2s, transform .2s;
|
||||
}
|
||||
.toggle-text.active {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
|
||||
.tab.active {
|
||||
color: #1c2023;
|
||||
font-weight: 700;
|
||||
transform: translateY(-1rpx);
|
||||
}
|
||||
|
||||
.tab.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: -12rpx;
|
||||
height: 6rpx;
|
||||
background: #ff8d1a;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
/* ========== 表单区 ========== */
|
||||
.form { padding-top: 24rpx; }
|
||||
|
||||
.field {
|
||||
background: #fff;
|
||||
border: 1rpx solid #e9e9ec;
|
||||
border-radius: 16rpx;
|
||||
padding: 20rpx 24rpx;
|
||||
box-shadow: 0 6rpx 16rpx rgba(0,0,0,0.04);
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.field-input {
|
||||
width: 100%;
|
||||
font-size: 30rpx;
|
||||
color: #1c2023;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
|
||||
.field-input:focus {
|
||||
outline: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.field:focus-within {
|
||||
border-color: #ff8d1a;
|
||||
box-shadow: 0 8rpx 24rpx rgba(255,141,26,0.12);
|
||||
}
|
||||
|
||||
.ph { color: #9aa0a6; }
|
||||
|
||||
/* 输入+验证码并排 */
|
||||
.field-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
padding-right: 16rpx;
|
||||
margin-bottom: 26rpx;
|
||||
}
|
||||
|
||||
.flex-1 { flex: 1; }
|
||||
|
||||
/* 验证码按钮 */
|
||||
.code-btn {
|
||||
height: 44rpx;
|
||||
padding: 0 24rpx;
|
||||
background: #ff8d1a;
|
||||
border-radius: 14rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
white-space: nowrap;
|
||||
box-shadow: 0 8rpx 18rpx rgba(255,141,26,0.25);
|
||||
active-opacity: 0.85;
|
||||
}
|
||||
|
||||
.code-btn:active { transform: scale(0.98); }
|
||||
|
||||
.code-btn-text {
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* 忘记密码链接 */
|
||||
.link-right {
|
||||
margin-top: 16rpx;
|
||||
font-size: 26rpx;
|
||||
color: #666a73;
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
/* 登录按钮 */
|
||||
.btn-primary {
|
||||
margin-top: 32rpx;
|
||||
height: 96rpx;
|
||||
border-radius: 18rpx;
|
||||
background: linear-gradient(180deg, #ff9a2d 0%, #ff8d1a 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 14rpx 28rpx rgba(255,141,26,0.28);
|
||||
transition: transform .06s ease-in-out;
|
||||
}
|
||||
|
||||
.btn-primary:active { transform: scale(0.985); }
|
||||
|
||||
.btn-primary-text {
|
||||
color: #ffffff;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* 协议区 */
|
||||
.agreements {
|
||||
margin-top: 28rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.checkbox { transform: scale(0.92); }
|
||||
|
||||
.agreements-text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8rpx;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.muted { color: #666a73; font-size: 26rpx; }
|
||||
.link { color: #ff5e00; font-size: 26rpx; }
|
||||
.link-strong { color: #ff5e00; font-size: 28rpx; font-weight: 700; }
|
||||
|
||||
/* 注册区 */
|
||||
.register {
|
||||
margin-top: 24rpx;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
/* 加入我们 CTA */
|
||||
.cta-join {
|
||||
margin-top: 48rpx;
|
||||
padding: 16rpx 22rpx;
|
||||
border: 1rpx solid #ff8d1a;
|
||||
border-radius: 14rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
}
|
||||
|
||||
.cta-join-text { color: #ff8d1a; font-size: 28rpx; }
|
||||
.cta-join-img { width: 44rpx; height: 44rpx; }
|
||||
|
||||
/* ========== 兼容你原先用到的类名(可选保留) ========== */
|
||||
.font { font-size: 37.5rpx; color: #1c2023; }
|
||||
.font_2 { font-size: 30rpx; color: #1c2023; }
|
||||
.font_4 { font-size: 26rpx; color: #383838; }
|
||||
.font_5 { font-size: 26rpx; color: #ff5e00; }
|
||||
|
||||
.toggle-text { font-size: 28rpx; transition: font-size .2s; }
|
||||
.toggle-text.active { font-size: 36rpx; font-weight: 700; }
|
||||
|
||||
/* 简易工具类(若你全局已有可删除) */
|
||||
.items-center { align-items: center; }
|
||||
.self-center { align-self: center; }
|
||||
.self-end { align-self: flex-end; }
|
||||
.justify-evenly { justify-content: space-evenly; }
|
||||
.relative { position: relative; }
|
||||
.shrink-0 { flex-shrink: 0; }
|
||||
.ml-2 { margin-left: 16rpx; }
|
||||
.ml-8 { margin-left: 32rpx; }
|
||||
.ml-12 { margin-left: 48rpx; }
|
||||
.mt-12 { margin-top: 24rpx; }
|
||||
.mt-20 { margin-top: 40rpx; }
|
||||
|
Reference in New Issue
Block a user