index.wxss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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: flex-start;
  122. margin-bottom: 24rpx;
  123. padding-bottom: 24rpx;
  124. border-bottom: 1rpx solid #f1f2f6;
  125. }
  126. .stock-info-left {
  127. flex: 1;
  128. }
  129. .detail-name {
  130. font-size: 34rpx;
  131. font-weight: 700;
  132. color: #1f1f2e;
  133. }
  134. .detail-code {
  135. margin-top: 8rpx;
  136. font-size: 26rpx;
  137. color: #9da3b5;
  138. }
  139. .detail-sub {
  140. margin-top: 8rpx;
  141. font-size: 24rpx;
  142. color: #9da3b5;
  143. }
  144. .stock-price-right {
  145. text-align: right;
  146. }
  147. .current-price {
  148. font-size: 44rpx;
  149. font-weight: 700;
  150. color: #333;
  151. }
  152. .price-change {
  153. margin-top: 6rpx;
  154. font-size: 26rpx;
  155. }
  156. .price-up {
  157. color: #e74c3c;
  158. }
  159. .price-down {
  160. color: #27ae60;
  161. }
  162. /* 实时行情网格 */
  163. .quote-section {
  164. margin-bottom: 24rpx;
  165. }
  166. .quote-grid {
  167. display: flex;
  168. flex-wrap: wrap;
  169. background: #f8f9fc;
  170. border-radius: 16rpx;
  171. padding: 20rpx 16rpx;
  172. }
  173. .quote-item {
  174. width: 33.33%;
  175. display: flex;
  176. flex-direction: column;
  177. align-items: center;
  178. padding: 12rpx 0;
  179. }
  180. .quote-label {
  181. font-size: 24rpx;
  182. color: #9da3b5;
  183. margin-bottom: 8rpx;
  184. }
  185. .quote-value {
  186. font-size: 28rpx;
  187. font-weight: 600;
  188. color: #333;
  189. }
  190. .score-display {
  191. display: flex;
  192. justify-content: center;
  193. margin-top: 16rpx;
  194. }
  195. .score-badge {
  196. min-width: 140rpx;
  197. padding: 12rpx 22rpx;
  198. border-radius: 20rpx;
  199. background: #f16565;
  200. color: #ffffff;
  201. font-size: 40rpx;
  202. font-weight: 700;
  203. text-align: right;
  204. box-shadow: 0 10rpx 24rpx rgba(241, 101, 101, 0.35);
  205. }
  206. .section {
  207. margin-top: 20rpx;
  208. }
  209. .section-title {
  210. font-size: 28rpx;
  211. font-weight: 700;
  212. color: #1f1f2e;
  213. margin-bottom: 16rpx;
  214. }
  215. .history-row {
  216. display: flex;
  217. align-items: center;
  218. justify-content: space-between;
  219. padding: 18rpx 0;
  220. border-bottom: 1rpx solid #f1f2f6;
  221. }
  222. .history-row:last-child {
  223. border-bottom: none;
  224. }
  225. .history-date {
  226. font-size: 26rpx;
  227. color: #3c4050;
  228. }
  229. .history-score {
  230. min-width: 96rpx;
  231. text-align: center;
  232. padding: 6rpx 18rpx;
  233. border-radius: 30rpx;
  234. font-size: 28rpx;
  235. font-weight: 700;
  236. color: #ffffff;
  237. }
  238. .tag-danger {
  239. background: #f16565;
  240. }
  241. .tag-success {
  242. background: #3abf81;
  243. }
  244. .tag-info {
  245. background: #4c86ff;
  246. }
  247. .history-note {
  248. display: block;
  249. margin-top: 12rpx;
  250. font-size: 22rpx;
  251. color: #9da3b5;
  252. }
  253. .factor-row {
  254. display: flex;
  255. align-items: center;
  256. justify-content: space-between;
  257. padding: 14rpx 0;
  258. }
  259. .factor-name {
  260. font-size: 26rpx;
  261. color: #3c4050;
  262. }
  263. .factor-score {
  264. font-size: 28rpx;
  265. font-weight: 600;
  266. color: #4c86ff;
  267. }
  268. .card-header {
  269. display: flex;
  270. align-items: center;
  271. margin-bottom: 24rpx;
  272. }
  273. .card-header-title {
  274. font-size: 30rpx;
  275. font-weight: 600;
  276. color: #222222;
  277. }
  278. .icon-circle {
  279. width: 40rpx;
  280. height: 40rpx;
  281. border-radius: 50%;
  282. background: #e7f7ef;
  283. display: flex;
  284. align-items: center;
  285. justify-content: center;
  286. margin-right: 16rpx;
  287. }
  288. .icon-check {
  289. font-size: 24rpx;
  290. color: #28a745;
  291. }
  292. .advantage-item {
  293. margin-bottom: 12rpx;
  294. font-size: 26rpx;
  295. line-height: 1.6;
  296. color: #4a4f63;
  297. }
  298. .advantage-label {
  299. font-weight: 600;
  300. }
  301. .advantage-desc {
  302. font-weight: 400;
  303. }
  304. .risk-card {
  305. margin-bottom: 24rpx;
  306. }
  307. .icon-warning {
  308. width: 40rpx;
  309. height: 40rpx;
  310. border-radius: 50%;
  311. background: #ffecef;
  312. display: flex;
  313. align-items: center;
  314. justify-content: center;
  315. margin-right: 16rpx;
  316. }
  317. .icon-warning-text {
  318. font-size: 26rpx;
  319. color: #ff5b5b;
  320. }
  321. .risk-text {
  322. display: block;
  323. font-size: 24rpx;
  324. line-height: 1.8;
  325. color: #666a7f;
  326. }
  327. .bottom-safe-area {
  328. height: 80rpx;
  329. }
  330. /* 历史数据强度评分样式 */
  331. .section-date {
  332. font-size: 24rpx;
  333. font-weight: 400;
  334. color: #9da3b5;
  335. margin-left: 12rpx;
  336. }
  337. /* 强度评分胶囊标签样式 */
  338. .history-header {
  339. display: flex;
  340. justify-content: space-between;
  341. align-items: center;
  342. margin-bottom: 20rpx;
  343. }
  344. .history-title {
  345. font-size: 30rpx;
  346. font-weight: 600;
  347. color: #1f1f2e;
  348. }
  349. .history-date-tag {
  350. font-size: 22rpx;
  351. color: #666;
  352. background: #f5f6fb;
  353. padding: 6rpx 16rpx;
  354. border-radius: 20rpx;
  355. }
  356. .strength-row {
  357. display: flex;
  358. align-items: center;
  359. justify-content: space-between;
  360. background: #fafbfc;
  361. border-radius: 12rpx;
  362. padding: 16rpx 20rpx;
  363. margin-bottom: 16rpx;
  364. }
  365. .strength-label {
  366. font-size: 26rpx;
  367. color: #666;
  368. font-weight: 500;
  369. }
  370. .strength-capsule {
  371. display: inline-flex;
  372. align-items: center;
  373. justify-content: center;
  374. padding: 10rpx 24rpx;
  375. border-radius: 999rpx;
  376. white-space: nowrap;
  377. }
  378. .capsule-up {
  379. background-color: #F54545;
  380. }
  381. .capsule-down {
  382. background-color: #00C853;
  383. }
  384. .capsule-value {
  385. font-family: 'DIN', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  386. font-size: 30rpx;
  387. font-weight: 700;
  388. color: #ffffff;
  389. letter-spacing: -1rpx;
  390. white-space: nowrap;
  391. }
  392. .history-detail-grid {
  393. display: flex;
  394. flex-wrap: wrap;
  395. background: #f8f9fc;
  396. border-radius: 16rpx;
  397. padding: 16rpx;
  398. margin-top: 16rpx;
  399. }
  400. .history-detail-item {
  401. width: 50%;
  402. display: flex;
  403. justify-content: space-between;
  404. align-items: center;
  405. padding: 12rpx 16rpx;
  406. box-sizing: border-box;
  407. }
  408. .detail-label {
  409. font-size: 24rpx;
  410. color: #9da3b5;
  411. }
  412. .detail-value {
  413. font-size: 26rpx;
  414. font-weight: 600;
  415. color: #333;
  416. }
  417. .next-day-section {
  418. margin-top: 20rpx;
  419. padding-top: 16rpx;
  420. border-top: 1rpx solid #f1f2f6;
  421. }
  422. .next-day-title {
  423. font-size: 26rpx;
  424. font-weight: 600;
  425. color: #1f1f2e;
  426. margin-bottom: 12rpx;
  427. }
  428. .next-day-grid {
  429. display: flex;
  430. flex-wrap: wrap;
  431. background: #fef9f0;
  432. border-radius: 12rpx;
  433. padding: 12rpx;
  434. }
  435. .next-day-item {
  436. width: 50%;
  437. display: flex;
  438. justify-content: space-between;
  439. align-items: center;
  440. padding: 8rpx 12rpx;
  441. box-sizing: border-box;
  442. }
  443. .next-day-label {
  444. font-size: 22rpx;
  445. color: #9da3b5;
  446. }
  447. .next-day-value {
  448. font-size: 24rpx;
  449. font-weight: 600;
  450. color: #333;
  451. }