index.wxss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. .content {
  2. display: flex;
  3. flex-direction: column;
  4. background: linear-gradient(to bottom, #dbf0ff 0%, #e3f4ff 40%, #f0f9ff 100%);
  5. min-height: 100vh;
  6. padding: 30rpx;
  7. position: relative;
  8. overflow: hidden;
  9. }
  10. /* 背景装饰 */
  11. .bg-decoration {
  12. position: absolute;
  13. top: 0;
  14. left: 0;
  15. width: 100%;
  16. height: 100%;
  17. z-index: 0;
  18. overflow: hidden;
  19. }
  20. .bg-circle {
  21. position: absolute;
  22. border-radius: 50%;
  23. opacity: 0.1;
  24. }
  25. .bg-circle-1 {
  26. top: -300rpx;
  27. right: -200rpx;
  28. width: 800rpx;
  29. height: 800rpx;
  30. background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  31. }
  32. .bg-circle-2 {
  33. bottom: -400rpx;
  34. left: -300rpx;
  35. width: 1000rpx;
  36. height: 1000rpx;
  37. background: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
  38. }
  39. .header {
  40. margin-bottom: 40rpx;
  41. position: relative;
  42. z-index: 1;
  43. }
  44. .header-title {
  45. font-size: 48rpx;
  46. font-weight: bold;
  47. color: #333;
  48. margin-bottom: 10rpx;
  49. text-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
  50. }
  51. .header-subtitle {
  52. font-size: 28rpx;
  53. color: #666;
  54. font-style: italic;
  55. }
  56. /* 行程规划选项样式 */
  57. .planning-options {
  58. display: flex;
  59. justify-content: space-between;
  60. margin-bottom: 60rpx;
  61. position: relative;
  62. z-index: 1;
  63. }
  64. .option-card {
  65. width: 48%;
  66. background-color: #fff;
  67. border-radius: 20rpx;
  68. padding: 30rpx;
  69. display: flex;
  70. flex-direction: column;
  71. box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  72. transition: all 0.3s ease;
  73. position: relative;
  74. overflow: hidden;
  75. }
  76. .card-hover {
  77. transform: translateY(-10rpx);
  78. box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.15);
  79. }
  80. .custom-plan {
  81. background: linear-gradient(to bottom right, #ffffff, #f8f8f8);
  82. border: 1rpx solid #eaeaea;
  83. }
  84. .ai-plan {
  85. background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  86. }
  87. .ai-plan .option-title,
  88. .ai-plan .option-desc,
  89. .ai-plan .arrow-text,
  90. .ai-plan .arrow-icon {
  91. color: #fff;
  92. }
  93. .option-icon-wrap {
  94. width: 100rpx;
  95. height: 100rpx;
  96. border-radius: 50%;
  97. background-color: #f0f8ff;
  98. display: flex;
  99. justify-content: center;
  100. align-items: center;
  101. margin-bottom: 20rpx;
  102. box-shadow: 0 6rpx 15rpx rgba(0, 0, 0, 0.05);
  103. }
  104. .ai-icon-wrap {
  105. background-color: rgba(255, 255, 255, 0.2);
  106. }
  107. .option-icon {
  108. width: 60rpx;
  109. height: 60rpx;
  110. }
  111. .option-title {
  112. font-size: 32rpx;
  113. font-weight: bold;
  114. margin-bottom: 10rpx;
  115. color: #333;
  116. }
  117. .option-desc {
  118. font-size: 24rpx;
  119. color: #666;
  120. margin-bottom: 20rpx;
  121. }
  122. .option-arrow {
  123. display: flex;
  124. align-items: center;
  125. justify-content: space-between;
  126. margin-top: 20rpx;
  127. }
  128. .arrow-text {
  129. font-size: 26rpx;
  130. color: #3a9eeb;
  131. }
  132. .arrow-icon {
  133. font-size: 30rpx;
  134. color: #3a9eeb;
  135. }
  136. /* 待出发行程样式 */
  137. .upcoming-trips {
  138. margin-top: 20rpx;
  139. position: relative;
  140. z-index: 1;
  141. }
  142. .section-header {
  143. display: flex;
  144. justify-content: space-between;
  145. align-items: center;
  146. margin-bottom: 30rpx;
  147. }
  148. .section-title-wrap {
  149. position: relative;
  150. }
  151. .section-title {
  152. font-size: 36rpx;
  153. font-weight: bold;
  154. color: #333;
  155. position: relative;
  156. z-index: 1;
  157. }
  158. .title-underline {
  159. position: absolute;
  160. bottom: 0;
  161. left: 0;
  162. width: 80rpx;
  163. height: 10rpx;
  164. background: linear-gradient(to right, #4facfe, #00f2fe);
  165. border-radius: 10rpx;
  166. }
  167. .section-more {
  168. display: flex;
  169. align-items: center;
  170. }
  171. .more-text {
  172. font-size: 26rpx;
  173. color: #3a9eeb;
  174. }
  175. .more-icon {
  176. margin-left: 5rpx;
  177. font-size: 26rpx;
  178. color: #3a9eeb;
  179. }
  180. .trip-list {
  181. display: flex;
  182. flex-direction: column;
  183. gap: 30rpx;
  184. }
  185. .trip-card {
  186. background-color: #fff;
  187. border-radius: 20rpx;
  188. display: flex;
  189. overflow: hidden;
  190. position: relative;
  191. box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  192. transition: all 0.3s ease;
  193. }
  194. /* 行程卡片背景图片 */
  195. .trip-background-image {
  196. position: absolute;
  197. top: 0;
  198. left: 0;
  199. width: 100%;
  200. height: 100%;
  201. object-fit: cover;
  202. z-index: 1;
  203. }
  204. .trip-overlay {
  205. position: absolute;
  206. top: 0;
  207. left: 0;
  208. width: 100%;
  209. height: 100%;
  210. background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  211. z-index: 2;
  212. }
  213. .card-shadow {
  214. position: absolute;
  215. bottom: 0;
  216. left: 0;
  217. right: 0;
  218. height: 8rpx;
  219. background: linear-gradient(to right, #4facfe, #00f2fe);
  220. border-radius: 0 0 20rpx 20rpx;
  221. z-index: 5;
  222. }
  223. .trip-info {
  224. flex: 1;
  225. padding: 30rpx;
  226. display: flex;
  227. flex-direction: column;
  228. justify-content: space-between;
  229. position: relative;
  230. z-index: 3;
  231. }
  232. .trip-location {
  233. display: flex;
  234. align-items: flex-start;
  235. margin-bottom: 30rpx;
  236. }
  237. .location-icon {
  238. width: 40rpx;
  239. height: 40rpx;
  240. margin-right: 15rpx;
  241. margin-top: 6rpx;
  242. }
  243. .trip-main-info {
  244. flex: 1;
  245. }
  246. /* 修改文本颜色以适应图片背景 */
  247. .trip-name {
  248. font-size: 32rpx;
  249. font-weight: bold;
  250. color: #ffffff;
  251. margin-bottom: 15rpx;
  252. line-height: 1.4;
  253. text-shadow: 1rpx 1rpx 3rpx rgba(0, 0, 0, 0.5);
  254. }
  255. .trip-date {
  256. font-size: 28rpx;
  257. color: #f0f0f0;
  258. text-shadow: 1rpx 1rpx 2rpx rgba(0, 0, 0, 0.5);
  259. }
  260. .trip-date-wrap {
  261. display: flex;
  262. align-items: center;
  263. }
  264. .trip-date-label {
  265. font-size: 26rpx;
  266. color: #e0e0e0;
  267. margin-right: 10rpx;
  268. text-shadow: 1rpx 1rpx 2rpx rgba(0, 0, 0, 0.5);
  269. }
  270. .trip-date-value {
  271. font-size: 26rpx;
  272. color: #ffffff;
  273. background-color: rgba(0, 0, 0, 0.3);
  274. padding: 4rpx 16rpx;
  275. border-radius: 100rpx;
  276. }
  277. .trip-members {
  278. display: flex;
  279. align-items: center;
  280. }
  281. .member-icon {
  282. width: 40rpx;
  283. height: 40rpx;
  284. margin-right: 15rpx;
  285. }
  286. .member-count {
  287. font-size: 26rpx;
  288. color: #f0f0f0;
  289. text-shadow: 1rpx 1rpx 2rpx rgba(0, 0, 0, 0.5);
  290. }
  291. .trip-stats {
  292. width: 200rpx;
  293. background: linear-gradient(to bottom, rgba(182, 230, 255, 0.9), rgba(132, 212, 255, 0.9));
  294. padding: 30rpx 20rpx;
  295. display: flex;
  296. flex-direction: column;
  297. align-items: center;
  298. justify-content: center;
  299. position: relative;
  300. z-index: 3;
  301. }
  302. .trip-tag {
  303. display: flex;
  304. flex-direction: column;
  305. align-items: center;
  306. margin-bottom: 20rpx;
  307. }
  308. .tag-title {
  309. font-size: 24rpx;
  310. font-weight: bold;
  311. color: #333;
  312. }
  313. .tag-subtitle {
  314. font-size: 24rpx;
  315. font-weight: bold;
  316. color: #333;
  317. }
  318. .globe-icon {
  319. width: 40rpx;
  320. height: 40rpx;
  321. margin-top: 10rpx;
  322. }
  323. .trip-divider {
  324. width: 80%;
  325. height: 2rpx;
  326. background-color: rgba(51, 51, 51, 0.2);
  327. margin: 15rpx 0;
  328. }
  329. .trip-duration,
  330. .trip-distance {
  331. width: 100%;
  332. display: flex;
  333. flex-direction: column;
  334. align-items: flex-end;
  335. margin-top: 10rpx;
  336. }
  337. .stat-label {
  338. font-size: 24rpx;
  339. color: #333;
  340. text-align: right;
  341. }
  342. .stat-value {
  343. font-size: 28rpx;
  344. font-weight: bold;
  345. color: #333;
  346. text-align: right;
  347. }
  348. /* 热门目的地推荐 */
  349. .recommendations {
  350. margin-top: 60rpx;
  351. position: relative;
  352. z-index: 1;
  353. padding: 0 10rpx;
  354. }
  355. .recommendation-title {
  356. font-size: 36rpx;
  357. font-weight: bold;
  358. color: #333;
  359. margin-bottom: 20rpx;
  360. display: flex;
  361. align-items: center;
  362. }
  363. .recommendation-title::before {
  364. content: "";
  365. display: inline-block;
  366. width: 8rpx;
  367. height: 36rpx;
  368. background: linear-gradient(to bottom, #4facfe, #00f2fe);
  369. margin-right: 16rpx;
  370. border-radius: 4rpx;
  371. }
  372. .recommendation-scroll {
  373. width: 100%;
  374. }
  375. .recommendation-list {
  376. display: flex;
  377. flex-direction: column;
  378. gap: 20rpx;
  379. padding: 10rpx 0;
  380. }
  381. .recommendation-item {
  382. width: 100%;
  383. height: 220rpx;
  384. border-radius: 16rpx;
  385. overflow: hidden;
  386. box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.1);
  387. position: relative;
  388. transition: all 0.3s ease;
  389. }
  390. .recommendation-item:active {
  391. transform: scale(0.98);
  392. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.15);
  393. }
  394. .recommendation-image {
  395. width: 100%;
  396. height: 100%;
  397. object-fit: cover;
  398. }
  399. .recommendation-overlay {
  400. position: absolute;
  401. top: 0;
  402. left: 0;
  403. right: 0;
  404. bottom: 0;
  405. background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
  406. }
  407. .recommendation-info {
  408. position: absolute;
  409. bottom: 0;
  410. left: 0;
  411. right: 0;
  412. padding: 20rpx;
  413. z-index: 2;
  414. }
  415. .recommendation-name {
  416. font-size: 32rpx;
  417. font-weight: bold;
  418. color: #ffffff;
  419. margin-bottom: 6rpx;
  420. text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  421. }
  422. .recommendation-desc {
  423. font-size: 24rpx;
  424. color: rgba(255,255,255,0.9);
  425. text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  426. }
  427. /* 加载中样式 */
  428. .loading-container {
  429. display: flex;
  430. justify-content: center;
  431. align-items: center;
  432. width: 100%;
  433. height: 200rpx;
  434. background-color: #f2f2f2;
  435. border-radius: 16rpx;
  436. margin-bottom: 20rpx;
  437. }
  438. .loading-text {
  439. font-size: 30rpx;
  440. color: #999;
  441. }
  442. /* 空数据样式 */
  443. .empty-trip {
  444. display: flex;
  445. flex-direction: column;
  446. justify-content: center;
  447. align-items: center;
  448. background-color: #f9f9f9;
  449. border-radius: 20rpx;
  450. padding: 60rpx 0;
  451. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.05);
  452. }
  453. .empty-icon {
  454. font-size: 80rpx;
  455. margin-bottom: 20rpx;
  456. }
  457. .empty-text {
  458. font-size: 32rpx;
  459. color: #666;
  460. margin-bottom: 10rpx;
  461. }
  462. .empty-subtext {
  463. font-size: 26rpx;
  464. color: #999;
  465. }
  466. .empty-container {
  467. display: flex;
  468. justify-content: center;
  469. align-items: center;
  470. width: 100%;
  471. height: 200rpx;
  472. background-color: #f2f2f2;
  473. border-radius: 16rpx;
  474. margin-bottom: 20rpx;
  475. }
  476. .empty-text {
  477. font-size: 30rpx;
  478. color: #999;
  479. }
  480. /* 测试按钮样式 */
  481. .test-btn {
  482. background-color: #ff9500;
  483. color: #fff;
  484. padding: 15rpx 30rpx;
  485. border-radius: 10rpx;
  486. font-size: 28rpx;
  487. font-weight: bold;
  488. text-align: center;
  489. margin-bottom: 20rpx;
  490. align-self: center;
  491. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1);
  492. }
  493. /* 热门目的地样式 */
  494. .spots-grid {
  495. display: flex;
  496. justify-content: space-between;
  497. padding: 0 10rpx;
  498. gap: 30rpx;
  499. }
  500. .spot-card {
  501. width: 320rpx;
  502. height: 280rpx;
  503. background-color: #fff;
  504. border-radius: 20rpx;
  505. overflow: hidden;
  506. position: relative;
  507. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
  508. margin-bottom: 20rpx;
  509. }
  510. .spot-image {
  511. width: 100%;
  512. height: 180rpx;
  513. border-radius: 20rpx 20rpx 0 0;
  514. }
  515. .spot-tag {
  516. position: absolute;
  517. top: 16rpx;
  518. left: 16rpx;
  519. background-color: #ff6b35;
  520. color: white;
  521. font-size: 24rpx;
  522. padding: 4rpx 12rpx;
  523. border-radius: 8rpx;
  524. font-weight: bold;
  525. z-index: 1;
  526. }
  527. .spot-name {
  528. font-size: 30rpx;
  529. font-weight: bold;
  530. color: #333;
  531. padding: 16rpx 16rpx 8rpx;
  532. }
  533. .spot-location {
  534. display: flex;
  535. align-items: center;
  536. font-size: 24rpx;
  537. color: #999;
  538. padding: 0 16rpx;
  539. }
  540. .location-dot {
  541. color: #ff4f81;
  542. font-size: 24rpx;
  543. margin-right: 6rpx;
  544. }