.site-map-nav {
    max-width: 1200px;
    margin: 0 auto;
    background: url(../images/position.png) 15px center no-repeat var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    line-height: 40px;
    text-indent: 36px;
    font-size: 0.9rem;
    color: var(--text-light) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.site-map-nav strong {
    color: var(--text-light) !important;
}

.site-map-nav a {
    color: var(--text-light) !important;
}

.site-map-nav a:hover {
    color: var(--primary) !important;
}

/* ==================== 新增响应式样式 ==================== */
/* 平板端（768px 以下） */
@media screen and (max-width: 768px) {
    .site-map-nav {
        height: 36px;
        line-height: 36px;
        text-indent: 32px;
        background: var(--bg-dark) url(../images/position.png) no-repeat 12px center;
        background-size: 14px; /* 缩小图标 */
        font-size: 0.9rem;
    }
}

/* 移动端（480px 以下） */
@media screen and (max-width: 480px) {
    .site-map-nav {
        height: 32px;
        line-height: 32px;
        text-indent: 28px;
        background: var(--bg-dark) url(../images/position.png) no-repeat 12px center;
        background-size: 12px;
        font-size: 0.9rem;
        padding-right: 10px; /* 右侧留白 */
    }

    /* 可选：隐藏"当前位置"文字，只保留路径 */
    .site-map-nav strong {
        display: none;
    }

    /* 调整背景位置 */
    .site-map-nav {
        text-indent: 10px;
        background: var(--bg-dark); /* 或保留小图标 */
        padding-left: 10px;
    }
}

/* 超小屏幕（360px 以下） - 只显示当前页面 */
@media screen and (max-width: 360px) {
    .site-map-nav {
        font-size: 0.9rem;
        background: var(--bg-dark); /* 或保留小图标 */
    }

    /* 只保留最后一个链接（当前页面） */
    .site-map-nav a:not(:last-of-type),
    .site-map-nav strong {
        display: none;
    }

    /* 隐藏分隔符 */
    .site-map-nav {
        text-indent: 0;
        background: var(--bg-dark);
        padding-left: 10px;
        text-align: center;
    }
}
