style.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. /* 页面容器 */
  2. .container {
  3. height: 100vh;
  4. /* 强制全屏高度 */
  5. overflow: hidden;
  6. /* 禁止溢出滚动 */
  7. background-color: #fff;
  8. position: relative;
  9. display: flex;
  10. flex-direction: column;
  11. }
  12. /* 顶部 Banner */
  13. .banner-area {
  14. width: 100%;
  15. position: relative;
  16. /* 移除高度限制,依靠 content-card 的 margin-top 控制遮挡 */
  17. }
  18. .banner-img {
  19. width: 100%;
  20. display: block;
  21. /* 消除图片底部空隙 */
  22. }
  23. /* 内容卡片 - 核心布局技巧 */
  24. .content-card {
  25. flex: 1;
  26. background-color: #fff;
  27. margin-top: -80rpx;
  28. /* 向上覆盖 banner,形成遮挡 */
  29. /* 实现向上凸起的圆弧效果: 使用 border-radius 实现顶部椭圆 */
  30. border-radius: 100% 100% 0 0 / 60rpx 60rpx 0 0;
  31. position: relative;
  32. z-index: 10;
  33. padding: 0 50rpx;
  34. display: flex;
  35. flex-direction: column;
  36. align-items: center;
  37. }
  38. /* 悬浮 Logo */
  39. .logo-wrapper {
  40. margin-top: -70rpx;
  41. /* Logo 向上悬浮 */
  42. margin-bottom: 50rpx;
  43. /* 添加白色光晕/阴影增强悬浮感 */
  44. border-radius: 50%;
  45. box-shadow: 0 10rpx 40rpx rgba(0, 0, 0, 0.1);
  46. background-color: #fff;
  47. padding: 8rpx;
  48. /* 白色边框 */
  49. }
  50. .logo-img {
  51. width: 120rpx;
  52. height: 120rpx;
  53. border-radius: 50%;
  54. display: block;
  55. }
  56. /* Tabs */
  57. .tabs {
  58. display: flex;
  59. align-items: center;
  60. margin-bottom: 60rpx;
  61. }
  62. .tab-item {
  63. display: flex;
  64. flex-direction: column;
  65. align-items: center;
  66. padding: 0 30rpx;
  67. }
  68. .tab-text {
  69. font-size: 32rpx;
  70. color: #999;
  71. font-weight: 500;
  72. margin-bottom: 10rpx;
  73. }
  74. .tab-item.active .tab-text {
  75. color: #FF5722;
  76. /* 主色调橙色 */
  77. font-weight: bold;
  78. font-size: 36rpx;
  79. }
  80. .tab-indicator {
  81. width: 40rpx;
  82. height: 6rpx;
  83. background-color: #FF5722;
  84. border-radius: 3rpx;
  85. }
  86. .divider {
  87. width: 1px;
  88. height: 30rpx;
  89. background-color: #eee;
  90. margin: 0 10rpx;
  91. }
  92. /* 表单 */
  93. .form-area {
  94. width: 100%;
  95. }
  96. .input-group {
  97. display: flex;
  98. align-items: center;
  99. border-bottom: 1px solid #f0f0f0;
  100. padding: 30rpx 0;
  101. margin-bottom: 20rpx;
  102. }
  103. .area-code {
  104. display: flex;
  105. align-items: center;
  106. margin-right: 20rpx;
  107. font-size: 32rpx;
  108. color: #333;
  109. height: 100%;
  110. /* 确保高度撑满 */
  111. }
  112. .arrow {
  113. font-size: 20rpx;
  114. color: #999;
  115. margin-left: 8rpx;
  116. /* margin-top: 4rpx; 移除微调,依靠 flex 居中 */
  117. }
  118. .input {
  119. flex: 1;
  120. font-size: 30rpx;
  121. }
  122. .get-code-btn {
  123. background-color: #FFF0E9;
  124. /* 浅橙色背景 */
  125. padding: 15rpx 30rpx;
  126. /* 增大内边距 */
  127. border-radius: 40rpx;
  128. /* 稍微增大圆角 */
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. }
  133. .code-text {
  134. color: #FF5722;
  135. font-size: 28rpx;
  136. /* 增大字体 */
  137. line-height: 1;
  138. /* 修正文字垂直居中 */
  139. }
  140. .eye-icon {
  141. padding: 10rpx;
  142. display: flex;
  143. align-items: center;
  144. justify-content: center;
  145. }
  146. .svg-icon {
  147. width: 40rpx;
  148. height: 40rpx;
  149. }
  150. .forgot-pwd {
  151. width: 100%;
  152. text-align: right;
  153. padding-top: 20rpx;
  154. font-size: 26rpx;
  155. color: #666;
  156. }
  157. /* 按钮 */
  158. .login-btn {
  159. /* 鲜亮的橙色渐变 */
  160. background: linear-gradient(90deg, #FF9E60 0%, #FF5722 100%);
  161. color: #fff;
  162. border-radius: 50rpx;
  163. margin-top: 60rpx;
  164. margin-bottom: 40rpx;
  165. font-size: 34rpx;
  166. font-weight: bold;
  167. box-shadow: 0 10rpx 30rpx rgba(255, 87, 34, 0.35);
  168. /* 增强投影 */
  169. }
  170. .login-btn::after {
  171. border: none;
  172. }
  173. /* 协议 */
  174. .agreement {
  175. display: flex;
  176. align-items: center;
  177. /* 改为居中对齐,如果文字换行可能需要改为 flex-start 并调整 margin-top */
  178. justify-content: center;
  179. }
  180. .checkbox {
  181. width: 32rpx;
  182. height: 32rpx;
  183. border: 2rpx solid #ccc;
  184. border-radius: 50%;
  185. margin-right: 12rpx;
  186. /* margin-top: 4rpx; 移除顶部 margin,由 align-items: center 控制 */
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. }
  191. .checkbox.checked {
  192. border-color: #FF5722;
  193. background-color: #FF5722;
  194. }
  195. .check-mark {
  196. color: #fff;
  197. font-size: 22rpx;
  198. line-height: 1;
  199. /* 确保勾选符号居中 */
  200. }
  201. .agree-text {
  202. font-size: 24rpx;
  203. color: #999;
  204. line-height: 1.5;
  205. }
  206. .link {
  207. color: #666;
  208. }
  209. /* 底部招募 */
  210. .footer-recruit {
  211. margin-top: auto;
  212. padding-bottom: 80rpx;
  213. /* 增加底部距离 */
  214. width: 100%;
  215. display: flex;
  216. justify-content: center;
  217. }
  218. .recruit-badge {
  219. display: flex;
  220. align-items: center;
  221. padding: 20rpx 50rpx;
  222. background-color: #fff;
  223. /* 白色背景 */
  224. border: 1px solid #FF5722;
  225. /* 橙色边框 */
  226. border-radius: 60rpx;
  227. /* 胶囊圆角 */
  228. color: #FF5722;
  229. /* 橙色文字 */
  230. font-size: 28rpx;
  231. font-weight: bold;
  232. box-shadow: 0 5rpx 15rpx rgba(255, 87, 34, 0.2);
  233. /* 橙色阴影 */
  234. }
  235. .flag-icon {
  236. margin-right: 15rpx;
  237. font-size: 28rpx;
  238. color: #FF5722;
  239. }
  240. /* 弹窗样式 */
  241. .modal-mask {
  242. position: fixed;
  243. top: 0;
  244. left: 0;
  245. right: 0;
  246. bottom: 0;
  247. background-color: rgba(0, 0, 0, 0.5);
  248. z-index: 999;
  249. display: flex;
  250. align-items: center;
  251. justify-content: center;
  252. }
  253. .modal-content {
  254. width: 600rpx;
  255. background-color: #fff;
  256. border-radius: 20rpx;
  257. overflow: hidden;
  258. display: flex;
  259. flex-direction: column;
  260. max-height: 70vh;
  261. }
  262. .modal-header {
  263. padding: 30rpx;
  264. text-align: center;
  265. border-bottom: 1px solid #eee;
  266. }
  267. .modal-title {
  268. font-size: 32rpx;
  269. font-weight: bold;
  270. }
  271. .modal-body {
  272. padding: 30rpx;
  273. flex: 1;
  274. overflow-y: auto;
  275. }
  276. .modal-text {
  277. font-size: 28rpx;
  278. color: #666;
  279. line-height: 1.6;
  280. }
  281. .modal-footer {
  282. padding: 20rpx 30rpx 30rpx;
  283. }
  284. .confirm-btn {
  285. background-color: #FF5722;
  286. color: #fff;
  287. font-size: 30rpx;
  288. border-radius: 40rpx;
  289. }