/* ============================================================
   poshibu theme — iokle.com 迫事部 视觉风格移植 (深空紫)
   设计令牌取自 iokle.com (index.html CSS variables)
   ============================================================ */

:root {
    --bg-deep: #05051a;
    --bg-soft: #0a0a26;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(124, 58, 237, 0.25);
    --text-primary: #eef2f8;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.3);
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-light: #a78bfa;
    --purple-pale: #c4b5fd;
    --cyan: #06b6d4;
    --cyan-light: #67e8f9;
    --nav-height: 84px;
    --card-radius: 18px;
    --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans CJK SC', sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
    background:
        radial-gradient(900px 480px at 12% -8%, rgba(124, 58, 237, 0.14), transparent 60%),
        radial-gradient(800px 420px at 88% -6%, rgba(6, 182, 212, 0.08), transparent 60%),
        radial-gradient(1200px 600px at 50% 110%, rgba(91, 33, 182, 0.12), transparent 65%),
        var(--bg-deep);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.scroll-fix { overflow: hidden; }

::selection { background: rgba(124, 58, 237, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.35); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.6); }

a { color: var(--purple-pale); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; }

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

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    z-index: 3000;
    transition: width .08s linear;
}

/* ============ 顶部导航 (仿 iokle.com nav) ============ */
.blog-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 1200;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 26, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.blog-header.scrolled {
    background: rgba(5, 5, 26, 0.85);
    border-bottom-color: var(--border-card);
}

.blog-header-c {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* 左侧品牌 */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
}
.brand-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    letter-spacing: .4px;
}

/* 右侧导航 */
.blog-header-nav ul.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-header-nav .nav-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    letter-spacing: .3px;
    transition: color .2s, background .2s;
}
.blog-header-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.blog-header-nav .nav-link[aria-current="page"] {
    color: #fff;
    background: rgba(124, 58, 237, 0.18);
}
.list-item { list-style: none; }
.user-menu .header-avatar { width: 28px; height: 28px; border-radius: 50%; vertical-align: -7px; margin-right: 6px; }

/* 下拉子菜单(桌面) */
.list-menu { position: relative; }
.dropdown-menus {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 150px;
    background: rgba(13, 13, 43, 0.96);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    z-index: 1300;
}
.list-menu:hover > .dropdown-menus,
.list-menu:focus-within > .dropdown-menus { display: block; }
.dropdown-menus .nav-link { display: block; width: 100%; white-space: nowrap; }
.user-dropdown-menus { left: auto; right: 0; }

/* 移动端汉堡按钮 */
.blog-header-toggle {
    display: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    background: rgba(255,255,255,.03);
}
.blog-header-toggle svg { display: block; }

/* ============ Hero (仅首页, 仿 iokle.com) ============ */
.site-hero {
    text-align: center;
    padding: 72px 0 40px;
    position: relative;
}
.site-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--purple-pale);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: .5px;
    animation: fadeUp .6s ease both;
}
.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 12px var(--purple);
    animation: pulse 2s infinite;
}
.hero-title {
    margin: 26px 0 6px;
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 10px;
    color: #fff;
    text-shadow: 0 0 60px rgba(124, 58, 237, 0.55), 0 0 24px rgba(124, 58, 237, 0.3);
    animation: fadeUp .7s .08s ease both;
}
.hero-sub {
    font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(90deg, var(--purple-light), var(--cyan-light));
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 18px;
    animation: fadeUp .7s .16s ease both;
}
.hero-slogan {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeUp .7s .24s ease both;
}
.hero-slogan span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 16px;
    border-radius: 999px;
    letter-spacing: 1px;
}
.hero-desc {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    font-size: 15.5px;
    animation: fadeUp .7s .32s ease both;
}
.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeUp .7s .4s ease both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), #a855f7);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 38px rgba(124, 58, 237, 0.5); }
.btn-outline {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.16);
    background: transparent;
}
.btn-outline:hover { color: #fff; border-color: var(--purple); background: rgba(124, 58, 237, 0.08); transform: translateY(-2px); }
.hero-scroll { margin-top: 40px; font-size: 11px; letter-spacing: 3px; color: var(--text-muted); animation: fadeUp .7s .5s ease both; }
.hero-scroll-arrow { width: 1px; height: 34px; margin: 8px auto 0; background: linear-gradient(180deg, var(--purple), transparent); }

/* 区块标题 (仿 iokle section-header) */
.list-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0 28px;
    animation: fadeUp .6s ease both;
}
.list-head-label {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--purple-pale);
    white-space: nowrap;
}
.list-head-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
}
.list-head-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(124,58,237,.5), transparent); }

/* ============ 主内容骨架 ============ */
.blog-container { flex: 1; width: 100%; }
main.container { padding-top: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.column-big { flex: 1; min-width: 0; }

/* ============ 首页文章卡片 ============ */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: 30px 32px 24px;
    margin-bottom: 22px;
    transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
    animation: fadeUp .6s ease both;
}
.post-card:nth-child(2) { animation-delay: .05s; }
.post-card:nth-child(3) { animation-delay: .1s; }
.post-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 58, 237, 0.12), 0 0 42px rgba(124, 58, 237, 0.12);
}
.post-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.loglist-sort a {
    display: inline-block;
    font-size: 12px;
    color: var(--purple-pale);
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.28);
    padding: 2px 12px;
    border-radius: 999px;
    letter-spacing: 1px;
}
.loglist-sort a:hover { color: #fff; background: rgba(124, 58, 237, 0.32); }
.log-topflg {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 1px 10px;
    border-radius: 999px;
    letter-spacing: 2px;
}
.post-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 700;
}
.post-title a { color: var(--text-primary); }
.post-title a:hover { color: var(--purple-pale); }
.post-excerpt { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 4px; }
.post-excerpt p { margin: 0 0 6px; }
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    color: var(--text-muted);
}
.post-meta a { color: var(--text-muted); }
.post-meta a:hover { color: var(--purple-pale); }
.post-meta .iconfont { font-size: 13px; margin-right: 3px; }
.post-meta .sep { opacity: .5; }
.loglist-tag { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
a.tags {
    font-size: 11.5px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    padding: 1px 10px;
    border-radius: 999px;
}
a.tags:hover { color: #fff; background: rgba(124, 58, 237, 0.25); border-color: var(--border-hover); }

/* 空内容 */
.no-content { text-align: center; color: var(--text-muted); padding: 60px 0; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 8px;
}
.pagination a, .pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13.5px;
}
.pagination a:hover { color: #fff; border-color: var(--purple); background: rgba(124, 58, 237, 0.2); }
.pagination .current, .pagination .page-numbers.current {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), #a855f7);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ============ 文章/独立页 ============ */
.log-con {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0 0;
}
.log-header { padding: 10px 0 6px; }
.log-title {
    margin: 6px 0 16px;
    font-size: clamp(26px, 4.4vw, 36px);
    line-height: 1.35;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
}
.log-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 18px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    margin-bottom: 26px;
}
.log-meta-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.log-meta-item { font-size: 13px; color: var(--text-muted); }
.log-meta-item a { color: var(--text-muted); }
.log-meta-item a:hover { color: var(--purple-pale); }
.log-meta-item time { font-family: var(--font-mono); font-size: 12.5px; }
.log-meta-item .iconfont { margin-right: 4px; }
.log-meta-right a { font-size: 13px; color: var(--text-muted); }
.log-meta-right a:hover { color: var(--purple-pale); }
.log-cover img { border-radius: var(--card-radius); border: 1px solid var(--border-card); display: block; }

.markdown { font-size: 15.5px; color: rgba(238, 242, 248, 0.92); }
.markdown > :first-child { margin-top: 0; }
.markdown a { color: var(--purple-pale); border-bottom: 1px solid rgba(167, 139, 250, 0.3); }
.markdown a:hover { color: #fff; border-bottom-color: #fff; }

/* 文章页标签 */
.log-tag-row { margin: 30px 0 4px; }
.log-tag-row a.tags { font-size: 12.5px; padding: 3px 13px; margin-right: 6px; }

/* 上下篇 */
.neighbor-log {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 36px 0 8px;
}
.prev-log, .next-log { display: flex; }
.next-log { justify-content: flex-end; text-align: right; }
.neighbor-link {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color .25s, background .25s, transform .25s;
}
.neighbor-link:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
.neighbor-dir {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    letter-spacing: 2px;
    color: var(--purple-pale);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.next-log .neighbor-dir { justify-content: flex-end; }
.neighbor-title {
    display: block;
    color: var(--text-primary);
    font-size: 14.5px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ 评论 ============ */
.comment-header {
    margin: 42px 0 18px;
    font-size: 19px;
    color: #fff;
    letter-spacing: 1px;
}
.comment {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: border-color .2s;
}
.comment:hover { border-color: rgba(124, 58, 237, 0.28); }
.comment .avatar img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(124, 58, 237, 0.35); }
.comment-infos { flex: 1; min-width: 0; }
.comment-infos > b { color: #fff; font-size: 14.5px; }
.comment-infos > b a { color: var(--purple-pale); }
.comment-time { margin-left: 10px; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.comment-content { margin-top: 8px; font-size: 14.5px; color: rgba(238, 242, 248, 0.9); word-break: break-word; }
.comment-content p { margin: 4px 0; }
.comment-reply { margin-top: 8px; }
.com-reply {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12.5px;
    font-family: inherit;
    padding: 2px 0;
}
.com-reply:hover { color: var(--purple-pale); }
.comment-children { margin-left: 52px; }
#pagenavi { text-align: center; padding: 12px 0; }
#pagenavi a { color: var(--text-muted); margin: 0 6px; font-size: 13px; }
#pagenavi a:hover { color: var(--purple-pale); }

/* 评论表单 */
.comment-post {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--card-radius);
    padding: 26px;
    margin-top: 40px;
    transition: border-color .2s;
}
.comment-post:focus-within { border-color: var(--border-hover); }
.commentform textarea#comment {
    width: 100%;
    min-height: 130px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.commentform textarea#comment:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }
.comment-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}
.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }
.form-control::placeholder, textarea#comment::placeholder { color: rgba(255, 255, 255, 0.25); }
.captcha-container { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.captcha-container img { border-radius: 8px; cursor: pointer; border: 1px solid var(--border-card); }
.com_submit_p {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}
.com_submit_p .btn { font-size: 14px; padding: 9px 26px; }
input.btn[type="submit"], .commentform .btn { background: linear-gradient(135deg, var(--purple), #a855f7); color: #fff; border: none; }
input.btn[type="submit"]:hover, .commentform .btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4); }
.cancel-reply { display: none; background: transparent !important; color: var(--text-secondary) !important; border: 1px solid var(--border-card) !important; }
#comment-post.com-bottom { margin-top: 0; }

/* ============ 侧边悬浮按钮 ============ */
.side-toolbar {
    position: fixed;
    right: 22px;
    bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}
.side-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(13, 13, 43, 0.85);
    border: 1px solid var(--border-card);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all .2s;
}
.side-btn:hover { color: #fff; border-color: var(--purple); box-shadow: 0 0 18px rgba(124, 58, 237, 0.35); transform: translateY(-2px); }
#theme-toggle { display: none; }

/* ============ 页脚 (仿 iokle.com) ============ */
.blog-footer {
    margin-top: 70px;
    padding: 46px 20px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 2, 12, 0.4);
    text-align: center;
}
.footinfo {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 2;
}
.footinfo .logo-text {
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 4px;
}
.footinfo a { color: rgba(255, 255, 255, 0.35); font-size: 12px; }
.footinfo a:hover { color: var(--purple-pale); }

/* ============ 登录/注册弹窗 ============ */
#auth-modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 12, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 2100;
}
#auth-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(430px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    background: #0d0d2b;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    padding: 34px 30px 26px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 58, 237, 0.15);
    z-index: 2200;
    color: var(--text-primary);
}
.auth-modal-card { position: relative; }
.auth-modal-close {
    position: absolute;
    top: -18px;
    right: -14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.auth-modal-close:hover { color: #fff; }
#auth-modal-title { margin: 0 0 4px; font-size: 22px; color: #fff; letter-spacing: 2px; }
#auth-modal-subtitle { margin: 0 0 20px; font-size: 13px; color: var(--text-muted); }
.auth-form-row { margin-bottom: 14px; }
.auth-form-row input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.auth-form-row input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }
.auth-form-row input::placeholder { color: rgba(255, 255, 255, 0.25); }
.auth-captcha-row { display: flex; gap: 10px; align-items: center; }
.auth-captcha-row input { flex: 1; }
.auth-captcha-row img { height: 42px; border-radius: 8px; cursor: pointer; }
.auth-inline-row { display: flex; gap: 10px; }
.auth-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin: 4px 0 16px; }
.auth-checkbox input { accent-color: var(--purple); }
.auth-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--purple), #a855f7);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform .2s, box-shadow .2s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(124, 58, 237, 0.45); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-inline-btn { background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(124, 58, 237, 0.4); color: var(--purple-pale); border-radius: 10px; padding: 0 14px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.auth-modal-switch { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--text-muted); display: flex; gap: 18px; justify-content: center; }
.auth-modal-switch a { color: var(--purple-pale); cursor: pointer; }
.auth-modal-switch a:hover { color: #fff; }
.auth-modal-alert { font-size: 13px; color: #fda4af; margin-bottom: 12px; text-align: center; }
.auth-modal-alert.success { color: #6ee7b7; }
.auth-login-ext { margin-top: 14px; }

/* 移动端遮罩(导航) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 12, 0.55);
    z-index: 1150;
}
.nav-overlay.show { display: block; }

/* ============ 动画 ============ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(1.35); }
}

/* ============ 响应式 ============ */
@media (max-width: 991px) {
    :root { --nav-height: 68px; }
    .brand-sub { display: none; }
    .blog-header-toggle { display: block; }
    .blog-header-nav {
        position: fixed;
        top: 0;
        right: -290px;
        width: 270px;
        height: 100%;
        background: rgba(9, 9, 34, 0.97);
        border-left: 1px solid rgba(124, 58, 237, 0.25);
        padding: 90px 20px 30px;
        z-index: 1160;
        transition: right .3s ease;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    .blog-header-nav.show { right: 0; }
    .blog-header-nav ul.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .blog-header-nav .nav-link { display: block; padding: 12px 14px; font-size: 15.5px; }
    .dropdown-menus { position: static; display: none; box-shadow: none; background: rgba(255,255,255,.03); border-color: transparent; margin: 2px 0 6px 14px; }
    .list-menu:hover > .dropdown-menus { display: block; }
    .user-menu .user-menu-label { display: none; }
    .site-hero { padding: 46px 0 30px; }
    .hero-title { letter-spacing: 6px; }
    .hero-slogan span { font-size: 13px; padding: 4px 12px; }
    .post-card { padding: 24px 22px 18px; }
    .loglist-tag { margin-left: 0; margin-top: 8px; }
    .neighbor-log { grid-template-columns: 1fr; }
    .comment-info { grid-template-columns: 1fr; }
    .comment-children { margin-left: 18px; }
    .side-toolbar { right: 14px; bottom: 16px; }
}

/* ============================================================
   微语 · 心情说说 (poshibu v1.1)
   ============================================================ */
.tw-page { max-width: 640px; margin: 0 auto; }

/* 发心情框 */
.tw-composer {
    background: linear-gradient(160deg, rgba(124,58,237,.12), rgba(255,255,255,.03));
    border: 1px solid rgba(124,58,237,.28);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 26px;
}
.tw-composer textarea {
    width: 100%;
    min-height: 86px;
    resize: vertical;
    background: rgba(5,5,26,.5);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.tw-composer textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.tw-composer textarea::placeholder { color: rgba(255,255,255,.28); }
.tw-composer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}
.tw-composer-tip { font-size: 12px; color: var(--text-muted); }
.tw-composer-opts { display: flex; align-items: center; gap: 14px; }
.tw-composer-opts label {
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--text-muted); cursor: pointer;
}
.tw-composer-opts input[type="checkbox"] { accent-color: var(--purple); }
.tw-composer .btn { font-size: 13.5px; padding: 8px 22px; }

/* 说说卡片 */
.tw-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 18px;
    transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
    animation: fadeUp .5s ease both;
}
.tw-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0,0,0,.3);
}
.tw-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tw-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(124,58,237,.4);
    object-fit: cover;
    flex: none;
}
.tw-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.tw-meta { display: flex; align-items: center; gap: 8px; margin-top: 1px; }
.tw-time { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.tw-top {
    font-size: 10.5px; font-weight: 700; letter-spacing: 2px;
    color: #fbbf24; border: 1px solid rgba(245,158,11,.45);
    padding: 1px 8px; border-radius: 999px;
}
.tw-content { font-size: 15px; color: rgba(238,242,248,.92); line-height: 1.8; word-break: break-word; }
.tw-content p { margin: 0 0 .6em; }
.tw-content img { border-radius: 14px; border: 1px solid var(--border-card); margin: .4em 0; max-height: 420px; object-fit: cover; }
.tw-content a { color: var(--purple-pale); border-bottom: 1px solid rgba(167,139,250,.3); }
.tw-content code { font-family: var(--font-mono); font-size: .86em; background: rgba(255,255,255,.08); color: #e9d5ff; padding: 1px 6px; border-radius: 5px; }
.tw-content blockquote { border-left: 3px solid var(--purple); background: rgba(124,58,237,.08); padding: 6px 14px; border-radius: 0 10px 10px 0; margin: .8em 0; color: rgba(238,242,248,.8); }
.tw-item-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,.07);
}
.tw-like { font-size: 12.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.tw-like .heart { color: #ec4899; }
.tw-ops { display: flex; gap: 8px; }
.tw-ops button {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 12px; font-family: inherit;
    padding: 2px 8px; border-radius: 7px;
}
.tw-ops button:hover { color: #fff; background: rgba(255,255,255,.07); }
.tw-ops button.danger:hover { color: #fda4af; background: rgba(244,63,94,.15); }
.tw-ops button.armed { color: #fda4af !important; background: rgba(244,63,94,.18) !important; border: 1px solid rgba(244,63,94,.4) !important; }

/* 空态 */
.tw-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 20px;
}
.tw-empty .big { font-size: 40px; margin-bottom: 12px; }
.tw-empty p { margin: 4px 0; font-size: 14px; }
.tw-empty .sub { font-size: 12.5px; opacity: .8; }

/* 分页(微语) */
.tw-pagination { display: flex; justify-content: center; gap: 8px; margin: 26px 0 10px; }
.tw-pagination a, .tw-pagination span {
    min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px; border-radius: 10px; font-size: 13px;
    border: 1px solid var(--border-card); background: var(--bg-card); color: var(--text-secondary);
}
.tw-pagination a:hover { color: #fff; border-color: var(--purple); }
.tw-pagination .cur { color: #fff; background: linear-gradient(135deg,var(--purple),#a855f7); border-color: transparent; }

/* 首页 · 最近心情预览 */
.tw-preview {
    background: linear-gradient(150deg, rgba(124,58,237,.07), rgba(255,255,255,.02));
    border: 1px solid var(--border-card);
    border-radius: 22px;
    padding: 22px 26px 10px;
    margin-bottom: 8px;
    animation: fadeUp .6s ease both;
}
.tw-preview-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.tw-preview-head .list-head-label { font-size: 11px; }
.tw-preview-head h3 { margin: 0; font-size: 18px; color: #fff; letter-spacing: 1px; }
.tw-preview-more { margin-left: auto; font-size: 12.5px; color: var(--purple-pale); white-space: nowrap; }
.tw-preview-more:hover { color: #fff; }
.tw-mini {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 8px;
    border-radius: 14px;
    transition: background .2s;
}
.tw-mini:hover { background: rgba(255,255,255,.04); }
.tw-mini .tw-avatar { width: 36px; height: 36px; border-width: 1.5px; }
.tw-mini-body { flex: 1; min-width: 0; }
.tw-mini-text {
    font-size: 13.5px; color: rgba(238,242,248,.85); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tw-mini-text p { margin: 0; display: inline; }
.tw-mini-time { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; font-family: var(--font-mono); }
.tw-mini .tw-like { margin-left: 8px; flex: none; }
