/* ============================================================
   SoftNeu 软拟 —— emlog 新拟态化（Neumorphism）模板
   设计原则：单一基底色 / 无边框 / 双向阴影塑造体积
   可访问性：正文与辅助文字对基底对比度均 >= 4.5:1
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
    --nm-bg: #e3e8f0;
    --nm-text: #333b48;
    --nm-text-2: #505a6a;
    --nm-accent: #4a5de6;
    --nm-accent-ink: #ffffff;

    --sh-dark: rgba(163, 177, 198, 0.55);
    --sh-light: rgba(255, 255, 255, 0.9);
    --sh-dark-soft: rgba(163, 177, 198, 0.4);
    --sh-light-soft: rgba(255, 255, 255, 0.75);

    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --r-pill: 999px;

    --sp: 18px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

/* 基底色调（仅影响浅色模式，夜间统一石墨底） */
html[data-tone="mist"]  { --nm-bg: #d9e4ea; --sh-dark: rgba(150, 170, 185, 0.5); }
html[data-tone="sand"]  { --nm-bg: #e8e2d6; --sh-dark: rgba(184, 172, 150, 0.45); --sh-light: rgba(255, 255, 255, 0.85); }
html[data-tone="mint"]  { --nm-bg: #dce9e0; --sh-dark: rgba(150, 178, 160, 0.45); }

html[data-theme="dark"] {
    --nm-bg: #262a33;
    --nm-text: #d7dce5;
    --nm-text-2: #9aa5b8;
    --sh-dark: rgba(8, 10, 14, 0.65);
    --sh-light: rgba(255, 255, 255, 0.06);
    --sh-dark-soft: rgba(8, 10, 14, 0.5);
    --sh-light-soft: rgba(255, 255, 255, 0.05);
}

/* 凸起 / 凹陷 的两种体积 */
:root {
    --raise: 9px 9px 18px var(--sh-dark), -9px -9px 18px var(--sh-light);
    --raise-sm: 5px 5px 10px var(--sh-dark), -5px -5px 10px var(--sh-light);
    --press: inset 6px 6px 10px var(--sh-dark), inset -6px -6px 10px var(--sh-light);
    --press-sm: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--nm-text);
    background-color: var(--nm-bg);
    transition: background-color .3s ease, color .3s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--nm-text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--nm-accent); }

::selection { background: var(--nm-accent); color: var(--nm-accent-ink); }

/* 键盘导航可见焦点（新拟态阴影里用发光描边替代） */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--nm-bg), 0 0 0 6px var(--nm-accent) !important;
}

.container {
    width: 100%;
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 3. 顶栏 ---------- */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 14px 0 10px;
    background: var(--nm-bg);
    transition: background-color .3s ease;
}

.blog-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 12px 22px;
    border-radius: var(--r-lg);
    background: var(--nm-bg);
    box-shadow: var(--raise);
}

.blog-header-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--nm-text);
    white-space: nowrap;
}
.blog-header-title:hover { color: var(--nm-accent); }

.blog-header-subtitle {
    font-size: 13px;
    color: var(--nm-text-2);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-header-brand { display: flex; align-items: center; gap: 12px; }
.blog-header-logo { width: 42px; height: 42px; border-radius: var(--r-sm); box-shadow: var(--press-sm); padding: 4px; background: var(--nm-bg); }
.blog-header-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.blog-header-brand-name { font-size: 18px; font-weight: 800; }
.blog-header-brand-desc { font-size: 12px; color: var(--nm-text-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.blog-header-imglink .blog-header-img { max-height: 44px; display: block; }

/* 导航 */
.blog-header-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list .list-item { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: var(--r-pill);
    font-size: 15px;
    font-weight: 600;
    color: var(--nm-text-2);
    cursor: pointer;
    transition: box-shadow .25s ease, color .25s ease;
}
.nav-link:hover { color: var(--nm-text); box-shadow: var(--raise-sm); }
.nav-link[aria-current="page"],
.nav-link:active { color: var(--nm-accent); box-shadow: var(--press-sm); }

.header-avatar { width: 26px; height: 26px; border-radius: 50%; box-shadow: var(--press-sm); }
.user-menu-label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown-menus {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    padding: 10px;
    list-style: none;
    margin: 0;
    border-radius: var(--r-md);
    background: var(--nm-bg);
    box-shadow: var(--raise);
    z-index: 95;
}
.list-menu:hover > .dropdown-menus,
.list-menu:focus-within > .dropdown-menus { display: block; }
.dropdown-menus .list-item { display: block; }
.dropdown-menus .nav-link { display: block; width: 100%; padding: 8px 14px; font-size: 14px; }

/* 移动端汉堡 */
.blog-header-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: var(--nm-bg);
    box-shadow: var(--raise-sm);
    cursor: pointer;
    border: none;
    transition: box-shadow .2s ease;
}
.blog-header-toggle:active { box-shadow: var(--press-sm); }
.blog-header-toggle svg rect { fill: var(--nm-text-2); }
[data-theme="dark"] .blog-header-toggle svg rect { fill: var(--nm-text); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 88;
    background: rgba(20, 24, 32, 0.35);
    backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }

/* ---------- 4. 主体布局 ---------- */
.blog-container { padding-top: 26px; padding-bottom: 40px; }
.row { display: flex; gap: 28px; align-items: flex-start; }
.column-big { flex: 1 1 0; min-width: 0; }
.column-small { flex: 0 0 300px; position: sticky; top: 96px; }

/* ---------- 5. 通用卡片（凸起） ---------- */
.nm-card {
    background: var(--nm-bg);
    border-radius: var(--r-lg);
    box-shadow: var(--raise);
    transition: box-shadow .3s ease, transform .3s ease, background-color .3s ease;
}

/* 文章列表卡片 */
.loglist-item { margin-bottom: 26px; padding: 24px 26px; }
.loglist-item:hover { transform: translateY(-2px); box-shadow: 11px 11px 22px var(--sh-dark), -11px -11px 22px var(--sh-light); }

.loglist-cover {
    margin: -2px -2px 18px 0;
    padding: 8px;
    border-radius: var(--r-md);
    box-shadow: var(--press);
    background: var(--nm-bg);
}
.loglist-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--r-sm);
}

.loglist-title { font-size: 20px; font-weight: 800; line-height: 1.45; display: inline-block; }
.loglist-head { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.loglist-sort a, .log-topflg {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--r-pill);
    box-shadow: var(--press-sm);
    color: var(--nm-text-2);
}
.log-topflg { color: var(--nm-accent); }

.loglist-content {
    color: var(--nm-text-2);
    font-size: 15px;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loglist-tag { margin-bottom: 6px; }

.loglist-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--sh-dark) 20%, var(--sh-dark) 80%, transparent) 1;
    font-size: 13.5px;
    color: var(--nm-text-2);
}
.loglist-foot a { color: var(--nm-text-2); }
.loglist-foot a:hover { color: var(--nm-accent); }
.log-info { display: inline-flex; align-items: center; gap: 6px; }
.log-count { display: inline-flex; align-items: center; gap: 14px; }
.count-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: var(--r-pill);
    box-shadow: var(--raise-sm);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--nm-text-2);
}
.count-chip:hover { color: var(--nm-accent); }
.count-chip svg { flex: none; }

/* 图标小尺寸 */
.ic { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.ic-lg { width: 20px; height: 20px; }

/* 双列网格布局 */
.loglist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.loglist-grid .loglist-item { margin-bottom: 0; }
.loglist-grid .loglist-cover img { aspect-ratio: 16 / 10; }
.loglist-grid .loglist-content { -webkit-line-clamp: 2; }

/* ---------- 6. 标签 / 分页 ---------- */
.tags, .tags-side {
    display: inline-flex;
    align-items: center;
    margin: 3px 6px 3px 0;
    padding: 4px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--r-pill);
    background: var(--nm-bg);
    box-shadow: var(--raise-sm);
    color: var(--nm-text-2);
    cursor: pointer;
    transition: box-shadow .2s ease, color .2s ease;
}
.tags:hover, .tags-side:hover { color: var(--nm-accent); box-shadow: var(--press-sm); }

.pagination { display: flex; justify-content: center; margin: 34px 0 6px; }
.pagination ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    background: var(--nm-bg);
    box-shadow: var(--raise-sm);
    color: var(--nm-text-2);
    font-weight: 700;
    font-size: 14px;
    transition: box-shadow .2s ease, color .2s ease;
}
.pagination li a:hover { color: var(--nm-accent); }
.pagination li.active a, .pagination li.active span,
.pagination li.current_page a {
    color: var(--nm-accent);
    box-shadow: var(--press-sm);
}
.pagination li.disabled span { opacity: .45; }

/* ---------- 7. 文章详情 ---------- */
.log-con { padding: 34px 38px; margin-bottom: 30px; }
.log-header { margin-bottom: 18px; }
.log-title { font-size: 30px; font-weight: 800; line-height: 1.4; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.log-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--nm-text-2); }
.log-meta-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.log-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    box-shadow: var(--raise-sm);
}
.log-meta-item a { color: var(--nm-text-2); font-weight: 600; }
.log-meta-item a:hover { color: var(--nm-accent); }
.log-meta-right .btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    box-shadow: var(--raise-sm);
    font-weight: 700;
    color: var(--nm-text-2);
}
.log-meta-right a:hover { color: var(--nm-accent); }

.log-cover { padding: 10px; border-radius: var(--r-md); box-shadow: var(--press); margin: 22px 0; }
.log-cover img { display: block; width: 100%; border-radius: var(--r-sm); }

/* 邻近文章 */
.neighbor-log { display: flex; gap: 18px; margin: 8px 0 30px; flex-wrap: wrap; }
.prev-log, .next-log { flex: 1 1 240px; min-width: 0; }
.next-log { text-align: right; }
.neighbor-link {
    display: block;
    padding: 16px 20px;
    border-radius: var(--r-md);
    background: var(--nm-bg);
    box-shadow: var(--raise);
    transition: box-shadow .25s ease;
}
.neighbor-link:hover { box-shadow: var(--press); }
.neighbor-dir { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--nm-accent); margin-bottom: 4px; }
.next-log .neighbor-dir { justify-content: flex-end; }
.neighbor-title { font-size: 14.5px; color: var(--nm-text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 文章内标签区 */
.log-tags { margin: 22px 0 4px; }

/* ---------- 8. 评论 ---------- */
.comment-section-title { font-size: 18px; font-weight: 800; margin: 8px 0 18px; display: flex; align-items: center; gap: 10px; }
#comments { margin-top: 30px; }
.comment-post {
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--nm-bg);
    box-shadow: var(--raise);
    margin-bottom: 26px;
}
.commentform { display: flex; flex-direction: column; gap: 14px; }

.form-control, .commentform textarea, .commentform input[type="text"], .commentform input[type="email"], .commentform input[type="url"],
.widget input[type="search"], .widget select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--nm-text);
    background: var(--nm-bg);
    border: none;
    border-radius: var(--r-md);
    box-shadow: var(--press-sm);
    outline: none;
    transition: box-shadow .25s ease;
    appearance: none;
    -webkit-appearance: none;
}
.commentform textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.form-control:focus, textarea:focus, input:focus, select:focus { box-shadow: var(--press); }
.commentform input::placeholder, textarea::placeholder { color: var(--nm-text-2); opacity: .8; }

.comment-info { display: flex; gap: 14px; flex-wrap: wrap; }
.comment-info .comment-name, .comment-info .comment-mail, .comment-info .comment-url { flex: 1 1 180px; }

.captcha-container { display: flex; align-items: center; gap: 12px; }
.captcha-container img, .captcha-container input[type="image"], .captcha-container object { cursor: pointer; border-radius: var(--r-sm); box-shadow: var(--raise-sm); }

.com_submit_p { display: flex; align-items: center; gap: 14px; }

.btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--nm-accent-ink);
    background: var(--nm-accent);
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    box-shadow: 6px 6px 12px var(--sh-dark), -4px -4px 10px var(--sh-light);
    transition: transform .15s ease, box-shadow .15s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); box-shadow: var(--press-sm); color: var(--nm-accent-ink); }

.btn-ghost {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--nm-text-2);
    background: var(--nm-bg);
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    box-shadow: var(--raise-sm);
}
.btn-ghost:active { box-shadow: var(--press-sm); }

.comment { display: flex; gap: 14px; margin-bottom: 22px; }
.comment .avatar { flex: none; }
.comment .avatar img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 3px;
    background: var(--nm-bg);
    box-shadow: var(--raise-sm);
}
.comment-infos { flex: 1 1 0; min-width: 0; }
.comment-bubble {
    padding: 14px 18px;
    border-radius: 4px 18px 18px 18px;
    background: var(--nm-bg);
    box-shadow: var(--press-sm);
}
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment-head b, .comment-head .comment-name-link { font-size: 14.5px; color: var(--nm-text); }
.comment-time { font-size: 12px; color: var(--nm-text-2); margin-left: auto; }
.comment-content { font-size: 14.5px; color: var(--nm-text-2); word-break: break-word; }
.comment-content p { margin: 4px 0; }
.comment-reply { margin-top: 8px; }
.com-reply {
    border: none;
    background: var(--nm-bg);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nm-text-2);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    box-shadow: var(--raise-sm);
    cursor: pointer;
    transition: color .2s ease, box-shadow .2s ease;
}
.com-reply:hover { color: var(--nm-accent); }
.com-reply:active { box-shadow: var(--press-sm); }
.comment-children { margin-top: 16px; }
.comment .comment { margin-top: 16px; }

/* ---------- 9. 侧边栏小组件 ---------- */
.widget {
    padding: 20px 22px;
    margin-bottom: 26px;
    border-radius: var(--r-lg);
    background: var(--nm-bg);
    box-shadow: var(--raise);
}
.widget-title { font-size: 16px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.widget-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--nm-accent);
    box-shadow: var(--press-sm);
    flex: none;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 4px; font-size: 14.5px; }
.widget li a { display: inline-block; padding: 5px 8px; border-radius: var(--r-sm); color: var(--nm-text-2); transition: box-shadow .2s ease, color .2s ease; }
.widget li a:hover { color: var(--nm-accent); box-shadow: var(--press-sm); }

/* 个人资料 */
.bloggerinfo { text-align: center; padding: 6px 0; }
.bloggerinfo-img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    padding: 6px;
    background: var(--nm-bg);
    box-shadow: var(--raise);
    margin-bottom: 12px;
}
.bloginfo-name { font-size: 16px; font-weight: 800; }
.bloginfo-descript { font-size: 13px; color: var(--nm-text-2); margin-top: 6px; }

/* 搜索 */
.widget-search-form { display: flex; gap: 12px; }
.widget-search-form input[type="search"] { flex: 1 1 0; }
.widget-search-form .btn-search {
    flex: none;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--r-pill);
    background: var(--nm-bg);
    color: var(--nm-text-2);
    box-shadow: var(--raise-sm);
    cursor: pointer;
}
.widget-search-form .btn-search:active { box-shadow: var(--press-sm); color: var(--nm-accent); }

/* 最新评论 / 微语 */
.side-comment-list li, .side-twitter-list li { padding: 10px 0; border-bottom: 1px dashed var(--sh-dark); }
.side-comment-list li:last-child, .side-twitter-list li:last-child { border-bottom: none; }
.comment-info-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-info_img { width: 28px; height: 28px; border-radius: 50%; box-shadow: var(--raise-sm); }
.comm-lates-name { font-size: 13px; font-weight: 700; }
.logcom-latest-time { font-size: 11.5px; color: var(--nm-text-2); margin-left: auto; }
.side-comment-body { font-size: 13.5px; color: var(--nm-text-2); }
.side-comment-body a { color: var(--nm-text-2); }
.side-comment-body a:hover { color: var(--nm-accent); }

/* 侧栏最新文章（带图） */
.side-cover-image {
    height: 110px;
    border-radius: var(--r-sm);
    box-shadow: var(--press-sm);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin: 6px 0;
}
.side-title-container {
    width: 100%;
    padding: 22px 12px 8px;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    background: linear-gradient(transparent, rgba(20, 24, 32, 0.55));
}
.side-title-container a { color: #fff !important; font-size: 13.5px; font-weight: 700; padding: 0 !important; box-shadow: none !important; }

/* 日历 */
#calendar { font-size: 13px; }
#calendar table { width: 100%; border-collapse: collapse; }
#calendar th, #calendar td { padding: 5px 2px; text-align: center; color: var(--nm-text-2); }
#calendar a { padding: 3px 7px; border-radius: 8px; box-shadow: var(--raise-sm); display: inline-block; }
#calendar #today, #calendar .today { color: var(--nm-accent); font-weight: 800; box-shadow: var(--press-sm); }

/* 归档下拉 */
.widget select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23505a6a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}
[data-theme="dark"] .widget select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d7dce5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }

/* ---------- 10. 首页轮播 ---------- */
.slide-show { margin-bottom: 28px; padding: 10px; border-radius: var(--r-lg); box-shadow: var(--raise); position: relative; }
.slide-viewport { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--press-sm); }
.slide-track { display: flex; transition: transform .5s ease; }
.slide-item { position: relative; flex: 0 0 100%; }
.slide-item img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; display: block; }
.slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 34px 22px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(transparent, rgba(20, 24, 32, 0.6));
}
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%; background: var(--nm-bg); color: var(--nm-text-2);
    box-shadow: var(--raise-sm); cursor: pointer; }
.slide-nav:active { box-shadow: var(--press-sm); }
.slide-prev { left: 24px; }
.slide-next { right: 24px; }
.slide-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slide-dot { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.slide-dot.active { background: #fff; box-shadow: var(--press-sm); }

/* ---------- 11. 页脚 ---------- */
.blog-footer { padding: 30px 0 46px; text-align: center; font-size: 13.5px; color: var(--nm-text-2); }
.footinfo .beian-link { display: inline-flex; align-items: center; padding: 6px 16px; margin-bottom: 10px; border-radius: var(--r-pill); box-shadow: var(--raise-sm); color: var(--nm-text-2); }
.footinfo .beian-link:hover { color: var(--nm-accent); }

/* 侧边工具条 */
.side-toolbar { position: fixed; right: 22px; bottom: 30px; z-index: 80; display: flex; flex-direction: column; gap: 14px; }
.side-btn {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--nm-bg);
    color: var(--nm-text-2);
    box-shadow: var(--raise-sm);
    cursor: pointer;
    transition: box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.side-btn:hover { color: var(--nm-accent); transform: translateY(-2px); }
.side-btn:active { box-shadow: var(--press-sm); transform: none; }
.side-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#back-to-top { display: none; }
#back-to-top.show { display: flex; }
.side-btn .icon-sun { display: none; }
html[data-theme="dark"] .side-btn .icon-sun { display: block; }
html[data-theme="dark"] .side-btn .icon-moon { display: none; }

/* ---------- 12. 密码页 / 404 页 ---------- */
.nm-standalone {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--nm-bg);
    color: var(--nm-text);
    font-family: var(--font-sans);
    transition: background-color .3s ease, color .3s ease;
}
.nm-alone-card {
    width: 100%;
    max-width: 420px;
    padding: 44px 38px;
    text-align: center;
    border-radius: var(--r-lg);
    background: var(--nm-bg);
    box-shadow: var(--raise);
}
.nm-alone-card .alone-title { font-size: 18px; font-weight: 800; margin: 0 0 22px; }
.nm-alone-card input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--nm-text);
    background: var(--nm-bg);
    border: none;
    border-radius: var(--r-md);
    box-shadow: var(--press-sm);
    outline: none;
}
.nm-alone-card .btn { width: 100%; }
.nm-alone-card .back-home { display: inline-block; margin-top: 20px; font-size: 13px; color: var(--nm-text-2); }
.nm-alone-card .back-home:hover { color: var(--nm-accent); }
.error-code {
    font-size: 84px;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 10px;
    color: var(--nm-text);
    text-shadow: 3px 3px 6px var(--sh-dark), -3px -3px 6px var(--sh-light);
}

/* ---------- 13. 挂载点兼容 & 小工具类 ---------- */
.muted, .lightFont, .info-tip { color: var(--nm-text-2); }
.floatRigth, .side-right { float: right; }
.clear { clear: both; }
#emcontent, .log-content-download, .lock-screen, .modal-dialog { position: relative; z-index: 100; }
/* 插件常见的下载按钮 / 加密按钮兜底适配 */
.em-download-btn, .private-page-btn, input[type="submit"][value*="下载"], .download_btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 24px !important;
    margin: 8px 0;
    border-radius: var(--r-pill) !important;
    background: var(--nm-accent) !important;
    color: var(--nm-accent-ink) !important;
    box-shadow: var(--raise-sm) !important;
    font-weight: 700;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--nm-bg); }
::-webkit-scrollbar-thumb { background: var(--nm-bg); border-radius: var(--r-pill); box-shadow: inset 2px 2px 4px var(--sh-dark), inset -2px -2px 4px var(--sh-light); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 992px) {
    .row { flex-direction: column; align-items: stretch; }
    .column-small { position: static; flex: 1 1 auto; width: 100%; }
    .log-con { padding: 26px 22px; }
    .log-title { font-size: 24px; }
}

@media (max-width: 768px) {
    .loglist-grid { grid-template-columns: 1fr; }
    .blog-header-toggle { display: flex; }
    .blog-header-nav {
        display: none;
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(74vw, 320px);
        margin: 0;
        padding: 84px 20px 30px;
        background: var(--nm-bg);
        box-shadow: -12px 0 30px var(--sh-dark);
        z-index: 89;
        overflow-y: auto;
    }
    .blog-header-nav.show { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 8px; }
    .nav-link { width: 100%; }
    .dropdown-menus { position: static; transform: none; display: block; box-shadow: var(--press-sm); margin: 6px 0; min-width: 0; }
    .list-menu:hover > .dropdown-menus { display: block; }
    .blog-header-inner { padding: 10px 14px; gap: 12px; }
    .log-meta-left { gap: 6px; }
    .loglist-foot { flex-direction: column; align-items: flex-start; }
    .side-toolbar { right: 14px; bottom: 18px; }
    .comment-info { flex-direction: column; }
}

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