style.css 21 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  1. /* Global Box Sizing Fix */
  2. view,
  3. text,
  4. image,
  5. scroll-view,
  6. button {
  7. box-sizing: border-box;
  8. }
  9. /* 页面背景 */
  10. page {
  11. background-color: #F8F8F8;
  12. }
  13. .container {
  14. padding-bottom: 30rpx;
  15. }
  16. /* 顶部背景 */
  17. .nav-bg {
  18. position: absolute;
  19. top: 0;
  20. left: 0;
  21. width: 100%;
  22. height: 310rpx;
  23. /* Reduced by another 20rpx */
  24. background: linear-gradient(180deg, #FFE0B2 0%, #FFF3E0 100%);
  25. border-bottom-left-radius: 60rpx;
  26. border-bottom-right-radius: 60rpx;
  27. z-index: 1;
  28. overflow: hidden;
  29. }
  30. /* Custom Navigation Bar */
  31. .custom-nav-bar {
  32. position: fixed;
  33. top: 0;
  34. left: 0;
  35. width: 100%;
  36. z-index: 100;
  37. padding-top: var(--status-bar-height);
  38. height: 88rpx;
  39. display: flex;
  40. align-items: center;
  41. justify-content: center;
  42. }
  43. .nav-title {
  44. font-size: 34rpx;
  45. font-weight: bold;
  46. color: #333;
  47. }
  48. /* 头部区域 */
  49. .header-section {
  50. position: relative;
  51. z-index: 2;
  52. padding: 88rpx 30rpx 0;
  53. }
  54. /* 用户信息 */
  55. .user-info {
  56. display: flex;
  57. align-items: center;
  58. margin-bottom: 40rpx;
  59. }
  60. .avatar {
  61. width: 100rpx;
  62. height: 100rpx;
  63. border-radius: 50%;
  64. margin-right: 24rpx;
  65. border: 4rpx solid #fff;
  66. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1);
  67. }
  68. .info-content {
  69. flex: 1;
  70. display: flex;
  71. flex-direction: column;
  72. }
  73. .top-row {
  74. display: flex;
  75. align-items: center;
  76. margin-bottom: 8rpx;
  77. }
  78. .name {
  79. font-size: 36rpx;
  80. font-weight: bold;
  81. color: #333;
  82. margin-right: 16rpx;
  83. }
  84. /* 状态胶囊 */
  85. .status-pill {
  86. background-color: #4E4E4E;
  87. border-radius: 24rpx;
  88. display: flex;
  89. align-items: center;
  90. padding: 2rpx 20rpx 2rpx 6rpx;
  91. /* Increased right/left padding to elongate */
  92. }
  93. .status-dot-bg {
  94. width: 24rpx;
  95. /* Smaller icon bg */
  96. height: 24rpx;
  97. background-color: #00E676;
  98. border-radius: 50%;
  99. display: flex;
  100. align-items: center;
  101. justify-content: center;
  102. margin-right: 6rpx;
  103. }
  104. .check-mark {
  105. color: #fff;
  106. font-size: 14rpx;
  107. /* Smaller check */
  108. font-weight: bold;
  109. }
  110. .status-text {
  111. color: #fff;
  112. font-size: 22rpx;
  113. /* Smaller font (11pt) */
  114. margin-right: 6rpx;
  115. font-weight: normal;
  116. }
  117. .status-pill .arrow-down {
  118. color: #fff;
  119. font-size: 10rpx;
  120. /* Half size */
  121. }
  122. .bottom-row {
  123. display: flex;
  124. align-items: center;
  125. font-size: 24rpx;
  126. color: #333;
  127. }
  128. .city-label {
  129. margin-right: 4rpx;
  130. }
  131. .city-arrow {
  132. font-family: monospace;
  133. }
  134. /* 通知铃铛 */
  135. .notification-box {
  136. position: relative;
  137. width: 60rpx;
  138. height: 60rpx;
  139. display: flex;
  140. align-items: center;
  141. justify-content: center;
  142. }
  143. .bell-img {
  144. width: 44rpx;
  145. height: 44rpx;
  146. }
  147. .badge-count {
  148. position: absolute;
  149. top: -4rpx;
  150. right: -4rpx;
  151. background-color: #FF5252;
  152. color: #fff;
  153. font-size: 20rpx;
  154. width: 32rpx;
  155. height: 32rpx;
  156. line-height: 32rpx;
  157. text-align: center;
  158. border-radius: 50%;
  159. border: 2rpx solid #fff;
  160. }
  161. /* 统计卡片 - 悬浮样式 */
  162. .stats-card {
  163. background-color: #fff;
  164. border-radius: 30rpx;
  165. padding: 30rpx 0;
  166. display: flex;
  167. justify-content: space-around;
  168. align-items: center;
  169. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.06);
  170. margin-bottom: 10rpx;
  171. /* 10rpx spacing to task header */
  172. margin-top: -10rpx;
  173. position: relative;
  174. width: 100%;
  175. }
  176. .stat-item {
  177. display: flex;
  178. flex-direction: column;
  179. align-items: center;
  180. flex: 1;
  181. }
  182. .num {
  183. font-size: 40rpx;
  184. /* Increased font size */
  185. font-weight: 800;
  186. color: #333;
  187. margin-bottom: 10rpx;
  188. font-family: Arial, sans-serif;
  189. }
  190. .label {
  191. font-size: 24rpx;
  192. color: #888;
  193. }
  194. .divider {
  195. width: 1px;
  196. height: 40rpx;
  197. background-color: #EEEEEE;
  198. }
  199. /* 任务大厅标题栏 - 吸顶容器 */
  200. .task-header {
  201. position: sticky;
  202. top: calc(88rpx + var(--status-bar-height));
  203. z-index: 90;
  204. margin-top: 0;
  205. margin-bottom: 10rpx;
  206. width: 100%;
  207. /* Flex removed, padding removed, handled by inner */
  208. }
  209. /* 标题栏内部内容 */
  210. .header-inner {
  211. position: relative;
  212. z-index: 3;
  213. /* Layer 3: Topmost */
  214. display: flex;
  215. justify-content: space-between;
  216. align-items: center;
  217. height: 94rpx;
  218. padding: 0 30rpx;
  219. background-color: transparent;
  220. transition: background-color 0.2s;
  221. }
  222. .left-title {
  223. display: flex;
  224. align-items: center;
  225. }
  226. .orange-bar {
  227. width: 8rpx;
  228. height: 32rpx;
  229. background-color: #FF5722;
  230. border-radius: 4rpx;
  231. margin-right: 15rpx;
  232. }
  233. .left-title .title {
  234. font-size: 28rpx;
  235. font-weight: 900;
  236. color: #333;
  237. font-style: italic;
  238. }
  239. .left-title .count {
  240. font-size: 24rpx;
  241. color: #999;
  242. margin-left: 8rpx;
  243. font-weight: normal;
  244. }
  245. .filter-options {
  246. display: flex;
  247. align-items: center;
  248. font-size: 24rpx;
  249. color: #666;
  250. }
  251. .filter-item {
  252. margin-left: 30rpx;
  253. transition: color 0.3s;
  254. display: flex;
  255. align-items: center;
  256. }
  257. .filter-item.active {
  258. color: #FF5722;
  259. font-weight: bold;
  260. }
  261. /* Sort Icon Design: Up and Down arrows */
  262. .sort-icon {
  263. display: flex;
  264. flex-direction: column;
  265. margin-left: 6rpx;
  266. justify-content: center;
  267. height: 20rpx;
  268. }
  269. .sort-icon .up {
  270. width: 0;
  271. height: 0;
  272. border-left: 6rpx solid transparent;
  273. border-right: 6rpx solid transparent;
  274. border-bottom: 6rpx solid #ccc;
  275. margin-bottom: 2rpx;
  276. }
  277. .sort-icon .down {
  278. width: 0;
  279. height: 0;
  280. border-left: 6rpx solid transparent;
  281. border-right: 6rpx solid transparent;
  282. border-top: 6rpx solid #ccc;
  283. }
  284. .filter-item.active .sort-icon .up.active {
  285. border-bottom-color: #FF5722;
  286. }
  287. .filter-item.active .sort-icon .down.active {
  288. border-top-color: #FF5722;
  289. }
  290. .dropdown {
  291. display: flex;
  292. align-items: center;
  293. margin-left: 30rpx;
  294. background-color: transparent;
  295. padding: 6rpx 20rpx;
  296. border-radius: 30rpx;
  297. border: none;
  298. box-shadow: none;
  299. }
  300. .dropdown text {
  301. margin-left: 0;
  302. font-size: 24rpx;
  303. color: #333;
  304. }
  305. .dropdown .arrow-down {
  306. font-size: 18rpx;
  307. margin-left: 6rpx;
  308. color: #999;
  309. }
  310. /* 任务大厅列表 */
  311. .task-list {
  312. padding: 0 30rpx;
  313. width: 100%;
  314. }
  315. /* 任务卡片优化 */
  316. .task-card {
  317. background-color: #fff;
  318. border-radius: 24rpx;
  319. padding: 20rpx 20rpx;
  320. margin-bottom: 20rpx;
  321. box-shadow: 0 5rpx 20rpx rgba(0, 0, 0, 0.04);
  322. width: 100%;
  323. }
  324. .card-header {
  325. display: flex;
  326. justify-content: space-between;
  327. align-items: center;
  328. margin-bottom: 15rpx;
  329. }
  330. .type-badge {
  331. display: flex;
  332. align-items: center;
  333. }
  334. .type-icon {
  335. width: 44rpx;
  336. height: 44rpx;
  337. margin-right: 15rpx;
  338. background-color: #FFF3E0;
  339. border-radius: 50%;
  340. padding: 6rpx;
  341. box-sizing: border-box;
  342. }
  343. .type-text {
  344. font-size: 28rpx;
  345. font-weight: bold;
  346. color: #333;
  347. }
  348. .price {
  349. font-size: 28rpx;
  350. font-weight: bold;
  351. color: #FF5252;
  352. }
  353. .time-row {
  354. font-size: 26rpx;
  355. color: #666;
  356. margin-bottom: 20rpx;
  357. }
  358. .time-row .value {
  359. color: #333;
  360. margin-left: 10rpx;
  361. }
  362. /* 宠物卡片 */
  363. .pet-card {
  364. background-color: #FFF8F0;
  365. border-radius: 16rpx;
  366. padding: 15rpx 20rpx;
  367. display: flex;
  368. align-items: center;
  369. margin-bottom: 20rpx;
  370. }
  371. .pet-avatar {
  372. width: 80rpx;
  373. height: 80rpx;
  374. border-radius: 50%;
  375. margin-right: 20rpx;
  376. }
  377. .pet-info {
  378. flex: 1;
  379. display: flex;
  380. flex-direction: column;
  381. }
  382. .pet-name {
  383. font-size: 28rpx;
  384. font-weight: bold;
  385. color: #333;
  386. margin-bottom: 5rpx;
  387. }
  388. .pet-breed {
  389. font-size: 24rpx;
  390. color: #999;
  391. }
  392. .pet-profile-btn {
  393. font-size: 24rpx;
  394. color: #FF9800;
  395. border: 1px solid #FF9800;
  396. padding: 6rpx 20rpx;
  397. border-radius: 50rpx;
  398. background-color: #fff;
  399. }
  400. /* 路线信息 */
  401. .route-info {
  402. margin-bottom: 20rpx;
  403. }
  404. .route-item {
  405. display: flex;
  406. align-items: flex-start;
  407. padding-bottom: 12rpx;
  408. /* Radically reduced for compactness */
  409. position: relative;
  410. width: 100%;
  411. }
  412. /* 路线项底部的间隔 */
  413. .route-item:not(:last-child) {
  414. margin-bottom: 5rpx;
  415. /* Radically reduced for compactness */
  416. }
  417. .route-item:last-child {
  418. padding-bottom: 0;
  419. margin-bottom: 0;
  420. }
  421. .route-line-vertical {
  422. position: absolute;
  423. left: 19rpx;
  424. top: 46rpx;
  425. bottom: -15rpx;
  426. /* Adjusted to connect the now-closer nodes */
  427. border-left: 2rpx dashed #E0E0E0;
  428. width: 0;
  429. z-index: 0;
  430. }
  431. .icon-circle {
  432. width: 40rpx;
  433. height: 40rpx;
  434. border-radius: 50%;
  435. color: #fff;
  436. font-size: 22rpx;
  437. display: flex;
  438. align-items: center;
  439. justify-content: center;
  440. margin-right: 20rpx;
  441. flex-shrink: 0;
  442. font-weight: bold;
  443. margin-top: 6rpx;
  444. position: relative;
  445. z-index: 1;
  446. /* Above line */
  447. }
  448. .icon-circle.start {
  449. background-color: #FFB74D;
  450. }
  451. .icon-circle.end {
  452. background-color: #81C784;
  453. }
  454. .icon-circle.service {
  455. background-color: #81C784;
  456. }
  457. .address-box {
  458. flex: 1;
  459. display: flex;
  460. flex-direction: column;
  461. padding-right: 20rpx;
  462. width: 0;
  463. }
  464. .addr-title {
  465. font-size: 28rpx;
  466. font-weight: bold;
  467. color: #333;
  468. margin-bottom: 6rpx;
  469. }
  470. .addr-desc {
  471. font-size: 24rpx;
  472. color: #999;
  473. line-height: normal;
  474. }
  475. .distance-tag {
  476. display: flex;
  477. align-items: center;
  478. background-color: #FFF3E0;
  479. padding: 6rpx 6rpx 6rpx 12rpx;
  480. border-radius: 30rpx;
  481. flex-shrink: 0;
  482. }
  483. .distance-tag text {
  484. font-size: 24rpx;
  485. color: #FF5722;
  486. margin-right: 5rpx;
  487. font-weight: normal;
  488. }
  489. .nav-arrow {
  490. width: 32rpx;
  491. height: 32rpx;
  492. }
  493. .service-content {
  494. margin-top: -10rpx;
  495. /* Shifted up using negative margin for max compactness */
  496. font-size: 24rpx;
  497. /* 12pt */
  498. color: #666;
  499. padding-left: 60rpx;
  500. }
  501. .content-label {
  502. color: #999;
  503. margin-right: 10rpx;
  504. }
  505. /* 备注 */
  506. .remark-box {
  507. background-color: #F8F8F8;
  508. padding: 15rpx 20rpx;
  509. border-radius: 8rpx;
  510. font-size: 24rpx;
  511. color: #666;
  512. margin-bottom: 20rpx;
  513. }
  514. /* 按钮组 */
  515. .action-btns {
  516. display: flex;
  517. justify-content: space-between;
  518. }
  519. .btn {
  520. height: 64rpx;
  521. /* Increased height */
  522. line-height: 64rpx;
  523. border-radius: 32rpx;
  524. /* Matches height/2 */
  525. font-size: 28rpx;
  526. /* Slightly larger */
  527. font-weight: normal;
  528. width: 48%;
  529. }
  530. .btn::after {
  531. border: none;
  532. }
  533. .btn.reject {
  534. background-color: #F5F5F5;
  535. color: #999;
  536. box-shadow: none;
  537. }
  538. .btn.accept {
  539. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  540. color: #fff;
  541. box-shadow: 0 5rpx 15rpx rgba(255, 87, 34, 0.3);
  542. }
  543. .bg-circle-right {
  544. position: absolute;
  545. top: -20rpx;
  546. right: -20rpx;
  547. width: 185rpx;
  548. /* +20rpx */
  549. height: 185rpx;
  550. /* +20rpx */
  551. border-radius: 50%;
  552. background-color: rgba(255, 218, 185, 0.8);
  553. /* 80% opacity */
  554. }
  555. /* 筛选面板 (Absolute Child) */
  556. .filter-panel {
  557. position: absolute;
  558. /* Relative to .task-header */
  559. top: 94rpx;
  560. /* Start right below header */
  561. left: 0;
  562. width: 100%;
  563. background-color: #fff;
  564. z-index: 2;
  565. /* Layer 2: Below inner(3), Above mask(1) */
  566. padding: 30rpx 30rpx 40rpx;
  567. border-bottom-left-radius: 30rpx;
  568. border-bottom-right-radius: 30rpx;
  569. box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  570. transform: translateY(-20rpx);
  571. /* Slightly tucked start */
  572. opacity: 0;
  573. transition: all 0.25s ease-out;
  574. visibility: hidden;
  575. }
  576. .filter-panel.show {
  577. transform: translateY(0);
  578. opacity: 1;
  579. visibility: visible;
  580. }
  581. /* 筛选遮罩 (Absolute Child) */
  582. .filter-mask {
  583. position: absolute;
  584. top: 94rpx;
  585. /* Start below header */
  586. left: 0;
  587. right: 0;
  588. height: 100vh;
  589. /* Cover visible area below */
  590. background-color: rgba(0, 0, 0, 0.5);
  591. z-index: 1;
  592. /* Layer 1: Lowest in header */
  593. }
  594. .filter-section {
  595. margin-bottom: 40rpx;
  596. }
  597. .section-title {
  598. font-size: 28rpx;
  599. font-weight: bold;
  600. color: #333;
  601. margin-bottom: 20rpx;
  602. display: block;
  603. }
  604. .options-grid {
  605. display: flex;
  606. flex-wrap: wrap;
  607. gap: 20rpx;
  608. }
  609. .option-btn {
  610. width: calc(33.33% - 14rpx);
  611. /* 3 cols with gap */
  612. height: 64rpx;
  613. line-height: 64rpx;
  614. text-align: center;
  615. border-radius: 32rpx;
  616. font-size: 26rpx;
  617. color: #666;
  618. background-color: #fff;
  619. border: 2rpx solid #E0E0E0;
  620. margin-bottom: 10rpx;
  621. }
  622. .option-btn.active {
  623. color: #FF5722;
  624. background-color: #FFF3E0;
  625. border-color: #FF5722;
  626. font-weight: bold;
  627. }
  628. .filter-actions {
  629. display: flex;
  630. justify-content: space-between;
  631. margin-top: 50rpx;
  632. }
  633. .action-btn {
  634. width: 48%;
  635. height: 64rpx;
  636. /* Match .btn */
  637. line-height: 64rpx;
  638. border-radius: 32rpx;
  639. /* Match .btn */
  640. font-size: 28rpx;
  641. /* Match .btn */
  642. font-weight: normal;
  643. /* Match .btn */
  644. }
  645. .action-btn::after {
  646. border: none;
  647. }
  648. .action-btn.reset {
  649. background-color: #F5F5F5;
  650. color: #999;
  651. /* Match light gray */
  652. }
  653. .action-btn.confirm {
  654. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  655. color: #fff;
  656. box-shadow: 0 5rpx 15rpx rgba(255, 87, 34, 0.3);
  657. }
  658. /* 状态胶囊 */
  659. .status-pill {
  660. display: flex;
  661. align-items: center;
  662. background-color: #333333;
  663. /* Dark background */
  664. border-radius: 20rpx;
  665. padding: 4rpx 16rpx 4rpx 8rpx;
  666. margin-left: 16rpx;
  667. transition: background-color 0.3s;
  668. }
  669. .status-pill.resting {
  670. background-color: #424242;
  671. /* Slightly lighter dark */
  672. }
  673. .status-dot-bg {
  674. width: 24rpx;
  675. height: 24rpx;
  676. background-color: #4CAF50;
  677. border-radius: 50%;
  678. margin-right: 6rpx;
  679. display: flex;
  680. justify-content: center;
  681. align-items: center;
  682. }
  683. .check-mark {
  684. color: #fff;
  685. font-size: 14rpx;
  686. font-weight: bold;
  687. }
  688. .status-pill.resting .status-dot-bg {
  689. background-color: #FF5722;
  690. /* Warning color for resting */
  691. }
  692. .status-icon {
  693. width: 24rpx;
  694. height: 24rpx;
  695. margin-right: 6rpx;
  696. }
  697. .status-text {
  698. font-size: 22rpx;
  699. color: #fff;
  700. margin-right: 6rpx;
  701. }
  702. .status-pill .arrow-down {
  703. color: #fff;
  704. font-size: 10rpx;
  705. /* Reduced size */
  706. margin-left: 4rpx;
  707. /* Adjust spacing */
  708. }
  709. /* 空状态 - 休息中 */
  710. .empty-state {
  711. display: flex;
  712. flex-direction: column;
  713. align-items: center;
  714. justify-content: center;
  715. padding-top: 150rpx;
  716. }
  717. .empty-icon {
  718. width: 200rpx;
  719. height: 200rpx;
  720. margin-bottom: 40rpx;
  721. opacity: 0.5;
  722. }
  723. .empty-text {
  724. font-size: 28rpx;
  725. color: #666;
  726. margin-bottom: 60rpx;
  727. }
  728. .start-work-btn {
  729. width: 300rpx;
  730. height: 80rpx;
  731. line-height: 80rpx;
  732. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  733. border-radius: 40rpx;
  734. color: #fff;
  735. font-size: 30rpx;
  736. font-weight: bold;
  737. box-shadow: 0 5rpx 15rpx rgba(255, 87, 34, 0.3);
  738. }
  739. /* 自定义确认弹窗 */
  740. .modal-mask {
  741. position: fixed;
  742. top: 0;
  743. left: 0;
  744. right: 0;
  745. bottom: 0;
  746. background-color: rgba(0, 0, 0, 0.5);
  747. z-index: 999;
  748. display: flex;
  749. align-items: center;
  750. justify-content: center;
  751. }
  752. .custom-modal {
  753. width: 600rpx;
  754. background-color: #fff;
  755. border-radius: 24rpx;
  756. padding: 40rpx 50rpx;
  757. display: flex;
  758. flex-direction: column;
  759. align-items: center;
  760. }
  761. .modal-title {
  762. font-size: 36rpx;
  763. font-weight: bold;
  764. color: #333;
  765. margin-bottom: 30rpx;
  766. }
  767. .modal-content {
  768. font-size: 30rpx;
  769. color: #666;
  770. margin-bottom: 50rpx;
  771. text-align: center;
  772. }
  773. .modal-btns {
  774. width: 100%;
  775. display: flex;
  776. justify-content: space-between;
  777. }
  778. .modal-btn {
  779. width: 45%;
  780. height: 80rpx;
  781. line-height: 80rpx;
  782. border-radius: 40rpx;
  783. font-size: 30rpx;
  784. font-weight: bold;
  785. margin: 0;
  786. }
  787. .modal-btn::after {
  788. border: none;
  789. }
  790. .modal-btn.cancel {
  791. background-color: #F5F5F5;
  792. color: #999;
  793. }
  794. .modal-btn.confirm {
  795. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  796. color: #fff;
  797. box-shadow: 0 5rpx 15rpx rgba(255, 87, 34, 0.3);
  798. }
  799. /* 宠物档案弹窗 */
  800. .pet-modal-mask {
  801. position: fixed;
  802. top: 0;
  803. left: 0;
  804. right: 0;
  805. bottom: 0;
  806. background-color: rgba(0, 0, 0, 0.4);
  807. z-index: 1000;
  808. display: flex;
  809. align-items: center;
  810. justify-content: center;
  811. }
  812. .pet-modal-content {
  813. width: 680rpx;
  814. height: 85vh;
  815. background-color: #fff;
  816. border-radius: 20rpx;
  817. display: flex;
  818. flex-direction: column;
  819. overflow: hidden;
  820. }
  821. .pet-modal-header {
  822. display: flex;
  823. align-items: center;
  824. justify-content: space-between;
  825. padding: 30rpx;
  826. border-bottom: 1rpx solid #F0F0F0;
  827. }
  828. .pet-modal-title {
  829. font-size: 34rpx;
  830. font-weight: bold;
  831. color: #333;
  832. }
  833. .pet-modal-scroll {
  834. flex: 1;
  835. height: 0;
  836. padding: 30rpx;
  837. box-sizing: border-box;
  838. }
  839. .pet-base-info {
  840. display: flex;
  841. align-items: center;
  842. margin-bottom: 40rpx;
  843. }
  844. .pm-avatar {
  845. width: 120rpx;
  846. height: 120rpx;
  847. border-radius: 50%;
  848. margin-right: 30rpx;
  849. border: 2rpx solid #f5f5f5;
  850. }
  851. .pm-info-text {
  852. flex: 1;
  853. display: flex;
  854. flex-direction: column;
  855. }
  856. .pm-name-row {
  857. display: flex;
  858. align-items: center;
  859. margin-bottom: 15rpx;
  860. }
  861. .pm-name {
  862. font-size: 36rpx;
  863. font-weight: bold;
  864. color: #333;
  865. margin-right: 20rpx;
  866. }
  867. .pm-gender {
  868. display: flex;
  869. align-items: center;
  870. background-color: #E3F2FD;
  871. padding: 4rpx 12rpx;
  872. border-radius: 20rpx;
  873. }
  874. .pm-gender text {
  875. font-size: 22rpx;
  876. color: #1E88E5;
  877. }
  878. .pm-gender .gender-icon {
  879. font-weight: bold;
  880. margin-right: 4rpx;
  881. }
  882. .pm-gender.female {
  883. background-color: #FCE4EC;
  884. }
  885. .pm-gender.female text {
  886. color: #D81B60;
  887. }
  888. .pm-breed {
  889. font-size: 26rpx;
  890. color: #999;
  891. }
  892. .pm-detail-grid {
  893. display: flex;
  894. flex-wrap: wrap;
  895. justify-content: space-between;
  896. }
  897. .pm-grid-item {
  898. background-color: #F8F8F8;
  899. border-radius: 16rpx;
  900. padding: 24rpx;
  901. margin-bottom: 20rpx;
  902. display: flex;
  903. flex-direction: column;
  904. }
  905. .pm-grid-item.half {
  906. width: 48%;
  907. box-sizing: border-box;
  908. }
  909. .pm-grid-item.full {
  910. width: 100%;
  911. box-sizing: border-box;
  912. }
  913. .pm-label {
  914. font-size: 24rpx;
  915. color: #999;
  916. margin-bottom: 10rpx;
  917. }
  918. .pm-val {
  919. font-size: 28rpx;
  920. color: #333;
  921. font-weight: 500;
  922. }
  923. .pm-tags {
  924. display: flex;
  925. flex-wrap: wrap;
  926. gap: 20rpx;
  927. margin-bottom: 40rpx;
  928. }
  929. .pm-tag {
  930. background-color: #FFF8EB;
  931. border: 2rpx solid #FFCC80;
  932. color: #FF9800;
  933. font-size: 22rpx;
  934. padding: 8rpx 24rpx;
  935. border-radius: 30rpx;
  936. }
  937. .pm-section-title {
  938. display: flex;
  939. align-items: center;
  940. margin-bottom: 30rpx;
  941. padding-top: 30rpx;
  942. border-top: 2rpx dashed #F0F0F0;
  943. }
  944. .pm-section-title .orange-bar {
  945. width: 8rpx;
  946. height: 32rpx;
  947. background-color: #FF9800;
  948. margin-right: 16rpx;
  949. border-radius: 4rpx;
  950. }
  951. .pm-section-title text {
  952. font-size: 30rpx;
  953. font-weight: bold;
  954. color: #333;
  955. }
  956. .pm-log-list {
  957. display: flex;
  958. flex-direction: column;
  959. }
  960. .pm-log-item {
  961. display: flex;
  962. flex-direction: column;
  963. padding: 24rpx 0;
  964. border-bottom: 1rpx solid #F0F0F0;
  965. }
  966. .pm-log-item:last-child {
  967. border-bottom: none;
  968. }
  969. .pm-log-date {
  970. font-size: 24rpx;
  971. color: #999;
  972. margin-bottom: 16rpx;
  973. }
  974. .pm-log-text {
  975. font-size: 28rpx;
  976. color: #333;
  977. line-height: 1.6;
  978. margin-bottom: 20rpx;
  979. }
  980. .pm-log-recorder {
  981. font-size: 24rpx;
  982. color: #FF9800;
  983. align-self: flex-end;
  984. }
  985. /* 拒绝接单弹窗输入框 */
  986. .reject-textarea {
  987. width: 100%;
  988. height: 200rpx;
  989. background-color: #F8F8F8;
  990. border-radius: 12rpx;
  991. padding: 24rpx;
  992. font-size: 28rpx;
  993. line-height: 1.5;
  994. box-sizing: border-box;
  995. margin-bottom: 20rpx;
  996. }
  997. .mt-30 {
  998. margin-top: 30rpx;
  999. }
  1000. /* 宠物档案底部关闭按钮 */
  1001. .pm-bottom-close {
  1002. width: 100%;
  1003. height: 80rpx;
  1004. line-height: 80rpx;
  1005. background-color: #F5F5F5;
  1006. color: #666;
  1007. border-radius: 40rpx;
  1008. font-size: 30rpx;
  1009. font-weight: bold;
  1010. margin: 0;
  1011. }
  1012. .pm-bottom-close::after {
  1013. border: none;
  1014. }
  1015. /* 宠物档案原生关闭图标 */
  1016. .close-icon-btn {
  1017. font-size: 48rpx;
  1018. color: #999;
  1019. line-height: 1;
  1020. padding: 0 10rpx;
  1021. }
  1022. /* 确认接单弹窗内容 */
  1023. .modal-content-box {
  1024. display: flex;
  1025. flex-direction: column;
  1026. align-items: center;
  1027. margin-bottom: 20rpx;
  1028. }
  1029. .modal-content-main {
  1030. font-size: 30rpx;
  1031. color: #333;
  1032. margin-bottom: 16rpx;
  1033. }
  1034. .modal-content-sub {
  1035. font-size: 24rpx;
  1036. color: #999;
  1037. }
  1038. /* 地图导航 Action Sheet */
  1039. .nav-modal-mask {
  1040. position: fixed;
  1041. top: 0;
  1042. left: 0;
  1043. right: 0;
  1044. bottom: 0;
  1045. background-color: rgba(0, 0, 0, 0.5);
  1046. z-index: 1000;
  1047. display: flex;
  1048. flex-direction: column;
  1049. justify-content: flex-end;
  1050. }
  1051. .nav-action-sheet {
  1052. background-color: #fff;
  1053. width: 100%;
  1054. border-top-left-radius: 24rpx;
  1055. border-top-right-radius: 24rpx;
  1056. overflow: hidden;
  1057. padding-bottom: constant(safe-area-inset-bottom);
  1058. padding-bottom: env(safe-area-inset-bottom);
  1059. }
  1060. .nav-sheet-title {
  1061. text-align: center;
  1062. padding: 30rpx 0;
  1063. font-size: 13px;
  1064. color: #999;
  1065. border-bottom: 1rpx solid #efefef;
  1066. }
  1067. .nav-sheet-item {
  1068. text-align: center;
  1069. padding: 30rpx 0;
  1070. font-size: 13px;
  1071. color: #333;
  1072. background-color: #fff;
  1073. border-bottom: 1rpx solid #efefef;
  1074. }
  1075. .nav-sheet-item.cancel {
  1076. border-bottom: none;
  1077. color: #666;
  1078. }
  1079. .nav-sheet-gap {
  1080. height: 16rpx;
  1081. background-color: #F8F8F8;
  1082. }