/* =========================================================
   AuroraAI 主题样式
   - 配色变量在下方 :root 中定义（--primary / --accent / --primary-rgb）
   - 支持浅色 / 深色模式（.dark 类）
   - 全部响应式，移动端自动折叠导航与单栏堆叠
   ========================================================= */

/* ---------- 基础变量 ---------- */
:root {
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --text: #1f2933;
    --text-soft: #52606d;
    --border: #e4e7eb;
    --card-bg: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .04);
    --radius: 14px;
    --maxw: 1180px;
    --primary: #2563eb;
    --accent: #3b82f6;
    --primary-rgb: 37, 99, 235;
}

.dark {
    --bg: #0f1419;
    --bg-soft: #161b22;
    --text: #e6edf3;
    --text-soft: #9aa4b2;
    --border: #2d333b;
    --card-bg: #161b22;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

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

.unstyle-li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 50;
}

.site-header.sticky {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-right: 24px;
    position: relative;
}
/* LOGO 与导航之间的细线分隔 + 加宽留白 */
.brand-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    margin-left: 16px;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
    border-radius: 2px;
}
.dark .brand-divider {
    background: linear-gradient(180deg, transparent, var(--border), transparent);
    opacity: .7;
}
@media (max-width: 720px) {
    .brand {
        padding-right: 0;
    }
    .brand-divider {
        display: none;
    }
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-soft);
}

.logo-img img {
    height: 38px;
    width: auto;
    display: block;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 8px;
}

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

.nav-list .list-menu>.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .2px;
    position: relative;
    transition: background .22s ease, color .22s ease, transform .15s ease;
}
/* 导航 hover / focus 时的底部高亮条 */
.nav-list .list-menu>.nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    transition: width .25s ease;
}
.nav-list .list-menu>.nav-link:hover,
.nav-list .list-menu>.nav-link:focus-visible {
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary);
    transform: translateY(-1px);
    outline: none;
}
.nav-list .list-menu>.nav-link:hover::before,
.nav-list .list-menu>.nav-link:focus-visible::before {
    width: calc(100% - 36px);
}

/* 当前页：实色胶囊 + 高亮底部条 */
.nav-list .list-menu>.nav-link[aria-current="page"] {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .14), rgba(var(--primary-rgb), .06));
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), .12);
}
.nav-list .list-menu>.nav-link[aria-current="page"]::before {
    width: calc(100% - 36px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* 导航项矢量图标（后台「导航菜单」设置）：SVG 继承主题色，hover / 选中转主色并轻微放大 */
.nav-list .nav-link .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    color: var(--text-soft);
    transition: color .22s ease, transform .22s ease;
}
.nav-list .nav-link .nav-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}
.nav-list .nav-link .nav-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.nav-list .list-menu>.nav-link:hover .nav-icon,
.nav-list .list-menu>.nav-link:focus-visible .nav-icon,
.nav-list .list-menu>.nav-link[aria-current="page"] .nav-icon {
    color: var(--primary);
    transform: scale(1.08);
}

/* 「首页」特化：更像一个独立入口 */
.nav-list .list-menu:first-child>.nav-link::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--card-bg);
    opacity: .9;
}
.nav-list .list-menu:first-child>.nav-link[aria-current="page"]::after {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

/* 导航栏「登录」按钮：加底色，更显眼 */
.nav-list .list-menu>.nav-link-login {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .35);
}
.nav-list .list-menu>.nav-link-login:hover,
.nav-list .list-menu>.nav-link-login[aria-current="page"] {
    background: var(--accent);
    color: #fff;
}

/* 导航栏下拉（主分类 hover / focus 显示子分类） */
.nav-list .list-menu {
    position: relative;
}
.nav-list .has-down::after {
    content: "▾";
    font-size: 10px;
    margin-left: 4px;
    opacity: .6;
}
.dropdown-menus {
    position: absolute;
    top: 100%;
    left: 8px;
    /* o 版本：加宽下拉 + 按内容自适应（最长项宽） */
    min-width: 184px;
    max-width: 320px;
    margin: 8px 0 0;
    padding: 10px;
    list-style: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 60;
    backdrop-filter: blur(8px);
}
/* 下拉小三角 */
.dropdown-menus::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
    border-top-left-radius: 3px;
}
.nav-list .list-menu:hover > .dropdown-menus,
.nav-list .list-menu:focus-within > .dropdown-menus {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menus .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    position: relative;
    transition: background .18s, color .18s, padding-left .18s;
    /* o 版本：让二级分类选项完整显示 + 视觉分隔 */
    line-height: 1.4;
    border: 1px solid transparent;
}
.dropdown-menus .nav-link::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: background .18s, transform .18s, box-shadow .18s;
}
.dropdown-menus .nav-link:hover,
.dropdown-menus .nav-link:focus-visible {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), .12), rgba(var(--primary-rgb), .03));
    color: var(--primary);
    padding-left: 18px;
    border-color: rgba(var(--primary-rgb), .22);
}
.dropdown-menus .nav-link:hover::before,
.dropdown-menus .nav-link:focus-visible::before {
    background: var(--primary);
    transform: scale(1.5);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}
/* o 版本：二级分类之间的细分隔线（最后一项不要） */
.dropdown-menus .list-menu + .list-menu {
    border-top: 1px dashed var(--border);
    margin-top: 2px;
    padding-top: 2px;
}
/* 下拉菜单项错位淡入（hover / focus-within 触发） */
.nav-list .list-menu:hover > .dropdown-menus .list-menu,
.nav-list .list-menu:focus-within > .dropdown-menus .list-menu {
    animation: dropItemIn .28s ease both;
}
.nav-list .list-menu:hover > .dropdown-menus .list-menu:nth-child(2),
.nav-list .list-menu:focus-within > .dropdown-menus .list-menu:nth-child(2) { animation-delay: .045s; }
.nav-list .list-menu:hover > .dropdown-menus .list-menu:nth-child(3),
.nav-list .list-menu:focus-within > .dropdown-menus .list-menu:nth-child(3) { animation-delay: .09s; }
.nav-list .list-menu:hover > .dropdown-menus .list-menu:nth-child(4),
.nav-list .list-menu:focus-within > .dropdown-menus .list-menu:nth-child(4) { animation-delay: .135s; }
.nav-list .list-menu:hover > .dropdown-menus .list-menu:nth-child(5),
.nav-list .list-menu:focus-within > .dropdown-menus .list-menu:nth-child(5) { animation-delay: .18s; }
@keyframes dropItemIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* 登录 / 用户头像 推到导航最右 */
.nav-list .nav-item-right {
    margin-left: auto;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 顶部导航栏右侧：深色 / 浅色切换按钮 */
.header-tools .aurora-theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .15s;
}
.header-tools .aurora-theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.dark .header-tools .aurora-theme-toggle {
    background: var(--card-bg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 主布局 ---------- */
.main-wrap {
    padding-top: 24px;
    padding-bottom: 48px;
}

/* 首页背景图层：固定铺满视口，原图清晰显示，自适应裁切至完全覆盖，不再因 contain 留白 */
body.is-home::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--home-bg);
    background-size: cover;                                  /* 关键：cover 而非 contain，确保完全铺满 */
    background-position: center center;
    background-repeat: no-repeat;
    transform: translateZ(0);                                /* 独立合成层，滚动更顺滑 */
    image-rendering: -webkit-optimize-contrast;              /* 抑制浏览器对背景图做模糊处理 */
    image-rendering: crisp-edges;
    will-change: transform;
    z-index: -2;
    pointer-events: none;
}

/* 渐变蒙层：保证文字可读；上浅下深，让头部更亮、底部更收敛 */
body.is-home::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .55) 60%, rgba(255, 255, 255, .78) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, .68) 100%);
    z-index: -1;
    pointer-events: none;
}
.dark body.is-home::after,
body.is-home.dark::after {
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(15, 20, 25, .25) 0%, rgba(15, 20, 25, .62) 60%, rgba(15, 20, 25, .82) 100%),
        linear-gradient(180deg, rgba(15, 20, 25, .45) 0%, rgba(15, 20, 25, .78) 100%);
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.layout-single .side-col {
    display: none;
}

.layout-single {
    grid-template-columns: minmax(0, 1fr);
}

.content-col {
    min-width: 0;
}

/* ---------- 文章列表卡片 ---------- */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    display: flex;
    gap: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    /* o 版本：按最新要求固定文章卡片整体高度，避免长短不一 */
    min-height: 188px;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), .15);
}

.post-cover {
    /* o 版本：固定封面盒子 240×168，不再 align-self:stretch 拉伸，
       所有文章封面尺寸统一，object-fit:cover 在盒子内自适应填充 */
    flex: 0 0 240px;
    width: 240px;
    height: 168px;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent, var(--primary)));
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.post-card:hover .post-cover img {
    transform: scale(1.04);
}

.post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.log-topflg {
    background: var(--primary);
    color: #fff;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.loglist-sort a,
.post-meta-top a {
    color: var(--primary);
}

.post-title {
    font-size: 20px;
    line-height: 1.4;
    margin: 8px 0;
}

.post-title a {
    color: var(--text);
}

.post-title a:hover {
    color: var(--primary);
}

/* 推荐置顶徽标：置于文章标题后方，渐变胶囊 + 轻微投影 */
.post-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, #ff9a3c 0%, #ff4d8d 100%);
    box-shadow: 0 3px 8px rgba(255, 77, 141, .30);
}
.post-top-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.post-top-badge--sort {
    background: linear-gradient(135deg, #4f8cff 0%, #8b5cff 100%);
    box-shadow: 0 3px 8px rgba(79, 140, 255, .30);
}
@media (max-width: 600px) {
    .post-top-badge {
        margin-left: 0;
        margin-top: 6px;
    }
}

.post-excerpt {
    color: var(--text-soft);
    font-size: 14.5px;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-soft);
    margin-top: auto;
    padding-top: 10px;
}

.post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.post-meta .meta-item svg {
    opacity: .65;
    flex-shrink: 0;
}

.post-meta .meta-author a {
    color: var(--text-soft);
}

.post-meta .meta-author a:hover {
    color: var(--primary);
}

.post-meta .meta-sort a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 12px;
}

.post-meta .meta-sort a:hover {
    background: var(--primary);
    color: #fff;
}

.post-meta-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.post-meta-bottom .loglist-sort a,
.post-meta-bottom .log-topflg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
}

.post-meta-bottom .loglist-sort a {
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary);
}

.post-meta-bottom .loglist-sort a:hover {
    background: var(--primary);
    color: #fff;
}

.post-meta-bottom .log-topflg {
    background: var(--primary);
    color: #fff;
}

.post-tags {
    margin-top: 16px;
    padding-top: 14px;
    padding-bottom: 6px;
    border-top: 1px dashed var(--border);
    border-bottom: 1px solid var(--border);
}

.post-tags .tags,
.post-tags a {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 3px 12px;
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 12px;
    transition: background .2s, color .2s;
}

.post-tags a:hover {
    background: var(--primary);
    color: #fff;
}

/* 文章内页：标签区域下方不显示分割线，与后续评论自然过渡 */
.post-detail .post-tags {
    margin-top: 18px;
    padding-top: 0;
    border-top: none;
    border-bottom: none;
}

/* ---------- 文章详情 ---------- */
.post-detail {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.post-detail-header {
    margin-bottom: 18px;
}

.post-detail .post-title {
    font-size: 28px;
    margin: 0 0 10px;
}

.post-edit-link {
    font-size: 13px;
    font-weight: 400;
    margin-left: 8px;
    color: var(--text-soft);
}
.post-edit-link:hover {
    color: var(--primary);
}

.post-detail .post-meta {
    margin-top: 0;
}

.post-cover-full {
    margin: 14px 0 20px;
    border-radius: 12px;
    overflow: hidden;
}

.post-cover-full img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.post-content {
    font-size: 16px;
    word-wrap: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 12px 0;
}

.post-content pre {
    background: var(--bg-soft);
    padding: 14px;
    border-radius: 10px;
    overflow: auto;
}

.post-content blockquote {
    margin: 16px 0;
    padding: 8px 16px;
    border-left: 4px solid var(--primary);
    background: var(--bg-soft);
    color: var(--text-soft);
    border-radius: 0 8px 8px 0;
}

/* ---------- 相邻文章（上一篇 / 下一篇） ---------- */
.neighbor-log {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 8px;
    position: relative;
}

/* 双篇同时存在时，两栏之间保留一条竖向分隔线 */
.neighbor-log.has-both::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--border);
    transform: translateX(-50%);
    z-index: 2;
}

/* 每篇均为完整、独立的圆角框体（四周均有边框，互不合并） */
.neighbor-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    font-size: 13px;
    color: var(--text-soft);
    max-width: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.neighbor-link .neighbor-title {
    color: var(--text);
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.neighbor-link:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    z-index: 3;
}

.neighbor-log .prev-log,
.neighbor-log .next-log {
    display: flex;
}

/* 仅存在一篇时：显示完整独立框体，横向居中占满整行 */
.neighbor-log .prev-log:only-child,
.neighbor-log .next-log:only-child {
    grid-column: span 2;
    justify-content: center;
}
.neighbor-log .prev-log:only-child .neighbor-link,
.neighbor-log .next-log:only-child .neighbor-link {
    width: 100%;
    text-align: center;
    align-items: center;
}

@media (max-width: 600px) {
    .neighbor-log,
    .neighbor-log.has-both {
        grid-template-columns: 1fr;
    }
    .neighbor-log.has-both::before {
        display: none;
    }
    .neighbor-log .prev-log:only-child,
    .neighbor-log .next-log:only-child {
        grid-column: span 1;
    }
}

/* ---------- 评论 ---------- */
.comment-area {
    margin-top: 8px;
}

.comment-header {
    margin: 20px 0 10px;
    font-size: 16px;
}

.comment-empty {
    padding: 28px;
    text-align: center;
    color: var(--text-soft);
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin: 16px 0;
}

.comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.comment:last-child {
    border-bottom: none;
}

.comment .avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

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

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 14px;
    color: var(--text);
}

.comment-time {
    font-size: 12px;
    color: var(--text-soft);
    opacity: .85;
}

.comment-content {
    margin: 6px 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text);
    word-wrap: break-word;
}

.comment-content p {
    margin: 6px 0;
}

.comment-reply .com-reply {
    border: none;
    background: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.comment-reply .com-reply:hover {
    text-decoration: underline;
}

.comment-children-list {
    margin-top: 10px;
    padding-left: 14px;
    border-left: 2px solid var(--border);
}

.comment-children-list .comment {
    padding: 12px 0;
}

.comment-children-list .comment .avatar img {
    width: 36px;
    height: 36px;
}

.commentform {
    margin-top: 18px;
}

.commentform textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: var(--bg);
    color: var(--text);
    resize: vertical;
}

.comment-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.comment-info input {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
}

.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background: var(--accent);
}

/* ---------- 侧边栏 ---------- */
.side-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 84px;
}

.widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.widget-title h3 {
    margin: 0 0 12px;
    font-size: 16px;
    position: relative;
    padding-left: 12px;
}

.widget-title h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(var(--primary), var(--accent));
}

/* o 版本：侧栏 widget 失败时的兜底样式（不再让异常模板打断页面） */
.widget--aurora-fallback {
    border-style: dashed;
    border-color: var(--border);
    background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
}
.widget--aurora-fallback .widget-fallback-tip {
    margin: 0;
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.6;
}

.widget-list li,
.log-classify-f li,
.side-comment-list li,
.side-twitter-item {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

/* 侧栏最新评论：卡片化 + 悬浮动效，头像/昵称在左，评论内容在右 */
.side-comment-list .comment-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-bg);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.side-comment-list .comment-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), .12);
    border-color: rgba(var(--primary-rgb), .35);
}
.side-comment-list .comm-ava-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    flex-shrink: 0;
    gap: 6px;
}
.side-comment-list .comment-info_img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 1px var(--border);
    background: var(--bg-soft);
    transition: transform .25s;
}
.side-comment-list .comment-info:hover .comment-info_img {
    transform: scale(1.06);
}
.side-comment-list .comm-lates-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
.side-comment-list .comm-lates-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.side-comment-list .comm-lates-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.side-comment-list .comm-lates-text:hover {
    color: var(--primary);
}
/* 评论所属文章标题 + 时间：同一行排列，紧凑美观 */
.side-comment-list .comm-lates-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
/* 圆角块标签：来自标签 + 文章标题，点击跳转；标题可换行两行，避免"显示不全" */
.side-comment-list .comm-lates-log {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .12), rgba(var(--primary-rgb), .04));
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), .2);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
/* "来自" 小标签：实心圆角块 */
.side-comment-list .comm-lates-log .comm-source-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    margin-top: 2px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
    line-height: 1.5;
}
/* 文章标题文本：最多两行，完整展示，避免被截断 */
.side-comment-list .comm-lates-log .comm-source-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.side-comment-list .comm-lates-log:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .3);
}
.side-comment-list .comm-lates-log:hover .comm-source-label {
    background: rgba(255, 255, 255, .25);
}
.side-comment-list .logcom-latest-time {
    font-size: 11px;
    color: var(--text-soft);
    opacity: .7;
}

/* ============ 侧边栏热门文章 / 最新文章：序号 + 缩略图 + 元信息卡片 ============ */
.side-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.side-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.side-post-item:hover {
    background: var(--bg-soft);
    border-color: rgba(var(--primary-rgb), .22);
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), .1);
}
/* 序号角标：最新=蓝紫渐变，热门=橙红渐变 */
.side-post-rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), .3);
}
.side-post-list--hot .side-post-rank {
    background: linear-gradient(135deg, #ff8a3d, #ff5252);
    box-shadow: 0 2px 6px rgba(255, 82, 82, .3);
}
/* 缩略图：封面图铺满，无封面时显示首字占位 */
.side-post-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: var(--bg-soft);
    background-size: cover;
    background-position: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}
.side-post-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .15), rgba(var(--primary-rgb), .04));
    opacity: 1;
    transition: opacity .2s;
}
.side-post-item:hover .side-post-thumb::after {
    opacity: .35;
}
.side-post-initial {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
/* 标题 + 元信息 */
.side-post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.side-post-title {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.side-post-item:hover .side-post-title {
    color: var(--primary);
}
.side-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-soft);
}
.side-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.side-post-meta span::before {
    content: "";
    width: 12px;
    height: 12px;
    opacity: .65;
    background-color: currentColor;
    -webkit-mask: var(--side-meta-icon) center / contain no-repeat;
            mask: var(--side-meta-icon) center / contain no-repeat;
}
.side-post-views {
    --side-meta-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>");
}
.side-post-comments {
    --side-meta-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}

.tag-container .tags-side {
    display: inline-block;
    margin: 3px 5px 3px 0;
    padding: 2px 10px;
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px !important;
}

.archive {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
}

/* ---------- 侧边栏日历（参照 ourtoolset 风格） ---------- */
.aurora-calendar-wrap #calendar {
    width: 100%;
}

.aurora-cal-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

/* 顶部大日期头 */
.aurora-cal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.cal-header-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 6px 8px;
    background: #f3f4f6;
    border-radius: 10px;
    text-align: center;
}
.dark .cal-header-left {
    background: rgba(255, 255, 255, .08);
}
.cal-weekday {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1px;
}
.cal-big-day {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}
.dark .cal-big-day {
    color: #f9fafb;
}
.cal-header-right {
    flex: 1 1 auto;
}
.cal-year-month {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1px;
}
.cal-meta {
    font-size: 10px;
    color: var(--text-soft);
    margin-bottom: 3px;
}
.cal-today-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.today-label,
.festival-label {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}
.today-label {
    background: rgba(37, 99, 235, .12);
    color: #2563eb;
}
.festival-label {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

/* 控制行 */
.aurora-cal-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.aurora-cal-controls select,
.aurora-cal-controls button {
    height: 24px;
    padding: 0 6px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
    line-height: 22px;
}
.dark .aurora-cal-controls select,
.dark .aurora-cal-controls button {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: #e5e7eb;
}
.aurora-cal-controls select:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.aurora-cal-controls .cal-year-select,
.aurora-cal-controls .cal-month-select {
    min-width: 52px;
}
.aurora-cal-controls .cal-nav {
    width: 22px;
    padding: 0;
    text-align: center;
    font-weight: 700;
}
.aurora-cal-controls .cal-back-today {
    background: #fff;
    border-color: #d1d5db;
    font-weight: 600;
}
.aurora-cal-controls .cal-back-today:hover {
    background: #f9fafb;
}

/* 日历网格 */
.aurora-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px;
    font-size: 11px;
    text-align: center;
    table-layout: fixed;
}
.aurora-calendar th,
.aurora-calendar td {
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    height: 34px;
    vertical-align: middle;
}
.aurora-calendar th {
    background: transparent;
    font-weight: 600;
    color: var(--text-soft);
    height: 20px;
    font-size: 11px;
}
.aurora-calendar td {
    color: var(--text);
    transition: background .2s, border-color .2s;
}
.aurora-calendar td .cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    position: relative;
}
.aurora-calendar td .solar {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.aurora-calendar td .lunar {
    font-size: 9px;
    line-height: 1.2;
    color: var(--text-soft);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 1px;
    transform: scale(.88);
}
.aurora-calendar td:not(.empty):hover {
    background: rgba(var(--primary-rgb), .08);
    border-color: rgba(var(--primary-rgb), .25);
}
.aurora-calendar td.weekend .cal-day,
.aurora-calendar td.weekend .lunar {
    color: #ef4444;
}
.aurora-calendar td.festival .lunar {
    color: #ef4444;
    font-weight: 600;
}
.aurora-calendar td.today {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb inset;
}
.aurora-calendar td.today .cal-day,
.aurora-calendar td.today .lunar {
    color: #2563eb;
}
.aurora-calendar td.today.festival .lunar {
    color: #ef4444;
}
.aurora-calendar td.empty {
    background: transparent;
}

/* 日历底部农历宜忌 */
.aurora-cal-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.cal-lunar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1px;
}
.cal-lunar-gz {
    font-size: 10px;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.cal-yiji {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.yiji-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 10px;
    line-height: 1.4;
    color: var(--text);
}
.yiji-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
}
.yiji-row.yi .yiji-tag {
    background: #dc2626;
}
.yiji-row.ji .yiji-tag {
    background: #4b5563;
}
.yiji-text {
    flex: 1 1 auto;
    word-break: break-all;
}

/* 日历悬停弹出层 */
.aurora-cal-tip {
    position: fixed;
    z-index: 9999;
    max-width: 230px;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.7;
    pointer-events: none;
}
.aurora-cal-tip[hidden] {
    display: none;
}
.aurora-cal-tip .tip-date {
    font-weight: 700;
    font-size: 13px;
}
.aurora-cal-tip .tip-lunar {
    color: var(--primary);
    margin-left: 6px;
}
.aurora-cal-tip .tip-week {
    color: var(--text-soft);
}
.aurora-cal-tip .tip-link {
    display: block;
    margin-top: 6px;
    color: var(--primary);
    font-size: 12px;
}

/* ---------- 顶部搜索框（仅首页显示） ---------- */
/* ---------- 顶部搜索框（仅首页显示） ---------- */
.header-search-row {
    padding-top: 22px;
    padding-bottom: 6px;
}

.header-search {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.header-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.header-search-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), .12);
}

.header-search-box:focus-within {
    border-color: rgba(var(--primary-rgb), .55);
    box-shadow: 0 8px 26px rgba(var(--primary-rgb), .18);
}

.header-search-box .search-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.header-search-box .search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.header-search-box .search-input::placeholder {
    color: var(--text-soft);
    opacity: .6;
}

.header-search-box .search-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent, var(--primary)));
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), .35);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.header-search-box .search-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), .45);
}

.header-search-box .search-submit:active {
    transform: translateY(0);
}

/* ---------- 侧边栏搜索框 ---------- */
.side-search-form {
    width: 100%;
}

.side-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}

.side-search-box:focus-within {
    border-color: rgba(var(--primary-rgb), .5);
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), .1);
}

.side-search-box .search-icon {
    color: var(--text-soft);
    margin-left: 8px;
    flex-shrink: 0;
}

.side-search-box .search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    outline: none;
    min-width: 0;
    padding: 8px 0;
}

.side-search-box .search-input::placeholder {
    color: var(--text-soft);
    opacity: .7;
}

.side-search-box .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}

.side-search-box .search-submit:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.search input[type="search"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    margin-bottom: 8px;
}

.search input[type="submit"] {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.widget-blogger .bloggerinfo {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.bloggerinfo-bg {
    height: 110px;
    background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), .6));
    background-size: cover;
    background-position: center;
    border-radius: 14px 14px 0 0;
}

.bloggerinfo-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 16px;
    margin-top: -36px;
}

.bloggerinfo-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.bloggerinfo-img {
    width: 72px;
    height: 72px;
    max-width: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--bg-soft);
    border: 3px solid var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.bloginfo-name {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.bloginfo-descript {
    text-align: center;
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 4px;
    line-height: 1.6;
}

.bloggerinfo-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.bloggerinfo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-soft);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.bloggerinfo-link:hover {
    transform: translateY(-2px);
    background: rgba(var(--primary-rgb), .12);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), .18);
}

.bloggerinfo-link svg {
    width: 20px;
    height: 20px;
}

.bloggerinfo-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bloggerinfo-link--static {
    cursor: default;
}

/* ---------- 图片灯箱（联系链接-图片类型） ---------- */
.aurora-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.aurora-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.aurora-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    transform: scale(.94);
    transition: transform .25s;
}

.aurora-lightbox.open img {
    transform: scale(1);
}

.aurora-lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: background .2s;
}

.aurora-lightbox-close:hover {
    background: rgba(255, 255, 255, .3);
}

.bloggerinfo-auth {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.bloggerinfo-auth .btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.bloggerinfo-auth .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.bloggerinfo-auth .btn-primary:hover {
    background: rgba(var(--primary-rgb), .9);
}

.bloggerinfo-auth .btn svg {
    flex-shrink: 0;
}

.bloggerinfo-auth a.btn {
    text-decoration: none;
}

@media (max-width: 576px) {
    .bloggerinfo-bg {
        height: 90px;
    }
    .bloggerinfo-body {
        padding: 0 12px 12px;
    }
    .bloggerinfo-img {
        width: 64px;
        height: 64px;
    }
}

/* ---------- 分页 ---------- */
#pagenavi,
.pagenavi {
    margin: 24px 0;
    text-align: center;
}

#pagenavi a,
#pagenavi span,
.pagenavi a,
.pagenavi span {
    display: inline-block;
    margin: 0 3px;
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

#pagenavi .current,
.pagenavi .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 26px 0;
    color: var(--text-soft);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}


/* ---------- 悬浮操作区（返回顶部 + 外观模式），固定右下跟随滚动 ---------- */
.aurora-fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}
.aurora-fab-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .38);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.aurora-fab-btn.show {
    display: inline-flex;
    animation: fabPop .3s ease both;
}
.aurora-fab-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 26px rgba(var(--primary-rgb), .5);
}
.aurora-fab-btn:active {
    transform: translateY(-1px) scale(.96);
}
/* 到达底部：描边风格，与「返回顶部」形成层级对比 */
.aurora-fab-btn.aurora-to-bottom {
    color: var(--primary);
    background: var(--card-bg);
    border: 1.5px solid rgba(var(--primary-rgb), .35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}
.dark .aurora-fab-btn.aurora-to-bottom {
    background: var(--card-bg);
}
.aurora-fab-btn.aurora-to-bottom:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}
/* tooltip 文字提示 */
.aurora-fab-btn::after {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    background: rgba(20, 22, 40, .92);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    pointer-events: none;
}
.aurora-fab-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
@keyframes fabPop {
    from { opacity: 0; transform: translateY(10px) scale(.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 搜索提示 ---------- */
.search-tip {
    background: rgba(var(--primary-rgb), .08);
    border-left: 4px solid var(--primary);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
    color: var(--text-soft);
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-col {
        position: static;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        justify-content: flex-start;
    }

    .site-nav.open {
        max-height: 80vh;
        overflow-y: auto;
    }

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

    .nav-list .list-menu>.nav-link {
        display: block;
    }

    .dropdown-menus {
        position: static !important;
        box-shadow: none;
        padding-left: 16px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-toggle {
        display: flex;
    }

    .post-card {
        flex-direction: column;
        /* o 版本：移动端列间留白与卡片 padding 一致 → 上下对称 */
        gap: 16px;
    }

    .post-cover {
        flex: none;
        /* o 版本：移动端封面改为纯高度 200×full-width，盒子固定 */
        width: 100%;
        height: 200px;
        border-radius: 10px;
    }

    .post-cover img {
        height: 100%;
    }

    .post-detail {
        padding: 18px;
    }

    .post-detail .post-title {
        font-size: 23px;
    }
}

/* =========================================================
   视觉增强：背景层次 / 首页 Hero / 封面占位 / 友情链接
   ========================================================= */

/* ---------- 背景层次 ---------- */
body {
    background-image:
        radial-gradient(1200px 600px at 85% -8%, rgba(var(--primary-rgb), .06), transparent 60%),
        radial-gradient(1000px 520px at -10% 0%, rgba(var(--primary-rgb), .045), transparent 55%);
    background-attachment: fixed;
}

/* ---------- 封面占位（无封面文章） ---------- */
.post-cover--ph {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.post-cover--ph::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.4px);
    background-size: 14px 14px;
    opacity: .5;
}

.post-cover--ph .ph-letter {
    position: relative;
    font-size: 60px;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

/* ---------- 友情链接 ---------- */
.friend-links {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 26px 0 10px;
}

.fl-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    padding-left: 12px;
    color: var(--text);
}

.fl-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(var(--primary), var(--accent));
}

.fl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fl-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--text-soft);
    font-size: 14px;
    transition: color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.fl-list li a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), .12);
}

.fl-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
}

/* ---------- 个人中心页 ---------- */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    background: var(--bg-soft);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    margin: 0 0 8px;
    font-size: 24px;
}

.profile-bio {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 14px;
}

.profile-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
    color: var(--text-soft);
}

.profile-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-stat b {
    color: var(--text);
    font-weight: 700;
}

.profile-stat svg {
    flex-shrink: 0;
}

.profile-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.profile-alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.profile-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.profile-form h2 {
    font-size: 16px;
    margin: 0 0 16px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.pf-field {
    margin-bottom: 16px;
}

.pf-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.pf-field input[type="text"],
.pf-field input[type="email"],
.pf-field input[type="number"],
.pf-field input[type="file"],
.pf-field textarea,
.pf-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

.pf-field textarea {
    resize: vertical;
    min-height: 80px;
}

.pf-field input:disabled {
    background: var(--bg-soft);
    color: var(--text-soft);
}

.pf-upload .pf-remove {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-soft);
}

.pf-preview {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 8px;
}

.pf-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.pf-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.pf-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-photo-item input[type="checkbox"] {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 16px;
    height: 16px;
}

.pf-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text-soft);
}

.pf-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.profile-public .profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-soft);
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.profile-gallery a {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1;
}

.profile-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}

.profile-gallery a:hover img {
    transform: scale(1.04);
}

.profile-login-tip {
    margin-top: 24px;
    color: var(--text-soft);
    font-size: 13px;
}

@media (max-width: 700px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}


/* ---------- 页脚增强 ---------- */
.site-footer {
    margin-top: 8px;
}


/* ---------- 登录后「管理」头像（用户菜单） ---------- */
/* 约束默认 512x512 头像为导航栏小圆头像，避免撑爆页面 */
.site-header .user-menu {
    position: relative;
}
.site-header .user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.site-header .header-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--bg-soft);
    flex-shrink: 0;
    transition: transform .2s ease, border-color .2s ease;
}
.site-header .user-menu-trigger:hover .header-avatar {
    transform: scale(1.08);
    border-color: var(--primary);
}

/* ---------- 移动端适配（增强部分） ---------- */
@media (max-width: 900px) {
    .post-cover--ph {
        min-height: 160px;
    }
}

/* =========================================================
   统一登录弹窗：复刻 emlog 默认 auth-modal（与 blog.52jsdh.cn 一致）
   ========================================================= */
.scroll-fix {
    overflow: hidden;
}

.auth-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    z-index: 1090;
    backdrop-filter: blur(2px);
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-card {
    width: 100%;
    max-width: 430px;
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    padding: 24px;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
    color: var(--text);
    padding: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}

.auth-modal-close:hover {
    background: var(--bg-soft);
}

.auth-modal-head h3 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
}

.auth-modal-head p {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.auth-modal-alert {
    display: none;
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

.auth-modal-alert.show {
    display: block;
}

.auth-modal-alert.success {
    background: rgba(56, 161, 105, 0.15);
    color: #2f855a;
}

.auth-form-row {
    margin-bottom: 12px;
}

.auth-form-row input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.auth-form-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-soft);
    margin: 2px 0 10px;
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.auth-submit {
    width: 100%;
    margin: 4px 0 0;
}

.auth-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.auth-login-ext {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-login-ext a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.auth-login-ext img {
    display: block;
    max-height: 28px;
}

.auth-modal-switch {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

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

.auth-modal-switch a:hover {
    text-decoration: underline;
}

/* 顶部导航登录入口：复刻 emlog 默认 nav-link-login */
.nav-link-login {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    min-height: 32px;
    padding: 0.22rem 0.7rem;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    transition: filter .2s, background .2s;
}

.nav-link-login:hover {
    filter: brightness(1.06);
    color: #fff;
}

/* 顶部工具区内的登录按钮：与切换按钮等高对齐 */
.header-tools .nav-link-login {
    height: 38px;
    padding: 0 0.9rem;
    margin-left: 2px;
}

.dark .auth-modal-alert {
    background: rgba(252, 129, 129, 0.2);
    color: #feb2b2;
}

.dark .auth-modal-alert.success {
    background: rgba(72, 187, 120, 0.2);
    color: #9ae6b4;
}

@media (max-width: 577px) {
    .auth-modal {
        align-items: flex-end;
        padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    }
    .auth-modal-card {
        max-width: none;
        max-height: min(86vh, 640px);
        border-radius: 16px 16px 12px 12px;
        padding: 18px 16px 16px;
        overflow-y: auto;
    }
    .auth-modal-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
}

/* 独立注册页 */
.aurora-register-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}
.aurora-register-card {
    position: relative;
    width: 420px;
    max-width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 38px 34px 32px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    overflow: hidden;
}
.aurora-register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.aurora-register-hero {
    text-align: center;
    margin-bottom: 22px;
}
.aurora-register-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}
.aurora-register-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-soft);
}
.aurora-register-back {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-soft);
    text-decoration: none;
}
.aurora-register-back:hover {
    color: var(--primary);
}

/* 侧边栏「登录 / 注册」：居中平分的两个按钮 */
.bloggerinfo-auth {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 6px 14px 14px;
}
.aurora-auth-link {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s, background .2s, color .2s, border-color .2s, transform .15s;
}
.aurora-auth-link svg {
    flex-shrink: 0;
}
.aurora-auth-link--signin {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}
.aurora-auth-link--signin:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.aurora-auth-link--signup {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
}
.aurora-auth-link--signup:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.dark .aurora-auth-link--signup {
    background: var(--card-bg);
}

/* ---------- 个人中心：签到 / 在线状态 ---------- */
.profile-member {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}
.pm-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}
.pm-checkin-stats {
    display: flex;
    gap: 14px;
    color: var(--text-soft);
}
.pm-checkin-stats b {
    color: var(--primary);
}
.pm-checkin .btn {
    white-space: nowrap;
}
.pm-checkin-msg {
    color: var(--primary);
    font-size: 13px;
}
.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
    flex-shrink: 0;
}
.online-dot.is-online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}
.pm-online-label b {
    color: var(--text);
}


/* ---------- 自定义 404 页面 ---------- */
.aurora-404 .post-title {
    color: var(--primary);
}
.aurora-404-body {
    padding: 8px 0 24px;
    line-height: 1.8;
}
.aurora-404-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.aurora-404-actions .btn {
    text-decoration: none;
}

/* ---------- 无障碍：尊重减弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
