detail.wxss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. /* pages/detail/detail.wxss */
  2. /* 基础样式 */
  3. page {
  4. background-color: #f5f5f5;
  5. padding-bottom: 100rpx;
  6. font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  7. }
  8. /* 容器样式 */
  9. .detail-container {
  10. padding: 0 20rpx 120rpx;
  11. }
  12. /* 轮播图样式 */
  13. .spot-swiper {
  14. height: 400rpx;
  15. border-radius: 12rpx;
  16. overflow: hidden;
  17. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
  18. margin: 20rpx 0;
  19. }
  20. .swiper-image {
  21. width: 100%;
  22. height: 100%;
  23. }
  24. /* 信息卡片通用样式 */
  25. .info-card, .spot-info-card {
  26. background: #fff;
  27. border-radius: 12rpx;
  28. padding: 30rpx;
  29. margin-bottom: 24rpx;
  30. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
  31. }
  32. .spot-info-card {
  33. margin-top: -60rpx;
  34. position: relative;
  35. z-index: 2;
  36. border-top: 6rpx solid #e54d42;
  37. }
  38. /* 红色历史特殊样式 */
  39. .red-history {
  40. border-left: 6rpx solid #e54d42;
  41. }
  42. /* 标题样式 */
  43. .section-title {
  44. font-size: 32rpx;
  45. font-weight: bold;
  46. color: #333;
  47. margin-bottom: 24rpx;
  48. display: flex;
  49. align-items: center;
  50. }
  51. .section-icon {
  52. width: 36rpx;
  53. height: 36rpx;
  54. margin-right: 12rpx;
  55. }
  56. /* 内容样式 */
  57. .section-content {
  58. font-size: 28rpx;
  59. line-height: 1.6;
  60. color: #666;
  61. }
  62. /* 景点名称样式 */
  63. .spot-header {
  64. display: flex;
  65. justify-content: space-between;
  66. align-items: center;
  67. margin-bottom: 20rpx;
  68. }
  69. .spot-name {
  70. font-size: 36rpx;
  71. font-weight: bold;
  72. color: #333;
  73. flex: 1;
  74. }
  75. .red-badge {
  76. background: #e54d42;
  77. color: white;
  78. padding: 6rpx 16rpx;
  79. border-radius: 20rpx;
  80. font-size: 24rpx;
  81. }
  82. /* 元信息样式 */
  83. .spot-meta {
  84. display: flex;
  85. flex-direction: column;
  86. gap: 16rpx;
  87. }
  88. .meta-item {
  89. display: flex;
  90. align-items: center;
  91. font-size: 26rpx;
  92. color: #666;
  93. }
  94. .meta-text {
  95. margin-left: 10rpx;
  96. }
  97. /* 地图样式 */
  98. .spot-map {
  99. width: 100%;
  100. height: 300rpx;
  101. border-radius: 8rpx;
  102. margin: 20rpx 0;
  103. }
  104. .map-actions {
  105. display: flex;
  106. justify-content: center;
  107. }
  108. .map-btn {
  109. background: #e54d42;
  110. color: white;
  111. border-radius: 50rpx;
  112. padding: 0 40rpx;
  113. font-size: 28rpx;
  114. height: 70rpx;
  115. line-height: 70rpx;
  116. }
  117. /* 评论样式 */
  118. .no-review {
  119. display: flex;
  120. flex-direction: column;
  121. align-items: center;
  122. padding: 40rpx 0;
  123. color: #999;
  124. }
  125. .empty-icon {
  126. width: 120rpx;
  127. height: 120rpx;
  128. margin-bottom: 20rpx;
  129. opacity: 0.5;
  130. }
  131. .review-item {
  132. display: flex;
  133. padding: 24rpx 0;
  134. border-bottom: 1rpx solid #f0f0f0;
  135. }
  136. .user-avatar {
  137. width: 80rpx;
  138. height: 80rpx;
  139. border-radius: 50%;
  140. margin-right: 20rpx;
  141. }
  142. .review-content-box {
  143. flex: 1;
  144. }
  145. .review-header {
  146. display: flex;
  147. justify-content: space-between;
  148. margin-bottom: 10rpx;
  149. }
  150. .user-name {
  151. font-size: 28rpx;
  152. color: #333;
  153. font-weight: 500;
  154. }
  155. .review-time {
  156. font-size: 24rpx;
  157. color: #999;
  158. }
  159. .review-content {
  160. font-size: 26rpx;
  161. color: #666;
  162. line-height: 1.5;
  163. }
  164. .comment-btn {
  165. background: #f8f8f8;
  166. color: #e54d42;
  167. border: 1rpx solid #e54d42;
  168. border-radius: 50rpx;
  169. margin-top: 30rpx;
  170. font-size: 28rpx;
  171. height: 80rpx;
  172. line-height: 80rpx;
  173. }
  174. /* 底部操作栏 */
  175. .action-bar {
  176. position: fixed;
  177. bottom: 0;
  178. left: 0;
  179. right: 0;
  180. height: 100rpx;
  181. background: white;
  182. display: flex;
  183. padding: 10rpx 20rpx;
  184. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  185. z-index: 100;
  186. }
  187. .action-btn {
  188. flex: 1;
  189. margin: 0 10rpx;
  190. border-radius: 50rpx;
  191. font-size: 28rpx;
  192. height: 80rpx;
  193. line-height: 80rpx;
  194. display: flex;
  195. align-items: center;
  196. justify-content: center;
  197. background: white;
  198. color: #333;
  199. border: 1rpx solid #e0e0e0;
  200. }
  201. .action-btn.primary {
  202. background: linear-gradient(to right, #e54d42, #f37e36);
  203. color: white;
  204. border: none;
  205. }
  206. .btn-icon {
  207. width: 36rpx;
  208. height: 36rpx;
  209. margin-right: 10rpx;
  210. }
  211. /* 添加按钮点击效果 */
  212. .button-hover {
  213. opacity: 0.7;
  214. transform: scale(0.98);
  215. }
  216. /* 调整toast样式 */
  217. .wx-toast {
  218. font-size: 28rpx;
  219. }