ai-plan.wxss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  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. }
  23. .progress-steps {
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. margin-bottom: 40rpx;
  28. }
  29. .step {
  30. display: flex;
  31. flex-direction: column;
  32. align-items: center;
  33. width: 120rpx;
  34. }
  35. .step-number {
  36. width: 50rpx;
  37. height: 50rpx;
  38. border-radius: 50%;
  39. background-color: #ddd;
  40. color: #999;
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. font-size: 28rpx;
  45. margin-bottom: 10rpx;
  46. }
  47. .step.active .step-number {
  48. background-color: #e54d42;
  49. color: white;
  50. }
  51. .step-text {
  52. font-size: 24rpx;
  53. color: #999;
  54. }
  55. .step.active .step-text {
  56. color: #e54d42;
  57. }
  58. .step-line {
  59. flex: 1;
  60. height: 4rpx;
  61. background-color: #ddd;
  62. margin: 0 10rpx;
  63. }
  64. .step-line.active {
  65. background-color: #e54d42;
  66. }
  67. .step-container {
  68. background-color: white;
  69. border-radius: 16rpx;
  70. padding: 30rpx;
  71. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  72. }
  73. .form-section {
  74. margin-bottom: 40rpx;
  75. }
  76. .section-title {
  77. font-size: 30rpx;
  78. font-weight: bold;
  79. color: #333;
  80. margin-bottom: 20rpx;
  81. display: block;
  82. }
  83. .interest-tags {
  84. display: flex;
  85. flex-wrap: wrap;
  86. gap: 20rpx;
  87. }
  88. .tag {
  89. padding: 12rpx 15rpx;
  90. border-radius: 30rpx;
  91. background-color: #f5f5f5;
  92. color: #666;
  93. font-size: 26rpx;
  94. }
  95. .tag.selected {
  96. background-color: #fdecec;
  97. color: #e54d42;
  98. }
  99. .tag-icon {
  100. width: 28rpx;
  101. height: 25rpx;
  102. margin-left: 8rpx;
  103. }
  104. .day-selector {
  105. display: flex;
  106. flex-wrap: wrap;
  107. gap: 20rpx;
  108. }
  109. .day-option {
  110. padding: 16rpx 30rpx;
  111. border-radius: 30rpx;
  112. background-color: #f5f5f5;
  113. color: #666;
  114. font-size: 28rpx;
  115. }
  116. .day-option.selected {
  117. background-color: #e54d42;
  118. color: white;
  119. }
  120. .transport-options {
  121. display: flex;
  122. flex-wrap: wrap;
  123. gap: 20rpx;
  124. }
  125. .transport-option {
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. width: 140rpx;
  130. padding: 20rpx 0;
  131. border-radius: 12rpx;
  132. background-color: #f5f5f5;
  133. }
  134. .transport-option.selected {
  135. background-color: #fdecec;
  136. border: 1px solid #e54d42;
  137. }
  138. .transport-icon {
  139. width: 60rpx;
  140. height: 60rpx;
  141. margin-bottom: 10rpx;
  142. }
  143. .custom-input {
  144. width: 100%;
  145. height: 160rpx;
  146. padding: 20rpx;
  147. border: 1px solid #eee;
  148. border-radius: 12rpx;
  149. background-color: #f9f9f9;
  150. font-size: 26rpx;
  151. }
  152. .next-btn {
  153. background-color: #e54d42;
  154. color: white;
  155. margin-top: 40rpx;
  156. }
  157. .generating-container {
  158. display: flex;
  159. flex-direction: column;
  160. align-items: center;
  161. justify-content: center;
  162. height: 60vh;
  163. text-align: center;
  164. background-color: #fff;
  165. border-radius: 16rpx;
  166. padding: 40rpx;
  167. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  168. }
  169. .loading-gif {
  170. width: 120rpx;
  171. height: 120rpx;
  172. margin-bottom: 30rpx;
  173. animation: rotate 2s linear infinite;
  174. }
  175. @keyframes rotate {
  176. from { transform: rotate(0deg); }
  177. to { transform: rotate(360deg); }
  178. }
  179. .generating-text {
  180. font-size: 32rpx;
  181. color: #e54d42;
  182. margin-bottom: 15rpx;
  183. font-weight: bold;
  184. }
  185. .generating-tip {
  186. font-size: 26rpx;
  187. color: #999;
  188. }
  189. /* 行程结果整体样式 */
  190. .plan-result {
  191. padding-bottom: 40rpx;
  192. }
  193. /* 行程概览 */
  194. .plan-header {
  195. text-align: center;
  196. margin-bottom: 40rpx;
  197. padding: 0 20rpx;
  198. }
  199. .plan-title {
  200. font-size: 36rpx;
  201. font-weight: bold;
  202. color: #e54d42;
  203. margin-bottom: 15rpx;
  204. display: block;
  205. position: relative;
  206. padding-bottom: 20rpx;
  207. }
  208. .plan-title::after {
  209. content: "";
  210. position: absolute;
  211. bottom: 0;
  212. left: 50%;
  213. transform: translateX(-50%);
  214. width: 80rpx;
  215. height: 4rpx;
  216. background-color: #e54d42;
  217. border-radius: 2rpx;
  218. }
  219. .plan-desc {
  220. font-size: 28rpx;
  221. color: #666;
  222. line-height: 1.6;
  223. display: block;
  224. }
  225. /* 统计信息面板 */
  226. .stats-panel {
  227. display: flex;
  228. justify-content: space-between;
  229. margin: 30rpx 0;
  230. background-color: #fff;
  231. border-radius: 16rpx;
  232. padding: 30rpx;
  233. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  234. }
  235. .stat-item {
  236. flex: 1;
  237. text-align: center;
  238. padding: 0 10rpx;
  239. }
  240. .stat-value {
  241. font-size: 36rpx;
  242. font-weight: bold;
  243. color: #e54d42;
  244. margin-bottom: 8rpx;
  245. }
  246. .stat-label {
  247. font-size: 26rpx;
  248. color: #666;
  249. }
  250. /* 每日行程滚动区域 */
  251. .day-list {
  252. height: 70vh;
  253. padding-bottom: 20rpx;
  254. }
  255. /* 每日卡片 */
  256. .day-item {
  257. background-color: white;
  258. border-radius: 16rpx;
  259. padding: 30rpx;
  260. margin-bottom: 30rpx;
  261. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
  262. position: relative;
  263. }
  264. .day-item::before {
  265. content: "";
  266. position: absolute;
  267. top: 0;
  268. left: 0;
  269. width: 6rpx;
  270. height: 100%;
  271. background-color: #e54d42;
  272. border-radius: 8rpx 0 0 8rpx;
  273. }
  274. /* 每日标题 */
  275. .day-header {
  276. margin-bottom: 20rpx;
  277. padding-bottom: 20rpx;
  278. border-bottom: 1rpx solid #f0f0f0;
  279. }
  280. .day-title {
  281. font-size: 32rpx;
  282. font-weight: bold;
  283. color: #333;
  284. display: flex;
  285. align-items: center;
  286. }
  287. .day-title::before {
  288. content: "";
  289. display: inline-block;
  290. width: 12rpx;
  291. height: 12rpx;
  292. background-color: #e54d42;
  293. border-radius: 50%;
  294. margin-right: 15rpx;
  295. }
  296. /* 教育要点部分 */
  297. .education-points {
  298. margin-bottom: 30rpx;
  299. }
  300. .section-title {
  301. font-size: 30rpx;
  302. font-weight: bold;
  303. color: #333;
  304. margin-bottom: 20rpx;
  305. display: flex;
  306. align-items: center;
  307. }
  308. .section-title image {
  309. width: 32rpx;
  310. height: 32rpx;
  311. margin-right: 10rpx;
  312. }
  313. .point-item {
  314. margin-bottom: 20rpx;
  315. padding-left: 30rpx;
  316. position: relative;
  317. }
  318. .point-item::before {
  319. content: "";
  320. position: absolute;
  321. left: 0;
  322. top: 12rpx;
  323. width: 16rpx;
  324. height: 16rpx;
  325. background-color: #e54d42;
  326. border-radius: 50%;
  327. }
  328. .point-name {
  329. font-size: 28rpx;
  330. font-weight: bold;
  331. color: #e54d42;
  332. margin-bottom: 8rpx;
  333. display: block;
  334. }
  335. .point-desc {
  336. font-size: 26rpx;
  337. color: #666;
  338. line-height: 1.5;
  339. display: block;
  340. }
  341. /* 景点卡片列表 */
  342. .attractions-list {
  343. margin-top: 20rpx;
  344. }
  345. .attraction-card {
  346. display: flex;
  347. margin-bottom: 30rpx;
  348. padding-bottom: 30rpx;
  349. border-bottom: 1rpx dashed #eee;
  350. }
  351. .attraction-card:last-child {
  352. border-bottom: none;
  353. margin-bottom: 0;
  354. padding-bottom: 0;
  355. }
  356. .card-image {
  357. width: 150rpx;
  358. height: 150rpx;
  359. border-radius: 8rpx;
  360. margin-right: 20rpx;
  361. object-fit: cover;
  362. }
  363. .card-content {
  364. flex: 1;
  365. }
  366. .card-header {
  367. display: flex;
  368. align-items: center;
  369. margin-bottom: 10rpx;
  370. }
  371. .card-title {
  372. font-size: 30rpx;
  373. font-weight: bold;
  374. color: #333;
  375. margin-right: 15rpx;
  376. }
  377. .card-tag {
  378. font-size: 24rpx;
  379. padding: 4rpx 12rpx;
  380. border-radius: 20rpx;
  381. background-color: #fdecec;
  382. color: #e54d42;
  383. }
  384. .card-tag.red {
  385. background-color: #fdecec;
  386. color: #e54d42;
  387. }
  388. .card-tag.blue {
  389. background-color: #ebf5fb;
  390. color: #3498db;
  391. }
  392. .card-desc {
  393. font-size: 26rpx;
  394. color: #666;
  395. margin-bottom: 12rpx;
  396. line-height: 1.4;
  397. }
  398. .card-meta {
  399. display: flex;
  400. flex-wrap: wrap;
  401. gap: 15rpx;
  402. font-size: 24rpx;
  403. color: #999;
  404. }
  405. /* 交通信息 */
  406. .transport-info {
  407. display: flex;
  408. align-items: center;
  409. margin-top: 30rpx;
  410. padding: 20rpx;
  411. background-color: #f8f8f8;
  412. border-radius: 8rpx;
  413. }
  414. .transport-info image {
  415. width: 32rpx;
  416. height: 32rpx;
  417. margin-right: 10rpx;
  418. }
  419. .transport-info text {
  420. font-size: 28rpx;
  421. color: #555;
  422. }
  423. /* 操作按钮 */
  424. .action-buttons {
  425. display: flex;
  426. justify-content: space-between;
  427. margin-top: 40rpx;
  428. }
  429. .action-buttons button {
  430. flex: 1;
  431. height: 80rpx;
  432. line-height: 80rpx;
  433. border-radius: 40rpx;
  434. font-size: 30rpx;
  435. }
  436. .action-buttons button:first-child {
  437. background-color: #e54d42;
  438. color: white;
  439. margin-right: 20rpx;
  440. border: none;
  441. }
  442. .action-buttons button:last-child {
  443. background-color: #f8f8f8;
  444. color: #666;
  445. border: 1rpx solid #eee;
  446. }
  447. .save-btn {
  448. background-color: #e54d42;
  449. color: white;
  450. width: 48%;
  451. }
  452. .regenerate-btn {
  453. background-color: #f8f8f8;
  454. color: #666;
  455. width: 48%;
  456. }
  457. .complete-container {
  458. display: flex;
  459. flex-direction: column;
  460. align-items: center;
  461. justify-content: center;
  462. height: 70vh;
  463. text-align: center;
  464. }
  465. .success-icon {
  466. width: 120rpx;
  467. height: 120rpx;
  468. margin-bottom: 30rpx;
  469. }
  470. .complete-title {
  471. font-size: 36rpx;
  472. font-weight: bold;
  473. color: #e54d42;
  474. margin-bottom: 15rpx;
  475. }
  476. .complete-desc {
  477. font-size: 28rpx;
  478. color: #666;
  479. margin-bottom: 40rpx;
  480. }
  481. .plan-summary {
  482. width: 100%;
  483. margin-bottom: 40rpx;
  484. }
  485. .summary-item {
  486. display: flex;
  487. justify-content: space-between;
  488. padding: 20rpx 0;
  489. border-bottom: 1px solid #eee;
  490. }
  491. .summary-label {
  492. font-size: 28rpx;
  493. color: #666;
  494. }
  495. .summary-value {
  496. font-size: 28rpx;
  497. color: #333;
  498. font-weight: bold;
  499. }
  500. .view-btn {
  501. background-color: #e54d42;
  502. color: white;
  503. width: 100%;
  504. margin-bottom: 20rpx;
  505. }
  506. .share-btn {
  507. background-color: #f8f8f8;
  508. color: #666;
  509. width: 100%;
  510. }
  511. /* 景点卡片样式 */
  512. .attraction-item {
  513. position: relative;
  514. }
  515. .detail-modal {
  516. position: fixed;
  517. top: 0;
  518. left: 0;
  519. right: 0;
  520. bottom: 0;
  521. background: rgba(0, 0, 0, 0.5);
  522. z-index: 100;
  523. display: flex;
  524. justify-content: center;
  525. align-items: center;
  526. }
  527. .modal-content {
  528. width: 85%;
  529. max-height: 70vh;
  530. background: #fff;
  531. border-radius: 12px;
  532. overflow: hidden;
  533. }
  534. .modal-header {
  535. padding: 15px;
  536. background: var(--primary-color);
  537. color: white;
  538. display: flex;
  539. justify-content: space-between;
  540. align-items: center;
  541. }
  542. .modal-title {
  543. font-size: 18px;
  544. font-weight: bold;
  545. }
  546. .close-icon {
  547. width: 20px;
  548. height: 20px;
  549. }
  550. .modal-body {
  551. padding: 15px;
  552. max-height: 60vh;
  553. }
  554. .section-title {
  555. font-weight: bold;
  556. margin: 10px 0 5px;
  557. display: block;
  558. color: var(--primary-color);
  559. }
  560. .info-grid {
  561. margin-top: 15px;
  562. border-top: 1px solid #eee;
  563. padding-top: 10px;
  564. }
  565. .info-item {
  566. display: flex;
  567. align-items: center;
  568. margin: 8px 0;
  569. font-size: 14px;
  570. }
  571. .info-icon {
  572. width: 16px;
  573. height: 16px;
  574. margin-right: 8px;
  575. }
  576. /* 行程标题 */
  577. .plan-title {
  578. font-size: 22px;
  579. font-weight: bold;
  580. color: #333;
  581. line-height: 1.4;
  582. margin-bottom: 10px;
  583. text-align: center;
  584. }
  585. /* 红色角标 */
  586. .red-badge {
  587. display: flex;
  588. align-items: center;
  589. justify-content: center;
  590. background-color: #fef2f2;
  591. border: 1px solid #e54d42;
  592. border-radius: 15px;
  593. padding: 4px 12px;
  594. margin: 0 auto 15px;
  595. width: fit-content;
  596. }
  597. .red-badge text {
  598. color: #e54d42;
  599. font-size: 14px;
  600. margin-left: 5px;
  601. }
  602. .badge-icon {
  603. width: 16px;
  604. height: 16px;
  605. }
  606. /* 行程描述 */
  607. .plan-desc {
  608. font-size: 15px;
  609. color: #666;
  610. line-height: 1.6;
  611. padding: 0 15px;
  612. margin-bottom: 20px;
  613. text-align: justify;
  614. }
  615. /* 每日行程标题 */
  616. .day-header {
  617. padding: 15px;
  618. background-color: #f8f8f8;
  619. border-left: 4px solid #e54d42;
  620. margin: 15px 0;
  621. }
  622. .day-title {
  623. font-size: 18px;
  624. font-weight: bold;
  625. color: #e54d42;
  626. margin-right: 10px;
  627. }
  628. .day-theme {
  629. font-size: 16px;
  630. color: #333;
  631. }
  632. .loading-container {
  633. display: flex;
  634. flex-direction: column;
  635. align-items: center;
  636. padding: 40px;
  637. }
  638. .loading-container image {
  639. width: 80px;
  640. height: 80px;
  641. margin-bottom: 20px;
  642. }
  643. .plan-header {
  644. padding: 20px;
  645. background-color: #f8f8f8;
  646. }
  647. .day-item {
  648. margin: 15px;
  649. padding: 10px;
  650. border: 1px solid #eee;
  651. }
  652. .red-item {
  653. border-left: 3px solid #e54d42;
  654. }
  655. /* 教育要点列表样式 */
  656. .education-points-list {
  657. margin: 20rpx 0;
  658. }
  659. .education-point-item {
  660. padding: 20rpx;
  661. margin-bottom: 20rpx;
  662. background: #fff;
  663. border-radius: 8rpx;
  664. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.05);
  665. }
  666. .red-point {
  667. border-left: 6rpx solid #e54d42;
  668. padding-left: 30rpx;
  669. }
  670. .point-header {
  671. display: flex;
  672. align-items: center;
  673. margin-bottom: 10rpx;
  674. }
  675. .point-icon {
  676. width: 30rpx;
  677. height: 30rpx;
  678. margin-right: 10rpx;
  679. }
  680. .point-name {
  681. font-size: 32rpx;
  682. font-weight: bold;
  683. color: #333;
  684. }
  685. .red-point .point-name {
  686. color: #e54d42;
  687. }
  688. .point-desc {
  689. font-size: 28rpx;
  690. color: #666;
  691. line-height: 1.6;
  692. display: block;
  693. margin-top: 10rpx;
  694. }