/* 站点地图页：Company 组（页面链接一行排列）+ Products 组（分类盒子横向网格）。
   规格取自设计稿：分类盒三列、间距 18、1px #d6ebf7 边、圆角 8、内距 16/18；
   ≤1100 两列、≤700 一列；分类名链分类页，盒内产品只列已发布；
   单分类超过 50 条时盒底追加「View more」。边距用逻辑属性，RTL 自动镜像。 */
.sm-shell {
    max-width: 1366px;
    margin: 0 auto;
    padding-inline: 24px;
}

.sm-group {
    margin-bottom: 40px;
}

.sm-group__title {
    margin: 0 0 18px;
    color: var(--site-neutral-700);
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
}

/* Company 组：胶囊链接一行排列，窄屏自然换行。 */
.sm-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sm-links__item {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #d6ebf7;
    border-radius: 999px;
    background: #fff;
    color: var(--site-neutral-700);
    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.sm-links__item:hover {
    border-color: var(--site-primary);
    color: var(--site-primary);
}

/* Products 组：分类盒子三列网格。 */
.sm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sm-box {
    padding: 16px 18px;
    border: 1px solid #d6ebf7;
    border-radius: 8px;
    background: #fff;
}

.sm-box__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.sm-box__title a {
    color: var(--site-neutral-700);
    text-decoration: none;
}

.sm-box__title a:hover {
    color: var(--site-primary);
}

.sm-box__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-box__list li {
    margin-bottom: 6px;
    font-size: 13.5px;
    line-height: 20px;
}

.sm-box__list a {
    color: #5a7280;
    text-decoration: none;
}

.sm-box__list a:hover {
    color: var(--site-primary);
    text-decoration: underline;
}

/* 超出 50 条上限时盒底追加的分类页链接。 */
.sm-box__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    color: var(--site-primary);
    font-size: 13px;
}

.sm-box__chevron {
    font-size: 11px;
}

/* 空状态：数据库暂不可用或没有任何可展示内容。 */
.sm-empty {
    margin: 0;
    padding: 48px 0 64px;
    color: #98a2b3;
    font-size: 14px;
    text-align: center;
}

/* RTL：「查看更多」箭头翻转指向。 */
[dir="rtl"] .sm-box__chevron {
    display: inline-block;
    transform: scaleX(-1);
}

/* 平板：分类盒两列。 */
@media screen and (max-width: 1100px) {
    .sm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 小平板：分类盒单列。 */
@media screen and (max-width: 700px) {
    .sm-grid {
        grid-template-columns: 1fr;
    }

    .sm-group {
        margin-bottom: 28px;
    }
}

/* 移动：容器内边距收窄。 */
@media screen and (max-width: 600px) {
    .sm-shell {
        padding-inline: 16px;
    }
}
