index.css 22 KB

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