@charset "UTF-8";
/* ==========================================================================
   sweetjing —— Typecho 主题主样式
   复刻 sweetjing.cc（Handsome 风格）的三栏自适应布局与视觉语言
   设计令牌取自原站真实计算样式，配色基于 theme-pink + theme-special
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
    /* 布局尺寸（来自原站实测） */
    --app-width: 1110px;
    --header-h: 50px;
    --aside-w: 220px;
    --right-w: 240px;
    --center-max: 650px;

    /* 圆角与间距 */
    --radius-sm: 4px;
    --radius: 5px;
    --radius-md: 6px;
    --radius-pill: 999px;
    --gutter: 15px;

    /* 动效 */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur: .26s;

    /* ---- 浅色（樱桃粉）---- */
    --html-main: #f4e3dd;
    --bg-most: #f4e9e3;
    --bg-most-dk: #a97257;
    --bg-main: #f9f0ed;
    --bg-main-less: #fcf3f1;
    --bg-main-lt-more: #fcf6f5;
    --bg-main-lt: #fef8f7;
    --bg-main-lt-less: #fefdfc;
    --bg-main-lter-more: #f9fcfb;
    --bg-main-lter: #fefffd;
    --text-color: #666;
    --text-color-lt: #9d867c;
    --text-heading: #5b5a5a;
    --text-strong: #333;
    --border-color: rgba(0, 0, 0, .06);
    --shadow-card: 0 0 2px 2px rgba(0, 0, 0, .13);
    --shadow-hover: 0 6px 18px -4px rgba(169, 114, 87, .28);
    --code-bg: #f6f2f0;
    --mark-bg: #fce9d4;
    --accent: #a97257;
    --accent-soft: rgba(169, 114, 87, .14);
}

html[data-theme="dark"] {
    --html-main: #17181a;
    --bg-most: #303236;
    --bg-most-dk: #a97257;
    --bg-main: #1e2023;
    --bg-main-less: #212326;
    --bg-main-lt-more: #24262a;
    --bg-main-lt: #26282c;
    --bg-main-lt-less: #2a2c30;
    --bg-main-lter-more: #2c2e32;
    --bg-main-lter: #2b2d31;
    --text-color: #c6c8cc;
    --text-color-lt: #8b8d92;
    --text-heading: #e3e5e8;
    --text-strong: #f2f3f5;
    --border-color: rgba(255, 255, 255, .08);
    --shadow-card: 0 0 2px 2px rgba(0, 0, 0, .5);
    --shadow-hover: 0 6px 18px -4px rgba(0, 0, 0, .6);
    --code-bg: #22242a;
    --mark-bg: #4a3a2c;
    --accent-soft: rgba(169, 114, 87, .24);
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--html-main);
    /* 用 clip 而不是 hidden：不会新建滚动容器，position: sticky 依然生效 */
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--html-main);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Sans Pro", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.42857143;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-heading);
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
        border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

a:hover {
    color: var(--bg-most-dk);
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

svg {
    display: block;
}

code, pre {
    font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, "Courier New", monospace;
}

/* 工具类 */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sj-skip-link:focus {
    position: fixed !important;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 8px 14px;
    background: var(--bg-most-dk);
    color: #fff;
    border-radius: var(--radius);
    z-index: 999;
}

.text-muted { color: var(--text-color-lt); }
.text-title { color: var(--text-color); }
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.l-h-2x { line-height: 2; }
.m-n { margin: 0 !important; }
.font-thin { font-weight: 300; }
.text-center { text-align: center; }
.hidden-xs { display: block; }
.visible-xs { display: none !important; }
.pull-left { float: left; }
.pull-right { float: right; }
.clear::after {
    content: "";
    display: table;
    clear: both;
}

/* --------------------------------------------------------------------------
   3. 总体框架（CSS Grid 三栏）
   -------------------------------------------------------------------------- */
.app {
    position: relative;
    max-width: var(--app-width);
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--aside-w) minmax(0, 1fr);
    grid-template-rows: var(--header-h) 1fr;
    animation: sjFadeIn .5s var(--ease) both;
}

@keyframes sjFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .app { animation: none; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   4. 顶栏
   -------------------------------------------------------------------------- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 120;
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: stretch;
    height: var(--header-h);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .07);
}

html[data-theme="dark"] .app-header {
    box-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.navbar-header {
    flex: 0 0 var(--aside-w);
    width: var(--aside-w);
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border-top-right-radius: var(--radius);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

.navbar-brand .brand-logo {
    max-height: 34px;
    width: auto;
}

.navbar-brand .brand-logo-dark { display: none; }
html[data-theme="dark"] .navbar-brand .brand-logo-day { display: none; }
html[data-theme="dark"] .navbar-brand .brand-logo-dark { display: block; }

.navbar-brand .brand-text {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: .5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 var(--gutter);
    background: var(--bg-main);
}

/* 搜索 */
.searchform {
    margin: 0;
    flex: 0 1 200px;
    min-width: 120px;
}

.searchform .search-input {
    width: 100%;
    height: 30px;
    padding: 5px 15px;
    font-size: 12px;
    color: var(--text-color);
    background: var(--bg-most);
    border: 1px solid transparent;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.searchform .search-input::placeholder { color: var(--text-color-lt); }

.searchform .search-input:focus {
    border-color: var(--bg-most-dk);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.searchform .search-input::-webkit-search-cancel-button { display: none; }

/* 顶栏右侧 */
.nav.navbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav.navbar-right > li {
    position: relative;
    display: flex;
    align-items: center;
}

.sj-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    color: var(--text-color);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.sj-icon-btn svg {
    width: 17px;
    height: 17px;
}

.sj-icon-btn:hover {
    background: var(--bg-most);
    color: var(--bg-most-dk);
}

/* 深浅色按钮图标切换 */
#sj-mode-toggle .icon-sun { display: none; }
html[data-theme="dark"] #sj-mode-toggle .icon-moon { display: none; }
html[data-theme="dark"] #sj-mode-toggle .icon-sun { display: block; }

/* 下拉面板 */
.sj-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 6px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .14), 0 0 0 1px var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    z-index: 60;
}

.sj-dropdown-right { left: auto; right: 0; }

.dropdown.open .sj-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.sj-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 13px;
    white-space: nowrap;
}

.sj-dropdown-item svg { width: 14px; height: 14px; }
.sj-dropdown-item:hover { background: var(--bg-main-lt); color: var(--bg-most-dk); }

/* 统计面板 */
.sj-stat-panel {
    min-width: 320px;
    padding: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    background: var(--bg-main-lt);
    border-radius: var(--radius);
}

.stat-num {
    font-size: 17px;
    font-weight: 600;
    color: var(--bg-most-dk);
}

.stat-label { font-size: 11px; color: var(--text-color-lt); }

.stat-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 96px;
    padding-top: 14px;
}

.stat-bar {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.stat-bar-fill {
    width: 100%;
    min-height: 4px;
    background: linear-gradient(180deg, var(--bg-most-dk), #c78f72);
    border-radius: 3px 3px 1px 1px;
    transition: height .4s var(--ease);
}

.stat-bar-num {
    position: absolute;
    bottom: calc(100% - 12px);
    font-size: 10px;
    color: var(--text-color-lt);
}

.stat-bar-label {
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-color-lt);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. 左侧栏
   -------------------------------------------------------------------------- */
.app-aside {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    background: var(--bg-main);
    border-top-right-radius: var(--radius);
    overflow: hidden;
    z-index: 90;
}

.aside-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.navi-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.navi-wrap::-webkit-scrollbar { width: 4px; }
.navi-wrap::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* 个人名片 */
.aside-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 15px 16px;
    text-align: center;
}

.aside-user .avatar-link {
    display: block;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    transition: transform var(--dur) var(--ease);
}

.aside-user .avatar-link:hover { transform: scale(1.04); }

.aside-user .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aside-nickname {
    margin-top: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-strong);
}

html[data-theme="dark"] .aside-nickname { color: var(--text-heading); }

.aside-signature {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-color-lt);
    line-height: 1.5;
}

/* 主导航 */
.navi { padding: 0 10px; }

.nav-sub-title {
    padding: 8px 10px 4px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color-lt);
}

.nav > li > .nav-link,
.nav-sub > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    margin-bottom: 2px;
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-color);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav > li > .nav-link:hover,
.nav-sub > li > a:hover,
.nav > li > .nav-link.active {
    background: var(--bg-most);
    color: var(--bg-most-dk);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 0;
    min-width: 20px;
    flex: 0 0 20px;
}

.nav-icon svg {
    width: 16px;
    height: 16px;
}

.nav-arrow {
    margin-left: auto;
    display: inline-flex;
    transition: transform var(--dur) var(--ease);
}

.nav-arrow svg { width: 14px; height: 14px; }

.nav-parent.open > .nav-link .nav-arrow { transform: rotate(90deg); }

.nav-sub {
    max-height: 0;
    overflow: hidden;
    background: var(--bg-main-lt-more);
    border-radius: var(--radius);
    transition: max-height .32s var(--ease);
}

.nav-parent.open > .nav-sub { max-height: 520px; }

.nav-sub > li > a {
    padding: 5px 8px 5px 12px;
    font-size: 14px;
    margin-bottom: 0;
}

.nav-sub-text { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 徽标 */
.badge {
    display: inline-block;
    min-width: 18px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    text-align: center;
    background: var(--bg-most-dk);
    border-radius: var(--radius-sm);
}

.nav-sub .badge { flex: 0 0 auto; }

/* 侧栏底部图标 */
#left_footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 8px 10px 10px;
    padding: 6px 0;
    background: var(--bg-main-lt);
    border-radius: var(--radius);
}

#left_footer .aside-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border-radius: var(--radius);
    color: var(--text-color);
}

#left_footer .aside-item svg { width: 16px; height: 16px; }
#left_footer .aside-item:hover { background: var(--bg-most); color: var(--bg-most-dk); }

/* 移动端遮罩 */
.sj-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    z-index: 190;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.sj-mask.show { opacity: 1; }

/* --------------------------------------------------------------------------
   6. 主内容区
   -------------------------------------------------------------------------- */
.app-content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.app-content-body { display: block; }

.hbox {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.center-col {
    flex: 1 1 auto;
    min-width: 0;
    max-width: var(--center-max);
}

.center-part {
    background: var(--bg-main-lt);
    padding-bottom: 30px;
    border-top-right-radius: var(--radius);
}

/* 页面标题区 */
.page-header {
    padding: 20px;
    background: var(--bg-main-lt);
    word-break: break-word;
}

.page-header h1 {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.42857143;
    color: var(--text-strong);
    text-shadow: none;
}

html[data-theme="dark"] .page-header h1 { color: var(--text-heading); }

.page-header .indexWords {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-color-lt);
}

.wrapper-md { padding: 20px; }

/* --------------------------------------------------------------------------
   7. 文章卡片（首页 / 归档）
   -------------------------------------------------------------------------- */
.post-list { display: block; }

.post-card {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.post-card-cover {
    display: block;
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--bg-most);
}

.post-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease);
}

.post-card:hover .post-card-cover img { transform: scale(1.04); }

.post-card-body { padding: 15px 30px; }

.post-card-title {
    margin: 5px 0 10px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
}

.post-card-title a { color: var(--text-color); }
.post-card-title a:hover { color: var(--bg-most-dk); }

.post-card-summary {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 2;
    color: var(--text-color-lt);
    word-break: break-word;
}

.post-item-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0 0 0 -5px;
    padding: 6px 10px;
    background: var(--bg-main-lt);
    border-radius: var(--radius);
    font-size: 13px;
    overflow: hidden;
}

.post-item-foot > li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-color-lt);
}

.post-item-foot svg {
    width: 13px;
    height: 13px;
    opacity: .8;
}

.post-item-foot a { color: var(--text-color-lt); }
.post-item-foot a:hover { color: var(--bg-most-dk); }

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 60px 20px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.empty-state svg {
    width: 40px;
    height: 40px;
    color: var(--text-color-lt);
    opacity: .6;
}

.empty-state p { margin: 0; }

/* --------------------------------------------------------------------------
   8. 分页
   -------------------------------------------------------------------------- */
.page-nav-wrap { margin: 20px 0; }

.page-navigator {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    list-style: none;
}

.page-navigator > li > a,
.page-navigator > li > span {
    display: inline-block;
    min-width: 31px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.42857143;
    color: var(--text-color);
    text-align: center;
    background: var(--bg-main-lter);
    border-radius: var(--radius-sm);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-navigator > li > a:hover {
    background: var(--bg-most);
    color: var(--bg-most-dk);
}

.page-navigator > .current > a,
.page-navigator > .current > span {
    background: var(--bg-most-dk);
    color: #fff;
}

.page-navigator .prev a,
.page-navigator .next a { font-size: 13px; }

/* --------------------------------------------------------------------------
   9. 文章详情
   -------------------------------------------------------------------------- */
#small_widgets .entry-title {
    font-size: 30px;
    font-weight: 300;
    color: var(--text-strong);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

html[data-theme="dark"] #small_widgets .entry-title { color: var(--text-heading); }

.entry-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--text-color-lt);
    border-radius: var(--radius);
    opacity: .55;
    transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.entry-tool svg { width: 16px; height: 16px; }
.entry-tool:hover,
.entry-tool.active { opacity: 1; background: var(--bg-most); color: var(--bg-most-dk); }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-color-lt);
}

.entry-meta > li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.entry-meta svg { width: 13px; height: 13px; opacity: .8; }

/* 面包屑 */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 20px;
    padding: 8px 15px;
    font-size: 14px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.breadcrumb > li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--text-color-lt);
    opacity: .6;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
}

.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb .active { color: var(--text-color-lt); }

/* 文章主体 */
.single-post {
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.entry-thumbnail {
    position: relative;
    max-height: 380px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

#post-content {
    padding: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 正文字号切换档位 */
#post-content.font-lg { font-size: 17px; }
#post-content.font-xl { font-size: 19px; }

/* 正文排版 */
#post-content > *:first-child { margin-top: 0; }
#post-content > *:last-child { margin-bottom: 0; }

#post-content h1,
#post-content h2,
#post-content h3,
#post-content h4,
#post-content h5,
#post-content h6 {
    margin: 1.6em 0 .8em;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-heading);
    position: relative;
    scroll-margin-top: calc(var(--header-h) + 12px);
}

#post-content h1 { font-size: 26px; }
#post-content h2 { font-size: 22px; }
#post-content h3 { font-size: 20px; }
#post-content h4 { font-size: 17px; }
#post-content h5 { font-size: 16px; }
#post-content h6 { font-size: 15px; }

#post-content h2::before,
#post-content h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: .92em;
    margin-right: 10px;
    vertical-align: -.08em;
    background: linear-gradient(180deg, var(--bg-most-dk), #d9a184);
    border-radius: 2px;
}

#post-content p { margin: 0 0 1.1em; }

#post-content a {
    color: var(--bg-most-dk);
    border-bottom: 1px solid transparent;
    word-break: break-all;
}

#post-content a:hover {
    border-bottom-color: currentColor;
}

#post-content strong { color: var(--text-strong); font-weight: 600; }

#post-content ul,
#post-content ol {
    margin: 0 0 1.1em 1.4em;
    padding: 0;
}

#post-content ul { list-style: disc; }
#post-content ol { list-style: decimal; }
#post-content li { margin-bottom: .4em; }
#post-content li > ul,
#post-content li > ol { margin-bottom: 0; }

#post-content blockquote {
    margin: 1.2em 0;
    padding: 14px 18px;
    background: var(--bg-main-lt);
    border-left: 4px solid var(--bg-most-dk);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-color-lt);
    font-style: normal;
}

#post-content blockquote > *:last-child { margin-bottom: 0; }

#post-content code {
    padding: 2px 6px;
    font-size: .88em;
    color: #c7254e;
    background: var(--code-bg);
    border-radius: 3px;
}

html[data-theme="dark"] #post-content code { color: #ff8fa3; }

#post-content pre {
    margin: 1.2em 0;
    padding: 16px 18px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.7;
    color: #d8dee9;
    background: #2e3440;
    border-radius: var(--radius-md);
}

#post-content pre code {
    padding: 0;
    color: inherit;
    background: none;
    font-size: inherit;
    white-space: pre;
}

#post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: .6em 0;
}

#post-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px dashed var(--border-color);
}

#post-content mark {
    background: var(--mark-bg);
    color: inherit;
    padding: 0 3px;
    border-radius: 3px;
}

#post-content table {
    width: 100%;
    margin: 1.2em 0;
    border-collapse: collapse;
    font-size: 14px;
    overflow: hidden;
    border-radius: var(--radius);
}

#post-content th,
#post-content td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

#post-content th {
    background: var(--bg-main-lt);
    font-weight: 600;
    color: var(--text-heading);
}

#post-content tr:nth-child(even) td { background: var(--bg-main-lt-less); }

/* 文章底部 */
.entry-footer {
    padding: 0 30px 26px;
    border-top: 1px dashed var(--border-color);
    margin-top: 6px;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 0 0;
}

.entry-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-color-lt);
}

.entry-tags-label svg { width: 13px; height: 13px; }

.entry-tags .label {
    font-size: 13px;
    line-height: 1;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    color: #fff;
}

.entry-tags .label:hover { opacity: .85; color: #fff; }

.entry-copyright {
    margin-top: 18px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-color-lt);
    background: var(--bg-main-lt);
    border-radius: var(--radius);
    word-break: break-all;
}

.entry-copyright a { color: var(--bg-most-dk); }

.entry-reward { margin-top: 18px; text-align: center; }

.btn-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #e08a72, var(--bg-most-dk));
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px -4px rgba(169, 114, 87, .7);
    transition: transform var(--dur) var(--ease);
}

.btn-reward:hover { transform: translateY(-2px); }
.btn-reward svg { width: 15px; height: 15px; }

/* 弹层 */
.sj-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sj-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.sj-modal-body {
    position: relative;
    width: min(320px, 86vw);
    padding: 22px;
    text-align: center;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    animation: sjFadeIn .3s var(--ease) both;
}

.sj-modal-body h4 { margin-bottom: 14px; font-size: 16px; }
.sj-modal-body img { width: 100%; border-radius: var(--radius); }
.sj-modal-body p { margin: 12px 0 0; font-size: 13px; }

.sj-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color-lt);
}

.sj-modal-close:hover { background: var(--bg-most); }
.sj-modal-close svg { width: 15px; height: 15px; }

/* 上一篇 / 下一篇 */
.post-navigation {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.post-navigation > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 16px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.post-navigation .nav-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-color-lt);
}

.post-navigation svg { width: 13px; height: 13px; }
.post-navigation .nav-next .nav-label { justify-content: flex-end; }
.post-navigation .nav-next { text-align: right; }

.post-navigation a {
    display: block;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-navigation .nav-empty { font-size: 13px; color: var(--text-color-lt); }

/* 相关文章 / 最新文章 */
.related-posts {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.related-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 15px;
}

.related-title svg { width: 15px; height: 15px; color: var(--bg-most-dk); }

.related-list > li + li { border-top: 1px dashed var(--border-color); }

.related-list > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
}

.related-list .related-name { flex: 1 1 auto; min-width: 0; }
.related-list .related-date { flex: 0 0 auto; font-size: 12px; }
.related-list svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   10. 文章目录（作为右侧栏的一个小组件）
   -------------------------------------------------------------------------- */
.widget_toc .toc-list {
    max-height: 46vh;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}

.widget_toc .toc-list::-webkit-scrollbar { width: 4px; }
.widget_toc .toc-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.widget_toc .toc-list a {
    display: block;
    padding: 5px 8px;
    font-size: 13px;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget_toc .toc-list a:hover { background: var(--bg-main-lt); }

.widget_toc .toc-list a.active {
    color: var(--bg-most-dk);
    border-left-color: var(--bg-most-dk);
    background: var(--bg-main-lt);
}

.widget_toc .toc-list .toc-h3 a { padding-left: 20px; font-size: 12px; }

.widget_toc .toc-empty {
    padding: 14px 0;
    font-size: 13px;
    text-align: center;
    color: var(--text-color-lt);
}

/* --------------------------------------------------------------------------
   11. 右侧栏
   -------------------------------------------------------------------------- */
.asideBar {
    flex: 0 0 var(--right-w);
    width: var(--right-w);
    max-width: var(--right-w);
    position: sticky;
    top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
    background: var(--bg-main);
    scrollbar-width: thin;
}

.asideBar::-webkit-scrollbar { width: 4px; }
.asideBar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.widget { padding: 20px; }
.widget + .widget { padding-top: 0; }

.widget-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.widget-title svg { width: 14px; height: 14px; color: var(--bg-most-dk); }

.widget-empty {
    padding: 20px 0;
    font-size: 13px;
    text-align: center;
    color: var(--text-color-lt);
}

/* 标签页容器 */
#right_first_section { padding: 20px; }

.nav-tabs {
    position: relative;
    display: flex;
    padding: 0;
    background: var(--bg-main-lt-more);
    border-radius: var(--radius);
    overflow: hidden;
}

.nav-tabs > li { flex: 1 1 0; }

.nav-tabs .tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    color: var(--text-color-lt);
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-tabs .tab-btn svg { width: 16px; height: 16px; }
.nav-tabs .tab-btn:hover { color: var(--bg-most-dk); }

.nav-tabs > li.active .tab-btn {
    color: var(--bg-most-dk);
    background: var(--bg-main-lter);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.navs-slider-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-most-dk);
    border-radius: 2px;
    transition: transform .3s var(--ease), width .3s var(--ease);
    pointer-events: none;
}

.tab-content { margin-top: 12px; }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: sjFadeIn .32s var(--ease) both; }

/* 列表组 */
.list-group { display: block; }

.list-group-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.list-group-item:last-child { border-bottom: 0; padding-bottom: 0; }

.list-group-item .thumb-sm {
    float: left;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    overflow: hidden;
    border-radius: 20%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .16);
}

.list-group-item .thumb-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.list-group-item .clear { overflow: hidden; }

.list-group-item h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-color);
}

.list-group-item h4 a { color: inherit; }
.list-group-item h4 a:hover { color: var(--bg-most-dk); }

.list-group-item small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-color-lt);
}

.list-group-item small svg { width: 12px; height: 12px; }

.comment-item .thumb-sm.avatar img { border-radius: 20%; }

/* 时光机 */
.cross-list > li + li { margin-top: 10px; }

.cross-item a {
    display: block;
    padding: 10px 12px;
    background: var(--bg-main-lt);
    border-radius: var(--radius);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cross-item a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.cross-text {
    display: block;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-color);
}

.cross-time {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-color-lt);
}

/* 博客信息 */
.info-list .list-group-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    margin-bottom: -1px;
    font-size: 14px;
    background: var(--bg-main-lt);
    border-bottom: 0;
    border-radius: var(--radius);
}

.info-list .blog-info-icons {
    display: inline-flex;
    color: var(--text-color-lt);
}

.info-list .blog-info-icons svg { width: 14px; height: 14px; }
.info-list .badge { margin-left: auto; font-size: 12px; }

/* 标签云 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: var(--bg-main-lt);
    border-radius: var(--radius-md);
}

.tags .label {
    display: inline-block;
    padding: 3px 7px;
    font-size: 13px;
    line-height: 1;
    color: #fff;
    border-radius: var(--radius-sm);
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.tags .label:hover {
    transform: translateY(-2px);
    opacity: .88;
    color: #fff;
}

/* --------------------------------------------------------------------------
   12. 评论区
   -------------------------------------------------------------------------- */
.comments-area {
    margin-top: 20px;
    padding: 20px 24px 24px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.comments-head { margin-bottom: 14px; }

.comments-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
}

.comments-title svg { width: 16px; height: 16px; color: var(--bg-most-dk); }

.comment-list,
.comment-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    position: relative;
    display: flow-root;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-color);
}

.comment-body:last-child { border-bottom: 0; }

.comment-avatar {
    float: left;
    width: 42px;
    height: 42px;
    margin-right: 12px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-main-lt);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-main { overflow: hidden; }

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.comment-author {
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-strong);
}

html[data-theme="dark"] .comment-author { color: var(--text-heading); }

.comment-author a { color: inherit; }
.comment-author a:hover { color: var(--bg-most-dk); }

.comment-badge {
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    background: var(--bg-most-dk);
    border-radius: var(--radius-pill);
}

.comment-time {
    font-size: 12px;
    color: var(--text-color-lt);
}

.comment-awaiting-moderation {
    padding: 1px 8px;
    font-size: 11px;
    font-style: normal;
    color: #b26a00;
    background: var(--mark-bg);
    border-radius: var(--radius-pill);
}

.comment-content {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-color);
    word-break: break-word;
}

.comment-content > *:last-child { margin-bottom: 0; }

.comment-content img {
    max-height: 120px;
    border-radius: var(--radius);
}

.comment-reply {
    margin-top: 6px;
    font-size: 12px;
}

.comment-reply a { color: var(--text-color-lt); }
.comment-reply a:hover { color: var(--bg-most-dk); }

.comment-children {
    margin: 6px 0 0 54px;
    padding-left: 14px;
    border-left: 2px solid var(--border-color);
}

.comment-children .comment-body { padding: 12px 0; }

.comments-empty { padding: 26px 0; text-align: center; }

/* 评论表单 */
.respond { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border-color); }

.respond-title {
    margin-bottom: 14px;
    font-size: 15px;
    text-align: center;
    color: var(--text-color);
}

.cancel-comment-reply { min-height: 18px; margin-bottom: 8px; font-size: 13px; }

#cancel-comment-reply-link { color: var(--text-color-lt); }
#cancel-comment-reply-link:hover { color: var(--bg-most-dk); }

.comment-logged { font-size: 13px; color: var(--text-color-lt); }

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.form-group { margin-bottom: 12px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-color-lt);
}

.form-group label.required::after {
    content: " *";
    color: #d9534f;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-color);
    background: var(--bg-main-lter);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

html[data-theme="dark"] .form-control { background: var(--bg-main-less); }

.form-control:focus {
    border-color: var(--bg-most-dk);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-control::placeholder { color: var(--text-color-lt); opacity: .75; }

textarea.form-control {
    min-height: 130px;
    resize: vertical;
    line-height: 1.75;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 26px;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #e08a72, var(--bg-most-dk));
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px -4px rgba(169, 114, 87, .7);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -6px rgba(169, 114, 87, .85); }
.btn-submit:active { transform: translateY(0); }
.btn-submit svg { width: 15px; height: 15px; }

.form-tip { font-size: 12px; }

/* --------------------------------------------------------------------------
   13. 页脚
   -------------------------------------------------------------------------- */
.app-footer { padding: 10px 10px 0; }

.footer_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    font-size: 13px;
    color: var(--text-color-lt);
    background: var(--bg-main-lter);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.footer-link:hover { color: var(--bg-most-dk); }

/* 返回顶部 */
.sj-float-btn {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 150;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--bg-most-dk);
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .16), 0 0 0 1px var(--border-color);
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.sj-float-btn[hidden] { display: none; }
.sj-float-btn:hover { transform: translateY(-3px); }
.sj-float-btn svg { width: 18px; height: 18px; }

/* 右侧栏开关（平板 / 窄屏形态） */
.sj-right-toggle {
    top: 50%;
    bottom: auto;
    right: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 46px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sj-right-toggle:hover { transform: translateY(-50%) translateX(-2px); }
.sj-right-toggle svg { width: 16px; height: 16px; }

@media (max-width: 1199px) {
    .sj-right-toggle {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* 轻提示 */
.sj-toast {
    position: fixed;
    left: 50%;
    bottom: 42px;
    z-index: 400;
    padding: 9px 20px;
    font-size: 13px;
    color: #fff;
    background: rgba(40, 34, 31, .9);
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    pointer-events: none;
}

.sj-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* --------------------------------------------------------------------------
   14. 归档时间轴
   -------------------------------------------------------------------------- */
.archive-timeline { display: block; }

.archive-year {
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.archive-year-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--border-color);
}

.archive-year-num {
    font-size: 26px;
    font-weight: 300;
    color: var(--bg-most-dk);
    letter-spacing: 1px;
}

.archive-year-count { font-size: 12px; color: var(--text-color-lt); }

.archive-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
}

.archive-item::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg-most-dk);
    opacity: .45;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.archive-item:hover::before { opacity: 1; transform: scale(1.35); }

.archive-date {
    flex: 0 0 48px;
    font-size: 13px;
    color: var(--text-color-lt);
    font-variant-numeric: tabular-nums;
}

.archive-link { flex: 1 1 auto; min-width: 0; }
.archive-link:hover { color: var(--bg-most-dk); }

.archive-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
}

.archive-comments svg { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   15. 友链
   -------------------------------------------------------------------------- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.link-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-main-lt);
}

.link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.link-info { min-width: 0; }

.link-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-strong);
}

html[data-theme="dark"] .link-name { color: var(--text-heading); }

.link-desc { display: block; margin-top: 2px; font-size: 12px; }

/* --------------------------------------------------------------------------
   16. 动态 / 时光机
   -------------------------------------------------------------------------- */
.moment-card {
    margin-bottom: 16px;
    padding: 18px 22px;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform var(--dur) var(--ease);
}

.moment-card:hover { transform: translateY(-2px); }

.moment-time {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-color-lt);
}

.moment-time svg { width: 13px; height: 13px; }

.moment-content {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-color);
    word-break: break-word;
}

.moment-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    font-size: 12px;
}

.moment-foot a,
.moment-foot span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.moment-foot svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.error-page {
    padding: 50px 30px;
    text-align: center;
    background: var(--bg-main-lter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.error-code {
    font-size: 78px;
    font-weight: 300;
    line-height: 1;
    color: var(--bg-most-dk);
    opacity: .35;
    letter-spacing: 6px;
}

.error-title { margin: 14px 0 8px; font-size: 20px; }
.error-desc { font-size: 14px; }

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 22px 0;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: 14px;
    border-radius: var(--radius-pill);
    transition: transform var(--dur) var(--ease);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #e08a72, var(--bg-most-dk));
    box-shadow: 0 4px 12px -4px rgba(169, 114, 87, .7);
}

.btn-primary:hover { color: #fff; transform: translateY(-2px); }

.btn-ghost {
    color: var(--text-color);
    background: var(--bg-main-lt);
}

.btn-ghost:hover { background: var(--bg-most); }

.btn-primary svg,
.btn-ghost svg { width: 15px; height: 15px; }

.error-search {
    display: flex;
    max-width: 360px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--bg-main-lt);
    border-radius: var(--radius-pill);
}

.error-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 18px;
    font-size: 14px;
    background: none;
    border: 0;
    outline: none;
}

.error-search button {
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-most-dk);
}

.error-search button svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   18. 阅读模式
   -------------------------------------------------------------------------- */
body.read-mode .app-aside,
body.read-mode .asideBar,
body.read-mode .app-footer,
body.read-mode .breadcrumb,
body.read-mode .post-navigation,
body.read-mode .related-posts {
    display: none !important;
}

body.read-mode .app {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
}

body.read-mode .app-header { grid-column: 1 / -1; }
body.read-mode .app-content { grid-column: 1; }
body.read-mode .center-col { max-width: none; }
body.read-mode .entry-thumbnail { max-height: 300px; }

/* --------------------------------------------------------------------------
   19. 响应式
   -------------------------------------------------------------------------- */

/* 中等屏幕：隐藏右侧栏，改为右侧抽屉 */
@media (max-width: 1199px) {
    .app { grid-template-columns: var(--aside-w) minmax(0, 1fr); }

    .asideBar {
        position: fixed;
        top: var(--header-h);
        right: 0;
        bottom: 0;
        max-height: none;
        width: 260px;
        max-width: 260px;
        flex: 0 0 260px;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
        box-shadow: -6px 0 24px rgba(0, 0, 0, .12);
        z-index: 200;
    }

    body.aside-right-open .asideBar {
        transform: none;
        visibility: visible;
    }
}

@media (max-width: 991px) {
    .center-col { max-width: none; }
    .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 平板 / 手机：左侧栏变成抽屉 */
@media (max-width: 767px) {
    .app {
        grid-template-columns: minmax(0, 1fr);
    }

    .hidden-xs { display: none !important; }
    .visible-xs { display: inline-flex !important; }

    .navbar-header {
        flex: 0 0 auto;
        width: auto;
        gap: 6px;
        padding-left: 8px;
    }

    .navbar-brand { padding: 0 10px; }
    .navbar-brand .brand-text { font-size: 17px; }
    .navbar-brand .brand-logo { max-height: 28px; }

    .navbar-collapse { gap: 8px; padding: 0 10px; }

    .searchform { flex: 1 1 auto; }
    .searchform .search-input { height: 28px; font-size: 12px; }

    .sj-stat-panel { min-width: 250px; right: -60px; }

    .app-aside {
        position: fixed;
        top: var(--header-h);
        left: 0;
        bottom: 0;
        width: 240px;
        height: auto;
        border-radius: 0;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
        box-shadow: 6px 0 24px rgba(0, 0, 0, .18);
        z-index: 200;
    }

    body.aside-open .app-aside {
        transform: none;
        visibility: visible;
    }

    .page-header { padding: 16px; }
    .page-header h1,
    #small_widgets .entry-title { font-size: 22px; }

    .wrapper-md { padding: 14px; }

    .center-part { border-radius: 0; }

    .post-card-cover { height: 190px; }
    .post-card-body { padding: 14px 16px; }
    .post-card-title { font-size: 16px; text-align: left; }

    .entry-meta { gap: 12px; font-size: 12px; }
    #post-content { padding: 18px; font-size: 15px; }
    .entry-footer { padding: 0 18px 20px; }

    .post-navigation { flex-direction: column; gap: 10px; }
    .post-navigation .nav-next { text-align: left; }
    .post-navigation .nav-next .nav-label { justify-content: flex-start; }

    .comments-area { padding: 16px; border-radius: 0; margin-top: 14px; }
    .form-row { grid-template-columns: 1fr; }

    .comment-children { margin-left: 12px; padding-left: 10px; }

    .links-grid { grid-template-columns: 1fr; }

    .app-footer { padding: 10px 14px 0; }
    .footer_wrapper { flex-direction: column; align-items: flex-start; }

    .sj-float-btn { right: 14px; bottom: 16px; }

    .crumbs-mobile-hide { display: none; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .sj-stat-panel { min-width: 230px; }
    .error-code { font-size: 60px; }
    .error-actions { flex-direction: column; align-items: stretch; }
    .btn-primary,
    .btn-ghost { justify-content: center; }
}

/* 打印 */
@media print {
    .app-header,
    .app-aside,
    .asideBar,
    .app-footer,
    .comments-area,
    .post-navigation,
    .sj-float-btn,
    .entry-tool {
        display: none !important;
    }

    .app { display: block; max-width: none; }
    .single-post { box-shadow: none; }
}
