xingchengxiangqing.wxss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. /* 基础样式 */
  2. page {
  3. background-color: #f8f9fa;
  4. }
  5. .container {
  6. padding: 0 20rpx 140rpx;
  7. color: #333;
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  9. }
  10. /* 顶部导航 */
  11. .header {
  12. display: flex;
  13. justify-content: space-between;
  14. align-items: center;
  15. padding: 30rpx 0;
  16. position: sticky;
  17. top: 0;
  18. background-color: #f8f9fa;
  19. z-index: 100;
  20. }
  21. .back-btn {
  22. display: flex;
  23. align-items: center;
  24. font-size: 28rpx;
  25. color: #666;
  26. }
  27. .back-icon {
  28. width: 36rpx;
  29. height: 36rpx;
  30. margin-right: 10rpx;
  31. }
  32. .title {
  33. font-size: 36rpx;
  34. font-weight: 600;
  35. color: #333;
  36. }
  37. .header-right {
  38. width: 80rpx; /* 保持对称 */
  39. }
  40. /* 行程基本信息卡片 */
  41. .plan-info-card {
  42. background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  43. border-radius: 20rpx;
  44. padding: 30rpx;
  45. margin-bottom: 40rpx;
  46. box-shadow: 0 6rpx 18rpx rgba(0, 0, 0, 0.03);
  47. border: 1rpx solid #eee;
  48. }
  49. .plan-header {
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. margin-bottom: 20rpx;
  54. }
  55. .plan-title {
  56. font-size: 38rpx;
  57. font-weight: 600;
  58. color: #333;
  59. flex: 1;
  60. }
  61. .plan-days-badge {
  62. background-color: #e54d42;
  63. color: white;
  64. padding: 8rpx 20rpx;
  65. border-radius: 30rpx;
  66. font-size: 24rpx;
  67. font-weight: 500;
  68. }
  69. .meta-item {
  70. display: flex;
  71. align-items: center;
  72. color: #666;
  73. font-size: 26rpx;
  74. margin-bottom: 15rpx;
  75. }
  76. .meta-icon {
  77. width: 28rpx;
  78. height: 28rpx;
  79. margin-right: 10rpx;
  80. opacity: 0.8;
  81. }
  82. .plan-desc-box {
  83. position: relative;
  84. margin: 30rpx 0;
  85. padding-left: 40rpx;
  86. }
  87. .quote-icon {
  88. position: absolute;
  89. left: 0;
  90. top: 0;
  91. width: 30rpx;
  92. height: 30rpx;
  93. opacity: 0.3;
  94. }
  95. .plan-desc {
  96. font-size: 28rpx;
  97. line-height: 1.6;
  98. color: #555;
  99. }
  100. /* 城市标签 */
  101. .city-tags {
  102. display: flex;
  103. flex-wrap: wrap;
  104. margin-top: 20rpx;
  105. }
  106. .city-tag {
  107. display: flex;
  108. align-items: center;
  109. background-color: #f0f7ff;
  110. color: #0081ff;
  111. padding: 8rpx 20rpx 8rpx 15rpx;
  112. border-radius: 30rpx;
  113. margin-right: 15rpx;
  114. margin-bottom: 15rpx;
  115. font-size: 24rpx;
  116. border: 1rpx solid #d0e4ff;
  117. }
  118. .tag-icon {
  119. width: 24rpx;
  120. height: 24rpx;
  121. margin-right: 8rpx;
  122. }
  123. /* 时间轴布局 */
  124. .timeline {
  125. position: relative;
  126. padding-left: 80rpx;
  127. }
  128. .timeline:before {
  129. content: '';
  130. position: absolute;
  131. left: 35rpx;
  132. top: 0;
  133. bottom: 0;
  134. width: 2rpx;
  135. background-color: #e0e0e0;
  136. }
  137. .timeline-item {
  138. position: relative;
  139. margin-bottom: 50rpx;
  140. }
  141. .timeline-marker {
  142. position: absolute;
  143. left: -70rpx;
  144. top: 0;
  145. width: 80rpx;
  146. height: 80rpx;
  147. border-radius: 50%;
  148. color: white;
  149. font-size: 28rpx;
  150. font-weight: 600;
  151. display: flex;
  152. align-items: center;
  153. justify-content: center;
  154. text-align: center;
  155. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
  156. z-index: 2;
  157. transition: all 0.3s ease;
  158. transform: translateY(-10rpx);
  159. border: 4rpx solid white;
  160. }
  161. .timeline-marker::before {
  162. content: '';
  163. position: absolute;
  164. width: 100%;
  165. height: 100%;
  166. border-radius: 50%;
  167. background: rgba(255, 255, 255, 0.2);
  168. transform: scale(0);
  169. transition: all 0.3s ease;
  170. }
  171. .timeline-marker:active::before {
  172. transform: scale(1);
  173. }
  174. .timeline-item:hover .timeline-marker {
  175. transform: translateY(-10rpx) scale(1.1);
  176. box-shadow: 0 12rpx 30rpx rgba(0, 0, 0, 0.2);
  177. }
  178. .timeline-content {
  179. background-color: white;
  180. border-radius: 16rpx;
  181. padding: 30rpx;
  182. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
  183. border: 1rpx solid #f0f0f0;
  184. }
  185. .day-theme-box {
  186. display: flex;
  187. align-items: center;
  188. margin-bottom: 30rpx;
  189. padding-bottom: 20rpx;
  190. border-bottom: 1rpx dashed #eee;
  191. }
  192. .theme-icon {
  193. width: 32rpx;
  194. height: 32rpx;
  195. margin-right: 15rpx;
  196. }
  197. .day-theme {
  198. font-size: 32rpx;
  199. font-weight: 600;
  200. color: #333;
  201. }
  202. /* 景点卡片 */
  203. .attraction-card {
  204. margin-bottom: 40rpx;
  205. background: white;
  206. border-radius: 16rpx;
  207. overflow: hidden;
  208. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
  209. transition: all 0.3s ease;
  210. position: relative;
  211. }
  212. .attraction-card:active {
  213. transform: translateY(4rpx);
  214. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  215. }
  216. .attraction-header {
  217. display: flex;
  218. align-items: center;
  219. padding: 25rpx 30rpx;
  220. background-color: #f9f9f9;
  221. border-bottom: 1rpx solid #eee;
  222. }
  223. .attraction-index {
  224. width: 40rpx;
  225. height: 40rpx;
  226. border-radius: 50%;
  227. background-color: #e54d42;
  228. color: white;
  229. display: flex;
  230. align-items: center;
  231. justify-content: center;
  232. font-size: 24rpx;
  233. font-weight: bold;
  234. margin-right: 20rpx;
  235. flex-shrink: 0;
  236. }
  237. .attraction-name {
  238. flex: 1;
  239. font-size: 30rpx;
  240. font-weight: 600;
  241. color: #333;
  242. margin-right: 15rpx;
  243. overflow: hidden;
  244. text-overflow: ellipsis;
  245. white-space: nowrap;
  246. }
  247. .attraction-status {
  248. font-size: 24rpx;
  249. padding: 6rpx 16rpx;
  250. border-radius: 30rpx;
  251. background-color: #f0f0f0;
  252. color: #999;
  253. flex-shrink: 0;
  254. }
  255. .attraction-status.checked {
  256. background-color: #4CAF50;
  257. color: white;
  258. }
  259. .attraction-body {
  260. position: relative;
  261. }
  262. .attraction-image-box {
  263. height: 300rpx;
  264. position: relative;
  265. }
  266. .attraction-image {
  267. width: 100%;
  268. height: 100%;
  269. }
  270. .image-overlay {
  271. position: absolute;
  272. bottom: 0;
  273. left: 0;
  274. right: 0;
  275. height: 100rpx;
  276. background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  277. }
  278. /* 景点操作按钮 */
  279. .attraction-actions {
  280. display: flex;
  281. justify-content: flex-end;
  282. padding: 20rpx 30rpx 0;
  283. margin-top: -10rpx;
  284. position: relative;
  285. z-index: 2;
  286. }
  287. .checkin-btn {
  288. display: flex;
  289. align-items: center;
  290. font-size: 30rpx;
  291. padding: 10rpx 180rpx;
  292. background-color: #ffffff;
  293. color: #050505;
  294. border-radius: 20rpx;
  295. border: 1rpx solid #e4e7eb;
  296. transition: all 0.2s ease;
  297. margin-bottom: 25rpx;
  298. }
  299. .checkin-btn:active {
  300. background-color: #e0efff;
  301. transform: scale(0.98);
  302. }
  303. .action-icon {
  304. width: 28rpx;
  305. height: 28rpx;
  306. margin-right: 8rpx;
  307. }
  308. .attraction-details {
  309. padding: 25rpx 30rpx 30rpx;
  310. }
  311. .detail-row {
  312. display: flex;
  313. align-items: center;
  314. margin-bottom: 18rpx;
  315. font-size: 26rpx;
  316. color: #666;
  317. }
  318. .detail-icon {
  319. width: 28rpx;
  320. height: 28rpx;
  321. margin-right: 12rpx;
  322. opacity: 0.7;
  323. }
  324. .section {
  325. margin-top: 25rpx;
  326. padding-top: 25rpx;
  327. border-top: 1rpx solid #f5f5f5;
  328. }
  329. .section-title {
  330. display: flex;
  331. align-items: center;
  332. margin-bottom: 15rpx;
  333. font-size: 28rpx;
  334. font-weight: 600;
  335. color: #333;
  336. }
  337. .section-icon {
  338. width: 28rpx;
  339. height: 28rpx;
  340. margin-right: 12rpx;
  341. }
  342. .section-content {
  343. font-size: 26rpx;
  344. line-height: 1.6;
  345. color: #666;
  346. }
  347. /* 当日总结 */
  348. .day-summary {
  349. margin-top: 40rpx;
  350. padding-top: 30rpx;
  351. border-top: 1rpx dashed #eee;
  352. }
  353. .summary-header {
  354. display: flex;
  355. align-items: center;
  356. margin-bottom: 20rpx;
  357. }
  358. .summary-icon {
  359. width: 32rpx;
  360. height: 32rpx;
  361. margin-right: 15rpx;
  362. }
  363. .summary-content {
  364. font-size: 26rpx;
  365. line-height: 1.6;
  366. color: #666;
  367. }
  368. /* 悬浮操作按钮 */
  369. .floating-actions {
  370. position: fixed;
  371. bottom: 30rpx;
  372. left: 30rpx;
  373. right: 30rpx;
  374. display: flex;
  375. justify-content: space-between;
  376. z-index: 99;
  377. }
  378. .share-btn, .map-btn {
  379. height: 80rpx;
  380. border-radius: 40rpx;
  381. font-size: 28rpx;
  382. font-weight: 500;
  383. display: flex;
  384. align-items: center;
  385. justify-content: center;
  386. box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.15);
  387. transition: all 0.2s ease;
  388. }
  389. .share-btn {
  390. flex: 0.48;
  391. background: linear-gradient(135deg, #0081ff 0%, #0066cc 100%);
  392. color: white;
  393. }
  394. .map-btn {
  395. flex: 0.48;
  396. background: linear-gradient(135deg, #e54d42 0%, #c62a2a 100%);
  397. color: white;
  398. }
  399. .share-btn:active, .map-btn:active {
  400. transform: translateY(4rpx);
  401. box-shadow: 0 3rpx 10rpx rgba(0, 0, 0, 0.15);
  402. }
  403. .btn-icon {
  404. width: 32rpx;
  405. height: 32rpx;
  406. margin-right: 10rpx;
  407. }
  408. /* 打卡记录弹窗 */
  409. .checkin-modal {
  410. position: fixed;
  411. top: 0;
  412. left: 0;
  413. right: 0;
  414. bottom: 0;
  415. z-index: 999;
  416. display: none;
  417. align-items: center;
  418. justify-content: center;
  419. }
  420. .checkin-modal.show {
  421. display: flex;
  422. }
  423. .modal-mask {
  424. position: absolute;
  425. top: 0;
  426. left: 0;
  427. right: 0;
  428. bottom: 0;
  429. background-color: rgba(0, 0, 0, 0.6);
  430. animation: fadeIn 0.3s ease;
  431. }
  432. @keyframes fadeIn {
  433. from { opacity: 0; }
  434. to { opacity: 1; }
  435. }
  436. .modal-content {
  437. position: relative;
  438. width: 80%;
  439. max-width: 600rpx;
  440. background-color: #fff;
  441. border-radius: 20rpx;
  442. overflow: hidden;
  443. z-index: 1000;
  444. animation: slideUp 0.3s ease;
  445. }
  446. @keyframes slideUp {
  447. from {
  448. opacity: 0;
  449. transform: translateY(50rpx) scale(0.95);
  450. }
  451. to {
  452. opacity: 1;
  453. transform: translateY(0) scale(1);
  454. }
  455. }
  456. .modal-header {
  457. display: flex;
  458. justify-content: space-between;
  459. align-items: center;
  460. padding: 30rpx;
  461. border-bottom: 1rpx solid #f5f5f5;
  462. background-color: #fafafa;
  463. }
  464. .modal-title {
  465. font-size: 32rpx;
  466. font-weight: bold;
  467. color: #333;
  468. }
  469. .modal-close {
  470. padding: 10rpx;
  471. border-radius: 50%;
  472. transition: background-color 0.2s ease;
  473. }
  474. .modal-close:active {
  475. background-color: #f0f0f0;
  476. }
  477. .close-icon {
  478. width: 36rpx;
  479. height: 36rpx;
  480. }
  481. .checkin-swiper {
  482. height: 600rpx;
  483. }
  484. .checkin-item {
  485. display: flex;
  486. flex-direction: column;
  487. height: 100%;
  488. }
  489. .checkin-image-box {
  490. flex: 1;
  491. display: flex;
  492. align-items: center;
  493. justify-content: center;
  494. padding: 30rpx;
  495. background-color: #f8f9fa;
  496. }
  497. .checkin-image {
  498. width: 100%;
  499. height: 400rpx;
  500. border-radius: 12rpx;
  501. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  502. }
  503. .checkin-info {
  504. padding: 25rpx 30rpx 30rpx;
  505. text-align: center;
  506. background-color: white;
  507. }
  508. .checkin-time {
  509. display: block;
  510. font-size: 24rpx;
  511. color: #999;
  512. margin-bottom: 15rpx;
  513. }
  514. .checkin-note {
  515. font-size: 28rpx;
  516. line-height: 1.5;
  517. color: #333;
  518. word-break: break-word;
  519. }
  520. .checkin-pagination {
  521. padding: 20rpx;
  522. text-align: center;
  523. font-size: 28rpx;
  524. color: #666;
  525. border-top: 1rpx solid #f5f5f5;
  526. background-color: #fafafa;
  527. }
  528. /* 地图弹窗样式 */
  529. .map-modal {
  530. position: fixed;
  531. top: 0;
  532. left: 0;
  533. width: 100%;
  534. height: 100%;
  535. z-index: 1000;
  536. display: flex;
  537. align-items: center;
  538. justify-content: center;
  539. opacity: 0;
  540. visibility: hidden;
  541. transition: opacity 0.3s ease, visibility 0.3s ease;
  542. }
  543. .map-modal.show {
  544. opacity: 1;
  545. visibility: visible;
  546. }
  547. .modal-mask {
  548. position: absolute;
  549. top: 0;
  550. left: 0;
  551. width: 100%;
  552. height: 100%;
  553. background: rgba(0, 0, 0, 0.6);
  554. backdrop-filter: blur(3px);
  555. }
  556. .map-content {
  557. position: relative;
  558. width: 90%;
  559. max-width: 800px;
  560. height: 80%;
  561. background: #fff;
  562. border-radius: 16px;
  563. display: flex;
  564. flex-direction: column;
  565. overflow: hidden;
  566. box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  567. transform: translateY(20px);
  568. transition: transform 0.3s ease;
  569. }
  570. .map-modal.show .map-content {
  571. transform: translateY(0);
  572. }
  573. .modal-header {
  574. display: flex;
  575. justify-content: space-between;
  576. align-items: center;
  577. padding: 18px 20px;
  578. border-bottom: 1px solid #eee;
  579. background: #f9f9f9;
  580. }
  581. .modal-title {
  582. font-size: 18px;
  583. font-weight: 600;
  584. color: #333;
  585. }
  586. .modal-close {
  587. width: 36px;
  588. height: 36px;
  589. border-radius: 50%;
  590. display: flex;
  591. align-items: center;
  592. justify-content: center;
  593. cursor: pointer;
  594. transition: background 0.2s;
  595. }
  596. .modal-close:hover {
  597. background: #f0f0f0;
  598. }
  599. .close-icon {
  600. width: 22px;
  601. height: 22px;
  602. }
  603. /* 地图容器 */
  604. .map-container {
  605. flex: 1;
  606. position: relative;
  607. display: flex;
  608. align-items: center;
  609. justify-content: center;
  610. padding: 15px;
  611. }
  612. #planMap {
  613. width: 100%;
  614. height: 100%;
  615. border-radius: 12px;
  616. overflow: hidden;
  617. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  618. }
  619. /* 地图控制按钮 */
  620. .map-controls {
  621. position: absolute;
  622. right: 25px;
  623. bottom: 25px;
  624. display: flex;
  625. flex-direction: column;
  626. background: rgba(255, 255, 255, 0.95);
  627. border-radius: 10px;
  628. overflow: hidden;
  629. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  630. z-index: 10;
  631. }
  632. .control-btn {
  633. width: 46px;
  634. height: 46px;
  635. padding: 0;
  636. display: flex;
  637. align-items: center;
  638. justify-content: center;
  639. background: transparent;
  640. border: none;
  641. border-bottom: 1px solid #f0f0f0;
  642. cursor: pointer;
  643. transition: background 0.2s;
  644. }
  645. .control-btn:hover {
  646. background: #f8f8f8;
  647. }
  648. .control-btn:last-child {
  649. border-bottom: none;
  650. }
  651. .control-icon {
  652. width: 24px;
  653. height: 24px;
  654. }
  655. /* 地图图例 - 顶部 */
  656. .map-legend {
  657. position: absolute;
  658. left: 25px;
  659. top: 25px;
  660. background: rgba(255, 255, 255, 0.95);
  661. border-radius: 10px;
  662. padding: 12px 15px;
  663. display: flex;
  664. flex-direction: column;
  665. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  666. z-index: 10;
  667. max-width: 140px;
  668. }
  669. .legend-item {
  670. display: flex;
  671. align-items: center;
  672. margin-bottom: 10px;
  673. font-size: 12px;
  674. color: #333;
  675. }
  676. .legend-item:last-child {
  677. margin-bottom: 0;
  678. }
  679. .legend-color {
  680. width: 14px;
  681. height: 14px;
  682. border-radius: 50%;
  683. margin-right: 8px;
  684. flex-shrink: 0;
  685. }
  686. /* 地图图例 - 底部 */
  687. .map-legend-bottom {
  688. padding: 15px 20px;
  689. display: flex;
  690. justify-content: center;
  691. border-top: 1px solid #eee;
  692. background: #f9f9f9;
  693. }
  694. .map-legend-bottom .legend-item {
  695. margin: 0 15px;
  696. display: flex;
  697. align-items: center;
  698. }
  699. .legend-icon {
  700. width: 18px;
  701. height: 18px;
  702. margin-right: 6px;
  703. }
  704. /* 自定义地图标记点样式 */
  705. .custom-marker {
  706. position: relative;
  707. }
  708. .marker-label {
  709. position: absolute;
  710. left: 0;
  711. transform: translateX(-50%);
  712. display: flex;
  713. flex-direction: column;
  714. align-items: center;
  715. z-index: 999;
  716. }
  717. .label-bubble {
  718. background: rgba(255, 255, 255, 0.95);
  719. padding: 8rpx 16rpx;
  720. border-radius: 12rpx;
  721. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
  722. margin-bottom: 4rpx;
  723. }
  724. .label-text {
  725. font-size: 24rpx;
  726. color: #333;
  727. font-weight: bold;
  728. white-space: nowrap;
  729. }
  730. .label-arrow {
  731. width: 0;
  732. height: 0;
  733. border-left: 8rpx solid transparent;
  734. border-right: 8rpx solid transparent;
  735. border-top: 8rpx solid rgba(255, 255, 255, 0.95);
  736. }
  737. /* 地点列表样式 */
  738. .location-list {
  739. margin-top: 20rpx;
  740. border-top: 1rpx solid #eee;
  741. padding-top: 20rpx;
  742. }
  743. .list-scroll {
  744. max-height: 300rpx;
  745. }
  746. .list-title {
  747. font-size: 32rpx;
  748. font-weight: bold;
  749. margin-bottom: 20rpx;
  750. color: #333;
  751. }
  752. .location-item {
  753. display: flex;
  754. align-items: center;
  755. padding: 20rpx;
  756. border-radius: 12rpx;
  757. background: #f9f9f9;
  758. margin-bottom: 16rpx;
  759. }
  760. .location-item:active {
  761. background: #f0f0f0;
  762. }
  763. .location-icon {
  764. width: 40rpx;
  765. height: 40rpx;
  766. margin-right: 20rpx;
  767. }
  768. .location-info {
  769. flex: 1;
  770. }
  771. .location-name {
  772. display: block;
  773. font-size: 28rpx;
  774. color: #333;
  775. margin-bottom: 6rpx;
  776. }
  777. .location-day {
  778. font-size: 24rpx;
  779. color: #888;
  780. }
  781. .arrow-icon {
  782. width: 24rpx;
  783. height: 24rpx;
  784. }