/* pages/home/home.wxss */ /* 首页样式 */ .home-container { background-color: #f5f5f5; min-height: 100vh; } .search-bar { position: relative; padding: 20rpx 30rpx; background-color: #fff; } .search-input { width: 100%; height: 70rpx; padding-left: 70rpx; background-color: #f5f5f5; border-radius: 35rpx; font-size: 28rpx; } .search-icon { position: absolute; left: 50rpx; top: 50%; transform: translateY(-50%); font-size: 36rpx; color: #909399; } .banner-swiper { width: 100%; height: 350rpx; } .banner-image { width: 100%; height: 100%; } .category-nav { display: flex; flex-wrap: wrap; padding: 30rpx 20rpx; background-color: #fff; margin-top: 20rpx; } .category-item { width: 25%; display: flex; flex-direction: column; align-items: center; margin-bottom: 30rpx; } .category-icon { width: 100rpx; height: 100rpx; border-radius: 50%; background-color: #ecf5ff; display: flex; align-items: center; justify-content: center; margin-bottom: 15rpx; } .category-icon .iconfont { font-size: 48rpx; color: #409EFF; } .category-name { font-size: 26rpx; color: #606266; } .stats-section { display: flex; padding: 40rpx 30rpx; background-color: #fff; margin-top: 20rpx; } .stats-item { flex: 1; display: flex; flex-direction: column; align-items: center; } .stats-value { font-size: 40rpx; font-weight: bold; color: #409EFF; margin-bottom: 10rpx; } .stats-label { font-size: 24rpx; color: #909399; } .section { background-color: #fff; margin-top: 20rpx; padding: 30rpx; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30rpx; } .section-title { font-size: 32rpx; font-weight: bold; color: #303133; } .section-more { font-size: 26rpx; color: #909399; } .article-list { display: flex; flex-direction: column; } .article-item { display: flex; padding: 20rpx 0; border-bottom: 1rpx solid #f0f0f0; } .article-item:last-child { border-bottom: none; } .article-image { width: 200rpx; height: 150rpx; border-radius: 8rpx; margin-right: 20rpx; } .article-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; } .article-title { font-size: 28rpx; color: #303133; font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .article-meta { display: flex; justify-content: space-between; font-size: 24rpx; color: #909399; } /** * @联系作者:16768118056 * @描述:(此项目非免费分享)源码百分百可用,搞定毕设不发愁,支持远程调试安装、二次开发、定制、讲解、文档类。 * @访问:https://www.notmaker.com/detail/8326a897119d4542896c863a69d7bbe7/gtt20260415,查看完整运行演示。 */