index.wxss 4.5 KB

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