style.css 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. /* 页面背景 */
  2. page {
  3. background-color: #F5F6F8;
  4. }
  5. .container {
  6. padding: 20rpx;
  7. /* 底部留白给按钮 */
  8. }
  9. /* 卡片通用样式 */
  10. .card {
  11. background-color: #fff;
  12. border-radius: 20rpx;
  13. padding: 30rpx;
  14. margin-bottom: 20rpx;
  15. }
  16. /* 表单行 */
  17. .form-item {
  18. display: flex;
  19. align-items: center;
  20. margin-bottom: 30rpx;
  21. }
  22. .form-item:last-child {
  23. margin-bottom: 0;
  24. }
  25. /* 标签宽度固定 */
  26. .label {
  27. width: 120rpx;
  28. font-size: 30rpx;
  29. font-weight: bold;
  30. color: #333;
  31. margin-right: 20rpx;
  32. flex-shrink: 0;
  33. }
  34. /* 灰色输入框容器 */
  35. .input-box {
  36. flex: 1;
  37. height: 80rpx;
  38. background-color: #F8F8F8;
  39. /* 灰色背景 */
  40. border-radius: 8rpx;
  41. display: flex;
  42. align-items: center;
  43. padding: 0 20rpx;
  44. font-size: 28rpx;
  45. color: #333;
  46. }
  47. .input {
  48. flex: 1;
  49. height: 100%;
  50. font-size: 28rpx;
  51. }
  52. /* 特殊样式: 手机号前缀 */
  53. .prefix-area {
  54. display: flex;
  55. align-items: center;
  56. margin-right: 20rpx;
  57. height: 100%;
  58. /* 确保高度撑满 */
  59. }
  60. .prefix {
  61. color: #333;
  62. margin-right: 5rpx;
  63. }
  64. .arrow-down {
  65. font-size: 20rpx;
  66. color: #999;
  67. line-height: 1;
  68. /* 消除行高影响 */
  69. }
  70. /* 特殊样式: 获取验证码 */
  71. .get-code-text {
  72. color: #FF5722;
  73. font-size: 28rpx;
  74. font-weight: bold;
  75. margin-left: 20rpx;
  76. }
  77. /* 特殊样式: 性别单选 */
  78. .gender-group {
  79. display: flex;
  80. align-items: center;
  81. }
  82. .radio-item {
  83. display: flex;
  84. align-items: center;
  85. margin-right: 40rpx;
  86. font-size: 30rpx;
  87. color: #333;
  88. }
  89. .radio-icon {
  90. margin-right: 10rpx;
  91. font-size: 32rpx;
  92. color: #ccc;
  93. /* 默认灰色 */
  94. }
  95. .radio-icon.active {
  96. color: #FF5722;
  97. /* 选中橙色 */
  98. }
  99. .radio-label.active {
  100. color: #FF5722;
  101. font-weight: bold;
  102. }
  103. /* 特殊样式: 箭头与图标 */
  104. .arrow-right {
  105. color: #ccc;
  106. font-size: 24rpx;
  107. margin-left: auto;
  108. /* 推到最右 */
  109. }
  110. .eye-icon {
  111. padding: 10rpx;
  112. color: #ccc;
  113. }
  114. /* 服务类型区域 */
  115. .section-title {
  116. font-size: 30rpx;
  117. font-weight: bold;
  118. color: #333;
  119. margin-bottom: 20rpx;
  120. }
  121. .service-types {
  122. display: flex;
  123. flex-wrap: wrap;
  124. gap: 20rpx;
  125. margin-bottom: 30rpx;
  126. }
  127. .type-btn {
  128. width: calc((100% - 40rpx) / 3);
  129. /* 每行3个,间距20rpx */
  130. height: 80rpx;
  131. background-color: #F8F8F8;
  132. border-radius: 8rpx;
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. font-size: 28rpx;
  137. color: #333;
  138. font-weight: 500;
  139. }
  140. .type-btn.selected {
  141. background-color: #FFF3E0;
  142. /* 浅橙背景 */
  143. color: #FF5722;
  144. font-weight: bold;
  145. }
  146. /* 底部操作区 (非固定) */
  147. .footer-actions {
  148. margin-top: 40rpx;
  149. padding: 0 10rpx;
  150. padding-bottom: 60rpx;
  151. /* 底部留白 */
  152. }
  153. /* 底部协议 */
  154. .agreement-row {
  155. display: flex;
  156. align-items: center;
  157. margin-bottom: 30rpx;
  158. /* 增加间距 */
  159. }
  160. .checkbox {
  161. width: 32rpx;
  162. height: 32rpx;
  163. border: 2rpx solid #ccc;
  164. border-radius: 4rpx;
  165. margin-right: 15rpx;
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. }
  170. .checkbox.checked {
  171. border-color: #FF5722;
  172. background-color: #FF5722;
  173. }
  174. .check-mark {
  175. color: #fff;
  176. font-size: 22rpx;
  177. }
  178. .agree-text {
  179. font-size: 26rpx;
  180. color: #999;
  181. }
  182. /* 底部按钮 */
  183. .footer-btn-area {
  184. width: 100%;
  185. margin-top: 40rpx;
  186. /* 增加上间距 */
  187. }
  188. .submit-btn {
  189. background: linear-gradient(90deg, #FF6F00 0%, #FF5722 100%);
  190. color: #fff;
  191. font-size: 28rpx;
  192. /* 14号字体 */
  193. font-weight: bold;
  194. height: 90rpx;
  195. line-height: 90rpx;
  196. border-radius: 45rpx;
  197. box-shadow: 0 10rpx 20rpx rgba(255, 87, 34, 0.2);
  198. }
  199. .submit-btn::after {
  200. border: none;
  201. }
  202. /* 自定义日期选择器弹窗 */
  203. .picker-mask {
  204. position: fixed;
  205. top: 0;
  206. left: 0;
  207. right: 0;
  208. bottom: 0;
  209. background-color: rgba(0, 0, 0, 0.5);
  210. z-index: 999;
  211. visibility: hidden;
  212. opacity: 0;
  213. transition: all 0.3s;
  214. }
  215. .picker-mask.show {
  216. visibility: visible;
  217. opacity: 1;
  218. }
  219. .picker-content {
  220. position: absolute;
  221. bottom: 0;
  222. left: 0;
  223. width: 100%;
  224. background-color: #fff;
  225. border-radius: 20rpx 20rpx 0 0;
  226. transform: translateY(100%);
  227. transition: all 0.3s;
  228. }
  229. .picker-mask.show .picker-content {
  230. transform: translateY(0);
  231. }
  232. .picker-header {
  233. display: flex;
  234. justify-content: space-between;
  235. align-items: center;
  236. padding: 30rpx;
  237. border-bottom: 1px solid #eee;
  238. font-size: 32rpx;
  239. }
  240. .picker-btn-cancel {
  241. color: #999;
  242. }
  243. .picker-title {
  244. font-weight: bold;
  245. color: #333;
  246. }
  247. .picker-btn-confirm {
  248. color: #FF5722;
  249. font-weight: bold;
  250. }
  251. .picker-view {
  252. width: 100%;
  253. height: 400rpx;
  254. }
  255. .picker-item {
  256. line-height: 50px;
  257. /* picker-view-column 默认高度需要配合 */
  258. text-align: center;
  259. font-size: 32rpx;
  260. color: #333;
  261. }
  262. /* 猴子图标样式 (复用 eye-icon 容器) */
  263. .monkey-icon {
  264. padding: 10rpx;
  265. display: flex;
  266. align-items: center;
  267. justify-content: center;
  268. }
  269. .svg-icon {
  270. width: 40rpx;
  271. height: 40rpx;
  272. }
  273. /* 弹窗通用列表 (覆盖) */
  274. .picker-content {
  275. height: 800rpx;
  276. /* 增加高度以容纳层级 */
  277. display: flex;
  278. flex-direction: column;
  279. }
  280. .picker-body {
  281. flex: 1;
  282. display: flex;
  283. overflow: hidden;
  284. padding: 0 30rpx 30rpx;
  285. }
  286. /* 左侧:已选路径垂直时间轴 */
  287. .timeline-area {
  288. width: 200rpx;
  289. border-right: 1px solid #f5f5f5;
  290. padding-right: 20rpx;
  291. display: flex;
  292. flex-direction: column;
  293. }
  294. .timeline-item {
  295. position: relative;
  296. padding-bottom: 40rpx;
  297. padding-left: 30rpx;
  298. color: #333;
  299. font-size: 28rpx;
  300. }
  301. .timeline-item:last-child {
  302. padding-bottom: 0;
  303. }
  304. .timeline-dot {
  305. position: absolute;
  306. left: 0;
  307. top: 12rpx;
  308. width: 14rpx;
  309. height: 14rpx;
  310. border-radius: 50%;
  311. background-color: #eee;
  312. }
  313. .timeline-item.active .timeline-dot {
  314. background-color: #FF5722;
  315. box-shadow: 0 0 0 4rpx rgba(255, 87, 34, 0.2);
  316. }
  317. .timeline-item.active {
  318. font-weight: bold;
  319. color: #FF5722;
  320. }
  321. /* 虚线连接 (除最后一个外的点都有线) */
  322. .timeline-item:not(:last-child)::after {
  323. content: '';
  324. position: absolute;
  325. left: 6rpx;
  326. top: 30rpx;
  327. bottom: -10rpx;
  328. width: 2rpx;
  329. background-color: #f0f0f0;
  330. }
  331. /* 右侧:待选列表 */
  332. .list-area {
  333. flex: 1;
  334. padding-left: 30rpx;
  335. overflow-y: auto;
  336. }
  337. .list-item {
  338. padding: 24rpx 0;
  339. border-bottom: 1px solid #f9f9f9;
  340. font-size: 28rpx;
  341. color: #666;
  342. }
  343. .list-item:active {
  344. background-color: #f5f5f5;
  345. }
  346. /* 弹窗通用列表 */
  347. .picker-list {
  348. max-height: 600rpx;
  349. overflow-y: auto;
  350. padding: 20rpx 0;
  351. }
  352. /* 城市选择项 (仿图1) */
  353. .city-item {
  354. display: flex;
  355. align-items: center;
  356. padding: 24rpx 40rpx;
  357. font-size: 30rpx;
  358. color: #333;
  359. }
  360. .city-item.active {
  361. color: #FF5722;
  362. font-weight: bold;
  363. }
  364. .dot-radio {
  365. width: 16rpx;
  366. height: 16rpx;
  367. border-radius: 50%;
  368. background-color: #eee;
  369. margin-right: 20rpx;
  370. position: relative;
  371. }
  372. .city-item.active .dot-radio {
  373. background-color: #FF5722;
  374. box-shadow: 0 0 0 6rpx rgba(255, 87, 34, 0.2);
  375. }
  376. /* 站点选择项 (仿图2) */
  377. .station-item {
  378. padding: 30rpx 40rpx;
  379. font-size: 30rpx;
  380. color: #333;
  381. border-bottom: 1px solid #f9f9f9;
  382. }
  383. .station-item:last-child {
  384. border-bottom: none;
  385. }