.page-rank { display: flex; flex-direction: column; background: #f5f6fb; height: 100vh; } .scroll-view { flex: 1; height: 0; } .content-wrapper { padding: 32rpx; min-height: 100%; } /* 上证指数卡片 */ .index-card { display: flex; align-items: center; justify-content: space-between; background: #ffffff; border-radius: 24rpx; padding: 32rpx; margin-bottom: 24rpx; box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08); } .index-left { display: flex; flex-direction: column; } .index-price-row { display: flex; align-items: baseline; margin-bottom: 8rpx; } .index-price { font-size: 48rpx; font-weight: 700; margin-right: 16rpx; } .index-change { font-size: 28rpx; font-weight: 600; } .index-name-row { display: flex; align-items: center; } .index-name { font-size: 26rpx; color: #666666; margin-right: 12rpx; } .index-percent { font-size: 26rpx; font-weight: 600; } .index-up { color: #FF3B30; } .index-down { color: #34C759; } /* 切换按钮 */ .view-switch { display: flex; justify-content: flex-end; margin-bottom: 16rpx; } .switch-btn { width: 64rpx; height: 64rpx; background: #ffffff; border-radius: 12rpx; display: flex; align-items: center; justify-content: center; box-shadow: 0 4rpx 12rpx rgba(37, 52, 94, 0.08); } .switch-btn:active { background: #f5f6fb; } .switch-icon { font-size: 28rpx; } /* 隐藏空列表 */ .hidden-list { display: none !important; } /* 股票列表 */ .stock-list { display: flex; flex-direction: column; background: #ffffff; border-radius: 24rpx; padding: 0 32rpx; box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08); } /* 表格视图 */ .stock-table { background: #ffffff; border-radius: 24rpx; padding: 0 24rpx; box-shadow: 0 8rpx 24rpx rgba(37, 52, 94, 0.08); } .table-header { display: flex; align-items: center; padding: 24rpx 0; border-bottom: 1rpx solid #f1f2f6; } .table-header text { font-size: 24rpx; color: #999999; font-weight: 500; } .th-name { flex: 1; } .th-date { width: 160rpx; text-align: center; } .th-price { width: 140rpx; text-align: center; } .th-profit { width: 140rpx; text-align: right; } .table-row { display: flex; align-items: center; padding: 24rpx 0; border-bottom: 1rpx solid #f1f2f6; } .table-row:last-child { border-bottom: none; } .td-name { flex: 1; display: flex; flex-direction: column; } .td-name .stock-name { font-size: 28rpx; font-weight: 600; color: #222222; margin-bottom: 4rpx; } .stock-code-row { display: flex; align-items: center; } .stock-tag { font-size: 18rpx; padding: 2rpx 6rpx; border-radius: 4rpx; color: #ffffff; font-weight: 500; margin-right: 8rpx; } .market-sh { background: #FF3B30; } .market-sz { background: #34C759; } .market-cy { background: #FF9500; } .stock-code { font-size: 22rpx; color: #9ca2b5; } .td-date { width: 160rpx; text-align: center; font-size: 24rpx; color: #666666; } .td-price { width: 140rpx; text-align: center; font-size: 26rpx; color: #333333; } .td-profit { width: 140rpx; text-align: right; font-size: 26rpx; font-weight: 600; } .profit-up { color: #FF3B30; } .profit-down { color: #34C759; } /* 空状态 */ .empty-content { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 200rpx 60rpx; } .empty-icon { font-size: 120rpx; margin-bottom: 40rpx; } .empty-text { font-size: 32rpx; font-weight: 600; color: #333333; margin-bottom: 16rpx; } .empty-desc { font-size: 26rpx; color: #999999; text-align: center; line-height: 1.6; } .bottom-safe-area { height: 80rpx; } /* 模糊效果 */ .blur-content { filter: blur(8rpx); pointer-events: none; } /* 登录遮罩层 */ .login-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; z-index: 999; } .login-prompt { width: 560rpx; max-width: 560rpx; background: #ffffff; border-radius: 24rpx; padding: 50rpx 40rpx; margin: 0 auto; text-align: center; box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3); box-sizing: border-box; } .lock-icon { font-size: 72rpx; margin-bottom: 20rpx; } .prompt-title { display: block; font-size: 32rpx; font-weight: 600; color: #222222; margin-bottom: 12rpx; } .prompt-desc { display: block; font-size: 24rpx; color: #999999; line-height: 1.5; margin-bottom: 32rpx; } .login-button-native { width: 100%; height: 80rpx; background: linear-gradient(135deg, #4CAF50, #66BB6A); color: #ffffff; border-radius: 40rpx; font-size: 30rpx; font-weight: 600; box-shadow: 0 8rpx 24rpx rgba(76, 175, 80, 0.4); display: flex; align-items: center; justify-content: center; border: none; padding: 0; line-height: 80rpx; } .login-button-native::after { border: none; }