/* ===== 卡乐售 PC 商品分类 - haikuotiankong（直接展示的目录列表） ===== */

.fenlei-empty {
    margin: 15px 0 30px;
    padding: 80px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #fff;
    border-radius: 6px;
}

/* 每个一级分类一张白色卡 */
.fenlei-group {
    margin: 15px 0 0;
    padding: 22px 24px 26px;
    background: #fff;
    border-radius: 6px;
}

/* 标题：左侧蓝色竖条 + 一级分类名 */
.fenlei-group-title {
    position: relative;
    padding-left: 12px;
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1.2;
}
.fenlei-group-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: #5599ff;
}

/* 二级分类：图标 + 名称 平铺网格，宽屏约 5 列，自动换行 */
.fenlei-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px 14px;
}

.s-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s;
}
.s-card:hover {
    background: #f4f8ff;
}

.s-card-img {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}
.s-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s-card-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.s-card:hover .s-card-name {
    color: #5599ff;
}

/* ============ 分类页骨架屏（结构对齐 .fenlei-group，替换时无跳动） ============ */
.fenlei-skeleton {
    pointer-events: none;
}
.fenlei-skeleton .sk {
    display: block;
    background: linear-gradient(90deg, #eef1f5 25%, #e3e8ef 50%, #eef1f5 75%);
    background-size: 200% 100%;
    animation: hktk-fl-sk-shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}
.fenlei-skeleton .sk-group-title {
    width: 140px;
    height: 18px;
    margin-bottom: 18px;
}
.fenlei-skeleton .fenlei-sk-card {
    cursor: default;
}
.fenlei-skeleton .fenlei-sk-card:hover {
    background: transparent;
}
.fenlei-skeleton .sk-ico {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 10px;
}
.fenlei-skeleton .sk-name {
    width: 60%;
    height: 14px;
    border-radius: 4px;
}
@keyframes hktk-fl-sk-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
