/**
 * onetwoone09 模板样式表
 * 暗色控制台风格 · 作者 onetwoone · https://www.cn121.com
 * 主要高亮颜色：#3ddc97 / #5aa9ff
 */
:root {
    --bg: #0b0e1a;
    --bg2: #121629;
    --card: #161b33;
    --card2: #1c2242;
    --hi: #212952;
    --line: #252c52;
    --line2: #1a2040;
    --txt: #f2f4fd;
    --dim: #c3c8ec;
    --dim2: #a2a8d2;
    --green: #3ddc97;
    --blue: #5aa9ff;
    --gray: #a8aecf;
    --red: #ff6b8b;
    --gold: #ffc857;
    --marRadius: 10px;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    /* 兼容部分内联样式 / 插件引用的变量 */
    --conBgcolor: var(--bg2);
    --bodyBground: var(--bg);
    --fontColor: var(--txt);
    --aColor: var(--txt);
    --aHoverColor: var(--green);
    --lightColor: var(--dim);
    --inputBgColor: var(--card);
    --inputBorderColor: var(--line);
    --inputTextColor: var(--txt);
    --buttonBgColor: var(--green);
    --buttonTextColor: #0b0e1a;
    --buttonBorderColor: var(--green);
    --selectBgColor: var(--card);
    --selectBorderColor: var(--line);
    --selectTextColor: var(--txt);
    --dividerColor: var(--line2);
    --borderColor: var(--line);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scrollbar-color: #2b3260 var(--bg)
}

body {
    background: var(--bg);
    color: var(--txt);
    font: 13px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

body::-webkit-scrollbar,
.scroll::-webkit-scrollbar {
    width: 9px;
    height: 9px
}

body::-webkit-scrollbar-thumb,
.scroll::-webkit-scrollbar-thumb {
    background: #2b3260;
    border-radius: 5px
}

body::-webkit-scrollbar-track,
.scroll::-webkit-scrollbar-track {
    background: var(--bg)
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .14s
}

a:focus,
a:hover {
    color: var(--green);
    text-decoration: none
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4
}

p {
    line-height: 1.8
}

img {
    max-width: 100%
}

hr {
    border: none;
    border-top: 1px solid var(--line2)
}

blockquote {
    font-style: italic;
    color: var(--dim);
    border-left: 3px solid var(--green);
    padding: 4px 14px;
    margin: 14px 0;
    background: var(--card);
    border-radius: 0 7px 7px 0
}

.num {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums
}

.small {
    font-size: 12px
}

.m-r-3 {
    margin-right: 3px
}

.m-r-5 {
    margin-right: 5px
}

.m-r-10 {
    margin-right: 10px
}

.bottom-5 {
    margin-bottom: 5px
}

.top-5 {
    margin-top: 5px
}

.unstyle-li {
    list-style: none
}

.no-margin-bottom {
    margin-bottom: 0
}

.shadow-theme {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--marRadius)
}

/* ========== 顶栏 ========== */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 50px;
    background: rgba(11, 14, 26, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: background .25s ease, border-color .25s ease, height .25s ease
}

.blog-header.scrolled {
    height: 40px;
    background: rgba(11, 14, 26, .45);
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(58, 65, 110, .3)
}

.blog-header.scrolled .blog-header-c { height: 40px }

.blog-header.scrolled .logo { font-size: 13px }

.blog-header.scrolled .logo i {
    width: 20px;
    height: 20px;
    font-size: 10.5px;
    border-radius: 5px
}

.blog-header.scrolled .logo s { font-size: 10px }

.blog-header.scrolled .nav-link,
.blog-header.scrolled .tbtn {
    height: 26px;
    font-size: 11.5px
}

.blog-header-c {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    transition: height .25s ease
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap
}

.logo:hover {
    color: var(--txt)
}

.logo i {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-style: normal;
    color: #071120;
    font-weight: 900;
    font-family: var(--mono)
}

.logo-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.logo s {
    text-decoration: none;
    font-size: 11px;
    color: var(--txt);
    border: 1px solid #4a5290;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: .08em;
    font-family: var(--mono);
    background: var(--card)
}

.logo-img img {
    height: 32px;
    width: auto
}

.seek {
    flex: 1;
    max-width: 520px;
    position: relative
}

.seek .ic {
    position: absolute;
    left: 10px;
    top: 9px;
    color: var(--dim2);
    pointer-events: none;
    line-height: 0
}

.seek input {
    width: 100%;
    height: 32px;
    padding: 0 12px 0 32px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--txt);
    font-size: 12.5px;
    outline: none;
    font-family: inherit
}

.seek input:focus {
    border-color: var(--green);
    background: var(--card)
}

.seek input::placeholder {
    color: var(--dim2)
}

.spacer {
    flex: 1
}

/* 顶栏按钮组（表格/卡片/紧凑/状态灯） */
.vbtns {
    display: flex;
    gap: 8px;
    align-items: center
}

.tbtn {
    height: 30px;
    padding: 0 11px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--dim);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: .14s;
    white-space: nowrap
}

.tbtn:hover {
    color: var(--txt);
    border-color: #39417a;
    background: var(--card)
}

.tbtn.on {
    background: var(--green);
    color: #0b0e1a;
    border-color: var(--green);
    font-weight: 600
}

.tbtn-static:hover {
    color: var(--dim);
    border-color: var(--line);
    background: var(--bg2)
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(61, 220, 151, .15);
    animation: pl 2.4s infinite
}

@keyframes pl {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .35
    }
}

/* 导航菜单 */
.blog-header-nav {
    display: flex;
    align-items: center
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0
}

.list-item {
    position: relative;
    list-style: none
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--dim);
    font-size: 12.5px;
    white-space: nowrap;
    cursor: pointer
}

.nav-link:hover {
    color: var(--txt);
    border-color: #39417a;
    background: var(--card)
}

.nav-link[aria-current="page"] {
    background: var(--green);
    color: #0b0e1a;
    border-color: var(--green);
    font-weight: 600
}

.nav-link-login {
    border: 1px solid var(--line);
    background: var(--bg2)
}

.nav-link-login:hover {
    background: var(--green);
    border-color: var(--green);
    color: #0b0e1a
}

.header-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--line)
}

.has-down::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .6
}

.dropdown-menus {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100%;
    padding: 6px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    display: none;
    z-index: 70;
    white-space: nowrap
}

.user-menu:hover .dropdown-menus,
.list-item:hover .dropdown-menus {
    display: block
}

.dropdown-menus .list-item {
    width: 100%
}

.dropdown-menus .nav-link {
    width: 100%;
    height: 32px
}

.user-menu-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

/* 移动端菜单开关 */
.blog-header-toggle {
    display: none;
    width: 34px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--dim);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg2)
}

.blogtoggle-icon {
    width: 26px;
    height: 18px
}

/* ========== 三栏布局 ========== */
.app-wrap {
    min-height: calc(100vh - 50px)
}

.app {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 268px;
    gap: 14px;
    max-width: 1720px;
    margin: 0 auto;
    padding: 14px;
    align-items: start
}

.side {
    position: sticky;
    top: 64px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.rail {
    position: sticky;
    top: 64px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.main-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.main-col-inner {
    min-width: 0
}

/* ========== 面板 ========== */
.panel {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden
}

.panel-flat {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden
}

.ph {
    padding: 9px 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    color: var(--dim2);
    text-transform: uppercase;
    border-bottom: 1px solid var(--line2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, .014)
}

.ph b {
    color: var(--dim);
    font-family: var(--mono);
    font-weight: 600;
    letter-spacing: 0
}

.pb {
    padding: 7px
}

.navi {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--dim);
    font-size: 12.5px;
    transition: .12s;
    position: relative
}

.navi:hover {
    background: var(--card);
    color: var(--txt)
}

.navi.on {
    background: var(--card2);
    color: var(--txt);
    font-weight: 600
}

.navi.on::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--green);
    border-radius: 2px
}

.navi.na {
    cursor: default
}

.navi.na:hover {
    background: transparent;
    color: var(--dim)
}

.navi.na::before {
    content: none
}

.navi em {
    font-style: normal;
    width: 15px;
    text-align: center;
    font-size: 12px;
    opacity: .85;
    flex: none
}

.navi span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.navi b {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--dim2);
    font-weight: 500;
    background: var(--card);
    padding: 1px 5px;
    border-radius: 4px;
    flex: none
}

.navi.on b {
    background: var(--hi);
    color: var(--dim)
}

.navi-ico {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex: none
}

/* ========== 左侧「项目目录」扁平导航 (.cat-tree) ==========
   设计: 主分类/子分类完全无区分 —— 同字号、同字重、同缩进、无任何层级标记;
   每行都是一颗柔光胶囊, 选中态主题绿, 数量用全圆角药丸 */
.cat-tree {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px
}

.cat-tree .navi,
.cat-tree .sub {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--dim);
    cursor: pointer;
    transition: background .14s ease, color .14s ease
}

.cat-tree .sub {
    position: relative
}

/* 未选中行不带任何标记 (移除旧子分类的短横线/圆点) */
.cat-tree .sub::before,
.cat-tree .navi::before {
    content: none
}

/* 选中行左侧的绿色竖条装饰 (主/子分类通用, 与柔光胶囊并存) */
.cat-tree .navi.on::before,
.cat-tree .sub.sub-on::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--green)
}

.cat-tree .navi:hover,
.cat-tree .sub:hover {
    background: rgba(129, 140, 248, .10);
    color: var(--txt)
}

.cat-tree .navi.on,
.cat-tree .sub.sub-on {
    background: rgba(61, 220, 151, .12);
    color: var(--green);
    font-weight: 600
}

.cat-tree .navi span,
.cat-tree .sub-name {
    flex: 1;
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

/* 数量药丸: 所有行同款 */
.cat-tree .navi b.num,
.cat-tree .sub b.num {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--dim2);
    background: rgba(162, 168, 210, .10);
    padding: 0 7px;
    min-width: 24px;
    text-align: center;
    border-radius: 999px;
    transition: background .14s ease, color .14s ease
}

.cat-tree .navi:hover b.num,
.cat-tree .sub:hover b.num {
    color: var(--dim)
}

.cat-tree .navi.on b.num,
.cat-tree .sub.sub-on b.num {
    background: rgba(61, 220, 151, .20);
    color: var(--green)
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px
}

.chip {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--card);
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--dim);
    transition: .12s
}

.chip i {
    font-style: normal;
    opacity: .5
}

.chip:hover {
    border-color: #39417a;
    color: var(--txt)
}

/* 标签面板标题 (纯文本, 不带链接) */
.tag-panel-title {
    color: var(--dim2);
}

/* 「更多标签」链接 (仅胶囊按钮本身可点) */
.tag-more-link {
    text-decoration: none;
}
.tag-more-link b {
    color: #818cf8;
    font-weight: 700;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(129, 140, 248, .12);
    border: 1px solid rgba(129, 140, 248, .3);
    transition: all .18s ease;
    white-space: nowrap;
}
.tag-more-link:hover b {
    background: linear-gradient(135deg, #818cf8, #f472b6);
    color: #fff;
    border-color: transparent;
}

.site-stat .navi b {
    background: var(--hi);
    color: var(--dim)
}

/* ========== KPI ========== */
.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 0
}

.kpi {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    position: relative;
    overflow: hidden
}

.kpi::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blue)
}

.kpi.k1::after {
    background: #5aa9ff
}

.kpi.k2::after {
    background: #10b981
}

.kpi.k3::after {
    background: #06b6d4
}

.kpi.k4::after {
    background: #84cc16
}

.kpi.k5::after {
    background: #64748b
}

.kpi.k6::after {
    background: #8b5cf6
}

.kpi.k7::after {
    background: #eab308
}

.kpi.k8::after {
    background: #f97316
}

.kpi.k9::after {
    background: #14b8a6
}

.kpi.k10::after {
    background: #ef4444
}

.kpi.k11::after {
    background: #1d4ed8
}

.kpi.k12::after {
    background: #ec4899
}

.kl {
    font-size: 11px;
    color: var(--dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px
}

.kv {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.25;
    margin: 1px 0 2px;
    letter-spacing: -.5px
}

.kv small {
    font-size: 12px;
    color: var(--dim);
    font-weight: 400;
    margin-left: 2px
}

.kl u {
    text-decoration: none;
    font-size: 10px;
    color: var(--dim2);
    font-family: var(--mono);
    white-space: nowrap
}

.kbar {
    height: 34px;
    margin-top: 5px
}

.kbar svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible
}

/* 上升折线 */
.k-line {
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: klineDraw 1.1s ease forwards
}

.k-line.zero {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: .3
}

@keyframes klineDraw {
    to { stroke-dashoffset: 0 }
}

.k-dot {
    opacity: 0;
    animation: kdotIn .35s ease .85s forwards
}

@keyframes kdotIn {
    from { opacity: 0; transform: scale(.2) }
    to   { opacity: 1; transform: scale(1) }
}

.k-area {
    transform: scaleY(.4);
    transform-origin: bottom;
    opacity: 0;
    animation: kareaUp .9s cubic-bezier(.22, 1, .36, 1) .15s forwards
}

@keyframes kareaUp {
    to { transform: scaleY(1); opacity: 1 }
}

/* ========== 工具条 ========== */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 9px 9px 0 0;
    border-bottom: none
}

.tcount {
    font-size: 12.5px;
    color: var(--dim)
}

.tcount b {
    color: var(--green);
    font-family: var(--mono)
}

.tnote {
    font-size: 10.5px;
    color: var(--dim);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 50%
}

/* ========== 内容列表行 ========== */
.tblwrap {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 9px 9px;
    overflow: hidden
}

.log-row {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line2);
    transition: background .12s;
    position: relative
}

.log-row:last-child {
    border-bottom: none
}

.log-row:hover {
    background: var(--card)
}

.log-row-cover {
    flex: none;
    width: 150px;
    height: 96px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--line2);
    background: var(--card);
    align-self: center
}

.log-row-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s
}

.log-row:hover .log-row-cover img {
    transform: scale(1.04)
}

.log-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.log-row-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap
}

.loglist-title {
    color: var(--txt)
}

.log-row:hover .loglist-title {
    color: var(--green)
}

.log-topflg {
    font-size: 10px;
    padding: 1.5px 6px;
    border-radius: 4px;
    font-weight: 700;
    background: rgba(255, 107, 139, .15);
    color: var(--red);
    flex: none;
    font-family: var(--mono)
}

.loglist-sort {
    font-size: 10px;
    padding: 1.5px 6px;
    border-radius: 4px;
    background: rgba(90, 169, 255, .14);
    color: var(--blue);
    flex: none
}

.loglist-sort a {
    color: var(--blue)
}

.log-row-desc {
    font-size: 11.5px;
    color: var(--dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.log-row-desc p {
    margin: 0;
    display: inline
}

.log-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.tags {
    font-size: 10px;
    padding: 1.5px 6px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--dim);
    white-space: nowrap
}

.tags:hover {
    color: var(--green);
    border-color: rgba(61, 220, 151, .3)
}

.log-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--dim);
    margin-top: auto
}

.log-info a {
    color: var(--dim)
}

.log-info a:hover {
    color: var(--green)
}

.log-count {
    display: flex;
    gap: 10px
}

.log-count a {
    color: var(--dim2)
}

.log-count a:hover {
    color: var(--green)
}

.log-count .iconfont {
    font-size: 13px
}

.log-row-go {
    flex: none;
    align-self: center;
    height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11.5px;
    color: var(--dim);
    white-space: nowrap;
    transition: .12s
}

.log-row:hover .log-row-go {
    background: var(--green);
    color: #0b0e1a;
    border-color: var(--green)
}

.empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--dim2);
    font-size: 13px
}

.empty b {
    display: block;
    color: var(--dim);
    font-size: 14px;
    margin-bottom: 5px
}

/* 卡片视图（顶栏 ▦ 卡片） */
.tblwrap.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 11px;
    padding: 11px
}

.tblwrap.grid-view .log-row {
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px;
    gap: 8px
}

.tblwrap.grid-view .log-row:hover {
    background: var(--card2);
    border-color: #39417a;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3)
}

.tblwrap.grid-view .log-row-cover {
    width: 100%;
    height: 150px;
    align-self: stretch
}

.tblwrap.grid-view .log-row-desc {
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical
}

.tblwrap.grid-view .log-row-go {
    display: none
}

.tblwrap.grid-view .empty {
    grid-column: 1 / -1
}

/* 紧凑模式（顶栏 ⇕ 紧凑，仅行视图） */
body.dense .tblwrap:not(.grid-view) .log-row {
    padding: 7px 14px
}

body.dense .tblwrap:not(.grid-view) .log-row-cover {
    width: 110px;
    height: 70px
}

body.dense .tblwrap:not(.grid-view) .log-row-title {
    font-size: 13px
}

body.dense .tblwrap:not(.grid-view) .log-row-desc {
    display: none
}

/* ========== 分页 ========== */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    flex-wrap: wrap
}

.pagination {
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center
}

.pagination span {
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--dim2);
    font-family: var(--mono)
}

.pagination a {
    color: var(--dim);
    padding: 4px 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--mono);
    transition: .12s
}

.pagination a:hover {
    color: var(--txt);
    border-color: #39417a
}

#pagenavi {
    text-align: center;
    font-size: 12px;
    padding: 10px 0
}

#pagenavi span {
    padding: 4px 10px;
    margin: 0 3px;
    border-radius: 6px;
    color: var(--dim2);
    font-family: var(--mono)
}

#pagenavi a {
    color: var(--dim);
    padding: 4px 10px;
    margin: 0 3px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--mono)
}

#pagenavi a:hover {
    color: var(--txt);
    border-color: #39417a
}

/* ========== 右栏组件 ========== */
.widget {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden
}

.fresh {
    padding: 6px 11px;
    font-size: 11.5px
}

.fr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--line2)
}

.fr:last-child {
    border-bottom: none
}

.frt {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    flex: none;
    box-shadow: 0 0 0 3px rgba(61, 220, 151, .13)
}

.frn {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dim);
    display: block
}

.frn:hover {
    color: var(--txt)
}

.frd {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim2);
    flex: none
}

.rank {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 4px;
    border-radius: 6px;
    transition: .12s
}

.rank:hover {
    background: var(--card)
}

.rk {
    font-family: var(--mono);
    font-size: 10.5px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--card);
    color: var(--dim2);
    flex: none;
    font-weight: 700
}

.rank:nth-child(1) .rk {
    background: rgba(255, 200, 87, .18);
    color: var(--gold)
}

.rank:nth-child(2) .rk {
    background: rgba(90, 169, 255, .16);
    color: var(--blue)
}

.rank:nth-child(3) .rk {
    background: rgba(61, 220, 151, .14);
    color: var(--green)
}

.rrn {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px
}

.rank-cover {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex: none
}

.comment-info_img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: none;
    border: 1px solid var(--line)
}

.comm-lates-name {
    color: var(--txt);
    font-weight: 600
}

.widget-search {
    display: flex;
    gap: 6px;
    padding: 4px
}

.widget-search .search {
    flex: 1;
    min-width: 0
}

.widget-search input[type="submit"] {
    flex: none;
    width: auto;
    padding: 0 12px;
    height: 32px;
    font-size: 12px
}

.bloggerinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    gap: 6px
}

.bloggerinfo-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--hi)
}

.bloginfo-name b {
    color: var(--txt);
    font-size: 14px
}

.bloginfo-descript {
    font-size: 11.5px;
    color: var(--dim2);
    line-height: 1.6
}

.custom-widget {
    font-size: 12px;
    color: var(--dim);
    padding: 6px
}

.custom-widget ul {
    list-style: none
}

.custom-widget img {
    border-radius: 6px
}

/* 日历 */
.cal_loading {
    margin-bottom: 200px
}

#calendar {
    color: var(--dim);
    font-size: 12px;
    padding: 4px
}

.calendartop {
    letter-spacing: 3px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    color: var(--txt)
}

.calendartop a {
    font-weight: 400
}

.calendar {
    margin-bottom: -10px;
    width: 100%;
    border-collapse: collapse
}

.calendar td {
    text-align: center;
    padding: 1px 6px;
    line-height: 1.7
}

.calendar td a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline
}

.calendar td a:hover {
    color: var(--txt);
    text-decoration: none
}

.calendar tr {
    height: 34px
}

.day {
    color: var(--blue);
    background: rgba(90, 169, 255, .1);
    border-radius: 6px
}

.sun {
    color: var(--dim)
}

.week {
    color: var(--dim2)
}

/* ========== 轮播 ========== */
.slideshow-container {
    position: relative;
    margin-bottom: 0
}

.mySlides {
    display: none
}

/* 仅一张轮播图时无切换脚本，直接常驻显示 */
.mySlides:only-child {
    display: block
}

.fade {
    animation: slidefade 1.2s
}

@keyframes slidefade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.mySlides img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover
}

.mySlides a {
    display: block;
    cursor: pointer
}

.mySlides img.nolink {
    cursor: default
}

.slideshow-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 14px 10px;
    background: linear-gradient(transparent, rgba(11, 14, 26, .9));
    color: var(--txt);
    font-size: 13px;
    font-weight: 600
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(11, 14, 26, .55);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--txt);
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    transition: .14s
}

.slideshow-prev {
    left: 10px
}

.slideshow-next {
    right: 10px
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: var(--green);
    border-color: var(--green);
    color: #0b0e1a
}

/* ========== 文章详情页 ========== */
.page-narrow {
    max-width: 920px;
    margin: 14px auto 24px
}

.article-app {
    grid-template-columns: 210px minmax(0, 1fr) 268px
}

.log-con {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px
}

.log-header {
    margin-bottom: 14px
}

.log-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--txt);
    line-height: 1.4;
    margin-bottom: 8px
}

.log-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11.5px;
    color: var(--dim2);
    border-bottom: 1px solid var(--line2);
    padding-bottom: 10px
}

.log-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.log-meta-item a {
    color: var(--blue)
}

.log-meta-item a:hover {
    color: var(--green)
}

.log-meta-item .iconfont {
    font-size: 13px
}

.log-meta-right a {
    color: var(--dim)
}

.log-meta-right a:hover {
    color: var(--gold)
}

.log-cover {
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line2)
}

.log-cover img {
    width: 100%;
    display: block
}

.log-content {
    font-size: 13.5px;
    color: var(--txt);
    line-height: 1.85
}

.log-content p {
    margin: 12px 0
}

.log-tag-row {
    margin-top: 14px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.log-tag-row .tags {
    font-size: 11px;
    padding: 3px 8px
}

.neighbor-log {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    border-top: 1px solid var(--line2);
    padding-top: 14px
}

.neighbor-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 46%;
    padding: 8px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: .12s
}

.next-log .neighbor-link {
    margin-left: auto;
    text-align: right
}

.neighbor-link:hover {
    border-color: #39417a
}

.neighbor-dir {
    font-size: 10.5px;
    color: var(--dim2)
}

.neighbor-dir .iconfont {
    font-size: 11px
}

.neighbor-title {
    font-size: 12.5px;
    color: var(--txt);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

/* ========== 文章目录(toc) ========== */
.toc-con {
    position: fixed;
    top: 76px;
    width: 250px;
    max-height: calc(100vh - 110px);
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    z-index: 40;
    font-size: 12px
}

.toc-con ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.toc-con li {
    color: var(--dim);
    padding: 3px 6px;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.toc-con li:hover {
    background: var(--card);
    color: var(--txt)
}

.toc-con .close-toc {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--dim2);
    font-size: 12px
}

.toc-con .close-toc:hover {
    color: var(--red)
}

.toc-link {
    margin-left: 6px;
    font-size: 11px;
    color: var(--blue)
}

/* ========== 评论 ========== */
.comment-header {
    margin-top: 18px;
    padding: 9px 12px;
    font-size: 12px;
    color: var(--dim);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px
}

.comment-header b {
    color: var(--txt)
}

.comment {
    display: flex;
    gap: 10px;
    padding: 12px;
    margin-top: 10px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 9px
}

.comment .avatar {
    flex: none
}

.comment .avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line)
}

.comment-infos {
    flex: 1;
    min-width: 0
}

.comment .arrow {
    display: none
}

.comment-infos b {
    color: var(--txt);
    font-size: 12.5px
}

.comment-infos b a {
    color: var(--blue)
}

.comment-time {
    font-size: 10.5px;
    color: var(--dim2);
    margin-left: 8px
}

.comment-content {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--dim);
    word-break: break-word
}

.comment-content img {
    border-radius: 6px
}

.comment-reply {
    margin-top: 6px
}

.com-reply {
    height: 24px;
    padding: 0 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--dim);
    font-size: 11px;
    cursor: pointer;
    transition: .12s
}

.com-reply:hover {
    background: var(--green);
    color: #0b0e1a;
    border-color: var(--green)
}

.comment-children {
    margin-top: 8px;
    background: var(--card)
}

.comment-post {
    margin-top: 16px
}

.commentform textarea {
    min-height: 110px;
    resize: vertical
}

.comment-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 8px
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 8px
}

.captcha-container img {
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--line)
}

.com_submit_p {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center
}

.com_submit_p a {
    color: var(--green)
}

.cancel-reply {
    display: none
}

/* ========== 表单控件 ========== */
input,
textarea {
    background-color: var(--card);
    border: 1px solid var(--line);
    color: var(--txt);
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 13px;
    width: 100%;
    font-family: inherit;
    transition: border-color .14s, box-shadow .14s;
    outline: none
}

input:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(61, 220, 151, .12)
}

input::placeholder,
textarea::placeholder {
    color: var(--dim2)
}

input[type="submit"],
input[type="button"].btn,
button,
.btn {
    background-color: var(--green);
    color: #0b0e1a;
    border: 1px solid var(--green);
    padding: 8px 18px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    width: auto;
    transition: all .14s
}

input[type="submit"]:hover,
button:hover,
.btn:hover {
    filter: brightness(1.08)
}

select {
    background-color: var(--card);
    border: 1px solid var(--line);
    color: var(--txt);
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 12.5px;
    width: 100%;
    outline: none;
    font-family: inherit
}

select:focus {
    border-color: var(--green)
}

/* ========== 登录弹窗 ========== */
.auth-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 15, .7);
    backdrop-filter: blur(4px);
    z-index: 90
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: min(400px, calc(100vw - 32px))
}

.auth-modal-card {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5)
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--dim2);
    font-size: 20px;
    line-height: 1;
    box-shadow: none
}

.auth-modal-close:hover {
    color: var(--txt);
    background: var(--card);
    filter: none
}

.auth-modal-head h3 {
    font-size: 16px;
    color: var(--txt);
    margin-bottom: 12px
}

.auth-modal-alert {
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--red);
    min-height: 0
}

.auth-form-row {
    margin-bottom: 10px
}

.auth-captcha-row {
    display: flex;
    gap: 8px;
    align-items: center
}

.auth-captcha-row img {
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--line);
    flex: none
}

.auth-inline-row {
    display: flex;
    gap: 8px
}

.auth-inline-row input {
    flex: 1;
    min-width: 0
}

.auth-inline-btn {
    flex: none
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--dim);
    margin-bottom: 12px
}

.auth-checkbox input {
    width: auto;
    accent-color: var(--green)
}

.auth-submit {
    width: 100%
}

.auth-modal-switch {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px
}

.auth-modal-switch a {
    color: var(--blue)
}

.auth-modal-switch a:hover {
    color: var(--green)
}

.auth-login-ext {
    margin-top: 10px
}

/* ========== 侧边工具条 ========== */
.side-toolbar {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.side-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--dim);
    cursor: pointer;
    transition: .14s
}

.side-btn:hover {
    background: var(--green);
    color: #0b0e1a;
    border-color: var(--green)
}

/* ========== 页脚 ========== */
.blog-footer {
    max-width: 1720px;
    margin: 0 auto;
    padding: 16px 14px 40px;
    border-top: 1px solid var(--line);
    margin-top: 16px;
    color: var(--dim2);
    font-size: 11.5px
}

.footinfo {
    text-align: center;
    line-height: 2
}

.footinfo a {
    color: var(--dim)
}

.footinfo a:hover {
    color: var(--green)
}

/* ========== 图片放大(zoom.js) ========== */
.zoom-img-wrap {
    position: relative;
    z-index: 110
}

img.zoom-img {
    cursor: zoom-out;
    transition: all .3s
}

.zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(5, 7, 15, .88);
    opacity: 0;
    transition: opacity .3s
}

.zoom-overlay-open .zoom-overlay {
    opacity: 1
}

.zoom-overlay-open,
.zoom-overlay-transitioning {
    overflow: hidden
}

/* ========== 响应式 ========== */
@media(max-width:1500px) {
    .kpis {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:1240px) {
    .app {
        grid-template-columns: 200px minmax(0, 1fr)
    }

    .rail {
        display: none
    }
}

@media(max-width:860px) {
    .kpis {
        grid-template-columns: repeat(2, 1fr)
    }
    .app {
        grid-template-columns: 1fr;
        padding: 10px
    }

    .side {
        position: static;
        flex-direction: row;
        flex-wrap: wrap
    }

    .side .panel {
        flex: 1;
        min-width: 190px
    }

    .blog-header-c {
        gap: 8px;
        flex-wrap: wrap;
        height: auto;
        min-height: 50px;
        padding: 8px 10px
    }

    .blog-header {
        position: static;
        height: auto
    }

    .logo s {
        display: none
    }

    .blog-header-toggle {
        display: flex
    }

    .blog-header-nav {
        display: none;
        width: 100%
    }

    .blog-header-nav.show {
        display: block
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(5, 7, 15, .6);
        display: none
    }

    .nav-overlay.show {
        display: block
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px 0
    }

    .nav-link {
        width: 100%
    }

    .dropdown-menus {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 16px
    }

    .log-row {
        flex-direction: column
    }

    .log-row-cover {
        width: 100%;
        height: 170px;
        align-self: stretch
    }

    .log-row-go {
        display: none
    }

    .log-row-desc {
        white-space: normal
    }

    .comment-info {
        grid-template-columns: 1fr
    }

    .neighbor-link {
        max-width: 100%
    }

    .seek kbd {
        display: none
    }

    .vbtns {
        display: none
    }
}
