/* SolarPress 默认主题 style.css —— Neumorphism 新拟物派 */

:root {
    /* 表面 */
    --bg: #e0e5ec;
    --surface: #e0e5ec;
    --bg-alt: #eef1f6;
    --neu-dark: #b8bcc2;
    --neu-light: #ffffff;

    /* 强调色 */
    --primary: #6d5dfc;
    --primary-dark: #5b4ee0;
    --primary-light: #9185ff;

    /* 文字 */
    --text: #333333;
    --text-light: #6b7280;

    /* 阴影：凸起（小/中/大） */
    --raise-sm: 4px 4px 8px var(--neu-dark), -4px -4px 8px var(--neu-light);
    --raise: 6px 6px 12px var(--neu-dark), -6px -6px 12px var(--neu-light);
    --raise-lg: 8px 8px 16px var(--neu-dark), -8px -8px 16px var(--neu-light);

    /* 阴影：凹陷（输入区/按下） */
    --inset-sm: inset 4px 4px 8px var(--neu-dark), inset -4px -4px 8px var(--neu-light);
    --inset: inset 6px 6px 12px var(--neu-dark), inset -6px -6px 12px var(--neu-light);

    /* 雕刻分隔线 */
    --engrave: inset 0 -1px 0 rgba(255,255,255,.65), 0 1px 0 var(--neu-dark);

    --radius: 14px;
    --radius-lg: 18px;
    --max-width: 1140px;
}

/* 暗色新拟物变体：同色系双阴影物理不变 */
[data-theme="dark"] {
    --bg: #2d2f36;
    --surface: #2d2f36;
    --bg-alt: #33363e;
    --neu-dark: #22242a;
    --neu-light: #3a3d47;

    --primary: #8b7dff;
    --primary-dark: #6a5ce0;
    --primary-light: #a89dff;

    --text: #d8dae2;
    --text-light: #9aa0ae;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    transition: background .3s, color .3s;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 阅读进度条 ========== */
.read-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--primary); width: 0; z-index: 200;
    transition: width .1s;
}

/* ========== 顶部导航 ========== */
.site-header {
    background: var(--bg);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 8px 16px -14px var(--neu-dark);
    transition: background .3s;
}
.nav-bar {
    display: flex; align-items: center; height: 64px;
}
.site-logo {
    font-size: 21px; font-weight: 700; color: var(--text);
    margin-right: 36px; white-space: nowrap;
}
.site-logo span { color: var(--primary); }
.site-logo-img { height: 36px; width: auto; display: block; border-radius: 9px; }

.nav-menu { display: flex; gap: 6px; }
.nav-menu a {
    padding: 8px 15px; border-radius: 11px; color: var(--text-light);
    font-size: 14px;
    transition: all .3s ease-in-out;
}
.nav-menu a:hover { color: var(--text); box-shadow: var(--raise-sm); }
.nav-menu a.active { color: var(--primary); box-shadow: var(--inset-sm); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); cursor: pointer; border: none;
    background: var(--bg); font-size: 17px;
    box-shadow: var(--raise-sm);
    transition: all .3s ease-in-out;
}
.icon-btn:hover {
    color: var(--text);
    box-shadow: 3px 3px 6px var(--neu-dark), -3px -3px 6px var(--neu-light);
}
.icon-btn:active { box-shadow: var(--inset-sm); color: var(--primary); }

.search-box {
    display: flex; align-items: center;
    background: var(--bg);
    border-radius: 22px; padding: 8px 16px; width: 200px;
    box-shadow: var(--inset-sm);
    transition: box-shadow .3s ease-in-out;
}
.search-box:focus-within {
    box-shadow: inset 2px 2px 4px var(--neu-dark), inset -2px -2px 4px var(--neu-light);
}
.search-box input {
    border: none; background: none; outline: none; width: 100%;
    font-size: 13px; color: var(--text);
}
.search-box input::placeholder { color: #9ca3af; }
.nav-toggle { display: none; }

/* ========== 布局 ========== */
.site-main { padding: 30px 0 40px; }
.layout { display: flex; gap: 26px; align-items: flex-start; }
.content-area { flex: 1; min-width: 0; }
.sidebar-area { width: 300px; flex-shrink: 0; }

/* 文章页：无右栏；正文固定阅读宽度，目录显示与否宽度保持一致 */
.article-layout { justify-content: center; }
.article-layout .content-area { flex: 0 1 860px; width: 860px; max-width: 100%; }

/* ========== 文章卡片 ========== */
.post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: var(--raise-lg);
}

.post-title {
    font-size: 21px; font-weight: 700; line-height: 1.4;
    margin-bottom: 10px;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); }

.post-meta {
    display: flex; flex-wrap: wrap; gap: 14px;
    font-size: 13px; color: var(--text-light); margin-bottom: 12px;
}
.post-meta .meta-item { display: flex; align-items: center; gap: 4px; }
.post-meta .top-flag {
    background: rgba(255,107,107,.16); color: #e05252; padding: 1px 8px;
    border-radius: 10px; font-size: 11px;
}

.post-cover {
    border-radius: 12px; overflow: hidden; margin-bottom: 14px;
    max-height: 280px; box-shadow: var(--raise-sm);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-excerpt { color: var(--text-light); font-size: 14.5px; }

.post-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
    font-size: 12px; padding: 4px 12px; border-radius: 11px;
    background: rgba(109,93,252,.1); color: var(--text-light);
    transition: all .3s ease-in-out;
}
.tag-link:hover { background: var(--primary); color: #fff; }

.read-more {
    display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500;
    color: var(--primary);
}
.read-more:hover { color: var(--primary-dark); }

/* ========== 文章详情排版 ========== */
.article-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg); padding: 36px 42px;
    box-shadow: var(--raise-lg);
}
.article-header { margin-bottom: 24px; padding-bottom: 22px; box-shadow: var(--engrave); }
.article-header h1 { font-size: 30px; line-height: 1.35; margin-bottom: 14px; }

.article-body { font-size: 16px; }
.article-body p { margin: 16px 0; }
.article-body h2 { font-size: 23px; margin: 32px 0 14px; padding-top: 10px; }
.article-body h3 { font-size: 19px; margin: 26px 0 12px; }
.article-body h4 { font-size: 17px; margin: 22px 0 10px; }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 26px; }
.article-body li { margin: 6px 0; }
.article-body blockquote {
    background: var(--bg);
    padding: 14px 20px; margin: 18px 0;
    color: var(--text-light); border-radius: var(--radius);
    box-shadow: var(--inset-sm);
}
.article-body img { border-radius: 12px; margin: 10px 0; box-shadow: var(--raise-sm); }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body hr { border: none; height: 2px; border-radius: 2px; margin: 28px 0;
    box-shadow: inset 1px 1px 2px var(--neu-dark), inset -1px -1px 2px var(--neu-light); }

/* 表格 */
.article-body table {
    width: 100%; border-collapse: collapse; margin: 18px 0;
    display: block; overflow-x: auto;
}
.article-body th, .article-body td {
    border-bottom: 1px solid rgba(184,188,194,.5); padding: 10px 14px; text-align: left;
}
:root[data-theme="dark"] .article-body th,
:root[data-theme="dark"] .article-body td { border-bottom-color: rgba(58,61,71,.8); }
.article-body th { color: var(--text-light); font-weight: 600; }

/* 行内代码与代码块 */
.article-body code {
    background: rgba(109,93,252,.12); color: var(--primary-dark);
    padding: 2px 7px; border-radius: 8px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13.5px;
}
[data-theme="dark"] .article-body code { color: #a89dff; }

.code-block-wrap { position: relative; margin: 18px 0; }
.article-body pre {
    background: var(--bg);
    border-radius: var(--radius); padding: 16px 18px; overflow-x: auto;
    box-shadow: var(--inset-sm);
}
.article-body pre code {
    background: none; color: var(--text); padding: 0; font-size: 13.5px; line-height: 1.6;
}
.copy-code-btn {
    position: absolute; top: 10px; right: 10px;
    background: var(--bg); border: none;
    border-radius: 9px; padding: 5px 12px; font-size: 12px;
    color: var(--text-light); cursor: pointer; opacity: 0;
    box-shadow: var(--raise-sm);
    transition: opacity .2s, box-shadow .3s ease-in-out;
}
.copy-code-btn:active { box-shadow: var(--inset-sm); }
.code-block-wrap:hover .copy-code-btn { opacity: 1; }

/* oembed / iframe */
.article-body oembed { display: block; }
.article-body iframe { max-width: 100%; border-radius: var(--radius); margin: 16px 0;
    box-shadow: var(--raise-sm); }

/* 文章目录 TOC（正文左侧独立栏） */
.toc-left-area { width: 190px; flex-shrink: 0; }
.toc-left-box {
    position: sticky; top: 84px;
    background: var(--surface);
    border-radius: var(--radius-lg); padding: 16px 18px;
    font-size: 13.5px;
    box-shadow: var(--raise-lg);
    max-height: calc(100vh - 110px); overflow-y: auto;
}
.toc-left-box .toc-title { font-weight: 600; margin-bottom: 8px; }
.toc-left-box ul { list-style: none; padding-left: 0; }
.toc-left-box li { margin: 5px 0; }
.toc-left-box a { color: var(--text-light); display: block; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.toc-left-box a:hover { color: var(--primary); }
.toc-left-box a.active { color: var(--primary); font-weight: 600; }
.toc-left-box li.toc-h3 { padding-left: 14px; }

/* 上下篇 */
.post-nav {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 30px; padding-top: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 -1px 0 var(--neu-dark);
}
.post-nav a { color: var(--text); font-size: 14px; max-width: 48%; }
.post-nav a:hover { color: var(--primary); }
.post-nav .nav-label { display: block; font-size: 12px; color: var(--text-light); }

/* ========== 侧边栏组件 ========== */
.widget {
    background: var(--surface);
    border-radius: var(--radius-lg); padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: var(--raise-lg);
}
.widget-title {
    font-size: 15px; font-weight: 600; margin-bottom: 14px;
    padding-bottom: 10px;
    box-shadow: var(--engrave);
}

/* 个人简介 */
.profile-widget { text-align: center; }
.profile-avatar {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
    margin-bottom: 10px; box-shadow: var(--raise);
}
.profile-avatar-default {
    width: 84px; height: 84px; border-radius: 50%; margin-bottom: 10px;
    background: var(--primary); color: #fff; font-size: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 6px 6px 12px var(--primary-dark), -6px -6px 12px var(--primary-light);
}
.profile-name { font-weight: 600; font-size: 16px; }
.profile-intro { font-size: 13px; color: var(--text-light); margin: 8px 0 12px; }
.social-links { display: flex; justify-content: center; gap: 11px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); color: var(--text-light);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    box-shadow: var(--raise-sm);
    transition: all .3s ease-in-out;
}
.social-links a:hover { color: var(--text);
    box-shadow: 3px 3px 6px var(--neu-dark), -3px -3px 6px var(--neu-light); }
.social-links a:active { box-shadow: var(--inset-sm); color: var(--primary); }

/* 最新/热门列表 */
.mini-post-list { list-style: none; }
.mini-post-list li {
    padding: 9px 0; border-bottom: 1px dashed rgba(184,188,194,.7);
}
:root[data-theme="dark"] .mini-post-list li { border-bottom-color: rgba(58,61,71,.8); }
.mini-post-list li:last-child { border-bottom: none; }
.mini-post-list a {
    color: var(--text); font-size: 13.5px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-post-list a:hover { color: var(--primary); }
.mini-post-list .mini-date { font-size: 11.5px; color: var(--text-light); }
.mini-post-list .hot-rank {
    display: inline-block; width: 18px; height: 18px; line-height: 18px;
    text-align: center; border-radius: 6px; background: var(--bg);
    font-size: 11px; color: var(--text-light); margin-right: 6px;
    box-shadow: var(--raise-sm);
}
.mini-post-list li:nth-child(1) .hot-rank,
.mini-post-list li:nth-child(2) .hot-rank,
.mini-post-list li:nth-child(3) .hot-rank {
    background: var(--primary); color: #fff;
}

/* 标签云 */
.tag-cloud-box { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.tag-cloud-box a {
    color: var(--text-light); font-size: 13px; padding: 3px 11px;
    border-radius: 10px; background: var(--bg); box-shadow: var(--raise-sm);
    transition: all .3s ease-in-out;
}
.tag-cloud-box a:hover { color: var(--primary); }
.tag-cloud-box a:active { box-shadow: var(--inset-sm); }

/* 站点统计 */
.stat-row {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: center;
}
.stat-cell { background: var(--bg); border-radius: 11px; padding: 10px 4px;
    box-shadow: var(--inset-sm); }
.stat-cell .num { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-cell .label { font-size: 12px; color: var(--text-light); }

/* 分类组件 */
.cat-list { list-style: none; }
.cat-list li {
    display: flex; justify-content: space-between;
    padding: 8px 2px; font-size: 14px; border-bottom: 1px dashed rgba(184,188,194,.7);
}
:root[data-theme="dark"] .cat-list li { border-bottom-color: rgba(58,61,71,.8); }
.cat-list li:last-child { border-bottom: none; }
.cat-list .count { color: var(--text-light); font-size: 12px; }

/* ========== 公告条 / 公告弹窗 ========== */
/* 外层仅作容器留白；公告本体是一张与主题卡片一致的新拟态凸起卡片 */
.sp-ann-bar {
    width: 100%;
    padding: 12px 20px 2px;
    background: transparent;
    animation: spAnnDrop .35s ease both;
}
.sp-ann-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 18px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--raise-sm);
    font-size: 13.5px;
    color: var(--text);
}
.sp-ann-ico {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--inset-sm);
    color: var(--primary);
    font-size: 12px;
}
.sp-ann-viewport {
    flex: 1 1 auto;
    min-width: 0;
    height: 24px;
    overflow: hidden;
}
.sp-ann-track { will-change: transform; }
.sp-ann-item {
    display: block;
    height: 24px;
    line-height: 24px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sp-ann-item:hover { color: var(--primary); }
.sp-ann-close {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: color .2s, box-shadow .2s, background .2s;
}
.sp-ann-close:hover { color: var(--primary); box-shadow: var(--inset-sm); }
@keyframes spAnnDrop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* 弹窗 */
.sp-ann-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sp-ann-modal[hidden] { display: none; }
.sp-ann-mask {
    position: absolute;
    inset: 0;
    background: rgba(40,40,55,.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: spAnnFade .3s ease both;
}
.sp-ann-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--raise-lg);
    padding: 22px 24px 26px;
    animation: spAnnPop .35s cubic-bezier(.22,1,.36,1) both;
}
.sp-ann-modal-close {
    position: absolute;
    top: 8px; right: 10px;
    width: 30px; height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--raise-sm);
    color: var(--text-light);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.sp-ann-modal-close:hover { color: var(--primary); }
.sp-ann-modal-body { font-size: 14.5px; line-height: 1.8; color: var(--text); }
.sp-ann-pop-img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius);
}
.sp-ann-pop-html > :first-child { margin-top: 0; }
.sp-ann-pop-html > :last-child { margin-bottom: 0; }
.sp-ann-pop-html img { max-width: 100%; height: auto; border-radius: var(--radius); }
.sp-ann-pop-html video { max-width: 100%; border-radius: var(--radius); }
.sp-ann-pop-html audio { width: 100%; }
.sp-ann-pop-html iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
}
.sp-ann-cd {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: rgba(128,128,140,.18);
    overflow: hidden;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
.sp-ann-cd i {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
}
.sp-ann-fab {
    position: fixed;
    right: 22px; bottom: 24px;
    z-index: 900;
    width: 46px; height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    font-size: 19px;
    cursor: pointer;
    box-shadow: var(--raise);
    transition: transform .2s, box-shadow .2s;
}
.sp-ann-fab:hover { transform: translateY(-2px); box-shadow: var(--raise-lg); }
.sp-ann-fab[hidden] { display: none; }
@keyframes spAnnFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spAnnPop {
    from { transform: translateY(16px) scale(.96); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
@media (max-width: 640px) {
    .sp-ann-bar { padding: 10px 12px 2px; }
    .sp-ann-bar-inner { padding: 0 14px; height: 38px; font-size: 12.5px; gap: 8px; }
    .sp-ann-viewport { height: 22px; }
    .sp-ann-item { height: 22px; line-height: 22px; }
    .sp-ann-dialog { padding: 18px 16px 22px; border-radius: var(--radius); }
    .sp-ann-fab { right: 14px; bottom: 16px; width: 42px; height: 42px; }
}

/* ========== 评论 ========== */
.comments-section {
    background: var(--surface);
    border-radius: var(--radius-lg); padding: 28px 34px; margin-top: 22px;
    box-shadow: var(--raise-lg);
}
.comments-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }

.comment-list { list-style: none; }
.comment-item { padding: 16px 0; border-bottom: 1px solid rgba(184,188,194,.5); }
:root[data-theme="dark"] .comment-item { border-bottom-color: rgba(58,61,71,.8); }
.comment-item .comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg); color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 15px; flex-shrink: 0;
    box-shadow: var(--raise-sm);
}
.comment-author-name { font-weight: 600; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--text-light); }
.comment-content { font-size: 14.5px; padding-left: 50px; }
.comment-reply {
    margin-left: 50px; margin-top: 6px;
}

/* 文字按钮（评论回复/取消等） */
.btn-link {
    background: none; border: none; padding: 0; cursor: pointer; box-shadow: none;
    color: var(--primary); font-size: 13px;
}
.btn-link:hover { text-decoration: underline; }
.btn-link:active { box-shadow: none; }
.btn-link.danger { color: #e05252; }

/* 空状态 */
.empty-state { text-align: center; padding: 24px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 36px; opacity: .5; margin-bottom: 8px; }
.empty-state p { margin: 0; }

/* 搜索关键词高亮 */
.post-card mark { background: rgba(255, 230, 109, .5); color: inherit;
    padding: 0 2px; border-radius: 5px; }

/* 验证码 */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-img { height: 42px; border-radius: 10px;
    cursor: pointer; box-shadow: var(--raise-sm); }
.captcha-row input { flex: 1; }
.comment-children { list-style: none; margin-left: 50px; margin-top: 8px;
    padding-left: 18px; border-left: 2px solid rgba(184,188,194,.5); }
:root[data-theme="dark"] .comment-children { border-left-color: rgba(58,61,71,.9); }

.comment-form { margin-top: 26px; }
.comment-form .form-row { margin-bottom: 12px; }
.comment-form input, .comment-form textarea {
    width: 100%; padding: 11px 15px; border: none;
    border-radius: 12px; background: var(--bg); color: var(--text);
    font-family: inherit; font-size: 14px;
    box-shadow: var(--inset-sm);
    transition: box-shadow .3s ease-in-out;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    box-shadow: inset 2px 2px 4px var(--neu-dark), inset -2px -2px 4px var(--neu-light);
}
.comment-form .inline-fields { display: flex; gap: 12px; }
.comment-form .inline-fields .form-row { flex: 1; }
.btn-submit {
    background: var(--primary); color: #fff; border: none;
    padding: 11px 30px; border-radius: 12px; cursor: pointer; font-size: 14px;
    box-shadow: 6px 6px 12px var(--primary-dark), -6px -6px 12px var(--primary-light);
    transition: all .3s ease-in-out;
}
.btn-submit:hover {
    box-shadow: 4px 4px 8px var(--primary-dark), -4px -4px 8px var(--primary-light);
}
.btn-submit:active {
    box-shadow: inset 4px 4px 8px var(--primary-dark), inset -4px -4px 8px var(--primary-light);
}

/* ========== 分页 ========== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pagination a, .pagination span {
    padding: 8px 14px; border: none; border-radius: 11px;
    background: var(--bg); font-size: 14px; color: var(--text);
    box-shadow: var(--raise-sm);
    transition: all .3s ease-in-out;
}
.pagination a:hover {
    box-shadow: 3px 3px 6px var(--neu-dark), -3px -3px 6px var(--neu-light);
}
.pagination a:active { box-shadow: var(--inset-sm); }
.pagination .current { background: var(--primary); color: #fff;
    box-shadow: 4px 4px 8px var(--primary-dark), -4px -4px 8px var(--primary-light); }
.pagination .disabled { color: var(--text-light); opacity: .5; box-shadow: none; }

/* ========== 页面标题块（分类/标签/搜索/作者） ========== */
.page-header-box {
    background: var(--surface);
    border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 22px;
    box-shadow: var(--raise-lg);
}
.page-header-box h1 { font-size: 22px; }
.page-header-box .desc { color: var(--text-light); font-size: 14px; margin-top: 4px; }

/* ========== 归档 ========== */
.archive-group { margin-bottom: 28px; }
.archive-month {
    font-size: 17px; font-weight: 600; margin-bottom: 12px;
    padding-bottom: 8px;
    display: flex; justify-content: space-between;
    box-shadow: var(--engrave);
}
.archive-month .count { color: var(--text-light); font-size: 13px; font-weight: 400; }
.archive-list { list-style: none; }
.archive-list li {
    display: flex; gap: 14px; padding: 7px 0; font-size: 14.5px;
}
.archive-list .date { color: var(--text-light); font-size: 13px; white-space: nowrap; }
.archive-list a { color: var(--text); }
.archive-list a:hover { color: var(--primary); }

/* ========== 友链 ========== */
.link-group { margin-bottom: 28px; }
.link-group h3 { font-size: 17px; margin-bottom: 14px; }
.link-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.link-card {
    display: flex; gap: 12px; align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg); padding: 15px 17px;
    box-shadow: var(--raise-lg);
    transition: box-shadow .3s ease-in-out;
}
.link-card:hover {
    box-shadow: var(--raise);
}
.link-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.link-card .link-avatar-default {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--bg); color: var(--text-light);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: var(--raise-sm);
}
.link-card .link-info .name { font-weight: 600; font-size: 14px; color: var(--text); }
.link-card .link-info .desc { font-size: 12px; color: var(--text-light); }

/* ========== 404 ========== */
.error-page { text-align: center; padding: 80px 20px; }
.error-page .code { font-size: 90px; font-weight: 700; color: var(--primary); line-height: 1; }
.error-page p { color: var(--text-light); margin: 14px 0 24px; }

/* ========== 独立单页 ========== */
.article-body.page-body h1 { display: none; }

/* ========== 页脚 ========== */
.site-footer {
    background: var(--bg-alt);
    padding: 30px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    box-shadow: inset 0 8px 16px -14px var(--neu-dark);
}
.site-footer a { color: var(--text-light); }
.site-footer a:hover { color: var(--primary); }
.footer-icp { margin-top: 6px; font-size: 12px; }
.footer-custom { margin-top: 8px; font-size: 13px; color: var(--text-light);
    white-space: pre-wrap; word-break: break-word; max-width: 760px; margin-left: auto;
    margin-right: auto; }

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed; right: 26px; bottom: 26px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    font-size: 19px; cursor: pointer; opacity: 0; pointer-events: none;
    transition: opacity .3s ease-in-out, box-shadow .3s ease-in-out; z-index: 90;
    box-shadow: 6px 6px 12px var(--primary-dark), -6px -6px 12px var(--primary-light);
}
.back-to-top:hover {
    box-shadow: 4px 4px 8px var(--primary-dark), -4px -4px 8px var(--primary-light);
}
.back-to-top:active {
    box-shadow: inset 4px 4px 8px var(--primary-dark), inset -4px -4px 8px var(--primary-light);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* ========== earth 横向文章卡片 ========== */
.card-horizontal { display: flex; padding: 0; overflow: hidden; }
.card-cover {
    width: 38%; flex-shrink: 0; position: relative;
    display: block; min-height: 240px; overflow: hidden;
}
/* 同图虚化铺底：图片比例与封面槽不一致时，露出同图模糊背景而非留白 */
.card-cover::before {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--sp-cover, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(18px) brightness(.78) saturate(1.08);
    transform: scale(1.2);
}
.card-cover img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: contain; display: block;
}
.card-cover .top-flag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(224,82,82,.9); color: #fff;
    padding: 2px 10px; border-radius: 10px; font-size: 11px;
}
.card-content {
    flex: 1; min-width: 0; padding: 22px 26px;
    display: flex; flex-direction: column;
}
.card-cat-row {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 6px; align-items: center;
}
.card-cat-row .cat-name { font-size: 12.5px; font-weight: 500; color: var(--primary); }
.card-cat-row .tag-chip { font-size: 12px; color: var(--text-light); }
.card-cat-row .tag-chip:hover { color: var(--primary); }

.card-title {
    font-size: 20px; font-weight: 700; line-height: 1.4;
    margin: 2px 0 8px; display: flex; gap: 8px;
    align-items: center; flex-wrap: wrap;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-title .top-flag {
    background: rgba(255,107,107,.16); color: #e05252; font-weight: 400;
    padding: 1px 8px; border-radius: 10px; font-size: 11px;
}
.card-excerpt {
    color: var(--text-light); font-size: 14px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 16px; padding-top: 12px;
    font-size: 12.5px; color: var(--text-light);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 -1px 0 var(--neu-dark);
}
.foot-avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    box-shadow: var(--raise-sm); flex-shrink: 0;
}
.foot-avatar-default {
    background: var(--primary); color: #fff; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
}
.foot-name { color: var(--text); font-weight: 500; font-size: 13px; }
.card-foot .spacer { flex: 1; }
.foot-meta { white-space: nowrap; }

/* ========== 个人卡片统计 ========== */
.profile-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin: 6px 0 15px;
}
.ps-cell {
    background: var(--bg); border-radius: 10px;
    padding: 9px 2px; box-shadow: var(--inset-sm);
}
.ps-cell .num {
    font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.3;
}
.ps-cell .label { font-size: 11px; color: var(--text-light); }

.social-links a svg,
.footer-social a svg { width: 17px; height: 17px; }

/* ========== 页脚联系方式 ========== */
.footer-social {
    display: flex; gap: 11px; justify-content: center; margin-bottom: 12px;
}
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--raise-sm); transition: all .3s ease-in-out;
}
.footer-social a:hover { color: var(--text);
    box-shadow: 3px 3px 6px var(--neu-dark), -3px -3px 6px var(--neu-light); }
.footer-social a:active { box-shadow: var(--inset-sm); color: var(--primary); }

/* ========== 微信联系弹窗 ========== */
.sp-modal-mask {
    position: fixed; inset: 0; z-index: 300; padding: 20px;
    background: rgba(60,65,80,.35);
    display: none; align-items: center; justify-content: center;
}
.sp-modal-mask.show { display: flex; }
.sp-modal {
    position: relative; width: 100%; max-width: 320px;
    background: var(--surface); border-radius: 22px;
    padding: 26px 24px 24px; text-align: center;
    box-shadow: var(--raise-lg);
}
.sp-modal-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.sp-modal-body { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sp-modal img {
    width: 210px; height: 210px; object-fit: cover; border-radius: 14px;
    background: var(--bg); box-shadow: var(--inset-sm); display: none;
}
.sp-modal img.show { display: block; }
.sp-modal .wx-id { font-size: 14px; color: var(--text); display: none; }
.sp-modal .wx-id.show { display: block; }
.sp-modal .wx-copy-row { margin-top: 12px; text-align: center; }
.sp-modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bg); color: var(--text-light); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--raise-sm); font-size: 13px;
}
.sp-modal-close:hover { color: var(--text); }
.sp-modal-close:active { box-shadow: var(--inset-sm); }

/* ========== QQ 联系弹窗 ========== */
.qq-modal { max-width: 330px; }
.qq-qr-box {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: var(--bg); border-radius: var(--radius);
    padding: 14px; box-shadow: var(--inset-sm);
}
/* 二维码图片：白底凹陷容器（暗色模式同样白底，保证可扫），
   选择器特异性需压过 .sp-modal img 的默认隐藏规则 */
.sp-modal-body .qq-qr-img {
    display: none;
    width: 168px; height: 168px; object-fit: contain;
    background: #fff; border-radius: 10px; padding: 6px;
    box-sizing: border-box;
}
.sp-modal-body .qq-qr-img.show { display: block; }
.qq-qr-tip { font-size: 12.5px; color: var(--text-light); }
.qq-num-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg); border-radius: 999px;
    padding: 8px 10px 8px 16px; box-shadow: var(--inset-sm);
    max-width: 100%;
}
.qq-num-label {
    font-size: 12px; color: var(--text-light); flex: 0 0 auto;
}
.qq-num-text {
    font-size: 15px; font-weight: 700; letter-spacing: .5px;
    color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.qq-copy-btn {
    flex: 0 0 auto; border: none; cursor: pointer;
    font-size: 12.5px; color: var(--primary);
    background: var(--surface); border-radius: 999px;
    padding: 5px 14px; box-shadow: var(--raise-sm);
}
.qq-copy-btn:active { box-shadow: var(--inset-sm); }
.qq-open-btn {
    display: block; width: 100%; box-sizing: border-box;
    text-decoration: none; text-align: center;
    font-size: 14.5px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius); padding: 12px 16px;
    box-shadow: var(--raise-sm);
}
.qq-open-btn:active { box-shadow: var(--inset-sm); }
.qq-fail-tip { font-size: 12px; line-height: 1.6; color: var(--text-light); }

/* ============================================================
   v1.1 功能适配样式（Earth 对齐）：全部沿用新拟物变量与阴影
   ============================================================ */

/* ========== 文章列表：网格布局 ========== */
/* 轨道必须 minmax(0,1fr)：1fr 默认为 minmax(auto,1fr)，最小宽取 min-content，
   侧栏挤占后第三轨会被 nowrap 脚注等撑破、溢出到侧栏下方 */
.post-list-wrap.pl-single { display: block; }
.post-list-wrap.pl-grid_2,
.post-list-wrap.pl-grid_3 {
    display: grid; gap: 22px;
    width: 100%; min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;   /* 所有行统一等高，卡片尺寸一致 */
    align-items: stretch;
}
.post-list-wrap.pl-grid_3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-grid_2 .post-card,
.pl-grid_3 .post-card {
    margin-bottom: 0;
    min-width: 0;          /* 卡片自身也允许收缩，双保险防轨道撑破 */
    height: 100%;
}

.card-grid { flex-direction: column; padding: 0; overflow: hidden; }
.card-grid .card-cover {
    width: 100%; flex: 0 0 auto; min-height: 0;
    aspect-ratio: 16 / 9;
}
.card-grid .card-content { padding: 18px 20px 20px; }
.card-grid .card-title { font-size: 17px; margin-bottom: 6px; }
.card-grid .card-title a {
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
/* 网格内脚注紧凑化，降低窄卡换行率；grid-auto-rows:1fr 保证即使换行行高也统一 */
.card-grid .card-foot {
    margin-top: auto; gap: 6px;
    padding-top: 10px; font-size: 12px;
}
.card-grid .card-foot .foot-avatar { width: 28px; height: 28px; }
.card-grid.card-no-cover .card-content { padding-top: 22px; }

/* ========== 首页顶部模块 ========== */
.home-hero { margin-bottom: 22px; }

/* 站点标题横幅 */
.hero-title-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--raise-lg);
    padding: 52px 40px; text-align: center;
}
.hero-title { font-size: 34px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.hero-desc {
    color: var(--text-light); font-size: 15px;
    margin: 14px auto 26px; max-width: 620px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
    display: inline-block; padding: 12px 26px; border-radius: 14px;
    background: var(--bg); color: var(--text); font-size: 14px;
    box-shadow: var(--raise-sm); transition: all .3s ease-in-out;
}
.hero-btn:hover { color: var(--primary);
    box-shadow: 3px 3px 6px var(--neu-dark), -3px -3px 6px var(--neu-light); }
.hero-btn:active { box-shadow: var(--inset-sm); }
.hero-btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 6px 6px 12px var(--primary-dark), -6px -6px 12px var(--primary-light);
}
.hero-btn-primary:hover { color: #fff;
    box-shadow: 4px 4px 8px var(--primary-dark), -4px -4px 8px var(--primary-light); }
.hero-btn-primary:active {
    box-shadow: inset 4px 4px 8px var(--primary-dark), inset -4px -4px 8px var(--primary-light);
}

/* 最新一篇大图卡 */
.hero-featured {
    display: flex; background: var(--surface);
    border-radius: var(--radius-lg); box-shadow: var(--raise-lg);
    overflow: hidden; padding: 0;
}
.hf-cover {
    width: 44%; flex-shrink: 0; position: relative;
    display: block; min-height: 300px;
}
.hf-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-cover .top-flag {
    position: absolute; top: 14px; left: 14px;
    background: rgba(224,82,82,.9); color: #fff;
    padding: 3px 11px; border-radius: 10px; font-size: 11px;
}
.hf-body {
    flex: 1; min-width: 0; padding: 32px 34px;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-badge {
    align-self: flex-start;
    font-size: 12px; color: #fff; background: var(--primary);
    padding: 2px 12px; border-radius: 10px;
}
.hf-title { font-size: 24px; line-height: 1.4; margin: 10px 0 12px; }
.hf-title a { color: var(--text); }
.hf-title a:hover { color: var(--primary); }
.hf-excerpt {
    color: var(--text-light); font-size: 14px; line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.hf-body .card-foot { margin-top: 22px; }
.hero-more { font-size: 13px; font-weight: 500; }

/* 最新五篇 Bento 网格 */
.hero-bento {
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px; gap: 16px;
}
.hb-cell {
    position: relative; display: block; border-radius: var(--radius);
    overflow: hidden; background: var(--surface); box-shadow: var(--raise);
}
.hb-cell img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
.hb-cell:hover img { transform: scale(1.05); }
.hb-cell-lg { grid-column: span 2; grid-row: span 2; }
.hb-meta {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 30px 14px 12px;
    background: linear-gradient(transparent, rgba(20,22,30,.62));
    color: #fff;
}
.hb-cat { display: block; font-size: 11px; opacity: .85; margin-bottom: 2px; }
.hb-title {
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    font-size: 12.5px; line-height: 1.5;
}
.hb-cell-lg .hb-title { font-size: 15px; -webkit-line-clamp: 3; }
.hb-no-cover { display: flex; align-items: center; justify-content: center; padding: 18px; }
.hb-no-cover .hb-meta {
    position: static; padding: 0; background: none; color: var(--text);
}
.hb-no-cover .hb-cat { color: var(--primary); }
.hb-no-cover .hb-title { font-size: 13.5px; text-align: center; color: var(--text); }
.hb-no-cover.hb-cell-lg .hb-title { font-size: 18px; }

/* ========== 首页分类筛选条 ========== */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-filter a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 20px; font-size: 13px;
    background: var(--bg); color: var(--text-light);
    box-shadow: var(--raise-sm); transition: all .3s ease-in-out;
}
.cat-filter a:hover { color: var(--primary); }
.cat-filter a:active { box-shadow: var(--inset-sm); }
.cat-filter a.active { color: var(--primary); box-shadow: var(--inset-sm); }
.cat-filter .cf-count { font-size: 11px; opacity: .65; }

/* ========== 文章页：作者卡 / 标签 ========== */
.article-cat-row { margin-bottom: 10px; }
.article-cat-row .cat-name { font-size: 13px; font-weight: 500; }
.post-author-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg); border-radius: var(--radius);
    box-shadow: var(--inset-sm); padding: 13px 18px; margin-top: 4px;
}
.pac-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0; box-shadow: var(--raise-sm);
}
.pac-avatar-default {
    width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); color: #fff; font-size: 19px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 4px 4px 8px var(--primary-dark), -4px -4px 8px var(--primary-light);
}
.pac-info { flex: 1; min-width: 0; }
.pac-name { font-size: 15px; font-weight: 600; color: var(--text); display: block; margin-bottom: 3px; }
.pac-meta {
    display: flex; flex-wrap: wrap; gap: 4px 14px;
    font-size: 12.5px; color: var(--text-light);
}
.pac-actions { display: flex; gap: 10px; flex-shrink: 0; }
.article-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 26px; padding-top: 18px;
    box-shadow: var(--engrave);
}
.at-label { font-size: 13.5px; color: var(--text-light); }

/* ========== 分享弹层 ========== */
.share-modal { max-width: 400px; }
.share-platforms {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px 10px; margin: 6px 0 20px;
}
.sp-item {
    border: none; background: none; cursor: pointer; padding: 0;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-light);
}
.sp-item-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg); color: var(--text); font-size: 15px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--raise-sm); transition: all .3s ease-in-out;
}
.sp-item:hover .sp-item-icon { color: var(--primary); }
.sp-item:active .sp-item-icon { box-shadow: var(--inset-sm); }
.share-link-row { display: flex; gap: 10px; }
.share-link-row input {
    flex: 1; min-width: 0; border: none; border-radius: 11px;
    padding: 10px 14px; font-size: 12.5px; color: var(--text);
    background: var(--bg); box-shadow: var(--inset-sm); outline: none;
}
.share-copy-btn {
    flex-shrink: 0; border: none; cursor: pointer;
    padding: 10px 18px; border-radius: 11px; font-size: 13px;
    background: var(--primary); color: #fff;
    box-shadow: 4px 4px 8px var(--primary-dark), -4px -4px 8px var(--primary-light);
    transition: box-shadow .3s ease-in-out;
}
.share-copy-btn:active {
    box-shadow: inset 4px 4px 8px var(--primary-dark), inset -4px -4px 8px var(--primary-light);
}
.share-wechat-tip {
    display: none; margin-top: 14px; font-size: 12.5px; line-height: 1.7;
    color: var(--text-light); text-align: left;
    background: var(--bg); border-radius: 11px; padding: 10px 14px;
    box-shadow: var(--inset-sm);
}
.share-wechat-tip.show { display: block; }

/* ========== 相关推荐 ========== */
.related-posts {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--raise-lg); padding: 24px 28px; margin-top: 22px;
}
.related-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
    display: block; border-radius: var(--radius); overflow: hidden;
    background: var(--bg); box-shadow: var(--raise-sm);
    transition: box-shadow .3s ease-in-out;
}
.related-card:hover { box-shadow: var(--raise); }
.related-card:active { box-shadow: var(--inset-sm); }
.rc-cover { height: 130px; overflow: hidden; }
.rc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-body { padding: 11px 14px 13px; display: flex; flex-direction: column; gap: 4px; }
.rc-cat { font-size: 11px; color: var(--primary); }
.rc-title {
    font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.related-card:hover .rc-title { color: var(--primary); }
.rc-date { font-size: 11.5px; color: var(--text-light); }
.related-card.no-cover .rc-body { padding-top: 16px; }

/* ========== 侧栏：最新评论 ========== */
.latest-comment-list { list-style: none; }
.latest-comment-list li { margin-bottom: 13px; }
.latest-comment-list li:last-child { margin-bottom: 0; }
.latest-comment-list a { display: flex; align-items: flex-start; gap: 10px; }
.lc-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--bg); color: var(--text-light); font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--raise-sm);
}
.lc-body { flex: 1; min-width: 0; }
.lc-line { font-size: 12.5px; line-height: 1.5; }
.lc-name { font-weight: 600; color: var(--text); margin-right: 5px; }
.latest-comment-list a:hover .lc-name { color: var(--primary); }
.lc-text {
    color: var(--text-light);
    display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden;
}
.lc-article {
    display: block; font-size: 11.5px; color: var(--text-light); opacity: .8;
    margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-date { font-size: 11px; color: var(--text-light); flex-shrink: 0; padding-top: 3px; }

/* ========== 图片灯箱 ========== */
.sp-lightbox {
    position: fixed; inset: 0; z-index: 400; padding: 34px;
    background: rgba(35,38,48,.86);
    display: none; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.sp-lightbox.show { display: flex; }
.sp-lightbox img {
    max-width: 100%; max-height: 86vh; border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.sp-lightbox-caption {
    position: absolute; left: 0; right: 0; bottom: 20px;
    text-align: center; color: rgba(255,255,255,.82); font-size: 13px;
    padding: 0 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ========== 页脚风格二 ========== */
.footer-style_2 .footer-brand {
    font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.footer-style_2 .footer-slogan { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.footer-nav-row {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 4px; margin-bottom: 16px;
}
.footer-nav-row a {
    padding: 6px 14px; border-radius: 10px; font-size: 13px;
    color: var(--text-light); transition: all .3s ease-in-out;
}
.footer-nav-row a:hover { color: var(--text); box-shadow: var(--raise-sm); }

/* ========== 响应式 ==========
   断点策略（与 1140 容器 / 300 侧栏 / 26 gap 配套）：
   - >1180px：侧栏与列表并排，三列卡片实际宽 ≥256px，保持三列
   - ≤1180px：侧栏下移全宽，列表独占整行，三列仍可稳定排列
   - ≤860px ：三列降两列
   - ≤700px ：网格统一单列 + 移动导航 */
@media (max-width: 1180px) {
    .layout { flex-direction: column; }
    .sidebar-area, .toc-left-area { width: 100%; }
    .article-layout .content-area { width: 100%; flex: 1; }
    .toc-left-box { position: static; max-height: none; }
}
@media (max-width: 960px) {
    .article-wrap, .comments-section { padding: 24px 20px; }
    .search-box { display: none; }
    .hero-title-box { padding: 38px 26px; }
}
@media (max-width: 860px) {
    .post-list-wrap.pl-grid_3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .card-horizontal { flex-direction: column; }
    .card-cover { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
    .hero-featured { flex-direction: column; }
    .hero-featured .hf-cover { width: 100%; min-height: 210px; height: 210px; }
    .hero-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .nav-menu {
        position: fixed; top: 64px; left: 0; right: 0;
        background: var(--bg); flex-direction: column;
        box-shadow: 0 12px 24px -16px var(--neu-dark);
        padding: 12px 20px;
        display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .post-card { padding: 20px; }
    .article-header h1 { font-size: 23px; }

    /* v1.1 新增组件移动端 */
    .post-list-wrap.pl-grid_2,
    .post-list-wrap.pl-grid_3 {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
    }
    .related-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 26px; }
    .hero-featured .hf-body { padding: 22px 20px; }
    .hf-title { font-size: 19px; }
    .post-author-card { flex-wrap: wrap; }
    .pac-actions { width: 100%; justify-content: flex-end; }
    .share-platforms { gap: 12px 8px; }
}

/* ========== 动效降级 ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
