You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

144 lines
2.8 KiB

.service-page {
min-height: 100vh;
background-color: #f5f5f5;
/* 服务分类 */
.service-section {
background-color: #ffffff;
border-radius: 20rpx;
margin: 30rpx;
overflow: hidden;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
&:first-child {
margin-top: 30rpx;
}
/* 分类标题 */
.section-header {
padding: 40rpx 40rpx 30rpx 40rpx;
border-bottom: 2rpx solid #eee;
.section-title {
font-size: 36rpx;
font-weight: bold;
color: #333;
}
}
/* 服务网格 */
.service-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
padding: 30rpx 20rpx;
.service-item {
display: flex;
flex-direction: column;
align-items: center;
padding: 20rpx;
border-radius: 16rpx;
transition: all 0.3s ease;
cursor: pointer;
&:active {
transform: scale(0.95);
background-color: #f0f8ff;
}
/* 服务图标 */
.service-icon {
width: 80rpx;
height: 80rpx;
background-color: #f8f9fa;
border-radius: 16rpx;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16rpx;
.icon-emoji {
font-size: 36rpx;
}
}
/* 服务名称 */
.service-name {
font-size: 24rpx;
color: #333;
text-align: center;
line-height: 1.2;
max-width: 120rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
/* 响应式调整 */
@media (max-width: 375px) {
.service-section {
margin: 0 20rpx 20rpx 20rpx;
.section-header {
padding: 30rpx 30rpx 20rpx 30rpx;
.section-title {
font-size: 32rpx;
}
}
.service-grid {
padding: 20rpx 16rpx;
.service-item {
padding: 16rpx;
.service-icon {
width: 70rpx;
height: 70rpx;
margin-bottom: 12rpx;
.icon-emoji {
font-size: 32rpx;
}
}
.service-name {
font-size: 22rpx;
max-width: 100rpx;
}
}
}
}
}
/* 超小屏幕适配 */
@media (max-width: 320px) {
.service-section {
.service-grid {
grid-template-columns: repeat(3, 1fr);
.service-item {
.service-icon {
width: 60rpx;
height: 60rpx;
.icon-emoji {
font-size: 28rpx;
}
}
.service-name {
font-size: 20rpx;
max-width: 80rpx;
}
}
}
}
}
}