index.wxss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. /** 首页量化查询界面样式 **/
  2. .page-title-card {
  3. background: #ffffff;
  4. padding: 30rpx 0;
  5. text-align: center;
  6. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  7. border-radius: 0;
  8. }
  9. .page-title-text {
  10. font-size: 36rpx;
  11. font-weight: 800;
  12. color: #3F51F7;
  13. letter-spacing: 2rpx;
  14. }
  15. .page-container {
  16. height: 100vh;
  17. display: flex;
  18. flex-direction: column;
  19. background: #f5f6fb;
  20. }
  21. /* 移除旧的 custom-header 样式,或者保留也无妨,因为 HTML 中不再使用 */
  22. .custom-header {
  23. display: none;
  24. }
  25. .scroll-view {
  26. flex: 1;
  27. height: 0;
  28. }
  29. .content-wrapper {
  30. padding: 32rpx 32rpx 48rpx;
  31. }
  32. .card {
  33. background: #ffffff;
  34. border-radius: 24rpx;
  35. padding: 32rpx 32rpx 36rpx;
  36. box-shadow: 0 16rpx 40rpx rgba(37, 52, 94, 0.08);
  37. margin-bottom: 32rpx;
  38. position: relative;
  39. }
  40. .search-card {
  41. margin-top: 16rpx;
  42. z-index: 10;
  43. }
  44. .card-title {
  45. display: block;
  46. font-size: 32rpx;
  47. font-weight: 600;
  48. color: #222222;
  49. margin-bottom: 32rpx;
  50. }
  51. .search-row {
  52. display: flex;
  53. align-items: center;
  54. background: #f7f8fc;
  55. border-radius: 999rpx;
  56. padding: 0 8rpx 0 32rpx;
  57. height: 96rpx;
  58. box-sizing: border-box;
  59. }
  60. .search-input {
  61. flex: 1;
  62. font-size: 28rpx;
  63. color: #222222;
  64. }
  65. .search-placeholder {
  66. color: #b4b8c6;
  67. }
  68. .search-button {
  69. width: 96rpx;
  70. height: 80rpx;
  71. margin-left: 12rpx;
  72. border-radius: 999rpx;
  73. background: #f5f6fb;
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. }
  78. .search-icon {
  79. width: 48rpx;
  80. height: 48rpx;
  81. }
  82. .search-tip {
  83. display: block;
  84. margin-top: 20rpx;
  85. font-size: 24rpx;
  86. color: #9ca2b5;
  87. }
  88. /* 下拉列表样式 */
  89. .search-dropdown {
  90. position: absolute;
  91. top: 100%; /* 相对于父元素定位,在搜索框下方 */
  92. left: 0;
  93. right: 0;
  94. margin-top: 8rpx;
  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: 1000; /* 提高层级,确保在最上层 */
  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. }