index.wxss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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: linear-gradient(135deg, #5d55e8, #7568ff);
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. box-shadow: 0 12rpx 24rpx rgba(93, 85, 232, 0.4);
  78. }
  79. .icon-search {
  80. width: 0;
  81. height: 0;
  82. border-radius: 50%;
  83. border: 10rpx solid #ffffff;
  84. border-color: #ffffff transparent transparent transparent;
  85. position: relative;
  86. }
  87. .icon-search::after {
  88. content: '';
  89. position: absolute;
  90. width: 24rpx;
  91. height: 4rpx;
  92. border-radius: 999rpx;
  93. background: #ffffff;
  94. transform: rotate(45deg);
  95. right: -20rpx;
  96. bottom: -6rpx;
  97. }
  98. .search-tip {
  99. display: block;
  100. margin-top: 20rpx;
  101. font-size: 24rpx;
  102. color: #9ca2b5;
  103. }
  104. /* 下拉列表样式 */
  105. .search-dropdown {
  106. position: absolute;
  107. top: 100%; /* 相对于父元素定位,在搜索框下方 */
  108. left: 0;
  109. right: 0;
  110. margin-top: 8rpx;
  111. background: #ffffff;
  112. border-radius: 16rpx;
  113. box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.15);
  114. max-height: 400rpx;
  115. overflow-y: auto;
  116. z-index: 1000; /* 提高层级,确保在最上层 */
  117. border: 1rpx solid #f0f0f0;
  118. }
  119. .dropdown-item {
  120. padding: 24rpx 32rpx;
  121. border-bottom: 1rpx solid #f5f6fb;
  122. display: flex;
  123. justify-content: space-between;
  124. align-items: center;
  125. }
  126. .dropdown-item:last-child {
  127. border-bottom: none;
  128. }
  129. .dropdown-item-hover {
  130. background-color: #f7f8fc;
  131. }
  132. .item-name {
  133. font-size: 28rpx;
  134. color: #333;
  135. }
  136. .item-code {
  137. font-size: 24rpx;
  138. color: #999;
  139. }
  140. .result-card {
  141. margin-top: 8rpx;
  142. }
  143. .result-loading {
  144. font-size: 26rpx;
  145. color: #666a7f;
  146. }
  147. .result-error {
  148. font-size: 26rpx;
  149. color: #ff5b5b;
  150. }
  151. .detail-header {
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: center;
  155. margin-bottom: 24rpx;
  156. }
  157. .detail-name {
  158. font-size: 30rpx;
  159. font-weight: 700;
  160. color: #1f1f2e;
  161. }
  162. .detail-sub {
  163. margin-top: 8rpx;
  164. font-size: 24rpx;
  165. color: #9da3b5;
  166. }
  167. .score-badge {
  168. min-width: 140rpx;
  169. padding: 12rpx 22rpx;
  170. border-radius: 20rpx;
  171. background: #f16565;
  172. color: #ffffff;
  173. font-size: 40rpx;
  174. font-weight: 700;
  175. text-align: right;
  176. box-shadow: 0 10rpx 24rpx rgba(241, 101, 101, 0.35);
  177. }
  178. .section {
  179. margin-top: 20rpx;
  180. }
  181. .section-title {
  182. font-size: 28rpx;
  183. font-weight: 700;
  184. color: #1f1f2e;
  185. margin-bottom: 16rpx;
  186. }
  187. .history-row {
  188. display: flex;
  189. align-items: center;
  190. justify-content: space-between;
  191. padding: 18rpx 0;
  192. border-bottom: 1rpx solid #f1f2f6;
  193. }
  194. .history-row:last-child {
  195. border-bottom: none;
  196. }
  197. .history-date {
  198. font-size: 26rpx;
  199. color: #3c4050;
  200. }
  201. .history-score {
  202. min-width: 96rpx;
  203. text-align: center;
  204. padding: 6rpx 18rpx;
  205. border-radius: 30rpx;
  206. font-size: 28rpx;
  207. font-weight: 700;
  208. color: #ffffff;
  209. }
  210. .tag-danger {
  211. background: #f16565;
  212. }
  213. .tag-success {
  214. background: #3abf81;
  215. }
  216. .tag-info {
  217. background: #4c86ff;
  218. }
  219. .history-note {
  220. display: block;
  221. margin-top: 12rpx;
  222. font-size: 22rpx;
  223. color: #9da3b5;
  224. }
  225. .factor-row {
  226. display: flex;
  227. align-items: center;
  228. justify-content: space-between;
  229. padding: 14rpx 0;
  230. }
  231. .factor-name {
  232. font-size: 26rpx;
  233. color: #3c4050;
  234. }
  235. .factor-score {
  236. font-size: 28rpx;
  237. font-weight: 600;
  238. color: #4c86ff;
  239. }
  240. .card-header {
  241. display: flex;
  242. align-items: center;
  243. margin-bottom: 24rpx;
  244. }
  245. .card-header-title {
  246. font-size: 30rpx;
  247. font-weight: 600;
  248. color: #222222;
  249. }
  250. .icon-circle {
  251. width: 40rpx;
  252. height: 40rpx;
  253. border-radius: 50%;
  254. background: #e7f7ef;
  255. display: flex;
  256. align-items: center;
  257. justify-content: center;
  258. margin-right: 16rpx;
  259. }
  260. .icon-check {
  261. font-size: 24rpx;
  262. color: #28a745;
  263. }
  264. .advantage-item {
  265. margin-bottom: 12rpx;
  266. font-size: 26rpx;
  267. line-height: 1.6;
  268. color: #4a4f63;
  269. }
  270. .advantage-label {
  271. font-weight: 600;
  272. }
  273. .advantage-desc {
  274. font-weight: 400;
  275. }
  276. .risk-card {
  277. margin-bottom: 24rpx;
  278. }
  279. .icon-warning {
  280. width: 40rpx;
  281. height: 40rpx;
  282. border-radius: 50%;
  283. background: #ffecef;
  284. display: flex;
  285. align-items: center;
  286. justify-content: center;
  287. margin-right: 16rpx;
  288. }
  289. .icon-warning-text {
  290. font-size: 26rpx;
  291. color: #ff5b5b;
  292. }
  293. .risk-text {
  294. display: block;
  295. font-size: 24rpx;
  296. line-height: 1.8;
  297. color: #666a7f;
  298. }
  299. .bottom-safe-area {
  300. height: 80rpx;
  301. }