form.css 8.7 KB

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