index.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. .custom-tabbar[data-v-52454e90] {
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 50px;
  7. background-color: #ffffff;
  8. display: flex;
  9. flex-direction: column;
  10. z-index: 999;
  11. padding-bottom: env(safe-area-inset-bottom);
  12. }
  13. .tabbar-border[data-v-52454e90] {
  14. height: 1px;
  15. background-color: rgba(0, 0, 0, 0.1);
  16. transform: scaleY(0.5);
  17. }
  18. .tabbar-list[data-v-52454e90] {
  19. display: flex;
  20. flex: 1;
  21. align-items: center;
  22. justify-content: space-around;
  23. }
  24. .tabbar-item[data-v-52454e90] {
  25. display: flex;
  26. flex-direction: column;
  27. align-items: center;
  28. justify-content: center;
  29. height: 100%;
  30. flex: 1;
  31. }
  32. .tabbar-icon[data-v-52454e90] {
  33. width: 24px;
  34. height: 24px;
  35. margin-bottom: 2px;
  36. }
  37. .tabbar-text[data-v-52454e90] {
  38. font-size: 10px;
  39. color: #999999;
  40. }
  41. .tabbar-text-active[data-v-52454e90] {
  42. color: #FF5722;
  43. }
  44. /* 页面背景 */
  45. body {
  46. background-color: #F8F8F8;
  47. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  48. }
  49. .container {
  50. padding-bottom: 0.9375rem;
  51. position: relative;
  52. overflow-x: hidden;
  53. }
  54. /* 顶部背景 */
  55. .nav-bg {
  56. position: absolute;
  57. top: 0;
  58. left: 0;
  59. width: 100%;
  60. /* 增加高度以覆盖顶部,确保上移后背景仍然充足 */
  61. height: 17.1875rem;
  62. /* 调整渐变色,使其更接近设计图的暖色调 */
  63. background: linear-gradient(180deg, #FFE0B2 0%, #F8F8F8 100%);
  64. z-index: 1;
  65. overflow: hidden;
  66. border-bottom-left-radius: 1.875rem;
  67. border-bottom-right-radius: 1.875rem;
  68. }
  69. /* 装饰性圆球 - 加深颜色 */
  70. .bg-circle-1 {
  71. position: absolute;
  72. top: -1.875rem;
  73. right: -1.875rem;
  74. width: 10rem;
  75. height: 10rem;
  76. /* 加深颜色 */
  77. background: radial-gradient(circle, rgba(255, 167, 38, 0.4) 0%, rgba(255, 167, 38, 0) 70%);
  78. border-radius: 50%;
  79. }
  80. .bg-circle-2 {
  81. position: absolute;
  82. top: 2.5rem;
  83. left: -3.125rem;
  84. width: 13.125rem;
  85. height: 13.125rem;
  86. /* 加深颜色 */
  87. background: radial-gradient(circle, rgba(255, 183, 77, 0.4) 0%, rgba(255, 183, 77, 0) 70%);
  88. border-radius: 50%;
  89. }
  90. /* 头部区域 */
  91. .header-section {
  92. position: relative;
  93. z-index: 2;
  94. padding: 1.875rem 0.9375rem 0;
  95. }
  96. .title-bar {
  97. text-align: center;
  98. font-size: 1rem;
  99. /* 16pt = 32rpx, consistent with name */
  100. font-weight: 500;
  101. color: #333;
  102. margin-bottom: 0.9375rem;
  103. }
  104. .user-card {
  105. display: flex;
  106. align-items: flex-start;
  107. margin-bottom: 0.9375rem;
  108. position: relative;
  109. }
  110. .avatar {
  111. width: 2.8125rem;
  112. height: 2.8125rem;
  113. border-radius: 50%;
  114. margin-right: 0.625rem;
  115. border: 0.09375rem solid #fff;
  116. box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.05);
  117. }
  118. .info-content {
  119. flex: 1;
  120. padding-top: 0.15625rem;
  121. }
  122. .name-row {
  123. display: flex;
  124. align-items: center;
  125. margin-bottom: 0.375rem;
  126. }
  127. .name {
  128. /* 16号字体 = 32rpx */
  129. font-size: 1rem;
  130. font-weight: bold;
  131. color: #1A1A1A;
  132. margin-right: 0.375rem;
  133. }
  134. .tags {
  135. display: flex;
  136. align-items: center;
  137. }
  138. .tag {
  139. font-size: 0.5625rem;
  140. padding: 0.0625rem 0.1875rem;
  141. border-radius: 0.125rem;
  142. margin-right: 0.25rem;
  143. line-height: 1.2;
  144. }
  145. .tag.green {
  146. color: #4CAF50;
  147. background-color: #E8F5E9;
  148. border: 1px solid #C8E6C9;
  149. }
  150. .tag.blue {
  151. color: #2196F3;
  152. background-color: #E3F2FD;
  153. border: 1px solid #BBDEFB;
  154. }
  155. .bike-icon {
  156. width: 0.875rem;
  157. height: 0.875rem;
  158. background-color: #FFF3E0;
  159. border-radius: 0.125rem;
  160. padding: 0.0625rem;
  161. }
  162. .detail-row {
  163. display: flex;
  164. align-items: center;
  165. /* 12号字体 = 24rpx */
  166. font-size: 0.75rem;
  167. color: #666;
  168. margin-bottom: 0.25rem;
  169. }
  170. .small-icon {
  171. width: 0.75rem;
  172. /* Slightly increase icon to match font */
  173. height: 0.75rem;
  174. margin-right: 0.25rem;
  175. }
  176. .settings-icon {
  177. width: 1.125rem;
  178. height: 1.125rem;
  179. position: absolute;
  180. top: 0;
  181. right: 0;
  182. }
  183. /* VIP 卡片 - 独立卡片样式 */
  184. .vip-card {
  185. border-radius: 0.625rem;
  186. padding: 0.625rem 0.9375rem;
  187. display: flex;
  188. justify-content: space-between;
  189. align-items: center;
  190. color: #FDD835;
  191. background: linear-gradient(90deg, #1f1f1f 0%, #141414 100%);
  192. box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  193. margin-bottom: 0.9375rem;
  194. position: relative;
  195. }
  196. .vip-left {
  197. display: flex;
  198. align-items: center;
  199. }
  200. .vip-icon {
  201. width: 1.25rem;
  202. height: 1.25rem;
  203. margin-right: 0.5rem;
  204. }
  205. .vip-text {
  206. display: flex;
  207. flex-direction: column;
  208. }
  209. .vip-title {
  210. font-size: 0.8125rem;
  211. font-weight: bold;
  212. color: #FFE082;
  213. margin-bottom: 0.125rem;
  214. }
  215. .vip-desc {
  216. font-size: 0.5rem;
  217. color: #9E9E9E;
  218. }
  219. .vip-btn {
  220. font-size: 0.625rem;
  221. color: #FFE082;
  222. display: flex;
  223. /* Flex layout to align text and icon */
  224. align-items: center;
  225. }
  226. /* 统计面板 */
  227. .stats-panel {
  228. background-color: #fff;
  229. border-radius: 0.625rem;
  230. padding: 0.9375rem 0;
  231. margin: 0 0.9375rem 0.9375rem;
  232. display: flex;
  233. justify-content: space-between;
  234. align-items: center;
  235. box-shadow: 0 0.15625rem 0.46875rem rgba(0, 0, 0, 0.03);
  236. position: relative;
  237. z-index: 3;
  238. }
  239. .stat-item {
  240. flex: 1;
  241. display: flex;
  242. flex-direction: column;
  243. padding-left: 0.9375rem;
  244. }
  245. .stat-header {
  246. display: flex;
  247. align-items: center;
  248. margin-bottom: 0.375rem;
  249. /* 12号字体 = 24rpx */
  250. font-size: 0.75rem;
  251. color: #333;
  252. font-weight: normal;
  253. }
  254. .arrow-icon {
  255. width: 0.625rem;
  256. height: 0.625rem;
  257. margin-left: 0.1875rem;
  258. opacity: 0.6;
  259. }
  260. .arrow-icon-small {
  261. width: 0.5625rem;
  262. height: 0.5625rem;
  263. margin-left: 0.125rem;
  264. opacity: 0.8;
  265. }
  266. .red-bar,
  267. .green-bar,
  268. .orange-bar {
  269. width: 0.1875rem;
  270. height: 0.5625rem;
  271. margin-right: 0.3125rem;
  272. border-radius: 0.09375rem;
  273. }
  274. .red-bar {
  275. background-color: #FF5252;
  276. }
  277. .green-bar {
  278. background-color: #4CAF50;
  279. }
  280. .orange-bar {
  281. background-color: #FF9800;
  282. }
  283. .stat-value {
  284. margin-bottom: 0.1875rem;
  285. display: flex;
  286. align-items: baseline;
  287. }
  288. .num {
  289. /* 16号字体 = 32rpx */
  290. font-size: 1rem;
  291. font-weight: bold;
  292. color: #333;
  293. margin-right: 0.1875rem;
  294. line-height: 1;
  295. }
  296. .unit {
  297. font-size: 0.625rem;
  298. color: #666;
  299. }
  300. .sub-text {
  301. font-size: 0.5625rem;
  302. color: #999;
  303. }
  304. .divider {
  305. width: 1px;
  306. height: 1.5625rem;
  307. background-color: #E0E0E0;
  308. }
  309. /* 菜单列表 */
  310. .menu-list {
  311. background-color: #fff;
  312. border-radius: 0.625rem;
  313. margin: 0 0.9375rem 0.9375rem;
  314. padding: 0 0.9375rem;
  315. box-shadow: 0 0.15625rem 0.46875rem rgba(0, 0, 0, 0.03);
  316. }
  317. .menu-item {
  318. display: flex;
  319. align-items: center;
  320. padding: 1rem 0;
  321. border-bottom: 1px solid #F5F5F5;
  322. }
  323. .menu-item:last-child {
  324. border-bottom: none;
  325. }
  326. .menu-icon {
  327. width: 1.25rem;
  328. height: 1.25rem;
  329. margin-right: 0.625rem;
  330. }
  331. .menu-text {
  332. flex: 1;
  333. /* 14号字体 = 28rpx */
  334. font-size: 0.875rem;
  335. color: #333;
  336. }
  337. .menu-right {
  338. display: flex;
  339. align-items: center;
  340. }
  341. /* 加大菜单列表的箭头 */
  342. .menu-item .arrow-icon {
  343. width: 0.875rem;
  344. height: 0.875rem;
  345. opacity: 0.5;
  346. }
  347. .red-dot {
  348. width: 0.3125rem;
  349. height: 0.3125rem;
  350. background-color: #FF5252;
  351. border-radius: 50%;
  352. margin-right: 0.375rem;
  353. }
  354. /* 退出按钮 */
  355. .logout-btn {
  356. background-color: #fff;
  357. margin: 0 0.9375rem;
  358. height: 2.75rem;
  359. line-height: 2.75rem;
  360. text-align: center;
  361. border-radius: 0.625rem;
  362. color: #FF5252;
  363. font-size: 0.875rem;
  364. font-weight: 500;
  365. box-shadow: 0 0.15625rem 0.46875rem rgba(0, 0, 0, 0.03);
  366. }
  367. /* 联系客服弹窗样式 */
  368. .service-popup-mask {
  369. position: fixed;
  370. top: 0;
  371. left: 0;
  372. right: 0;
  373. bottom: 0;
  374. background-color: rgba(0, 0, 0, 0.5);
  375. z-index: 999;
  376. display: flex;
  377. justify-content: center;
  378. align-items: center;
  379. }
  380. .service-popup {
  381. width: 18.75rem;
  382. background-color: #fff;
  383. border-radius: 0.5rem;
  384. padding: 0;
  385. box-sizing: border-box;
  386. overflow: hidden;
  387. }
  388. .service-header {
  389. display: flex;
  390. justify-content: space-between;
  391. align-items: center;
  392. padding: 0.9375rem;
  393. border-bottom: 0.03125rem solid #f5f5f5;
  394. }
  395. .service-title {
  396. /* 14号字体 = 28rpx,不加粗 */
  397. font-size: 0.875rem;
  398. font-weight: normal;
  399. color: #333;
  400. }
  401. .close-icon {
  402. width: 0.875rem;
  403. height: 0.875rem;
  404. opacity: 0.6;
  405. }
  406. .qr-section {
  407. display: flex;
  408. flex-direction: column;
  409. align-items: center;
  410. padding: 1.25rem 0;
  411. background-color: #fff;
  412. }
  413. .qr-title {
  414. font-size: 0.875rem;
  415. color: #333;
  416. margin-bottom: 0.9375rem;
  417. font-weight: 500;
  418. }
  419. .qr-img {
  420. width: 6.25rem;
  421. height: 6.25rem;
  422. margin-bottom: 0.625rem;
  423. border-radius: 0.375rem;
  424. box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
  425. }
  426. .qr-desc {
  427. /* 12号字体 = 24rpx */
  428. font-size: 0.75rem;
  429. color: #999;
  430. }
  431. .service-list {
  432. padding: 0 0.9375rem;
  433. padding-bottom: 0.9375rem;
  434. }
  435. .service-row {
  436. display: flex;
  437. align-items: center;
  438. padding: 0.9375rem 0;
  439. border-top: 0.03125rem solid #f5f5f5;
  440. }
  441. .service-row:last-child {
  442. border-bottom: none;
  443. }
  444. .service-row-icon {
  445. width: 1.75rem;
  446. height: 1.75rem;
  447. margin-right: 0.75rem;
  448. }
  449. .service-info {
  450. flex: 1;
  451. display: flex;
  452. flex-direction: column;
  453. }
  454. .service-name {
  455. /* 13号字体 = 26rpx */
  456. font-size: 0.8125rem;
  457. color: #333;
  458. margin-bottom: 0.125rem;
  459. font-weight: 500;
  460. }
  461. .service-desc {
  462. /* 12号字体 = 24rpx */
  463. font-size: 0.75rem;
  464. color: #999;
  465. }
  466. .call-btn {
  467. display: flex;
  468. align-items: center;
  469. justify-content: center;
  470. background-color: #E8F5E9;
  471. padding: 0.25rem 0.75rem;
  472. border-radius: 0.9375rem;
  473. height: 1.75rem;
  474. box-sizing: border-box;
  475. }
  476. .call-btn uni-text {
  477. font-size: 0.75rem;
  478. color: #4CAF50;
  479. margin-left: 0.25rem;
  480. font-weight: 500;
  481. }
  482. .phone-icon-small {
  483. width: 0.75rem;
  484. height: 0.75rem;
  485. }
  486. /* 退出登录弹窗样式 */
  487. .logout-popup-mask {
  488. position: fixed;
  489. top: 0;
  490. left: 0;
  491. right: 0;
  492. bottom: 0;
  493. background-color: rgba(0, 0, 0, 0.5);
  494. z-index: 999;
  495. display: flex;
  496. align-items: center;
  497. justify-content: center;
  498. opacity: 0;
  499. pointer-events: none;
  500. transition: opacity 0.3s;
  501. }
  502. .logout-popup-mask.show {
  503. opacity: 1;
  504. pointer-events: auto;
  505. }
  506. .popup-modal {
  507. width: 16.25rem;
  508. background-color: #fff;
  509. border-radius: 0.9375rem;
  510. padding: 1.875rem 1.25rem;
  511. display: flex;
  512. flex-direction: column;
  513. align-items: center;
  514. box-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.2);
  515. transform: scale(0.9);
  516. transition: transform 0.3s;
  517. }
  518. .logout-popup-mask.show .popup-modal {
  519. transform: scale(1);
  520. }
  521. .popup-icon-wrapper {
  522. width: 3.75rem;
  523. height: 3.75rem;
  524. background-color: #FFF3E0;
  525. border-radius: 50%;
  526. display: flex;
  527. align-items: center;
  528. justify-content: center;
  529. margin-bottom: 0.9375rem;
  530. }
  531. .popup-icon-large {
  532. width: 1.875rem;
  533. height: 1.875rem;
  534. }
  535. .popup-title {
  536. font-size: 1.0625rem;
  537. font-weight: bold;
  538. color: #333;
  539. margin-bottom: 0.625rem;
  540. }
  541. .popup-desc {
  542. font-size: 0.875rem;
  543. color: #666;
  544. text-align: center;
  545. line-height: 1.5;
  546. margin-bottom: 1.5625rem;
  547. }
  548. .popup-actions {
  549. display: flex;
  550. width: 100%;
  551. justify-content: space-between;
  552. }
  553. .popup-btn {
  554. flex: 1;
  555. height: 2.5rem;
  556. line-height: 2.5rem;
  557. text-align: center;
  558. font-size: 0.875rem;
  559. border-radius: 1.25rem;
  560. margin: 0 0.46875rem;
  561. }
  562. .popup-btn.cancel {
  563. background-color: #F5F5F5;
  564. color: #666;
  565. }
  566. .popup-btn.confirm {
  567. background-color: #FF9800;
  568. color: #fff;
  569. box-shadow: 0 0.125rem 0.375rem rgba(255, 152, 0, 0.3);
  570. }