497 lines
8.7 KiB
Plaintext
497 lines
8.7 KiB
Plaintext
|
|
/* 筛选栏样式 */
|
|
.sticky-filter {
|
|
background: #ffffff;
|
|
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
|
|
overflow: hidden;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
/* 筛选扩展面板 */
|
|
.filter-extend {
|
|
padding: 32rpx 24rpx;
|
|
background: #ffffff;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.filter-group {
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.filter-label {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
margin-bottom: 16rpx;
|
|
position: relative;
|
|
padding-left: 12rpx;
|
|
}
|
|
|
|
.filter-label::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 6rpx;
|
|
height: 24rpx;
|
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
|
border-radius: 3rpx;
|
|
}
|
|
|
|
/* 标签筛选样式 */
|
|
.filter-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.filter-tag-item {
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.filter-tag-item:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.mytag {
|
|
transition: all 0.3s ease;
|
|
border-radius: 20rpx !important;
|
|
font-size: 26rpx !important;
|
|
padding: 8rpx 16rpx !important;
|
|
border: 2rpx solid #e1e8ed !important;
|
|
}
|
|
|
|
|
|
.mytag[type="success"] {
|
|
background: linear-gradient(135deg, #11998e, #38ef7d) !important;
|
|
border-color: #11998e !important;
|
|
color: #ffffff !important;
|
|
box-shadow: 0 4rpx 12rpx rgba(17, 153, 142, 0.3);
|
|
}
|
|
|
|
/* 滑块筛选样式 */
|
|
.filter-slider-group {
|
|
padding: 24rpx;
|
|
background: #f8f9fa;
|
|
border-radius: 16rpx;
|
|
border: 2rpx solid #e9ecef;
|
|
}
|
|
|
|
.slider-label {
|
|
font-size: 28rpx;
|
|
color: #495057;
|
|
margin-bottom: 20rpx;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 确认按钮样式 */
|
|
.filter-extend .van-button {
|
|
background: linear-gradient(135deg, #667eea, #764ba2) !important;
|
|
border: none !important;
|
|
border-radius: 20rpx !important;
|
|
font-weight: 600 !important;
|
|
font-size: 32rpx !important;
|
|
padding: 20rpx 0 !important;
|
|
box-shadow: 0 8rpx 24rpx rgba(102, 126, 234, 0.3);
|
|
margin-top: 24rpx;
|
|
}
|
|
|
|
/* 汽车列表样式 */
|
|
.car-list {
|
|
padding: 24rpx;
|
|
padding-top: 16rpx;
|
|
}
|
|
|
|
.car-item {
|
|
background: #ffffff;
|
|
border-radius: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
overflow: hidden;
|
|
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.06);
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.car-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.car-item:active {
|
|
transform: translateY(-4rpx);
|
|
box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.car-item:active::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.car-image {
|
|
width: 100%;
|
|
height: 300rpx;
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
position: relative;
|
|
}
|
|
|
|
.car-info {
|
|
padding: 24rpx;
|
|
position: relative;
|
|
}
|
|
|
|
.car-title {
|
|
font-size: 32rpx;
|
|
font-weight: 700;
|
|
color: #2c3e50;
|
|
margin-bottom: 16rpx;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.car-price {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 12rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.price-new {
|
|
font-size: 36rpx;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
|
background-clip: text;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
color: #667eea;
|
|
}
|
|
|
|
.price-old {
|
|
font-size: 26rpx;
|
|
color: #95a5a6;
|
|
text-decoration: line-through;
|
|
position: relative;
|
|
}
|
|
|
|
.price-old::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2rpx;
|
|
background: #95a5a6;
|
|
}
|
|
|
|
.car-attrs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
.car-attrs .van-tag {
|
|
background: linear-gradient(135deg, #ffeaa7, #fab1a0) !important;
|
|
color: #2d3436 !important;
|
|
border: none !important;
|
|
border-radius: 12rpx !important;
|
|
font-size: 22rpx !important;
|
|
padding: 6rpx 12rpx !important;
|
|
font-weight: 500 !important;
|
|
box-shadow: 0 2rpx 8rpx rgba(250, 177, 160, 0.3);
|
|
}
|
|
|
|
.car-attrs .van-tag:nth-child(2n) {
|
|
background: linear-gradient(135deg, #a8e6cf, #88d8c0) !important;
|
|
box-shadow: 0 2rpx 8rpx rgba(136, 216, 192, 0.3);
|
|
}
|
|
|
|
.car-attrs .van-tag:nth-child(3n) {
|
|
background: linear-gradient(135deg, #ffd3a5, #fd9853) !important;
|
|
box-shadow: 0 2rpx 8rpx rgba(253, 152, 83, 0.3);
|
|
}
|
|
|
|
/* 下拉菜单优化 */
|
|
.van-dropdown-menu {
|
|
border-radius: 24rpx 24rpx 0 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.van-dropdown-menu__item {
|
|
font-weight: 500;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* 树形选择器优化 */
|
|
.van-tree-select {
|
|
border-radius: 0 0 24rpx 24rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 响应式优化 */
|
|
@media (max-width: 750rpx) {
|
|
.company-actions {
|
|
flex-direction: column;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
.company-actions .van-button {
|
|
max-width: 100%;
|
|
min-height: 64rpx;
|
|
}
|
|
|
|
.filter-tags {
|
|
justify-content: center;
|
|
}
|
|
|
|
.car-price {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8rpx;
|
|
}
|
|
}
|
|
|
|
/* 更小屏幕的额外优化 */
|
|
@media (max-width: 600rpx) {
|
|
.company-actions .van-button {
|
|
font-size: 24rpx !important;
|
|
padding: 10rpx 6rpx !important;
|
|
}
|
|
|
|
.company-actions .van-button .van-icon {
|
|
font-size: 24rpx !important;
|
|
margin-right: 4rpx !important;
|
|
}
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30rpx);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.car-item {
|
|
animation: fadeInUp 0.5s ease-out;
|
|
}
|
|
|
|
.car-item:nth-child(n+2) {
|
|
animation-delay: 0.1s;
|
|
}
|
|
|
|
.car-item:nth-child(n+3) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
/* 滚动条样式 */
|
|
::-webkit-scrollbar {
|
|
width: 8rpx;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 4rpx;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
|
border-radius: 4rpx;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: linear-gradient(135deg, #5a6fd8, #6a4190);
|
|
}
|
|
.car-type-badge {
|
|
position: absolute;
|
|
top: 20rpx;
|
|
right: 20rpx;
|
|
z-index: 10;
|
|
}
|
|
.badge-new {
|
|
background: linear-gradient(135deg, #1989fa, #40a9ff);
|
|
color: white;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 20rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-rent {
|
|
background: linear-gradient(135deg, #07c160, #52c41a);
|
|
color: white;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 20rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-used {
|
|
background: linear-gradient(135deg, #ff976a, #ffa940);
|
|
color: white;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 20rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
}
|
|
/* 租车价格 */
|
|
.car-type-3 .price-rent {
|
|
color: #07c160;
|
|
font-size: 36rpx;
|
|
font-weight: 700;
|
|
margin-right: 16rpx;
|
|
}
|
|
|
|
.car-type-3 .price-monthly {
|
|
color: #666;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
/* 二手车价格 */
|
|
.car-type-2 .price-used {
|
|
color: #ff976a;
|
|
font-size: 36rpx;
|
|
font-weight: 700;
|
|
margin-right: 16rpx;
|
|
}
|
|
|
|
.car-type-2 .price-original {
|
|
color: #999;
|
|
font-size: 24rpx;
|
|
}
|
|
/* 加载状态 */
|
|
.loading-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 40rpx;
|
|
background: white;
|
|
margin: 20rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
|
|
.loading-spinner {
|
|
display: flex;
|
|
align-items: center;
|
|
color: #666;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.loading-spinner::before {
|
|
content: '';
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
border: 4rpx solid #e0e0e0;
|
|
border-top: 4rpx solid #007aff;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-right: 16rpx;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 无数据状态 */
|
|
.no-data-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 120rpx 40rpx;
|
|
background: white;
|
|
margin: 20rpx;
|
|
border-radius: 16rpx;
|
|
}
|
|
|
|
.no-data-icon {
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
margin-bottom: 40rpx;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.no-data-text {
|
|
font-size: 32rpx;
|
|
color: #666;
|
|
margin-bottom: 16rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.no-data-desc {
|
|
font-size: 28rpx;
|
|
color: #999;
|
|
text-align: center;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 加载更多状态 */
|
|
.load-more-container {
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.load-more-item,.load-more-item-no {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 30rpx;
|
|
color: #999;
|
|
font-size: 28rpx;
|
|
background: white;
|
|
border-radius: 16rpx;
|
|
}
|
|
|
|
.load-more-item text {
|
|
position: relative;
|
|
}
|
|
|
|
/* 加载更多动画 */
|
|
.load-more-item:first-child text::before {
|
|
content: '';
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
border: 3rpx solid #e0e0e0;
|
|
border-top: 3rpx solid #007aff;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-right: 12rpx;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* 响应式适配 */
|
|
@media (max-width: 750rpx) {
|
|
.car-item {
|
|
margin-bottom: 16rpx;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.no-data-container {
|
|
padding: 80rpx 20rpx;
|
|
}
|
|
|
|
.no-data-icon {
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
}
|
|
}
|
|
|