all-trips.wxss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. .all-trips {
  2. min-height: 100vh;
  3. background: linear-gradient(to bottom, #dbf0ff 0%, #e3f4ff 40%, #f0f9ff 100%);
  4. padding-bottom: 30rpx;
  5. }
  6. .navbar {
  7. display: flex;
  8. align-items: center;
  9. height: 90rpx;
  10. padding: 0 30rpx;
  11. background-color: rgba(255, 255, 255, 0.8);
  12. border-bottom: 1rpx solid #eaeaea;
  13. position: relative;
  14. }
  15. .back-btn {
  16. display: flex;
  17. align-items: center;
  18. position: absolute;
  19. left: 30rpx;
  20. }
  21. .back-icon {
  22. font-size: 40rpx;
  23. }
  24. .back-text {
  25. font-size: 28rpx;
  26. margin-left: 6rpx;
  27. }
  28. .navbar .title {
  29. flex: 1;
  30. text-align: center;
  31. font-size: 32rpx;
  32. font-weight: 500;
  33. }
  34. .container {
  35. padding: 20rpx;
  36. }
  37. /* 行程卡片样式 */
  38. .trip-list {
  39. display: flex;
  40. flex-direction: column;
  41. gap: 30rpx;
  42. margin-top: 15rpx;
  43. }
  44. .trip-card {
  45. background-color: #fff;
  46. border-radius: 20rpx;
  47. display: flex;
  48. overflow: hidden;
  49. position: relative;
  50. box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  51. transition: all 0.3s ease;
  52. }
  53. /* 行程卡片背景图片 */
  54. .trip-background-image {
  55. position: absolute;
  56. top: 0;
  57. left: 0;
  58. width: 100%;
  59. height: 100%;
  60. object-fit: cover;
  61. z-index: 1;
  62. }
  63. .trip-overlay {
  64. position: absolute;
  65. top: 0;
  66. left: 0;
  67. width: 100%;
  68. height: 100%;
  69. background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  70. z-index: 2;
  71. }
  72. .card-shadow {
  73. position: absolute;
  74. bottom: 0;
  75. left: 0;
  76. right: 0;
  77. height: 8rpx;
  78. background: linear-gradient(to right, #4facfe, #00f2fe);
  79. border-radius: 0 0 20rpx 20rpx;
  80. z-index: 5;
  81. }
  82. .trip-info {
  83. flex: 1;
  84. padding: 30rpx;
  85. display: flex;
  86. flex-direction: column;
  87. justify-content: space-between;
  88. position: relative;
  89. z-index: 3;
  90. }
  91. .trip-location {
  92. display: flex;
  93. align-items: flex-start;
  94. margin-bottom: 30rpx;
  95. }
  96. .location-icon {
  97. width: 40rpx;
  98. height: 40rpx;
  99. margin-right: 15rpx;
  100. margin-top: 6rpx;
  101. }
  102. .trip-main-info {
  103. flex: 1;
  104. }
  105. /* 修改文本颜色以适应图片背景 */
  106. .trip-name {
  107. font-size: 32rpx;
  108. font-weight: bold;
  109. color: #ffffff;
  110. margin-bottom: 15rpx;
  111. line-height: 1.4;
  112. text-shadow: 1rpx 1rpx 3rpx rgba(0, 0, 0, 0.5);
  113. }
  114. .trip-date {
  115. font-size: 28rpx;
  116. color: #f0f0f0;
  117. text-shadow: 1rpx 1rpx 2rpx rgba(0, 0, 0, 0.5);
  118. }
  119. .trip-date-wrap {
  120. display: flex;
  121. align-items: center;
  122. }
  123. .trip-date-label {
  124. font-size: 26rpx;
  125. color: #e0e0e0;
  126. margin-right: 10rpx;
  127. text-shadow: 1rpx 1rpx 2rpx rgba(0, 0, 0, 0.5);
  128. }
  129. .trip-date-value {
  130. font-size: 26rpx;
  131. color: #ffffff;
  132. background-color: rgba(0, 0, 0, 0.3);
  133. padding: 4rpx 16rpx;
  134. border-radius: 100rpx;
  135. }
  136. .trip-members {
  137. display: flex;
  138. align-items: center;
  139. }
  140. .member-icon {
  141. width: 40rpx;
  142. height: 40rpx;
  143. margin-right: 15rpx;
  144. }
  145. .member-count {
  146. font-size: 26rpx;
  147. color: #f0f0f0;
  148. text-shadow: 1rpx 1rpx 2rpx rgba(0, 0, 0, 0.5);
  149. }
  150. .trip-stats {
  151. width: 200rpx;
  152. background: linear-gradient(to bottom, rgba(182, 230, 255, 0.9), rgba(132, 212, 255, 0.9));
  153. padding: 30rpx 20rpx;
  154. display: flex;
  155. flex-direction: column;
  156. align-items: center;
  157. justify-content: center;
  158. position: relative;
  159. z-index: 3;
  160. }
  161. .trip-tag {
  162. display: flex;
  163. flex-direction: column;
  164. align-items: center;
  165. margin-bottom: 20rpx;
  166. }
  167. .tag-title {
  168. font-size: 24rpx;
  169. font-weight: bold;
  170. color: #333;
  171. }
  172. .tag-subtitle {
  173. font-size: 24rpx;
  174. font-weight: bold;
  175. color: #333;
  176. }
  177. .globe-icon {
  178. width: 40rpx;
  179. height: 40rpx;
  180. margin-top: 10rpx;
  181. }
  182. .trip-divider {
  183. width: 80%;
  184. height: 2rpx;
  185. background-color: rgba(51, 51, 51, 0.2);
  186. margin: 15rpx 0;
  187. }
  188. .trip-duration,
  189. .trip-distance {
  190. width: 100%;
  191. display: flex;
  192. flex-direction: column;
  193. align-items: flex-end;
  194. margin-top: 10rpx;
  195. }
  196. .stat-label {
  197. font-size: 24rpx;
  198. color: #333;
  199. text-align: right;
  200. }
  201. .stat-value {
  202. font-size: 28rpx;
  203. font-weight: bold;
  204. color: #333;
  205. text-align: right;
  206. }
  207. /* 空行程状态样式 */
  208. .empty-trip {
  209. display: flex;
  210. flex-direction: column;
  211. justify-content: center;
  212. align-items: center;
  213. background-color: #f9f9f9;
  214. border-radius: 20rpx;
  215. padding: 60rpx 0;
  216. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.05);
  217. }
  218. .empty-icon {
  219. font-size: 80rpx;
  220. margin-bottom: 20rpx;
  221. }
  222. .empty-text {
  223. font-size: 32rpx;
  224. color: #666;
  225. margin-bottom: 10rpx;
  226. }
  227. .empty-subtext {
  228. font-size: 26rpx;
  229. color: #999;
  230. }