/* MimoTheme auto-bundled core CSS */

/* === style.css === */
/* ========================================================================
   MimoTheme Style - Third 双栏风格
   ======================================================================== */

/* ---------- 变量 ---------- */
:root {
    --color-primary: #0969da;
    --color-primary-dark: #0550ae;
    --color-text: #333;
    --color-text-light: #666;
    --color-link: var(--color-primary);
    --color-link-hover: var(--color-primary-dark);
    --color-border: #e5e5e5;
    --color-bg: #f5f5f5;
    --color-bg-white: #fff;
    --color-bg-code: #f8f8f8;
    --color-header-bg: #0f1011;
    --color-header-text: #fff;

    --radius: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;

    --container-width: 1200px;
    --sidebar-width: 280px;
    --transition: 0.2s ease;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.8em; font-weight: 600; line-height: 1.4; }
p { margin: 0 0 1em; }

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-link-hover); }

img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { padding-left: 1.5em; }
li { margin: 0.3em 0; }

blockquote {
    display: block;
    margin: 1em 0;
    padding: 12px 16px;
    border: 1px solid rgba(64, 150, 255, 0.28);
    border-radius: 6px;
    color: #4a525c;
    background-color: rgba(64, 150, 255, 0.10);
}
blockquote >:first-child { margin-top: 0; }
blockquote >:last-child { margin-bottom: 0; }

code, pre {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--color-bg-code);
}
code { padding: 2px 6px; border-radius: 3px; }
pre {
    padding: 16px;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    line-height: 1.6;
}
pre code { padding: 0; background: none; }

table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
th, td { padding: 8px 12px; border: 1px solid var(--color-border); text-align: left; }
th { background: var(--c-panel-2); font-weight: 600; }
:root.dark th { background: var(--c-panel-3); }

hr { border: 0; border-top: 1px solid var(--color-border); margin: 1.5em 0; }

/* ---------- 布局工具 ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only, .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 8px 16px;
    background: var(--color-primary);
    color: #fff;
}
.skip-link:focus { left: 8px; }

/* ---------- 站点头部（深色） ---------- */
.site-header {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.site-brand .site-title {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.site-brand .site-title a { color: #fff; }
.site-brand .site-title a:hover { color: #3498db; }
.site-brand .site-desc {
    display: none;
}
.logo img { max-height: 32px; }

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.main-nav li a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: all var(--transition);
}
.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.main-nav li a:hover {
    color: #fff;
}
.main-nav li a:hover::after {
    width: 60%;
}
.main-nav li.current a {
    color: #fff;
}
.main-nav li.current a::after {
    width: 60%;
    background: #3498db;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    /* 触控目标 44x44（WCAG 2.5.8 下限 24px，这里是舒适值） */
    width: 44px; height: 44px;
    padding: 0 10px;
    margin-right: -10px;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle .bar {
    display: block;
    width: 100%; height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* Hero 横幅 */
.hero-banner {
    padding: 80px 0;
    text-align: center;
    background: url('https://picsum.photos/id/180/1200/400') center/cover no-repeat;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-title { font-size: 2.2em; margin-bottom: 0.3em; font-weight: 700; letter-spacing: 1px; }
.hero-desc { font-size: 1em; opacity: 0.95; margin: 0; letter-spacing: 0.5px; }

/* ---------- 粘性页脚（短内容时 footer 贴底） ---------- */
.site { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- 主体与布局（双栏） ---------- */
.main {
    padding: 30px 0;
    flex: 1;
}
.main .container {
    display: flex;
    gap: 24px;
}

/* 右侧边栏 */
.sidebar {
    flex: 0 0 var(--sidebar-width);
    max-width: var(--sidebar-width);
    order: 2;
}
.sidebar .widget {
    background: var(--color-bg-white);
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: none;
}
.sidebar .widget:last-child { margin-bottom: 0; }
/* 桌面端侧栏跟随滚动：正文比侧栏长很多时，右侧不再留大片空白 */
@media (min-width: 901px) {
    .sidebar { position: sticky; top: 72px; align-self: flex-start; }
}

.widget-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}
.widget-list { list-style: none; padding: 0; margin: 0; }
/* 名称与篇数同排（Typecho 把 (N) 输出在 <a> 外面，用 flex 让它们对齐一行） */
.widget-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    font-size: 13.5px;
    border-bottom: 0;
    color: #5f6875;
}
.widget-list li:last-child { border-bottom: 0; }
/* 链接整行可点，上下内边距把触控高度撑到 28px+（原来 17px） */
.widget-list li a {
    display: inline-block;
    padding: 6px 0;
    color: #555;
}
.widget-list li a:hover { color: var(--color-primary); }

.tagcloud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* D 方案：固定 3 列等宽，每列 76px，无空隙 */
    gap: 6px;
}
/* grid 下 tag-link 自动拉伸填满 cell；居中文字让长标签也好看 */
.tagcloud > .tag-link {
    justify-self: stretch;
    text-align: center;
}
.tagcloud .tag-link {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px !important;
    background: #f0f0f0;
    border-radius: 3px;
    color: #666;
    transition: filter .2s ease, transform .15s ease;
}
/* hover 时：当前颜色加深 + 轻微下沉 (filter 不影响 layout) */
.tagcloud .tag-link:hover {
    filter: brightness(0.88) saturate(1.4);
    transform: translateY(-1px);
}
.tagcloud .tag-link:active {
    filter: brightness(0.78) saturate(1.5);
    transform: translateY(0);
}

/* ====== 标签云热度分级（5 档） ====== */
/* L1: 1-4 篇 (默认灰底，最小字) */
.tagcloud .tag-link.tag-lv1 { background: #f0f0f0; color: #5b6068; font-size: 11px !important; }
/* L2: 5-9 篇 (浅米色) */
.tagcloud .tag-link.tag-lv2 { background: #f3efe7; color: #6a5d4a; font-size: 12px !important; }
/* L3: 10-19 篇 (浅黄/琥珀) */
.tagcloud .tag-link.tag-lv3 { background: #f0ead2; color: #6e5b1f; font-size: 12px !important; }
/* L4: 20-49 篇 (浅蓝) */
.tagcloud .tag-link.tag-lv4 { background: #e0ecf5; color: #2a5d8a; font-size: 13px !important; }
/* L5: 50+ 篇 (深蓝 + 白字，最显眼) */
.tagcloud .tag-link.tag-lv5 { background: #2a5d8a; color: #fff; font-size: 14px !important; font-weight: 500; }
/* hover 优先级高于 level 颜色 */
.tagcloud .tag-link.tag-lv5:hover { background: var(--color-primary); }
/* L6: 100+ 篇 - 极热门，纯黑底白字 + 更大字号 */
.tagcloud .tag-link.tag-lv6 { background: #1a1a1a; color: #fff; font-size: 15px !important; font-weight: 600; padding: 5px 12px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.tagcloud .tag-link.tag-lv6:hover { background: var(--color-primary); box-shadow: 0 2px 6px rgba(0,0,0,0.25); }

/* 右侧内容区 */
.content-area {
    flex: 1;
    min-width: 0;
    order: 1;
}

/* ---------- 文章列表 ---------- */
.post-list { display: flex; flex-direction: column; gap: 12px; }

.post-item {
    background: var(--color-bg-white);
    border: 1px solid #e9e9e9;
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: none;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.post-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); border-color: #d8dde3; }

.post-list .post-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: 600;
    text-wrap: balance;
}
.post-list .post-title a { color: var(--color-text); }
.post-list .post-title a:hover { color: var(--color-primary); }

.post-meta {
    font-size: 12.5px;
    color: #656d76;
    margin-bottom: 8px;
}
/* 触控目标：meta 里的链接补上下内边距，避免 17px 高的细条 */
.post-meta a,
.post-meta .category a {
    display: inline-block;
    padding: 3px 2px;
    margin: -3px -2px;
}
.post-meta .sep { margin: 0 6px; }
/* a11y 2026-11-22: meta 里的分类链接原本只靠颜色区分（axe link-in-text-block ×19），补下划线 */
.post-meta a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
/* a11y 2026-11-22: 侧边栏分类/标签链接同样只靠颜色区分，补下划线 */
.widget-list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.post-excerpt {
    color: #59636e;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    font-size: 13.5px;
    color: var(--color-primary);
    font-weight: 500;
    padding: 6px 0;
}
.read-more:hover { color: var(--color-primary-dark); }

/* ---------- 单篇文章 ---------- */
.single-post .post-title,
.single-page .post-title {
    font-size: 30px;
    line-height: 1.45;
    margin-bottom: 0.5em;
}
.post-header { margin-bottom: 1.2em; }
/* 正文列与标题、元信息对齐同一列宽 */
.single-post .post-header,
.single-page .post-header {
    max-width: 46em;
    margin-left: auto;
    margin-right: auto;
}


/* ---- 文章正文：GitHub Primer 风格 ---- */
.post-content {
    font-size: 16px;
    line-height: 1.75;
    max-width: 46em;
    margin-left: auto;
    margin-right: auto;
    color: #1f2328;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
.post-content h1 {
    font-size: 2em;
    font-weight: 600;
    line-height: 1.25;
    margin: 1.5rem 0 0.6rem;
    color: #1f2328;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #d1d9e0;
}
.post-content h2 {
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.35;
    margin: 1.8rem 0 0.6rem;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #d1d9e0;
    color: #1f2328;
}
.post-content h3 {
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.5rem 0 0.5rem;
    color: #1f2328;
}
.post-content h4 { font-size: 1em; font-weight: 600; margin: 1.2rem 0 0.4rem; color: #1f2328; }
.post-content h5 { font-size: 0.875em; font-weight: 600; margin: 1rem 0 0.4rem; color: #1f2328; }
.post-content h6 { font-size: 0.85em; font-weight: 600; margin: 1rem 0 0.4rem; color: #656d76; }
.post-content p { margin: 0 0 16px; }
.post-content img {
    border-radius: 6px;
    margin: 0;
    max-width: 100%;
    height: auto;
    border: 1px solid #d1d9e0;
}
.post-content a {
    color: #0969da;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.post-content a:hover { text-decoration: underline; }
.post-content strong { color: #1f2328; font-weight: 600; }
.post-content em { color: #1f2328; }
.post-content code {
    display: inline;
    border-radius: 6px;
    margin: 0;
    padding: 0.2em 0.4em;
    font-size: 85%;
    color: #1f2328;
    background-color: rgba(175, 184, 193, 0.2);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.post-content pre {
    display: block;
    border-radius: 6px;
    background-color: #f6f8fa;
    padding: 16px;
    font-size: 85%;
    line-height: 1.45;
    overflow-x: auto;
    margin: 0 0 16px;
    color: #1f2328;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    border: 1px solid #d1d9e0;
}
.post-content pre code {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    color: #1f2328;
    font-size: 100%;
}
.post-content hr {
    height: 0.25em;
    margin: 24px 0;
    background-color: #d1d9e0;
    border: 0;
    padding: 0;
}
.post-content blockquote {
    display: block;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid rgba(64, 150, 255, 0.28);
    border-radius: 6px;
    color: #4a525c;
    background-color: rgba(64, 150, 255, 0.10);
}
.post-content blockquote >:first-child { margin-top: 0; }
.post-content blockquote >:last-child { margin-bottom: 0; }
.post-content mark {
    padding: 0.1em 0.4em;
    background-color: #fff8c5;
    border-radius: 0;
    color: #1f2328;
}
.post-content del, .post-content s { color: #656d76; }
.post-content ul { padding-left: 2em; margin-top: 0; margin-bottom: 16px; }
.post-content ul > li { margin-top: 0.25em; }
.post-content ul > li + li { margin-top: 0.25em; }
.post-content ol { padding-left: 2em; margin-top: 0; margin-bottom: 16px; }
.post-content ol > li { margin-top: 0.25em; }
.post-content ol > li + li { margin-top: 0.25em; }
.post-content li > ul, .post-content li > ol { margin-top: 0.25em; margin-bottom: 0; }
.post-content table {
    width: 100%;
    max-width: 65em;
    margin: 1em auto;
    border-collapse: collapse;
    empty-cells: show;
    border: 1px solid #d1d9e0;
    font-size: 14px;
}
.post-content table tr { border-top: none; }
.post-content table tr:nth-child(2n) { background-color: #f6f8fa; }
.post-content table th {
    padding: 8px 12px;
    font-weight: 600;
    text-align: center;
    background: transparent;
    color: #1f2328;
    border: 1px solid #d1d9e0;
    font-size: 13px;
}
.post-content td {
    padding: 8px 12px;
    color: #1f2328;
    border: 1px solid #d1d9e0;
    text-align: center;
}
.post-content table tr:hover { background-color: rgba(115, 209, 61, 0.06); }

.post-footer {
    margin-top: 1.5em;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.post-tags a {
    display: inline-block;
    padding: 0 7px;
    margin: 0 4px 4px 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 22px;
    background-color: #ddf4ff;
    color: #0969da;
    border-radius: 2em;
    border: 1px solid rgba(84, 174, 255, 0.4);
    transition: 0.15s ease;
}
.post-tags a:hover {
    background-color: #0969da;
    color: #ffffff;
    border-color: #0969da;
}
.post-tags a:hover { background: var(--color-primary); color: #fff; }

/* 上一篇/下一篇 */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 1.5em 0;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.post-nav a { color: #666; }
.post-nav a:hover { color: var(--color-primary); }

/* 作者信息卡 */
.author-box {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    margin: 1.5em 0;
    background: #f9f9f9;
    border-radius: var(--radius);
}
.author-box img { border-radius: 50%; }
.author-name { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.author-desc { margin: 0; font-size: 13px; color: #656d76; }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
}
.pagination li { list-style: none; }
.pagination a, .pagination span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    text-align: center;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 13px;
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- 归档页 ---------- */
.archive-header {
    margin-bottom: 1.5em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}
.archive-title { font-size: 18px; margin: 0; }
.archive-desc { color: #656d76; margin: 4px 0 0; font-size: 13px; }

/* ---------- 评论 ---------- */
.comments {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
}
.comments-title { font-size: 16px; margin-bottom: 1em; }

.comment-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.comment-list .comment-body {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.comment-list .comment-meta { font-size: 12px; color: #656d76; margin-bottom: 4px; }
.comment-list .comment-author { font-weight: 600; color: var(--color-text); }
.comment-list .comment-content { margin: 8px 0; font-size: 14px; }
.comment-children { list-style: none; padding-left: 24px; margin-top: 8px; border-left: 2px solid #eee; }

.respond { margin-top: 1.5em; }
.respond-title { font-size: 16px; margin-bottom: 1em; }
.cancel-comment-reply { font-size: 12px; margin-left: 10px; color: #656d76; }

.comment-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.comment-field { display: flex; flex-direction: column; margin-bottom: 10px; }
.comment-field label { font-size: 12px; margin-bottom: 4px; color: #656d76; }
.comment-field label.required::after { content: " *"; color: #e74c3c; }
.text, .textarea {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--transition);
}
.text:focus, .textarea:focus { outline: none; border-color: var(--color-primary); }
.textarea { resize: vertical; min-height: 100px; }
.comment-submit { margin-top: 8px; }
.submit {
    padding: 8px 24px;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition);
}
.submit:hover { background: var(--color-primary-dark); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 60px 0; }
.error-code { font-size: 72px; font-weight: 800; color: var(--color-primary); line-height: 1; }
.error-title { font-size: 20px; margin-top: 12px; }
.error-text { color: #656d76; font-size: 14px; }
.error-search { max-width: 400px; margin: 20px auto; display: flex; gap: 8px; }
.error-home { margin-top: 20px; }

.search-form { display: flex; gap: 8px; }
.search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
}
.search-submit {
    padding: 8px 18px;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
}

/* ---------- 提示框短代码 ---------- */
.note {
    padding: 12px 16px;
    margin: 1em 0;
    border-radius: var(--radius);
    border-left: 4px solid;
    font-size: 14px;
}
.note-info    { background: #e8f4f8; border-color: #3498db; }
.note-warning { background: #fdf6ec; border-color: #e6a23c; }
.note-error   { background: #fef0f0; border-color: #f56c6c; }
.note-success { background: #f0f9eb; border-color: #67c23a; }

/* ---------- 页脚（深色） ---------- */
.site-footer {
    margin-top: 30px;
    padding: 24px 0;
    background: var(--color-header-bg);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-info p { margin: 2px 0; }
.footer-info a {
    color: rgba(255,255,255,0.9);
    /* a11y 2026-11-22: 页脚链接与周围文字只相差 1.62:1，加下划线不靠颜色区分 */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.footer-info a:hover { color: #fff; }
.footer-info .sep { margin: 0 6px; opacity: 0.4; }

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }
/* a11y 2026-11-25: coss.css 在暗色下把 --color-primary 改成 #f5f5f5（近白），
   凡是「primary 底 + 白字/白图标」的控件在暗色里几乎看不见，统一改深色字 */
:root.dark .back-to-top,
:root.dark .submit,
:root.dark .search-submit,
:root.dark .archive-pill:hover,
:root.dark .social-link:hover { color: #0d1117; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .main .container { flex-direction: column; }
    .sidebar {
        order: 2;
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
    .content-area { order: 1; }
    .sidebar .widget { display: inline-block; vertical-align: top; width: calc(50% - 10px); margin-right: 16px; }
    .sidebar .widget:nth-child(even) { margin-right: 0; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: var(--header-h, 56px);
        left: 0; right: 0;
        background: rgba(15,16,17,0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
    }
    .main-nav.open { max-height: calc(100vh - 56px); overflow-y: auto; }
    .main-nav ul { flex-direction: column; padding: 4px 0 16px; gap: 0; }
    .main-nav li a,
    .main-nav li > .nav-parent-label { min-height: 48px; display: flex; align-items: center; padding: 13px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .main-nav li.current > a,
    .main-nav li.current > .nav-parent-label { color: #fff; box-shadow: inset 3px 0 0 var(--color-primary); background: rgba(255,255,255,.04); }
    .main-nav .sub-menu li a { padding-left: 40px; }
    /* 抽屉底部：搜索 / 主题 / 登录 作为工具栏一组 */
    .main-nav li.nav-search, .main-nav li.nav-dark, .main-nav li.nav-login {
        border-top: 1px solid rgba(255,255,255,0.08); margin-top: 6px;
    }
    .main-nav li.nav-login a { color: #9fd0ff; }
    .main-nav li a::after { display: none; }
    .main-nav li:last-child a { border-bottom: 0; }

}

@media (max-width: 640px) {
    /* iOS 聚焦不放大：输入框统一 16px */
    .comment-field input, .comment-field textarea, .nav-search-input,
    input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea { font-size: 16px; }
    .sidebar .widget { width: 100%; margin-right: 0; }
    .single-post .post-title,
    .single-page .post-title { font-size: 21px; line-height: 1.45; }
    .hero-title { font-size: 1.5em; }
    .error-code { font-size: 48px; }
    .footer-inner { flex-direction: column; text-align: center; }
}


/* ---------- 移动端抽屉遮罩与关闭态 ---------- */
.nav-overlay {
    position: fixed;
    top: var(--header-h, 56px); left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 98;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.nav-toggle .bar { transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0 !important; transform: scaleX(0); visibility: hidden; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 卡片可点（JS 委托方案）---------- */
.post-item {
    position: relative;
    cursor: pointer;
}
.post-item:focus { outline: none; }
.post-item:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* 去掉卡片左侧竖条 hover 装饰（单侧色条是模板味最重的默认款） */
.post-item:hover { box-shadow: 0 6px 20px rgba(52, 152, 219, 0.12); }

/* mobile: smaller lift */
@media (max-width: 768px) {
    .post-item:hover { transform: none; }
    .post-item:hover::before { height: 40%; }
}

/* ---------- 首页：分类筛选 + 首条大卡 ---------- */
.home-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.home-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.4;
    color: #4a5259;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.home-filter-item:hover { color: var(--color-primary); border-color: var(--color-primary); }
.home-filter-item.is-active .home-filter-count { color: rgba(255,255,255,.85); }
.home-filter-item.is-active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
}
.home-filter-count { font-size: 11px; color: #4a5259; font-variant-numeric: tabular-nums; }

.post-item.is-lead { padding: 26px 30px; }
.post-item.is-lead .post-title { font-size: 24px; line-height: 1.45; margin-bottom: 10px; }
.post-item.is-lead .post-excerpt {
    font-size: 14px;
    line-height: 1.8;
    -webkit-line-clamp: 3;
    margin-bottom: 14px;
}
:root.dark .home-filter-item { color: #b9c0c9; }
:root.dark .home-filter-item.is-active { color: #0d1117; background: var(--color-primary); }
@media (max-width: 640px) {
    .post-item.is-lead { padding: 20px 18px; }
    .post-item.is-lead .post-title { font-size: 19px; }
}


/* ---------- 内页统一页头（取代空壳英雄卡 + 四色数字卡） ---------- */
.pg-head { border-bottom: 1px solid var(--c-border); padding-bottom: 16px; margin-bottom: 20px; }
.pg-title { font-size: 26px; font-weight: 700; color: var(--c-text-strong); margin: 0 0 6px; line-height: 1.3; letter-spacing: -.01em; }
.pg-sub { font-size: 13.5px; color: var(--c-dim); margin: 0; line-height: 1.7; }
.pg-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.pg-meta span { font-size: 12.5px; color: var(--c-dim); }
.pg-meta b { font-size: 16px; font-weight: 600; color: var(--c-accent); margin-right: 5px; font-variant-numeric: tabular-nums; }
/* 控制台类页面统一内容宽度，正文左锚线一致 */
.arc-wrap, .sk-wrap, .cl-wrap, .ai-evo-page { width: 100%; max-width: 1160px; margin-left: auto; margin-right: auto; }
.arc-item, .sk-card, .cl-card { padding-left: 16px; padding-right: 16px; }
@media (max-width: 640px) {
    .pg-title { font-size: 21px; }
    .pg-meta { gap: 4px 14px; }
}
/* ============================================================
   AI 进化可视化页面专用样式

/**
 * 进化记录页 — Linear Design System v5
 * ──────────────────────────────────
 * Tokens: :root 层面，供 body / .container / .ai-evo-page 共享
 */


:root {
    /* 浅色（默认） */
    --bg-deep: #f6f8fa;
    --bg-panel: #0f1011;          /* 页头在两种模式下都是深色 */
    --bg-surface: #ffffff;
    --bg-elevated: #f6f8fa;
    --text-primary: #1f2328;
    --text-secondary: #32383f;
    --text-tertiary: #656d76;
    --text-muted: #6f7780;
    --accent-brand: #5e6ad2;
    --accent-interactive: #4c56c8;
    --accent-hover: #3b45b5;
    --border-subtle: rgba(0,0,0,0.06);
    --border-default: rgba(0,0,0,0.10);
    --border-strong: rgba(0,0,0,0.16);
    --card-bg: #ffffff;
    --card-bg-hover: #f6f8fa;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}
:root.dark {
    --bg-deep: #08090a;
    --bg-surface: #191a1b;
    --bg-elevated: #23252a;
    --text-primary: #f7f8f8;
    --text-secondary: #d0d6e0;
    --text-tertiary: #8a8f98;
    --text-muted: #62666d;
    --accent-brand: #5e6ad2;
    --accent-interactive: #7170ff;
    --accent-hover: #828fff;
    --border-subtle: rgba(255,255,255,0.05);
    --border-default: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.12);
    --card-bg: rgba(255,255,255,0.02);
    --card-bg-hover: rgba(255,255,255,0.04);
}

/* Page 与容器背景 */
body.is-page { background: var(--bg-deep) !important; }
body.is-page .main { background: transparent; }
body.is-page .container { background: transparent !important; }
body.is-page .content-area { background: transparent !important; padding: 0 !important; }
body.is-page .footer { background: transparent; }
body.is-page .site-header, body.is-list .site-header { background: var(--bg-panel) !important; border-bottom: 1px solid var(--border-default); }
body.is-page .header-inner, body.is-list .header-inner { border-bottom: none; }
body.is-page .site-footer { background: var(--color-header-bg) !important; border-top: 1px solid var(--border-default); }

.evo-main-full { width: 100%; max-width: 100%; }
.evo-container-full { max-width: 1160px; margin: 0 auto; padding: 0; }

/* === 页面卡片 === */
.ai-evo-page {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: "cv01", "ss03";
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 1160px;
    margin: 0 auto;
    padding: 26px 28px;
    background: var(--c-panel);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

/* ====== HEADER ====== */
.evo-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.evo-brand-icon { flex-shrink: 0; }

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-brand), var(--accent-interactive));
    animation: evo-pulse 3s ease-in-out infinite;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

@keyframes evo-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(94,106,210,0.5); }
    50% { box-shadow: 0 0 0 12px rgba(94,106,210,0); }
}

.evo-header-text { flex: 1; }

.evo-title {
    font-size: 1.5rem;
    font-weight: 590;
    color: var(--text-primary);
    margin: 0 0 2px;
    letter-spacing: -0.024em;
}

.evo-subtitle {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    margin: 0 0 6px;
    font-weight: 400;
}

.evo-header-meta { display: flex; gap: 8px; align-items: center; }

.evo-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 510;
    color: var(--text-tertiary);
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 2px 10px;
    border-radius: 9999px;
}

/* ====== STATS GRID ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.4,0,0.2,1);
}

.stat-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-default);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.81rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

/* ====== SECTION ====== */
.evo-section { margin-bottom: 36px; }

.evo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.evo-section-title {
    font-size: 1.13rem;
    font-weight: 590;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evo-section-icon { font-size: 1rem; }

/* ====== EVOLUTION METRICS ====== */
.evo-card-gradient {
    background: rgba(94,106,210,0.03);
    border: 1px solid rgba(94,106,210,0.08);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

.evo-metrics-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
}

.evo-metric { text-align: center; flex: 1; }
.evo-metric-icon { font-size: 1.5rem; margin-bottom: 4px; }

.evo-metric-value {
    font-size: 1.5rem;
    font-weight: 590;
    color: var(--accent-interactive);
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.evo-metric-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.evo-metric-divider {
    width: 1px;
    height: 48px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

/* ====== SKILLS ====== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.4,0,0.2,1);
}

.skill-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-default);
    transform: translateY(-2px);
}

.skill-card-top { margin-bottom: 8px; }

.skill-category {
    display: inline-block;
    font-size: 0.69rem;
    font-weight: 510;
    color: var(--accent-interactive);
    background: rgba(113,112,255,0.08);
    padding: 2px 10px;
    border-radius: 9999px;
}

.skill-name {
    font-size: 0.94rem;
    font-weight: 590;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    word-break: break-all;
}

.skill-description {
    font-size: 0.81rem;
    font-weight: 400;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0 0 10px;
}

.skill-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.skill-tag {
    display: inline-block;
    font-size: 0.69rem;
    font-weight: 400;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: 1px 8px;
    border-radius: 9999px;
}

/* ====== MEMORY ====== */
.memory-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.memory-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-default);
}

.memory-label {
    display: inline-block;
    font-size: 0.69rem;
    font-weight: 510;
    padding: 2px 10px;
    border-radius: 9999px;
    margin-bottom: 6px;
}

.memory-card.type-system { border-left-color: var(--accent-brand); }
.memory-card.type-user { border-left-color: var(--accent-interactive); }
.memory-card.type-system .memory-label { background: rgba(94,106,210,0.08); color: var(--accent-brand); }
.memory-card.type-user .memory-label { background: rgba(113,112,255,0.08); color: var(--accent-interactive); }

.memory-card p {
    font-size: 0.81rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ====== TIMELINE ====== */
.timeline {
    position: relative;
    padding: 4px 0 4px 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent-interactive) 0%, var(--border-subtle) 80%, transparent);
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-interactive);
    border: 2px solid var(--bg-panel);
    box-shadow: 0 0 0 1px rgba(113,112,255,0.2);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 510;
    color: var(--accent-interactive);
    margin-bottom: 2px;
}

.timeline-title {
    font-size: 0.94rem;
    font-weight: 590;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.timeline-desc {
    font-size: 0.81rem;
    font-weight: 400;
    color: var(--text-tertiary);
    line-height: 1.55;
    margin: 0;
}

/* ====== FOOTER ====== */
.evo-footer {
    text-align: center;
    padding: 20px 0 4px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
}

.evo-footer p {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
}

/* ====== FADE-IN ====== */
.ai-evo-page .evo-header,
.ai-evo-page .stats-grid,
.ai-evo-page .evo-section {
    animation: evo-fade-up 0.4s ease both;
}

.ai-evo-page .evo-header { animation-delay: 0s; }
.ai-evo-page .stats-grid { animation-delay: 0.06s; }
.ai-evo-page .evo-section:nth-of-type(1) { animation-delay: 0.12s; }
.ai-evo-page .evo-section:nth-of-type(2) { animation-delay: 0.18s; }
.ai-evo-page .evo-section:nth-of-type(3) { animation-delay: 0.24s; }
.ai-evo-page .evo-section:nth-of-type(4) { animation-delay: 0.3s; }
.ai-evo-page .evo-footer { animation-delay: 0.36s; }

@keyframes evo-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .ai-evo-page { padding: 20px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .skills-grid { grid-template-columns: 1fr; }
    .evo-metrics-row { gap: 8px; }
    .evo-metric-value { font-size: 1.2rem; }
}

@media (max-width: 600px) {
    .evo-header { flex-direction: column; text-align: center; gap: 12px; }
    .evo-header-meta { justify-content: center; }
    .stats-grid { gap: 8px; }
    .stat-card { padding: 14px 8px; }
    .stat-number { font-size: 1.35rem; }
    .evo-card-gradient { padding: 16px 12px; }
    .evo-metric-divider { height: 32px; }
    .skill-card { padding: 12px; }
    .timeline { padding-left: 12px; }
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
    .avatar { animation: none; }
    .ai-evo-page .evo-header,
    .ai-evo-page .stats-grid,
    .ai-evo-page .evo-section,
    .ai-evo-page .evo-footer { animation: none; }
}

@media (hover: none) {
    .stat-card:hover,
    .skill-card:hover,
    .memory-card:hover { transform: none !important; }
}


/* 归档 widget 折叠：默认 3 行 + 点击展开 */
.widget-archive .archive-details { margin-top: 4px; }
.widget-archive .archive-summary {
    cursor: pointer;
    list-style: none;
    padding: 8px 0;
    color: var(--color-primary);
    font-size: 13px;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.widget-archive .archive-summary::-webkit-details-marker { display: none; }
.widget-archive .archive-summary::before {
    content: '▸';
    display: inline-block;
    transition: transform .2s;
}
.widget-archive details[open] .archive-summary::before { transform: rotate(90deg); }
.widget-archive details[open] .archive-default { display: none; }
.widget-archive details:not([open]) .archive-expanded { display: none; }

/* 折叠态：只显示前 3 行 li */
.widget-archive .archive-list li { display: none; }
.widget-archive .archive-list li:nth-child(-n+10) { display: list-item; }
.widget-archive details[open] .archive-list li { display: list-item; }


/* ====== 导航栏搜索框 ====== */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}
.nav-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    /* 硬编码浅色, 避免被 :root --color-text: #333 覆盖 */
    color: #e8e8e8;
    cursor: pointer;
    transition: color var(--transition, 0.2s ease), background var(--transition, 0.2s ease);
}
.nav-search-toggle:hover {
    color: var(--color-primary, #3498db);
    background: rgba(255, 255, 255, 0.06);
}
.nav-search-toggle svg { display: block; }

.nav-search-form {
    width: 0;
    overflow: hidden;
    transition: width var(--transition, 0.2s ease);
    margin-left: 0;
}
.nav-search-form.is-open { width: 180px; }

.nav-search-input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #e8e8e8;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition, 0.2s ease), background var(--transition, 0.2s ease);
}
.nav-search-input::placeholder { color: rgba(232, 232, 232, 0.45); }
.nav-search-input:focus {
    border-color: var(--color-primary, #3498db);
    background: rgba(255, 255, 255, 0.10);
}

/* 移动端 (≤640px) */
@media (max-width: 640px) {
    .nav-search-form.is-open { width: calc(100vw - 220px); }
    .nav-search-form.is-open .nav-search-input { font-size: 14px; }
}


/* ====== 通用折叠 (更多标签 / 更多归档) ====== */
details.collapse-more { margin-top: 8px; }
/* 在 .tagcloud (flex-wrap 容器) 内让 details 强制占满整行，下一个 flex item 自动换行 */
/* grid 容器下让 details 跨满所有列；flex:0 0 100% 在 grid item 上无效所以保留也无害 */
.tagcloud > details.collapse-more {
    flex: 0 0 100%;
    grid-column: 1 / -1;
    display: block;
}
.collapse-summary {
    cursor: pointer;
    list-style: none;
    padding: 6px 0;
    color: var(--color-primary);
    font-size: 13px;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s ease;
}
.collapse-summary:hover { color: var(--color-primary-dark); }
.collapse-summary::-webkit-details-marker { display: none; }
.collapse-summary::marker { display: none; content: ''; }
.collapse-summary::before {
    content: '▸';
    display: inline-block;
    transition: transform .2s ease;
    font-size: 11px;
}
details.collapse-more[open] > .collapse-summary::before { transform: rotate(90deg); }

/* 折叠展开区域 (标签云溢出 / 归档 pill) */
.tagcloud-others {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 0 2px 0;
    border-top: 1px dashed var(--border-subtle, #e8e8e8);
}
.archive-pill {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-bg-light, #f5f7fa);
    border-radius: 12px;
    font-size: 12px;
    color: var(--color-text, #333);
    transition: background .15s, color .15s;
}
.archive-pill:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ========================================================================
   Dark Mode — GitHub Primer Dark
   ======================================================================== */
:root.dark {
    --color-text: #e6edf3;
    --color-text-light: #8b949e;
    --color-bg: #0d1117;
    --color-bg-white: #161b22;
    --color-bg-code: #161b22;
    --color-border: #30363d;
    --color-header-bg: #010409;
    --color-primary: #58a6ff;
    --color-primary-dark: #79c0ff;
}

body.dark { background: var(--color-bg); color: var(--color-text); }

/* 暗黑模式 toggle 按钮 */
.nav-dark-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #e6edf3;
    cursor: pointer;
    transition: color var(--transition, 0.2s ease), background var(--transition, 0.2s ease);
}
.nav-dark-toggle:hover {
    color: #58a6ff;
    background: rgba(56, 139, 253, 0.1);
}
.nav-dark-toggle .icon-sun { display: none; }
.nav-dark-toggle .icon-moon { display: block; }
:root.dark .nav-dark-toggle .icon-sun { display: block; }
:root.dark .nav-dark-toggle .icon-moon { display: none; }

/* 暗黑模式内容覆盖 */
:root.dark a { color: #58a6ff; }
:root.dark .main-nav li a { color: rgba(230,237,243,0.6); }
:root.dark .main-nav li a:hover { color: #e6edf3; }
:root.dark .main-nav li.current a { color: #e6edf3; }
:root.dark .nav-parent-label { color: rgba(230,237,243,0.6); }
:root.dark .nav-parent-label:hover { color: #e6edf3; }
:root.dark .nav-login a { color: rgba(230,237,243,0.6); }
:root.dark .nav-login a:hover { color: #e6edf3; }
:root.dark .site-brand .site-title a { color: #f0f6fc; }
:root.dark .widget { background: var(--color-bg-white); border-color: var(--color-border); color: var(--color-text); }
:root.dark .post-item { background: var(--color-bg-white); border-color: var(--color-border); }
:root.dark .post-item h2 a { color: var(--color-text); }
:root.dark .post-item .post-meta { color: var(--color-text-light); }
:root.dark .post-item .post-excerpt { color: var(--color-text-light); }
:root.dark .page-header { background: var(--color-bg-white); border-color: var(--color-border); }
:root.dark .page-header h1 { color: var(--color-text); }

/* ---- 文章正文：Primer Dark 风格 ---- */
:root.dark .post-content, :root.dark .post-body { color: #e6edf3; }
:root.dark .post-content h1, :root.dark .post-body h1 {
    color: #f0f6fc;
    border-bottom-color: #30363d;
}
:root.dark .post-content h2, :root.dark .post-body h2 {
    color: #f0f6fc;
    border-bottom-color: #30363d;
}
:root.dark .post-content h3, :root.dark .post-body h3 { color: #f0f6fc; }
:root.dark .post-content h4, :root.dark .post-body h4,
:root.dark .post-content h5, :root.dark .post-body h5 { color: #f0f6fc; }
:root.dark .post-content h6, :root.dark .post-body h6 { color: #8b949e; }
:root.dark .post-content a, :root.dark .post-body a { color: #58a6ff; }

/* 暗色下这些浅色文字要回升到可读亮度 */
:root.dark .stat-label, :root.dark .links-title, :root.dark .archive-desc,
:root.dark .comment-list .comment-meta, :root.dark .comment-field label,
:root.dark .author-desc, :root.dark .cancel-comment-reply, :root.dark .error-text { color: #a5aeb8; }
:root.dark .post-meta { color: #a5aeb8; }
:root.dark .post-content a:hover, :root.dark .post-body a:hover { color: #79c0ff; }
:root.dark .post-content strong, :root.dark .post-body strong { color: #f0f6fc; }
:root.dark .post-content em, :root.dark .post-body em { color: #e6edf3; }
:root.dark .post-content blockquote, :root.dark .post-body blockquote {
    border-left-color: #4096ff;
    color: #8b949e;
    background-color: rgba(64, 150, 255, 0.20);
}
:root.dark .post-content code, :root.dark .post-body code {
    background: rgba(110, 118, 129, 0.4);
    color: #e6edf3;
}
:root.dark .post-content pre, :root.dark .post-body pre {
    background: #161b22;
    color: #e6edf3;
    border-color: #30363d;
}
:root.dark .post-content pre code, :root.dark .post-body pre code { color: #e6edf3; }
:root.dark .post-content hr, :root.dark .post-body hr {
    background-color: #30363d;
}
:root.dark .post-content mark, :root.dark .post-body mark {
    background: rgba(187, 128, 9, 0.4);
    color: #e6edf3;
}
:root.dark .post-content del, :root.dark .post-body del,
:root.dark .post-content s, :root.dark .post-body s { color: #8b949e; }
:root.dark .post-content table, :root.dark .post-body table { border-color: #30363d; }
:root.dark .post-content tr, :root.dark .post-body tr { border-color: #30363d; background-color: #0d1117; }
:root.dark .post-content tr:nth-child(2n), :root.dark .post-body tr:nth-child(2n) { background-color: #161b22; }
:root.dark .post-content th, :root.dark .post-body th {
    background: transparent;
    color: #f0f6fc;
    border-color: #30363d;
    font-weight: 600;
}
:root.dark .post-content td, :root.dark .post-body td { color: #e6edf3; border-color: #30363d; }
:root.dark .post-content table tr:hover, :root.dark .post-body table tr:hover { background-color: rgba(115, 209, 61, 0.06); }
:root.dark .post-content img, :root.dark .post-body img { border-color: #30363d; }

:root.dark .pagination a { background: var(--color-bg-white); color: var(--color-text); border-color: var(--color-border); }
:root.dark .pagination .current { background: var(--color-primary); color: #0d1117; border-color: var(--color-primary); }
:root.dark input[type=search], :root.dark textarea {
    background: #0d1117;
    color: var(--color-text);
    border-color: #30363d;
}
:root.dark .tag-link { background: var(--color-bg-white); color: var(--color-text); border-color: var(--color-border); }
:root.dark .tag-link:hover { background: var(--color-primary); color: #0d1117; border-color: var(--color-primary); }
:root.dark .category-list a { color: var(--color-text); }
:root.dark .category-list a:hover { color: var(--color-primary); }
:root.dark .widget-list li a { color: var(--color-text) !important; }
:root.dark .widget-list li a:hover { color: var(--color-primary); }
:root.dark .post-tags a {
    background: rgba(56, 139, 253, 0.1);
    color: #58a6ff;
    border-color: rgba(56, 139, 253, 0.4);
}
:root.dark .post-tags a:hover {
    background: #58a6ff;
    color: #0d1117;
    border-color: #58a6ff;
}
:root.dark .post-footer { border-top-color: #30363d; }
:root.dark .post-nav { border-color: #30363d; }
:root.dark .post-nav a { color: #e6edf3; }
:root.dark .post-nav a:hover { color: #58a6ff; }
:root.dark .author-box { background: #161b22; border-color: #30363d; }
:root.dark .author-desc { color: #8b949e; }
:root.dark .comments { border-top-color: #30363d; }
:root.dark .comment-list .comment-body { border-bottom-color: #30363d; }
:root.dark .comment-children { border-left-color: #30363d; }
:root.dark .respond .text, :root.dark .respond .textarea {
    background: #0d1117;
    color: #e6edf3;
    border-color: #30363d;
}
:root.dark .respond .text:focus, :root.dark .respond .textarea:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.3);
}

/* ========================================================================
   Navigation Dropdown & Icon Alignment Fix
   ======================================================================== */

/* Dropdown menu */
.menu-item.has-children {
    position: relative;
}
.nav-parent-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: none;
    border: 0;
    font-family: inherit;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color .2s;
    user-select: none;
}
.nav-parent-label svg {
    transition: transform .2s;
    flex-shrink: 0;
}
.nav-parent-label:hover,
.menu-item.has-children.current .nav-parent-label {
    color: #fff;
}
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    min-width: 140px;
    background: #1a1d23;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding: 6px 0;
    z-index: 1000;
    flex-direction: column;
}
.menu-item.has-children:hover > .sub-menu,
.menu-item.has-children.open > .sub-menu {
    display: flex;
}
.menu-item.has-children.force-closed > .sub-menu {
    display: none !important;
}
.menu-item.has-children:hover > .nav-parent-label svg,
.menu-item.has-children.open > .nav-parent-label svg {
    transform: rotate(180deg);
}
.menu-item.has-children.force-closed > .nav-parent-label svg {
    transform: none;
}
.main-nav .sub-menu li a {
    display: block;
    padding: 8px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.main-nav .sub-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.main-nav .sub-menu li.current a {
    color: #3498db;
}

/* 移动端 */
@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #0f1011;
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 999;
    }
    .main-nav.open { display: block; max-height: 70vh; overflow-y: auto; }
    .main-nav ul { flex-direction: column; padding: 8px 0; gap: 0; }
    .main-nav li a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .main-nav .sub-menu {
        display: block;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .main-nav .sub-menu li a { padding: 8px 24px 8px 40px; font-size: 13px; }
    .nav-parent-label { padding: 14px 24px; }
    .main-nav li a::after { display: none; }
    .main-nav li:last-child a { border-bottom: 0; }
}

/* Fix nav-dark vertical alignment — match .nav-search */
.nav-dark {
    display: flex;
    align-items: center;
}


/* Mobile hamburger menu — fix search/dark icon alignment */
@media (max-width: 640px) {
    .nav-search {
        display: flex;
        align-items: center;
        margin-left: 0;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-dark {
        display: flex;
        align-items: center;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-login a {
        padding: 14px 24px;
    }
}


/* ===== 个人信息卡片 ===== */
.widget-profile { text-align: center; }
.profile-card { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-avatar { margin-bottom: 4px; }
.avatar-img { width: 158px; height: 158px; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--color-primary); }
.profile-name { font-size: 18px; font-weight: 700; margin: 0; color: var(--color-text); }
.profile-bio { font-size: 12px; color: #656d76; margin: 0 0 8px 0; line-height: 1.5; }

/* 社交链接 */
.profile-social { display: flex; gap: 12px; margin: 4px 0; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-bg-gray, #f0f0f0); color: #555; font-size: 16px; transition: all 0.2s; text-decoration: none; }
.social-link:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

/* 链接区 */
.profile-links { width: 100%; margin-top: 4px; }
.links-title { display: block; font-size: 12px; color: #656d76; margin-bottom: 6px; font-weight: 600; }
.profile-link { display: block; padding: 4px 0; font-size: 13px; color: #555; text-decoration: none; transition: color 0.2s; }
.profile-link:hover { color: var(--color-primary); }


/* 暗黑模式 - 个人信息卡片 */
[data-theme="dark"] .profile-bio { color: #a5aeb8; }
[data-theme="dark"] .social-link { background: #2a2a2a; color: #aaa; }
[data-theme="dark"] .social-link:hover { background: var(--color-primary); color: #fff; }
[data-theme="dark"] .profile-link { color: #aaa; }
[data-theme="dark"] .profile-link:hover { color: var(--color-primary); }
[data-theme="dark"] .links-title { color: #777; }

/* 统计数据 */
.profile-stats { display: flex; gap: 0; width: 100%; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 8px 0; margin: 4px 0; }
.stat-item { flex: 1; text-align: center; border-right: 1px solid #eee; }
.stat-item:last-child { border-right: none; }
.stat-count { display: block; font-size: 16px; font-weight: 700; color: var(--color-text); }
.stat-label { display: block; font-size: 11px; color: #656d76; margin-top: 2px; }

/* 暗黑模式 */
[data-theme="dark"] .profile-bio { color: #a5aeb8; }
[data-theme="dark"] .profile-stats { border-color: #333; }
[data-theme="dark"] .stat-item { border-color: #333; }
[data-theme="dark"] .stat-label { color: #777; }

/* ========================================================================
   站名：Hello World —— 等宽字 + 闪烁光标
   ======================================================================== */
.site-brand .site-title.brand { letter-spacing: 0; font-weight: 400; }
.brand-link {
    display: inline-flex; align-items: baseline;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 19px; line-height: 1.1; text-decoration: none;
    letter-spacing: -.01em;
}
.brand-link .brand-hello { color: rgba(255, 255, 255, .52); font-weight: 400; }
.brand-link .brand-world { color: #fff; font-weight: 700; margin-left: .18em; }
.brand-link .brand-caret {
    display: inline-block; width: 2px; height: 1.02em; margin-left: 3px;
    background: #39d353; transform: translateY(.12em);
    animation: brand-caret-blink 1.15s steps(1, end) infinite;
}
.brand-link:hover .brand-hello { color: rgba(255, 255, 255, .75); }
.brand-link:hover .brand-world { color: #fff; }
@keyframes brand-caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brand-link .brand-caret { animation: none; } }
@media (max-width: 640px) { .brand-link { font-size: 17px; } }

/* ========================================================================
   跨页主题 token：让控制台/数据页也跟随白天 / 夜晚
   ======================================================================== */
:root {
    --c-bg: #f6f8fa;
    --c-panel: #ffffff;
    --c-panel-2: #f6f8fa;
    --c-panel-3: #eaeef2;
    --c-border: #d0d7de;
    --c-border-2: #d8dee4;
    --c-text: #1f2328;
    --c-text-2: #32383f;
    --c-text-strong: #1f2328;
    --c-dim: #57606a;
    --c-accent: #1a7f37;
    --c-accent-2: #1a7f37;
    --c-warn: #9a6700;
    --c-bad: #cf222e;
    --c-link: #0969da;
    --c-overlay: rgba(255, 255, 255, .88);
}
:root.dark {
    --c-bg: #08090a;
    --c-panel: #0d1117;
    --c-panel-2: #161b22;
    --c-panel-3: #21262d;
    --c-border: #30363d;
    --c-border-2: #3d444d;
    --c-text: #e6edf3;
    --c-text-2: #c9d1d9;
    --c-text-strong: #f0f6fc;
    --c-dim: #8b949e;
    --c-accent: #39d353;
    --c-accent-2: #3fb950;
    --c-warn: #d29922;
    --c-bad: #f85149;
    --c-link: #58a6ff;
    --c-overlay: rgba(8, 9, 10, .88);
}

/* ---------- 页脚：备案号 + 访客数 ---------- */
.site-footer .footer-icp { color: rgba(255, 255, 255, .62); text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, .28); }
.site-footer .footer-icp:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .6); }
.footer-visitors { margin: 4px 0 0; font-size: 12px; color: rgba(255, 255, 255, .55); }
.footer-visitors b {
    color: #39d353; font-weight: 600; font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin: 0 2px;
}


/* === coss.css === */
/* ===========================================================================
   coss.css — coss ui 设计系统移植（Typecho 版，纯 CSS 无依赖）
   来源：github.com/cosscom/ui（MIT）packages/ui/src/styles/globals.css
        + apps/ui/registry/default/ui/{button,card,badge,input,...}.tsx 的 cva 定义
   令牌全部落了 hex/rgba 等价物，不依赖 lab()/color-mix()/Tailwind。
   作用域：默认全局令牌挂在 html，组件类前缀 cs-，与旧主题类不冲突。
   =========================================================================== */

/* ---------------- 令牌：亮色 ---------------- */
:root {
    --cs-radius: 10px;
    --cs-radius-sm: 6px;
    --cs-radius-md: 8px;
    --cs-radius-lg: 10px;
    --cs-radius-xl: 14px;
    --cs-radius-2xl: 18px;

    --cs-neutral-50: #fafafa;
    --cs-neutral-100: #f5f5f5;
    --cs-neutral-200: #e5e5e5;
    --cs-neutral-300: #d4d4d4;
    --cs-neutral-400: #a3a3a3;
    --cs-neutral-500: #737373;
    --cs-neutral-600: #525252;
    --cs-neutral-700: #404040;
    --cs-neutral-800: #262626;
    --cs-neutral-900: #171717;
    --cs-neutral-950: #0a0a0a;

    --cs-red-400: #ff6568;
    --cs-red-500: #fb2c36;
    --cs-red-700: #bf000f;
    --cs-emerald-400: #00d294;
    --cs-emerald-500: #00bb7f;
    --cs-emerald-700: #007956;
    --cs-amber-400: #fcbb00;
    --cs-amber-500: #f99c00;
    --cs-amber-700: #b75000;

    --cs-background: #ffffff;
    --cs-foreground: #262626;
    --cs-card: #ffffff;
    --cs-card-foreground: #262626;
    --cs-popover: #ffffff;
    --cs-primary: #262626;
    --cs-primary-foreground: #fafafa;
    --cs-secondary: rgba(0, 0, 0, .04);
    --cs-secondary-foreground: #262626;
    --cs-muted: rgba(0, 0, 0, .04);
    --cs-muted-foreground: #6b6b6b;
    --cs-accent: rgba(0, 0, 0, .04);
    --cs-accent-foreground: #262626;
    --cs-border: rgba(0, 0, 0, .08);
    --cs-input: rgba(0, 0, 0, .10);
    --cs-ring: #a3a3a3;
    --cs-destructive: #fb2c36;
    --cs-destructive-fg: #bf000f;
    --cs-success: #00bb7f;
    --cs-success-fg: #007956;
    --cs-warning: #f99c00;
    --cs-warning-fg: #b75000;

    /* 低饱和标签色（8 个色相，亮色：浅底 + 深字，实测对比度 5.6–8.3:1） */
    --cs-h1-bg: #eaf2fa; --cs-h1-fg: #214a73; --cs-h1-bd: #c3d9ef;
    --cs-h2-bg: #eafaf5; --cs-h2-fg: #217358; --cs-h2-bd: #c3efe0;
    --cs-h3-bg: #faf6ea; --cs-h3-fg: #735e21; --cs-h3-bd: #efe4c3;
    --cs-h4-bg: #faeeea; --cs-h4-fg: #733621; --cs-h4-bd: #efcec3;
    --cs-h5-bg: #f6eafa; --cs-h5-fg: #5e2173; --cs-h5-bd: #e4c3ef;
    --cs-h6-bg: #eaf8fa; --cs-h6-fg: #216573; --cs-h6-bd: #c3e8ef;
    --cs-h7-bg: #faeaf0; --cs-h7-fg: #73213c; --cs-h7-bd: #efc3d1;
    --cs-h8-bg: #f1faea; --cs-h8-fg: #437321; --cs-h8-bd: #d5efc3;

    --cs-shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
    --cs-inset-top: inset 0 1px 0 rgba(255, 255, 255, .16);

    --cs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --cs-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------------- 令牌：暗色 ---------------- */
html.dark, :root.dark,
html.dark [data-cs-scope] {
    --cs-background: #0a0a0b;
    --cs-foreground: #f5f5f5;
    --cs-card: #0c0c0d;
    --cs-card-foreground: #f5f5f5;
    --cs-popover: #0d0d0e;
    --cs-primary: #f5f5f5;
    --cs-primary-foreground: #262626;
    --cs-secondary: rgba(255, 255, 255, .04);
    --cs-secondary-foreground: #f5f5f5;
    --cs-muted: rgba(255, 255, 255, .04);
    --cs-muted-foreground: #8a8a8a;
    --cs-accent: rgba(255, 255, 255, .04);
    --cs-accent-foreground: #f5f5f5;
    --cs-border: rgba(255, 255, 255, .06);
    --cs-input: rgba(255, 255, 255, .08);
    --cs-ring: #737373;
    --cs-destructive: #fc4952;
    --cs-destructive-fg: #ff6568;
    --cs-success: #16c78a;
    --cs-success-fg: #00d294;
    --cs-warning: #faa61a;
    --cs-warning-fg: #fcbb00;

    /* 低饱和标签色（暗色：深底 + 浅字） */
    --cs-h1-bg: #1d2e3e; --cs-h1-fg: #adc7e1; --cs-h1-bd: #2e4a66;
    --cs-h2-bg: #1d3e33; --cs-h2-fg: #ade1d0; --cs-h2-bd: #2e6653;
    --cs-h3-bg: #3e361d; --cs-h3-fg: #e1d4ad; --cs-h3-bd: #66582e;
    --cs-h4-bg: #3e261d; --cs-h4-fg: #e1baad; --cs-h4-bd: #663c2e;
    --cs-h5-bg: #361d3e; --cs-h5-fg: #d4ade1; --cs-h5-bd: #582e66;
    --cs-h6-bg: #1d393e; --cs-h6-fg: #add8e1; --cs-h6-bd: #2e5d66;
    --cs-h7-bg: #3e1d28; --cs-h7-fg: #e1adbe; --cs-h7-bd: #662e41;
    --cs-h8-bg: #2b3e1d; --cs-h8-fg: #c3e1ad; --cs-h8-bd: #45662e;

    --cs-shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
    --cs-inset-top: inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* ---------------- 基础 ---------------- */
.cs-page {
    background: var(--cs-background);
    color: var(--cs-foreground);
    font-family: var(--cs-font);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ---------------- Card ---------------- */
.cs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-xl);
    background: var(--cs-card);
    color: var(--cs-card-foreground);
    box-shadow: var(--cs-shadow-xs);
}
.cs-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 22px 16px;
}
.cs-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.35;
    color: var(--cs-foreground);
}
.cs-card-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--cs-muted-foreground);
    line-height: 1.6;
}
.cs-card-body { padding: 0 22px 18px; }
.cs-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 22px;
    border-top: 1px solid var(--cs-border);
    font-size: 12px;
    color: var(--cs-muted-foreground);
}
.cs-card-foot a { color: var(--cs-foreground); text-decoration: none; }
.cs-card-foot a:hover { text-decoration: underline; }

/* 卡片内的分节线（代替旧的彩色下划线页头） */
.cs-rule { height: 1px; background: var(--cs-border); border: 0; margin: 0; }

/* ---------------- 页头（coss 式：标题 + 描述 + 右侧动作） ---------------- */
.cs-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cs-head-main { min-width: 0; }
.cs-head h1 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -.01em; color: var(--cs-foreground); }
.cs-head .cs-sub { margin: 6px 0 0; font-size: 13px; color: var(--cs-muted-foreground); }
.cs-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: var(--cs-muted-foreground); margin-top: 8px;
}
.cs-meta b { font-weight: 600; color: var(--cs-foreground); font-variant-numeric: tabular-nums; }
.cs-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* 状态点 */
.cs-live { display: inline-flex; align-items: center; gap: 6px; color: var(--cs-success-fg); }
.cs-live-dot {
    width: 6px; height: 6px; border-radius: 50%; background: currentColor;
    animation: cs-pulse 2s infinite;
}
@keyframes cs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cs-live-dot { animation: none; } }

/* ---------------- Button（源码：h-8 / px 11 / rounded-lg / text-sm 500） ---------------- */
.cs-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    height: 36px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: var(--cs-radius-lg);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.cs-btn svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.cs-btn:focus-visible { box-shadow: 0 0 0 2px var(--cs-background), 0 0 0 4px var(--cs-ring); }
.cs-btn:disabled, .cs-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* default：近黑填充 + 顶部内高光 */
.cs-btn--primary {
    background: var(--cs-primary);
    color: var(--cs-primary-foreground);
    border-color: var(--cs-primary);
    box-shadow: var(--cs-shadow-xs), var(--cs-inset-top);
}
.cs-btn--primary:hover { background: rgba(38, 38, 38, .9); border-color: rgba(38, 38, 38, .9); }
html.dark .cs-btn--primary:hover { background: rgba(245, 245, 245, .9); border-color: rgba(245, 245, 245, .9); }

/* secondary：4% 底 */
.cs-btn--secondary { background: var(--cs-secondary); color: var(--cs-secondary-foreground); }
.cs-btn--secondary:hover { background: rgba(0, 0, 0, .07); }
html.dark .cs-btn--secondary:hover { background: rgba(255, 255, 255, .07); }

/* outline：发丝边框 + 微投影 */
.cs-btn--outline {
    background: var(--cs-card);
    color: var(--cs-foreground);
    border-color: var(--cs-input);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .02);
}
.cs-btn--outline:hover { background: var(--cs-accent); }

/* ghost / link */
.cs-btn--ghost { background: transparent; color: var(--cs-foreground); }
.cs-btn--ghost:hover { background: var(--cs-accent); }
.cs-btn--link {
    height: auto; padding: 0; background: none; border: 0; color: var(--cs-foreground);
    text-underline-offset: 4px;
}
.cs-btn--link:hover { text-decoration: underline; }

/* 尺寸 */
.cs-btn--sm { height: 30px; padding: 0 9px; font-size: 13px; gap: 6px; border-radius: var(--cs-radius-md); }
.cs-btn--xs { height: 26px; padding: 0 7px; font-size: 12px; gap: 4px; border-radius: var(--cs-radius-md); }
.cs-btn--icon { width: 36px; padding: 0; }
.cs-btn--icon.cs-btn--sm { width: 30px; }
@media (max-width: 640px) {
    /* coss 的 pointer-coarse 处理：小屏控件抬到 40px，满足触控 */
    .cs-btn { height: 40px; }
    .cs-btn--sm { height: 34px; }
}

/* ---------------- Badge ---------------- */
.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 21px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: var(--cs-radius-sm);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    background: var(--cs-secondary);
    color: var(--cs-secondary-foreground);
}
.cs-badge--outline { background: transparent; border-color: var(--cs-border); color: var(--cs-muted-foreground); }
.cs-badge--success { background: rgba(0, 187, 127, .12); color: var(--cs-success-fg); border-color: rgba(0, 187, 127, .22); }
.cs-badge--warning { background: rgba(249, 156, 0, .12); color: var(--cs-warning-fg); border-color: rgba(249, 156, 0, .22); }
.cs-badge--danger { background: rgba(251, 44, 54, .10); color: var(--cs-destructive-fg); border-color: rgba(251, 44, 54, .22); }
/* 低饱和色相徽标：cs-badge--h1 … --h8 */
.cs-badge--h1, .cs-badge--h2, .cs-badge--h3, .cs-badge--h4,
.cs-badge--h5, .cs-badge--h6, .cs-badge--h7, .cs-badge--h8 { border-width: 1px; border-style: solid; }
.cs-badge--h1 { background: var(--cs-h1-bg); color: var(--cs-h1-fg); border-color: var(--cs-h1-bd); }
.cs-badge--h2 { background: var(--cs-h2-bg); color: var(--cs-h2-fg); border-color: var(--cs-h2-bd); }
.cs-badge--h3 { background: var(--cs-h3-bg); color: var(--cs-h3-fg); border-color: var(--cs-h3-bd); }
.cs-badge--h4 { background: var(--cs-h4-bg); color: var(--cs-h4-fg); border-color: var(--cs-h4-bd); }
.cs-badge--h5 { background: var(--cs-h5-bg); color: var(--cs-h5-fg); border-color: var(--cs-h5-bd); }
.cs-badge--h6 { background: var(--cs-h6-bg); color: var(--cs-h6-fg); border-color: var(--cs-h6-bd); }
.cs-badge--h7 { background: var(--cs-h7-bg); color: var(--cs-h7-fg); border-color: var(--cs-h7-bd); }
.cs-badge--h8 { background: var(--cs-h8-bg); color: var(--cs-h8-fg); border-color: var(--cs-h8-bd); }

/* 同色相的 chip（可选，用于分类筛选） */
.cs-chip--h1.on { background: var(--cs-h1-bg); color: var(--cs-h1-fg); border-color: var(--cs-h1-bd); }
.cs-chip--h2.on { background: var(--cs-h2-bg); color: var(--cs-h2-fg); border-color: var(--cs-h2-bd); }
.cs-chip--h3.on { background: var(--cs-h3-bg); color: var(--cs-h3-fg); border-color: var(--cs-h3-bd); }
.cs-chip--h4.on { background: var(--cs-h4-bg); color: var(--cs-h4-fg); border-color: var(--cs-h4-bd); }
.cs-chip--h5.on { background: var(--cs-h5-bg); color: var(--cs-h5-fg); border-color: var(--cs-h5-bd); }
.cs-chip--h6.on { background: var(--cs-h6-bg); color: var(--cs-h6-fg); border-color: var(--cs-h6-bd); }
.cs-chip--h7.on { background: var(--cs-h7-bg); color: var(--cs-h7-fg); border-color: var(--cs-h7-bd); }
.cs-chip--h8.on { background: var(--cs-h8-bg); color: var(--cs-h8-fg); border-color: var(--cs-h8-bd); }

html.dark .cs-badge--success { background: rgba(22, 199, 138, .14); }
html.dark .cs-badge--warning { background: rgba(250, 166, 26, .14); }
html.dark .cs-badge--danger { background: rgba(252, 73, 82, .14); }

/* ---------------- Segmented Control（替代药丸） ---------------- */
.cs-segmented {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-md);
    background: var(--cs-muted);
}
.cs-segmented button {
    height: 26px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--cs-muted-foreground);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.cs-segmented button:hover { color: var(--cs-foreground); }
.cs-segmented button.on {
    background: var(--cs-card);
    color: var(--cs-foreground);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
html.dark .cs-segmented button.on { background: rgba(255, 255, 255, .08); box-shadow: none; }

/* ---------------- 小尺寸 chip（分类筛选，可横滚） ---------------- */
.cs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 9px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    background: transparent;
    color: var(--cs-muted-foreground);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cs-chip:hover { background: var(--cs-accent); color: var(--cs-foreground); }
.cs-chip.on { background: var(--cs-primary); border-color: var(--cs-primary); color: var(--cs-primary-foreground); }
.cs-chip .n { font-variant-numeric: tabular-nums; opacity: .55; }
.cs-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; opacity: .9; }

/* ---------------- Input / Select ---------------- */
.cs-input, .cs-select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--cs-input);
    border-radius: var(--cs-radius-md);
    background: var(--cs-card);
    color: var(--cs-foreground);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cs-input:focus, .cs-select:focus {
    border-color: var(--cs-ring);
    box-shadow: 0 0 0 3px rgba(163, 163, 163, .2);
}
.cs-select {
    padding-right: 26px;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--cs-muted-foreground) 50%),
                      linear-gradient(135deg, var(--cs-muted-foreground) 50%, transparent 50%);
    background-position: calc(100% - 12px) 14px, calc(100% - 8px) 14px;
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* 勾选框 */
.cs-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--cs-muted-foreground);
    cursor: pointer;
    user-select: none;
}
.cs-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid var(--cs-input);
    border-radius: 4px;
    background: var(--cs-card);
    cursor: pointer;
    position: relative;
    transition: background-color .15s ease, border-color .15s ease;
}
.cs-check input:checked { background: var(--cs-primary); border-color: var(--cs-primary); }
html.dark .cs-check input,
:root.dark .cs-check input {
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .05);
}
html.dark .cs-check input:checked,
:root.dark .cs-check input:checked {
    background: var(--cs-primary);
    border-color: var(--cs-primary);
}
.cs-check input:checked::after {
    content: "";
    position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 8px;
    border: solid var(--cs-primary-foreground);
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(42deg);
}

/* ---------------- 统计条（数字优先，靠竖线分隔） ---------------- */
.cs-stats { display: flex; flex-wrap: wrap; align-items: stretch; }
.cs-stat {
    flex: 1 1 0;
    min-width: 92px;
    padding: 2px 16px;
    border-left: 1px solid var(--cs-border);
}
.cs-stat:first-child { border-left: 0; padding-left: 0; }
.cs-stat b {
    display: block;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--cs-foreground);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
.cs-stat span { font-size: 11.5px; color: var(--cs-muted-foreground); }

/* ---------------- 列表行 ---------------- */
.cs-list { border-top: 1px solid var(--cs-border); }
.cs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    align-items: start;
    padding: 11px 2px;
    border-bottom: 1px solid var(--cs-border);
}
.cs-row-main { min-width: 0; }
.cs-row a.cs-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--cs-foreground);
    text-decoration: none;
}
.cs-row a.cs-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-row-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 3px;
    font-size: 12px;
    color: var(--cs-muted-foreground);
}
.cs-row-side { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.cs-day {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--cs-muted-foreground);
    padding: 12px 0 6px;
    border-bottom: 1px solid var(--cs-border);
}

/* ---------------- Empty / Spinner / Kbd / Alert ---------------- */
.cs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 44px 16px;
    color: var(--cs-muted-foreground);
    font-size: 13px;
    text-align: center;
}
.cs-empty strong { color: var(--cs-foreground); font-size: 14px; font-weight: 600; }

.cs-spinner {
    width: 14px; height: 14px;
    border: 1.6px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cs-spin .7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }

.cs-kbd {
    display: inline-flex;
    align-items: center;
    height: 19px;
    padding: 0 5px;
    border: 1px solid var(--cs-border);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--cs-muted);
    font-family: var(--cs-mono);
    font-size: 11px;
    color: var(--cs-muted-foreground);
}

.cs-alert {
    display: flex;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-md);
    background: var(--cs-muted);
    font-size: 13px;
    color: var(--cs-foreground);
}
.cs-alert--warning { border-color: rgba(249, 156, 0, .3); background: rgba(249, 156, 0, .08); }

/* ---------------- Breadcrumb ---------------- */
.cs-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--cs-muted-foreground); }
.cs-crumbs a { color: var(--cs-muted-foreground); text-decoration: none; }
.cs-crumbs a:hover { color: var(--cs-foreground); text-decoration: underline; text-underline-offset: 3px; }
.cs-crumbs .cur { color: var(--cs-foreground); font-weight: 500; }
.cs-crumbs .sep { opacity: .45; }

/* ---------------- 表格 ---------------- */
.cs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cs-table th {
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    color: var(--cs-muted-foreground);
    padding: 8px 10px;
    background: transparent;
    border-bottom: 1px solid var(--cs-border);
}
.cs-table td { padding: 9px 10px; border-bottom: 1px solid var(--cs-border); color: var(--cs-foreground); }
.cs-table tr:last-child td { border-bottom: 0; }
.cs-table .num { font-variant-numeric: tabular-nums; text-align: right; }


/* ===========================================================================
   兼容层：让老的 .pg-* 页面骨架（系统组 8 页 / 五页内容页的旧类）直接吃 coss 令牌
   —— 只做“换皮肤”，不动任何模板结构与 JS。
   =========================================================================== */
body.is-page {
    /* 主题令牌重映射：蓝色主色 → coss 中性，卡片/边框/阴影 → 发丝体系 */
    --color-bg: var(--cs-background);
    --color-bg-white: var(--cs-card);
    --color-bg-code: var(--cs-muted);
    --color-border: var(--cs-border);
    --color-text: var(--cs-foreground);
    --color-text-light: var(--cs-muted-foreground);
    --color-primary: var(--cs-foreground);
    --radius: 10px;
    --shadow: var(--cs-shadow-xs);
    --transition: .15s ease;
    /* 旧 --c-* 令牌（部分页面在用）同样对齐 */
    --c-bg: var(--cs-background);
    --c-panel: var(--cs-card);
    --c-panel-2: var(--cs-muted);
    --c-panel-3: var(--cs-muted);
    --c-border: var(--cs-border);
    --c-text: var(--cs-foreground);
    --c-text-2: var(--cs-muted-foreground);
    --c-dim: var(--cs-muted-foreground);
    --c-accent: var(--cs-foreground);
    --c-ok: var(--cs-success-fg);
    --c-warn: var(--cs-warning-fg);
    --c-bad: var(--cs-destructive-fg);
    --c-link: var(--cs-foreground);
}

body.is-page { background: var(--cs-background) !important; }

body.is-page .pg-card,
body.is-page .cl-card,
body.is-page .arc-item,
body.is-page .evo-card,
body.is-page .fl-card,
body.is-page .sk-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-xl);
    box-shadow: var(--cs-shadow-xs);
}
body.is-page .pg-head { border-bottom: 1px solid var(--cs-border); }
body.is-page .pg-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
body.is-page .pg-sub { font-size: 13px; }
body.is-page .pg-meta { font-size: 12px; }

body.is-page .pg-btn,
body.is-page .arc-btn {
    height: 30px; padding: 0 10px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--cs-input); border-radius: var(--cs-radius-md);
    background: var(--cs-card); color: var(--cs-foreground);
    box-shadow: 0 1px 1px rgba(0,0,0,.02);
}
body.is-page .pg-btn:hover,
body.is-page .arc-btn:hover { background: var(--cs-accent); border-color: var(--cs-ring); color: var(--cs-foreground); }

body.is-page .pg-stat {
    background: var(--cs-muted); border-color: var(--cs-border); border-radius: var(--cs-radius-md);
}
body.is-page .pg-pill {
    border-radius: var(--cs-radius-sm); border-color: var(--cs-border);
    background: transparent; color: var(--cs-muted-foreground); font-size: 12.5px;
}
body.is-page .pg-pill:hover { background: var(--cs-accent); color: var(--cs-foreground); border-color: var(--cs-border); }
body.is-page .pg-pill.on { background: var(--cs-primary); border-color: var(--cs-primary); color: var(--cs-primary-foreground); }
body.is-page .pg-note { border-top-color: var(--cs-border); }
body.is-page .pg-note a { color: var(--cs-foreground); }
body.is-page .pg-live { color: var(--cs-success-fg); }

/* 页面内链接：coss 风格（中性 + 下划线），不留蓝色 */
body.is-page a:not(.cs-btn):not(.pan-name):not(.cs-title) { color: inherit; }
body.is-page .pg-note a:hover,
body.is-page .cs-card-foot a:hover { text-decoration: underline; }

/* 表格 / 代码块 / 引用：去蓝灰，走中性 */
body.is-page table th { background: var(--cs-muted); border-color: var(--cs-border); color: var(--cs-muted-foreground); font-weight: 500; }
body.is-page table td { border-color: var(--cs-border); }
body.is-page code { background: var(--cs-muted); border: 1px solid var(--cs-border); border-radius: 4px; color: var(--cs-foreground); }
body.is-page pre { background: var(--cs-muted); border: 1px solid var(--cs-border); border-radius: var(--cs-radius-md); }
body.is-page blockquote { border-left: 2px solid var(--cs-border); background: var(--cs-muted); }


/* ===========================================================================
   批 3：站点骨架（页头 / 导航 / 首页列表 / 侧栏 / 页脚 / 文章页排版）
   —— 全站统一到 coss 中性体系；色相只留给标签与数据。
   =========================================================================== */
:root {
    --color-primary: #262626;
    --color-primary-dark: #000000;
    --color-text: #262626;
    --color-text-light: #6b6b6b;
    --color-link: #262626;
    --color-link-hover: #000000;
    --color-border: rgba(0, 0, 0, .08);
    --color-bg: #ffffff;
    --color-bg-white: #ffffff;
    --color-bg-code: rgba(0, 0, 0, .04);
    --color-header-bg: #ffffff;
    --color-header-text: #262626;
    --bg-panel: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .05);
    --bg-deep: #ffffff;
    --bg-surface: #ffffff;
    --bg-elevated: #fafafa;
    --text-primary: #262626;
    --text-secondary: #404040;
    --text-tertiary: #6b6b6b;
    --text-muted: #8a8a8a;
    --accent-brand: #262626;
    --accent-interactive: #262626;
    --accent-hover: #000000;
    --border-subtle: rgba(0, 0, 0, .06);
    --border-default: rgba(0, 0, 0, .08);
    --border-strong: rgba(0, 0, 0, .14);
    --card-bg: #ffffff;
    --card-bg-hover: #fafafa;
}
html.dark, :root.dark {
    --color-primary: #f5f5f5;
    --color-primary-dark: #ffffff;
    --color-text: #f5f5f5;
    --color-text-light: #8a8a8a;
    --color-link: #f5f5f5;
    --color-link-hover: #ffffff;
    --color-border: rgba(255, 255, 255, .08);
    --color-bg: #0a0a0b;
    --color-bg-white: #0c0c0d;
    --color-bg-code: rgba(255, 255, 255, .04);
    --color-header-bg: #0a0a0b;
    --color-header-text: #f5f5f5;
    --bg-panel: #0a0a0b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    --bg-deep: #0a0a0b;
    --bg-surface: #0c0c0d;
    --bg-elevated: #111112;
    --text-primary: #f5f5f5;
    --text-secondary: #d4d4d4;
    --text-tertiary: #8a8a8a;
    --text-muted: #8a8a8a;
    --accent-brand: #f5f5f5;
    --accent-interactive: #f5f5f5;
    --accent-hover: #ffffff;
    --border-subtle: rgba(255, 255, 255, .06);
    --border-default: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --card-bg: #0c0c0d;
    --card-bg-hover: #111112;
}

/* ---- 页头：白底 + 发丝下边框，去蓝下划线 ---- */
.site-header {
    background: var(--color-header-bg) !important;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none !important;
}
.site-brand, .site-title, .site-title a, .brand-link { color: var(--color-header-text) !important; }
.brand-hello { color: var(--color-header-text) !important; opacity: .55; font-weight: 400; }
.brand-world { color: var(--color-header-text) !important; font-weight: 700; }
.brand-caret { background: var(--color-header-text) !important; }

.main-nav li a,
.nav-parent-label,
.nav-login a {
    color: var(--color-text-light) !important;
    font-size: 14px;
    font-weight: 500;
}
.main-nav li a::after, .main-nav li.current a::after { display: none !important; }
.main-nav li a:hover, .nav-parent-label:hover, .nav-login a:hover { color: var(--color-text) !important; }
.main-nav li.current > a,
.main-nav li.current > .nav-parent-label { color: var(--color-text) !important; font-weight: 600; }
.nav-search-toggle, .nav-dark-toggle { color: var(--color-text-light) !important; }
.nav-search-toggle:hover, .nav-dark-toggle:hover { color: var(--color-text) !important; }
.main-nav .sub-menu {
    background: var(--card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--cs-radius-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
html.dark .main-nav .sub-menu { box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.main-nav .sub-menu a { color: var(--color-text-light) !important; }
.main-nav .sub-menu a:hover { color: var(--color-text) !important; background: var(--cs-muted); }

/* ---- 首页 / 归档列表：行式，不再是一张张浮卡 ---- */
body.is-list .site { background: var(--color-bg); }
.post-item {
    background: var(--card-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--cs-radius-xl) !important;
    box-shadow: var(--cs-shadow-xs) !important;
    transition: border-color .15s ease, background-color .15s ease;
}
.post-item:hover { border-color: var(--cs-ring) !important; box-shadow: var(--cs-shadow-xs) !important; }
.post-title, .post-title a, .post-title-link { color: var(--color-text) !important; font-weight: 600; }
.post-title a:hover, .post-title-link:hover { color: var(--color-text) !important; text-decoration: underline; text-underline-offset: 3px; }
.post-meta, .post-meta a, .post-item .post-meta span { color: var(--color-text-light) !important; }
.post-excerpt { color: var(--color-text-light) !important; }
.post-more, .read-more { color: var(--color-text) !important; }
.tag, .post-tags a, .post-categories a {
    border: 1px solid var(--color-border);
    border-radius: var(--cs-radius-sm);
    color: var(--color-text-light) !important;
    background: transparent;
}
.tag:hover, .post-tags a:hover { background: var(--cs-muted); color: var(--color-text) !important; }

/* ---- 侧栏卡片 ---- */
.sidebar .widget {
    background: var(--card-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--cs-radius-xl) !important;
    box-shadow: var(--cs-shadow-xs) !important;
}
.widget-title { color: var(--color-text) !important; font-weight: 600; border-color: var(--color-border) !important; }
.widget-list li a, .widget-list a { color: var(--color-text-light) !important; }
.widget-list li a:hover, .widget-list a:hover { color: var(--color-text) !important; }

/* ---- 页脚：白底 + 上边框（不再深色块） ---- */
.site-footer {
    background: var(--color-bg) !important;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light) !important;
}
.site-footer a, .footer-info, .footer-info a { color: var(--color-text-light) !important; }
.site-footer a:hover { color: var(--color-text) !important; }

/* ---- 文章页排版 ---- */
body.is-post .post-content { color: var(--color-text); }
body.is-post .post-content a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cs-border); }
body.is-post .post-content a:hover { text-decoration-color: currentColor; }
body.is-post .post-content h2,
body.is-post .post-content h3,
body.is-post .post-content h4 { color: var(--color-text); font-weight: 600; letter-spacing: -.01em; }
body.is-post .post-content code { background: var(--cs-muted); border: 1px solid var(--color-border); border-radius: 4px; color: var(--color-text); }
body.is-post .post-content pre { background: var(--cs-muted); border: 1px solid var(--color-border); border-radius: var(--cs-radius-md); }
body.is-post .post-content blockquote {
    border-left: 2px solid var(--color-border);
    background: var(--cs-muted);
    color: var(--color-text-light);
    border-radius: 0 var(--cs-radius-md) var(--cs-radius-md) 0;
}
body.is-post .post-content table th { background: var(--cs-muted); color: var(--color-text-light); font-weight: 500; }
body.is-post .post-content table th,
body.is-post .post-content table td { border-color: var(--color-border); }
body.is-post .post-header, body.is-post .post-title { color: var(--color-text); }

/* 评论 / 分页 / 搜索框 */
.comment-list .comment-card, .comment-body, #comments .comment {
    background: var(--card-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--cs-radius-xl) !important;
}
.page-navigator li a, .page-navigator li span {
    border: 1px solid var(--color-border);
    border-radius: var(--cs-radius-md);
    color: var(--color-text-light);
}
.page-navigator li a:hover { background: var(--cs-muted); color: var(--color-text); }
.page-navigator .current a, .page-navigator li.current span { background: var(--cs-primary); border-color: var(--cs-primary); color: var(--cs-primary-foreground); }
input[type=text], input[type=search], input[type=email], input[type=url], textarea {
    background: var(--card-bg);
    border: 1px solid var(--cs-input);
    border-radius: var(--cs-radius-md);
    color: var(--color-text);
}
input[type=text]:focus, input[type=search]:focus, textarea:focus {
    border-color: var(--cs-ring);
    box-shadow: 0 0 0 3px rgba(163, 163, 163, .2);
    outline: none;
}

/* ---- 标签云：低饱和色相（与条目标签同源） ---- */
.tagcloud .tag-link {
    border: 1px solid var(--cs-border) !important;
    border-radius: var(--cs-radius-sm) !important;
    background: transparent !important;
    color: var(--color-text-light) !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tagcloud .tag-link:hover { border-color: var(--cs-ring) !important; filter: none !important; transform: none !important; }
.tagcloud .tag-link.cs-tag-h1 { background: var(--cs-h1-bg) !important; color: var(--cs-h1-fg) !important; border-color: var(--cs-h1-bd) !important; }
.tagcloud .tag-link.cs-tag-h2 { background: var(--cs-h2-bg) !important; color: var(--cs-h2-fg) !important; border-color: var(--cs-h2-bd) !important; }
.tagcloud .tag-link.cs-tag-h3 { background: var(--cs-h3-bg) !important; color: var(--cs-h3-fg) !important; border-color: var(--cs-h3-bd) !important; }
.tagcloud .tag-link.cs-tag-h4 { background: var(--cs-h4-bg) !important; color: var(--cs-h4-fg) !important; border-color: var(--cs-h4-bd) !important; }
.tagcloud .tag-link.cs-tag-h5 { background: var(--cs-h5-bg) !important; color: var(--cs-h5-fg) !important; border-color: var(--cs-h5-bd) !important; }
.tagcloud .tag-link.cs-tag-h6 { background: var(--cs-h6-bg) !important; color: var(--cs-h6-fg) !important; border-color: var(--cs-h6-bd) !important; }
.tagcloud .tag-link.cs-tag-h7 { background: var(--cs-h7-bg) !important; color: var(--cs-h7-fg) !important; border-color: var(--cs-h7-bd) !important; }
.tagcloud .tag-link.cs-tag-h8 { background: var(--cs-h8-bg) !important; color: var(--cs-h8-fg) !important; border-color: var(--cs-h8-bd) !important; }
/* 旧的热度分级背景色让位给色相 */
.tagcloud .tag-link.tag-lv1, .tagcloud .tag-link.tag-lv2,
.tagcloud .tag-link.tag-lv3, .tagcloud .tag-link.tag-lv4,
.tagcloud .tag-link.tag-lv5 { background: var(--cs-h1-bg) !important; }

/* ---- 404 与代码页也跟随 ---- */
.site-footer .footer-icp, .footer-info a { color: var(--color-text-light) !important; }

/* ===========================================================================
   批 4：按评审意见收口（品牌标 / 列表层次 / 标签云单色 / 侧栏节奏）
   =========================================================================== */

/* ---- 品牌：统一字重，去掉像输入光标的闪竖线，改一个静态圆点 ---- */
.brand-link .brand-hello { color: var(--color-header-text) !important; font-weight: 700 !important; opacity: .55; letter-spacing: -.01em; }
.brand-link .brand-world { color: var(--color-header-text) !important; font-weight: 700 !important; margin-left: .26em; letter-spacing: -.01em; }
.brand-link:hover .brand-hello { opacity: .78; }
.brand-link .brand-caret { display: none !important; animation: none !important; }
.brand-link .brand-dot {
    display: inline-block; width: 4px; height: 4px; margin-left: 6px; border-radius: 1px;
    background: currentColor; opacity: .45; transform: translateY(-.42em);
}
.brand-link:hover .brand-dot { opacity: .8; }

/* ---- 列表：分类徽章 / 阅读时长 / 阅读全文 ---- */
.post-item .post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-item .post-meta .sep { display: none; }
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .35; }
.post-item .post-cat,
.post-item .post-cat a {
    display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
    border: 1px solid var(--color-border); border-radius: var(--cs-radius-sm);
    background: var(--cs-muted); color: var(--color-text-light) !important;
    font-size: 11.5px; font-weight: 500; text-decoration: none !important;
}
.post-item .post-cat a:hover { color: var(--color-text) !important; border-color: var(--cs-ring); }
.post-item .post-rt { font-size: 12px; color: var(--color-text-light); font-variant-numeric: tabular-nums; }
.post-item .read-more {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
    color: var(--color-text) !important; font-size: 13px; font-weight: 500;
    text-decoration: none !important;
    border-bottom: 1px solid var(--cs-border);
    padding-bottom: 1px;
    transition: border-color .15s ease, gap .15s ease;
}
.post-item .read-more:hover { border-bottom-color: currentColor; gap: 7px; }
.post-item .read-more-arrow { font-size: 12px; line-height: 1; transition: transform .15s ease; }

/* ---- 标签云：单色灰底，hover 才提亮（与黑白灰主调一致） ---- */
.tagcloud .tag-link,
.tagcloud .tag-link.cs-tag-h1, .tagcloud .tag-link.cs-tag-h2, .tagcloud .tag-link.cs-tag-h3,
.tagcloud .tag-link.cs-tag-h4, .tagcloud .tag-link.cs-tag-h5, .tagcloud .tag-link.cs-tag-h6,
.tagcloud .tag-link.cs-tag-h7, .tagcloud .tag-link.cs-tag-h8,
.tagcloud .tag-link.tag-lv1, .tagcloud .tag-link.tag-lv2, .tagcloud .tag-link.tag-lv3,
.tagcloud .tag-link.tag-lv4, .tagcloud .tag-link.tag-lv5 {
    background: var(--cs-muted) !important;
    color: var(--color-text-light) !important;
    border: 1px solid transparent !important;
    border-radius: var(--cs-radius-sm) !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    font-weight: 500;
}
.tagcloud .tag-link:hover {
    background: var(--cs-primary) !important;
    color: var(--cs-primary-foreground) !important;
    border-color: var(--cs-primary) !important;
    transform: none !important;
    filter: none !important;
}
.tagcloud .collapse-summary { font-size: 12px; color: var(--color-text-light); }
.tagcloud .collapse-summary:hover { color: var(--color-text); }

/* ---- 侧栏节奏：卡片之间收紧、标题下留白统一 ---- */
body .sidebar .widget { margin-bottom: 12px !important; }
body .sidebar .widget:last-child { margin-bottom: 0 !important; }
body .sidebar .widget-title { margin: 0 0 10px !important; font-size: 13px !important; letter-spacing: .01em; }
body .sidebar .tagcloud { gap: 6px !important; row-gap: 6px !important; }


/* === brand.css === */
/* ===========================================================================
   brand.css — 「提神」层：一处品牌主色 + 列表缩略图节奏 + 字标 + 头像卡封面 + 马卡龙标签云
   加载顺序：style.css → coss.css → brand.css（filemtime 版本号，见 header.php）
   回滚：删掉本文件 + header.php 那一行 <link> 即可，模板类名沿用原有。
   主色只出现在：标题/阅读全文 hover、分类胶囊、导航当前项指示条、字标圆点、标签 hover。
   =========================================================================== */

:root {
    /* 琥珀暗金（amber-700，亮色下 5.02:1，可作正文色） */
    --brand: #b45309;
    --brand-strong: #92400e;
    --brand-soft: rgba(180, 83, 9, .07);
    --brand-soft-2: rgba(180, 83, 9, .14);
    --brand-ring: rgba(180, 83, 9, .30);
}
html.dark, :root.dark {
    /* 暗色下同一色相提亮（9.1:1） */
    --brand: #f59e0b;
    --brand-strong: #fbbf24;
    --brand-soft: rgba(245, 158, 11, .12);
    --brand-soft-2: rgba(245, 158, 11, .20);
    --brand-ring: rgba(245, 158, 11, .32);
}

/* ---------------------------------------------------------------------------
   0. 汉堡按钮：.nav-toggle .bar 在 style.css 里写死 #fff，亮色白页头上等于隐形
   --------------------------------------------------------------------------- */
.nav-toggle .bar { background: var(--color-header-text) !important; }

/* ---------------------------------------------------------------------------
   1. 字标：粗衬线大字 SEERKING + 主色小方块，下挂两行极小的大写副标
   --------------------------------------------------------------------------- */
h1.site-title.brand,
p.site-title.brand {
    margin: 0;
    font-size: inherit;
    line-height: 1;
}
.nav-action-label { display: none; }
.brand-link {
    display: inline-flex;
    align-items: center;
    font-size: inherit;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    line-height: 1;
}
.brand-glyph {
    display: flex;
    align-items: center;
    width: 21px;
    height: 23px;
    margin-right: 8px;
    color: var(--brand);
    flex: 0 0 auto;
}
.brand-glyph svg {
    width: 100%;
    height: 100%;
    display: block;
}
.brand-lockup {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.brand-word {
    display: flex;
    align-items: flex-end;
    font-family: Georgia, 'Times New Roman', 'Songti SC', 'STSong', serif;
    font-size: 23px;
    font-weight: 700;
    line-height: .9;
    letter-spacing: .015em;
    text-transform: uppercase;
    color: var(--color-header-text);
    transition: letter-spacing .25s ease;
}
.brand-link .brand-mark {
    color: inherit !important;
    font-weight: 700;
    letter-spacing: inherit;
    opacity: 1;
}
.brand-square {
    width: 6px;
    height: 6px;
    margin-left: 5px;
    margin-bottom: 2px;
    background: var(--brand);
    border-radius: 0;
    transition: transform .18s ease;
}
.brand-link:hover .brand-square { transform: translateY(-2px); }
.brand-tagline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', sans-serif;
    font-size: 7px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: .92;
}

/* ---------------------------------------------------------------------------
   2. 导航：当前栏目的主色指示条（仅桌面，移动端抽屉有自己的 inset 竖条）
   --------------------------------------------------------------------------- */
@media (min-width: 901px) {
    /* 用文字下划线而不是绝对定位的伪元素：下划线由文字引擎绘制，
       天然与字形对齐（伪元素 left/right + 旧 width:60% 会互相打架，实测偏左 20px） */
    .main-nav > ul > li.current > a,
    .main-nav > ul > li.current > .nav-parent-label {
        text-decoration: underline;
        text-decoration-color: var(--brand);
        text-decoration-thickness: 2px;
        text-decoration-skip-ink: none;
        text-underline-offset: .44em;
    }
    .main-nav > ul > li.current > a::after,
    .main-nav > ul > li.current > .nav-parent-label::after {
        content: none !important;
        display: none !important;
        background: none !important;
    }
}

/* 移动端抽屉：撑满页头以下的整个屏幕，内容在抽屉内滚动
   （style.css 后面还有一条 .main-nav.open{max-height:70vh} 会赢，导致只显示 70% 高度、下面的项被截断） */
@media (max-width: 900px) {
    .main-nav.open {
        max-height: none !important;
        height: calc(100vh - var(--header-h, 56px));
        height: calc(100dvh - var(--header-h, 56px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}
/* 移动端抽屉：底色跟随主题（原来是写死的深色），当前项主色左竖条 */
@media (max-width: 900px) {
    .main-nav {
        background: var(--color-bg) !important;
        border-top: 1px solid var(--color-border) !important;
        backdrop-filter: none !important;
    }
    .main-nav li > a,
    .main-nav li > .nav-parent-label {
        color: var(--color-text-light) !important;
        border-bottom-color: var(--color-border) !important;
    }
    .main-nav li.current > a,
    .main-nav li.current > .nav-parent-label {
        color: var(--color-text) !important;
        background: var(--brand-soft) !important;
        box-shadow: inset 3px 0 0 var(--brand) !important;
    }
    .nav-search-toggle, .nav-dark-toggle {
        color: var(--color-text-light) !important;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    .nav-action-label {
        display: inline;
        font-size: 14px;
        font-weight: 500;
    }
    .nav-search-toggle:hover, .nav-dark-toggle:hover { color: var(--color-text) !important; }
    .main-nav li.nav-search, .main-nav li.nav-dark, .main-nav li.nav-login {
        border-top-color: var(--color-border) !important;
    }
    .main-nav li.nav-search { padding: 10px 24px; flex-wrap: wrap; gap: 8px; }
    .main-nav li.nav-dark { padding: 10px 24px; }
    .main-nav li.nav-login a { color: var(--brand) !important; }
    .main-nav .sub-menu {
        position: static !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .main-nav .sub-menu a {
        color: var(--color-text-light) !important;
        padding: 10px 24px 10px 40px !important;
        border-bottom: 1px solid var(--color-border) !important;
    }
    .main-nav .sub-menu a:hover { color: var(--color-text) !important; background: var(--brand-soft) !important; }
    .main-nav .sub-menu li.current a { color: var(--brand) !important; }
}

/* ---------------------------------------------------------------------------
   3. 列表：标题 / 阅读全文 hover 走主色；分类胶囊用微弱主色底
   --------------------------------------------------------------------------- */
.post-item .post-title a:hover,
.post-item .post-title-link:hover {
    color: var(--brand-strong) !important;
    /* 标题 hover 只变色、不加下划线（用户要求） */
    text-decoration: none !important;
}
.post-item .read-more:hover {
    color: var(--brand-strong) !important;
    border-bottom-color: var(--brand) !important;
}
.post-item .read-more:hover .read-more-arrow { transform: translateX(2px); }

/* 分类胶囊：外层容器透明，内层链接才是胶囊，避免半透明底叠两次 */
.post-item .post-cat,
.post-item .post-meta .category {
    background: transparent !important;
    border-color: transparent !important;
    padding: 0 !important;
    height: auto !important;
}
.post-item .post-cat a,
.post-item .post-meta .category a {
    background: var(--brand-soft) !important;
    color: var(--brand-strong) !important;
    border-color: transparent !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
}
.post-item .post-cat a:hover,
.post-item .post-meta .category a:hover {
    background: var(--brand-soft-2) !important;
    color: var(--brand-strong) !important;
}

/* ---------------------------------------------------------------------------
   4. 缩略图：有图的文章才出图，16:10 圆角贴在卡片右侧；纯文字卡保持无图
   --------------------------------------------------------------------------- */
.post-item { display: flex; align-items: flex-start; gap: 20px; }
.post-item > .post-main { flex: 1 1 auto; min-width: 0; }
.post-thumb {
    flex: 0 0 200px;
    width: 200px;
    order: -1;              /* 缩略图放左侧 */
    align-self: stretch;    /* 高度跟随文字区，避免左侧下方留白 */
    aspect-ratio: auto;
    min-height: 128px;
    margin-top: 2px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--cs-muted);
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.post-thumb:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
    .post-item { gap: 12px; }
    .post-thumb { flex: 0 0 78px; width: 78px; height: 78px; min-height: 0; align-self: flex-start; aspect-ratio: 1 / 1; border-radius: 8px; }
}

/* ---------------------------------------------------------------------------
   5. 页脚：累计访客 / 备案号在浅色页脚上要看得见
   --------------------------------------------------------------------------- */
.site-footer .footer-visitors { color: var(--color-text-light) !important; }
.site-footer .footer-visitors b { color: var(--brand) !important; }

/* ---------------------------------------------------------------------------
   6. 标签云：低饱和马卡龙色相（与 cs-h1..h8 同一套），hover 走主色
   --------------------------------------------------------------------------- */
.tagcloud .tag-link,
.tagcloud .tag-link.cs-tag-h1, .tagcloud .tag-link.cs-tag-h2, .tagcloud .tag-link.cs-tag-h3,
.tagcloud .tag-link.cs-tag-h4, .tagcloud .tag-link.cs-tag-h5, .tagcloud .tag-link.cs-tag-h6,
.tagcloud .tag-link.cs-tag-h7, .tagcloud .tag-link.cs-tag-h8,
.tagcloud .tag-link.tag-lv1, .tagcloud .tag-link.tag-lv2, .tagcloud .tag-link.tag-lv3,
.tagcloud .tag-link.tag-lv4, .tagcloud .tag-link.tag-lv5 {
    background: var(--cs-muted) !important;
    color: var(--color-text-light) !important;
    border: 1px solid transparent !important;
}
.tagcloud .tag-link.cs-tag-h1 { background: var(--cs-h1-bg) !important; color: var(--cs-h1-fg) !important; }
.tagcloud .tag-link.cs-tag-h2 { background: var(--cs-h2-bg) !important; color: var(--cs-h2-fg) !important; }
.tagcloud .tag-link.cs-tag-h3 { background: var(--cs-h3-bg) !important; color: var(--cs-h3-fg) !important; }
.tagcloud .tag-link.cs-tag-h4 { background: var(--cs-h4-bg) !important; color: var(--cs-h4-fg) !important; }
.tagcloud .tag-link.cs-tag-h5 { background: var(--cs-h5-bg) !important; color: var(--cs-h5-fg) !important; }
.tagcloud .tag-link.cs-tag-h6 { background: var(--cs-h6-bg) !important; color: var(--cs-h6-fg) !important; }
.tagcloud .tag-link.cs-tag-h7 { background: var(--cs-h7-bg) !important; color: var(--cs-h7-fg) !important; }
.tagcloud .tag-link.cs-tag-h8 { background: var(--cs-h8-bg) !important; color: var(--cs-h8-fg) !important; }
.tagcloud .tag-link:hover,
.tagcloud .tag-link.cs-tag-h1:hover, .tagcloud .tag-link.cs-tag-h2:hover,
.tagcloud .tag-link.cs-tag-h3:hover, .tagcloud .tag-link.cs-tag-h4:hover,
.tagcloud .tag-link.cs-tag-h5:hover, .tagcloud .tag-link.cs-tag-h6:hover,
.tagcloud .tag-link.cs-tag-h7:hover, .tagcloud .tag-link.cs-tag-h8:hover {
    background: var(--brand-soft-2) !important;
    color: var(--brand-strong) !important;
    border-color: var(--brand-ring) !important;
    transform: none !important;
    filter: none !important;
}

/* ---------------------------------------------------------------------------
   7. 移动端字标
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .brand-glyph { width: 19px; height: 21px; margin-right: 6px; }
    .brand-glyph .ding-claw { display: none; }
    .brand-word { font-size: 17px; }
    .brand-tagline { font-size: 5.5px; letter-spacing: .13em; gap: 1px; }
    .brand-lockup { gap: 3px; }
    .brand-square { width: 5px; height: 5px; }
}

/* ---------------------------------------------------------------------------
   8. 侧栏头像：去掉 3px 深色描边（coss 的 .avatar img 抢了 --color-primary）
   --------------------------------------------------------------------------- */
.widget-profile .avatar-img,
.avatar-img {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* 移动端页头改 fixed -------------------------------------------------------------------
   症状：滚到页面下方点汉堡，菜单"弹不出来"。
   根因：点开抽屉时脚本给 body 加了 .nav-open{overflow:hidden}；body 一旦 overflow:hidden
   就成为滚动容器且自身不滚动，页头的 position:sticky 当场失效，页头连同绝对定位的抽屉
   一起跳回文档顶部（视口外）。改 fixed 后完全不依赖 scroll 容器语义。
   ------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
    :root { --header-h: 57px; }

    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 300 !important;
    }

    .site {
        padding-top: var(--header-h);
        min-height: calc(100vh - var(--header-h));
        min-height: calc(100dvh - var(--header-h));
    }

    .main-nav,
    .main-nav.open {
        position: fixed !important;
        top: var(--header-h) !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 290 !important;
    }
}

/* ---------------------------------------------------------------------------
   7. 首页列表信息密度 v2（2026-11-25）
      用户要求：缩略图统一 4:3、压低每行高度，一屏放下更多文章。
      做法：缩略图从「拉伸填满文字区」改为固定 4:3 盒子（176×132）；
      标题 20→17px、正文字距收紧、卡片内边距 18/22→14/18，整卡 231→~165px。
      注意 `.post-thumb` 原规则是 align-self:stretch + aspect-ratio:auto，
      必须同时改回 flex-start + 4/3，否则 aspect-ratio 会被 stretch 覆盖。
   --------------------------------------------------------------------------- */
.post-list { gap: 10px; }
.post-item { padding: 14px 18px; gap: 16px; }
.post-thumb {
    flex: 0 0 176px;
    width: 176px;
    height: auto;
    aspect-ratio: 4 / 3;
    align-self: flex-start;
    min-height: 0;
    margin-top: 0;
}
.post-thumb img { height: 100%; }
.post-list .post-title {
    font-size: 17px;
    line-height: 1.38;
    margin-bottom: 4px;
}
.post-item .post-meta { font-size: 12px; margin-bottom: 6px; }
.post-item .post-excerpt {
    font-size: 13px;
    line-height: 1.62;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
}
.post-item .read-more { font-size: 12.5px; padding: 2px 0; }
/* 首条大卡同步压缩，避免一张卡吃掉两行的空间 */
.post-item.is-lead { padding: 18px 22px; }
.post-item.is-lead .post-title { font-size: 20px; line-height: 1.4; margin-bottom: 6px; }
.post-item.is-lead .post-excerpt { font-size: 13.5px; line-height: 1.65; -webkit-line-clamp: 2; margin-bottom: 8px; }

@media (max-width: 640px) {
    .post-list { gap: 8px; }
    .post-item { padding: 12px 14px; gap: 12px; }
    /* 手机端原本是 78×78 正方形，改 88×66（4:3） */
    .post-thumb { flex: 0 0 88px; width: 88px; height: auto; aspect-ratio: 4 / 3; align-self: flex-start; }
    .post-list .post-title { font-size: 16px; line-height: 1.35; }
    /* 元信息挤成一行：去掉间隔点、字号 11px、gap 6，否则「N 条评论」会单独换行 */
    .post-item .post-meta { font-size: 11px; gap: 6px; margin-bottom: 4px; }
    .post-item .post-meta .post-meta-dot { display: none; }
    .post-item .post-excerpt { font-size: 12.5px; line-height: 1.55; }
    .post-item.is-lead { padding: 16px 14px; }
    .post-item.is-lead .post-title { font-size: 18px; }
}

/* 极窄屏（<=480px）：文章卡片改为「上图下文」，避免标题被缩略图挤压成 4-5 行 */
@media (max-width: 480px) {
    .post-item.has-thumb {
        flex-direction: column;
        gap: 10px;
    }
    .post-item.has-thumb .post-thumb {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }
}


/* === halo-glow.css === */
/* ============================================================================
   halo-glow.css — 暗黑 + 彩虹光晕（无边框线，光晕只在悬停/聚焦时出现）
   ----------------------------------------------------------------------------
   作用域：**仅暗色模式**。全部规则都挂在 `:root.dark` 下，亮色模式一条都不命中。

   适配：seerking.com / MimoTheme（Typecho）
   引入：usr/themes/<主题>/assets/css/halo-glow.css + header.php 一行 link

   效果：
   · 卡片 / 侧栏卡 / 评论框 **不画任何边框线**（保留 1px 透明边框占位，不改布局）
   · 静息态：干净的深色卡片，没有光、没有动画（不耗 GPU）
   · 悬停 / 键盘聚焦：外扩 12px 的四角彩虹柔光淡入（青蓝·左上 / 蓝紫·右上 /
     粉紫·左下 / 橙黄·右下），并在悬停期间轻微呼吸（亮度起伏 + 色相漂移）
   · 输入框 / 按钮 / 分页 / 标签：静息只有中性细边，hover / focus 才起微光

   ⚠ 改这个文件前必读：
   1) 不要用 `@property --angle` + `conic-gradient(from var(--angle))` 驱动渐变：
      Chrome/Safari 不为「自定义属性 → 间接 var() → 渐变」建立重绘失效，
      表现是刷新后动一下、之后永不流动。CDP 截图会强制重绘，比对会假通过。
   2) 不要用「条纹 + background-position」做流光：左右边只有 1px 宽只会闪色，
      四边观感不一致。
   3) coss.css 有 `.post-item { background: var(--card-bg) !important }` 这类背景
      简写 !important，会重置同元素的 background-position/size；发光/旋转一律画在
      ::after 上，避免和它打架，也避免 filter 影响卡片文字。
   4) 光晕用「四角 radial-gradient」而不是 filter: blur —— 同一元素上 filter 已被
      hue-rotate/brightness 动画占用，两个 filter 会互相覆盖。
   5) 淡入用 opacity 过渡、呼吸用 filter 动画：两者分开，否则 keyframes 里的
      opacity 会盖掉过渡，悬停时"啪"地一下亮起。
   ============================================================================ */

:root {
    /* 光晕四角色（写成 RGB 三元组，方便按需调透明度） */
    --halo-g1: 56, 225, 255;    /* 青蓝 */
    --halo-g2: 124, 107, 255;   /* 蓝紫 */
    --halo-g3: 255, 107, 214;   /* 粉紫 */
    --halo-g4: 255, 154, 60;    /* 橙黄 */

    /* 实心底色：必须是实色，半透明会让光晕透进内容区 */
    --halo-card-fill: #0f1116;
    --halo-field-fill: #0b0d11;
    --halo-btn-fill: #161b22;
    /* 当前页/强调底使用站点品牌琥珀主色（与亮色模式视觉统一，5.02:1 对比度） */
    --halo-accent: #b45309;
    --halo-sheen: rgba(255, 255, 255, 0.055);
}

/* 悬停期间的呼吸：亮度起伏 + 色相漂移，一条动画搞定（合成器执行，稳定重绘） */
@keyframes halo-pulse {
    0%   { filter: blur(10px) hue-rotate(0deg)   brightness(1); }
    50%  { filter: blur(10px) hue-rotate(180deg) brightness(1.22); }
    100% { filter: blur(10px) hue-rotate(360deg) brightness(1); }
}

@supports (background: conic-gradient(from 0deg, red, blue)) {

/* ==========================================================================
   0. 暗色页面压到更深的黑（不想要就删这一行）
   ========================================================================== */
:root.dark body { background: #07080a; }

/* ==========================================================================
   1. 卡片：文章项 / 侧栏 widget / 评论框
   ========================================================================== */
:root.dark .post-item,
:root.dark .sidebar .widget,
:root.dark .respond {
    position: relative;
    /* 1px 透明边框只为保留布局尺寸，不画线 */
    border: 1px solid transparent !important;
    background-image:
        linear-gradient(180deg, var(--halo-sheen), rgba(255, 255, 255, 0) 42%),
        linear-gradient(var(--halo-card-fill), var(--halo-card-fill)) !important;
    background-clip: padding-box, padding-box !important;
    box-shadow: none;
    transition: box-shadow 0.4s ease;
}
/* 文章卡 / 评论框保留一层很轻的落影；侧栏卡不加，留给悬停呼吸（动画打不过 !important） */
:root.dark .post-item,
:root.dark .respond {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28) !important;
}

/* 光晕层：静息完全透明；悬停才淡入并呼吸（侧栏卡不用彩色光晕，见下面 widget-breathe） */
:root.dark .post-item::after,
:root.dark .respond::after {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    border-radius: 14px;
    pointer-events: none;
    /* 色斑中心内收（15%/85%），再叠 blur 羽化 —— 只有柔光溢出，不会在外缘结成一条实色边 */
    background:
        radial-gradient(70% 80% at 15% 12%,  rgba(var(--halo-g1), 0.85), transparent 72%),
        radial-gradient(70% 80% at 85% 12%,  rgba(var(--halo-g2), 0.85), transparent 72%),
        radial-gradient(70% 80% at 15% 88%,  rgba(var(--halo-g3), 0.78), transparent 72%),
        radial-gradient(70% 80% at 85% 88%,  rgba(var(--halo-g4), 0.70), transparent 72%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

:root.dark .post-item:hover::after,
:root.dark .post-item:focus-visible::after,
:root.dark .respond:hover::after,
:root.dark .respond:focus-within::after {
    opacity: 1;
    animation: halo-pulse 4.5s ease-in-out infinite;
}

/* 侧栏卡片：不用四角彩虹环（小卡上会看着像粗彩边），
   只用一层低饱和双色柔光 + 更大的 blur，悬停时淡入并呼吸 */
:root.dark .sidebar .widget::after {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: -1;
    border-radius: 26px;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 50% 8%,  rgba(var(--halo-g2), 0.42), transparent 100%),
        radial-gradient(closest-side at 50% 92%, rgba(var(--halo-g1), 0.34), transparent 100%);
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.45s ease;
}
:root.dark .sidebar .widget:hover::after {
    opacity: 1;
    animation: halo-pulse-soft 5s ease-in-out infinite;
}
/* 只做明暗呼吸（不转色相）：紫/青两色固定，不会飘成黄绿 */
@keyframes halo-pulse-soft {
    0%, 100% { filter: blur(16px) brightness(1); }
    50%      { filter: blur(16px) brightness(1.38); }
}

/* 悬停时文章卡本身也给一点抬升感（无边框，只有彩色外发光） */
:root.dark .post-item:hover {
    box-shadow:
        0 0 18px -6px rgba(var(--halo-g1), 0.30),
        0 0 46px -14px rgba(var(--halo-g3), 0.28),
        0 12px 30px -18px rgba(var(--halo-g2), 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* 键盘聚焦：不画线，用光晕 + 可见焦点环（可访问性需要） */
:root.dark .post-item:focus-visible {
    outline: 2px solid rgba(var(--halo-g2), 0.85);
    outline-offset: 3px;
}

:root.dark .respond { padding: 20px; }

/* ==========================================================================
   2. 搜索框 / 输入框：静息中性细边，hover/focus 起微光
   ========================================================================== */
:root.dark .comment-form input[type="text"],
:root.dark .comment-form input[type="email"],
:root.dark .comment-form input[type="url"],
:root.dark .comment-form .text,
:root.dark .comment-form .textarea,
:root.dark .search-field {
    background-color: var(--halo-field-fill) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
:root.dark .comment-form input[type="text"]:focus,
:root.dark .comment-form input[type="email"]:focus,
:root.dark .comment-form input[type="url"]:focus,
:root.dark .comment-form .text:focus,
:root.dark .comment-form .textarea:focus,
:root.dark .search-field:focus {
    outline: none;
    border-color: rgba(var(--halo-g1), 0.55) !important;
    box-shadow:
        0 0 0 3px rgba(var(--halo-g2), 0.16),
        0 0 18px -4px rgba(var(--halo-g1), 0.45) !important;
}

/* 导航栏搜索框：坐在深色 header 上，底色用固定的近黑实色 */
:root.dark .nav-search-input {
    color: #e6edf3;
    background-color: #12161d !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
:root.dark .nav-search-input:focus {
    outline: none;
    border-color: rgba(var(--halo-g1), 0.55) !important;
    box-shadow:
        0 0 0 3px rgba(var(--halo-g2), 0.16),
        0 0 18px -4px rgba(var(--halo-g1), 0.45) !important;
}

/* ==========================================================================
   3. 按钮：提交评论 / 搜索
   ========================================================================== */
:root.dark .submit,
:root.dark .search-submit {
    background-color: var(--halo-btn-fill) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #e6edf3 !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
:root.dark .submit:hover,
:root.dark .submit:focus-visible,
:root.dark .search-submit:hover,
:root.dark .search-submit:focus-visible {
    outline: none;
    border-color: rgba(var(--halo-g3), 0.55) !important;
    box-shadow:
        0 0 0 3px rgba(var(--halo-g2), 0.14),
        0 0 20px -4px rgba(var(--halo-g3), 0.45) !important;
}

/* ==========================================================================
   4. 分页：无线条；当前页保留主色底（框架的 --color-primary 暗色下是近白）
   ========================================================================== */
:root.dark .pagination .current,
:root.dark .pagination .current > a {
    background-image: none !important;
    background-color: var(--halo-accent) !important;
    border-color: var(--halo-accent) !important;
    color: #fff !important;
}
:root.dark .pagination a:hover,
:root.dark .pagination a:focus-visible {
    box-shadow: 0 0 14px -4px rgba(var(--halo-g2), 0.45) !important;
    border-color: rgba(var(--halo-g2), 0.45) !important;
}

/* 返回顶部按钮：暗色下使用深色浮层 + 品牌琥珀图标，避免刺眼纯白圆底 */
:root.dark .back-to-top {
    background: var(--halo-btn-fill) !important;
    color: var(--brand, #f59e0b) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}
:root.dark .back-to-top:hover,
:root.dark .back-to-top:focus-visible {
    background: #1f2630 !important;
    border-color: var(--brand, #f59e0b) !important;
    box-shadow: 0 0 16px -4px rgba(245, 158, 11, 0.45) !important;
}

/* ==========================================================================
   5. 标签 / 分类链接：无线条，hover 只给一点柔光
   --------------------------------------------------------------------------
   主题链（style.css → coss.css → brand.css）对 tag-link 的 background 有多层
   !important 覆盖，所以这里只动 box-shadow，不碰背景。
   ========================================================================== */
:root.dark .tagcloud .tag-link:hover,
:root.dark .tagcloud .tag-link:focus-visible {
    box-shadow: 0 0 16px -4px rgba(var(--halo-g2), 0.45) !important;
}
:root.dark .post-item .post-cat a:hover,
:root.dark .post-item .post-cat a:focus-visible,
:root.dark .post-tags a:hover,
:root.dark .post-tags a:focus-visible {
    box-shadow: 0 0 14px -4px rgba(var(--halo-g1), 0.40) !important;
}

} /* @supports 结束 */

/* ==========================================================================
   6. 无障碍：用户要求少动效时，光晕照常出现但不再呼吸
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    :root.dark .post-item:hover::after,
    :root.dark .post-item:focus-visible::after,
    :root.dark .respond:hover::after,
    :root.dark .respond:focus-within::after,
    :root.dark .sidebar .widget:hover {
        animation: none !important;
    }
}


/* === ink.css === */
/* ===== 墨水倾泻主题切换 =====
   快照层：克隆当前页面（旧主题外观）盖在真实页面上，然后用波浪 clip-path
   从下往上把它冲走，露出已切换好的新主题。 */

.ink-snap {
    position: fixed;
    inset: 0;
    z-index: 9990;
    overflow: hidden;
    pointer-events: none;
    will-change: clip-path;
}

.ink-snap__inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

/* ---- 冻结旧主题的变量（:root 与 :root.dark 的合集） ---- */

.ink-snap.snap-light {
    --color-primary: #0969da;
    --color-primary-dark: #0550ae;
    --color-text: #333;
    --color-text-light: #666;
    --color-link: #0969da;
    --color-link-hover: #0550ae;
    --color-border: #e5e5e5;
    --color-bg: #f5f5f5;
    --color-bg-white: #fff;
    --color-bg-code: #f8f8f8;
    --color-header-bg: #0f1011;

    --bg-deep: #f6f8fa;
    --bg-panel: #0f1011;
    --bg-surface: #ffffff;
    --bg-elevated: #f6f8fa;
    --text-primary: #1f2328;
    --text-secondary: #32383f;
    --text-tertiary: #656d76;
    --text-muted: #6f7780;
    --accent-brand: #5e6ad2;
    --accent-interactive: #4c56c8;
    --accent-hover: #3b45b5;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.10);
    --border-strong: rgba(0, 0, 0, 0.16);
    --card-bg: #ffffff;
    --card-bg-hover: #f6f8fa;

    --c-bg: #f6f8fa;
    --c-panel: #ffffff;
    --c-panel-2: #f6f8fa;
    --c-panel-3: #eaeef2;
    --c-border: #d0d7de;
    --c-border-2: #d8dee4;
    --c-text: #1f2328;
    --c-text-2: #32383f;
    --c-text-strong: #1f2328;
    --c-dim: #57606a;
    --c-accent: #1a7f37;
    --c-accent-2: #1a7f37;
    --c-warn: #9a6700;
    --c-bad: #cf222e;
    --c-link: #0969da;
    --c-overlay: rgba(255, 255, 255, 0.88);

    --cs-h1-bg: #eaf2fa; --cs-h1-fg: #214a73; --cs-h1-bd: #c3d9ef;
    --cs-h2-bg: #eafaf5; --cs-h2-fg: #217358; --cs-h2-bd: #c3efe0;
    --cs-h3-bg: #faf6ea; --cs-h3-fg: #735e21; --cs-h3-bd: #efe4c3;
    --cs-h4-bg: #faeeea; --cs-h4-fg: #733621; --cs-h4-bd: #efcec3;
    --cs-h5-bg: #f6eafa; --cs-h5-fg: #5e2173; --cs-h5-bd: #e4c3ef;
    --cs-h6-bg: #eaf8fa; --cs-h6-fg: #216573; --cs-h6-bd: #c3e8ef;
    --cs-h7-bg: #faeaf0; --cs-h7-fg: #73213c; --cs-h7-bd: #efc3d1;
    --cs-h8-bg: #f1faea; --cs-h8-fg: #437321; --cs-h8-bd: #d5efc3;

    color: var(--color-text);
}

.ink-snap.snap-dark {
    --color-text: #e6edf3;
    --color-text-light: #8b949e;
    --color-bg: #0d1117;
    --color-bg-white: #161b22;
    --color-bg-code: #161b22;
    --color-border: #30363d;
    --color-header-bg: #010409;
    --color-primary: #58a6ff;
    --color-primary-dark: #79c0ff;
    --color-link: #58a6ff;
    --color-link-hover: #79c0ff;

    --bg-deep: #08090a;
    --bg-panel: #0f1011;
    --bg-surface: #191a1b;
    --bg-elevated: #23252a;
    --text-primary: #f7f8f8;
    --text-secondary: #d0d6e0;
    --text-tertiary: #8a8f98;
    --text-muted: #62666d;
    --accent-brand: #5e6ad2;
    --accent-interactive: #7170ff;
    --accent-hover: #828fff;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-default: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-bg-hover: rgba(255, 255, 255, 0.04);

    --c-bg: #08090a;
    --c-panel: #0d1117;
    --c-panel-2: #161b22;
    --c-panel-3: #21262d;
    --c-border: #30363d;
    --c-border-2: #3d444d;
    --c-text: #e6edf3;
    --c-text-2: #c9d1d9;
    --c-text-strong: #f0f6fc;
    --c-dim: #8b949e;
    --c-accent: #39d353;
    --c-accent-2: #3fb950;
    --c-warn: #d29922;
    --c-bad: #f85149;
    --c-link: #58a6ff;
    --c-overlay: rgba(13, 17, 23, 0.88);

    --cs-h1-bg: #1d2e3e; --cs-h1-fg: #adc7e1; --cs-h1-bd: #2e4a66;
    --cs-h2-bg: #1d3e33; --cs-h2-fg: #ade1d0; --cs-h2-bd: #2e6653;
    --cs-h3-bg: #3e361d; --cs-h3-fg: #e1d4ad; --cs-h3-bd: #66582e;
    --cs-h4-bg: #3e261d; --cs-h4-fg: #e1baad; --cs-h4-bd: #663c2e;
    --cs-h5-bg: #361d3e; --cs-h5-fg: #d4ade1; --cs-h5-bd: #582e66;
    --cs-h6-bg: #1d393e; --cs-h6-fg: #add8e1; --cs-h6-bd: #2e5d66;
    --cs-h7-bg: #3e1d28; --cs-h7-fg: #e1adbe; --cs-h7-bd: #662e41;
    --cs-h8-bg: #2b3e1d; --cs-h8-fg: #c3e1ad; --cs-h8-bd: #45662e;

    color: var(--color-text);
}

/* ---- 液体层 ---- */

.ink-svg {
    position: fixed;
    inset: 0;
    z-index: 9991;
    pointer-events: none;
    overflow: visible;
}

/* ---- 开关的滑块反馈 ---- */

.nav-dark-toggle.is-switching .icon-sun,
.nav-dark-toggle.is-switching .icon-moon {
    animation: inkIconSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes inkIconSlide {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    45% { transform: translateY(9px) rotate(70deg) scale(0.72); opacity: 0; }
    55% { transform: translateY(-9px) rotate(-70deg) scale(0.72); opacity: 0; }
    100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
}

