index.wxss 8.0 KB

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