/* 外观切换条
   这是唯一一份「所有主题共享」的样式，因此刻意做得中性：只用灰色与细线，
   不引入主题色。新主题可以整体覆盖 .theme-switch 系列，或只在 theme.json
   里不引用本文件、自行实现。 */

.theme-switch-wrap {
    margin-top: 48px;
    border-top: 1px solid #e6e6e9;
    background: transparent;
}

.theme-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 18px 0 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #6f6f78;
}

.theme-switch__label {
    margin-right: 2px;
    letter-spacing: .1em;
    color: #9a9aa2;
}

.theme-switch__item {
    color: #6f6f78;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color .15s ease, border-color .15s ease;
}

.theme-switch__item:hover {
    color: #18181b;
    border-bottom-color: #c9c9d0;
}

.theme-switch__item.is-active {
    color: #18181b;
    border-bottom-color: #18181b;
}

.theme-switch__divider {
    width: 1px;
    height: 11px;
    background: #e5e5e8;
}

.theme-switch__mode {
    margin-left: 2px;
}

@media (max-width: 767px) {
    .theme-switch-wrap {
        margin-top: 28px;
    }

    .theme-switch {
        gap: 6px 14px;
        padding: 14px 0 16px;
        font-size: 12px;
    }
}

/* 服务端渲染的分页：省略号与移动端的紧凑排布。
   页码本身沿用 classic 的 .pager 样式，这里只补两处它没覆盖的情况。 */
.pagination .pager .ellipsis {
    display: inline-block;
    padding: 0 4px;
    color: #b5b5bb;
    cursor: default;
}

@media (max-width: 600px) {
    .pagination .pager {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }

    /* 手指点得准：最小 34px 的触控方块 */
    .pagination .pager > li > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        min-height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }

    .pagination .pager .ellipsis {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        min-height: 34px;
    }
}
