/**
 * news-detail.css - 新闻详情页（/news/{id}.html）
 * ------------------------------------------------------------------
 * 设计取向与列表页 news-front.css、AI 应用集 ai-apps.css 保持一致：
 *   底色白 → 区块 #f5f8fd / 卡片白 → 靠「三层底色 + 细线」分区，不堆描边
 *   主色 #4a6cf7，标题 #131b2b，正文 #2b3345，辅助 #8792a6，分隔线 #eaeff7
 *
 * 结构：
 *   面包屑 → 两栏（正文卡 / 侧栏，1280 容器 + 340 侧栏）
 *   正文卡：头部（分类+H1+元信息）→ 工具条 → 封面 → 正文 → 内容说明 → 标签
 *   正文卡外：上下篇 → 相关推荐 → 评论
 *
 * 兼容：本文件同时承担原 tuijian.css 的侧栏样式（该文件已不再引入）。
 * 注意：.article-content / #favoriteBtn / #shareToggle / #shareMenu(.open)
 *       是 news-detail.js 的钩子，改名会导致收藏、分享、图片灯箱失效。
 * ------------------------------------------------------------------
 */

/* ============================================================
   0. 页面骨架
   ============================================================ */
.nd-page {
    --nd-ink: #131b2b;
    --nd-ink2: #48536a;
    --nd-text: #2b3345;
    --nd-mute: #8792a6;
    --nd-line: #eaeff7;
    --nd-soft: #f5f8fd;
    --nd-blue: #4a6cf7;
    --nd-blue-d: #3f5bd7;
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.nd-crumb {
    font-size: 13px;
    color: #9aa6bc;
    padding: 10px 2px 14px;
}

.nd-crumb a { color: #6b7a94; }

.nd-crumb a:hover { color: var(--nd-blue); }

.nd-crumb-cur {
    color: #9aa6bc;
    max-width: 42%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
    display: inline-block;
}

/* 顶部阅读进度条 */
.nd-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.nd-progress.is-on { opacity: 1; }

.nd-progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(90deg, #7b96ff, #4a6cf7);
    transition: width .08s linear;
}

/* 外壳 .main-content 在 ≥769 时有左右各 68px 的内边距（全站通用），
   详情页的版心就是被这 136px 挤窄的。这里只在详情页把它收到 28px，
   同样 1440 的屏能多出 80px 可用宽度。:has() 不支持的浏览器只是保持原样，不影响布局。 */
@media (min-width: 1121px) {
    .main-content:has(.nd-page) {
        padding-left: 28px;
        padding-right: 28px;
    }
}

/* 两栏 */
.nd-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.nd-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* 侧栏跟随滚动。
   顶部那条 .header-nav-top 是 sticky 的（高 60px），所以吸附位置要从 60 往下让 14px，
   否则卡片标题会被压在导航条下面。
   卡片总高常超过一屏，因此给 max-height + 自身细滚动条：既不挡正文，
   也不会出现「吸顶后底部卡片永远翻不到」。滚到底后滚轮会继续滚页面。 */
.nd-sidebar {
    --nd-sticky-top: 74px;
    flex: 0 0 380px;
    width: 380px;
    position: sticky;
    top: var(--nd-sticky-top);
    align-self: flex-start;
    max-height: calc(100vh - var(--nd-sticky-top) - 16px);
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #dbe4f3 transparent;
}

.nd-sidebar::-webkit-scrollbar { width: 5px; }
.nd-sidebar::-webkit-scrollbar-thumb { background: #dbe4f3; border-radius: 3px; }
.nd-sidebar::-webkit-scrollbar-track { background: transparent; }

/* 正文卡片 */
.nd-article {
    background: #fff;
    border: 1px solid var(--nd-line);
    border-radius: 16px;
    overflow: hidden;
}

/* ============================================================
   1. 文章头部
   ============================================================ */
.nd-head {
    padding: 28px 36px 18px;
}

.nd-head-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.nd-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 8px;
    background: #eef3ff;
    color: var(--nd-blue-d);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s, color .18s;
}

.nd-cat:hover { background: var(--nd-blue); color: #fff; }

.nd-cat i { font-size: 13px; }

.nd-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: #9aa6bc;
}

.nd-title {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.42;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--nd-ink);
    word-break: break-word;
    /* 换行时让两行长度尽量接近，避免末行只剩一个字（1280 一带很常见） */
    text-wrap: balance;
}

.nd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: #7b879c;
}

.nd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.nd-meta-item i {
    font-size: 14px;
    color: #a9b6cc;
}

.nd-meta-item time { font-variant-numeric: tabular-nums; }

/* ============================================================
   2. 工具栏（评论 / 收藏 / 分享）
   ============================================================ */
.article-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 36px 20px;
    padding: 6px 8px;
    background: #f7faff;
    border: 1px solid #edf2fb;
    border-radius: 12px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    min-width: 0;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 9px;
    font-size: 13px;
    color: #5b677c;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s, color .18s;
    outline: none;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: #eaf0fd;
    color: var(--nd-blue-d);
}

/* 焦点用内描边：外描边会被 .article-toolbar / 横向滚动容器裁掉，只剩两条弧 */
.toolbar-btn:focus-visible {
    box-shadow: inset 0 0 0 2px var(--nd-blue);
}

.toolbar-btn i { font-size: 15px; }

.toolbar-btn .badge {
    display: inline-block;
    min-width: 16px;
    padding: 0 6px;
    border-radius: 20px;
    background: #e6ecf9;
    color: #5b677c;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.toolbar-btn .badge.active {
    background: var(--nd-blue);
    color: #fff;
}

/* ---------- 分享菜单 ---------- */
.share-dropdown { position: relative; display: inline-block; }

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 152px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e8eefa;
    border-radius: 12px;
    box-shadow: 0 14px 34px -12px rgba(24, 42, 90, .26);
    z-index: 200;
}

.share-menu.open { display: block; }

.share-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--nd-ink2);
    text-decoration: none;
    transition: background .16s, color .16s;
}

.share-menu a:hover { background: #f5f8fe; color: var(--nd-blue-d); }

.share-menu a i { font-size: 17px; width: 18px; text-align: center; }

/* ============================================================
   3. 封面
   ============================================================ */
.nd-cover {
    margin: 0 34px 24px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4fd, #e2ebf8);
}

.nd-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

/* ============================================================
   4. 正文排版
   ============================================================ */
.nd-body {
    padding: 0 36px 32px;
}

.article-content {
    font-size: 17.5px;
    line-height: 1.92;
    color: var(--nd-text);
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }

.article-content p {
    margin: 0 0 18px;
}

.article-content h2 {
    position: relative;
    margin: 34px 0 14px;
    padding-left: 13px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 800;
    color: var(--nd-ink);
    scroll-margin-top: 80px;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: .3em;
    width: 4px;
    height: 1.05em;
    border-radius: 2px;
    background: linear-gradient(180deg, #7b96ff, #4a6cf7);
}

.article-content h3 {
    margin: 26px 0 10px;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--nd-ink);
    scroll-margin-top: 80px;
}

.article-content h4 {
    margin: 20px 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--nd-ink2);
    scroll-margin-top: 80px;
}

.article-content a {
    color: var(--nd-blue-d);
    text-decoration: none;
    border-bottom: 1px solid rgba(63, 91, 215, .28);
    transition: border-color .18s;
}

.article-content a:hover { border-bottom-color: var(--nd-blue-d); }

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 12px;
    background: #f2f6fd;
}

.article-content iframe,
.article-content video {
    display: block;
    max-width: 100%;
    margin: 22px auto;
    border: 0;
    border-radius: 12px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 18px;
    padding-left: 1.5em;
}

.article-content li { margin-bottom: 7px; }

.article-content li::marker { color: #9db2df; }

.article-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 3px solid #b9cbf3;
    border-radius: 0 10px 10px 0;
    background: #f7faff;
    color: #55617a;
}

.article-content blockquote p:last-child { margin-bottom: 0; }

.article-content table {
    display: block;
    width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
    overflow-x: auto;
    font-size: 14.5px;
    -webkit-overflow-scrolling: touch;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e8eefa;
    padding: 9px 13px;
    text-align: left;
}

.article-content table th {
    background: #f5f8fe;
    font-weight: 700;
    white-space: nowrap;
}

.article-content pre {
    margin: 20px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f8fe;
    border: 1px solid #eaeff7;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.7;
}

.article-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #f2f6fd;
    font-size: 14px;
    color: #c2410c;
}

.article-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.nd-empty {
    padding: 40px 0;
    text-align: center;
    color: #a9b6cc;
}

/* ============================================================
   5. 内容说明（E-E-A-T）
   ============================================================ */
.nd-trust {
    margin-top: 28px;
    padding: 16px 18px 6px;
    border: 1px solid #e9f0fb;
    border-radius: 14px;
    background: #f7faff;
}

.nd-trust-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--nd-ink);
}

.nd-trust-head i { font-size: 16px; color: var(--nd-blue); }

.nd-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.nd-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.75;
    color: #5b677c;
}

.nd-trust-list b {
    flex: 0 0 60px;
    color: #8792a6;
    font-weight: 600;
}

/* ============================================================
   6. 标签 / 返回
   ============================================================ */
.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f0f4fa;
}

.footer-tags {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.tag-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #8792a6;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    background: #f1f5fd;
    color: var(--nd-blue-d);
    font-size: 12.5px;
    text-decoration: none;
    transition: background .18s, color .18s;
}

.tag:hover { background: var(--nd-blue); color: #fff; }

.nd-note { font-size: 13px; color: #b3bfd2; }

.article-actions { display: flex; gap: 10px; }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #f4f7fc;
    color: var(--nd-ink2);
    font-size: 13.5px;
    text-decoration: none;
    transition: background .18s, color .18s;
}

.btn-back:hover { background: #e9f0fd; color: var(--nd-blue-d); }

/* ============================================================
   7. 上一篇 / 下一篇
   ============================================================ */
.nd-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.nd-pager-item {
    display: block;
    padding: 13px 16px 14px;
    background: #fff;
    border: 1px solid var(--nd-line);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.nd-pager-item.is-next { text-align: right; }

.nd-pager-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #9aa6bc;
}

.nd-pager-item strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--nd-text);
}

a.nd-pager-item:hover {
    border-color: #cfdcf8;
    box-shadow: 0 10px 24px -16px rgba(40, 70, 150, .45);
    transform: translateY(-1px);
}

a.nd-pager-item:hover strong { color: var(--nd-blue-d); }

.nd-pager-item.is-off {
    background: #fbfcff;
    border-style: dashed;
}

.nd-pager-item.is-off strong { color: #b3bfd2; font-weight: 500; }

/* ============================================================
   8. 相关推荐
   ============================================================ */
.nd-related {
    margin-top: 16px;
    padding: 18px 20px 20px;
    background: #fff;
    border: 1px solid var(--nd-line);
    border-radius: 16px;
}

.nd-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.nd-sec-head h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--nd-ink);
}

.nd-sec-head h2 i { font-size: 17px; color: var(--nd-blue); }

.nd-sec-more {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 12.5px;
    color: #9aa6bc;
    text-decoration: none;
}

.nd-sec-more:hover { color: var(--nd-blue-d); }

.nd-rel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
    gap: 12px;
}

.nd-rel-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eef3fb;
    border-radius: 12px;
    overflow: hidden;
    background: #fbfcfe;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

.nd-rel-card:hover {
    border-color: #cfdcf8;
    box-shadow: 0 10px 24px -16px rgba(40, 70, 150, .4);
}

.nd-rel-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eef4fd, #e1eaf8);
}

.nd-rel-thumb img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-rel-ph {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c6d3e8;
    font-size: 24px;
}

.nd-rel-body {
    display: block;
    padding: 10px 12px 12px;
}

.nd-rel-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--nd-text);
}

.nd-rel-card:hover .nd-rel-body strong { color: var(--nd-blue-d); }

.nd-rel-date {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    color: #a9b6cc;
}

/* ============================================================
   9. 评论区（详情页定制，覆盖 /comment/assets/css/comment.css）
   ------------------------------------------------------------
   comment.css 在本文件之后加载，权重相同的规则它会赢，所以这里
   每条都带 .nd-main 前缀（0,2,0 起）；暗色规则再加 body.dark-mode（0,3,0）。
   结构：头部（标题 + 计数胶囊 + 写评论）→ 列表 → 空状态 → 表单
   ============================================================ */
.nd-main .comment-section {
    max-width: none;
    margin: 16px 0 0;
    padding: 0 26px 24px;
    border: 1px solid var(--nd-line);
    border-radius: 16px;
    background: #fff;
}

/* ---------- 9.1 头部 ---------- */
.nd-main .comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 14px;
    border-bottom: 1px solid #f1f5fc;
}

.nd-main .comment-header h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--nd-ink);
    letter-spacing: .2px;
}

.nd-main .comment-header h2 > i {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef3ff;
    color: var(--nd-blue);
    font-size: 15px;
}

/* 计数做成胶囊：原来是个裸数字，「评论 0 条」看不出层级 */
.nd-main .comment-header h2 .nd-cmt-num {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--nd-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.nd-cmt-jump {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #e2eaf8;
    border-radius: 9px;
    background: #fbfcff;
    color: #55627a;
    font-size: 12.5px;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}

.nd-cmt-jump:hover {
    background: #f3f7ff;
    border-color: #c9d9f7;
    color: var(--nd-blue-d);
}

.nd-cmt-jump svg { opacity: .9; }

/* ---------- 9.2 列表 ---------- */
.nd-main #commentList { margin: 0; }

.nd-main .comment-item {
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f4f7fd;
}

.nd-main .comment-item:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.nd-main .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e8eefb;
    background: #eef3ff;
    overflow: hidden;
}

.nd-main .comment-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: cover;
}

/* 待审核：comment.css 用 border-left + padding-left，会把这一条整体右移 15px，
   跟其它评论的头像对不齐。这里改成「左右各外扩 16px 的卡片 + 内阴影竖条」，
   内容仍在原位，背景块才是视觉上的强调。 */
.nd-main .comment-item.pending {
    margin: 8px -16px;
    padding: 14px 16px;
    border-bottom: 0;
    border-left: 0;
    border-radius: 10px;
    background: #fffaf1;
    box-shadow: inset 3px 0 0 #f6ad55;
}

.nd-main .comment-item.pending .comment-status.pending {
    margin-left: 2px;
    padding: 1px 7px;
    border-radius: 6px;
    background: #fdf0cf;
    color: #b7791f;
    font-size: 11.5px;
    line-height: 1.6;
}

.nd-main .comment-meta {
    gap: 8px;
    margin-bottom: 6px;
}

.nd-main .comment-author {
    font-size: 13.5px;
    font-weight: 700;
    color: #1d2637;
}

.nd-main .comment-time {
    font-size: 11.5px;
    color: #a8b4c8;
}

.nd-main .comment-content {
    font-size: 14.5px;
    line-height: 1.78;
    color: #3a4459;
}

.nd-main .comment-actions { margin-top: 9px; }

.nd-main .comment-reply-btn {
    height: 26px;
    padding: 0 11px;
    border: 1px solid #e4ebf8;
    border-radius: 8px;
    background: #f7faff;
    color: #5c6b86;
    font-size: 12px;
    transition: background .18s, border-color .18s, color .18s;
}

.nd-main .comment-reply-btn:hover {
    background: #eef4ff;
    border-color: #cfdefa;
    color: var(--nd-blue-d);
    text-decoration: none;
}

/* ---------- 9.3 空状态 ---------- */
.nd-main .comment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    padding: 26px 18px;
    border: 1px dashed #dbe5f6;
    border-radius: 14px;
    background: #fbfcff;
    color: #98a5bb;
    font-size: 13.5px;
    line-height: 1.7;
    text-align: center;
}

.nd-main .comment-empty::before {
    content: "";
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef3ff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6cf7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.4 8.4 0 0 1-8.4 8.4c-1.5 0-2.9-.4-4.1-1.1L3 20l1.2-5.4A8.4 8.4 0 1 1 21 11.5z'/><circle cx='8.6' cy='11.6' r='.9' fill='%234a6cf7' stroke='none'/><circle cx='12.2' cy='11.6' r='.9' fill='%234a6cf7' stroke='none'/><circle cx='15.8' cy='11.6' r='.9' fill='%234a6cf7' stroke='none'/></svg>") center / 22px 22px no-repeat;
}

/* ---------- 9.4 表单外壳 ---------- */
.nd-main .comment-form-wrapper {
    margin-top: 8px;
    padding: 20px;
    border: 1px solid #e6eefc;
    border-radius: 15px;
    background: linear-gradient(180deg, #f8faff 0%, #fcfdff 100%);
}

.nd-cmt-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.nd-cmt-head h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--nd-ink);
}

.nd-cmt-head h3 svg { color: var(--nd-blue); }

.nd-cmt-head > span { font-size: 12px; color: #a3b0c6; }

/* 回复提示条：comment.js 只写 parent_id，界面上看不出在回复谁 */
.nd-cmt-reply {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    padding: 8px 10px 8px 12px;
    border: 1px solid #d8e4ff;
    border-radius: 10px;
    background: #eef4ff;
    color: #41528c;
    font-size: 12.5px;
}

.nd-cmt-reply.is-on { display: flex; }

.nd-cmt-reply b { color: var(--nd-blue-d); font-weight: 700; }

.nd-cmt-reply button {
    margin-left: auto;
    padding: 3px 9px;
    border: 1px solid #cfdcf8;
    border-radius: 7px;
    background: #fff;
    color: #5c6b86;
    font-size: 12px;
    cursor: pointer;
}

.nd-cmt-reply button:hover { border-color: var(--nd-blue); color: var(--nd-blue-d); }

/* ---------- 9.5 字段 ---------- */
.nd-main .comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.nd-main .comment-form-group {
    margin-bottom: 14px;
    min-width: 0;
}

.nd-main .comment-form-row .comment-form-group { margin-bottom: 0; }

.nd-main .comment-form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #5a6780;
    letter-spacing: .2px;
}

.nd-main .comment-form-group label .is-req {
    color: #f08080;
    font-style: normal;
}

.nd-main .comment-form-group label .is-opt {
    margin-left: 2px;
    padding: 0 5px;
    border-radius: 5px;
    background: #eef1f7;
    color: #98a5bb;
    font-size: 10.5px;
    font-weight: 500;
    font-style: normal;
    line-height: 16px;
}

.nd-main .comment-form-group input,
.nd-main .comment-form-group textarea {
    width: 100%;
    height: 41px;
    padding: 0 13px;
    border: 1px solid #dee7f6;
    border-radius: 10px;
    background: #fff;
    color: #253044;
    font-size: 14px;
    line-height: 41px;
    box-shadow: 0 1px 2px rgba(23, 44, 88, .03);
    transition: border-color .18s, box-shadow .18s;
}

.nd-main .comment-form-group input::placeholder,
.nd-main .comment-form-group textarea::placeholder { color: #b3bfd2; }

.nd-main .comment-form-group input:hover,
.nd-main .comment-form-group textarea:hover { border-color: #cbd9f2; }

.nd-main .comment-form-group input:focus,
.nd-main .comment-form-group textarea:focus {
    border-color: var(--nd-blue);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, .14);
    outline: none;
}

.nd-main .comment-form-group textarea {
    height: auto;
    min-height: 116px;
    padding: 11px 13px;
    line-height: 1.72;
    resize: vertical;
}

.nd-main .nd-cmt-text { margin-bottom: 12px; }

/* ---------- 9.6 底部操作条 ---------- */
.nd-cmt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nd-cmt-tip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #a3b0c6;
}

.nd-cmt-tip i { font-size: 13px; color: #8fb0e8; }

.nd-cmt-len {
    margin-left: auto;
    font-size: 12px;
    color: #a9b5c8;
    font-variant-numeric: tabular-nums;
}

.nd-cmt-len b { color: #7b8aa4; font-weight: 600; }

/* 距 300 字上限 30 字内变色提醒（上限来自 submit.php 的 mb_strlen 校验） */
.nd-cmt-len.is-near b { color: #d98324; }

.nd-cmt-len.is-near { color: #d98324; }

/* 注意：comment.js 提交时会用 textContent 改按钮文字（会清空内部节点），
   所以发射图标只能用 ::before 画，不能写成 <i> / <svg> 子元素。 */
.nd-main .comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    margin: 0;
    padding: 0 24px 0 20px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(180deg, #5b7bff, #4a6cf7);
    box-shadow: 0 8px 18px -10px rgba(74, 108, 247, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .16s, box-shadow .16s, filter .16s;
}

.nd-main .comment-submit-btn::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12 20 4l-4.2 16L12 14l-8-2z'/><path d='M12 14 20 4'/></svg>") center / contain no-repeat;
}

.nd-main .comment-submit-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -10px rgba(74, 108, 247, .95);
}

.nd-main .comment-submit-btn:active { transform: translateY(0); }

.nd-main .comment-submit-btn:disabled {
    opacity: .65;
    transform: none;
    cursor: not-allowed;
}

.nd-main .comment-submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, .3);
}

/* ---------- 9.7 提示与分页 ---------- */
.nd-main .comment-msg {
    border-radius: 10px;
    font-size: 13px;
}

.nd-main .comment-msg.success {
    background: #effaf2;
    border-color: #c8ecd3;
    color: #1b7a43;
}

.nd-main .comment-msg.error {
    background: #fff4f4;
    border-color: #fadada;
    color: #b3372f;
}

.nd-main .comment-pagination {
    margin-top: 18px;
    gap: 6px;
}

.nd-main .comment-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border-color: #e4ebf7;
    border-radius: 9px;
    color: #5c6b86;
    font-size: 13px;
}

.nd-main .comment-page:hover:not(.active) {
    background: #f3f7ff;
    border-color: #cfdefa;
}

.nd-main .comment-page.active {
    background: var(--nd-blue);
    border-color: var(--nd-blue);
    box-shadow: 0 6px 14px -9px rgba(74, 108, 247, .9);
}

/* 「上一页 / 下一页」比页码弱一档，避免和数字抢视线 */
.nd-main .comment-page.is-nav {
    background: #f7faff;
    color: #6b7a94;
}

.nd-main .comment-page.is-nav:hover { background: #eef4ff; color: var(--nd-blue-d); }

.nd-main .comment-page-gap {
    display: inline-flex;
    align-items: center;
    color: #b3bfd2;
    font-size: 13px;
}

/* ---------- 9.8 暗色 ---------- */
body.dark-mode .nd-main .comment-header { border-bottom-color: #1e2a44; }

body.dark-mode .nd-main .comment-header h2 i { background: #1c2740; color: #8ba4f5; }

body.dark-mode .nd-cmt-jump {
    background: #182238;
    border-color: #27344f;
    color: #b6c3da;
}

body.dark-mode .nd-cmt-jump:hover { background: #1d2a44; border-color: #35476b; color: #a8bfff; }

body.dark-mode .nd-main .comment-item { border-bottom-color: #1e2a44; }

body.dark-mode .nd-main .comment-avatar { background: #1c2740; border-color: #2a3a5a; }

body.dark-mode .nd-main .comment-author { color: #e2e9f7; }

body.dark-mode .nd-main .comment-time { color: #7e8da7; }

body.dark-mode .nd-main .comment-content { color: #c3cfe3; }

body.dark-mode .nd-main .comment-reply-btn {
    background: #1c2740;
    border-color: #2a3a5a;
    color: #a9b8d2;
}

body.dark-mode .nd-main .comment-reply-btn:hover { background: #22304d; color: #a8bfff; }

body.dark-mode .nd-main .comment-item.pending {
    background: #1d2433;
    box-shadow: inset 3px 0 0 #b7791f;
}

body.dark-mode .nd-main .comment-item.pending .comment-status.pending {
    background: #33270f;
    color: #ecc94b;
}

body.dark-mode .nd-main .comment-empty {
    background: #141d31;
    border-color: #2a3a5a;
    color: #8391ab;
}

body.dark-mode .nd-main .comment-empty::before { background-color: #1c2740; }

body.dark-mode .nd-main .comment-form-wrapper {
    background: linear-gradient(180deg, #16203a 0%, #141d31 100%);
    border-color: #26324e;
}

body.dark-mode .nd-cmt-head h3 { color: #e6edf9; }

body.dark-mode .nd-cmt-head > span { color: #8391ab; }

body.dark-mode .nd-cmt-reply {
    background: #1b2744;
    border-color: #2c3d61;
    color: #a8b9dc;
}

body.dark-mode .nd-cmt-reply button {
    background: #22304d;
    border-color: #33456a;
    color: #b6c3da;
}

body.dark-mode .nd-main .comment-form-group label { color: #a3b0c8; }

body.dark-mode .nd-main .comment-form-group label .is-opt { background: #22304d; color: #8391ab; }

body.dark-mode .nd-main .comment-form-group input,
body.dark-mode .nd-main .comment-form-group textarea {
    background: #131c2f;
    border-color: #2a3a5a;
    color: #e2e9f7;
    box-shadow: none;
}

body.dark-mode .nd-main .comment-form-group input::placeholder,
body.dark-mode .nd-main .comment-form-group textarea::placeholder { color: #6f7f9b; }

body.dark-mode .nd-main .comment-form-group input:focus,
body.dark-mode .nd-main .comment-form-group textarea:focus {
    border-color: #5c7bff;
    box-shadow: 0 0 0 3px rgba(92, 123, 255, .18);
}

body.dark-mode .nd-cmt-tip { color: #8391ab; }

body.dark-mode .nd-cmt-len { color: #7e8da7; }

body.dark-mode .nd-main .comment-page {
    background: #182238;
    border-color: #27344f;
    color: #a9b8d2;
}

body.dark-mode .nd-main .comment-page.is-nav {
    background: #1b2744;
    color: #96a3ba;
}

body.dark-mode .nd-main .comment-page-gap { color: #6f7f9b; }

body.dark-mode .nd-main .comment-page:hover:not(.active) {
    background: #1d2a44;
    border-color: #35476b;
}

/* ============================================================
   10. 侧栏
   ============================================================ */
.nd-sidebar .sidebar-card {
    background: #fff;
    border: 1px solid var(--nd-line);
    border-radius: 16px;
    padding: 16px 16px 12px;
    margin-bottom: 16px;
}

.nd-sidebar .sidebar-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid #f1f5fb;
    font-size: 15px;
    font-weight: 700;
    color: var(--nd-ink);
}

.nd-sidebar .sidebar-title i { font-size: 16px; color: #8fa4c8; }

/* 标题右侧「更多」：用 margin-left:auto 顶到最右，不额外占一行 */
.nd-sidebar .sidebar-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 12px;
    font-weight: 500;
    color: #a3afc4;
    text-decoration: none;
    transition: color .16s;
}

.nd-sidebar .sidebar-more:hover { color: var(--nd-blue-d); }

.nd-sidebar .sidebar-more i { font-size: 13px; color: inherit; }

.nd-sidebar .nd-toc-card .sidebar-title i { color: #ff8a3d; }

/* ---------- 目录 ---------- */
.nd-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nd-toc li { padding: 3px 0; }

.nd-toc a {
    display: block;
    padding: 3px 0 3px 9px;
    border-left: 2px solid #eef3fb;
    font-size: 13px;
    line-height: 1.5;
    color: #5b677c;
    text-decoration: none;
    transition: color .16s, border-color .16s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nd-toc a:hover { color: var(--nd-blue-d); border-left-color: var(--nd-blue); }

.nd-toc-l3 a { padding-left: 22px; font-size: 12.5px; color: #7b879c; }

/* ---------- 本文信息 ---------- */
.nd-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nd-info li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
}

.nd-info li + li { border-top: 1px solid #f5f8fd; }

.nd-info span { color: #8792a6; flex: 0 0 auto; }

.nd-info b,
.nd-info a {
    font-weight: 600;
    color: var(--nd-ink2);
    text-decoration: none;
    text-align: right;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nd-info a:hover { color: var(--nd-blue-d); }

/* ---------- 热门文章 ---------- */
.nd-hot {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nd-hot-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
}

.nd-hot-item + .nd-hot-item { border-top: 1px solid #f4f7fc; }

.nd-hot-rank {
    font-size: 12px;
    font-weight: 800;
    color: #c2cfe6;
    font-variant-numeric: tabular-nums;
}

.nd-hot-item.is-top .nd-hot-rank { color: #ff8a3d; }
.nd-hot-item.is-top:nth-child(1) .nd-hot-rank { color: #f04438; }

.nd-hot-item a {
    font-size: 13px;
    line-height: 1.45;
    color: #35405a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-hot-item a:hover { color: var(--nd-blue-d); }

.nd-hot-num {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11.5px;
    color: #b3bfd2;
    font-variant-numeric: tabular-nums;
}

/* ---------- AI 应用（原 tuijian.css） ---------- */
/* 图标位（AI 应用推荐）：
   首字母方块打底，<img> 盖在上层；没配图标或加载失败时 img 自行移除、露出首字母，
   不会出现 onerror 回填默认图（线上 default-icon.png 是 404）导致的死循环。 */
.nd-ico {
    position: relative;
    flex: 0 0 var(--ico-s, 40px);
    width: var(--ico-s, 40px);
    height: var(--ico-s, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ico-r, 10px);
    background: linear-gradient(135deg, #eef3ff, #dfe8fb);
    border: 1px solid #e6eefb;
    overflow: hidden;
}

.nd-ico b {
    font-size: var(--ico-fs, 16px);
    font-weight: 700;
    line-height: 1;
    color: var(--nd-blue-d);
}

.nd-ico img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 3px;
    border-radius: var(--ico-r, 10px);
    object-fit: contain;
    background: #fff;
}

/* ---------- AI 应用推荐 ---------- */
.ai-apps-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 -6px;
}

.ai-app-sidebar-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 6px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .18s, border-color .18s;
}

.ai-app-sidebar-item:hover {
    background: #f4f8ff;
    border-color: #dfe9fb;
}

.ai-app-sidebar-info { flex: 1; min-width: 0; }

.ai-app-sidebar-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--nd-ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ai-app-sidebar-info span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #a3b0c6;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ============================================================
   11. 响应式
   ============================================================ */
@media (max-width: 1500px) {
    .nd-title { font-size: 29px; }
    .nd-sidebar { flex: 0 0 340px; width: 340px; }
    .nd-layout { gap: 24px; }
}

@media (max-width: 1400px) {
    .nd-title { font-size: 28px; }
    .nd-sidebar { flex: 0 0 316px; width: 316px; }
    .nd-layout { gap: 20px; }
}

@media (max-width: 1240px) {
    .nd-sidebar { flex: 0 0 292px; width: 292px; }
    .nd-layout { gap: 18px; }
}

/* 左侧还有 180px 固定导航栏 + main-content 的 68px 内边距，
   视口 1120 以下再保留两栏，正文就只剩 500 出头，一行不到 28 字，读起来很挤。
   所以这里提前收成单栏，而不是等到 992。 */
@media (max-width: 1120px) {
    .nd-layout { flex-direction: column; }
    .nd-sidebar {
        position: static;
        width: 100%;
        flex: 1 1 auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-top: 16px;
    }
    .nd-sidebar .sidebar-card { margin-bottom: 0; }
    .nd-title { font-size: 27px; }
}

@media (max-width: 768px) {
    /* 与列表页保持一致：手机上不显示顶部的搜索大块 + 横向导航条，把首屏留给标题 */
    .header-banner .dh-navbar { display: none !important; }
    .header-banner { padding-bottom: 0 !important; }

    .nd-crumb { font-size: 12px; padding: 8px 2px 10px; }
    .nd-crumb-cur { max-width: 38%; }
    .nd-head { padding: 18px 18px 14px; }
    .nd-title { font-size: 22px; line-height: 1.45; letter-spacing: -.2px; margin-bottom: 12px; }
    .nd-head-tags { margin-bottom: 9px; gap: 8px; }
    .nd-meta { font-size: 12.5px; gap: 6px 14px; }
    .article-toolbar { margin: 0 18px 16px; }
    .nd-cover { margin: 0 18px 18px; border-radius: 12px; }
    .nd-cover img { max-height: 320px; }
    .nd-body { padding: 0 18px 22px; }
    .article-content { font-size: 16px; line-height: 1.9; }
    .article-content h2 { font-size: 18px; margin: 28px 0 12px; }
    .article-content h3 { font-size: 16px; margin: 22px 0 8px; }
    .article-content img { margin: 16px auto; border-radius: 10px; }
    .nd-trust { padding: 14px 14px 4px; }
    .nd-trust-list li { font-size: 12.5px; }
    .nd-trust-list b { flex-basis: 52px; }
    .nd-pager { grid-template-columns: 1fr; }
    .nd-pager-item.is-next { text-align: left; }
    .nd-related { padding: 16px 14px 16px; }
    .nd-rel-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .nd-main .comment-section { padding: 0 14px 18px; }
    .nd-sidebar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .nd-title { font-size: 20px; }
    .nd-sidebar { grid-template-columns: 1fr; }

    /* 相关推荐改成「左图右文」的横向条目：单列大图在手机上一条就占掉一屏，太占地方 */
    .nd-rel-grid { grid-template-columns: 1fr; gap: 8px; }
    .nd-rel-card { flex-direction: row; align-items: stretch; }
    .nd-rel-thumb { flex: 0 0 108px; aspect-ratio: auto; height: 80px; }
    .nd-rel-body {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .nd-rel-body strong { font-size: 13px; }
    .nd-rel-date { margin-top: 4px; }

    .toolbar-btn { padding: 6px 9px; font-size: 12.5px; }
    .nd-meta-item:nth-child(4) { display: none; } /* 手机上省掉「字数」，剩作者/时间/阅读 */
}

/* ============================================================
   12. 深色模式
   ============================================================ */
body.dark-mode .nd-article,
body.dark-mode .nd-related,
body.dark-mode .nd-sidebar .sidebar-card,
body.dark-mode .nd-main .comment-section,
body.dark-mode .nd-pager-item {
    background: #16213e;
    border-color: #26324e;
}

body.dark-mode .nd-title,
body.dark-mode .nd-sec-head h2,
body.dark-mode .nd-sidebar .sidebar-title,
body.dark-mode .nd-main .comment-header h2,
body.dark-mode .nd-trust-head {
    color: #e6edf9;
}

body.dark-mode .nd-meta,
body.dark-mode .nd-meta-item,
body.dark-mode .nd-read,
body.dark-mode .nd-crumb,
body.dark-mode .nd-crumb-cur {
    color: #96a3ba;
}

body.dark-mode .nd-crumb a { color: #9fb0c9; }

body.dark-mode .nd-cat {
    background: #1e2a4a;
    color: #8ba4f5;
}

body.dark-mode .nd-cat:hover { background: #4a6cf7; color: #fff; }

body.dark-mode .article-toolbar {
    background: #1b2540;
    border-color: #26324e;
}

body.dark-mode .toolbar-btn { color: #a6b3c9; }
body.dark-mode .toolbar-btn:hover { background: #23304f; color: #8ba4f5; }

body.dark-mode .toolbar-btn .badge { background: #26324e; color: #a6b3c9; }
body.dark-mode .toolbar-btn .badge.active { background: #4a6cf7; color: #fff; }

body.dark-mode .share-menu {
    background: #1b2540;
    border-color: #2a3a5a;
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6);
}

body.dark-mode .share-menu a { color: #c3cee2; }
body.dark-mode .share-menu a:hover { background: #23304f; color: #8ba4f5; }

body.dark-mode .nd-cover,
body.dark-mode .nd-rel-thumb,
body.dark-mode .article-content img {
    background: #1b2540;
}

body.dark-mode .article-content { color: #c8d3e7; }
body.dark-mode .article-content h2,
body.dark-mode .article-content h3,
body.dark-mode .article-content h4 { color: #e6edf9; }
body.dark-mode .article-content a { color: #8ba4f5; border-bottom-color: rgba(139, 164, 245, .35); }

body.dark-mode .article-content blockquote {
    background: #1b2540;
    border-left-color: #3b5aa8;
    color: #a6b3c9;
}

body.dark-mode .article-content table th { background: #1b2540; }
body.dark-mode .article-content table th,
body.dark-mode .article-content table td { border-color: #2a3a5a; }

body.dark-mode .article-content pre,
body.dark-mode .article-content code {
    background: #1b2540;
    border-color: #2a3a5a;
    color: #e6edf9;
}

body.dark-mode .article-content code { color: #f7a072; }

body.dark-mode .nd-trust {
    background: #1b2540;
    border-color: #26324e;
}

body.dark-mode .nd-trust-list li { color: #a6b3c9; }
body.dark-mode .nd-trust-list b { color: #8794ad; }

body.dark-mode .article-footer { border-top-color: #26324e; }
body.dark-mode .tag { background: #1e2a4a; color: #8ba4f5; }
body.dark-mode .tag:hover { background: #4a6cf7; color: #fff; }
body.dark-mode .btn-back { background: #1b2540; color: #a6b3c9; }
body.dark-mode .btn-back:hover { background: #23304f; color: #8ba4f5; }
body.dark-mode .nd-note { color: #6f7d96; }

body.dark-mode .nd-pager-item.is-off { background: #141d36; }
body.dark-mode .nd-pager-item.is-off strong { color: #6f7d96; }
body.dark-mode .nd-pager-item strong { color: #c8d3e7; }
body.dark-mode .nd-pager-label { color: #8c99b0; }

body.dark-mode .nd-rel-card { background: #141d36; border-color: #26324e; }
body.dark-mode .nd-rel-body strong { color: #c8d3e7; }
body.dark-mode .nd-hot-item + .nd-hot-item { border-top-color: #26324e; }
body.dark-mode .nd-hot-item a { color: #c8d3e7; }
body.dark-mode .nd-info li + li { border-top-color: #26324e; }
body.dark-mode .nd-info span { color: #8794ad; }
body.dark-mode .nd-info b,
body.dark-mode .nd-info a { color: #c8d3e7; }
body.dark-mode .nd-toc a { color: #a6b3c9; border-left-color: #26324e; }
body.dark-mode .nd-toc a:hover { color: #8ba4f5; border-left-color: #4a6cf7; }
body.dark-mode .nd-sidebar .sidebar-title { border-bottom-color: #26324e; }

body.dark-mode .ai-app-sidebar-item:hover { background: #1e2a4a; border-color: #4a6cf7; }
body.dark-mode .ai-app-sidebar-info strong { color: #e6edf9; }
body.dark-mode .ai-app-sidebar-info span { color: #96a3ba; }
body.dark-mode .nd-ico { background: linear-gradient(135deg, #1e2a4a, #26324e); border-color: #2a3a5a; }
body.dark-mode .nd-ico b { color: #8ba4f5; }
body.dark-mode .nd-ico img { background: #1a2a4a; }
body.dark-mode .nd-sec-more { color: #8c99b0; }

/* ============================================================
   13. 评论区窄屏
   ============================================================ */
@media (max-width: 900px) {
    /* 三列挤到 700px 以下时「填了显示 QQ 头像」这类提示会被压成两行 */
    .nd-main .comment-form-row { grid-template-columns: 1fr 1fr; }
    .nd-main .comment-form-row .comment-form-group:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .nd-main .comment-section { padding: 0 14px 18px; }
    .nd-main .comment-header { padding: 14px 0 12px; }
    .nd-main .comment-header h2 { font-size: 15.5px; }
    .nd-main .comment-form-wrapper { padding: 15px 13px; }
    .nd-main .comment-form-row { grid-template-columns: 1fr; gap: 12px; }
    .nd-main .comment-form-row .comment-form-group:nth-child(3) { grid-column: auto; }
    .nd-cmt-head > span { display: none; }
    .nd-cmt-tip { display: none; }
    .nd-cmt-actions { gap: 10px; }
    .nd-main .comment-submit-btn { flex: 1 1 100%; justify-content: center; }
}
