style(home): 首页筛选/横幅视觉优化,重置按钮与筛选胶囊悬浮点击统一主题橙

This commit is contained in:
yml2213
2026-10-16 14:35:04 +08:00
parent 703deb17d0
commit b5867e3c5e
6 changed files with 215 additions and 83 deletions
+62 -8
View File
@@ -50,11 +50,55 @@
color: #64748b;
}
/* PC 点击式快速筛选 */
/* 重置全部条件:橙色胶囊按钮,默认浅色描边,悬停填充品牌橙,按下加深,突出主题色。
注意:styles/admin.css 里的通用 .el-button 规则用超长 :not() 链把权重拉得很高,
会把这里的默认/悬浮/按下态压回灰白色,所以本组属性必须带 !important 才能保住橙色。 */
.filter-header .reset-conditions-btn {
height: 32px;
padding: 0 16px;
border: 1px solid #ffc79b !important;
border-radius: 999px;
background: linear-gradient(135deg, #fff7ed 0%, #ffeedd 100%) !important;
color: #ff6a00 !important;
font-size: 13px;
font-weight: 800;
letter-spacing: 0.2px;
box-shadow: 0 2px 6px rgba(255, 106, 0, 0.14);
transition:
background 0.2s ease,
border-color 0.2s ease,
color 0.2s ease,
box-shadow 0.2s ease,
transform 0.2s ease;
}
.filter-header .reset-conditions-btn .el-icon {
font-size: 14px;
color: currentColor;
}
.filter-header .reset-conditions-btn:hover,
.filter-header .reset-conditions-btn:focus-visible {
border-color: #ff6a00 !important;
background: linear-gradient(135deg, #ff6a00 0%, #ff8533 100%) !important;
color: #ffffff !important;
box-shadow: 0 8px 18px rgba(255, 106, 0, 0.3) !important;
transform: translateY(-1px);
}
.filter-header .reset-conditions-btn:active {
border-color: #e85f00 !important;
background: linear-gradient(135deg, #e85f00 0%, #ff7a20 100%) !important;
color: #ffffff !important;
transform: translateY(0);
box-shadow: 0 3px 8px rgba(255, 106, 0, 0.3) !important;
}
/* PC 点击式快速筛选:左列占左半边,右列左对齐到卡片中线偏右(居中的「展开高级筛选」右边一点) */
.quick-filter-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px 28px;
grid-template-columns: minmax(0, 54%) minmax(0, max-content);
gap: 12px 40px;
}
.filter-field {
@@ -107,18 +151,28 @@
transition:
background 0.15s,
color 0.15s,
box-shadow 0.15s;
box-shadow 0.15s,
transform 0.15s;
}
/* 悬浮/按下统一走主题橙,避免灰蓝色调与品牌色脱节(active 更实,便于区分已选) */
.pill-chip:hover {
background: #e8edf5;
color: #1e293b;
background: #fff4ea;
color: #ff6a00;
box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.28);
}
.pill-chip:active {
background: #ffe9d6;
color: #e85f00;
transform: translateY(1px);
}
.pill-chip.active {
background: #fff1e6;
background: #ffe8d5;
color: #ff6a00;
box-shadow: inset 0 0 0 1px #ffd0a8;
font-weight: 700;
box-shadow: inset 0 0 0 1px #ff6a00;
}
.pill-empty {