feat(category): 接单平台支持二级分类目录与接单大厅联动展示及限额优化
This commit is contained in:
@@ -1827,6 +1827,134 @@ body {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* 游戏 / 一级分类横向卡片条 */
|
||||
.worker-hall-game-cards-scroll {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
overflow-x: auto;
|
||||
padding: 4px 0 6px 0;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.worker-hall-game-cards-scroll::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.worker-hall-game-card {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
padding: 8px 8px 6px 8px;
|
||||
min-width: 66px;
|
||||
max-width: 82px;
|
||||
cursor: pointer;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.worker-hall-game-card:hover {
|
||||
border-color: #cbd5e1;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.worker-hall-game-card.active {
|
||||
border-color: var(--theme-primary);
|
||||
background: #fff7ed;
|
||||
box-shadow: 0 3px 10px rgba(255, 106, 0, 0.15);
|
||||
}
|
||||
|
||||
.worker-hall-game-icon-box {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border-radius: 10px;
|
||||
background: #f8fafc;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.worker-hall-game-card.active .worker-hall-game-icon-box {
|
||||
background: #ffedd5;
|
||||
}
|
||||
|
||||
.worker-hall-game-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.worker-hall-game-initial {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.worker-hall-game-card.active .worker-hall-game-initial {
|
||||
color: var(--theme-primary);
|
||||
}
|
||||
|
||||
.worker-hall-game-title {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #334155;
|
||||
text-align: center;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.worker-hall-game-card.active .worker-hall-game-title {
|
||||
color: var(--theme-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* 二级分类联动条 */
|
||||
.worker-hall-subcat-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
overflow-x: auto;
|
||||
padding: 4px 0 2px 0;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
animation: fadeInSubcat 0.2s ease;
|
||||
}
|
||||
|
||||
.worker-hall-subcat-bar::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.worker-hall-subcat-label {
|
||||
flex-shrink: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #64748b;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
@keyframes fadeInSubcat {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* 分类横向滑动胶囊条 */
|
||||
.worker-hall-mobile-category-bar {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user