diff --git a/components/home/FilterPanel.tsx b/components/home/FilterPanel.tsx index 7ddd5f5..bfaf53c 100644 --- a/components/home/FilterPanel.tsx +++ b/components/home/FilterPanel.tsx @@ -90,11 +90,11 @@ function FilterPanel(props: FilterPanelProps) { const activeFilterCount = [selectedMaterialType, selectedCategory, selectedScene, selectedPlatform, selectedProductCategory, selectedMonth].filter(Boolean).length const tabBase = 'relative shrink-0 whitespace-nowrap pb-3 text-[15px] tracking-[-0.02em] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1a1c1d]/70 focus-visible:ring-offset-2 rounded-sm' const tabActive = 'text-[#1a1c1d]' - const tabInactive = 'text-[#86898e] hover:text-[#1a1c1d]' + const tabInactive = 'text-[#6b7075] hover:text-[#1a1c1d]' const chipBase = 'text-[14px] tracking-[-0.02em] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1a1c1d]/70 focus-visible:ring-offset-2 rounded-sm' const chipActive = 'text-[#1a1c1d]' - const chipInactive = 'text-[#86898e] hover:text-[#1a1c1d]' - const countMuted = (active: boolean) => (active ? 'text-[#6b7075]' : 'text-[#86898e]') + const chipInactive = 'text-[#6b7075] hover:text-[#1a1c1d]' + const countClass = 'font-en text-[12px] font-medium tabular-nums tracking-[0.08em] text-[#86898e]' const countText = (value: number) => (facetsLoading ? '…' : value.toLocaleString('zh-CN')) const rankedTypes = useMemo(() => { const hasCounts = materialTypes.some((type) => (type.count || 0) > 0) @@ -212,7 +212,7 @@ function FilterPanel(props: FilterPanelProps) { const renderTypeTab = (label: string, count: number, active: boolean, onClick: () => void) => ( ) @@ -241,7 +241,7 @@ function FilterPanel(props: FilterPanelProps) { className={`${tabBase} ${moreActive || moreOpen ? tabActive : tabInactive}`} > 更多 - {overflowTypes.length} + {overflowTypes.length} {(moreActive || moreOpen) &&