/* 富贵导航 · 公共样式（所有页面都加载）
   2026-11-04 从 isj.css 拆出：这里保留拆分前的原始排列顺序，
   home / site / article / video 四段按页面单独加载、排在它之后。
   页面专属的响应式规则跟着页面文件走——留在 core 里会被后加载的桌面规则盖掉。 */

/* ============================================================
   富贵导航 · 新模板（参照目标站布局重写，非复制其代码/素材）
   设计令牌：浅灰底 + 白卡片 + 靛蓝主色 + 12px 圆角
   ============================================================ */
:root {
    --bg: #f6f7f9;
    --card: #ffffff;
    --border: #eef0f3;
    --inner-bg: #f7f8fa;
    --text: #222222;
    --muted: #666666;
    --muted2: #999999;
    --chip-bg: #f5f6f8;
    --chip-text: #777777;
    --primary: #2b3a9e;
    --primary-2: #3b82f6;
    --primary-soft: #eef1fb;
    --danger: #ff4d4f;
    --shadow: 0 8px 20px rgba(0, 0, 0, .07);
    --radius: 12px;
}

html[data-theme="dark"],
html.dark {
    --bg: #0f1115;
    --card: #171a21;
    --border: #262b36;
    --inner-bg: #1f242e;
    --text: #e8eaf0;
    --muted: #aab1c2;
    --muted2: #8b93a5;
    --chip-bg: #1f242e;
    --chip-text: #9aa2b3;
    --primary: #8fb4ff;
    --primary-2: #3b82f6;
    --primary-soft: #1f2a44;
    --shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    transition: background-color .25s, color .25s;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { border: 0; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------------- 顶部导航 ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.tb-burger {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 7px;
}
.tb-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--muted);
    margin: 4px 0;
}
.tb-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}
.tb-nav::-webkit-scrollbar { display: none; }
.tb-nav a {
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
    position: relative;
    padding: 14px 0;
    transition: color .15s;
}
.tb-nav a:hover { color: var(--primary); }
.tb-nav a.on { color: var(--text); font-weight: 700; }
.tb-nav a.on::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 7px;
    transform: translateX(-50%);
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.tb-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.tb-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}
.tb-link i { font-size: 14px; }
.tb-link:hover { color: var(--primary); }
.tb-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 190px;
}
.tb-user i { font-size: 15px; }
.tb-user span { overflow: hidden; text-overflow: ellipsis; }
.ys-theme-toggle {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s, color .15s;
    padding: 0;
}
.ys-theme-toggle i { font-size: 17px; }
.ys-theme-toggle:hover { background: var(--inner-bg); color: var(--text); }
.ys-theme-toggle--inline { position: static; }

/* ---------------- 三栏骨架 ---------------- */
.layout {
    max-width: 1520px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
}
.main { min-width: 0; }

/* ---------------- 左侧分类栏 ---------------- */
.side {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px 16px;
    overflow-y: auto;
    scrollbar-width: none;
}
.side::-webkit-scrollbar { display: none; }
.side-close { display: none; }
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 4px;
}
.logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    flex: 0 0 34px;
}
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logo-desc {
    font-size: 10px;
    color: var(--muted2);
    letter-spacing: .4px;
    line-height: 1.4;
}
.side-menu {
    margin-top: 18px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.side-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--muted);
    transition: color .15s, background-color .15s;
}
.side-menu a:hover { color: var(--primary); background: var(--inner-bg); }
.side-menu a.on { color: var(--primary); background: var(--inner-bg); font-weight: 600; }
.side-menu a .mi {
    width: 18px;
    text-align: center;
    font-size: 15px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.side-menu a .mi i { font-size: 16px; }
.zn-side-btns {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}
.zn-side-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 12px;
    background: var(--inner-bg);
    color: var(--muted);
    transition: all .15s;
}
.zn-side-btn:hover { color: var(--primary); background: var(--primary-soft); }
.zn-sb-ico { font-size: 15px; display: inline-flex; }
.zn-sb-tx { flex: 1; }
.zn-sb-arrow { font-size: 13px; opacity: .6; }

/* ---------------- 卡片 & 版块 ---------------- */
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.sec-head .sec-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
}
html[data-theme="dark"] .sec-head .sec-title { color: var(--text); }
.sec-head .sec-title i { font-size: 18px; color: var(--primary); }
.zn-cat-more {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted2);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.zn-cat-more:hover { color: var(--primary); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--chip-text);
    cursor: pointer;
    user-select: none;
    transition: all .15s;
    border: 0;
}
.tab:hover { color: var(--primary); }
.tab.on { background: var(--primary-2); color: #fff; }

/* ---------------- 右侧栏 ---------------- */
.rside {
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rside .panel { margin-bottom: 0; }
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 14px 10px;
}
.stats .st-col + .st-col { border-left: 1px solid var(--border); }
.stats .st-label { font-size: 11px; color: var(--muted2); }
.stats .st-val { margin-top: 5px; font-size: 13px; font-weight: 700; }
.r-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.r-title { font-size: 14px; font-weight: 700; }
.r-act { font-size: 11px; color: var(--muted2); cursor: pointer; }
.r-act:hover { color: var(--primary); }
.visit-list { margin-top: 6px; }
.visit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    background: var(--inner-bg);
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 500;
}
.visit-item img {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    flex: 0 0 20px;
    object-fit: cover;
}
.visit-item .v-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-tip { margin-top: 10px; font-size: 12px; color: var(--muted2); text-align: center; padding: 8px 0; }
.latest-list { margin-top: 4px; }
.latest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12.5px;
}
.latest-item:nth-child(odd) { background: var(--inner-bg); }
.latest-item:hover { background: var(--inner-bg); }
.latest-item .idx {
    flex: 0 0 20px;
    font-size: 12px;
    font-weight: 800;
    font-style: italic;
    color: #c3c8d4;
    text-align: center;
}
.latest-item .idx.t1 { color: var(--danger); }
.latest-item .idx.t2 { color: #ff7a45; }
.latest-item .idx.t3 { color: #faad14; }
.latest-item .ico {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    flex: 0 0 22px;
    overflow: hidden;
    background: var(--chip-bg);
}
.latest-item .ico img { width: 100%; height: 100%; object-fit: cover; }
.latest-item .lt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 视频卡 */
.xjj-stage {
    position: relative;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: #0b0d12;
    aspect-ratio: 1 / 1.05;
}
.xjj-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0b0d12;
}
.xjj-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 10px;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    border-radius: 999px;
    padding: 2px 8px;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.xjj-badge.show { opacity: 1; }
.xjj-btns { display: flex; gap: 8px; margin-top: 8px; }
.xjj-btns button {
    flex: 1;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}
.xjj-btns button:last-child { background: var(--primary); border-color: var(--primary); color: #fff; }
.xjj-btns button:hover { opacity: .9; }

/* 视频卡：默认折叠成一行，点标题展开 */
.xjj-panel.is-collapsed { padding-top: 12px; padding-bottom: 12px; }
.xjj-head { cursor: pointer; user-select: none; border-radius: 8px; }
.xjj-head:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.xjj-head .r-title { display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.xjj-head .r-title i { font-size: 16px; color: var(--primary); }
.xjj-head:hover .r-title { color: var(--primary); }
.xjj-acts { display: inline-flex; align-items: center; gap: 10px; }
.xjj-caret { font-size: 15px; color: var(--muted2); transition: transform .2s ease; }
.xjj-panel:not(.is-collapsed) .xjj-caret { transform: rotate(180deg); }

/*
 * 展开但还没播放时的封面。
 * 有它就不用一进来就拉视频流——右边栏在 10 个页面里都有，自动播放等于每翻一页都重新下载一次。
 */
.xjj-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: radial-gradient(120% 90% at 50% 40%, rgba(17, 20, 28, .55), rgba(11, 13, 18, .88));
    color: #fff;
    font-size: 12px;
    letter-spacing: .5px;
    cursor: pointer;
}
.xjj-cover[hidden] { display: none; }
.xjj-cover i { font-size: 44px; opacity: .9; transition: transform .15s, opacity .15s; }
.xjj-cover:hover i { transform: scale(1.06); opacity: 1; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    margin-top: 24px;
    background: var(--card);
    border-top: 1px solid var(--border);
}
.ft-inner { max-width: 1520px; margin: 0 auto; padding: 30px 20px 24px; }
.ft-tip {
    font-size: 12px;
    color: var(--muted);
    background: var(--inner-bg);
    border: 1px dashed #dbe4f3;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.8;
}
html[data-theme="dark"] .ft-tip { border-color: #333b4d; }
.ft-tip kbd {
    display: inline-block;
    padding: 0 5px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 11px;
    font-family: inherit;
}
.ft-tip em { font-style: normal; margin: 0 2px; }
.ft-links { margin-top: 18px; font-size: 12px; color: var(--muted); }
.ft-links-t { margin-bottom: 6px; }
.friend-links-box { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.friend-links-box .link-item { color: var(--muted2); }
.friend-links-box .link-item:hover { color: var(--primary); }
.ft-bottom {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ft-copy-row { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.ft-copy, .ft-icp { font-size: 12px; color: var(--muted2); }
.ft-icp a:hover { color: var(--primary); }
.ft-nav { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.ft-nav a { font-size: 12px; color: var(--muted2); position: relative; }
.ft-nav a:hover { color: var(--primary); }

/* ---------------- 通用页面头部（面包屑 / Hero） ---------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted2);
    margin: 0 0 12px 4px;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .6; }
.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
    color: #fff;
    padding: 28px 26px;
    margin-bottom: 16px;
}
.page-hero::after {
    content: attr(data-watermark);
    position: absolute;
    right: 18px;
    bottom: -10px;
    font-size: 54px;
    font-weight: 800;
    color: rgba(255, 255, 255, .12);
    letter-spacing: 2px;
    pointer-events: none;
}
.page-hero .ph-kicker {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    margin-bottom: 10px;
}
.page-hero h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
}
.page-hero p { font-size: 13px; opacity: .88; line-height: 1.7; }
.page-hero .ph-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.page-hero .ph-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12px;
}
.page-hero .ph-btn:hover { background: rgba(255, 255, 255, .26); }

/* ---------------- 弹窗（站点反馈） ---------------- */
.isj-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 16px;
}
.isj-modal.show { display: flex; }
.isj-modal-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
    overflow: hidden;
}
.isj-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 700;
}
.isj-modal-close {
    border: 0;
    background: transparent;
    color: var(--muted2);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.isj-modal-body { padding: 16px; }
.isj-modal-body .form-row { margin-bottom: 12px; }
.isj-modal-body label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.isj-modal-body select,
.isj-modal-body input.inp,
.isj-modal-body textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--inner-bg);
    color: var(--text);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 13px;
    outline: none;
}
.isj-modal-body textarea { min-height: 84px; resize: vertical; }
.isj-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.isj-modal-msg { font-size: 12px; color: var(--danger); min-height: 16px; }

/* 分类选择器 */
.cat-suggest {
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    max-height: 210px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.cat-picked {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    background: var(--inner-bg);
    border-radius: 8px;
    padding: 7px 10px;
}
.cat-picked-clear {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--muted2);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 1080px) {
    .layout { grid-template-columns: 180px minmax(0, 1fr); }
    .rside { display: none; }
    .tb-link { display: none; }
}
@media (max-width: 820px) {
    .topbar-inner { padding: 0 14px; gap: 10px; }
    .tb-burger { display: block; }
    .tb-nav { gap: 16px; }
    .tb-nav a { font-size: 13px; }
    .tb-right { gap: 8px; }
    .tb-user span { display: none; }
    .tb-user { padding: 6px 8px; }
    .layout { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 28px; gap: 14px; }
    .side {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 230px;
        max-height: none;
        border-radius: 0 12px 12px 0;
        z-index: 120;
        transform: translateX(-105%);
        transition: transform .25s ease;
        padding: 18px 14px;
    }
    .side.open { transform: translateX(0); }
    .side-close {
        display: flex;
        position: absolute;
        right: 10px;
        top: 10px;
        width: 30px;
        height: 30px;
        border: 0;
        background: var(--inner-bg);
        color: var(--muted);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .isj-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 110;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s;
    }
    .isj-overlay.show { opacity: 1; pointer-events: auto; }
    .panel { padding: 13px; }
    .sec-head .sec-title { font-size: 15px; }
    .ft-inner { padding: 20px 14px; }
    .ft-bottom { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 821px) {
    .isj-overlay { display: none; }
}
@media (max-width: 420px) {
    .tb-nav a:nth-child(n+5) { display: none; }
}

/* ---------------- 左侧栏：展开 / 收起 ---------------- */
.side-head {
    display: flex;
    align-items: center;
    gap: 6px;
}
.side-head .logo { flex: 1 1 auto; min-width: 0; }
.side-toggle {
    display: none;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: color .15s, border-color .15s, background-color .15s;
}
.side-toggle:hover { color: var(--primary); border-color: var(--primary); background: var(--inner-bg); }
.side-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.side-toggle i {
    display: block;
    font-size: 15px;
    transition: transform .2s ease;
}
.side-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 收起态的文字气泡：fixed 定位，不受侧栏 overflow 裁剪 */
.side-tip {
    position: fixed;
    z-index: 200;
    padding: 5px 10px;
    border-radius: 6px;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) translateX(-4px);
    transition: opacity .12s ease, transform .12s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.side-tip.show { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (min-width: 821px) {
    .side-toggle { display: inline-flex; }
    .layout { transition: grid-template-columns .18s ease; }

    .is-side-collapsed .layout { grid-template-columns: 64px minmax(0, 1fr) 260px; }
    .is-side-collapsed .side { padding: 14px 8px 12px; }
    .is-side-collapsed .side-head { flex-direction: column; gap: 10px; }
    .is-side-collapsed .side-head .logo { padding: 0; justify-content: center; }
    .is-side-collapsed .logo-text { display: none; }
    .is-side-collapsed .side-toggle i { transform: rotate(180deg); }
    /* 收起后每项压到 34px 上下，13 个栏目 + 2 个按钮才能在 800px 高的屏幕里不滚动 */
    .is-side-collapsed .side-menu { gap: 2px; }
    .is-side-collapsed .side-menu a { justify-content: center; gap: 0; padding: 7px 0; }
    .is-side-collapsed .side-label { display: none; }
    .is-side-collapsed .side-menu a .mi { flex: 0 0 auto; line-height: 1.1; }
    .is-side-collapsed .zn-sb-ico { line-height: 1.1; }
    .is-side-collapsed .zn-side-btns { gap: 6px; padding-top: 8px; }
    .is-side-collapsed .zn-side-btn { justify-content: center; gap: 0; padding: 8px 0; }
    .is-side-collapsed .zn-sb-tx,
    .is-side-collapsed .zn-sb-arrow { display: none; }
}
@media (min-width: 821px) and (max-width: 1080px) {
    .is-side-collapsed .layout { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (max-width: 820px) {
    .side-toggle { display: none !important; }
}

/* ------------------------------------------------------------
   无刷新换页（template/default/js/isj-pjax.js）
   顶部一条 2px 细进度条 + 新内容 220ms 淡入；不做全屏遮罩
   ------------------------------------------------------------ */
.pjx-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.pjx-bar.on { opacity: 1; }
.pjx-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-2), var(--primary));
    box-shadow: 0 0 8px rgba(59, 130, 246, .45);
    transition: width .2s linear;
}
@keyframes pjxIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
body.pjx-in .main { animation: pjxIn .22s ease-out both; }
@media (prefers-reduced-motion: reduce) {
    body.pjx-in .main { animation: none; }
}

/* 不走无刷新的页面（申请收录、友链申请等表单页）用浏览器跨文档淡入淡出兜底，
   Chrome 126+ 生效，其他浏览器自动忽略 */
@view-transition { navigation: auto; }
