ai-plan.wxss 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477
  1. /* pages/ai-plan/ai-plan.wxss */
  2. .ai-plan-page {
  3. padding: 20rpx;
  4. min-height: 100vh;
  5. background-color: #f8f8f8;
  6. }
  7. .nav-header {
  8. display: flex;
  9. align-items: center;
  10. padding: 20rpx 0;
  11. margin-bottom: 30rpx;
  12. }
  13. .back-icon {
  14. width: 40rpx;
  15. height: 40rpx;
  16. margin-right: 20rpx;
  17. }
  18. .nav-title {
  19. font-size: 36rpx;
  20. font-weight: bold;
  21. color: #333;
  22. margin: 0 auto;
  23. }
  24. .progress-steps {
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. margin-bottom: 40rpx;
  29. }
  30. .step {
  31. display: flex;
  32. flex-direction: column;
  33. align-items: center;
  34. width: 120rpx;
  35. }
  36. .step-number {
  37. width: 50rpx;
  38. height: 50rpx;
  39. border-radius: 50%;
  40. background-color: #ddd;
  41. color: #999;
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. font-size: 28rpx;
  46. margin-bottom: 10rpx;
  47. }
  48. .step.active .step-number {
  49. background-color: #e54d42;
  50. color: white;
  51. }
  52. .step-text {
  53. font-size: 24rpx;
  54. color: #999;
  55. }
  56. .step.active .step-text {
  57. color: #e54d42;
  58. }
  59. .step-line {
  60. flex: 1;
  61. height: 4rpx;
  62. background-color: #ddd;
  63. margin: 0 10rpx;
  64. }
  65. .step-line.active {
  66. background-color: #e54d42;
  67. }
  68. .step-container {
  69. background-color: white;
  70. border-radius: 16rpx;
  71. padding: 30rpx;
  72. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  73. }
  74. /* 天数选择器样式 */
  75. .city-selector {
  76. display: flex;
  77. flex-wrap: wrap;
  78. gap: 20rpx;
  79. margin-top: 20rpx;
  80. }
  81. /* .day-option规则 */
  82. .city-option {
  83. padding: 16rpx 30rpx;
  84. border-radius: 30rpx;
  85. background-color: #f5f5f5;
  86. color: #666;
  87. font-size: 28rpx;
  88. transition: all 0.3s;
  89. display: inline-block; /* 新增 */
  90. margin: 5rpx; /* 新增 */
  91. }
  92. /* 使用更具体的父级选择器 */
  93. .city-selector .city-option.selected {
  94. background-color: #e54d42 !important;
  95. color: white !important;
  96. }
  97. /* 天数选择器样式 */
  98. .day-selector {
  99. display: flex;
  100. flex-wrap: wrap;
  101. gap: 20rpx;
  102. margin-top: 20rpx;
  103. }
  104. /* .day-option规则 */
  105. .day-option {
  106. padding: 16rpx 22rpx;
  107. border-radius: 30rpx;
  108. background-color: #f5f5f5;
  109. color: #666;
  110. font-size: 28rpx;
  111. transition: all 0.3s;
  112. display: inline-block; /* 新增 */
  113. margin: 5rpx; /* 新增 */
  114. }
  115. /* 使用更具体的父级选择器 */
  116. .day-selector .day-option.selected {
  117. background-color: #e54d42 !important;
  118. color: white !important;
  119. }
  120. /* 出行方式选项样式 */
  121. .transport-options {
  122. display: flex;
  123. flex-wrap: wrap;
  124. gap: 20rpx;
  125. }
  126. .transport-option {
  127. display: flex;
  128. flex-direction: column;
  129. align-items: center;
  130. width: 140rpx;
  131. padding: 20rpx 0;
  132. border-radius: 12rpx;
  133. background-color: #f5f5f5;
  134. }
  135. .transport-option.selected {
  136. background-color: #fdecec;
  137. border: 1px solid #e54d42;
  138. }
  139. .transport-icon {
  140. width: 60rpx;
  141. height: 60rpx;
  142. margin-bottom: 10rpx;
  143. }
  144. .custom-input {
  145. width: 100%;
  146. height: 160rpx;
  147. padding: 20rpx;
  148. border: 1px solid #eee;
  149. border-radius: 12rpx;
  150. background-color: #f9f9f9;
  151. font-size: 26rpx;
  152. }
  153. .next-btn {
  154. background-color: #e54d42;
  155. color: white;
  156. margin-top: 40rpx;
  157. }
  158. .generating-container {
  159. display: flex;
  160. flex-direction: column;
  161. align-items: center;
  162. justify-content: center;
  163. height: 60vh;
  164. text-align: center;
  165. background-color: #fff;
  166. border-radius: 16rpx;
  167. padding: 40rpx;
  168. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  169. }
  170. .loading-gif {
  171. width: 120rpx;
  172. height: 120rpx;
  173. margin-bottom: 30rpx;
  174. animation: rotate 2s linear infinite;
  175. }
  176. @keyframes rotate {
  177. from { transform: rotate(0deg); }
  178. to { transform: rotate(360deg); }
  179. }
  180. .generating-text {
  181. font-size: 32rpx;
  182. color: #e54d42;
  183. margin-bottom: 15rpx;
  184. font-weight: bold;
  185. }
  186. .generating-tip {
  187. font-size: 26rpx;
  188. color: #999;
  189. }
  190. /* 步骤2: 行程生成 */
  191. .step-container {
  192. padding: 20rpx;
  193. background-color: #f8f8f8;
  194. }
  195. /* 加载状态 */
  196. .generating-container {
  197. display: flex;
  198. flex-direction: column;
  199. align-items: center;
  200. justify-content: center;
  201. height: 60vh;
  202. text-align: center;
  203. background-color: #fff;
  204. border-radius: 16rpx;
  205. padding: 40rpx;
  206. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  207. }
  208. .loading-gif {
  209. width: 120rpx;
  210. height: 120rpx;
  211. margin-bottom: 30rpx;
  212. animation: rotate 2s linear infinite;
  213. }
  214. @keyframes rotate {
  215. from { transform: rotate(0deg); }
  216. to { transform: rotate(360deg); }
  217. }
  218. .generating-text {
  219. font-size: 32rpx;
  220. color: #e54d42;
  221. margin-bottom: 15rpx;
  222. font-weight: bold;
  223. }
  224. .generating-tip {
  225. font-size: 26rpx;
  226. color: #999;
  227. }
  228. /* 行程结果容器 */
  229. .plan-result {
  230. padding-bottom: 40rpx;
  231. }
  232. /* 行程概览 */
  233. .plan-overview {
  234. background: linear-gradient(to bottom, #fff, #fff9f9);
  235. border-radius: 16rpx;
  236. padding: 30rpx;
  237. margin-bottom: 30rpx;
  238. box-shadow: 0 4rpx 12rpx rgba(229,77,66,0.08);
  239. border: 1rpx solid #ffecec;
  240. }
  241. .plan-header {
  242. margin-bottom: 20rpx;
  243. text-align: center;
  244. }
  245. .plan-title {
  246. font-size: 38rpx;
  247. font-weight: bold;
  248. color: #e54d42;
  249. display: block;
  250. margin-bottom: 10rpx;
  251. }
  252. .plan-subtitle {
  253. font-size: 28rpx;
  254. color: #666;
  255. }
  256. .plan-meta {
  257. display: flex;
  258. justify-content: center;
  259. flex-wrap: wrap;
  260. margin: 25rpx 0;
  261. }
  262. .meta-item {
  263. display: flex;
  264. align-items: center;
  265. margin: 15rpx 30rpx;
  266. font-size: 26rpx;
  267. color: #666;
  268. background: #f5f5f5;
  269. padding: 12rpx 20rpx;
  270. border-radius: 30rpx;
  271. }
  272. .meta-icon {
  273. width: 32rpx;
  274. height: 32rpx;
  275. margin-right: 8rpx;
  276. }
  277. .plan-description {
  278. font-size: 28rpx;
  279. color: #666;
  280. line-height: 1.6;
  281. text-align: center;
  282. padding: 0 20rpx;
  283. }
  284. /* 红色教育要点 */
  285. .education-highlights {
  286. background: #fff;
  287. border-radius: 16rpx;
  288. padding: 30rpx;
  289. margin-bottom: 30rpx;
  290. border: 1rpx solid #ffecec;
  291. }
  292. .section-header {
  293. display: flex;
  294. align-items: center;
  295. margin-bottom: 20rpx;
  296. }
  297. .section-icon {
  298. width: 40rpx;
  299. height: 40rpx;
  300. margin-right: 12rpx;
  301. }
  302. .section-title {
  303. font-size: 32rpx;
  304. font-weight: bold;
  305. color: #e54d42;
  306. }
  307. .highlight-scroll {
  308. white-space: nowrap;
  309. width: 100%;
  310. padding: 10rpx 0;
  311. }
  312. .highlight-item {
  313. display: inline-flex;
  314. align-items: center;
  315. background: #fff5f5;
  316. border-radius: 40rpx;
  317. padding: 12rpx 24rpx;
  318. margin-right: 20rpx;
  319. border: 1rpx solid #ffdbdb;
  320. }
  321. .highlight-icon {
  322. width: 30rpx;
  323. height: 30rpx;
  324. margin-right: 10rpx;
  325. }
  326. /* 红色旅游提示 */
  327. .red-tips {
  328. background: #fff;
  329. border-radius: 16rpx;
  330. padding: 30rpx;
  331. margin-bottom: 30rpx;
  332. border: 1rpx solid #ffecec;
  333. }
  334. .tips-content {
  335. padding-left: 10rpx;
  336. }
  337. .tip-item {
  338. display: flex;
  339. align-items: flex-start;
  340. margin-bottom: 15rpx;
  341. font-size: 26rpx;
  342. color: #666;
  343. line-height: 1.6;
  344. background: #fff9f9;
  345. padding: 15rpx;
  346. border-radius: 8rpx;
  347. }
  348. .tip-icon {
  349. width: 14rpx;
  350. height: 14rpx;
  351. margin-right: 15rpx;
  352. margin-top: 12rpx;
  353. background-color: #e54d42;
  354. border-radius: 50%;
  355. }
  356. /* 每日行程 */
  357. .daily-plans {
  358. margin-bottom: 40rpx;
  359. }
  360. .day-plan {
  361. background: #fff;
  362. border-radius: 16rpx;
  363. padding: 0;
  364. margin-bottom: 30rpx;
  365. overflow: hidden;
  366. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  367. }
  368. /* 每日标题 */
  369. .day-header {
  370. display: flex;
  371. justify-content: space-between;
  372. align-items: center;
  373. padding: 25rpx 30rpx;
  374. background: linear-gradient(to right, #e54d42, #ff7b74);
  375. color: white;
  376. }
  377. .day-title {
  378. font-size: 32rpx;
  379. font-weight: bold;
  380. color: white;
  381. }
  382. .day-transport {
  383. display: flex;
  384. align-items: center;
  385. font-size: 26rpx;
  386. color: rgba(255,255,255,0.9);
  387. }
  388. .transport-icon {
  389. width: 32rpx;
  390. height: 32rpx;
  391. margin-right: 8rpx;
  392. filter: brightness(0) invert(1);
  393. }
  394. /* 景点卡片 */
  395. .attraction-card {
  396. margin-bottom: 0;
  397. }
  398. .red-card {
  399. border-left: 6rpx solid #e54d42;
  400. background: linear-gradient(to right, #fff9f9, #fff);
  401. }
  402. .card-image {
  403. width: 100%;
  404. height: 350rpx;
  405. display: block;
  406. }
  407. .card-content {
  408. padding: 25rpx;
  409. }
  410. .card-header {
  411. display: flex;
  412. justify-content: space-between;
  413. align-items: center;
  414. margin-bottom: 15rpx;
  415. }
  416. .card-title {
  417. font-size: 34rpx;
  418. font-weight: bold;
  419. color: #333;
  420. flex: 1;
  421. }
  422. .card-tags {
  423. display: flex;
  424. align-items: center;
  425. }
  426. .red-tag {
  427. background: #e54d42;
  428. color: #fff;
  429. font-size: 22rpx;
  430. padding: 4rpx 12rpx;
  431. border-radius: 6rpx;
  432. margin-right: 10rpx;
  433. }
  434. .time-tag {
  435. font-size: 24rpx;
  436. color: #999;
  437. background: #f0f0f0;
  438. padding: 4rpx 12rpx;
  439. border-radius: 6rpx;
  440. }
  441. .card-desc {
  442. font-size: 28rpx;
  443. color: #666;
  444. line-height: 1.6;
  445. margin-bottom: 15rpx;
  446. }
  447. /* 红色景点专属内容 */
  448. .red-content {
  449. margin-top: 20rpx;
  450. padding-top: 20rpx;
  451. border-top: 1rpx dashed #ffc4c4;
  452. }
  453. .history-point,
  454. .learning-point {
  455. margin-bottom: 15rpx;
  456. background: #fff5f5;
  457. padding: 15rpx;
  458. border-radius: 8rpx;
  459. }
  460. .point-title {
  461. font-weight: bold;
  462. color: #e54d42;
  463. margin-right: 10rpx;
  464. }
  465. /* 实用信息 */
  466. .practical-info {
  467. margin-top: 25rpx;
  468. padding-top: 20rpx;
  469. border-top: 1rpx dashed #eee;
  470. }
  471. .info-row {
  472. display: flex;
  473. margin-bottom: 15rpx;
  474. flex-wrap: wrap;
  475. }
  476. .info-item {
  477. display: flex;
  478. align-items: center;
  479. font-size: 26rpx;
  480. color: #666;
  481. margin-right: 30rpx;
  482. margin-bottom: 10rpx;
  483. background: #f5f5f5;
  484. padding: 8rpx 15rpx;
  485. border-radius: 30rpx;
  486. }
  487. .info-icon {
  488. width: 28rpx;
  489. height: 28rpx;
  490. margin-right: 8rpx;
  491. }
  492. /* 交通信息 */
  493. .transport-info {
  494. display: flex;
  495. align-items: center;
  496. background: #f5f5f5;
  497. border-radius: 8rpx;
  498. padding: 15rpx 20rpx;
  499. margin-top: 20rpx;
  500. }
  501. .transport-icon {
  502. width: 32rpx;
  503. height: 32rpx;
  504. margin-right: 10rpx;
  505. }
  506. .transport-duration {
  507. margin-left: auto;
  508. color: #999;
  509. font-size: 26rpx;
  510. }
  511. /* 当日总结 */
  512. .day-summary {
  513. margin-top: 30rpx;
  514. padding: 25rpx;
  515. background: #f9f9f9;
  516. border-radius: 12rpx;
  517. border-left: 6rpx solid #e54d42;
  518. }
  519. .summary-header {
  520. display: flex;
  521. align-items: center;
  522. margin-bottom: 15rpx;
  523. }
  524. .summary-icon {
  525. width: 36rpx;
  526. height: 36rpx;
  527. margin-right: 10rpx;
  528. }
  529. .summary-title {
  530. font-size: 30rpx;
  531. font-weight: bold;
  532. color: #e54d42;
  533. }
  534. .summary-content {
  535. font-size: 28rpx;
  536. color: #666;
  537. line-height: 1.6;
  538. }
  539. /* 行程总结 */
  540. .plan-summary {
  541. background: #fff;
  542. border-radius: 16rpx;
  543. padding: 30rpx;
  544. margin-bottom: 30rpx;
  545. text-align: center;
  546. border: 1rpx solid #ffecec;
  547. }
  548. .stats-grid {
  549. display: grid;
  550. grid-template-columns: repeat(3, 1fr);
  551. gap: 20rpx;
  552. margin-top: 25rpx;
  553. }
  554. .stat-item {
  555. text-align: center;
  556. background: #fff5f5;
  557. padding: 20rpx;
  558. border-radius: 12rpx;
  559. }
  560. .stat-value {
  561. display: block;
  562. font-size: 42rpx;
  563. font-weight: bold;
  564. color: #e54d42;
  565. margin-bottom: 5rpx;
  566. }
  567. .stat-label {
  568. font-size: 26rpx;
  569. color: #666;
  570. }
  571. /* 操作按钮 */
  572. .action-buttons {
  573. display: flex;
  574. justify-content: space-between;
  575. margin-top: 40rpx;
  576. padding: 0 20rpx;
  577. }
  578. .action-buttons button {
  579. flex: 1;
  580. margin: 0 10rpx;
  581. height: 90rpx;
  582. line-height: 90rpx;
  583. font-size: 30rpx;
  584. border-radius: 45rpx;
  585. display: flex;
  586. align-items: center;
  587. justify-content: center;
  588. transition: all 0.3s;
  589. }
  590. .save-btn {
  591. background: #e54d42;
  592. color: #fff;
  593. box-shadow: 0 4rpx 12rpx rgba(229,77,66,0.3);
  594. }
  595. .save-btn:active {
  596. background: #d04339;
  597. transform: translateY(2rpx);
  598. }
  599. .regenerate-btn {
  600. background: #fff;
  601. color: #e54d42;
  602. border: 1rpx solid #e54d42;
  603. }
  604. .regenerate-btn:active {
  605. background: #fff5f5;
  606. }
  607. .share-btn {
  608. background: #fff;
  609. color: #666;
  610. border: 1rpx solid #ddd;
  611. }
  612. .share-btn:active {
  613. background: #f5f5f5;
  614. }
  615. .btn-icon {
  616. width: 36rpx;
  617. height: 36rpx;
  618. margin-right: 10rpx;
  619. }
  620. /* 响应式调整 */
  621. @media (max-width: 480px) {
  622. .stats-grid {
  623. grid-template-columns: 1fr;
  624. }
  625. .action-buttons {
  626. flex-direction: column;
  627. }
  628. .action-buttons button {
  629. margin: 10rpx 0;
  630. width: 100%;
  631. }
  632. }
  633. /* 参观须知整体容器 */
  634. .detail-section {
  635. margin-top: 30rpx;
  636. padding-top: 30rpx;
  637. border-top: 1rpx dashed #ffdbdb;
  638. }
  639. .section-title {
  640. font-size: 32rpx;
  641. font-weight: bold;
  642. color: #e54d42;
  643. margin-bottom: 20rpx;
  644. display: block;
  645. }
  646. /* 须知列表容器 */
  647. .etiquette-list {
  648. background: #fff9f9;
  649. border-radius: 12rpx;
  650. padding: 20rpx;
  651. }
  652. /* 单个须知条目 */
  653. .etiquette-item {
  654. display: flex;
  655. align-items: flex-start;
  656. margin-bottom: 18rpx;
  657. font-size: 28rpx;
  658. color: #666;
  659. line-height: 1.6;
  660. }
  661. /* 红色圆点图标样式 */
  662. .etiquette-icon {
  663. width: 16rpx;
  664. height: 16rpx;
  665. margin-right: 16rpx;
  666. margin-top: 14rpx; /* 与文字基线对齐 */
  667. flex-shrink: 0;
  668. background-color: #e54d42; /* 备用颜色,如果图片加载失败 */
  669. border-radius: 50%;
  670. }
  671. /* 文字内容 */
  672. .etiquette-text {
  673. flex: 1;
  674. }
  675. /* 地图容器样式 */
  676. .map-section {
  677. background: #fff;
  678. border-radius: 16rpx;
  679. margin: 20rpx 0;
  680. padding: 20rpx;
  681. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  682. }
  683. .section-header {
  684. display: flex;
  685. align-items: center;
  686. margin-bottom: 20rpx;
  687. }
  688. .section-icon {
  689. width: 40rpx;
  690. height: 40rpx;
  691. margin-right: 12rpx;
  692. }
  693. .section-title {
  694. font-size: 32rpx;
  695. font-weight: bold;
  696. color: #e54d42;
  697. }
  698. .day-tabs {
  699. white-space: nowrap;
  700. margin-bottom: 20rpx;
  701. padding: 10rpx 0;
  702. }
  703. .day-tab {
  704. display: inline-block;
  705. padding: 12rpx 24rpx;
  706. margin-right: 20rpx;
  707. border-radius: 30rpx;
  708. background: #f5f5f5;
  709. color: #666;
  710. font-size: 26rpx;
  711. }
  712. .day-tab.active {
  713. background: #e54d42;
  714. color: white;
  715. }
  716. .map-controls {
  717. position: absolute;
  718. right: 20rpx;
  719. top: 20rpx;
  720. display: flex;
  721. flex-direction: column;
  722. z-index: 999;
  723. }
  724. .control-btn {
  725. width: 60rpx;
  726. height: 60rpx;
  727. background: rgba(255,255,255,0.9);
  728. border-radius: 50%;
  729. margin-bottom: 15rpx;
  730. display: flex;
  731. align-items: center;
  732. justify-content: center;
  733. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
  734. }
  735. .control-icon {
  736. width: 30rpx;
  737. height: 30rpx;
  738. }
  739. .map-legend {
  740. display: flex;
  741. justify-content: center;
  742. margin-top: 20rpx;
  743. flex-wrap: wrap;
  744. }
  745. .legend-item {
  746. display: flex;
  747. align-items: center;
  748. margin: 0 20rpx 15rpx;
  749. font-size: 24rpx;
  750. color: #666;
  751. }
  752. .legend-icon {
  753. width: 24rpx;
  754. height: 24rpx;
  755. margin-right: 8rpx;
  756. }
  757. /* 路线图例(覆盖层) */
  758. cover-view.map-legend {
  759. position: absolute;
  760. left: 20rpx;
  761. bottom: 30rpx;
  762. background: rgba(255,255,255,0.8);
  763. padding: 15rpx;
  764. border-radius: 8rpx;
  765. }
  766. cover-view.legend-item {
  767. margin-bottom: 10rpx;
  768. }
  769. .legend-color {
  770. width: 20rpx;
  771. height: 20rpx;
  772. border-radius: 4rpx;
  773. margin-right: 10rpx;
  774. display: inline-block;
  775. }
  776. .map-container {
  777. position: relative;
  778. width: 100%;
  779. height: 500rpx;
  780. border-radius: 12rpx;
  781. overflow: hidden;
  782. }
  783. /* 适配不同屏幕尺寸 */
  784. @media (max-width: 375px) {
  785. .map-container {
  786. height: 450rpx;
  787. }
  788. }
  789. .notice-container {
  790. background: #fff9f9;
  791. border-radius: 12rpx;
  792. padding: 20rpx;
  793. margin: 20rpx 0;
  794. border-left: 6rpx solid #e54d42;
  795. }
  796. .notice-item {
  797. display: flex;
  798. align-items: center;
  799. margin-bottom: 15rpx;
  800. font-size: 26rpx;
  801. color: #666;
  802. }
  803. .notice-icon {
  804. flex-shrink: 0;
  805. width: 12rpx !important;
  806. height: 12rpx !important;
  807. margin-top: 8rpx;
  808. margin-right: 12rpx;
  809. }
  810. .notice-text {
  811. flex: 1;
  812. font-size: 26rpx;
  813. color: #666;
  814. word-break: break-word;
  815. }
  816. .red-circle {
  817. width: 24rpx;
  818. height: 24rpx;
  819. background: #e54d42;
  820. border-radius: 50%;
  821. margin-right: 15rpx;
  822. flex-shrink: 0;
  823. }
  824. .nav-btn {
  825. background: #000;
  826. color: white;
  827. border-radius: 40rpx;
  828. height: 80rpx;
  829. line-height: 80rpx;
  830. font-size: 30rpx;
  831. margin-top: 30rpx;
  832. }
  833. /* 路线规划展示样式 */
  834. .route-plan-section {
  835. margin: 20px 0;
  836. background: #fff;
  837. border-radius: 12px;
  838. padding: 15px;
  839. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  840. }
  841. .day-routes {
  842. margin-top: 15px;
  843. }
  844. .day-route {
  845. margin-bottom: 25px;
  846. border-bottom: 1px dashed #eee;
  847. padding-bottom: 15px;
  848. }
  849. .day-route:last-child {
  850. border-bottom: none;
  851. }
  852. .route-header {
  853. display: flex;
  854. align-items: center;
  855. margin-bottom: 10px;
  856. }
  857. .route-day-tag {
  858. color: white;
  859. padding: 2px 10px;
  860. border-radius: 4px;
  861. font-size: 14px;
  862. margin-right: 10px;
  863. }
  864. .route-theme {
  865. font-size: 16px;
  866. font-weight: bold;
  867. color: #333;
  868. }
  869. .route-steps {
  870. margin-left: 15px;
  871. border-left: 2px solid #eee;
  872. padding-left: 20px;
  873. }
  874. .route-step {
  875. display: flex;
  876. margin-bottom: 15px;
  877. position: relative;
  878. }
  879. .step-marker {
  880. width: 24px;
  881. height: 24px;
  882. border-radius: 50%;
  883. color: white;
  884. display: flex;
  885. align-items: center;
  886. justify-content: center;
  887. font-size: 12px;
  888. margin-right: 10px;
  889. flex-shrink: 0;
  890. position: absolute;
  891. left: -33px;
  892. top: 0;
  893. }
  894. .step-content {
  895. flex: 1;
  896. background: #f9f9f9;
  897. border-radius: 8px;
  898. padding: 10px;
  899. }
  900. .step-title {
  901. font-size: 15px;
  902. font-weight: bold;
  903. color: #333;
  904. display: block;
  905. margin-bottom: 5px;
  906. }
  907. .step-info {
  908. display: flex;
  909. margin-bottom: 5px;
  910. }
  911. .step-time {
  912. font-size: 12px;
  913. color: #666;
  914. margin-right: 10px;
  915. }
  916. .step-duration {
  917. font-size: 12px;
  918. color: #666;
  919. }
  920. .step-address {
  921. font-size: 12px;
  922. color: #999;
  923. display: block;
  924. }
  925. .route-summary {
  926. display: flex;
  927. align-items: flex-start;
  928. margin-top: 10px;
  929. padding: 10px;
  930. background: #fef6f6;
  931. border-radius: 8px;
  932. }
  933. .summary-icon {
  934. width: 16px;
  935. height: 16px;
  936. margin-right: 8px;
  937. margin-top: 2px;
  938. }
  939. .summary-text {
  940. font-size: 14px;
  941. color: #666;
  942. flex: 1;
  943. }
  944. /* 步骤3: 完成页面样式 */
  945. .success-container {
  946. display: flex;
  947. flex-direction: column;
  948. align-items: center;
  949. justify-content: center;
  950. height: 70vh;
  951. text-align: center;
  952. padding: 40rpx;
  953. background-color: #fff;
  954. border-radius: 16rpx;
  955. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  956. }
  957. .success-icon {
  958. width: 160rpx;
  959. height: 160rpx;
  960. margin-bottom: 30rpx;
  961. }
  962. .success-title {
  963. font-size: 36rpx;
  964. font-weight: bold;
  965. color: #e54d42;
  966. margin-bottom: 15rpx;
  967. }
  968. .success-subtitle {
  969. font-size: 28rpx;
  970. color: #666;
  971. margin-bottom: 50rpx;
  972. }
  973. .success-actions {
  974. display: flex;
  975. width: 100%;
  976. justify-content: space-between;
  977. margin-top: 40rpx;
  978. }
  979. .view-plan-btn, .share-plan-btn {
  980. flex: 1;
  981. height: 90rpx;
  982. line-height: 90rpx;
  983. font-size: 30rpx;
  984. border-radius: 45rpx;
  985. margin: 0 15rpx;
  986. display: flex;
  987. align-items: center;
  988. justify-content: center;
  989. transition: all 0.3s;
  990. }
  991. .view-plan-btn {
  992. background: #e54d42;
  993. color: #fff;
  994. box-shadow: 0 4rpx 12rpx rgba(229,77,66,0.3);
  995. }
  996. .view-plan-btn:active {
  997. background: #d04339;
  998. transform: translateY(2rpx);
  999. }
  1000. .share-plan-btn {
  1001. background: #fff;
  1002. color: #e54d42;
  1003. border: 1rpx solid #e54d42;
  1004. }
  1005. .share-plan-btn:active {
  1006. background: #fff5f5;
  1007. }
  1008. /* 响应式调整 */
  1009. @media (max-width: 480px) {
  1010. .success-actions {
  1011. flex-direction: column;
  1012. }
  1013. .view-plan-btn, .share-plan-btn {
  1014. margin: 10rpx 0;
  1015. width: 100%;
  1016. }
  1017. }
  1018. /* 景点详情弹窗样式 */
  1019. .attraction-modal {
  1020. position: fixed;
  1021. top: 0;
  1022. left: 0;
  1023. width: 100%;
  1024. height: 100%;
  1025. background: rgba(0, 0, 0, 0.5);
  1026. z-index: 999;
  1027. display: flex;
  1028. justify-content: center;
  1029. align-items: flex-end;
  1030. }
  1031. /* 主内容卡片 */
  1032. .modal-container {
  1033. width: 100%;
  1034. height: 80vh;
  1035. max-height: 80vh;
  1036. background: #fff;
  1037. border-radius: 24rpx 24rpx 0 0;
  1038. position: relative;
  1039. display: flex;
  1040. flex-direction: column;
  1041. overflow: hidden;
  1042. }
  1043. /* 顶部图片容器 - 全屏宽度 */
  1044. .image-container {
  1045. width: 100%;
  1046. height: 420rpx;
  1047. position: relative;
  1048. overflow: hidden;
  1049. }
  1050. /* 图片样式 - 充满全屏 */
  1051. .attraction-image {
  1052. width: 100%;
  1053. height: 100%;
  1054. display: block;
  1055. object-fit: cover;
  1056. }
  1057. /* 关闭按钮 - 悬浮在图片上 */
  1058. .close-btn {
  1059. position: absolute;
  1060. top: 30rpx;
  1061. right: 30rpx;
  1062. width: 80rpx;
  1063. height: 80rpx;
  1064. background: rgba(255, 255, 255, 0.9);
  1065. border-radius: 50%;
  1066. display: flex;
  1067. align-items: center;
  1068. justify-content: center;
  1069. z-index: 100;
  1070. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  1071. transition: all 0.3s ease;
  1072. }
  1073. .close-icon {
  1074. width: 50rpx;
  1075. height: 50rpx;
  1076. }
  1077. /* 交互效果 */
  1078. .close-btn:active {
  1079. transform: scale(0.95);
  1080. background: rgba(255, 255, 255, 0.8);
  1081. }
  1082. /* 确保图片容器层级正确 */
  1083. .image-container {
  1084. position: relative;
  1085. z-index: 1;
  1086. }
  1087. /* 加载状态 */
  1088. .image-loading {
  1089. position: absolute;
  1090. top: 0;
  1091. left: 0;
  1092. width: 100%;
  1093. height: 100%;
  1094. display: flex;
  1095. justify-content: center;
  1096. align-items: center;
  1097. background-color: rgba(245, 245, 245, 0.8);
  1098. }
  1099. .image-loading image {
  1100. width: 50px;
  1101. height: 50px;
  1102. }
  1103. /* 错误状态 */
  1104. .image-error {
  1105. position: absolute;
  1106. top: 0;
  1107. left: 0;
  1108. width: 100%;
  1109. height: 100%;
  1110. display: flex;
  1111. flex-direction: column;
  1112. justify-content: center;
  1113. align-items: center;
  1114. background-color: rgba(245, 245, 245, 0.8);
  1115. color: #999;
  1116. }
  1117. .image-error image {
  1118. width: 60px;
  1119. height: 60px;
  1120. margin-bottom: 10px;
  1121. }
  1122. /* 隐藏错误图片 */
  1123. .attraction-image.hidden {
  1124. opacity: 0;
  1125. }
  1126. /* 可滚动内容区域 */
  1127. .modal-body {
  1128. flex: 1;
  1129. padding: 32rpx;
  1130. padding-bottom: 180rpx;
  1131. overflow-y: scroll;
  1132. -webkit-overflow-scrolling: touch;
  1133. }
  1134. /* 自定义滚动条样式 */
  1135. .modal-body::-webkit-scrollbar {
  1136. width: 6rpx;
  1137. }
  1138. .modal-body::-webkit-scrollbar-thumb {
  1139. background-color: rgba(0, 0, 0, 0.2);
  1140. border-radius: 6rpx;
  1141. }
  1142. /* 景点标题 */
  1143. .attraction-title {
  1144. font-size: 36rpx;
  1145. font-weight: bold;
  1146. color: #333;
  1147. margin-bottom: 16rpx;
  1148. }
  1149. /* 开放时间标签 */
  1150. .time-tag {
  1151. display: inline-flex;
  1152. align-items: center;
  1153. background: #f5f5f5;
  1154. color: #666;
  1155. padding: 6rpx 16rpx;
  1156. border-radius: 20rpx;
  1157. font-size: 24rpx;
  1158. margin-bottom: 24rpx;
  1159. }
  1160. /* 评分和距离信息 */
  1161. .attraction-meta {
  1162. display: flex;
  1163. justify-content: space-between;
  1164. margin: 24rpx 0;
  1165. padding: 20rpx 0;
  1166. border-top: 1rpx solid #f0f0f0;
  1167. border-bottom: 1rpx solid #f0f0f0;
  1168. }
  1169. .meta-item {
  1170. flex: 1;
  1171. text-align: center;
  1172. display: flex;
  1173. flex-direction: column;
  1174. align-items: center;
  1175. }
  1176. .meta-icon {
  1177. width: 32rpx;
  1178. height: 32rpx;
  1179. margin-bottom: 8rpx;
  1180. }
  1181. /* 红色评分 */
  1182. .score {
  1183. color: #e54d42;
  1184. font-weight: bold;
  1185. }
  1186. /* 信息区块 */
  1187. .section {
  1188. margin: 32rpx 0;
  1189. }
  1190. .section-header {
  1191. display: flex;
  1192. align-items: center;
  1193. margin-bottom: 16rpx;
  1194. }
  1195. .section-title {
  1196. font-size: 30rpx;
  1197. font-weight: bold;
  1198. color: #333;
  1199. }
  1200. .section-icon {
  1201. width: 32rpx;
  1202. height: 32rpx;
  1203. margin-right: 10rpx;
  1204. }
  1205. .section-content {
  1206. font-size: 28rpx;
  1207. color: #666;
  1208. line-height: 1.6;
  1209. }
  1210. /* 地址和门票信息 */
  1211. .info-grid {
  1212. background: #f9f9f9;
  1213. border-radius: 12rpx;
  1214. padding: 24rpx;
  1215. margin: 32rpx 0;
  1216. }
  1217. .info-item {
  1218. display: flex;
  1219. align-items: center;
  1220. margin-bottom: 16rpx;
  1221. }
  1222. .info-item:last-child {
  1223. margin-bottom: 0;
  1224. }
  1225. .info-icon {
  1226. width: 32rpx;
  1227. height: 32rpx;
  1228. margin-right: 12rpx;
  1229. }
  1230. /* 免费标签 */
  1231. .free-tag {
  1232. color: #e54d42;
  1233. font-weight: bold;
  1234. }
  1235. /* 底部按钮区域 */
  1236. .modal-footer {
  1237. position: absolute;
  1238. bottom: 0;
  1239. left: 0;
  1240. right: 0;
  1241. background: #fff;
  1242. padding: 20rpx 32rpx;
  1243. display: flex;
  1244. box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.1);
  1245. }
  1246. .modal-footer button {
  1247. flex: 1;
  1248. height: 80rpx;
  1249. display: flex;
  1250. align-items: center;
  1251. justify-content: center;
  1252. font-size: 28rpx;
  1253. border-radius: 40rpx;
  1254. margin: 0 10rpx;
  1255. }
  1256. /* 收藏按钮 */
  1257. .favorite-btn {
  1258. background: #fff;
  1259. color: #333;
  1260. border: 1rpx solid #ddd;
  1261. }
  1262. /* 导航按钮 */
  1263. .navigate-btn {
  1264. background: #e54d42;
  1265. color: #fff;
  1266. border: none;
  1267. }
  1268. /* 按钮图标 */
  1269. .btn-icon {
  1270. width: 32rpx;
  1271. height: 32rpx;
  1272. margin-right: 8rpx;
  1273. }