index.wxss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. @font-face {
  2. font-family: 'iconfont';
  3. src: url('//at.alicdn.com/t/font_1234567_abcdefg.eot');
  4. }
  5. .content {
  6. display: flex;
  7. flex-direction: column;
  8. height: 100vh;
  9. background: #e6f6ff;
  10. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  11. padding-top: 0; /* 移除顶部padding */
  12. padding-bottom: 120rpx; /* 为底部输入框留出空间 */
  13. box-sizing: border-box;
  14. }
  15. /* 底部留白 */
  16. .bottom-space {
  17. height: 120rpx;
  18. }
  19. /* 合并后的顶部区域 */
  20. .header-combined {
  21. display: flex;
  22. justify-content: space-between;
  23. align-items: center;
  24. padding: 20rpx 30rpx;
  25. background-color: #ffffff;
  26. position: fixed;
  27. top: 0;
  28. left: 0;
  29. right: 0;
  30. z-index: 110;
  31. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  32. }
  33. .left-section {
  34. flex: 1;
  35. display: flex;
  36. align-items: center;
  37. }
  38. .middle-section {
  39. flex: 2;
  40. display: flex;
  41. flex-direction: column;
  42. align-items: center;
  43. }
  44. .right-section {
  45. flex: 1;
  46. display: flex;
  47. justify-content: flex-end;
  48. align-items: center;
  49. gap: 10rpx;
  50. }
  51. .logo-container {
  52. display: flex;
  53. align-items: center;
  54. justify-content: center;
  55. margin-bottom: 5rpx;
  56. }
  57. .logo-icon {
  58. font-size: 36rpx;
  59. margin-right: 10rpx;
  60. }
  61. .main-title {
  62. font-size: 36rpx;
  63. font-weight: bold;
  64. color: #3a9eeb;
  65. }
  66. .sub-title {
  67. font-size: 24rpx;
  68. color: #666;
  69. }
  70. .back-btn {
  71. display: flex;
  72. align-items: center;
  73. padding: 16rpx;
  74. border-radius: 30rpx;
  75. background-color: rgba(0, 153, 255, 0.08);
  76. transition: all 0.2s ease;
  77. }
  78. .back-btn:active {
  79. background-color: rgba(0, 153, 255, 0.15);
  80. }
  81. .back-icon {
  82. font-size: 32rpx;
  83. color: #0099ff;
  84. font-weight: bold;
  85. margin-right: 5rpx;
  86. }
  87. .back-text {
  88. font-size: 28rpx;
  89. color: #0099ff;
  90. font-weight: 500;
  91. }
  92. .test-btn {
  93. display: flex;
  94. align-items: center;
  95. padding: 10rpx 16rpx;
  96. border-radius: 30rpx;
  97. background-color: rgba(255, 193, 7, 0.1);
  98. transition: all 0.2s ease;
  99. }
  100. .test-btn:active {
  101. background-color: rgba(255, 193, 7, 0.2);
  102. }
  103. .test-text {
  104. font-size: 24rpx;
  105. color: #ffc107;
  106. font-weight: 500;
  107. }
  108. .console-btn {
  109. display: flex;
  110. align-items: center;
  111. padding: 10rpx 16rpx;
  112. border-radius: 30rpx;
  113. background-color: rgba(255, 193, 7, 0.1);
  114. transition: all 0.2s ease;
  115. }
  116. .console-btn:active {
  117. background-color: rgba(255, 193, 7, 0.2);
  118. }
  119. .console-text {
  120. font-size: 24rpx;
  121. color: #ffc107;
  122. font-weight: 500;
  123. }
  124. .new-chat-btn {
  125. display: flex;
  126. align-items: center;
  127. color: #0099ff;
  128. padding: 10rpx 16rpx;
  129. border-radius: 30rpx;
  130. background-color: rgba(0, 153, 255, 0.08);
  131. transition: all 0.2s ease;
  132. }
  133. .new-chat-btn:active {
  134. background-color: rgba(0, 153, 255, 0.15);
  135. }
  136. .new-chat-icon {
  137. font-size: 28rpx;
  138. font-weight: bold;
  139. margin-right: 5rpx;
  140. color: #0099ff;
  141. }
  142. .new-chat-text {
  143. font-size: 24rpx;
  144. color: #0099ff;
  145. font-weight: 500;
  146. }
  147. /* 聊天头部 */
  148. .chat-header {
  149. padding: 20rpx 30rpx;
  150. background-color: rgba(255, 255, 255, 0.8);
  151. border-bottom: 1px solid #f0f0f0;
  152. margin-top: 120rpx; /* 调整顶部边距,为合并后的标题栏留出空间 */
  153. margin-bottom: 10rpx;
  154. position: fixed;
  155. top: 0;
  156. left: 0;
  157. right: 0;
  158. z-index: 90;
  159. }
  160. .assistant-name {
  161. display: flex;
  162. align-items: center;
  163. font-size: 28rpx;
  164. color: #333;
  165. font-weight: 500;
  166. }
  167. .dot {
  168. width: 12rpx;
  169. height: 12rpx;
  170. background-color: #4facfe;
  171. border-radius: 50%;
  172. margin-right: 10rpx;
  173. }
  174. /* 消息容器 */
  175. .message-container {
  176. flex: 1;
  177. margin-top: 180rpx; /* 调整顶部边距,为合并后的标题栏和聊天头部留出空间 */
  178. padding-bottom: 120rpx; /* 为底部输入框留出空间 */
  179. }
  180. /* 消息列表 */
  181. .message-list {
  182. width: 100%;
  183. height: calc(100vh - 400rpx); /* 调整高度 */
  184. padding: 20rpx;
  185. box-sizing: border-box;
  186. }
  187. /* 欢迎消息容器样式 */
  188. .welcome-container {
  189. background-color: #fff;
  190. border-radius: 20rpx;
  191. margin-bottom: 30rpx;
  192. overflow: hidden;
  193. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.03);
  194. }
  195. .welcome-message {
  196. display: flex;
  197. padding: 30rpx;
  198. }
  199. .welcome-message .avatar {
  200. width: 70rpx;
  201. height: 70rpx;
  202. border-radius: 50%;
  203. overflow: hidden;
  204. margin-right: 15rpx;
  205. border: 2rpx solid #f5f5f5;
  206. flex-shrink: 0;
  207. }
  208. .welcome-message .message-bubble {
  209. background-color: transparent;
  210. box-shadow: none;
  211. padding: 0;
  212. color: #333;
  213. line-height: 1.6;
  214. flex: 1;
  215. }
  216. /* 快捷问题 */
  217. .quick-questions {
  218. padding: 20rpx;
  219. display: flex;
  220. flex-direction: column;
  221. gap: 16rpx;
  222. border-top: 1px solid rgba(0, 0, 0, 0.03);
  223. }
  224. .quick-question {
  225. background-color: #f8fbfe;
  226. padding: 24rpx;
  227. border-radius: 16rpx;
  228. font-size: 32rpx;
  229. color: #333;
  230. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.03);
  231. display: flex;
  232. align-items: center;
  233. position: relative;
  234. }
  235. .dot-marker {
  236. width: 15rpx;
  237. height: 15rpx;
  238. background-color: #72cbff;
  239. border-radius: 50%;
  240. margin-right: 20rpx;
  241. flex-shrink: 0;
  242. }
  243. .question-text {
  244. flex: 1;
  245. font-weight: 500;
  246. color: #333;
  247. }
  248. .arrow-icon {
  249. width: 50rpx;
  250. height: 50rpx;
  251. display: flex;
  252. align-items: center;
  253. justify-content: center;
  254. border-radius: 50%;
  255. background-color: rgba(114, 203, 255, 0.1);
  256. flex-shrink: 0;
  257. color: #72cbff;
  258. }
  259. .arrow-icon text {
  260. color: #72cbff;
  261. font-size: 36rpx;
  262. font-weight: bold;
  263. line-height: 1;
  264. }
  265. .message-item {
  266. margin-bottom: 30rpx;
  267. animation: fadeIn 0.3s ease;
  268. }
  269. .message-header {
  270. display: flex;
  271. align-items: center;
  272. margin-bottom: 10rpx;
  273. padding: 0 20rpx;
  274. }
  275. .message-time {
  276. font-size: 22rpx;
  277. color: #999;
  278. margin-right: 10rpx;
  279. }
  280. .message-role {
  281. font-size: 22rpx;
  282. color: #666;
  283. }
  284. .message-content {
  285. display: flex;
  286. align-items: flex-start;
  287. padding: 0 20rpx;
  288. }
  289. .avatar {
  290. width: 70rpx;
  291. height: 70rpx;
  292. border-radius: 50%;
  293. overflow: hidden;
  294. margin-right: 15rpx;
  295. border: 2rpx solid #f5f5f5;
  296. }
  297. .avatar image {
  298. width: 100%;
  299. height: 100%;
  300. }
  301. .message-bubble {
  302. max-width: 70%;
  303. padding: 30rpx;
  304. border-radius: 16rpx;
  305. font-size: 28rpx;
  306. line-height: 1.6;
  307. position: relative;
  308. word-break: break-word;
  309. }
  310. .message-bubble rich-text {
  311. line-height: 1.6;
  312. }
  313. .message-bubble b {
  314. color: #0099ff;
  315. font-weight: 600;
  316. }
  317. .message-bubble span {
  318. display: inline-block;
  319. margin: 0 4rpx;
  320. }
  321. .user .message-content {
  322. flex-direction: row-reverse;
  323. }
  324. .user .avatar {
  325. margin-right: 0;
  326. margin-left: 15rpx;
  327. }
  328. .user .message-bubble {
  329. background: linear-gradient(135deg, #72cbff 0%, #5bb8eb 100%);
  330. color: #fff;
  331. border-radius: 16rpx;
  332. padding: 30rpx;
  333. line-height: 1.6;
  334. }
  335. .ai .message-bubble {
  336. background-color: #fff;
  337. color: #333;
  338. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.03);
  339. padding: 30rpx;
  340. line-height: 1.6;
  341. border-radius: 16rpx;
  342. }
  343. .ai .message-bubble rich-text {
  344. color: #333;
  345. line-height: 1.6;
  346. }
  347. .ai .message-bubble rich-text ol,
  348. .ai .message-bubble rich-text ul {
  349. padding-left: 40rpx;
  350. margin: 10rpx 0;
  351. }
  352. .ai .message-bubble rich-text ol li,
  353. .ai .message-bubble rich-text ul li {
  354. margin: 10rpx 0;
  355. }
  356. /* 思考中动画 */
  357. .thinking-dots {
  358. display: flex;
  359. align-items: center;
  360. height: 40rpx;
  361. }
  362. .thinking-dots text {
  363. font-size: 40rpx;
  364. animation: thinking 1s infinite;
  365. margin: 0 2rpx;
  366. color: #666;
  367. }
  368. .thinking-dots text:nth-child(2) {
  369. animation-delay: 0.2s;
  370. }
  371. .thinking-dots text:nth-child(3) {
  372. animation-delay: 0.4s;
  373. }
  374. @keyframes thinking {
  375. 0%, 100% {
  376. opacity: 0.3;
  377. transform: translateY(0);
  378. }
  379. 50% {
  380. opacity: 1;
  381. transform: translateY(-4rpx);
  382. }
  383. }
  384. /* 输入区域 */
  385. .input-area {
  386. display: flex;
  387. padding: 15rpx 20rpx;
  388. background-color: #ffffff;
  389. border-top: 1px solid rgba(0, 0, 0, 0.05);
  390. position: fixed;
  391. bottom: 0;
  392. left: 0;
  393. right: 0;
  394. z-index: 100;
  395. }
  396. .message-input {
  397. flex: 1;
  398. height: 70rpx;
  399. background-color: #f5f7fa;
  400. border-radius: 35rpx;
  401. padding: 0 30rpx;
  402. font-size: 28rpx;
  403. color: #333;
  404. }
  405. .send-btn {
  406. width: 140rpx;
  407. height: 70rpx;
  408. background-color: #72cbff;
  409. color: #ffffff;
  410. border-radius: 35rpx;
  411. margin-left: 15rpx;
  412. font-size: 28rpx;
  413. display: flex;
  414. align-items: center;
  415. justify-content: center;
  416. padding: 0;
  417. }
  418. .send-btn:active {
  419. background-color: #5bb8eb;
  420. }
  421. .send-btn[disabled] {
  422. background-color: #cccccc;
  423. color: #ffffff;
  424. }
  425. @keyframes fadeIn {
  426. from {
  427. opacity: 0;
  428. transform: translateY(10rpx);
  429. }
  430. to {
  431. opacity: 1;
  432. transform: translateY(0);
  433. }
  434. }
  435. /* 系统消息样式 */
  436. .system .message-bubble {
  437. background-color: rgba(0, 0, 0, 0.05);
  438. color: #666;
  439. text-align: center;
  440. font-size: 24rpx;
  441. padding: 10rpx 20rpx;
  442. margin: 20rpx auto;
  443. max-width: 80%;
  444. border-radius: 30rpx;
  445. }
  446. .system .avatar {
  447. display: none;
  448. }
  449. .system .message-header {
  450. justify-content: center;
  451. }
  452. /* 旅行计划卡片样式 */
  453. .travel-plan-card {
  454. background-color: #fff;
  455. border-radius: 20rpx;
  456. overflow: hidden;
  457. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
  458. width: 100%;
  459. margin: 20rpx 0;
  460. }
  461. .travel-plan-header {
  462. padding: 20rpx;
  463. display: flex;
  464. justify-content: center;
  465. background-color: #f8f8f8;
  466. border-bottom: 1px solid #eee;
  467. }
  468. .plan-logo text {
  469. font-size: 32rpx;
  470. font-weight: bold;
  471. color: #4cd964;
  472. }
  473. .travel-plan-basic {
  474. padding: 30rpx;
  475. background-color: #fff;
  476. border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  477. }
  478. .travel-plan-title {
  479. margin-bottom: 20rpx;
  480. }
  481. .travel-plan-title text {
  482. font-size: 36rpx;
  483. font-weight: bold;
  484. color: #333;
  485. }
  486. .travel-plan-desc {
  487. margin-bottom: 20rpx;
  488. color: #666;
  489. line-height: 1.5;
  490. }
  491. .travel-plan-feature {
  492. margin-bottom: 20rpx;
  493. color: #333;
  494. line-height: 1.5;
  495. }
  496. .travel-plan-price {
  497. font-weight: bold;
  498. color: #72cbff;
  499. font-size: 32rpx;
  500. }
  501. .travel-plan-price text:last-child {
  502. font-size: 24rpx;
  503. color: #999;
  504. margin-left: 10rpx;
  505. font-weight: normal;
  506. }
  507. .travel-plan-schedule {
  508. padding: 30rpx;
  509. background-color: #fff;
  510. display: flex;
  511. align-items: center;
  512. border-bottom: 1px solid #f5f5f5;
  513. }
  514. .calendar-indicator {
  515. background-color: #ff6b6b;
  516. color: #fff;
  517. width: 60rpx;
  518. height: 80rpx;
  519. display: flex;
  520. flex-direction: column;
  521. align-items: center;
  522. justify-content: center;
  523. border-radius: 6rpx;
  524. margin-right: 20rpx;
  525. }
  526. .calendar-indicator .month {
  527. font-size: 20rpx;
  528. line-height: 1;
  529. }
  530. .calendar-indicator .day {
  531. font-size: 32rpx;
  532. font-weight: bold;
  533. line-height: 1.2;
  534. }
  535. .schedule-title {
  536. font-size: 34rpx;
  537. font-weight: bold;
  538. color: #333;
  539. }
  540. .day-indicator {
  541. display: flex;
  542. align-items: center;
  543. padding: 20rpx 30rpx;
  544. background-color: #f8fbff;
  545. }
  546. .pin-icon {
  547. font-size: 36rpx;
  548. margin-right: 10rpx;
  549. color: #72cbff;
  550. }
  551. .day-text {
  552. font-size: 32rpx;
  553. color: #72cbff;
  554. font-weight: bold;
  555. }
  556. .travel-details {
  557. padding: 20rpx 30rpx;
  558. background-color: #fff;
  559. }
  560. .detail-item {
  561. margin-bottom: 20rpx;
  562. display: flex;
  563. }
  564. .detail-label {
  565. color: #72cbff;
  566. font-size: 28rpx;
  567. font-weight: bold;
  568. width: 180rpx;
  569. flex-shrink: 0;
  570. }
  571. .detail-value {
  572. color: #333;
  573. font-size: 28rpx;
  574. line-height: 1.5;
  575. flex: 1;
  576. }
  577. .travel-footer {
  578. padding: 20rpx 30rpx;
  579. background-color: #fff;
  580. display: flex;
  581. justify-content: space-around;
  582. border-top: 1px solid #f0f0f0;
  583. }
  584. .footer-item {
  585. text-align: center;
  586. background-color: #f8f8f8;
  587. padding: 10rpx 20rpx;
  588. border-radius: 30rpx;
  589. }
  590. .footer-item text {
  591. font-size: 24rpx;
  592. color: #666;
  593. }
  594. .travel-note {
  595. padding: 20rpx 30rpx;
  596. background-color: #f8fbff;
  597. border-top: 1px solid #f0f0f0;
  598. }
  599. .note-label {
  600. color: #72cbff;
  601. font-weight: bold;
  602. font-size: 28rpx;
  603. margin-right: 10rpx;
  604. }
  605. .note-content {
  606. color: #666;
  607. font-size: 28rpx;
  608. line-height: 1.5;
  609. }
  610. /* 格式化样式 */
  611. .md-heading {
  612. color: #0077e6;
  613. font-weight: bold;
  614. margin: 20rpx 0 10rpx 0;
  615. }
  616. h1.md-heading {
  617. font-size: 36rpx;
  618. margin: 24rpx 0 12rpx 0;
  619. }
  620. h2.md-heading {
  621. font-size: 32rpx;
  622. margin: 20rpx 0 10rpx 0;
  623. }
  624. h3.md-heading {
  625. font-size: 30rpx;
  626. margin: 16rpx 0 8rpx 0;
  627. }
  628. .enhanced-title {
  629. display: flex;
  630. align-items: center;
  631. margin: 30rpx 0 20rpx 0;
  632. background-color: #f8fbff;
  633. padding: 16rpx 20rpx;
  634. border-radius: 10rpx;
  635. }
  636. .title-icon {
  637. font-size: 36rpx;
  638. margin-right: 10rpx;
  639. line-height: 1;
  640. }
  641. .title-text {
  642. font-size: 32rpx;
  643. color: #0077e6;
  644. font-weight: bold;
  645. }
  646. .enhanced-list-item {
  647. display: flex;
  648. align-items: flex-start;
  649. margin: 16rpx 0;
  650. padding-left: 10rpx;
  651. }
  652. .item-bullet {
  653. width: 12rpx;
  654. height: 12rpx;
  655. background-color: #72cbff;
  656. border-radius: 50%;
  657. margin: 14rpx 15rpx 0 0;
  658. flex-shrink: 0;
  659. }
  660. .spot-name {
  661. color: #0077e6;
  662. font-weight: bold;
  663. }
  664. .bracket-title {
  665. color: #0077e6;
  666. font-weight: bold;
  667. }
  668. .price-highlight {
  669. color: #ff6b6b;
  670. font-weight: bold;
  671. }
  672. .day-highlight {
  673. color: #0099ff;
  674. font-weight: bold;
  675. }
  676. .time-highlight {
  677. color: #0099ff;
  678. font-weight: bold;
  679. }
  680. .keyword-highlight {
  681. color: #ff9500;
  682. font-weight: bold;
  683. }