rank.wxss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  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: 16rpx;
  158. }
  159. /* 滑动删除容器 */
  160. .stock-item-wrapper {
  161. position: relative;
  162. height: 160rpx;
  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% + 160rpx);
  173. height: 100%;
  174. }
  175. .stock-item {
  176. display: flex;
  177. align-items: center;
  178. padding: 20rpx 16rpx;
  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: 160rpx;
  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. width: 100%;
  215. }
  216. .stock-info {
  217. display: flex;
  218. flex-direction: column;
  219. min-width: 130rpx;
  220. flex-shrink: 0;
  221. }
  222. .stock-name {
  223. font-size: 30rpx;
  224. font-weight: 700;
  225. color: #1a1a2e;
  226. margin-bottom: 8rpx;
  227. letter-spacing: 0.5rpx;
  228. text-rendering: optimizeLegibility;
  229. -webkit-font-smoothing: antialiased;
  230. }
  231. .stock-code-row {
  232. display: flex;
  233. align-items: center;
  234. }
  235. .stock-tag {
  236. font-size: 18rpx;
  237. padding: 3rpx 8rpx;
  238. border-radius: 6rpx;
  239. color: #ffffff;
  240. font-weight: 600;
  241. margin-right: 6rpx;
  242. flex-shrink: 0;
  243. }
  244. .market-sh {
  245. background: #ef4444;
  246. }
  247. .market-sz {
  248. background: #22c55e;
  249. }
  250. .market-cy {
  251. background: #f59e0b;
  252. }
  253. .stock-code {
  254. font-size: 22rpx;
  255. color: #6b7280;
  256. font-weight: 500;
  257. text-rendering: optimizeLegibility;
  258. }
  259. .stock-quote {
  260. display: flex;
  261. flex-direction: column;
  262. align-items: flex-end;
  263. flex-shrink: 0;
  264. min-width: 140rpx;
  265. }
  266. /* 趋势图 */
  267. .stock-chart {
  268. flex: 1;
  269. height: 56rpx;
  270. display: flex;
  271. align-items: center;
  272. justify-content: center;
  273. margin: 0 16rpx;
  274. }
  275. .trend-canvas {
  276. width: 100%;
  277. height: 56rpx;
  278. }
  279. .stock-price {
  280. font-size: 32rpx;
  281. font-weight: 700;
  282. color: #1a1a2e;
  283. margin-bottom: 6rpx;
  284. font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  285. text-rendering: optimizeLegibility;
  286. -webkit-font-smoothing: antialiased;
  287. }
  288. .stock-change {
  289. font-size: 22rpx;
  290. font-weight: 600;
  291. padding: 4rpx 10rpx;
  292. border-radius: 8rpx;
  293. text-rendering: optimizeLegibility;
  294. }
  295. /* 表格视图 */
  296. .table-header {
  297. display: flex;
  298. align-items: center;
  299. padding: 20rpx 16rpx;
  300. background: #f8f9fc;
  301. border-radius: 12rpx;
  302. margin-bottom: 16rpx;
  303. }
  304. .table-header text {
  305. font-size: 24rpx;
  306. color: #9ca3af;
  307. font-weight: 600;
  308. }
  309. .th-name {
  310. flex: 1;
  311. }
  312. .th-date {
  313. width: 140rpx;
  314. text-align: center;
  315. }
  316. .th-price {
  317. width: 120rpx;
  318. text-align: center;
  319. }
  320. .th-profit {
  321. width: 120rpx;
  322. text-align: right;
  323. }
  324. .table-list {
  325. display: flex;
  326. flex-direction: column;
  327. gap: 12rpx;
  328. }
  329. .table-row {
  330. display: flex;
  331. align-items: center;
  332. padding: 24rpx 16rpx;
  333. background: #fafbfc;
  334. border-radius: 16rpx;
  335. }
  336. .td-name {
  337. flex: 1;
  338. display: flex;
  339. flex-direction: column;
  340. }
  341. .td-name .stock-name {
  342. font-size: 28rpx;
  343. font-weight: 700;
  344. color: #1a1a2e;
  345. margin-bottom: 4rpx;
  346. }
  347. .td-date {
  348. width: 140rpx;
  349. text-align: center;
  350. font-size: 24rpx;
  351. color: #6b7280;
  352. }
  353. .td-price {
  354. width: 120rpx;
  355. text-align: center;
  356. font-size: 26rpx;
  357. font-weight: 600;
  358. color: #1a1a2e;
  359. }
  360. .td-profit-wrap {
  361. width: 120rpx;
  362. display: flex;
  363. justify-content: flex-end;
  364. }
  365. .td-profit {
  366. font-size: 24rpx;
  367. font-weight: 600;
  368. padding: 6rpx 12rpx;
  369. border-radius: 8rpx;
  370. }
  371. .profit-up {
  372. color: #ef4444;
  373. background: rgba(239, 68, 68, 0.1);
  374. }
  375. .profit-down {
  376. color: #22c55e;
  377. background: rgba(34, 197, 94, 0.1);
  378. }
  379. /* 空状态 */
  380. .empty-content {
  381. display: flex;
  382. flex-direction: column;
  383. align-items: center;
  384. justify-content: center;
  385. padding: 200rpx 60rpx;
  386. }
  387. .empty-icon {
  388. font-size: 120rpx;
  389. margin-bottom: 40rpx;
  390. }
  391. .empty-text {
  392. font-size: 32rpx;
  393. font-weight: 600;
  394. color: #333333;
  395. margin-bottom: 16rpx;
  396. }
  397. .empty-desc {
  398. font-size: 26rpx;
  399. color: #999999;
  400. text-align: center;
  401. line-height: 1.6;
  402. }
  403. .bottom-safe-area {
  404. height: 80rpx;
  405. }
  406. /* 模糊效果 */
  407. .blur-content {
  408. filter: blur(8rpx);
  409. pointer-events: none;
  410. }
  411. /* 登录遮罩层 */
  412. .login-mask {
  413. position: fixed;
  414. top: 0;
  415. left: 0;
  416. right: 0;
  417. bottom: 0;
  418. background: rgba(0, 0, 0, 0.4);
  419. display: flex;
  420. align-items: center;
  421. justify-content: center;
  422. z-index: 999;
  423. }
  424. .login-prompt {
  425. width: 560rpx;
  426. max-width: 560rpx;
  427. background: #ffffff;
  428. border-radius: 24rpx;
  429. padding: 50rpx 40rpx;
  430. margin: 0 auto;
  431. text-align: center;
  432. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3);
  433. box-sizing: border-box;
  434. }
  435. .lock-icon {
  436. font-size: 72rpx;
  437. margin-bottom: 20rpx;
  438. }
  439. .prompt-title {
  440. display: block;
  441. font-size: 32rpx;
  442. font-weight: 600;
  443. color: #222222;
  444. margin-bottom: 12rpx;
  445. }
  446. .prompt-desc {
  447. display: block;
  448. font-size: 24rpx;
  449. color: #999999;
  450. line-height: 1.5;
  451. margin-bottom: 32rpx;
  452. }
  453. .login-button-native {
  454. width: 100%;
  455. height: 80rpx;
  456. background: linear-gradient(135deg, #4CAF50, #66BB6A);
  457. color: #ffffff;
  458. border-radius: 40rpx;
  459. font-size: 30rpx;
  460. font-weight: 600;
  461. box-shadow: 0 8rpx 24rpx rgba(76, 175, 80, 0.4);
  462. display: flex;
  463. align-items: center;
  464. justify-content: center;
  465. border: none;
  466. padding: 0;
  467. line-height: 80rpx;
  468. }
  469. .login-button-native::after {
  470. border: none;
  471. }