diff --git a/web/src/pages/Home.module.less b/web/src/pages/Home.module.less index 4133de5..0268167 100644 --- a/web/src/pages/Home.module.less +++ b/web/src/pages/Home.module.less @@ -474,12 +474,18 @@ .rankingSwitch { display: inline-flex; - background: #f5f5f5; + background: rgba(255, 255, 255, 0.8); border-radius: 20px; padding: 4px; margin-bottom: 16px; position: relative; - box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); + box-shadow: + 0 2px 8px rgba(0, 0, 0, 0.05), + 0 1px 3px rgba(0, 0, 0, 0.03), + 0 0 0 1px rgba(0, 0, 0, 0.03); + border: 0.5px solid rgba(0, 0, 0, 0.04); + backdrop-filter: blur(30px) saturate(180%); + -webkit-backdrop-filter: blur(30px) saturate(180%); } .rankingSwitchButton { @@ -500,6 +506,11 @@ &:hover { color: #333; } + + &.active { + color: #fff; + font-weight: 600; + } } .rankingSwitchSlider { @@ -507,10 +518,10 @@ top: 4px; left: 4px; height: calc(100% - 8px); - background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%); + background: linear-gradient(135deg, #007aff 0%, #007aff 100%); border-radius: 16px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); - box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3); + box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3); z-index: 1; } diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsx index 8719bd9..2b542e7 100644 --- a/web/src/pages/Home.tsx +++ b/web/src/pages/Home.tsx @@ -693,15 +693,15 @@ const Home: React.FC = () => { <TrophyOutlined /> 排行榜 -
+
switchRankingType('daily')} > 今日排行榜
switchRankingType('total')} > 总排行榜