登录页面

This commit is contained in:
2026-07-12 15:17:54 +08:00
parent becf91da52
commit bfac6c6663
63 changed files with 4662 additions and 431 deletions
+215
View File
@@ -0,0 +1,215 @@
/* 页面壳 + 三种顶栏(刘海屏 / 胶囊适配) */
.page-shell {
min-height: 100vh;
background: var(--color-background);
box-sizing: border-box;
}
.page-shell--tab {
padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.page-shell--scroll,
.page-shell--sub,
.page-shell--plain {
padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.page-shell--fixed-footer {
padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
/* ── Tab 主页面顶栏(实底 sticky) ── */
.tab-main-header {
position: sticky;
top: 0;
z-index: 50;
padding-left: var(--space-page);
background: var(--color-background);
box-shadow: var(--shadow-card);
box-sizing: border-box;
}
.tab-main-header__content {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.tab-main-header__title {
font-family: var(--font-headline);
font-size: 18px;
font-weight: 700;
color: var(--color-heritage-red);
line-height: 1.2;
max-width: 52vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tab-main-header__extra {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
max-width: 40vw;
}
.tab-main-header__extra-inner {
display: flex;
align-items: center;
color: var(--color-heritage-red);
font-size: 12px;
font-weight: 500;
}
.tab-main-header__extra-inner .tab-main-city-label {
margin-left: 4px;
}
/* ── 滚动透明顶栏(商品/门店详情) ── */
.page-nav-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 50;
padding-left: var(--space-page);
background: transparent;
box-sizing: border-box;
transition: background 0.3s, box-shadow 0.3s;
}
.page-nav-bar--solid {
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.page-nav-bar__content {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.page-nav-bar__btn {
width: 40px;
height: 40px;
border-radius: 999px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.8);
flex-shrink: 0;
}
.page-nav-bar--solid .page-nav-bar__btn {
background: transparent;
}
.page-nav-bar__btn--placeholder {
background: transparent;
pointer-events: none;
}
.page-nav-bar__icon {
font-size: 28px;
line-height: 1;
color: var(--color-ink-black);
font-weight: 300;
}
.page-nav-bar__icon--share {
font-size: 18px;
font-weight: 600;
}
.page-nav-bar__title {
flex: 1;
opacity: 0;
padding: 0 8px;
font-family: var(--font-headline);
font-size: 16px;
font-weight: 600;
color: var(--color-ink-black);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
transition: opacity 0.3s;
}
.page-nav-bar__title--visible {
opacity: 1;
}
.page-with-nav-bar {
padding-top: var(--nav-bar-height, 56px);
box-sizing: border-box;
}
/* ── 子页面固定实底顶栏 ── */
.sub-page-header {
position: sticky;
top: 0;
z-index: 50;
padding-left: var(--space-page);
background: var(--color-background);
box-shadow: var(--shadow-card);
box-sizing: border-box;
}
.sub-page-header__content {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.sub-page-header__back {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
margin-left: -8px;
display: flex;
align-items: center;
justify-content: center;
}
.sub-page-header__back-icon {
font-size: 28px;
line-height: 1;
color: var(--color-heritage-red);
font-weight: 300;
}
.sub-page-header__title {
font-family: var(--font-headline);
font-size: 18px;
font-weight: 700;
color: var(--color-heritage-red);
max-width: 60vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sub-page-header__right {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
.sub-page-body {
padding-top: 12px;
box-sizing: border-box;
}