:root {
    --bg: #ffffff;
    --text: #50616d;
    --text-sub: #9aa5b1;
    --accent: #42b983;
    --border: #f0f2f5;
    --menu-bg: rgba(255, 255, 255, 0.98);
    --tag-bg: #f8fafc;
    --float-btn-bg: #ffffff;
    --status-bg: #f7f9fa;

    ---theme-color: var(--accent) !important;
    ---active-color: #2c3e50 !important;
    ---bgcolor: #ffffff !important;
    ---bgcolor-light: #f8f9fa !important;
    ---border-color: #eee !important;
}

[data-theme="dark"] {
    --bg: #1a202c;
    --text: #e2e8f0;
    --text-sub: #a0aec0;
    --accent: #68d391;
    --border: #2d3748;
    --menu-bg: rgba(26, 32, 44, 0.98);
    --tag-bg: #2d3748;
    --float-btn-bg: #2d3748;
    --status-bg: #2d3748;

    ---theme-color: var(--accent) !important;
    ---active-color: #e2e8f0 !important;
    ---bgcolor: #1a202c !important;
    ---bgcolor-light: #2d3748 !important;
    ---border-color: #2d3748 !important;
}

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

html,
body {
    background: var(--bg);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 统一控制核心组件的背景、边框、字体颜色的平滑过渡 */
.search-box, .tag-pill, .status-card, #sidebar, .markdown-body pre, 
.nsk-magic-tab-title, .nsk-magic-tab-body, .toolbar-btn, .float-btn, 
.admonition, .markdown-body code, .markdown-body blockquote, 
.markdown-body th, .markdown-body td, .toc-container, 
.bg-switch-btn, .ext-modal-url, .md-copy-btn {
    transition: background-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), 
                border-color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), 
                color 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), 
                transform 0.2s, box-shadow 0.2s;
}

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

.hidden {
    display: none !important;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 20px 100px;
    min-height: 100vh;
}

body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border); /* 新增：顶部和下方内容的虚线分割 */
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    flex-shrink: 0; 
}

@keyframes rotate-infinite {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar:hover {
    animation: rotate-infinite 0.8s linear infinite;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent); 
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-title:hover {
    color: var(--accent);
    opacity: 0.8; 
}

.theme-icon {
    font-size: 1.2rem;
    color: #f6ad55;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.4s ease;
}

.theme-icon:hover {
    transform: rotate(20deg) scale(1.15);
}

.pc-nav {
    display: none;
    gap: 20px; 
    font-size: 1.15rem; 
    font-weight: 800; 
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto; 
    overflow: hidden;
}

.pc-nav a {
    text-decoration: none;
    color: var(--text);
    position: relative;
    padding: 5px 0;
    transition: color 0.2s;
    white-space: nowrap;
    word-break: keep-all;
    line-break: strict;
    flex-shrink: 0;
}

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

.nav-divider {
    color: var(--border);
    font-weight: 300;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 -2px; 
}

.mobile-menu-btn {
    font-size: 1.4rem;
    color: var(--accent);
    cursor: pointer;
    padding: 5px;
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .pc-nav {
        display: flex !important;
        align-items: center;
    }

    #sidebar,
    #overlay {
        display: none !important;
    }
}

#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100%;
    background: var(--menu-bg);
    z-index: 1000;
    padding: 25px 20px;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.08);
    transform: translateX(110%);
    transition: transform 0.3s, background-color 0.4s;
    backdrop-filter: blur(10px);
}

#sidebar.active {
    transform: translateX(0);
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    margin: 5px 0;
    border-radius: 12px;
    font-weight: 750;
    color: var(--text);
    transition: all 0.2s;
}

.menu-link:hover {
    background: var(--tag-bg);
    color: var(--accent);
    transform: translateX(-3px);
}

.menu-link i {
    width: 20px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 2px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    vertical-align: middle;
}

.intro-text {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--text);
    font-weight: 800;
}

.social-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.4rem;
    color: var(--text);
    margin-top: 18px;
}

.social-label {
    font-weight: 800;
    margin-right: 5px;
    font-size: 1rem;
    color: var(--text);
}

.social-icon-link {
    color: var(--text-sub);
    transition: all 0.3s;
}

.social-icon-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.section-header {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin: 45px 0 24px 0;
}

.list-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0 26px;
}

.search-box {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--tag-bg);
}

.search-box i {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.search-input::placeholder {
    color: var(--text-sub);
    font-weight: 700;
}

.search-clear {
    cursor: pointer;
    color: var(--text-sub);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 6px;
    border-radius: 10px;
    user-select: none;
}

.search-clear:hover {
    color: var(--accent);
}

.pager {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.pager-info {
    color: var(--text-sub);
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

.pager-btn {
    user-select: none;
    cursor: pointer;
}

.pager-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
/* ==========================================
   1. 动态网站大背景 (纯色/网格/点阵)
   ========================================== */
/* 默认纯色：无缝的白/黑 */
html, body { background-color: #ffffff !important; }
html[data-theme="dark"], html[data-theme="dark"] body { background-color: #1a202c !important; } /* 高级黑青色 */

/* 开启网格/点阵：变更为带质感的灰 */
body[data-bg="grid"], body[data-bg="dots"] { background-color: #f2f3f5 !important; }
html[data-theme="dark"] body[data-bg="grid"], html[data-theme="dark"] body[data-bg="dots"] { background-color: #111827 !important; } /* 网格底色稍微加深，突出卡片 */

body[data-bg="grid"] {
    background-image: 
        linear-gradient(rgba(128, 128, 128, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 128, 128, 0.08) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
}
body[data-bg="dots"] {
    background-image: radial-gradient(rgba(128, 128, 128, 0.15) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
}

/* ==========================================
   2. 所有内容页的动态“容器” (恢复独立卡片布局)
   ========================================== */
.post-list, #article-view, #archive-view, #status-view {
    background: transparent; 
    padding: 20px 30px; 
    border-left: 1px solid var(--border); 
    border-right: 1px solid var(--border); 
    border-radius: 0;
    box-shadow: none;
    margin: 20px 0; 
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    transition: all 0.4s ease; 
}

/* 开启网格/点阵时：恢复单独卡片，去掉整页大白纸 */
body[data-bg="grid"] .post-list, body[data-bg="dots"] .post-list,
body[data-bg="grid"] #article-view, body[data-bg="dots"] #article-view,
body[data-bg="grid"] #archive-view, body[data-bg="dots"] #archive-view,
body[data-bg="grid"] #status-view, body[data-bg="dots"] #status-view {
    background: #ffffff;
    border-left: none;
    border-right: none;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.03), 0 0 2px rgba(0, 0, 0, 0.02);
}

/* 暗黑模式 */
html[data-theme="dark"] body[data-bg="grid"] .post-list,
html[data-theme="dark"] body[data-bg="dots"] .post-list,
html[data-theme="dark"] body[data-bg="grid"] #article-view,
html[data-theme="dark"] body[data-bg="dots"] #article-view,
html[data-theme="dark"] body[data-bg="grid"] #archive-view,
html[data-theme="dark"] body[data-bg="dots"] #archive-view,
html[data-theme="dark"] body[data-bg="grid"] #status-view,
html[data-theme="dark"] body[data-bg="dots"] #status-view {
    background: #1a202c; 
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .post-list, #article-view, #archive-view, #status-view { padding: 10px 16px; margin: 15px 0; }
    body[data-bg="grid"] .post-list, body[data-bg="dots"] .post-list,
    body[data-bg="grid"] #article-view, body[data-bg="dots"] #article-view,
    body[data-bg="grid"] #archive-view, body[data-bg="dots"] #archive-view,
    body[data-bg="grid"] #status-view, body[data-bg="dots"] #status-view {
        padding: 15px 16px;
        border-radius: 12px;
    }
}

/* ==========================================
   新增：顶部导航栏 - 悬浮胶囊岛屿
   ========================================== */
.nav-menu-island {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 8px 0; /* 纯色模式下无内边距，与背景融为一体 */
    background: transparent;
    border-radius: 50px; /* 极致圆润的胶囊两端 */
    transition: all 0.4s ease;
}

/* 网格/点阵模式下，菜单变成带阴影的悬浮胶囊 */
body[data-bg="grid"] .nav-menu-island, 
body[data-bg="dots"] .nav-menu-island {
    background: #ffffff;
    padding: 8px 24px; /* 撑开左右内边距，完美包裹文字 */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.03), 0 0 2px rgba(0, 0, 0, 0.02);
}

/* 暗黑模式下，胶囊自动切换为高级黑青色 */
html[data-theme="dark"] body[data-bg="grid"] .nav-menu-island,
html[data-theme="dark"] body[data-bg="dots"] .nav-menu-island {
    background: #1a202c; 
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .nav-menu-island { gap: 12px; }
    body[data-bg="grid"] .nav-menu-island, 
    body[data-bg="dots"] .nav-menu-island { padding: 8px 16px; }
}

/* 手机端进一步缩减留白，省出屏幕空间 */
@media (max-width: 600px) {
    .post-list, #article-view, #archive-view, #status-view { padding: 10px 16px; margin: 15px 0; }
    body[data-bg="grid"] .post-list, body[data-bg="dots"] .post-list,
    body[data-bg="grid"] #article-view, body[data-bg="dots"] #article-view,
    body[data-bg="grid"] #archive-view, body[data-bg="dots"] #archive-view,
    body[data-bg="grid"] #status-view, body[data-bg="dots"] #status-view {
        padding: 15px 16px;
        border-radius: 12px;
    }
}

/* ==========================================
   3. 首页文章列表内部样式 (保持极简文本)
   ========================================== */
.post-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px dashed var(--border); 
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    transform: none !important; 
}

/* 👇 核心魔法：直接干掉第一篇文章头顶的多余留白，让它极限靠上！ */
.post-item:first-child { 
    padding-top: 5px; 
}

/* 最后一篇文章干掉底线和底部多余留白 */
.post-item:last-child { 
    border-bottom: none; 
    padding-bottom: 5px; 
}

.post-item:hover { transform: none; background: transparent; box-shadow: none; }
.post-item:hover .post-title-link { color: var(--accent); }

/* ==========================================
   4. 右侧悬浮功能岛 (贴近主容器)
   ========================================== */
/* ==========================================
   4. 右侧悬浮功能岛 (贴近主容器)
   ========================================== */
#float-btn-group {
    position: fixed;
    bottom: 40px;
    /* ✅ 偏移 420px，刚好贴在 820px 文章容器的右侧边缘 */
    left: calc(50% + 420px);
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 900; /* 提高层级 */
    align-items: center;
}

/* 向下按钮默认隐藏逻辑 */
#float-bottom-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
}
#float-bottom-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* 切背景小图标样式 */
.bg-switch-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.bg-switch-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.bg-switch-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--menu-bg);
}

/* 小屏幕自动回退到传统的右下角 */
@media (max-width: 1050px) {
    #float-btn-group { left: auto; right: 20px; }
}

.tag-pill {
    font-size: 0.8rem;
    color: var(--text-sub);
    background: var(--tag-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.tag-pill:hover {
    background: var(--accent);
    color: #ffffff;
}

.status-item {
    display: flex;
    gap: 15px;
    margin-bottom: 26px;
    align-items: flex-start;
}

.status-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
}

.status-main {
    flex: 1;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-name {
    font-weight: 800;
    color: var(--text);
}

.status-time {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 700;
}

.status-card {
    background: var(--status-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    position: relative;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--status-bg);
}

.status-actions {
    margin-top: 10px;
    display: flex;
    gap: 20px;
}

.status-btn {
    font-size: 0.9rem;
    color: var(--text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

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

.back-btn {
    display: none; 
}

.archive-year {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 30px 0 18px;
    color: var(--text);
}

.archive-item {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    align-items: baseline;
}

.archive-date {
    color: var(--text-sub);
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 45px;
}

.archive-link {
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px dashed var(--border);
    font-weight: 600;
}

.archive-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.article-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--accent);
}

.article-meta {
    color: var(--text-sub);
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.markdown-body {
    background: transparent !important;
    color: var(--text) !important;
    font-family: inherit !important; /* 直接继承刚刚设置好的高级字体 */
    font-size: 1.02rem;
    line-height: 1.95;
    word-break: break-word;
}

.markdown-body > *:first-child {
    margin-top: 0;
}

.markdown-body > *:last-child {
    margin-bottom: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body table,
.markdown-body pre,
.markdown-body .admonition,
.markdown-body .nsk-magic-tabs {
    margin: 1.15em 0;
}

.markdown-body p,
.markdown-body blockquote,
.markdown-body pre,
.markdown-body table,
.markdown-body .admonition {
    display: block;
}

.markdown-body p {
    text-align: left;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin: 1.8em 0 0.8em;
    line-height: 1.4;
    font-weight: 900;
    color: var(--text);
}

.markdown-body h1 {
    font-size: 2rem;
}

.markdown-body h2 {
    font-size: 1.8rem;
    padding-bottom: 0.38rem;
    border-bottom: 1px solid var(--border);
}

.markdown-body h3 {
    font-size: 1.45rem;
}

.markdown-body h4 {
    font-size: 1.18rem;
}

.markdown-body a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.markdown-body a:hover {
    text-decoration-color: var(--accent);
}

.markdown-body strong {
    font-weight: 900;
    color: var(--text);
}

.markdown-body em {
    font-style: italic;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5rem;
}

.markdown-body li {
    margin: 0.42rem 0;
}

.markdown-body li > ul,
.markdown-body li > ol {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.markdown-body code {
    background: var(--tag-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.18em 0.42em;
    font-size: 0.92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.markdown-body pre {
    background: #f6f8fa;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow-x: auto;
    padding: 16px 18px;
    position: relative; /* 复制按钮的定位基准 */
}

[data-theme="dark"] .markdown-body pre {
    background: #222b36;
}

.markdown-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.markdown-body blockquote {
    margin-left: 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--accent);
    background: color-mix(in srgb, var(--tag-bg) 82%, transparent);
    border-radius: 0 12px 12px 0;
}

.markdown-body hr {
    border: none;
    border-top: 4px solid var(--border);
    margin: 2rem 0;
}

.markdown-body img {
    max-width: 100%;
    display: block;
    margin: 1.25rem auto;
    border-radius: 14px;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    display: table;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.markdown-body th,
.markdown-body td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.markdown-body th {
    background: var(--tag-bg);
    font-weight: 800;
}

.markdown-body tr:last-child td {
    border-bottom: none;
}

.markdown-body .admonition {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    background: var(--tag-bg);
    border-radius: 12px;
    padding: 14px 16px;
}

.markdown-body .admonition-title {
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--accent);
}

.nsk-magic-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    width: 100%;
}

.nsk-magic-tab-title {
    order: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dbe2;
    border-bottom: none;
    background: #eef1f5;
    color: #5f6b7a;
    font: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    padding: 12px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border-radius: 10px 10px 0 0;
    margin-right: 2px;
    margin-bottom: -1px;
    user-select: none;
}

.nsk-magic-tab-title .emoji {
    margin-right: 6px;
}

[data-theme="dark"] .nsk-magic-tab-title {
    background: #273140;
    border-color: #334155;
    color: #a7b3c3;
}

.nsk-magic-tab-title:hover {
    color: var(--accent);
}

.nsk-magic-tab-title.is-active {
    color: var(--text);
    background: #f6f7f9;
    border-color: #d7dbe2;
}

[data-theme="dark"] .nsk-magic-tab-title.is-active {
    background: #1f2937;
    border-color: #334155;
    color: #e5edf7;
}

.nsk-magic-tab-body {
    order: 1;
    width: 100%;
    display: none;
    border: 1px solid #d7dbe2;
    border-radius: 0 14px 14px 14px;
    background: #f5f6f8;
    padding: 18px 22px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nsk-magic-tab-body.is-active {
    display: block;
}

[data-theme="dark"] .nsk-magic-tab-body {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}

.nsk-magic-tab-body > *:first-child {
    margin-top: 0;
}

.nsk-magic-tab-body > *:last-child {
    margin-bottom: 0;
}

.terminal-container.embedMode {
    margin: 0;
}

.terminal-padding {
    padding: 0;
}

.xterm-wrapper {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.xterm-wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.nsk-terminal.terminal.xterm {
    background: #191b20;
    color: #eeeeec;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.nsk-terminal .xterm-viewport,
.nsk-terminal .invisible.scrollbar {
    display: none !important;
}

.nsk-terminal .xterm-scrollable-element {
    position: relative;
    background: #191b20;
    overflow: visible;
}

.nsk-terminal .xterm-screen {
    display: inline-block;
    min-width: 100%;
    width: max-content;
    padding: 22px 36px 22px 34px;
}

.nsk-terminal .xterm-rows {
    white-space: pre;
    color: #eeeeec;
    font-family: Consolas, "xyBarMono", "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.38;
    font-kerning: none;
}

.nsk-terminal .xterm-rows > div {
    min-height: 1.38em;
}

.nsk-terminal .xterm-bold {
    font-weight: 700;
}

.nsk-terminal .xterm-italic {
    font-style: italic;
}

.nsk-terminal .xterm-underline-1 {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nsk-terminal .xterm-fg-0 { color: #2e3436; }
.nsk-terminal .xterm-fg-1 { color: #cc0000; }
.nsk-terminal .xterm-fg-2 { color: #61d011; }
.nsk-terminal .xterm-fg-3 { color: #d5b216; }
.nsk-terminal .xterm-fg-4 { color: #4f88d9; }
.nsk-terminal .xterm-fg-5 { color: #8d63b8; }
.nsk-terminal .xterm-fg-6 { color: #08d2e3; }
.nsk-terminal .xterm-fg-7 { color: #d3d7cf; }
.nsk-terminal .xterm-fg-8 { color: #6b7280; }
.nsk-terminal .xterm-fg-9 { color: #ff4b4b; }
.nsk-terminal .xterm-fg-10 { color: #77e114; }
.nsk-terminal .xterm-fg-11 { color: #f4df4d; }
.nsk-terminal .xterm-fg-12 { color: #7bb8ff; }
.nsk-terminal .xterm-fg-13 { color: #be8fff; }
.nsk-terminal .xterm-fg-14 { color: #20d7ff; }
.nsk-terminal .xterm-fg-15 { color: #eeeeec; }

.nsk-terminal .xterm-bg-0 { background-color: #2e3436; }
.nsk-terminal .xterm-bg-1 { background-color: #cc0000; }
.nsk-terminal .xterm-bg-2 { background-color: #4e9a06; }
.nsk-terminal .xterm-bg-3 { background-color: #c4a000; }
.nsk-terminal .xterm-bg-4 { background-color: #3465a4; }
.nsk-terminal .xterm-bg-5 { background-color: #75507b; }
.nsk-terminal .xterm-bg-6 { background-color: #06989a; }
.nsk-terminal .xterm-bg-7 { background-color: #d3d7cf; }
.nsk-terminal .xterm-bg-8 { background-color: #555753; }
.nsk-terminal .xterm-bg-9 { background-color: #ef2929; }
.nsk-terminal .xterm-bg-10 { background-color: #8ae234; }
.nsk-terminal .xterm-bg-11 { background-color: #fce94f; }
.nsk-terminal .xterm-bg-12 { background-color: #729fcf; }
.nsk-terminal .xterm-bg-13 { background-color: #ad7fa8; }
.nsk-terminal .xterm-bg-14 { background-color: #34e2e2; }
.nsk-terminal .xterm-bg-15 { background-color: #eeeeec; }

footer {
    margin-top: 100px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-sub);
    border-top: 1px dashed var(--border);
    padding-top: 40px;
    font-weight: 600;
}

#custom-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: var(--tag-bg);
    border: none;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: bold;
}

.toolbar-btn:hover {
    background: var(--accent);
    color: #ffffff;
}

.float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--float-btn-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-sub);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.float-btn:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

#float-top-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
#float-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.changelog-link {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.changelog-link:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

/* --- 友链区域布局 --- */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 强制两列绝对平分 */
    gap: 20px;
    margin-top: 20px;
    width: 100%; /* 强制整个网格区占满 100% 宽度 */
}

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

.friend-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    text-decoration: none !important;
    width: 100%; /* 强制卡片撑满整列 */
    box-sizing: border-box;
}

.friend-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    background: var(--menu-bg) !important;
}

.friend-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: transform 0.5s ease-in-out;
}

.friend-card:hover .friend-avatar {
    transform: rotate(360deg);
}

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

.friend-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .nsk-magic-tab-title {
        padding: 11px 14px;
        font-size: 0.94rem;
    }

    .nsk-magic-tab-body {
        padding: 12px;
    }

    .nsk-terminal .xterm-screen {
        padding: 16px 14px;
    }

    .nsk-terminal .xterm-rows {
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px 70px;
    }

    .site-title {
        font-size: 1.35rem;
    }

    .section-header {
        font-size: 1.6rem;
    }

    .post-title-link {
        font-size: 1.2rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#home-view,
#status-view,
#archive-view,
#article-view,
#changelog-view,
#friends-view {
    animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.article-title {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

.article-meta {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}

.markdown-body {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

/* 代码块复制按钮样式优化 */
.md-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--menu-bg);
    color: var(--text-sub);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    opacity: 0; 
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.markdown-body pre:hover .md-copy-btn {
    opacity: 1; 
}

.md-copy-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.05);
}

.md-copy-btn.copied {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- 文章右侧浮动目录 (TOC) --- */
/* --- 文章右侧浮动目录 (TOC) --- */
.toc-container {
    position: fixed;
    top: 100px;
    left: 50%;
    /* ✅ 原来是 440px，现在改为 480px，给中间的悬浮按钮留出 60px 的完美空隙 */
    margin-left: 480px; 
    width: 250px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-left: 16px;
    border-left: 2px solid var(--border);
    scrollbar-width: none;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards; 
    z-index: 100;
}

.toc-container::-webkit-scrollbar {
    display: none;
}

.toc-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title i {
    color: var(--accent); /* 图标使用你的主题色 */
}

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

.toc-item {
    margin: 8px 0;
    line-height: 1.4;
}

.toc-link {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 2px solid transparent;
    margin-left: -18px; /* 抵消外层 padding，用于实现左侧边框的高亮效果 */
    padding-left: 16px;
}

.toc-link:hover, .toc-link.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

/* 根据标题层级控制缩进 */
.toc-level-1 { font-weight: 800; }
.toc-level-2 { margin-left: 12px; font-weight: 700; }
.toc-level-3 { margin-left: 24px; font-size: 0.85rem; }
.toc-level-4 { margin-left: 36px; font-size: 0.8rem; }

/* ✅ 屏幕不够宽时自动隐藏目录，防止挤压 */
@media (max-width: 1460px) {
    .toc-container {
        display: none !important;
    }
}

/* --- 顶部阅读进度条 --- */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px; /* 稍微加粗一点 */
    background: var(--accent);
    box-shadow: 0 1px 5px var(--accent); /* 加个发光特效，绝对显眼 */
    z-index: 999999; /* 层级拉到最高 */
    transition: width 0.1s ease-out;
    display: none;
    pointer-events: none;
}

/* --- 文章底部 上/下一篇 导航 --- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0 20px 0;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.post-navigation .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    text-decoration: none !important;
    transition: all 0.3s ease;
    min-width: 0; /* 防止标题过长撑爆 Flex 布局 */
}

.post-navigation .nav-item.empty {
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}

.post-navigation .nav-item:not(.empty):hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.post-navigation .nav-hint {
    font-size: 0.82rem;
    color: var(--text-sub);
    margin-bottom: 8px;
    font-weight: 800;
}

.post-navigation .nav-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.post-navigation .nav-item:not(.empty):hover .nav-title {
    color: var(--accent);
}

.post-navigation .nav-next {
    text-align: right;
}

/* 手机端改成上下排列 */
@media (max-width: 600px) {
    .post-navigation {
        flex-direction: column;
        gap: 12px;
    }
    .post-navigation .nav-next {
        text-align: left;
    }
}

/* ==========================================
   补回的文章列表内部排版样式
   ========================================== */
.post-title-link {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    margin: 8px 0;
    display: block;
    transition: color 0.2s;
}
.post-title-link:hover {
    color: var(--accent);
}
.post-date {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 700;
    margin-bottom: 4px;
}
.post-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ==========================================
   外链跳转安全提醒弹窗 (GPU 硬件加速版)
   ========================================== */
.ext-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    will-change: opacity;
    animation: extFadeIn 0.2s ease-out forwards;
}

.ext-modal-box {
    background: var(--bg);
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    opacity: 0;
    will-change: transform, opacity;
    animation: extScaleUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.ext-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.ext-modal-content {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.ext-modal-url {
    background: var(--tag-bg);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 12px;
    word-break: break-all;
    font-family: monospace;
    color: var(--accent);
    border: 1px dashed var(--border);
    max-height: 80px;
    overflow-y: auto;
}

.ext-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ext-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    outline: none;
}

.ext-btn-cancel {
    background: transparent;
    color: var(--text-sub);
}

.ext-btn-cancel:hover {
    background: var(--tag-bg);
    color: var(--text);
}

.ext-btn-continue {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.ext-btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 184, 148, 0.4);
}

@keyframes extFadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}
@keyframes extScaleUp { 
    from { transform: scale(0.95) translateZ(0); opacity: 0; } 
    to { transform: scale(1) translateZ(0); opacity: 1; } 
}

/* ==========================================
   新增：首页置顶 / HOT 徽章
   ========================================== */
.top-badge {
    font-size: 0.75rem;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.08);
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 10px;
    font-weight: 800;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

/* ==========================================
   说说九宫格图片布局与放大效果 (修复版)
   ========================================== */
.status-image-grid {
    display: grid;
    gap: 8px; /* 稍微加宽一点缝隙，电脑端更好看 */
    margin-top: 12px;
    grid-template-columns: repeat(3, 1fr);
    /* 👇 修复：放宽最大宽度，让电脑端也能漂亮地铺开 */
    max-width: 600px; 
}

/* 1张图时：自适应宽度 */
.status-image-grid.count-1 {
    grid-template-columns: 1fr;
    max-width: 300px; /* 单图没必要铺满整个屏幕 */
}

/* 2张图、4张图时：排成 2x2 的田字格 */
.status-image-grid.count-2,
.status-image-grid.count-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px; /* 田字格的适中宽度 */
}

.status-image-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
    background: var(--tag-bg);
}

/* 1张图时取消强制 1:1 正方形，保持原比例 */
.status-image-grid.count-1 .status-image-item {
    aspect-ratio: auto;
}

.status-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* 👇 核心修复1：强制清零 Markdown 全局赋予的 margin，干掉图片顶部的巨大留白 */
    margin: 0 !important; 
    /* 👇 核心修复2：圆角由外层容器接管，去除图片自身圆角，防止四角漏出底色 */
    border-radius: 0 !important; 
    transition: opacity 0.2s;
}

.status-image-grid.count-1 .status-image-item img {
    max-height: 300px;
    object-fit: contain; 
    object-position: left top;
}

.status-image-item img:hover {
    opacity: 0.85;
}

/* Lightbox 全屏放大遮罩层 */
.status-lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    animation: statusFadeIn 0.2s forwards;
    backdrop-filter: blur(5px);
}

.status-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    animation: statusScaleUp 0.2s forwards;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

@keyframes statusFadeIn { to { opacity: 1; } }
@keyframes statusScaleUp { to { transform: scale(1); } }

/* ==========================================
   微信风：爱心点赞组件
   ========================================== */
.like-btn {
    user-select: none;
    transition: color 0.2s;
}

.like-btn:hover {
    color: #ff4757 !important; /* 悬浮时带点微红 */
}

/* 点赞后的激活状态 */
.like-btn.liked {
    color: #ff4757 !important;
}

/* 爱心图标的基础设置 */
.like-btn i {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

/* 点赞弹跳动画 */
@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.4); } /* 瞬间放大 */
    80% { transform: scale(0.9); } /* 微微回弹 */
    100% { transform: scale(1); }
}

/* 当加上 liked 类时，给图标播放动画 */
.like-btn.liked i {
    animation: heartPop 0.4s ease-out forwards;
}

.like-btn { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; transition: color 0.2s; }
.like-btn.liked { color: #ff4757 !important; }
.like-btn.liked i { animation: heartPop 0.4s ease-out forwards; }
.like-count { font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.4); }
    80% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.nkx-comments{margin-top:28px}.c-form-row{display:grid;gap:12px}.c-form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:768px){.c-form-row.three{grid-template-columns:1fr}}.c-form-row input,.c-editor textarea{width:100%;border:1px solid var(--border-color,#ddd);background:var(--card-bg,#fff);color:var(--text-color,#111);border-radius:14px;padding:12px 14px}.c-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.c-toolbar button,.c-op button,.c-actions button{border:1px solid var(--border-color,#ddd);background:var(--card-bg,#fff);color:var(--text-color,#111);border-radius:10px;padding:8px 12px;cursor:pointer}.c-emoji-panel,.c-preview{margin:12px 0;padding:12px;border:1px solid var(--border-color,#ddd);border-radius:14px;background:var(--card-bg,#fff)}.c-actions{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.c-status{font-size:.92rem;opacity:.8}.c-item{display:flex;gap:14px;padding:16px 0;border-top:1px dashed var(--border-color,#ddd)}.c-avatar{width:46px;height:46px;border-radius:999px;object-fit:cover}.c-body{flex:1;min-width:0}.c-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.c-pin{font-size:.78rem;border:1px solid #f0b429;border-radius:999px;padding:2px 8px}.c-content{margin:10px 0}.c-content img{max-width:100%;border-radius:12px}.c-children{margin-left:24px;padding-left:12px;border-left:2px solid var(--border-color,#ddd)}.c-empty{padding:18px 0;opacity:.8}.comment-mention{color:#7c3aed;font-weight:600}


/* ===== NKX 自建评论区修复覆盖 ===== */

#comment-app, .nkx-comments, .nkx-comments * {
  font-family: inherit;
}

#comment-app {
  margin-top: 6px;
}

.nkx-comments {
  margin-top: 20px;
}

.nkx-comments .c-form-row input,
.nkx-comments .c-editor textarea,
.nkx-comments .c-toolbar button,
.nkx-comments .c-op button,
.nkx-comments .c-actions button,
.nkx-comments .c-emoji-panel,
.nkx-comments .c-preview {
  font: inherit;
}

.nkx-comments .c-form-row input,
.nkx-comments .c-editor textarea {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 16px;
}

.nkx-comments .c-editor textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.7;
}

.nkx-comments .c-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}

.nkx-comments .c-toolbar button,
.nkx-comments .c-op button,
.nkx-comments .c-actions button {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
}

.nkx-comments .c-toolbar button:hover,
.nkx-comments .c-op button:hover,
.nkx-comments .c-actions button:hover {
  background: var(--accent);
  color: #fff;
}

.nkx-comments .c-preview,
.nkx-comments .c-emoji-panel {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.nkx-comments .c-status {
  color: var(--text-sub);
}

.nkx-comments .c-item {
  border-top: 1px dashed var(--border);
}

.nkx-comments .c-children {
  margin-top: 10px;
  border-left: 2px solid var(--border);
}

#turnstile-box {
  margin-top: 10px;
  min-height: 0;
}

#custom-toolbar {
  display: none !important;
}

/* ===== 评论区整体 ===== */
#comment-app,
.nkx-comments {
  font: inherit;
  color: var(--text-color, #2f3a45);
}

.nkx-comments {
  margin-top: 28px;
}

.c-list {
  margin-top: 18px;
}

/* ===== 编辑器部分 ===== */
.c-editor {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--border-color, #e8edf2);
  border-radius: 18px;
  background: var(--card-bg, #fff);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.c-form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.c-form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.c-form-row input,
#c-content {
  width: 100%;
  font: inherit;
  color: inherit;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--card-bg, #fff);
  border-radius: 14px;
  outline: none;
  transition: 0.2s ease;
}

.c-form-row input {
  padding: 12px 14px;
}

#c-content {
  padding: 14px 16px;
  min-height: 180px;
  resize: vertical;
  line-height: 1.8;
}

.c-form-row input:focus,
#c-content:focus {
  border-color: var(--theme-color, #84c7a0);
  box-shadow: 0 0 0 3px rgba(132, 199, 160, 0.12);
}

.c-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.c-toolbar button,
#preview-btn,
#emoji-btn,
#c-submit {
  font: inherit;
}

.c-toolbar button {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e5eaf0);
  background: var(--card-bg, #fff);
  color: var(--text-color, #51606d);
  cursor: pointer;
  transition: 0.2s ease;
}

.c-toolbar button:hover {
  border-color: var(--theme-color, #84c7a0);
  color: var(--theme-color, #4ea86f);
}

.c-emoji-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border-color, #e8edf2);
  border-radius: 14px;
  background: var(--card-bg, #fff);
  line-height: 2;
  cursor: pointer;
}

.c-preview {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-color, #e8edf2);
  border-radius: 14px;
  background: #fafcfd;
}

.c-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.c-status {
  font-size: 14px;
  color: var(--text-muted, #7c8794);
}

#c-submit {
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--card-bg, #fff);
  color: var(--text-color, #334155);
  cursor: pointer;
  transition: 0.2s ease;
}

#c-submit:hover {
  border-color: var(--theme-color, #84c7a0);
  color: var(--theme-color, #4ea86f);
}

/* ===== 评论项 ===== */
.c-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color, #edf1f5);
}

.c-item:first-child {
  border-top: none;
}

.c-avatar-wrap {
  flex: 0 0 52px;
}

.c-avatar {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.04);
}

.c-main {
  flex: 1;
  min-width: 0;
}

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

.c-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.c-author {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color, #2f3a45);
}

.c-time {
  font-size: 0.95rem;
  color: var(--text-muted, #86909c);
}

.c-id-link {
  color: var(--theme-color, #84c7a0);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.c-id-link:hover {
  text-decoration: underline;
}

.c-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(132, 199, 160, 0.12);
  color: var(--theme-color, #4ea86f);
  font-size: 13px;
  font-weight: 600;
}

.c-content {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text-color, #334155);
  word-break: break-word;
}

.c-content p {
  margin: 0.7em 0;
}

.c-content img {
  display: block;
  max-width: min(100%, 520px);
  border-radius: 16px;
  margin: 14px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.c-content a {
  color: var(--theme-color, #4ea86f);
  text-decoration: none;
}

.c-content a:hover {
  text-decoration: underline;
}

.c-content code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #f4f7f9;
  font-size: 0.92em;
}

.c-content pre {
  margin: 14px 0;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  overflow-x: auto;
}

.c-content blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--theme-color, #84c7a0);
  background: rgba(132, 199, 160, 0.08);
  border-radius: 0 12px 12px 0;
  color: #51606d;
}

.c-content blockquote p {
  margin: 0.35em 0;
}

.c-actions-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted, #8b96a3);
  font-size: 0.95rem;
}

.c-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: 0.2s ease;
}

.c-action:hover {
  color: var(--theme-color, #4ea86f);
}

.c-action-icon {
  font-size: 0.95em;
  opacity: 0.9;
}

/* ===== 子评论 ===== */
.c-children {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--border-color, #edf1f5);
}

.c-children .c-item {
  padding: 18px 0 0;
  margin-top: 18px;
  border-top: 1px dashed var(--border-color, #edf1f5);
}

.c-empty {
  padding: 20px 0;
  color: var(--text-muted, #8a96a3);
}

/* ===== @ mention ===== */
.comment-mention {
  color: #7c4dff;
  font-weight: 600;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .c-form-row.three {
    grid-template-columns: 1fr;
  }

  .c-item {
    gap: 12px;
  }

  .c-avatar-wrap {
    flex-basis: 42px;
  }

  .c-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .c-author {
    font-size: 1.02rem;
  }

  .c-content img {
    max-width: 100%;
  }

  .c-children {
    padding-left: 12px;
  }
}

/* =========================
   Comment System - Forum Style
   追加到 assets/app.css 最后面
   ========================= */

.nkx-comments {
  margin-top: 28px;
  color: var(--text);
  font: inherit;
}

.c-editor {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.c-form-row {
  display: grid;
  gap: 12px;
}

.c-form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.c-form-row input,
.c-editor textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 12px;
  outline: none;
  transition: all .2s ease;
}

.c-form-row input:focus,
.c-editor textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.c-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.c-toolbar button,
.c-actions button {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-sub);
  font: inherit;
  cursor: pointer;
  transition: .2s ease;
}

.c-toolbar button:hover,
.c-actions button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.c-emoji-panel,
.c-preview {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
}

.c-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.c-status {
  font-size: .92rem;
  color: var(--text-sub);
}

.c-list {
  margin-top: 8px;
}

.c-item {
  display: flex;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.c-item:first-child {
  border-top: none;
}

.c-avatar-wrap {
  flex: 0 0 52px;
}

.c-avatar {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.c-body {
  flex: 1;
  min-width: 0;
}

.c-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.c-userline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.c-author {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.c-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: #0ea5e9;
  border: 1px solid color-mix(in srgb, #0ea5e9 35%, white);
  background: color-mix(in srgb, #0ea5e9 8%, white);
}

.c-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-sub);
  font-size: .94rem;
  white-space: nowrap;
}

.c-time {
  color: var(--text-sub);
}

.c-floor {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 700;
}

.c-floor:hover {
  color: var(--accent);
  text-decoration: none;
}

.c-content {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text);
  word-break: break-word;
}

.c-content > *:first-child {
  margin-top: 0;
}

.c-content > *:last-child {
  margin-bottom: 0;
}

.c-content p {
  margin: 0.7em 0;
}

.c-content a {
  color: var(--accent);
  text-decoration: none;
}

.c-content a:hover {
  text-decoration: underline;
}

.c-content img {
  display: block;
  max-width: min(100%, 520px);
  margin: 14px 0;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.c-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  font-size: .92em;
}

.c-content pre {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  overflow: auto;
  background: rgba(148, 163, 184, 0.10);
}

.c-content blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 4px solid #d5dbe3;
  background: #f5f7f9;
  border-radius: 0 10px 10px 0;
  color: #4f5d6b;
}

.c-content blockquote p {
  margin: 0.35em 0;
}

.comment-mention {
  color: #16a34a;
  font-weight: 700;
}

.c-op {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--text-sub);
  font-size: .95rem;
}

.c-op-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none !important;
  background: none !important;
  color: var(--text-sub);
  font: inherit;
  cursor: pointer;
  transition: .2s ease;
}

.c-op-btn:hover {
  color: var(--accent);
}

.c-op-icon {
  opacity: .85;
  font-size: .95em;
}

.c-children {
  margin-top: 18px;
  margin-left: 6px;
  padding-left: 16px;
  border-left: 2px solid #e9edf2;
}

.c-children .c-item {
  padding: 18px 0 0;
  margin-top: 18px;
  border-top: 1px dashed #edf1f5;
}

.c-empty {
  padding: 18px 0;
  color: var(--text-sub);
}

@media (max-width: 768px) {
  .c-form-row.three {
    grid-template-columns: 1fr;
  }

  .c-item {
    gap: 12px;
    padding: 18px 0;
  }

  .c-avatar-wrap {
    flex-basis: 42px;
  }

  .c-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .c-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .c-meta {
    gap: 10px;
    white-space: normal;
  }

  .c-content img {
    max-width: 100%;
  }

  .c-children {
    padding-left: 12px;
    margin-left: 0;
  }
}

/* =========================
   WeChat Style Comments
   ========================= */

.wx-comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border, #eceff3);
}

.wx-comment:first-child {
  border-top: none;
}

.wx-avatar-wrap {
  flex: 0 0 42px;
}

.wx-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.wx-main {
  flex: 1;
  min-width: 0;
}

.wx-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.wx-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wx-author {
  font-size: 15px;
  font-weight: 700;
  color: #2f3a45;
}

.wx-time {
  font-size: 12px;
  color: #98a2ad;
}

.wx-pin {
  font-size: 12px;
  color: #07c160;
  background: rgba(7, 193, 96, 0.08);
  border-radius: 999px;
  padding: 2px 8px;
}

.wx-quote {
  margin-bottom: 8px;
}

.wx-quote blockquote {
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: #f3f5f7;
  color: #5c6773;
  font-size: 14px;
  line-height: 1.7;
}

.wx-quote blockquote p {
  margin: 0.2em 0;
}

.wx-bubble {
  display: inline-block;
  max-width: 100%;
  background: #fff;
  border: 1px solid #edf1f4;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.wx-content {
  color: #2f3a45;
  line-height: 1.9;
  font-size: 15px;
  word-break: break-word;
}

.wx-content p {
  margin: 0.45em 0;
}

.wx-content p:first-child {
  margin-top: 0;
}

.wx-content p:last-child {
  margin-bottom: 0;
}

.wx-content img {
  display: block;
  max-width: min(100%, 360px);
  border-radius: 12px;
  margin-top: 8px;
}

.wx-content a {
  color: #576b95;
  text-decoration: none;
}

.wx-content a:hover {
  text-decoration: underline;
}

.wx-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-left: 2px;
}

.wx-action {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: #98a2ad;
  cursor: pointer;
}

.wx-action:hover {
  color: #576b95;
}

.wx-children {
  margin-top: 12px;
  padding-left: 8px;
}

.wx-children .wx-comment {
  border-top: none;
  padding-top: 12px;
}

@media (max-width: 768px) {
  .wx-avatar-wrap {
    flex-basis: 36px;
  }

  .wx-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .wx-bubble {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .wx-content img {
    max-width: 100%;
  }
}

/* =========================
   WeChat Style Comments - No Quote
   ========================= */

.wx-comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border, #eceff3);
}

.wx-comment:first-child {
  border-top: none;
}

.wx-avatar-wrap {
  flex: 0 0 42px;
}

.wx-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0,0,0,0.04);
}

.wx-main {
  flex: 1;
  min-width: 0;
}

.wx-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.wx-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wx-author {
  font-size: 15px;
  font-weight: 700;
  color: #2f3a45;
}

.wx-time {
  font-size: 12px;
  color: #98a2ad;
}

.wx-pin {
  font-size: 12px;
  color: #07c160;
  background: rgba(7, 193, 96, 0.08);
  border-radius: 999px;
  padding: 2px 8px;
}

.wx-bubble {
  display: inline-block;
  max-width: 100%;
  background: #fff;
  border: 1px solid #edf1f4;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.wx-content {
  color: #2f3a45;
  line-height: 1.9;
  font-size: 15px;
  word-break: break-word;
}

.wx-content p {
  margin: 0.45em 0;
}

.wx-content p:first-child {
  margin-top: 0;
}

.wx-content p:last-child {
  margin-bottom: 0;
}

.wx-content img {
  display: block;
  max-width: min(100%, 360px);
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.wx-content a {
  color: #576b95;
  text-decoration: none;
}

.wx-content a:hover {
  text-decoration: underline;
}

.wx-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  font-size: .92em;
}

.wx-content pre {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;
  overflow: auto;
  background: rgba(148, 163, 184, 0.10);
}

.wx-content blockquote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #d8dee6;
  background: #f5f7f9;
  border-radius: 0 10px 10px 0;
  color: #5b6570;
}

.wx-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-left: 2px;
}

.wx-action {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: #98a2ad;
  cursor: pointer;
}

.wx-action:hover {
  color: #576b95;
}

.wx-children {
  margin-top: 10px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 2px solid #eef2f6;
}

.wx-children .wx-comment {
  border-top: none;
  padding-top: 12px;
}

.wx-empty {
  padding: 16px 0;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .wx-avatar-wrap {
    flex-basis: 36px;
  }

  .wx-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .wx-bubble {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .wx-content img {
    max-width: 100%;
  }
}

/* =========================
   Minimal Forum Comment Style
   ========================= */

.ns-comment {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border, #eceff3);
}

.ns-comment:first-child {
  border-top: none;
}

.ns-avatar-wrap {
  flex: 0 0 44px;
}

.ns-avatar {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.ns-main {
  flex: 1;
  min-width: 0;
}

.ns-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ns-user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.ns-author {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
}

.ns-time {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.25;
}

.ns-floor {
  flex: 0 0 auto;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.ns-floor:hover {
  color: #16a34a;
}

.ns-content {
  margin-top: 14px;
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
  word-break: break-word;
}

.ns-content p {
  margin: 0.65em 0;
}

.ns-content p:first-child {
  margin-top: 0;
}

.ns-content p:last-child {
  margin-bottom: 0;
}

.ns-content a {
  color: #16a34a;
  text-decoration: none;
}

.ns-content a:hover {
  text-decoration: underline;
}

.ns-content img {
  display: block;
  max-width: min(100%, 420px);
  margin-top: 10px;
  border-radius: 12px;
}

.ns-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  font-size: .92em;
}

.ns-content pre {
  margin: 10px 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 10px;
  background: #f8fafc;
}

.ns-content blockquote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #d8dee6;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #64748b;
}

.ns-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #94a3b8;
}

.ns-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
  transition: color .18s ease;
}

.ns-action:hover {
  color: #16a34a;
}

.ns-icon {
  width: 15px;
  height: 15px;
  display: block;
  flex: 0 0 auto;
}

.ns-children {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid #f1f5f9;
}

.ns-children .ns-comment {
  margin-top: 10px;
  padding-top: 14px;
}

@media (max-width: 768px) {
  .ns-comment {
    gap: 10px;
    padding: 16px 0;
  }

  .ns-avatar-wrap {
    flex-basis: 38px;
  }

  .ns-avatar {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .ns-author {
    font-size: 15px;
  }

  .ns-time,
  .ns-floor,
  .ns-action {
    font-size: 13px;
  }

  .ns-content {
    font-size: 15px;
  }

  .ns-content img {
    max-width: 100%;
  }

  .ns-actions {
    gap: 14px;
  }

  .ns-children {
    padding-left: 12px;
  }
}
