/* 服务商图标导航列表（对应 page-providers.php 模板） */
#provider-wrap {
    margin:10px 0;
    padding: 0 10px;
}

#provider {
    flex-wrap: nowrap;
    border-radius: 10px;
    column-gap: 10px;
    justify-content: center;
    background-color: var(--color-body);
}

@media (max-width:768px) {
    #provider {
        flex-direction: column;

    }

    #provider .category {
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        padding-top: 10px;
        border-bottom: 1px solid var(--color-border);
    }
}

@media (min-width:768px) {
    #provider .category {
        padding: 10px;
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
    }
}

#provider .category span {
    background-color: var(--color-bg);
    color: var(--color-text-light);
    cursor: pointer;
    white-space: nowrap;
    border: 3px solid transparent;
    letter-spacing: 2px;
    padding: 5px 10px;

}

/* 分类 span 内是真实链接（点击切换分类） */
#provider .category span a {
    color: inherit;
    text-decoration: none;
    display: block;
}

@media (min-width:768px) {
    #provider .category span {
        border-radius: 5px;
    }
}

@media (max-width:768px) {
    #provider .category span {
        border-radius: 5px 5px 0 0;
    }
}

#provider .category span:hover,
#provider .category span.active {
    border-bottom: 3px solid var(--color-primary);
}

#provider .list {
    padding: 10px;
    list-style: none;
    margin: 0;
}

@media (min-width:1200px) {
    #provider .list {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 10px;
        align-items: start;
    }
}

@media (min-width:768px) and (max-width:1199.999px) {
    #provider .list {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        align-items: start;
    }

}

@media (max-width:767.999px) {
    #provider .list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        align-items: start;
    }
}

#provider .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2px;
    border-radius: 5px;
}

#provider .item img {
    width: 100px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

/* 未设置特色图时的占位块 */
#provider .item .ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 50px;
    border-radius: 5px;
    background-color: var(--color-bg);
    color: var(--color-text-light);
    font-size: 12px;
    overflow: hidden;
    text-align: center;
    padding: 0 4px;
}

#provider .item a {
    color: var(--color-text-light);
}
#provider .item a:hover {
    color: var(--color-primary);
}
#provider .item .empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-light);
    padding: 10px;
}
