/* ============================================================
   ResKit 后台可视化增强 · AdminBeautify for Typecho 1.3
   ------------------------------------------------------------
   0 变量与基础美化（全后台）
   1 侧边栏管理布局
   2 仪表盘统计面板
   3 主题设置实时预览面板
   4 所见即所得编辑器（双栏预览 / TinyMCE）
   5 表格 · 表单 · 列表 · 登录页细节
   ============================================================ */

/* ============ 0. 变量与基础美化 ============ */
:root {
    --rk-primary: #4f46e5;
    --rk-primary-dark: #3730a3;
    --rk-primary-soft: #eef2ff;
    --rk-bg: #f4f5fa;
    --rk-surface: #ffffff;
    --rk-surface-2: #f8f9fc;
    --rk-border: #e5e7ef;
    --rk-text: #1a1d29;
    --rk-text-2: #5b6478;
    --rk-text-3: #98a1b5;
    --rk-radius: 10px;
    --rk-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 18px rgba(15, 23, 42, .05);
    --rk-sidebar-w: 232px;
    --rk-pv-w: 460px;
    --rk-sidebar-min-w: 68px;
}

body {
    background: var(--rk-bg) !important;
    color: var(--rk-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

a {
    color: var(--rk-primary) !important;
    text-decoration: none !important;
}

a:hover {
    color: var(--rk-primary-dark) !important;
}

main.main > .body.container,
main.main > .container {
    padding-top: 22px;
    padding-bottom: 22px;
    max-width: 100% !important;
}

/* Typecho 的 .row 写死 100vw，加了侧边栏内边距后会横向溢出，必须收敛 */
.row {
    width: 100% !important;
    max-width: 100% !important;
}

.typecho-page-title {
    padding: 0 !important;
    margin: 0 0 16px !important;
    border: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.typecho-page-title h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -.4px;
    color: var(--rk-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.typecho-page-title a {
    padding: 4px 12px !important;
    margin-left: 0 !important;
    background: var(--rk-primary) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 7px !important;
}

.typecho-page-title a:hover {
    background: var(--rk-primary-dark) !important;
    color: #fff !important;
}

/* ============ 1. 侧边栏管理布局 ============ */
@media (min-width: 992px) {
    body.rk-side {
        padding-left: var(--rk-sidebar-w);
        transition: padding-left .18s ease;
    }

    body.rk-side.rk-side-min {
        padding-left: var(--rk-sidebar-min-w);
    }

    body.rk-side header.typecho-head-nav {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 120;
        width: var(--rk-sidebar-w);
        height: 100vh;
        display: block !important;
        padding: 0 !important;
        background: linear-gradient(180deg, #1b1f2e 0%, #14171f 100%) !important;
        border: 0 !important;
        box-shadow: 2px 0 14px rgba(15, 23, 42, .10);
        overflow-y: auto;
        overflow-x: hidden;
        transition: width .18s ease;
    }

    body.rk-side.rk-side-min header.typecho-head-nav {
        width: var(--rk-sidebar-min-w);
    }

    body.rk-side header.typecho-head-nav nav {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    body.rk-side header.typecho-head-nav .menu-bar {
        display: none !important;
    }

    body.rk-side header.typecho-head-nav nav > menu {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        width: 100% !important;
        margin: 0;
        padding: 8px 10px 20px !important;
        background: transparent !important;
        list-style: none;
    }

    body.rk-side header.typecho-head-nav nav > menu > li {
        width: 100%;
        border: 0 !important;
        position: relative;
        flex: 0 0 auto !important;
    }

    body.rk-side header.typecho-head-nav nav > menu > li > a {
        display: flex !important;
        align-items: center;
        gap: 10px;
        height: 40px !important;
        line-height: 40px !important;
        margin: 2px 0;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 8px;
        color: #aeb4c4 !important;
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        transition: background .15s, color .15s;
    }

    body.rk-side header.typecho-head-nav nav > menu > li > a:hover {
        background: rgba(255, 255, 255, .07) !important;
        color: #fff !important;
        font-weight: 400 !important;
    }

    body.rk-side header.typecho-head-nav nav > menu > li.focus > a {
        background: var(--rk-primary) !important;
        color: #fff !important;
        font-weight: 600 !important;
    }

    /* 二级菜单：默认收起，点父级展开 */
    body.rk-side header.typecho-head-nav nav > menu > li > menu {
        position: static !important;
        display: none !important;
        flex-direction: column;
        min-width: 0 !important;
        max-width: none !important;
        margin: 2px 0 6px;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        list-style: none;
    }

    body.rk-side header.typecho-head-nav nav > menu > li.rk-open > menu {
        display: flex !important;
    }

    body.rk-side header.typecho-head-nav nav > menu > li > menu > li > a {
        display: block;
        height: 34px !important;
        line-height: 34px !important;
        padding: 0 12px 0 34px !important;
        border: 0 !important;
        border-radius: 7px;
        color: #8f96a8 !important;
        font-size: 13px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.rk-side header.typecho-head-nav nav > menu > li > menu > li > a:hover {
        background: rgba(255, 255, 255, .06) !important;
        color: #fff !important;
    }

    body.rk-side header.typecho-head-nav nav > menu > li > menu > li.focus > a {
        background: rgba(79, 70, 229, .22) !important;
        color: #c7d2fe !important;
        font-weight: 600 !important;
    }

    /* 有子菜单的父级：右侧小箭头 */
    body.rk-side header.typecho-head-nav nav > menu > li.rk-has-sub > a::after {
        content: "";
        margin-left: auto;
        flex: 0 0 auto;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        opacity: .65;
        transition: transform .18s;
    }

    body.rk-side header.typecho-head-nav nav > menu > li.rk-has-sub.rk-open > a::after {
        transform: rotate(-135deg);
    }

    /* 右上角操作区（用户 / 登出 / 网站）沉到底部 */
    body.rk-side header.typecho-head-nav nav > menu > li.operate {
        flex: 0 0 auto !important;
        margin-top: auto !important;
        padding-top: 10px;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start !important;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    body.rk-side header.typecho-head-nav nav > menu > li.operate a {
        display: flex !important;
        align-items: center;
        height: 34px !important;
        line-height: 34px !important;
        margin: 2px 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 8px;
        color: #8f96a8 !important;
        font-size: 13px !important;
    }

    body.rk-side header.typecho-head-nav nav > menu > li.operate a:hover {
        background: rgba(255, 255, 255, .07) !important;
        color: #fff !important;
    }

    body.rk-side header.typecho-head-nav nav > menu > li.operate a.author {
        color: #c7d2fe !important;
        font-weight: 600;
    }

    /* 折叠态：只留图标 */
    body.rk-side.rk-side-min header.typecho-head-nav nav > menu > li > a {
        justify-content: center;
        padding: 0 !important;
    }

    body.rk-side.rk-side-min .rk-t,
    body.rk-side.rk-side-min .rk-brand__t {
        display: none !important;
    }

    body.rk-side.rk-side-min .rk-brand__btn {
        display: none !important;
    }

    body.rk-side.rk-side-min header.typecho-head-nav nav > menu > li.rk-has-sub > a::after {
        display: none;
    }

    body.rk-side.rk-side-min header.typecho-head-nav nav > menu > li.rk-open > menu {
        display: none !important;
    }
}

/* 品牌区 + 折叠按钮（由 JS 插入） */
.rk-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 14px;
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.rk-brand__logo {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.rk-brand__t {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.2px;
    white-space: nowrap;
    overflow: hidden;
}

.rk-brand__t small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #8f96a8;
    letter-spacing: 0;
}

.rk-brand__btn {
    margin-left: auto;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #c7cad3;
    cursor: pointer;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    padding: 0;
}

.rk-brand__btn:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

/* 菜单项前面的小图标（用 emoji 做，零依赖） */
.rk-ico {
    width: 18px;
    flex: 0 0 18px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
}

/* ============ 2. 仪表盘统计面板 ============ */
/* 统计卡横条：必须跨满外层栅格整行，否则会挤进一个格子里竖着堆 */
.rk-stats {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    width: 100%;
    margin-bottom: 0;
}

.rk-stat {
    position: relative;
    background: var(--rk-surface);
    border: 1px solid var(--rk-border);
    border-radius: var(--rk-radius);
    box-shadow: var(--rk-shadow);
    padding: 16px 18px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}

.rk-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, .08), 0 12px 28px rgba(15, 23, 42, .07);
}

.rk-stat::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -18px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--rk-primary-soft);
}

.rk-stat__l {
    position: relative;
    font-size: 12.5px;
    color: var(--rk-text-3);
    margin-bottom: 4px;
    white-space: nowrap;
}

.rk-stat__n {
    position: relative;
    font-size: 27px;
    font-weight: 800;
    color: var(--rk-text);
    letter-spacing: -.6px;
    line-height: 1.15;
}

.rk-stat__s {
    font-size: 12px;
    color: var(--rk-text-3);
    margin-top: 2px;
}

.rk-stat--warn .rk-stat__n {
    color: #d97706;
}

.rk-stat--warn::after {
    background: #fef3c7;
}

/* 控制台三栏改成自适应卡片网格（显式 3 列，统计卡 / 欢迎区各占整行） */
.typecho-dashboard .typecho-page-main {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

/* Typecho grid.css 给 col-* 写死了百分比宽度，会把它压成一小条，必须清掉 */
.typecho-dashboard .typecho-page-main > [class*="col-"] {
    width: auto !important;
    flex: 1 1 0 !important;
    max-width: none !important;   /* grid.css 写死了 max-width:33.33%，必须清掉 */
    min-width: 0;
}

@media (max-width: 1280px) {
    .typecho-dashboard .typecho-page-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .typecho-dashboard .typecho-page-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

.typecho-dashboard .welcome-board {
    grid-column: 1 / -1;
    background: var(--rk-surface);
    border: 1px solid var(--rk-border);
    border-radius: var(--rk-radius);
    box-shadow: var(--rk-shadow);
    padding: 18px 20px !important;
    margin-bottom: 0 !important;
}

.typecho-dashboard .welcome-board p {
    margin: 0 0 12px !important;
    color: var(--rk-text-2);
    font-size: 14px;
}

.typecho-dashboard .welcome-board em {
    font-style: normal;
    font-weight: 700;
    color: var(--rk-primary);
}

#start-link {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#start-link li {
    margin: 0 !important;
}

#start-link a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1px solid var(--rk-border);
    border-radius: 20px;
    background: var(--rk-surface-2);
    color: var(--rk-text-2) !important;
    font-size: 13px;
    transition: all .15s;
}

#start-link a:hover {
    border-color: var(--rk-primary);
    background: var(--rk-primary-soft);
    color: var(--rk-primary) !important;
}

#start-link .balloon {
    background: #e5484d;
    margin-left: 2px;
}

.typecho-dashboard .latest-link {
    background: var(--rk-surface);
    border: 1px solid var(--rk-border);
    border-radius: var(--rk-radius);
    box-shadow: var(--rk-shadow);
    padding: 16px 18px !important;
    margin: 0 !important;
}

.typecho-dashboard .latest-link h3 {
    margin: 0 0 10px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid var(--rk-border);
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: var(--rk-text) !important;
}

.typecho-dashboard .latest-link ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.typecho-dashboard .latest-link li {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--rk-border);
    font-size: 13.5px;
}

.typecho-dashboard .latest-link li:last-child {
    border-bottom: 0;
}

.typecho-dashboard .latest-link li span {
    flex: 0 0 42px;
    color: var(--rk-text-3);
    font-size: 12.5px;
}

/* ============ 3. 主题设置实时预览面板 ============ */
.rk-pv {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    width: var(--rk-pv-w);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid var(--rk-border);
    box-shadow: -6px 0 24px rgba(15, 23, 42, .10);
    transition: width .2s ease;
}

/* 面板是 fixed 的，必须给 body 让出同等宽度，否则会盖住表单右半边 */
@media (min-width: 1101px) {
    body.rk-pv-on {
        padding-right: var(--rk-pv-w);
        transition: padding-right .2s ease;
    }

    body.rk-pv-on.rk-pv-min {
        padding-right: 46px;
    }
}

.rk-pv.is-min {
    width: 46px;
}

.rk-pv__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    flex: 0 0 46px;
    padding: 0 10px;
    background: #1b1f2e;
    color: #fff;
    font-size: 13px;
}

.rk-pv.is-min .rk-pv__bar {
    padding: 0;
    justify-content: center;
}

.rk-pv__title {
    font-weight: 600;
    white-space: nowrap;
}

.rk-pv__acts {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.rk-pv.is-min .rk-pv__title,
.rk-pv.is-min .rk-pv__acts {
    display: none;
}

.rk-pv__btn {
    height: 26px;
    line-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #e5e7eb !important;
    font-size: 12.5px;
    cursor: pointer;
    white-space: nowrap;
}

.rk-pv__btn:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff !important;
}

.rk-pv__btn.active {
    background: var(--rk-primary);
    border-color: var(--rk-primary);
    color: #fff !important;
}

.rk-pv__toggle {
    width: 30px;
    height: 30px;
    line-height: 28px;
    padding: 0;
    text-align: center;
}

.rk-pv__body {
    flex: 1;
    min-height: 0;
    background: #eef0f5;
    overflow: auto;
    display: flex;
    justify-content: center;
}

.rk-pv.is-min .rk-pv__body {
    display: none;
}

.rk-pv__frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    transition: width .2s ease;
}

.rk-pv.is-phone .rk-pv__frame {
    width: 390px;
    height: 100%;
    box-shadow: 0 0 0 1px var(--rk-border);
}

@media (max-width: 1400px) {
    :root {
        --rk-pv-w: 380px;
    }
}

@media (max-width: 1100px) {
    .rk-pv {
        display: none;
    }
}

/* ============ 4. 编辑器 ============ */
/* 4.1 Markdown 双栏实时预览 */
.rk-ed {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--rk-border);
    border-radius: var(--rk-radius);
    overflow: hidden;
    background: #fff;
}

.rk-ed__src {
    flex: 0 0 50% !important;
    max-width: 50%;
    box-sizing: border-box;
    min-width: 0;
}

.rk-ed__src > p {
    margin: 0 !important;
}

.rk-ed__src textarea {
    width: 100%;
    box-sizing: border-box;
    display: block;
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 460px !important;
    height: 460px;
    padding: 16px 18px !important;
    font-size: 14.5px !important;
    line-height: 1.8 !important;
    resize: vertical;
}

.rk-ed .rk-ed__prev {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 16px 20px !important;
    border: 0 !important;
    border-left: 1px solid var(--rk-border) !important;
    border-radius: 0 !important;
    background: #fbfbfd !important;
    display: block !important;
    overflow: auto;
    max-height: 620px;
}

.rk-ed .rk-ed__prev img {
    max-width: 100%;
}

.rk-ed__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--rk-border);
    background: var(--rk-surface-2);
    font-size: 12.5px;
    color: var(--rk-text-3);
}

.rk-ed__bar .sp {
    flex: 1;
}

/* 4.2 TinyMCE */
.tox-tinymce {
    border-radius: var(--rk-radius) !important;
    border-color: var(--rk-border) !important;
    overflow: hidden;
}

.rk-tm-tip {
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12.5px;
}

/* ============ 5. 表格 / 表单 / 列表 / 登录 ============ */
.typecho-list-table {
    background: var(--rk-surface) !important;
    border: 1px solid var(--rk-border) !important;
    border-radius: var(--rk-radius) !important;
    overflow: hidden !important;
    box-shadow: var(--rk-shadow) !important;
}

.typecho-list-table th {
    background: var(--rk-surface-2) !important;
    color: var(--rk-text-2) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-bottom: 1px solid var(--rk-border) !important;
    padding: 12px 14px !important;
}

.typecho-list-table td {
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--rk-border) !important;
    font-size: 13.5px !important;
}

.typecho-list-table tbody tr {
    transition: background .12s !important;
}

.typecho-list-table tbody tr:hover {
    background: var(--rk-primary-soft) !important;
}

.typecho-list-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.typecho-list-operate {
    background: var(--rk-surface) !important;
    border: 1px solid var(--rk-border) !important;
    border-radius: var(--rk-radius) !important;
    box-shadow: var(--rk-shadow) !important;
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
}

/* 表单项卡片化 */
.typecho-option {
    list-style: none !important;
    background: var(--rk-surface) !important;
    border: 1px solid var(--rk-border) !important;
    border-radius: var(--rk-radius) !important;
    box-shadow: var(--rk-shadow) !important;
    padding: 14px 16px !important;
    margin: 0 0 12px !important;
}

.typecho-option.typecho-option-submit {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
}

.typecho-label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: var(--rk-text) !important;
    margin-bottom: 6px !important;
}

.description {
    color: var(--rk-text-3) !important;
    font-size: 12.5px !important;
}

input[type=text], input[type=password], input[type=email],
input[type=url], input[type=number], input[type=search],
textarea, select {
    border: 1px solid var(--rk-border) !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    background: var(--rk-surface) !important;
    color: var(--rk-text) !important;
    box-sizing: border-box !important;
    transition: border-color .15s, box-shadow .15s !important;
}

input[type=text]:focus, input[type=password]:focus,
input[type=email]:focus, input[type=number]:focus,
textarea:focus, select:focus {
    border-color: var(--rk-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12) !important;
}

select {
    height: 38px !important;
}

.btn, .button, input[type=submit] {
    border-radius: 8px !important;
    border: 1px solid var(--rk-border) !important;
    background: var(--rk-surface) !important;
    color: var(--rk-text) !important;
    padding: 8px 16px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all .15s !important;
}

.btn:hover, .button:hover, input[type=submit]:hover {
    border-color: var(--rk-primary) !important;
    color: var(--rk-primary) !important;
    background: var(--rk-primary-soft) !important;
}

.btn.primary, .primary[type=submit], button.primary {
    background: var(--rk-primary) !important;
    border-color: var(--rk-primary) !important;
    color: #fff !important;
}

.btn.primary:hover, .primary[type=submit]:hover, button.primary:hover {
    background: var(--rk-primary-dark) !important;
    border-color: var(--rk-primary-dark) !important;
    color: #fff !important;
}

.btn-warn {
    background: #e5484d !important;
    border-color: #e5484d !important;
    color: #fff !important;
}

.message {
    border-radius: 8px !important;
    border: 0 !important;
    padding: 11px 15px !important;
    font-size: 13.5px !important;
}

.message.success {
    background: #e7f7ef !important;
    color: #0f7a4d !important;
}

.message.error, .message.notice {
    background: #fdecec !important;
    color: #b3352f !important;
}

.typecho-post-option {
    background: var(--rk-surface) !important;
    border: 1px solid var(--rk-border) !important;
    border-radius: var(--rk-radius) !important;
    box-shadow: var(--rk-shadow) !important;
    padding: 16px !important;
    margin-bottom: 14px !important;
}

.typecho-post-area {
    align-items: flex-start;
}

.typecho-pager li a, .typecho-pager li {
    border-radius: 7px !important;
    border: 1px solid var(--rk-border) !important;
    background: var(--rk-surface) !important;
    color: var(--rk-text-2) !important;
    font-size: 13px !important;
}

.typecho-pager li.current a, .typecho-pager li.current {
    background: var(--rk-primary) !important;
    border-color: var(--rk-primary) !important;
    color: #fff !important;
}

.typecho-foot {
    color: var(--rk-text-3) !important;
    font-size: 12.5px !important;
    padding: 20px 0 !important;
}

.typecho-login-wrap {
    background: var(--rk-surface) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .10) !important;
    border: 1px solid var(--rk-border);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d5d9e4;
    border-radius: 9px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b9c0d0;
}

/* 全屏写作时隐藏侧边栏与预览面板 */
body.fullscreen .rk-pv {
    display: none !important;
}
