page{ background: #F8F8FF; } .sousuo{ background-color: #ffffff; display: flex; border: 1rpx solid gray; height: 70rpx; line-height: 70rpx; margin: 10rpx; } .sousuo .item1 { padding-right: 30rpx; padding-left: 30rpx; } .search{ height: 70rpx; } .menu{ margin-top: 25rpx; margin-left: 10rpx; margin-right: 10rpx; display: flex; justify-content: space-between; padding: 16rpx; border-radius: 10rpx; flex-wrap: wrap; background-color: #ffffff; } .item{ display: flex; align-items: center; flex-direction: column; justify-content: center; width: 200rpx; height: 200rpx; margin: 1rpx; background-color: #ffffff; } .img{ width: 88rpx; height: 88rpx; border-radius: 10rpx; } .title{ margin-top: 12rpx; font-size: 27rpx; } .taolun{ width: 750rpx; height: 300rpx; background-color: #ffffff; margin-top: 25rpx; margin-right: 10rpx; margin-left: 10rpx; } .section-title { display: block; font-size: 32rpx; color: #333; font-weight: bold; margin: 20rpx 0 30rpx 20rpx; } .service-container { display: flex; flex-wrap: wrap; margin-left: -10rpx; } .item{ width: 30%; box-sizing: border-box; padding: 10rpx 10rpx 20rpx; /* 左右间距+底部 */ } .service-link { display: flex; flex-direction: column; align-items: center; padding: 20rpx 0; } /* pages/redSpots/redSpots.wxss */ /* 基础样式 */ /* 页面整体样式 */ page { background-color: #f8f8f8; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; padding-bottom: 40rpx; } /* 搜索容器 */ .search-container { display: flex; align-items: center; padding: 20rpx 30rpx; background-color: #fff; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 100; } .search-bar { flex: 1; position: relative; background-color: #f5f5f5; border-radius: 40rpx; padding: 0 20rpx; display: flex; align-items: center; height: 80rpx; margin-right: 20rpx; } .search-input { flex: 1; height: 100%; font-size: 28rpx; color: #333; padding-left: 50rpx; } .search-icon { position: absolute; left: 25rpx; color: #999; } .search-btn { width: 140rpx; height: 80rpx; line-height: 80rpx; background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; font-size: 28rpx; border-radius: 40rpx; margin: 0; padding: 0; border: none; box-shadow: 0 4rpx 8rpx rgba(231, 76, 60, 0.3); } .btn-hover { opacity: 0.9; transform: scale(0.98); } /* 分类筛选 */ .categories { display: flex; flex-wrap: wrap; padding: 20rpx 30rpx; background-color: #fff; margin-bottom: 20rpx; } .category { padding: 12rpx 24rpx; margin-right: 20rpx; margin-bottom: 15rpx; font-size: 26rpx; color: #666; background-color: #f5f5f5; border-radius: 30rpx; transition: all 0.3s; } .category.active { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; font-weight: 500; } /* 数据列表 */ .spot-list { padding: 0 30rpx; } .spot-item { background-color: #fff; border-radius: 12rpx; overflow: hidden; margin-bottom: 30rpx; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05); transition: transform 0.3s; } .spot-item:active { transform: scale(0.98); } .spot-item image { width: 100%; height: 360rpx; display: block; } .info { padding: 20rpx; } .name { font-size: 32rpx; color: #333; font-weight: 500; display: block; margin-bottom: 10rpx; } .location { font-size: 26rpx; color: #999; display: block; } /* 加载状态 */ .loading { text-align: center; padding: 30rpx; color: #999; font-size: 28rpx; } /* 暂无数据 */ .empty { text-align: center; padding: 60rpx; color: #999; font-size: 28rpx; } /* 热门推荐 */ .hot-recommend { padding: 30rpx; background-color: #fff; margin-top: 20rpx; border-radius: 16rpx; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05); } .section-title { font-size: 32rpx; color: #333; font-weight: 500; margin-bottom: 20rpx; padding-left: 10rpx; border-left: 6rpx solid #e74c3c; } .hot-scroll { white-space: nowrap; width: 100%; } .hot-item { display: inline-block; width: 240rpx; margin-right: 20rpx; vertical-align: top; } .hot-image { width: 240rpx; height: 160rpx; border-radius: 12rpx; display: block; } .hot-name { font-size: 26rpx; color: #333; margin-top: 10rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 响应式调整 */ @media (max-width: 480px) { .hot-item { width: 200rpx; } .hot-image { height: 140rpx; } }