car_front/pages/index/index.wxss
2025-07-14 00:16:37 +08:00

232 lines
4.0 KiB
Plaintext

/* 页面整体样式 */
page {
background-color: #f5f6fa;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* 顶部轮播图样式 */
.banner {
height: 400rpx;
border-radius: 0 0 32rpx 32rpx;
overflow: hidden;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08);
}
.banner-image {
width: 100%;
height: 100%;
border-radius: 0 0 32rpx 32rpx;
}
/* 公司信息卡片 */
.company-info {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
margin: 24rpx 24rpx 32rpx 24rpx;
padding: 32rpx;
border-radius: 24rpx;
box-shadow: 0 12rpx 48rpx rgba(102, 126, 234, 0.25);
position: relative;
overflow: hidden;
}
.company-info::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
pointer-events: none;
}
.company-name {
font-size: 36rpx;
font-weight: 700;
color: #ffffff;
margin-bottom: 16rpx;
text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.company-address {
display: flex;
align-items: center;
color: rgba(255, 255, 255, 0.9);
font-size: 28rpx;
margin-bottom: 24rpx;
}
.company-address text {
margin-left: 8rpx;
}
.company-actions {
display: flex;
gap: 12rpx;
width: 100%;
text-align: center;
justify-content: space-around;
}
.company-actions .van-button {
flex: 1;
min-width: 0; /* 允许按钮缩小 */
width: auto; /* 确保不超过一半宽度 */
background: rgba(255, 255, 255, 0.15) !important;
border: 2rpx solid rgba(255, 255, 255, 0.3) !important;
color: #ffffff !important;
backdrop-filter: blur(10rpx);
border-radius: 16rpx !important;
font-weight: 500 !important;
font-size: 26rpx !important;
padding: 12rpx 20rpx !important;
height: auto !important;
line-height: 1.2 !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
.company-actions .van-button:hover {
background: rgba(27, 24, 24, 0.25) !important;
}
/* 按钮内容样式调整 */
.company-actions .van-button .van-button__text {
font-size: 26rpx !important;
color: #ffffff !important;
}
.company-actions .van-button .van-icon {
font-size: 28rpx !important;
margin-right: 6rpx !important;
}
/* 业务模块样式 */
.business-modules {
padding: 20px;
background: #fff;
margin-bottom: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.module-title {
font-size: 18px;
font-weight: bold;
color: #333;
margin-bottom: 15px;
}
.module-grid {
display: flex;
justify-content: space-between;
}
.module-item {
flex: 1;
text-align: center;
padding: 20px 10px;
border-radius: 10px;
background: #f8f9fa;
margin: 0 5px;
transition: all 0.3s ease;
}
.module-item:active {
transform: scale(0.95);
background: #e9ecef;
}
.module-icon {
margin-bottom: 10px;
}
.module-text {
font-size: 16px;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.module-desc {
font-size: 12px;
color: #999;
}
/* 热门推荐样式 */
.hot-recommend {
padding: 20px;
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.section-title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 18px;
font-weight: bold;
color: #333;
margin-bottom: 15px;
}
.recommend-list {
display: flex;
flex-direction: column;
gap: 15px;
}
.recommend-item {
display: flex;
padding: 15px;
border-radius: 10px;
background: #f8f9fa;
transition: all 0.3s ease;
}
.recommend-item:active {
transform: scale(0.98);
background: #e9ecef;
}
.car-image {
width: 80px;
height: 60px;
border-radius: 5px;
margin-right: 15px;
}
.car-info {
flex: 1;
}
.car-name {
font-size: 16px;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.car-price {
font-size: 18px;
color: #ff6b35;
font-weight: bold;
margin-bottom: 5px;
}
.car-tags {
display: flex;
gap: 5px;
}
.tag {
font-size: 12px;
color: #666;
background: #e9ecef;
padding: 2px 6px;
border-radius: 3px;
}