index.wxss 8.0 KB

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