/* ---------------------------------------------------------------
   syBlog · 默认主题样式（黑白极简）
   --------------------------------------------------------------- */

:root {
    --bg: #ffffff;
    --fg: #111111;
    --muted: #767676;
    --line: #e5e5e5;
    --soft: #f6f6f4;
    --accent: #111111;
    --radius: 10px;
    --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f0f;
        --fg: #eaeaea;
        --muted: #8f8f8f;
        --line: #2a2a2a;
        --soft: #181818;
        --accent: #ffffff;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease, opacity .15s ease; }
a:hover { border-bottom-color: var(--fg); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.sep { color: var(--muted); margin: 0 4px; }
.brand-mark { margin-right: 8px; color: var(--fg); }

/* ------------------------------------------------------------------ header */
.site-header {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.brand { font-weight: 700; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { border-bottom-color: transparent; opacity: .8; }

.nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--fg); border-bottom-color: transparent; }

.search { margin-left: auto; }
.search input {
    width: 180px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--fg);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    transition: width .2s ease, border-color .2s ease;
}
.search input:focus { width: 220px; border-color: var(--fg); }

/* -------------------------------------------------------------------- main */
.main { padding: 40px 24px 64px; min-height: 60vh; }

.flash {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--fg);
    border-radius: 6px;
    background: var(--soft);
    margin-bottom: 24px;
    font-size: 14px;
}
.flash-error { border-left-color: #c0392b; }

.hero { margin-bottom: 36px; }
.hero h1 {
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: -.02em;
    margin: 0 0 8px;
}
.lead { color: var(--muted); margin: 0; font-size: 15px; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
.column-main { min-width: 0; }

/* ------------------------------------------------------------------- cards */
.post-list { display: flex; flex-direction: column; }

.post-card {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}
.post-card:first-child { border-top: none; padding-top: 0; }

.post-card .cover {
    flex: 0 0 200px;
    border-radius: var(--radius);
    overflow: hidden;
    border-bottom: none;
    background: var(--soft);
}
.post-card .cover img { width: 100%; height: 130px; object-fit: cover; }

.post-card-body { min-width: 0; }
.meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--fg); }

.post-title { margin: 6px 0 8px; font-size: 22px; line-height: 1.4; letter-spacing: -.01em; }
.post-title a:hover { border-bottom-color: transparent; opacity: .75; }

.excerpt { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }

.meta-bottom { justify-content: space-between; }
.more { font-size: 13.5px; color: var(--fg); border-bottom: 1px solid var(--fg); }
.more:hover { opacity: .6; border-bottom-color: var(--fg); }

.post-list.compact .post-row { padding: 22px 0; border-top: 1px solid var(--line); }
.post-list.compact .post-row:first-child { border-top: none; }
.post-row h2 { font-size: 19px; margin: 4px 0 6px; }
.post-row h2 a:hover { opacity: .75; border-bottom-color: transparent; }
.post-row .excerpt { margin-bottom: 0; }

/* --------------------------------------------------------------- pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--muted);
}
.pagination a, .pagination .current {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.pagination a:hover { border-color: var(--fg); color: var(--fg); }
.pagination .current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pagination .gap { padding: 0 2px; }

/* ------------------------------------------------------------------ article */
.post-single { max-width: 760px; }
.post-header { margin-bottom: 24px; }
.post-title-single { font-size: 30px; line-height: 1.35; letter-spacing: -.02em; margin: 8px 0 0; }
.post-cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }

.prose { font-size: 16.5px; line-height: 1.9; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 22px; margin: 2em 0 .7em; letter-spacing: -.01em; }
.prose h3 { font-size: 18px; margin: 1.8em 0 .6em; }
.prose h4 { font-size: 16px; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
    margin: 1.4em 0;
    padding: 2px 0 2px 18px;
    border-left: 3px solid var(--fg);
    color: var(--muted);
}
.prose pre {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 1.4em 0;
}
.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;
    background: var(--soft);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: .9em;
}
.prose pre code { padding: 0; background: none; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose a { border-bottom: 1px solid var(--fg); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.tag {
    font-size: 12.5px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
}
.tag:hover { color: var(--fg); border-color: var(--fg); }

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}
.post-nav a { display: flex; flex-direction: column; gap: 4px; border-bottom: none; }
.post-nav a:hover .title { text-decoration: underline; text-underline-offset: 3px; }
.post-nav .next { text-align: right; }
.post-nav .dir { font-size: 12px; color: var(--muted); }
.post-nav .title { font-weight: 600; }

/* ----------------------------------------------------------------- comments */
.comments { max-width: 760px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.section-title { font-size: 19px; margin: 0 0 20px; }
.section-title .count { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }

.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment:first-child { border-top: 1px solid var(--line); }
.comment-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; font-size: 14px; }
.comment-body { font-size: 14.5px; color: var(--fg); }

.comment-form { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 24px; }
.comment-form h3 { font-size: 16px; margin: 0 0 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 13px; color: var(--muted); }
label input, label textarea {
    width: 100%;
    margin-top: 6px;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}
label input:focus, label textarea:focus { border-color: var(--fg); }
label textarea { resize: vertical; }
.req { color: #c0392b; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }

.btn, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid var(--fg);
    background: var(--fg);
    color: var(--bg);
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s ease;
}
.btn:hover { opacity: .82; border-bottom-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); padding: 6px 14px; font-size: 13px; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-danger { background: transparent; color: #c0392b; border-color: #c0392b; }
.btn-danger:hover { background: #c0392b; color: #fff; }

/* ----------------------------------------------------------------- sidebar */
.sidebar { display: flex; flex-direction: column; gap: 32px; padding-top: 4px; }
.widget h3 {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
    font-weight: 600;
}
.plain-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.plain-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.plain-list li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plain-list li a:hover { border-bottom-color: transparent; opacity: .7; }
.count { color: var(--muted); font-size: 12.5px; flex: 0 0 auto; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ------------------------------------------------------------------ archive */
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.page-content { max-width: 720px; }

.timeline { max-width: 760px; }
.timeline-title { font-size: 15px; color: var(--muted); font-weight: 600; margin: 32px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.timeline-item { display: flex; gap: 16px; padding: 7px 0; font-size: 15px; }
.timeline-date { color: var(--muted); font-size: 13px; flex: 0 0 48px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.timeline-item a:hover { border-bottom-color: var(--fg); }

.empty { color: var(--muted); padding: 24px 0; }

/* ------------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 28px;
    padding-bottom: 40px;
    font-size: 13px;
}
.footer-inner a:hover { border-bottom-color: var(--fg); }

/* --------------------------------------------------------- typecho/halo 风格补充 */
.hero-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.badge-top {
    margin-left: 8px;
    font-size: 11px;
    padding: 1px 7px;
    border: 1px solid var(--accent, #111);
    border-radius: 4px;
    color: var(--accent, #111);
}

.cat-pill {
    font-size: 12px;
    padding: 1px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--fg);
    margin-right: 6px;
}
.cat-pill:hover { border-color: var(--fg); }

.post-subtitle { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    font: inherit;
    font-size: 13.5px;
}
.like-btn:hover { border-color: var(--fg); }
.like-btn.liked { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.heart { font-size: 14px; }
.post-actions .post-tags { margin: 0; }

.related { max-width: 760px; margin-top: 40px; }
.related-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.related-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.related-list li a:hover { border-bottom-color: var(--fg); }

.comment-who { display: flex; flex-direction: column; gap: 1px; }
.avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex: 0 0 30px;
}
.comment-head { display: flex; align-items: center; gap: 10px; }
.reply-link { margin-left: auto; font-size: 12.5px; color: var(--muted); border-bottom: none; }
.reply-link:hover { color: var(--fg); border-bottom-color: var(--fg); }
.reply-hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.comment-children {
    list-style: none;
    margin: 12px 0 0 42px;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--line);
}
.comment-children .comment { border: none; padding: 8px 0; }
.comment-children .comment:first-child { border-top: none; }
.comment-children .avatar { width: 24px; height: 24px; flex: 0 0 24px; font-size: 11px; }

.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.year-tab {
    font-size: 13px;
    padding: 5px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
}
.year-tab:hover { border-color: var(--fg); color: var(--fg); }
.year-tab.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; max-width: 900px; }
.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .15s ease, transform .15s ease;
}
.link-card:hover { border-color: var(--fg); transform: translateY(-1px); }
.link-avatar {
    width: 36px; height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: var(--soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.link-info { display: flex; flex-direction: column; min-width: 0; }
.link-info strong { font-size: 14px; }

.page-single .prose { margin-top: 8px; }
.card-form {
    max-width: 380px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}
.card-form .btn { margin-top: 8px; width: 100%; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 900px) {
    .columns { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .sidebar { border-top: 1px solid var(--line); padding-top: 32px; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 18px; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px 16px; }
    .nav { font-size: 13px; gap: 14px; order: 3; }
    .search { flex: 1 1 100%; order: 4; }
    .search input, .search input:focus { width: 100%; }
    .hero h1 { font-size: 26px; }
    .main { padding: 28px 18px 48px; }
    .post-card { flex-direction: column; gap: 14px; }
    .post-card .cover { flex: none; }
    .post-card .cover img { height: 170px; }
    .post-title { font-size: 19px; }
    .post-title-single { font-size: 24px; }
    .prose { font-size: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ 微语 */
.note-list { display: flex; flex-direction: column; gap: 18px; }
.note {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
}
.note::before {
    content: "”";
    position: absolute;
    top: -6px;
    left: 14px;
    font-size: 34px;
    color: var(--line);
    font-family: Georgia, serif;
    line-height: 1;
}
.note-head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.note-mood { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; }
.note-body { font-size: 15.5px; line-height: 1.85; word-break: break-word; }
.note-count { color: var(--muted); font-size: 12.5px; margin-left: 6px; }

/* 插件：阅读时间 */
.reading-time {
    display: inline-block;
    font-size: 12.5px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 14px;
}

/* ------------------------------------------------ Halo 式多级导航 */
.nav { align-items: center; flex-wrap: wrap; }
.nav-node { position: relative; }
.nav-node .nav-link { display: inline-block; padding: 6px 0; }
.nav-node.has-children > .nav-link::after { content: " ▾"; font-size: 10px; color: var(--muted); }
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 150px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    z-index: 20;
}
.nav-node.has-children:hover .nav-sub,
.nav-node:focus-within .nav-sub { display: block; }
.nav-sub a { display: block; padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.nav-sub a:hover { background: var(--soft); color: var(--fg); }
.nav-sub-inner { margin-left: 10px; padding-left: 8px; border-left: 1px dashed var(--line); }

/* 无限级评论：层级越深缩进越小，防止窄屏挤压 */
.comment-children .comment-children { margin-left: 26px; }
.comment-depth-3 .comment-children,
.comment-depth-4 .comment-children { margin-left: 14px; padding-left: 10px; }
.comment-depth-3 .comment,
.comment-depth-4 .comment { padding: 6px 0; }

/* 页脚菜单 / 附加文字 */
.footer-extra { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.footer-nav { display: flex; gap: 14px; margin-top: 6px; font-size: 12.5px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--fg); }

/* 关于页模板 */
.page-about .about-hero { display: flex; gap: 20px; align-items: center; padding: 6px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.about-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 600; }
.about-hero h1 { margin: 0 0 6px; font-size: 26px; }
.about-hero p { margin: 0 0 8px; }
.about-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.about-recent { margin-top: 36px; }

@media (max-width: 640px) {
    .nav-sub { position: static; box-shadow: none; border: none; padding: 4px 0 8px 14px; }
    .nav-node.has-children:hover .nav-sub { display: block; }
    .about-hero { flex-direction: column; align-items: flex-start; }
}
.linklike { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 12.5px; text-decoration: underline; }

/* 首页卡片布局（主题配置 home_layout=cards） */
.post-list.layout-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-list.layout-cards .post-card { flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.post-list.layout-cards .post-card .cover { flex: none; width: 100%; }
.post-list.layout-cards .post-card .cover img { width: 100%; height: 130px; object-fit: cover; }
@media (max-width: 760px) { .post-list.layout-cards { grid-template-columns: 1fr; } }

/* ============================================================ v4.1 图标 */
.icon { width: 16px; height: 16px; flex: 0 0 auto; display: inline-block; vertical-align: -0.15em; }
.brand-mark { display: inline-flex; align-items: center; }
.brand { display: inline-flex; align-items: center; }

/* ------------------------------------------------------------ 顶部导航 */
.header-inner { height: 68px; gap: 18px; }
.header-nav { flex: 1 1 auto; min-width: 0; }
.nav { gap: 4px; }
.nav-node { position: relative; }
.nav-node .nav-link,
.nav > .nav-node > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}
.nav-node .nav-link:hover,
.nav-node:focus-within > .nav-link { background: var(--soft); color: var(--fg); border-bottom-color: transparent; }
.nav-node.has-children > .nav-link::after { content: none; }
.nav-icon { width: 15px; height: 15px; opacity: .8; }
.nav-chevron { width: 12px; height: 12px; margin-left: 1px; opacity: .45; }
.nav-sub { left: 0; padding: 6px; border-radius: 10px; }
.nav-sub a { display: flex; align-items: center; gap: 7px; border-radius: 7px; }
.nav-sub-icon { width: 13px; height: 13px; opacity: .7; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
}
.nav-toggle .icon { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

.search { position: relative; margin-left: auto; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: inline-flex; }
.search-icon .icon { width: 14px; height: 14px; }
.search input { padding-left: 31px; }

/* ------------------------------------------------------------ 文章图标 */
.meta > a, .meta > span:not(.sep) { display: inline-flex; align-items: center; gap: 4px; }
.meta .icon { width: 13px; height: 13px; opacity: .75; }
.meta .sep { margin: 0 3px; }
.post-tags .tag { display: inline-flex; align-items: center; gap: 4px; }
.post-tags .tag .icon { width: 12px; height: 12px; opacity: .7; }
.like-btn .like-icon { display: inline-flex; }
.like-btn .like-icon .icon { width: 15px; height: 15px; }
.like-btn.liked .like-icon .icon { stroke: var(--bg); fill: currentColor; }
.related .section-title { display: flex; align-items: center; gap: 7px; }
.related .section-title .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------ Typecho 风格评论 */
.comments { max-width: 780px; }
.comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.comments-head .section-title { display: flex; align-items: center; gap: 7px; margin: 0; }
.comments-head .section-title .icon { width: 18px; height: 18px; }
.comments-head .section-title .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    margin-left: 2px;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--muted);
}
.comments-sub { color: var(--muted); font-size: 12.5px; }
.comment-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.comment-empty .icon { width: 22px; height: 22px; opacity: .5; }
.comment-empty p { margin: 0; font-size: 14px; }

.comment-list { border-top: 1px solid var(--line); }
.comment { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment:first-child { border-top: none; }
.comment-main { display: flex; align-items: flex-start; gap: 13px; }
.avatar {
    width: 40px; height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 0 0 1px rgba(128, 128, 128, .15) inset;
}
.comment-content { min-width: 0; flex: 1 1 auto; }
.comment-head { display: flex; align-items: center; gap: 8px; margin: 1px 0 6px; font-size: 13.5px; }
.comment-author { color: var(--fg); font-size: 13.5px; line-height: 1.4; }
.comment-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.comment-reply-to { display: none; }
.reply-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    border-bottom: none;
}
.reply-link .icon { width: 12px; height: 12px; }
.reply-link:hover { color: var(--fg); background: var(--soft); border-bottom-color: transparent; }
.comment-body { font-size: 15px; line-height: 1.8; color: var(--fg); overflow-wrap: anywhere; }
.comment-children {
    list-style: none;
    margin: 14px 0 0 26px;
    padding: 0 0 0 18px;
    border-left: 1px solid var(--line);
}
.comment-children .comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-children .comment:last-child { border-bottom: none; padding-bottom: 0; }
.comment-children .avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 12.5px; }
.comment-children .comment-children { margin-left: 10px; padding-left: 12px; }
.comment-depth-3 .comment-children,
.comment-depth-4 .comment-children { margin-left: 6px; padding-left: 8px; }
.comment-depth-3 .comment,
.comment-depth-4 .comment { padding: 10px 0; }

.comment-form {
    margin-top: 32px;
    padding: 22px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.comment-form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.comment-form h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 16px; }
.comment-form h3 .icon { width: 16px; height: 16px; opacity: .8; }
.comment-form .reply-hint { margin-left: 2px; }
.comment-form .form-row { gap: 12px; }
.comment-editor { margin-top: 12px; }
.editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 13px; color: var(--muted); }
.emoji-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
}
.emoji-toggle .icon { width: 14px; height: 14px; }
.emoji-toggle:hover, .emoji-toggle.active { color: var(--fg); border-color: var(--fg); }
.comment-editor-tools { display: flex; justify-content: flex-end; margin-top: 8px; }
.emoji-dock { position: relative; display: inline-flex; }
.emoji-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3px;
    width: min(340px, calc(100vw - 64px));
    max-height: 220px;
    overflow: auto;
    padding: 8px;
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-sizing: border-box;
    box-shadow: 0 14px 34px color-mix(in srgb, #000 18%, transparent);
}
.emoji-panel[hidden] { display: none; }
.emoji-item {
    padding: 3px 1px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 19px;
    line-height: 1.4;
    cursor: pointer;
}
.emoji-item:hover { background: var(--soft); }
.comment-editor textarea {
    display: block;
    width: 100%;
    min-height: 124px;
    padding: 11px 13px;
    font: inherit;
    font-size: 14px;
    line-height: 1.7;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    resize: vertical;
}
.comment-editor textarea:focus { border-color: var(--fg); }
.comment-submit { gap: 7px; }
.comment-submit .icon { width: 15px; height: 15px; }

/* --------------------------------------------------------------- 页脚 */
.site-footer { margin-top: 56px; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr) minmax(120px, 1fr);
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 28px;
}
.footer-brand { max-width: 440px; }
.footer-logo { display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; }
.footer-logo:hover { border-bottom-color: transparent; opacity: .8; }
.footer-desc { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer-col h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.footer-links a:hover { color: var(--fg); border-bottom-color: transparent; }
.footer-links .icon { width: 14px; height: 14px; opacity: .75; }
.footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}
.footer-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.footer-copy a { color: var(--muted); }
.footer-dot { opacity: .6; }
.footer-extra { margin: 0; text-align: right; font-size: 12px; line-height: 1.7; color: var(--muted); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: minmax(0, 1.6fr) 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; max-width: 620px; }
}

@media (max-width: 720px) {
    .header-inner { position: relative; height: auto; min-height: 62px; padding: 10px 18px; gap: 8px 12px; flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
    .header-nav { display: contents; }
    .nav { display: none; order: 3; flex: 1 0 100%; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 6px; }
    .nav.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 30;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 8px 14px 14px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
    }
    .nav-node .nav-link,
    .nav > .nav-node > .nav-link { width: 100%; padding: 9px 10px; border-radius: 7px; }
    .nav-sub {
        position: static;
        display: block;
        padding: 2px 0 4px 14px;
        margin: 0;
        border: 0;
        border-left: 1px dashed var(--line);
        border-radius: 0;
        box-shadow: none;
    }
    .nav-sub a { padding: 6px 9px; }
    .nav-chevron { margin-left: auto; }
    .search { order: 4; flex: 1 1 100%; margin-left: 0; }
    .search input, .search input:focus { width: 100%; }
    .comments-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .comment-children { margin-left: 12px; padding-left: 10px; }
    .comment-children .comment-children { margin-left: 6px; padding-left: 8px; }
    .comment-form { padding: 16px; }
    .emoji-panel { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 30px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-extra { text-align: left; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { max-width: none; }
    .comment-main { gap: 10px; }
    .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
    .comment-time { display: none; }
    .comment-body { font-size: 14.5px; }
}

.widget h3 { display: flex; align-items: center; gap: 6px; }
.widget h3 .icon { width: 13px; height: 13px; opacity: .65; }

/* ------------------------------------------------------------ 前台账号入口 */
.account-nav { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.account-user, .account-action, .account-login, .account-register {
    display: inline-flex; align-items: center; gap: 5px;
    height: 32px; padding: 0 9px; border-radius: 8px;
    border: 1px solid var(--line); color: var(--muted);
    background: transparent; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.account-user:hover, .account-action:hover, .account-login:hover {
    color: var(--fg); border-color: var(--fg); background: transparent;
}
.account-user .icon, .account-login .icon, .account-action .icon { width: 15px; height: 15px; }
.account-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.account-register { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.account-register:hover { opacity: .85; border-bottom-color: var(--fg); }
.account-action { width: 32px; padding: 0; justify-content: center; }

@media (max-width: 720px) {
    .account-nav { order: 1; margin-left: auto; gap: 4px; }
    .nav-toggle { order: 2; margin-left: 4px; }
    .account-user, .account-login { padding: 0 7px; height: 30px; }
    .account-name { max-width: 64px; }
    .account-register { height: 30px; padding: 0 7px; }
}

/* ------------------------------------------------------------ 前台账号页面 */
.account-page { max-width: 760px; margin: 0 auto; }
.account-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
    padding: 28px;
}
.account-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-avatar {
    width: 58px; height: 58px; border-radius: 50%; flex: none;
    background: var(--fg); color: var(--bg);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
}
.account-head-info { min-width: 0; }
.account-head-info h1 { font-size: 22px; margin: 0 0 4px; line-height: 1.3; }
.account-head-info p { margin: 0; color: var(--muted); font-size: 13px; }
.account-head-links { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.account-stat { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.account-stat strong { display: block; color: var(--fg); font-size: 18px; line-height: 1.2; }
.account-section { padding-top: 22px; }
.account-section h2 { font-size: 15px; margin: 0 0 12px; }
.account-form { display: grid; gap: 12px; }
.account-form label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.account-form input {
    width: 100%; padding: 9px 12px; font: inherit; font-size: 14px;
    color: var(--fg); background: var(--bg);
    border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.account-form input:focus { border-color: var(--fg); }
.account-form .check { display: flex; align-items: center; gap: 7px; color: var(--fg); }
.account-form .check input { width: auto; }
.account-form .btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.account-submit {
    display: inline-flex; align-items: center; justify-content: center;
    height: 38px; padding: 0 18px; border: 1px solid var(--fg); border-radius: 8px;
    background: var(--fg); color: var(--bg); font: inherit; font-size: 14px; cursor: pointer;
}
.account-submit:hover { opacity: .85; }
.account-alert { padding: 10px 13px; border: 1px solid #e3b5ae; border-radius: 8px; color: #a03a2b; background: #fdf3f1; font-size: 13px; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) {
    .account-alert { background: #2a1614; border-color: #6b3a33; color: #e7a99e; }
}
@media (max-width: 640px) {
    .account-card { padding: 20px 16px; }
    .account-head { align-items: flex-start; flex-wrap: wrap; }
    .account-head-links { margin-left: 0; width: 100%; }
    .account-stat { gap: 18px; }
}
.account-role {
    display: inline-flex; align-items: center; margin-left: 6px; vertical-align: middle;
    padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 11px; font-weight: 500; color: var(--muted);
}

@media (max-width: 480px) {
    .account-name { display: none; }
    .account-user { width: 30px; padding: 0; justify-content: center; }
}

/* v4.3 评论账号、楼层、头像 */
.avatar.has-image { padding: 0; overflow: hidden; background: var(--soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.comment-floor {
    display: inline-flex; align-items: center;
    padding: 1px 6px; border-radius: 4px;
    background: var(--soft); border: 1px solid var(--line);
    color: var(--muted); font-size: 11px; line-height: 1.6;
    font-variant-numeric: tabular-nums;
}
.comment-author[href] { border-bottom: 1px dotted color-mix(in srgb, var(--fg) 32%, transparent); }
.comment-author[href]:hover { border-bottom-style: solid; border-bottom-color: var(--fg); }
.comment-identity {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
}
.identity-avatar {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; background: var(--fg); color: var(--bg); font-weight: 600;
}
.identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-identity div { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.comment-identity strong { font-size: 13.5px; }
.comment-identity small { font-size: 11.5px; color: var(--muted); }
.comment-identity small a { border-bottom: 1px solid var(--line); }
.guest-fields { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) { .guest-fields { grid-template-columns: 1fr; } .comment-time { display: inline; } }
.comment-form .form-row label:last-child input { min-width: 0; }

/* v4.3 友链 Logo / 账号头像 */
.link-avatar.has-image { padding: 0; overflow: hidden; background: var(--soft); }
.link-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.sidebar-link { display: inline-flex; align-items: center; gap: 7px; }
.sidebar-link-logo { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; flex: none; }
.account-avatar-img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; display: block; }
.account-avatar.has-image { padding: 0; overflow: hidden; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* v4.4 评论卡片（参考 Robes 主题） */
.comment-list { display: flex; flex-direction: column; gap: 12px; border-top: 0; }
.comment {
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.comment:first-child { border-top: 1px solid var(--line); }
.comment-main { gap: 12px; }
.comment-head { align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 7px; }
.comment-who { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.comment-author { font-size: 14px; font-weight: 650; }
.comment-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-left: auto; color: var(--muted); }
.comment-time { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.comment-floor {
    background: transparent; border: 0; padding: 0;
    color: #9a9a9a; font-size: 11.5px; font-weight: 600;
}
.comment-badge {
    display: inline-flex; align-items: center;
    padding: 0 5px; border-radius: 4px;
    font-size: 10px; line-height: 17px; font-weight: 600;
    background: var(--soft); color: var(--muted);
    letter-spacing: .01em;
}
.comment-badge.site { background: var(--fg); color: var(--bg); }
.comment-badge.editor { border: 1px solid var(--line); color: var(--fg); }
.comment-badge.lv2 { color: #8a6a3b; }
.comment-badge.lv3 { color: #1f6f43; }
.comment-reply-to { color: var(--muted); font-size: 11.5px; }
.comment-body { margin: 0 0 10px; font-size: 14.5px; line-height: 1.75; }
.comment-foot {
    display: flex; align-items: center; gap: 14px;
    margin-top: 4px; padding-top: 9px;
    border-top: 1px dashed var(--line);
    color: var(--muted); font-size: 11.5px;
}
.comment-like {
    appearance: none; border: 0; background: transparent; padding: 0;
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer;
}
.comment-like .icon { width: 13px; height: 13px; }
.comment-like:hover { color: var(--fg); }
.comment-like.liked { color: var(--fg); }
.comment-like.liked .icon { fill: currentColor; }
.comment-like .like-count:empty { display: none; }
.comment-foot .reply-link { margin-left: 0; padding: 0; font-size: 11.5px; background: none; }
.comment-foot .reply-link .icon { width: 13px; height: 13px; }
.comment-platform {
    margin-left: auto;
    display: inline-flex; align-items: center;
    padding: 1px 7px; border-radius: 5px;
    background: var(--soft); color: var(--muted);
    font-size: 10.5px; white-space: nowrap;
}
.comment-children {
    margin: 12px 0 0 52px;
    padding: 0;
    border-left: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.comment-children .comment { padding: 13px 15px; background: var(--soft); }
.comment-children .comment:last-child { border-bottom: 1px solid var(--line); }
.comment-children .comment-children { margin-left: 28px; }
.comment-children .avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
.comment-children .comment-body { font-size: 13.5px; }
.comment-children .comment-foot { padding-top: 7px; }
.comment-form { border-radius: 12px; }
.comment-form .form-actions { gap: 10px; }
.ctrl-hint { color: var(--muted); }
@media (max-width: 640px) {
    .comment { padding: 14px; }
    .comment-children { margin-left: 14px; }
    .comment-children .comment-children { margin-left: 10px; }
    .comment-platform { display: none; }
    .comment-time { display: inline; }
    .comment-foot { gap: 12px; }
    .ctrl-hint { display: none; }
}
.comment .avatar { position: relative; }
.comment .avatar img { position: absolute; inset: 0; }

/* v4.5 评论：Typecho 默认风格 */
.comments { margin-top: 42px; }
.comments-head { margin-bottom: 6px; }
.comment-list { display: block; border-top: 1px solid var(--line); }
.comment {
    padding: 20px 0 18px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}
.comment:first-child { border-top: 0; }
.comment-main { display: flex; align-items: flex-start; gap: 14px; }
.comment .avatar { width: 42px; height: 42px; flex: 0 0 42px; font-size: 16px; }
.comment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; }
.comment-who { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.comment-author { font-size: 13.5px; font-weight: 650; line-height: 1.5; }
.comment-author-tag {
    display: inline-flex; align-items: center;
    padding: 0 5px; border-radius: 3px;
    background: var(--soft); color: var(--muted);
    font-size: 10px; line-height: 17px; font-weight: 500;
}
.comment-reply-to { color: var(--muted); font-size: 12.5px; }
.comment-reply-to a { color: var(--fg); }
.comment-time-line { display: flex; align-items: center; gap: 8px; margin: 3px 0 7px; }
.comment-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.comment-floor { color: #aaa; font-size: 11px; font-weight: 500; }
.comment-body { margin: 0; font-size: 14.5px; line-height: 1.8; }
.comment-foot, .comment-platform, .comment-like, .comment-badge { display: none; }
.comment-list .reply-link {
    flex: none; margin-left: auto; padding: 1px 3px;
    font-size: 12px; color: var(--muted);
    display: inline-flex; align-items: center; gap: 4px;
}
.comment-list .reply-link .icon { width: 13px; height: 13px; }
.comment-list .reply-link:hover { color: var(--fg); background: none; }
.comment-children {
    display: block;
    margin: 14px 0 0 56px;
    padding: 0;
    border: 0;
}
.comment-children .comment {
    padding: 12px 0 10px;
    background: transparent;
    border: 0;
    border-top: 1px dashed var(--line);
}
.comment-children .comment:last-child { border-bottom: 0; padding-bottom: 0; }
.comment-children .comment-children { margin-left: 34px; }
.comment-children .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
.comment-children .comment-body { font-size: 13.5px; }
.comment-children .comment-author { font-size: 13px; }

.comment-form {
    margin-top: 30px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.comment-form-head h3 { font-size: 19px; margin: 0 0 14px; }
.comment-form-head { margin-bottom: 0; }
.comment-editor { margin-top: 0; }
.comment-form textarea { min-height: 150px; border-radius: 6px; }
.guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.form-actions { margin-top: 16px; }
.comment-submit { border-radius: 4px; }
.comment-identity { margin-top: 14px; }
@media (max-width: 720px) {
    .comment { padding: 16px 0; }
    .comment .avatar { width: 36px; height: 36px; flex-basis: 36px; }
    .comment-children { margin-left: 24px; }
    .comment-children .comment-children { margin-left: 16px; }
    .guest-fields { grid-template-columns: 1fr; }
}

/* v4.5.1 评论细节：楼层靠作者、@父回复换行、子评论单列向下 */
.comment-who { align-items: baseline; gap: 6px; }
.comment-floor { color: #9b9b9b; font-size: 11px; font-weight: 500; }
.comment-reply-line { margin: -1px 0 4px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.comment-reply-line a { color: var(--fg); }
.comment-time-line { margin: 2px 0 7px; }
.comment-children { display: block; list-style: none; }
.comment-children > .comment { display: block; width: 100%; }
.comment-children .comment-children { margin-left: 0; }
@media (max-width: 720px) {
    .comment-children { margin-left: 20px; }
    .comment-children .comment-children { margin-left: 0; }
}

/* 子、孙评论统一同一列，不再逐层右移 */
.comment-children-flat { margin-left: 56px; padding-left: 0; }
.comment-children-flat > .comment { margin-left: 0; padding-left: 0; }
@media (max-width: 720px) { .comment-children-flat { margin-left: 20px; } }

 /* v4.6.1 时间紧跟作者，回复@与正文相邻 */
.comment-time-line { margin: 1px 0 6px; }
.comment-reply-line { margin: 0 0 5px; }
.comment-body { margin-top: 0; }

/* Markdown 表格 */
.prose .md-table-wrap { margin: 1.4em 0; overflow-x: auto; }
.prose .md-table-wrap table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.prose .md-table-wrap th, .prose .md-table-wrap td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .md-table-wrap th { background: rgba(128,128,128,.08); font-weight: 600; }
.prose .task-list { padding-left: 1.2em; }
.prose .task-list-item { list-style: none; margin-left: -1.2em; }
.prose .task-list-item input { margin: 0 7px 0 0; vertical-align: -2px; }

/* v4.8.1 评论：回复 @ 收进作者行，做成可识别的小标签 */
.comment-reply-inline {
    display: inline-flex; align-items: baseline; gap: 2px;
    padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--soft); color: var(--muted); font-size: 11px; line-height: 1.7;
}
.comment-reply-inline a { color: var(--fg); font-weight: 500; border-bottom: 0; }
@media (max-width: 720px) {
    .comment-reply-inline { font-size: 10.5px; padding: 1px 6px; }
}
.comment-who { flex-direction: row; flex-wrap: wrap; }

/* v4.9 微语：作者、配图、点赞、评论 */
.note-author-head { flex-wrap: wrap; gap: 8px; }
.note-avatar { flex: 0 0 auto; }
.note-author { color: var(--text); font-size: 13.5px; }
.note-image-wrap { margin-top: 12px; border-radius: calc(var(--radius) - 4px); overflow: hidden; border: 1px solid var(--line); }
.note-image { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.note-actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.note-like-btn, .note-comment-link, .note-comment-like, .note-comment-reply-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-decoration: none; }
.note-like-btn svg, .note-comment-like svg, .note-comment-link svg { width: 15px; height: 15px; }
.note-like-btn.liked, .note-comment-like.liked { color: #e0536b; }
.note-like-btn.liked svg, .note-comment-like.liked svg { fill: currentColor; }
.note-comments { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.note-comments-empty { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; }
.note-comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.note-comment { display: flex; gap: 10px; }
.note-comment-avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: 12px; }
.note-comment-main { min-width: 0; flex: 1; }
.note-comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.note-comment-author { color: var(--text); font-size: 12.5px; }
.note-comment-reply { color: var(--muted); }
.note-comment-reply a { color: var(--accent); text-decoration: none; }
.note-comment-head time { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.note-comment-body { margin-top: 3px; font-size: 13.5px; line-height: 1.75; word-break: break-word; }
.note-comment-foot { display: flex; align-items: center; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.note-comment-form { background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--line); border-radius: calc(var(--radius) - 6px); padding: 10px; }
.note-comment-form textarea { width: 100%; box-sizing: border-box; resize: vertical; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; }
.note-comment-guest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.note-comment-guest input { min-width: 0; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 7px; padding: 6px 8px; font: inherit; font-size: 12.5px; }
.note-comment-submit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.note-reply-hint { margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.note-reply-hint strong { color: var(--accent); }
@media (max-width: 640px) {
    .note-comment-guest { grid-template-columns: 1fr; }
    .note-comment-head time { margin-left: 0; width: 100%; }
}

/* v4.9.1 微语：评论折叠、图片尺寸与灯箱 */
.note-comment-link::after { content: "▾"; font-size: 10px; opacity: .65; transition: transform .2s ease; }
.note-comment-link[aria-expanded="true"]::after { transform: rotate(180deg); }
.note-image-wrap { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--text) 3%, transparent); }
.note-image { width: auto; max-width: 100%; max-height: 440px; object-fit: contain; cursor: zoom-in; }
body.note-lightbox-open { overflow: hidden; }
.note-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8,10,14,.9); backdrop-filter: blur(6px); }
.note-lightbox[hidden] { display: none; }
.note-lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.note-lightbox-close { position: absolute; top: 18px; right: 22px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 640px) { .note-image { max-height: 320px; } .note-lightbox { padding: 12px; } .note-lightbox img { max-height: 80vh; } }
.note-image-wrap { width: fit-content; max-width: 100%; margin: 12px 0 0; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.note-image { border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); }
.note-image { max-width: min(100%, 560px); max-height: 380px; margin-right: auto; }


/* v4.10 友链分类、申请与评论 */
.link-avatar.has-image { overflow: hidden; padding: 0; background: transparent; }
.link-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-group { margin-bottom: 26px; }
.link-group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; letter-spacing: .02em; }
.link-group-title span { color: var(--muted); font-size: 11px; font-weight: 400; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.link-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.link-page-head .link-apply-open { flex: 0 0 auto; margin-bottom: 4px; }
body.link-apply-open { overflow: hidden; }
.link-apply-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.link-apply-modal[hidden] { display: none; }
.link-apply-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .42); backdrop-filter: blur(3px); }
.link-apply-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-sizing: border-box; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: 0 24px 80px rgba(0, 0, 0, .24); }
.link-apply-close { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.link-apply-close:hover { color: var(--fg); border-color: var(--fg); }
.link-apply-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.link-apply-head h2 { margin: 0 0 4px; font-size: 18px; }
.link-apply-head p { margin: 0; }
.link-apply-form { display: flex; flex-direction: column; gap: 10px; }
.link-apply-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-apply-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.link-apply-form input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; }
.link-apply-url .input-with-btn { display: flex; gap: 6px; }
.link-apply-url .input-with-btn input { flex: 1; min-width: 0; }
.link-apply-url .btn-ghost { flex: 0 0 auto; white-space: nowrap; }
.link-apply-hint { margin: 0; }
.link-apply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link-comments { max-width: 900px; padding-top: 26px; border-top: 1px solid var(--line); }
.link-comments-head { margin-bottom: 14px; }
.link-comments-head h2 { margin: 0 0 4px; font-size: 18px; }
.link-comments-head h2 span { color: var(--muted); font-size: 11px; font-weight: 400; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: 5px; }
.link-comments-head p { margin: 0; }
@media (max-width: 640px) {
    .link-page-head { align-items: flex-start; flex-direction: column; }
    .link-page-head .link-apply-open { margin-bottom: 0; }
    .link-apply-modal { align-items: flex-end; padding: 0; }
    .link-apply-dialog { width: 100%; max-height: 88vh; border-radius: var(--radius) var(--radius) 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
    .link-apply-form .field-row { grid-template-columns: 1fr; }
    .link-apply-actions { align-items: stretch; flex-direction: column; }
    .link-apply-actions .btn { width: 100%; }
}

/* v4.10.1 友链申请折叠 + 系统评论 */
.link-apply-card { padding: 0; background: transparent; overflow: hidden; }
.link-apply-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border: 0; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.link-apply-toggle > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.link-apply-toggle strong { font-size: 15px; }
.link-apply-toggle small { color: var(--muted); font-size: 12px; }
.link-apply-toggle-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
.link-apply-toggle:hover .link-apply-toggle-label { color: var(--text); }
.link-apply-body { padding: 16px 18px 18px; border-top: 1px dashed var(--line); }
.link-comments .comment-list { margin-top: 6px; }
.link-comments .comment-form { margin-top: 18px; }
@media (max-width: 640px) {
    .link-apply-toggle { padding: 14px; }
}

/* v4.10.2 正文图片灯箱 + 友链描述截断 */
.link-info .small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.prose img.is-zoomable { cursor: zoom-in; }
body.site-lightbox-open { overflow: hidden; }
.site-lightbox { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8,10,14,.92); backdrop-filter: blur(6px); }
.site-lightbox[hidden] { display: none; }
.site-lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.site-lightbox-close { position: absolute; top: 18px; right: 22px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 640px) { .site-lightbox { padding: 12px; } .site-lightbox img { max-height: 80vh; } }

/* v4.11 相册 */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 22px; }
.album-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); overflow: hidden; background: var(--panel); color: var(--fg); }
.album-card:hover { border-color: var(--accent); opacity: 1; }
.album-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.album-card:hover .album-cover img { transform: scale(1.025); }
.album-cover-letter { font-size: 32px; font-weight: 600; color: var(--muted); }
.album-count { position: absolute; right: 9px; bottom: 9px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; backdrop-filter: blur(4px); }
.album-card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 13px; }
.album-card-body strong { font-size: 15px; }
.album-desc { color: var(--muted); font-size: 12.5px; line-height: 1.55; display: block; }
.album-detail-head { padding: 6px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.album-back { color: var(--muted); font-size: 12.5px; display: inline-flex; margin-bottom: 10px; }
.album-back:hover { color: var(--fg); }
.album-detail-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.album-detail-desc { margin: 0 0 8px; color: var(--muted); line-height: 1.8; }
.album-detail-meta { color: var(--muted); font-size: 12px; }
.album-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.album-photo { margin: 0; position: relative; overflow: hidden; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); cursor: zoom-in; break-inside: avoid; }
.album-photo img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .35s ease, opacity .2s ease; }
.album-photo:hover img { transform: scale(1.025); }
.album-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 11px 8px; color: #fff; font-size: 11.5px; background: linear-gradient(transparent, rgba(0,0,0,.58)); pointer-events: none; }
.album-lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 34px 74px 46px; background: rgba(8,8,8,.9); backdrop-filter: blur(10px); }
.album-lightbox[hidden] { display: none; }
.album-lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.album-lightbox-close { position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.album-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 54px; border: 0; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.album-lightbox-nav.prev { left: 16px; }
.album-lightbox-nav.next { right: 16px; }
.album-lightbox.is-single .album-lightbox-nav { display: none; }
.album-lightbox-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.72); font-size: 12px; white-space: nowrap; }
body.album-lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
    .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .album-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .album-detail-head h1 { font-size: 23px; }
    .album-lightbox { padding: 46px 10px 54px; }
    .album-lightbox img { max-width: 96vw; max-height: 76vh; }
    .album-lightbox-nav { top: auto; bottom: 10px; transform: none; width: 40px; height: 38px; background: rgba(255,255,255,.14); }
    .album-lightbox-bar { bottom: 15px; }
}

/* v4.11 微语多图：左对齐网格，不居中 */
.note-gallery { display: grid; gap: 6px; margin: 12px 0 0; max-width: 560px; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: start; }
.note-gallery.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note-gallery.is-one { grid-template-columns: minmax(0, 1fr); }
.note-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border: 1px solid var(--line); border-radius: calc(var(--radius) - 5px); cursor: zoom-in; transition: transform .2s ease; }
.note-gallery img:hover { transform: scale(1.015); }
@media (max-width: 640px) {
    .note-gallery { max-width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .note-gallery.is-one { grid-template-columns: minmax(0, 1fr); }
}

/* 个人中心：我的评论、折叠设置、头像 */
.account-comments { padding: 18px 0 0; border-top: 1px solid var(--line); }
.account-comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.account-comments-head h2 { font-size: 15px; margin: 0; }
.account-comments-head h2 span { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 3px; }
.account-comments-head small { color: var(--muted); font-size: 12px; }
.account-comment-list { display: grid; gap: 10px; max-height: 360px; overflow: auto; padding-right: 4px; }
.account-comment { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 88%, var(--fg) 12%); }
.account-comment-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.account-comment-top time { color: var(--muted); font-size: 12px; }
.comment-state { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.comment-state.is-approved { color: var(--fg); border-color: var(--fg); }
.comment-state.is-pending { color: #9a6419; border-color: #d8b06a; background: #fdf8ec; }
.comment-state.is-spam { color: #a54a42; border-color: #dfb0aa; }
.account-comment-text { margin: 0 0 7px; font-size: 14px; line-height: 1.65; word-break: break-word; }
.account-comment-source { color: var(--muted); font-size: 12px; }
.account-comment-source a { color: var(--fg); }
.account-comments-empty { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; }

.account-setting { border-bottom: 1px solid var(--line); }
.account-setting:last-of-type { border-bottom: 0; }
.account-setting > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; }
.account-setting > summary::-webkit-details-marker { display: none; }
.account-setting > summary span:first-child { display: grid; gap: 3px; }
.account-setting > summary strong { font-size: 15px; font-weight: 600; }
.account-setting > summary small { color: var(--muted); font-size: 12px; }
.account-setting-chevron { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; flex: none; margin-right: 4px; }
.account-setting[open] .account-setting-chevron { transform: rotate(225deg); }
.account-setting-body { padding: 0 0 20px; }
.account-avatar-sm { width: 48px; height: 48px; font-size: 18px; }
.avatar-edit-row { display: flex; align-items: center; gap: 14px; }
.avatar-edit-main { min-width: 0; display: grid; gap: 6px; }
.avatar-edit-main p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.avatar-file-label { display: inline-flex; align-items: center; justify-content: center; width: fit-content; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; }
.avatar-file-label:hover { border-color: var(--fg); }
 .avatar-edit-main input[type="file"] { display: none; }
@media (max-width: 640px) {
    .account-comments-head { align-items: flex-start; flex-direction: column; gap: 3px; }
    .account-comment-list { max-height: 420px; }
    .account-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
    .account-stat strong { font-size: 16px; }
}
@media (prefers-color-scheme: dark) {
    .comment-state.is-pending { background: #2a2317; border-color: #6b5730; color: #d9bd83; }
    .comment-state.is-spam { border-color: #6b3a33; color: #e7a99e; }
}

/* 评论区翻页 */
.comment-pagination { margin-top: 18px; }
.comment-pagination .pagination { margin-top: 0; padding-top: 18px; justify-content: center; }

/* 代码块高亮（v4.11.16） */
.code-block { margin: 1.5em 0; border: 1px solid var(--line); border-radius: 10px; background: #f7f8fa; overflow: hidden; }
.code-block-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 65%, #fff); }
.code-block-lang { font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.code-copy { border: 0; background: transparent; color: var(--muted); font-size: 11.5px; cursor: pointer; padding: 3px 7px; border-radius: 5px; }
.code-copy:hover { background: var(--soft); color: var(--fg); }
.prose .code-block pre { margin: 0; border: 0; border-radius: 0; padding: 14px 16px; background: transparent; overflow-x: auto; }
.code-block code { background: none; padding: 0; font-size: 13px; line-height: 1.75; white-space: pre; }
.tok-comment { color: #8a8f98; font-style: italic; }
.tok-string { color: #0f766e; }
.tok-number { color: #b45309; }
.tok-keyword { color: #7c3aed; font-weight: 600; }
.tok-variable { color: #1d4ed8; }
.tok-function { color: #0369a1; }
.tok-property { color: #0f766e; }
.tok-tag { color: #be123c; }
.tok-attr { color: #a16207; }
.tok-entity { color: #b45309; }
.tok-punct { color: #6b7280; }

/* 导航自定义图标（v4.11.16） */
.nav-icon-img { width: 16px; height: 16px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; display: inline-block; }
.nav-sub-icon.nav-icon-img { width: 14px; height: 14px; }
