/* pages/detail/detail.wxss */ /* 基础样式 */ page { background-color: #f5f5f5; padding-bottom: 100rpx; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; } /* 容器样式 */ .detail-container { padding: 0 20rpx 120rpx; } /* 轮播图样式 */ .spot-swiper { height: 400rpx; border-radius: 12rpx; overflow: hidden; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1); margin: 20rpx 0; } .swiper-image { width: 100%; height: 100%; } /* 信息卡片通用样式 */ .info-card, .spot-info-card { background: #fff; border-radius: 12rpx; padding: 30rpx; margin-bottom: 24rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05); } .spot-info-card { margin-top: -60rpx; position: relative; z-index: 2; border-top: 6rpx solid #e54d42; } /* 红色历史特殊样式 */ .red-history { border-left: 6rpx solid #e54d42; } /* 标题样式 */ .section-title { font-size: 32rpx; font-weight: bold; color: #333; margin-bottom: 24rpx; display: flex; align-items: center; } .section-icon { width: 36rpx; height: 36rpx; margin-right: 12rpx; } /* 内容样式 */ .section-content { font-size: 28rpx; line-height: 1.6; color: #666; } /* 景点名称样式 */ .spot-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20rpx; } .spot-name { font-size: 36rpx; font-weight: bold; color: #333; flex: 1; } .red-badge { background: #e54d42; color: white; padding: 6rpx 16rpx; border-radius: 20rpx; font-size: 24rpx; } /* 元信息样式 */ .spot-meta { display: flex; flex-direction: column; gap: 16rpx; } .meta-item { display: flex; align-items: center; font-size: 26rpx; color: #666; } .meta-text { margin-left: 10rpx; } /* 地图样式 */ .spot-map { width: 100%; height: 300rpx; border-radius: 8rpx; margin: 20rpx 0; } .map-actions { display: flex; justify-content: center; } .map-btn { background: #e54d42; color: white; border-radius: 50rpx; padding: 0 40rpx; font-size: 28rpx; height: 70rpx; line-height: 70rpx; } /* 评论样式 */ .no-review { display: flex; flex-direction: column; align-items: center; padding: 40rpx 0; color: #999; } .empty-icon { width: 120rpx; height: 120rpx; margin-bottom: 20rpx; opacity: 0.5; } .review-item { display: flex; padding: 24rpx 0; border-bottom: 1rpx solid #f0f0f0; } .user-avatar { width: 80rpx; height: 80rpx; border-radius: 50%; margin-right: 20rpx; } .review-content-box { flex: 1; } .review-header { display: flex; justify-content: space-between; margin-bottom: 10rpx; } .user-name { font-size: 28rpx; color: #333; font-weight: 500; } .review-time { font-size: 24rpx; color: #999; } .review-content { font-size: 26rpx; color: #666; line-height: 1.5; } .comment-btn { background: #f8f8f8; color: #e54d42; border: 1rpx solid #e54d42; border-radius: 50rpx; margin-top: 30rpx; font-size: 28rpx; height: 80rpx; line-height: 80rpx; } /* 底部操作栏 */ .action-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 100rpx; background: white; display: flex; padding: 10rpx 20rpx; box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05); z-index: 100; } .action-btn { flex: 1; margin: 0 10rpx; border-radius: 50rpx; font-size: 28rpx; height: 80rpx; line-height: 80rpx; display: flex; align-items: center; justify-content: center; background: white; color: #333; border: 1rpx solid #e0e0e0; } .action-btn.primary { background: linear-gradient(to right, #e54d42, #f37e36); color: white; border: none; } .btn-icon { width: 36rpx; height: 36rpx; margin-right: 10rpx; } /* 添加按钮点击效果 */ .button-hover { opacity: 0.7; transform: scale(0.98); } /* 调整toast样式 */ .wx-toast { font-size: 28rpx; }