index.wxss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. /** 首页量化查询界面样式 **/
  2. .page {
  3. height: 100vh;
  4. box-sizing: border-box;
  5. padding: 32rpx 32rpx 48rpx;
  6. background: #f5f6fb;
  7. }
  8. .page-title {
  9. margin-top: 8rpx;
  10. margin-bottom: 24rpx;
  11. text-align: center;
  12. font-size: 32rpx;
  13. font-weight: 700;
  14. color: #5d55e8;
  15. letter-spacing: 4rpx;
  16. }
  17. .card {
  18. background: #ffffff;
  19. border-radius: 24rpx;
  20. padding: 32rpx 32rpx 36rpx;
  21. box-shadow: 0 16rpx 40rpx rgba(37, 52, 94, 0.08);
  22. margin-bottom: 32rpx;
  23. position: relative; /* 确保下拉列表定位参照此元素 */
  24. }
  25. .search-card {
  26. margin-top: 16rpx;
  27. z-index: 10; /* 确保搜索卡片层级较高 */
  28. }
  29. .card-title {
  30. display: block;
  31. font-size: 32rpx;
  32. font-weight: 600;
  33. color: #222222;
  34. margin-bottom: 32rpx;
  35. }
  36. .search-row {
  37. display: flex;
  38. align-items: center;
  39. background: #f7f8fc;
  40. border-radius: 999rpx;
  41. padding: 0 8rpx 0 32rpx;
  42. height: 96rpx;
  43. box-sizing: border-box;
  44. }
  45. .search-input {
  46. flex: 1;
  47. font-size: 28rpx;
  48. color: #222222;
  49. }
  50. .search-placeholder {
  51. color: #b4b8c6;
  52. }
  53. .search-button {
  54. width: 96rpx;
  55. height: 80rpx;
  56. margin-left: 12rpx;
  57. border-radius: 999rpx;
  58. background: linear-gradient(135deg, #5d55e8, #7568ff);
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. box-shadow: 0 12rpx 24rpx rgba(93, 85, 232, 0.4);
  63. }
  64. .icon-search {
  65. width: 0;
  66. height: 0;
  67. border-radius: 50%;
  68. border: 10rpx solid #ffffff;
  69. border-color: #ffffff transparent transparent transparent;
  70. position: relative;
  71. }
  72. .icon-search::after {
  73. content: '';
  74. position: absolute;
  75. width: 24rpx;
  76. height: 4rpx;
  77. border-radius: 999rpx;
  78. background: #ffffff;
  79. transform: rotate(45deg);
  80. right: -20rpx;
  81. bottom: -6rpx;
  82. }
  83. .search-tip {
  84. display: block;
  85. margin-top: 20rpx;
  86. font-size: 24rpx;
  87. color: #9ca2b5;
  88. }
  89. /* 下拉列表样式 */
  90. .search-dropdown {
  91. position: absolute;
  92. top: 180rpx; /* 根据标题和输入框高度估算 */
  93. left: 32rpx;
  94. right: 32rpx;
  95. background: #ffffff;
  96. border-radius: 16rpx;
  97. box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.15);
  98. max-height: 400rpx;
  99. overflow-y: auto;
  100. z-index: 999;
  101. border: 1rpx solid #f0f0f0;
  102. }
  103. .dropdown-item {
  104. padding: 24rpx 32rpx;
  105. border-bottom: 1rpx solid #f5f6fb;
  106. display: flex;
  107. justify-content: space-between;
  108. align-items: center;
  109. }
  110. .dropdown-item:last-child {
  111. border-bottom: none;
  112. }
  113. .dropdown-item-hover {
  114. background-color: #f7f8fc;
  115. }
  116. .item-name {
  117. font-size: 28rpx;
  118. color: #333;
  119. }
  120. .item-code {
  121. font-size: 24rpx;
  122. color: #999;
  123. }
  124. .result-card {
  125. margin-top: 8rpx;
  126. }
  127. .result-loading {
  128. font-size: 26rpx;
  129. color: #666a7f;
  130. }
  131. .result-error {
  132. font-size: 26rpx;
  133. color: #ff5b5b;
  134. }
  135. .detail-header {
  136. display: flex;
  137. justify-content: space-between;
  138. align-items: center;
  139. margin-bottom: 24rpx;
  140. }
  141. .detail-name {
  142. font-size: 30rpx;
  143. font-weight: 700;
  144. color: #1f1f2e;
  145. }
  146. .detail-sub {
  147. margin-top: 8rpx;
  148. font-size: 24rpx;
  149. color: #9da3b5;
  150. }
  151. .score-badge {
  152. min-width: 140rpx;
  153. padding: 12rpx 22rpx;
  154. border-radius: 20rpx;
  155. background: #f16565;
  156. color: #ffffff;
  157. font-size: 40rpx;
  158. font-weight: 700;
  159. text-align: right;
  160. box-shadow: 0 10rpx 24rpx rgba(241, 101, 101, 0.35);
  161. }
  162. .section {
  163. margin-top: 20rpx;
  164. }
  165. .section-title {
  166. font-size: 28rpx;
  167. font-weight: 700;
  168. color: #1f1f2e;
  169. margin-bottom: 16rpx;
  170. }
  171. .history-row {
  172. display: flex;
  173. align-items: center;
  174. justify-content: space-between;
  175. padding: 18rpx 0;
  176. border-bottom: 1rpx solid #f1f2f6;
  177. }
  178. .history-row:last-child {
  179. border-bottom: none;
  180. }
  181. .history-date {
  182. font-size: 26rpx;
  183. color: #3c4050;
  184. }
  185. .history-score {
  186. min-width: 96rpx;
  187. text-align: center;
  188. padding: 6rpx 18rpx;
  189. border-radius: 30rpx;
  190. font-size: 28rpx;
  191. font-weight: 700;
  192. color: #ffffff;
  193. }
  194. .tag-danger {
  195. background: #f16565;
  196. }
  197. .tag-success {
  198. background: #3abf81;
  199. }
  200. .tag-info {
  201. background: #4c86ff;
  202. }
  203. .history-note {
  204. display: block;
  205. margin-top: 12rpx;
  206. font-size: 22rpx;
  207. color: #9da3b5;
  208. }
  209. .factor-row {
  210. display: flex;
  211. align-items: center;
  212. justify-content: space-between;
  213. padding: 14rpx 0;
  214. }
  215. .factor-name {
  216. font-size: 26rpx;
  217. color: #3c4050;
  218. }
  219. .factor-score {
  220. font-size: 28rpx;
  221. font-weight: 600;
  222. color: #4c86ff;
  223. }
  224. .card-header {
  225. display: flex;
  226. align-items: center;
  227. margin-bottom: 24rpx;
  228. }
  229. .card-header-title {
  230. font-size: 30rpx;
  231. font-weight: 600;
  232. color: #222222;
  233. }
  234. .icon-circle {
  235. width: 40rpx;
  236. height: 40rpx;
  237. border-radius: 50%;
  238. background: #e7f7ef;
  239. display: flex;
  240. align-items: center;
  241. justify-content: center;
  242. margin-right: 16rpx;
  243. }
  244. .icon-check {
  245. font-size: 24rpx;
  246. color: #28a745;
  247. }
  248. .advantage-item {
  249. margin-bottom: 12rpx;
  250. font-size: 26rpx;
  251. line-height: 1.6;
  252. color: #4a4f63;
  253. }
  254. .advantage-label {
  255. font-weight: 600;
  256. }
  257. .advantage-desc {
  258. font-weight: 400;
  259. }
  260. .risk-card {
  261. margin-bottom: 24rpx;
  262. }
  263. .icon-warning {
  264. width: 40rpx;
  265. height: 40rpx;
  266. border-radius: 50%;
  267. background: #ffecef;
  268. display: flex;
  269. align-items: center;
  270. justify-content: center;
  271. margin-right: 16rpx;
  272. }
  273. .icon-warning-text {
  274. font-size: 26rpx;
  275. color: #ff5b5b;
  276. }
  277. .risk-text {
  278. display: block;
  279. font-size: 24rpx;
  280. line-height: 1.8;
  281. color: #666a7f;
  282. }
  283. .bottom-safe-area {
  284. height: 80rpx;
  285. }