/* pages/search/index.wxss */ .container { min-height: 100vh; background: #ffffff; } /* 搜索头部 */ .search-header { padding: 24rpx 32rpx; display: flex; align-items: center; background: #ffffff; position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1rpx solid #f5f5f5; } .search-box { flex: 1; height: 72rpx; background: #f5f5f5; border-radius: 36rpx; display: flex; align-items: center; padding: 0 24rpx; margin-right: 20rpx; } .search-input { flex: 1; height: 72rpx; font-size: 28rpx; margin: 0 16rpx; } .cancel-btn { font-size: 28rpx; color: #666666; padding: 16rpx 0; } /* 搜索内容区域 */ .search-content { margin-top: 120rpx; padding: 0 32rpx; height: calc(100vh - 120rpx); } /* 搜索区块通用样式 */ .search-section { margin-bottom: 48rpx; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24rpx; } .section-title { font-size: 32rpx; font-weight: 500; color: #262626; } .clear-history { font-size: 24rpx; color: #999999; display: flex; align-items: center; } .clear-history .iconfont { font-size: 28rpx; margin-right: 8rpx; } /* 热门搜索 */ .hot-search { display: flex; flex-wrap: wrap; margin: 0 -8rpx; } .hot-item { margin: 8rpx; padding: 12rpx 24rpx; background: #f5f5f5; border-radius: 28rpx; font-size: 26rpx; color: #666666; } .hot-item.hot { background: rgba(255, 77, 79, 0.1); color: #ff4d4f; } /* 搜索历史 */ .history-list { display: flex; flex-direction: column; } .history-item { display: flex; align-items: center; padding: 24rpx 0; font-size: 28rpx; color: #333333; border-bottom: 1rpx solid #f5f5f5; } .history-item .iconfont { font-size: 32rpx; color: #999999; margin-right: 16rpx; } .history-text { flex: 1; } /* 搜索建议 */ .search-suggestions { background: #ffffff; } .suggestion-item { display: flex; align-items: center; padding: 24rpx 0; font-size: 28rpx; color: #333333; border-bottom: 1rpx solid #f5f5f5; } .suggestion-item .iconfont { font-size: 32rpx; color: #999999; margin-right: 16rpx; } /* 图标字体 */ @font-face { font-family: "iconfont"; src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAAO0AAsAAAAACFwAAANlAA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