rank.wxss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. .page-rank {
  2. display: flex;
  3. flex-direction: column;
  4. background: #f5f6fb;
  5. height: 100vh;
  6. }
  7. .scroll-view {
  8. flex: 1;
  9. height: 0;
  10. }
  11. .content-wrapper {
  12. padding: 32rpx;
  13. min-height: 100%;
  14. }
  15. /* 上证指数卡片 */
  16. .index-card {
  17. display: flex;
  18. align-items: center;
  19. justify-content: space-between;
  20. background: #ffffff;
  21. border-radius: 24rpx;
  22. padding: 32rpx;
  23. margin-bottom: 24rpx;
  24. box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08);
  25. }
  26. .index-left {
  27. display: flex;
  28. flex-direction: column;
  29. }
  30. .index-price-row {
  31. display: flex;
  32. align-items: baseline;
  33. margin-bottom: 8rpx;
  34. }
  35. .index-price {
  36. font-size: 48rpx;
  37. font-weight: 700;
  38. margin-right: 16rpx;
  39. }
  40. .index-change {
  41. font-size: 28rpx;
  42. font-weight: 600;
  43. }
  44. .index-name-row {
  45. display: flex;
  46. align-items: center;
  47. }
  48. .index-name {
  49. font-size: 26rpx;
  50. color: #666666;
  51. margin-right: 12rpx;
  52. }
  53. .index-percent {
  54. font-size: 26rpx;
  55. font-weight: 600;
  56. }
  57. .index-up {
  58. color: #FF3B30;
  59. }
  60. .index-down {
  61. color: #34C759;
  62. }
  63. /* 分段控制器 */
  64. .segment-control {
  65. display: flex;
  66. align-items: center;
  67. background: #F5F7FA;
  68. border-radius: 32rpx;
  69. padding: 6rpx;
  70. margin-bottom: 24rpx;
  71. position: relative;
  72. height: 64rpx;
  73. box-sizing: border-box;
  74. }
  75. .segment-slider {
  76. position: absolute;
  77. left: 6rpx;
  78. top: 6rpx;
  79. width: calc(50% - 6rpx);
  80. height: calc(100% - 12rpx);
  81. background: #ffffff;
  82. border-radius: 26rpx;
  83. box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
  84. transition: transform 0.3s ease;
  85. z-index: 0;
  86. }
  87. .segment-slider.slider-right {
  88. transform: translateX(100%);
  89. }
  90. .segment-item {
  91. flex: 1;
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. height: 100%;
  96. z-index: 1;
  97. transition: color 0.3s ease;
  98. }
  99. .segment-icon {
  100. font-size: 24rpx;
  101. margin-right: 8rpx;
  102. color: #999999;
  103. transition: color 0.3s ease;
  104. }
  105. .segment-text {
  106. font-size: 26rpx;
  107. color: #999999;
  108. font-weight: 500;
  109. transition: color 0.3s ease;
  110. }
  111. .segment-active .segment-icon,
  112. .segment-active .segment-text {
  113. color: #E53935;
  114. }
  115. /* 隐藏空列表 */
  116. .hidden-list {
  117. display: none !important;
  118. }
  119. /* 股票列表卡片 */
  120. .stock-list-card,
  121. .stock-table-card {
  122. background: #ffffff;
  123. border-radius: 32rpx;
  124. padding: 32rpx;
  125. box-shadow: 0 16rpx 48rpx rgba(37, 52, 94, 0.1);
  126. }
  127. .list-header {
  128. display: flex;
  129. align-items: center;
  130. margin-bottom: 28rpx;
  131. }
  132. .list-dot {
  133. width: 12rpx;
  134. height: 12rpx;
  135. border-radius: 50%;
  136. background: #3abf81;
  137. margin-right: 12rpx;
  138. }
  139. .list-dot-blue {
  140. background: #5B5AEA;
  141. }
  142. .list-title {
  143. font-size: 28rpx;
  144. font-weight: 600;
  145. color: #1a1a2e;
  146. letter-spacing: 1rpx;
  147. }
  148. .list-count {
  149. font-size: 24rpx;
  150. color: #9ca3af;
  151. margin-left: 12rpx;
  152. }
  153. /* 股票列表 */
  154. .stock-list {
  155. display: flex;
  156. flex-direction: column;
  157. gap: 20rpx;
  158. }
  159. /* 滑动删除容器 */
  160. .stock-item-wrapper {
  161. position: relative;
  162. height: 140rpx;
  163. overflow: hidden;
  164. border-radius: 20rpx;
  165. background: #fafbfc;
  166. }
  167. .movable-area {
  168. width: 100%;
  169. height: 100%;
  170. }
  171. .movable-view {
  172. width: calc(100% + 200rpx);
  173. height: 100%;
  174. }
  175. .stock-item {
  176. display: flex;
  177. align-items: center;
  178. padding: 28rpx 24rpx;
  179. background: #fafbfc;
  180. border-radius: 20rpx;
  181. height: 100%;
  182. box-sizing: border-box;
  183. }
  184. /* 滑动删除按钮 */
  185. .slide-delete-btn {
  186. flex-shrink: 0;
  187. width: 200rpx;
  188. height: 100%;
  189. display: flex;
  190. align-items: center;
  191. justify-content: center;
  192. background: #fafbfc;
  193. }
  194. .delete-icon-circle {
  195. width: 72rpx;
  196. height: 72rpx;
  197. background: #ef4444;
  198. border-radius: 50%;
  199. display: flex;
  200. align-items: center;
  201. justify-content: center;
  202. box-shadow: 0 6rpx 16rpx rgba(239, 68, 68, 0.4);
  203. }
  204. .delete-icon-text {
  205. font-size: 40rpx;
  206. color: #ffffff;
  207. font-weight: bold;
  208. line-height: 1;
  209. }
  210. .stock-main {
  211. display: flex;
  212. align-items: center;
  213. flex: 1;
  214. }
  215. .stock-info {
  216. display: flex;
  217. flex-direction: column;
  218. min-width: 140rpx;
  219. }
  220. .stock-name {
  221. font-size: 30rpx;
  222. font-weight: 700;
  223. color: #1a1a2e;
  224. margin-bottom: 6rpx;
  225. letter-spacing: 1rpx;
  226. }
  227. .stock-code-row {
  228. display: flex;
  229. align-items: center;
  230. }
  231. .stock-tag {
  232. font-size: 18rpx;
  233. padding: 2rpx 8rpx;
  234. border-radius: 6rpx;
  235. color: #ffffff;
  236. font-weight: 600;
  237. margin-right: 8rpx;
  238. }
  239. .market-sh {
  240. background: #ef4444;
  241. }
  242. .market-sz {
  243. background: #22c55e;
  244. }
  245. .market-cy {
  246. background: #f59e0b;
  247. }
  248. .stock-code {
  249. font-size: 22rpx;
  250. color: #9ca3af;
  251. font-weight: 400;
  252. }
  253. .stock-quote {
  254. display: flex;
  255. align-items: center;
  256. margin-left: 16rpx;
  257. }
  258. /* 趋势图 */
  259. .stock-chart {
  260. flex: 1;
  261. height: 60rpx;
  262. display: flex;
  263. align-items: center;
  264. justify-content: center;
  265. margin: 0 16rpx;
  266. }
  267. .trend-canvas {
  268. width: 200rpx;
  269. height: 60rpx;
  270. }
  271. .stock-price {
  272. font-size: 32rpx;
  273. font-weight: 800;
  274. color: #1a1a2e;
  275. margin-right: 16rpx;
  276. font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  277. }
  278. .stock-change {
  279. font-size: 24rpx;
  280. font-weight: 600;
  281. padding: 6rpx 12rpx;
  282. border-radius: 8rpx;
  283. }
  284. /* 表格视图 */
  285. .table-header {
  286. display: flex;
  287. align-items: center;
  288. padding: 20rpx 16rpx;
  289. background: #f8f9fc;
  290. border-radius: 12rpx;
  291. margin-bottom: 16rpx;
  292. }
  293. .table-header text {
  294. font-size: 24rpx;
  295. color: #9ca3af;
  296. font-weight: 600;
  297. }
  298. .th-name {
  299. flex: 1;
  300. }
  301. .th-date {
  302. width: 140rpx;
  303. text-align: center;
  304. }
  305. .th-price {
  306. width: 120rpx;
  307. text-align: center;
  308. }
  309. .th-profit {
  310. width: 120rpx;
  311. text-align: right;
  312. }
  313. .table-list {
  314. display: flex;
  315. flex-direction: column;
  316. gap: 12rpx;
  317. }
  318. .table-row {
  319. display: flex;
  320. align-items: center;
  321. padding: 24rpx 16rpx;
  322. background: #fafbfc;
  323. border-radius: 16rpx;
  324. }
  325. .td-name {
  326. flex: 1;
  327. display: flex;
  328. flex-direction: column;
  329. }
  330. .td-name .stock-name {
  331. font-size: 28rpx;
  332. font-weight: 700;
  333. color: #1a1a2e;
  334. margin-bottom: 4rpx;
  335. }
  336. .td-date {
  337. width: 140rpx;
  338. text-align: center;
  339. font-size: 24rpx;
  340. color: #6b7280;
  341. }
  342. .td-price {
  343. width: 120rpx;
  344. text-align: center;
  345. font-size: 26rpx;
  346. font-weight: 600;
  347. color: #1a1a2e;
  348. }
  349. .td-profit-wrap {
  350. width: 120rpx;
  351. display: flex;
  352. justify-content: flex-end;
  353. }
  354. .td-profit {
  355. font-size: 24rpx;
  356. font-weight: 600;
  357. padding: 6rpx 12rpx;
  358. border-radius: 8rpx;
  359. }
  360. .profit-up {
  361. color: #ef4444;
  362. background: rgba(239, 68, 68, 0.1);
  363. }
  364. .profit-down {
  365. color: #22c55e;
  366. background: rgba(34, 197, 94, 0.1);
  367. }
  368. /* 空状态 */
  369. .empty-content {
  370. display: flex;
  371. flex-direction: column;
  372. align-items: center;
  373. justify-content: center;
  374. padding: 200rpx 60rpx;
  375. }
  376. .empty-icon {
  377. font-size: 120rpx;
  378. margin-bottom: 40rpx;
  379. }
  380. .empty-text {
  381. font-size: 32rpx;
  382. font-weight: 600;
  383. color: #333333;
  384. margin-bottom: 16rpx;
  385. }
  386. .empty-desc {
  387. font-size: 26rpx;
  388. color: #999999;
  389. text-align: center;
  390. line-height: 1.6;
  391. }
  392. .bottom-safe-area {
  393. height: 80rpx;
  394. }
  395. /* 模糊效果 */
  396. .blur-content {
  397. filter: blur(8rpx);
  398. pointer-events: none;
  399. }
  400. /* 登录遮罩层 */
  401. .login-mask {
  402. position: fixed;
  403. top: 0;
  404. left: 0;
  405. right: 0;
  406. bottom: 0;
  407. background: rgba(0, 0, 0, 0.4);
  408. display: flex;
  409. align-items: center;
  410. justify-content: center;
  411. z-index: 999;
  412. }
  413. .login-prompt {
  414. width: 560rpx;
  415. max-width: 560rpx;
  416. background: #ffffff;
  417. border-radius: 24rpx;
  418. padding: 50rpx 40rpx;
  419. margin: 0 auto;
  420. text-align: center;
  421. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3);
  422. box-sizing: border-box;
  423. }
  424. .lock-icon {
  425. font-size: 72rpx;
  426. margin-bottom: 20rpx;
  427. }
  428. .prompt-title {
  429. display: block;
  430. font-size: 32rpx;
  431. font-weight: 600;
  432. color: #222222;
  433. margin-bottom: 12rpx;
  434. }
  435. .prompt-desc {
  436. display: block;
  437. font-size: 24rpx;
  438. color: #999999;
  439. line-height: 1.5;
  440. margin-bottom: 32rpx;
  441. }
  442. .login-button-native {
  443. width: 100%;
  444. height: 80rpx;
  445. background: linear-gradient(135deg, #4CAF50, #66BB6A);
  446. color: #ffffff;
  447. border-radius: 40rpx;
  448. font-size: 30rpx;
  449. font-weight: 600;
  450. box-shadow: 0 8rpx 24rpx rgba(76, 175, 80, 0.4);
  451. display: flex;
  452. align-items: center;
  453. justify-content: center;
  454. border: none;
  455. padding: 0;
  456. line-height: 80rpx;
  457. }
  458. .login-button-native::after {
  459. border: none;
  460. }