.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; } /* 分段控制器 */ .segment-control { display: flex; align-items: center; background: #F5F7FA; border-radius: 32rpx; padding: 6rpx; margin-bottom: 24rpx; position: relative; height: 64rpx; box-sizing: border-box; } .segment-slider { position: absolute; left: 6rpx; top: 6rpx; width: calc(50% - 6rpx); height: calc(100% - 12rpx); background: #ffffff; border-radius: 26rpx; box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; z-index: 0; } .segment-slider.slider-right { transform: translateX(100%); } .segment-item { flex: 1; display: flex; align-items: center; justify-content: center; height: 100%; z-index: 1; transition: color 0.3s ease; } .segment-icon { font-size: 24rpx; margin-right: 8rpx; color: #999999; transition: color 0.3s ease; } .segment-text { font-size: 26rpx; color: #999999; font-weight: 500; transition: color 0.3s ease; } .segment-active .segment-icon, .segment-active .segment-text { color: #E53935; } /* 隐藏空列表 */ .hidden-list { display: none !important; } /* 股票列表卡片 */ .stock-list-card, .stock-table-card { background: #ffffff; border-radius: 32rpx; padding: 32rpx; box-shadow: 0 16rpx 48rpx rgba(37, 52, 94, 0.1); } .list-header { display: flex; align-items: center; margin-bottom: 28rpx; } .list-dot { width: 12rpx; height: 12rpx; border-radius: 50%; background: #3abf81; margin-right: 12rpx; } .list-dot-blue { background: #5B5AEA; } .list-title { font-size: 28rpx; font-weight: 600; color: #1a1a2e; letter-spacing: 1rpx; } .list-count { font-size: 24rpx; color: #9ca3af; margin-left: 12rpx; } /* 股票列表 */ .stock-list { display: flex; flex-direction: column; gap: 16rpx; } /* 滑动删除容器 */ .stock-item-wrapper { position: relative; height: 160rpx; overflow: hidden; border-radius: 20rpx; background: #fafbfc; } .movable-area { width: 100%; height: 100%; } .movable-view { width: calc(100% + 160rpx); height: 100%; } .stock-item { display: flex; align-items: center; padding: 20rpx 16rpx; background: #fafbfc; border-radius: 20rpx; height: 100%; box-sizing: border-box; } /* 滑动删除按钮 */ .slide-delete-btn { flex-shrink: 0; width: 160rpx; height: 100%; display: flex; align-items: center; justify-content: center; background: #fafbfc; } .delete-icon-circle { width: 72rpx; height: 72rpx; background: #ef4444; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6rpx 16rpx rgba(239, 68, 68, 0.4); } .delete-icon-text { font-size: 40rpx; color: #ffffff; font-weight: bold; line-height: 1; } .stock-main { display: flex; align-items: center; flex: 1; width: 100%; } .stock-info { display: flex; flex-direction: column; min-width: 130rpx; flex-shrink: 0; } .stock-name { font-size: 30rpx; font-weight: 700; color: #1a1a2e; margin-bottom: 8rpx; letter-spacing: 0.5rpx; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; } .stock-code-row { display: flex; align-items: center; } .stock-tag { font-size: 18rpx; padding: 3rpx 8rpx; border-radius: 6rpx; color: #ffffff; font-weight: 600; margin-right: 6rpx; flex-shrink: 0; } .market-sh { background: #ef4444; } .market-sz { background: #22c55e; } .market-cy { background: #f59e0b; } .stock-code { font-size: 22rpx; color: #6b7280; font-weight: 500; text-rendering: optimizeLegibility; } .stock-quote { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; min-width: 140rpx; } /* 趋势图 */ .stock-chart { flex: 1; height: 56rpx; display: flex; align-items: center; justify-content: center; margin: 0 16rpx; } .trend-canvas { width: 100%; height: 56rpx; } .stock-price { font-size: 32rpx; font-weight: 700; color: #1a1a2e; margin-bottom: 6rpx; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; } .stock-change { font-size: 22rpx; font-weight: 600; padding: 4rpx 10rpx; border-radius: 8rpx; text-rendering: optimizeLegibility; } /* 表格视图 */ .table-header { display: flex; align-items: center; padding: 20rpx 16rpx; background: #f8f9fc; border-radius: 12rpx; margin-bottom: 16rpx; } .table-header text { font-size: 24rpx; color: #9ca3af; font-weight: 600; } .th-name { flex: 1; } .th-date { width: 140rpx; text-align: center; } .th-price { width: 120rpx; text-align: center; } .th-profit { width: 120rpx; text-align: right; } .table-list { display: flex; flex-direction: column; gap: 12rpx; } .table-row { display: flex; align-items: center; padding: 24rpx 16rpx; background: #fafbfc; border-radius: 16rpx; } .td-name { flex: 1; display: flex; flex-direction: column; } .td-name .stock-name { font-size: 28rpx; font-weight: 700; color: #1a1a2e; margin-bottom: 4rpx; } .td-date { width: 140rpx; text-align: center; font-size: 24rpx; color: #6b7280; } .td-price { width: 120rpx; text-align: center; font-size: 26rpx; font-weight: 600; color: #1a1a2e; } .td-profit-wrap { width: 120rpx; display: flex; justify-content: flex-end; } .td-profit { font-size: 24rpx; font-weight: 600; padding: 6rpx 12rpx; border-radius: 8rpx; } .profit-up { color: #ef4444; background: rgba(239, 68, 68, 0.1); } .profit-down { color: #22c55e; background: rgba(34, 197, 94, 0.1); } /* 空状态 */ .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; }