/* Notea 黑白简约主题 - Typecho 1.3.0 */

:root {
    --bg: #FAFAFA;
    --panel: #FFFFFF;
    --border: #EBEBEB;
    --text: #1A1A1A;
    --text-secondary: #8A8A8A;
    --hover: #F5F5F5;
    --active: #F0F0F0;
    --sidebar-width: 52px;
    --sidebar-expand: 160px;
}

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

body {
    font-family: 'zql', "Droid Serif", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei", "Microsoft Yahei", serif;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    height: 100vh;
    overflow: hidden;
    max-width: 780px;
    margin: auto;
}

/*@font-face {*/
/*    font-family: 'zql';*/
/*    src: url(/usr/themes/notea/assets/font/zql-v2-subset.woff2)format('woff2'),url(usr/themes/notea/font/zql-v2-subset.woff)format('woff');*/
/*    font-display: swap;*/
/*}*/

.dtbg {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 35%;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(to top,rgba(236,247,255,1),rgba(250,250,250,0));
    z-index: -99999999;
}

.body-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -999999999;
    overflow: hidden;
}

.body-bg:after {
    content: '';
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.b-left::before {
    left: 10%;
    bottom: 22%;
    width: 150px;
    height: 150px;
}

.b-right::before {
    right: 5%;
    top: 8%;
    width: 250px;
    height: 250px;
}

.slider-thumb::before {
    opacity: 0.5;
    position: absolute;
    content: "";
    background: linear-gradient(90deg,#e7f0ff,#a5c7ff);
    border-radius: 62% 47% 82% 35% / 45% 45% 80% 66%;
    will-change: border-radius,transform,opacity;
    animation: sliderShape 5s linear infinite;
    display: block;
    z-index: -1;
    -webkit-animation: sliderShape 5s linear infinite;
}

@keyframes sliderShape {
    0%,100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: translate3d(0,0,0) rotateZ(0.01deg);
    }

    34% {
        border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%;
        transform: translate3d(0,5px,0) rotateZ(0.01deg);
    }

    50% { transform: translate3d(0,0,0) rotateZ(0.01deg); }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: translate3d(0,-3px,0) rotateZ(0.01deg);
    }
}

@media screen and (max-width:960px) {
    .body-bg { display: none; }
}

a {
    color: inherit;
    text-decoration: none;
}

/* 针对 WebKit 内核浏览器 (Chrome, Safari, Edge, Android Browser) */

a { -webkit-tap-highlight-color: transparent; }

/* 全局保险 */

* { -webkit-tap-highlight-color: rgba(0,0,0,0); }

input:focus,textarea:focus { outline: none; }

.scroll-end,.loading-dots { text-align: center; }

/*ul, ol { list-style: none; }*/

/* ===== 顶部栏 ===== */

.topbar {
    height: 52px;
    background: var(--panel);
    border-bottom: 0.5px solid #e0e0e057;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.topbar .logo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.topbar .search {
    flex: 1;
    /*max-width: 320px;*/ margin: 0 auto;
    position: relative;
}

.topbar .search input {
    width: 100%;
    height: 28px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12px;
    background: #fafafa;
    color: #8e8e93;
    outline: none;
}

.topbar .search input::placeholder { color: var(--text-secondary); }

.topbar .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border);
    overflow: hidden;
}

.topbar .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 主体 ===== */

.main {
    display: flex;
    height: calc(100vh - 43px - 24px);
}

/* ===== 左侧分类（丝滑核心） ===== */

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--panel);
    border-right: 0.5px solid #e0e0e057;
    padding: 4px 0;
    overflow: hidden;
    will-change: width; /*transition: width 0.1s cubic-bezier(0.4, 0.0, 0.2, 1);*/
}

.sidebar.expanded {
    width: var(--sidebar-expand);
    min-width: var(--sidebar-expand);
}

/* hover 已禁用，避免干扰收起状态 */

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.2s;
}

.sidebar-toggle:hover { color: var(--text); }

.sidebar-inner {
    width: var(--sidebar-expand);
    transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.25s ease;
}

.sidebar:not(.expanded) .sidebar-inner {
    /*transform: translateX(-8px);*/ /*opacity: 0.5;*/;
}

.sidebar .section-title {
    font-size: 10px;
    color: var(--text-secondary);
    padding: 8px 16px 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.sidebar.expanded .section-title {
    opacity: 1;
    transform: translateX(0);
}

/* 菜单项 */

.sidebar .item {
    display: flex;
    align-items: center;
    padding: 7px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    transition: background 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.sidebar .item:hover {
    background: var(--hover);
    text-decoration: none;
}

.sidebar .item.active {
    background: var(--active);
    font-weight: 500;
}

.sidebar .item .icon {
    font-size: 16px;
    width: 20px;
    min-width: 20px;
    text-align: center;
    opacity: 0.7;
}

.sidebar .item .label,
.sidebar .item .count {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.sidebar.expanded .item .label,
.sidebar.expanded .item .count {
    font-size: 16px;
    opacity: 1;
    transform: translateX(0);
}

.sidebar .item .count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-secondary);
}

/* ===== 动态 ===== */

.notea-notification {
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    padding: 12.1px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 0.5px solid #fafafa !important;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #075985;
}

/* 铃铛图标 */

.icon-bell {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* 文本区域 */

.content {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desc { color: #075985; }

/* 时间（弱化显示） */

.time {
    font-size: 10px;
    color: #aaa;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.progress-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    /* 静态宽度，不随时间减少 */ background: #222;
    border-radius: 1px 1px 0 0;
}

/* ===== 笔记列表 ===== */

.note-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    min-width: 0;
    overflow: hidden;
}

.note-list-header {
    padding: 10px;
    border-bottom: 0.5px solid #e0e0e057;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.note-list-header .title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-list .list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.note-list .list::after {
    content: '';
    display: block;
    height: 100px;
    /* 底部留白100px */ width: 100%;
}

/* 关键：强制 a.note-item 表现为块级元素，解决布局错乱 */

.note-list .list > a.note-item {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    cursor: pointer !important;
    border-bottom: 0.5px solid #fafafa !important;
    background: transparent !important;
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

.note-list .list > a.note-item:hover {
    background: var(--hover) !important;
    color: inherit !important;
    text-decoration: none !important;
}

.note-list .list > a.note-item.active {
    background: var(--active) !important;
}

.note-list .list > a.note-item .note-title {
    display: block !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 3px !important;
    color: var(--text) !important;
    line-height: 1.4 !important;
}

.note-list .list > a.note-item .note-preview {
    display: block !important;
    font-size: 11.5px !important;
    color: var(--text-secondary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
}

.note-list .list > a.note-item .note-meta {
    display: block !important;
    font-size: 10.5px !important;
    color: var(--text-secondary) !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.note-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* 分页 */

/* ==========================================
深邃黑 Deep Black
迷你 App 分页 (适配 notea.cn 结构)
========================================== */

/* 容器：居中、紧凑 */

ol.page-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    /* 迷你间距 */ margin: 40px 0;
    padding: 0;
    list-style: none;
}

/* 基础单元：链接和文本 */

ol.page-navigator li a,
ol.page-navigator li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 迷你尺寸 (28x28 符合移动端点击热区) */ min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    /* App 圆角 */ transition: all 0.18s ease;
    box-sizing: border-box;
}

/* 普通页码链接 */

ol.page-navigator li a {
    color: #333;
    background-color: transparent;
    border: 1px solid transparent;
}

/* 悬停效果 */

ol.page-navigator li a:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* ===== 核心：当前页样式 (Deep Black) =====
针对你的结构：li.current > a
*/

ol.page-navigator li.current a {
    background-color: #1a1a1a;
    /* 深邃黑 */ color: #ffffff !important;
    /* 强制白色字体，优先级最高 */ font-weight: 600;
    border: 1px solid #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: default;
    /* 当前页不可点击 */ pointer-events: none; /* 禁用点击 */
}

/* 省略号 ... */

ol.page-navigator li span {
    color: #bbb;
    letter-spacing: 1px;
    border: none;
    background: none;
}

/* 下一页/上一页 (Next) */

ol.page-navigator li.next a {
    font-weight: 500;
    padding: 0 10px;
    /* 文字长一点，宽一点 */ min-width: auto;
}

/* 暗黑模式适配 (iOS/Android App 常用) */

@media (prefers-color-scheme: dark) {
    ol.page-navigator li a { color: #e0e0e0; }

    ol.page-navigator li a:hover {
        background-color: #2d2d2d;
        color: #fff;
    }

    ol.page-navigator li.current a {
        background-color: #ffffff;
        color: #1a1a1a !important;
        border-color: #ffffff;
    }

    ol.page-navigator li span { color: #666; }
}

/* 滚动条 */

::-webkit-scrollbar { width: 5px; }

::-webkit-scrollbar-thumb {
    background: #D5D5D5;
    border-radius: 3px;
}

/* ===== 底部状态栏 ===== */

.statusbar {
    background: var(--panel);
    border-top: 0.5px solid #e0e0e057;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 11px;
    color: var(--text-secondary);
    gap: 16px;
}

.statusbar .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52C41A;
    display: inline-block;
    margin-right: 4px;
}

/* ===== 文章详情页 ===== */

.post-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-content pre {
    background: var(--bg);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
    margin-top: 10px;
}

.post-content code {
    background: var(--bg);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.post-content blockquote {
    border-left: 3px solid var(--border);
    padding-left: 12px;
    color: var(--text-secondary);
    margin: 8px 0;
}

.post-content h1 { font-size: 1.1rem; }

.post-content h2 { font-size: 1rem; }

.post-content h3 { font-size: 0.9rem; }

.post-content h4 { font-size: 0.8rem; }

.post-content h5 { font-size: 0.7rem; }

.post-content h6 { font-size: 0.575rem; }

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    position: relative;
    padding-left: 12px; /* 给伪元素留空间 */
}

.post-content h2::before,
.post-content h3::before,
.post-content h4::before,
.post-content h5::before,
.post-content h6::before {
    content: ' # ';
    position: absolute;
    inset: 1% auto 10% 0;
    width: 4px;
    border-radius: 2px; /*background: linear-gradient(50deg, #000, transparent);*/
}

.post-content h2, .post-content h3, .post-content h4 { margin: 16px 0 8px; }

.post-content p { margin-bottom: 12px; }

.post-content ul, .post-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.post-content li { margin-bottom: 4px; }

/* 标签胶囊样式 */

.post-tags {
    padding: 10px 0px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    font-style: normal;
}

.post-tags a {
    background-color: #f5f5f5;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    font-style: normal;
}

.post-tags a:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

/*点赞*/

.like-card {
    display: flex;
    align-content: space-around;
    flex-wrap: wrap;
    flex-direction: column;
}

/* 点赞按钮 */

.like-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #8e8e93;
    padding: 8px 12px;
    border-radius: 10px;
    transition: color .25s, background .25s;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex-direction: column;
}

.like-btn:active { transform: scale(.96); }

.like-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

/* 激活状态 */

.like-btn.active { color: #ff3b5c; }

.like-btn.active svg {
    fill: #ff3b5c;
    stroke: #ff3b5c;
    transform: scale(1.15);
    animation: heartPop .4s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }

    40% { transform: scale(1.4); }

    100% { transform: scale(1.15); }
}

/* 计数数字 */

.count-num {
    font-variant-numeric: tabular-nums;
    min-width: 10px;
    text-align: right;
}

.commentsNum {
    display: inline-flex;
    align-items: center;
    /* 你原有的其他样式 */ margin-bottom: 30px;
    margin-top: 30px;
}

.commentsNum::before {
    content: "";
    width: 18px;
    /* 图标宽度，按需改 */ height: 18px;
    /* 图标高度，按需改 */ margin-right: 3px;
    /* 图标和文字的间距 */ flex-shrink: 0;
    /* 图标颜色 —— 改这里就行！ */ background-color: #888888;
    /* SVG 评论气泡图标 */ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-size: cover;
    mask-size: cover;
}

/* ===== 评论区 ===== */

.comments {
    color: #111;
    font-size: 13.5px;
    line-height: 1.4;
    min-height: 500px;
}

.comment-text img {
    width: 22px;
    height: auto;
    margin-bottom: -5px;
}

.comments h4 {
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.comment-item { padding-bottom: 5px; }

/*.comment-children {*/

/*    margin-left: 26px;*/

/*    border-left: 2px solid #ddd;*/

/*    padding-left: 8px;*/

/*    background: #fafafa;*/

/*}*/

.comment-body { position: relative; }

.comment-head {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    position: relative;
    min-height: 24px;
}

.comment-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.comment-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 12.5px;
}

.comment-user {
    font-weight: 500;
    color: #727272; /*font-size: 11px;*/
}

.comment-badge {
    font-size: 9px;
    color: #fff;
    background: #000;
    padding: 0 3px;
    border-radius: 2px;
    margin-left: 3px;
}

.comment-text {
    margin: 2px 0 2px 28px;
    color: #222;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
}

.comment-text a {
    margin-right: 5px;
    color: #888;
    font-weight: bold;
}

.comment-act {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.comment-act a {
    font-size: 11px;
    color: #999;
    text-decoration: none;
}

.comment-act a:hover { color: #000; }

.comment-date {
    font-size: 11px;
    color: #bbb;
}

.comment-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.comment-fields input {
    font-size: 11px;
    padding: 8px 6px;
    border: 0px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
}

.comment-form textarea {
    width: 100%;
    /*min-height: 42px;*/ border: 0px solid #ddd;
    /*padding: 4px;*/ resize: vertical;
    font-size: 11px;
    border-radius: 8px;
}

.comment-form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    border-radius: 4px;
}

.comment-form button:hover { background: #333; }

.comment-pagenav {
    margin-top: 10px;
    font-size: 11px;
}

.comment-logged {
    font-size: 11px;
    color: #999;
    margin: 10px;
}

.cancel-reply {
    font-size: 10px;
    color: #aaa;
    margin-left: 4px;
}

form.comment-form {
    margin-top: 10px;
    margin-bottom: 20px;
}

p.comment-submit {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: space-between;
}

a#cancel-comment-reply-link {
    background: #b91919;
    color: #fff;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    border-radius: 4px;
}

/* ===== 完整修复：QQ/微信对话逻辑 ===== */

/*子评论magin*/

.sub-comment {
    margin-left: 20px;
    margin-top: 5px;
}

.sub-comment .comment-avatar img {
    width: 22px;
    height: 22px;
    border-radius: 10px;
}

.sub-comment .comment-text { font-size: 13px; }

/* ========== 原有 CSS 100% 保留 ========== */

/* 评论输入栏 */

.commentsN {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.comment-avatar-placeholder { cursor: pointer; }

/*.comment-avatar-placeholder {*/

/*    cursor: pointer;*/

/*    flex-shrink: 0;*/

/*    width: 40px;*/

/*    height: 40px;*/

/*    border-radius: 50%;*/

/*    overflow: hidden;*/

/*    border: 1px solid #ddd;*/

/*    display: flex;*/

/*    align-items: center;*/

/*    justify-content: center;*/

/*    background: #f0f0f0;*/

/*}*/

/*.comment-input-placeholder {*/

/*    flex: 1;*/

/*    min-height: 40px;*/

/*    padding: 0 12px;*/

/*    border-radius: 8px;*/

/*    color: #999;*/

/*    cursor: text;*/

/*    display: flex;*/

/*    align-items: center;*/

/*}*/

/*.comment-submit-btn {*/

/*    flex-shrink: 0;*/

/*    height: 40px;*/

/*    padding: 0 16px;*/

/*    background: #333;*/

/*    color: #fff;*/

/*    border: none;*/

/*    border-radius: 8px;*/

/*    cursor: pointer;*/

/*    font-size: 13px;*/

/*}*/

/* Toast消息 */

.toast-message {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 99999;
}

/* 弹窗遮罩 */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

/* 弹窗容器 */

.modal-container {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.modal-container-large { /*max-width: 500px;*/; }

/* 弹窗头部 */

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-back-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

/* 弹窗主体 */

.modal-body { padding: 20px; }

/* 弹窗底部 */

.modal-footer {
    padding: 15px 20px;
    text-align: right;
}

/* 输入框组 */

.modal-input-group { margin-bottom: 15px; }

.modal-input-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.modal-input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.modal-input-readonly { background: #f9f9f0; }

/* 用户信息摘要 */

.user-summary {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.user-info { flex: 1; }

.user-name { font-weight: 500; }

.user-email {
    font-size: 12px;
    color: #666;
}

.user-edit-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* 回复提示 */

.reply-hint {
    display: none;
    background: #e8f4ff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #007cff;
}

/* 评论文本域 */

.comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
}

/* 按钮样式 */

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel {
    background: #f0f0f0;
    margin-right: 10px;
}

.btn-primary {
    background: #333;
    color: #fff;
}

.btn-secondary { background: #f0f0f0; }

/* 隐藏表单 */

.comment-form { display: none; }

/* ✅ 评论列表容器 —— 确保新评论始终在评论计数下方 */

.comment-list {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* ===========================================
暂无评论样式 - 简约现代风
=========================================== */

.no-comment-tip {
    text-align: center;
    padding: 70px 20px;
    color: #999;
    font-size: 12px;
    border-radius: 10px;
    margin: 30px 0;
    transition: all 0.3s ease;
}

/* 使用 SVG 图标（Base64编码，无需外链图片） */

.no-comment-tip::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    /* 这是一个气泡对话框的SVG图标 */ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cccccc'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12c0 1.54.36 3 .97 4.29L2 22l5.71-.97C9.52 21.64 10.98 22 12 22c5.52 0 10-4.48 10-10S17.52 2 12 2zm0 18c-1.47 0-2.87-.35-4.1-.96l-.3-.17-2.89.49.49-2.89-.17-.3C4.35 14.87 4 13.47 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8-3.59 8-8 8z'/%3E%3Cpath d='M8 14h8v2H8zM8 10h8v2H8zM8 6h8v2H8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.8;
}

.comment-closed {
    text-align: center;
    padding: 20px;
    color: #bbb;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px dashed #eee;
}

/* 移动端适配 */

@media (max-width: 768px) {
    .comment-fields { grid-template-columns: 1fr; }

    /*.comment-children {*/

    /*    margin-left: 14px;*/

    /*}*/

    .comment-self.comment-child { margin-right: 14px; }

    .comment-act { opacity: 1 !important; }

    /* 移动端下自己评论的气泡调整 */

    .comment-self .comment-text { max-width: calc(90% - 28px); }
}

/* 友链容器：去除默认边距 */

.weui-friends-list {
    padding: 10px;
    box-sizing: border-box;
}

/* 单个友链项：一行一列布局 */

.weui-friend-item {
    background: #fff;
    border-radius: 10px;
    /* 圆角 */ margin-bottom: 10px;
    /* 每一项之间的间距 */ overflow: hidden;
    /* 确保圆角生效 */ transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0 !important;
}

/* 鼠标悬停效果 */

.weui-friend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 链接样式重置 */

.weui-friend-link {
    display: flex;
    /* 使用 Flexbox 横向排列头像和内容 */ align-items: center;
    /* 垂直居中 */ padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

/* 头像样式 */

.weui-friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* 圆形头像 */ object-fit: cover;
    margin-right: 14px;
    /* 头像与文字的间距 */ flex-shrink: 0;
    /* 防止头像被压缩 */ border: 1px solid #f0f0f0;
}

/* 右侧信息区域（占据剩余空间） */

.weui-friend-info {
    flex: 1;
    min-width: 0; /* 解决 flex 布局下文本溢出不生效的问题 */
}

/* 上半部分：名字 + 状态 */

.weui-friend-top {
    display: flex;
    justify-content: space-between;
    /* 两端对齐 */ align-items: center;
    margin-bottom: 6px;
}

/* 昵称 */

.weui-friend-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 超出显示省略号 */
}

/* 状态标签 */

.weui-friend-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* 在线状态：绿色 */

.weui-friend-status.online {
    color: #07c160;
    /* 微信绿 */ background-color: rgba(7, 193, 96, 0.1);
}

/* 离线状态：灰色 */

.weui-friend-status.offline {
    color: #999;
    background-color: #f0f0f0;
}

/* 下半部分：描述 + 时间 */

.weui-friend-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* 描述文字 */

.weui-friend-last-msg {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px; /* 与时间的间距 */
}

/* 时间文字 */

.weui-friend-time {
    color: #999;
    flex-shrink: 0;
}

/* 容器：移动端一列，PC端两列 */

.note-list .list .container {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */ gap: 15px 60px;
    /* 上下间距 15px，左右间距 60px */ padding: 10px;
}

/* 列的基础样式 */

.note-list .list .column {
    flex: 1;
    min-width: 240px; /* 防止屏幕很窄时挤在一起 */
}

/* 每一行的项目 */

.note-list .list .item {
    font-size: 14px;
    /* 跟随主题字体大小，或者自行修改 */ margin-bottom: 18px;
    display: flex;
    align-items: baseline; /* 基线对齐，数字和汉字更和谐 */
}

/* 冒号前的文字（弱化） */

.note-list .list .item .key {
    color: #999;
    font-weight: 400;
    min-width: 52px;
    margin-right: 10px;
    flex-shrink: 0;
    /* 防止被挤压 */ text-align: justify;
    text-align-last: justify; /* 伪对齐，让冒号看起来整齐 */
}

/* 冒号后的内容（强调） */

.note-list .list .item .value {
    color: var(--text-color, #333);
    /* 优先使用主题变量，没有则用深色 */ font-weight: 500;
}

/* 底部签名 */

.note-list .list .footer {
    width: 100%;
    /* 跨两列 */ margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    /* 仅底部保留一条极细的分割线，用于区隔 */ color: #bbb;
    font-style: italic;
    font-size: 13px;
    text-align: center;
}

/* 标签样式（柔和版） */

.note-list .list .tags .value span {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    font-style: normal;
}

/* 电脑端微调 */

@media (min-width: 768px) {
    .note-list .list .container { gap: 20px 80px; /* PC端加大列间距 */ }
}

/* ===== 评论区 ===== */

.commentsNum {
    display: inline-flex;
    align-items: center;
    margin: 30px 0;
}

.commentsNum::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 3px;
    flex-shrink: 0;
    background-color: #888;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}

.comments {
    color: #111;
    font-size: 13.5px;
    line-height: 1.4;
    min-height: 500px;
}

.comments h4 {
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.comment-item { padding-bottom: 5px; }

.comment-body { position: relative; }

.comment-head {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    position: relative;
    min-height: 24px;
}

.comment-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.comment-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 12.5px;
}

.comment-user {
    font-weight: 500;
    color: #727272;
}

.comment-badge {
    font-size: 9px;
    color: #fff;
    background: #000;
    padding: 0 3px;
    border-radius: 2px;
    margin-left: 3px;
}

.comment-text {
    margin: 2px 0 2px 28px;
    color: #222;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
}

.comment-text img {
    width: 22px;
    height: auto;
    margin-bottom: -5px;
}

.comment-text a {
    margin-right: 5px;
    color: #888;
    font-weight: bold;
}

/* 私密评论 */

.private-checkbox {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

.private-checkbox input[type="checkbox"] { margin-right: 6px; }

.private-checkbox small {
    display: block;
    margin-top: 4px;
    color: #999;
}

.SecretComments {
    color: #999;
    font-style: italic;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    display: inline-block;
}

.private-wrap {
    display: inline-flex!important;
    align-items: center!important;
    flex-wrap: wrap!important;
    gap: 4px!important;
    line-height: 1.6!important;
}

.private-wrap .private-badge {
    font-size: 12px!important;
    padding: 0 3px!important;
    border-radius: 2px!important;
    background: #fce8e8!important;
    color: #c62828!important;
    border: 1px solid #c62828!important;
    display: inline-block!important;
    vertical-align: middle!important;
    margin: 0!important;
    flex-shrink: 0!important;
}

.private-wrap .private-text {
    display: inline!important;
    vertical-align: middle!important;
}

.private-wrap .emoji-inline { vertical-align: top!important; }

.my-friend-tag {
    font-size: 9px;
    padding: 0 3px;
    border-radius: 2px;
    margin-left: 3px;
    background: #ecf5ff;
    color: #409eff;
    border: 1px solid #b3d8ff;
}

.comment-badge {
    font-size: 9px;
    padding: 0 3px;
    border-radius: 2px;
    margin-left: 3px;
    background: #fef0e6;
    color: #f0884a;
    border: 1px solid #f0884a;
}

.my-custom-at-tag {
    display: inline-block;
    vertical-align: middle;
    font-size: 9px;
    padding: 0 3px;
    border-radius: 2px;
    margin-left: 3px;
    background: #f0f4ff;
    color: #5b7cfa;
    border: 1px solid #5b7cfa;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media(min-width:768px) {
    .my-custom-at-tag {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }
}

.comment-act {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.comment-act a {
    font-size: 11px;
    color: #999;
    text-decoration: none;
}

.comment-act a:hover { color: #000; }

.comment-date {
    font-size: 11px;
    color: #bbb;
}

.comment-fields {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.comment-fields input {
    font-size: 11px;
    padding: 8px 6px;
    border: 0 solid #ddd;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
}

.comment-form {
    display: none;
    margin: 10px 0 20px;
}

.comment-form textarea {
    width: 100%;
    border: 0 solid #ddd;
    resize: vertical;
    font-size: 11px;
    border-radius: 8px;
}

.comment-form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    border-radius: 4px;
}

.comment-form button:hover { background: #333; }

.comment-pagenav {
    margin-top: 10px;
    font-size: 11px;
}

.comment-logged {
    font-size: 11px;
    color: #999;
    margin: 10px;
}

p.comment-submit {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

a#cancel-comment-reply-link {
    background: #b91919;
    color: #fff;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
    border-radius: 4px;
}

.sub-comment { margin: 5px 0 0 20px; }

.sub-comment .comment-avatar img {
    width: 22px;
    height: 22px;
    border-radius: 10px;
}

.sub-comment .comment-text { font-size: 13px; }

.commentsN {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.toast-message {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 99999;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-back-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.modal-body { padding: 20px; }

.modal-footer {
    padding: 15px 20px;
    text-align: right;
}

.modal-input-group { margin-bottom: 15px; }

.modal-input-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.modal-input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.user-summary {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.user-info { flex: 1; }

.user-name { font-weight: 500; }

.lazy-avatar.avatar-jump { animation: avatarJump 1.2s ease; }

@keyframes avatarJump {
    0% { transform: translateY(0); }

    15% { transform: translateY(-6px); }

    30% { transform: translateY(4px); }

    45% { transform: translateY(-3px); }

    60% { transform: translateY(2px); }

    80% { transform: translateY(-1px); }

    100% { transform: translateY(0); }
}

.user-email {
    font-size: 12px;
    color: #666;
}

.reply-hint {
    display: none;
    background: #e8f4ff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #007cff;
}

.comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #333;
    color: #fff;
}

.comment-list {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.no-comment-tip {
    text-align: center;
    padding: 70px 20px;
    color: #999;
    font-size: 12px;
    border-radius: 10px;
    margin: 30px 0;
    transition: all .3s ease;
}

.no-comment-tip::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cccccc'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12c0 1.54.36 3 .97 4.29L2 22l5.71-.97C9.52 21.64 10.98 22 12 22c5.52 0 10-4.48 10-10S17.52 2 12 2zm0 18c-1.47 0-2.87-.35-4.1-.96l-.3-.17-2.89.49.49-2.89-.17-.3C4.35 14.87 4 13.47 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8-3.59 8-8 8z'/%3E%3Cpath d='M8 14h8v2H8zM8 10h8v2H8zM8 6h8v2H8z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: .8;
}

.comment-closed {
    text-align: center;
    padding: 20px;
    color: #bbb;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px dashed #eee;
}

@media(max-width:768px) {
    .comment-fields { grid-template-columns: 1fr; }

    .comment-act { opacity: 1!important; }

    .comment-self.comment-child { margin-right: 14px; }
}

.comment-editor-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.comment-rich-editor {
    width: 100%;
    min-height: 120px;
    max-height: 300px;
    padding: 12px 14px;
    padding-right: 48px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    overflow-y: auto;
    transition: border-color .2s;
    box-sizing: border-box;
    outline: none;
    word-break: break-word;
    white-space: pre-wrap;
    background: #fff;
}

.comment-rich-editor:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,.1);
}

.comment-rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
    pointer-events: none;
}

.comment-rich-editor img.emoji-inline,.comment-text img.emoji-inline {
    width: 24px!important;
    height: 24px!important;
    vertical-align: middle;
    display: inline-block;
    margin: 0 2px;
    object-fit: contain;
}

.editor-toolbar {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 10;
}

.emoji-toggle-btn {
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-toggle-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.emoji-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.emoji-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.95);
    width: 440px;
    max-height: 500px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: opacity .2s ease,transform .2s ease;
}

.emoji-panel.show {
    display: flex;
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
}

.emoji-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.emoji-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.emoji-panel-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    color: #666;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.emoji-panel-close:hover {
    background: #e0e0e0;
    color: #333;
}

.emoji-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(8,1fr);
    gap: 6px;
    overflow-y: auto;
    flex-grow: 1;
}

.emoji-item {
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.emoji-item:hover {
    background: #f0f0f0;
    transform: scale(1.15);
}

.emoji-item img.lazy {
    width: 46px;
    height: 46px;
    object-fit: contain;
    vertical-align: middle;
    pointer-events: none;
}

.emoji-grid::-webkit-scrollbar { width: 2px; }

.emoji-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

@media(max-width:480px) {
    .emoji-panel {
        width: 300px;
        max-height: 320px;
    }

    .emoji-grid {
        grid-template-columns: repeat(6,1fr);
        gap: 4px;
        padding: 10px;
    }

    .emoji-item,.emoji-item img.lazy {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .comment-rich-editor { padding-right: 44px; }
}

.bottom-float-bar {
    position: fixed;
    bottom: -100px;
    left: 52%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    transition: bottom .6s ease;
    pointer-events: none;
}

.bottom-float-bar.visible {
    bottom: 24px;
    pointer-events: auto;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    background: #333;
    color: #fff;
    transition: all .85s ease;
}

.float-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media(max-width:480px) {
    .bottom-float-bar {
        left: 55%;
        bottom: -80px;
        padding: 8px 12px;
        gap: 8px;
    }

    .bottom-float-bar.visible { bottom: 16px; }

    .float-btn {
        height: 40px;
        padding: 0 16px;
        font-size: 13px;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }
}

/* ===== 无限滚动指示器 ===== */

.scroll-trigger {
    text-align: center;
    padding: 24px 0 32px;
    margin-top: 16px;
}

.scroll-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #999;
    font-size: 14px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0c4cc;
    animation: scrollDotBounce 1.4s infinite ease-in-out both;
}

.scroll-dot:nth-child(2) { animation-delay: .16s; }

.scroll-dot:nth-child(3) { animation-delay: .32s; }

@keyframes scrollDotBounce {
    0%,80%,100% { transform: scale(0); }

    40% { transform: scale(1); }
}

.scroll-load-btn {
    padding: 8px 24px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

.scroll-load-btn:hover {
    border-color: #409eff;
    color: #409eff;
}

.scroll-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #c0c4cc;
    font-size: 13px;
}

.scroll-end-line {
    width: 48px;
    height: 1px;
    background: #e8e8e8;
}

html { scroll-padding-top: 120px; }
