feat: unify mobile vehicle search

This commit is contained in:
lingniu
2026-07-19 00:17:47 +08:00
parent c115b28bfe
commit 23b632a2e0
3 changed files with 326 additions and 20 deletions

View File

@@ -17521,3 +17521,198 @@
font-weight: 700;
}
}
/*
* Semi UI vehicle discovery.
* The authorized directory stays visible on phones while search moves into a
* focused bottom sheet with explicit apply and reset boundaries.
*/
@media (max-width: 680px) {
.v2-vehicle-mobile-discovery {
display: grid;
width: 100%;
min-width: 0;
flex: 0 0 auto;
gap: 8px;
}
.v2-vehicle-mobile-discovery > .v2-mobile-filter-toggle.semi-button {
min-height: 58px;
margin: 0;
}
.v2-vehicle-mobile-filter-sidesheet .semi-sidesheet-inner {
width: 100vw !important;
max-width: 100%;
overflow: hidden;
border-radius: 18px 18px 0 0;
background: #f4f7fb;
box-shadow: 0 -20px 56px rgba(25, 45, 72, .2);
padding-bottom: env(safe-area-inset-bottom);
}
.v2-vehicle-mobile-filter-sidesheet.semi-sidesheet-bottom .semi-sidesheet-header {
min-height: 68px;
border-bottom: 1px solid #dfe7f0;
background: rgba(255, 255, 255, .98);
padding: 11px 14px;
}
.v2-vehicle-mobile-filter-sidesheet.semi-sidesheet-bottom .semi-sidesheet-body {
min-height: 0;
overflow-y: auto;
background: #f4f7fb;
padding: 12px;
overscroll-behavior: contain;
}
.v2-vehicle-mobile-filter-sidesheet.semi-sidesheet-bottom .semi-sidesheet-footer {
border-top: 1px solid #dfe7f0;
background: rgba(255, 255, 255, .98);
padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.v2-vehicle-mobile-filter-title {
display: grid;
gap: 3px;
}
.v2-vehicle-mobile-filter-title > strong {
color: #253a52;
font-size: 15px;
line-height: 1.3;
}
.v2-vehicle-mobile-filter-title > span {
color: #8090a3;
font-size: 10px;
font-weight: 500;
line-height: 1.4;
}
.v2-vehicle-mobile-filter-form,
.v2-vehicle-mobile-filter-form > section {
display: grid;
gap: 12px;
}
.v2-vehicle-mobile-filter-form > section {
border: 1px solid #dfe7f0;
border-radius: 12px;
background: #fff;
padding: 12px;
box-shadow: 0 8px 24px rgba(31, 53, 80, .055);
}
.v2-vehicle-mobile-filter-form > section > header {
display: grid;
min-width: 0;
gap: 3px;
}
.v2-vehicle-mobile-filter-form > section > header > strong {
color: #2b4058;
font-size: 13px;
line-height: 1.3;
}
.v2-vehicle-mobile-filter-form > section > header > span {
color: #7c8b9e;
font-size: 10px;
line-height: 1.45;
}
.v2-vehicle-mobile-filter-form label {
display: grid;
min-width: 0;
gap: 6px;
color: #5f7188;
font-size: 11px;
font-weight: 650;
}
.v2-vehicle-mobile-filter-form label > .semi-input-wrapper {
width: 100%;
min-height: 46px;
border-radius: 9px;
background: #fff;
}
.v2-vehicle-mobile-filter-form label .semi-input {
height: 44px;
font-size: 14px;
}
.v2-vehicle-mobile-filter-hint {
display: flex;
min-height: 86px;
align-items: center;
gap: 11px;
border: 1px dashed #d6e1ee;
border-radius: 10px;
background: #f8fbff;
padding: 14px;
color: #6e8db8;
}
.v2-vehicle-mobile-filter-hint > .semi-icon {
font-size: 22px;
}
.v2-vehicle-mobile-filter-hint > span {
display: grid;
gap: 3px;
}
.v2-vehicle-mobile-filter-hint strong {
color: #344c69;
font-size: 12px;
}
.v2-vehicle-mobile-filter-hint small {
color: #8392a5;
font-size: 10px;
}
.v2-vehicle-mobile-filter-sidesheet .v2-vehicle-mobile-candidates.v2-vehicle-candidate-list {
position: static;
width: 100%;
max-height: min(32dvh, 260px);
overflow-y: auto;
border-color: #dce5ef;
border-radius: 10px;
box-shadow: none;
overscroll-behavior: contain;
}
.v2-vehicle-mobile-filter-sidesheet .v2-vehicle-mobile-candidates > header {
position: sticky;
z-index: 1;
top: 0;
min-height: 38px;
background: rgba(248, 250, 253, .98);
backdrop-filter: blur(10px);
}
.v2-vehicle-mobile-filter-sidesheet .v2-vehicle-mobile-candidates > .v2-vehicle-option.semi-button {
min-height: 62px;
}
.v2-vehicle-mobile-filter-sidesheet .v2-vehicle-mobile-candidates .v2-vehicle-option-action.semi-tag {
color: #1268f3;
}
.v2-vehicle-mobile-filter-footer {
display: grid;
width: 100%;
grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
gap: 9px;
}
.v2-vehicle-mobile-filter-footer > .semi-button {
width: 100%;
min-height: 44px;
border-radius: 9px;
font-weight: 700;
}
}