:root {
  --cb-canvas: #f5f5f0;
  --cb-card: #e3e8e6;
  --cb-soft: #ecefeb;
  --cb-ink: #252726;
  --cb-body: #414644;
  --cb-muted: #6c7470;
  --cb-line: #dce0dd;
  --cb-primary: #527c88;
  --cb-green: #55705e;
  --cb-yellow: #b6934b;
  --cb-red: #9a5961;
  --cb-dark: #1b1c1a;
}
:root[data-cnblogs-theme="dark"] {
  --cb-canvas: #1b1c1a;
  --cb-card: #292c28;
  --cb-soft: #222421;
  --cb-ink: #f3f1e9;
  --cb-body: #d7d5cd;
  --cb-muted: #aaa79e;
  --cb-line: #3b3e39;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.skin-bluesky { margin: 0; background: var(--cb-canvas); color: var(--cb-ink); font-family: "Noto Sans SC", sans-serif; }
#top_nav, #header, #sideBar, .commentform, #blog_post_info_block { display: none !important; }
#home, #main, #mainContent, #mainContent .forFlow { width: auto; min-width: 0; max-width: none; margin: 0; padding: 0; background: transparent; border: 0; }
#home { min-height: 100vh; }
#footer { width: auto; margin: 0; padding: 28px 5.5vw; border-top: 1px solid var(--cb-line); background: var(--cb-canvas); color: var(--cb-muted); text-align: center; font-size: 12px; line-height: 1.8; }
#footer a { color: var(--cb-muted); }
#main { display: grid !important; grid-template-columns: 248px minmax(0, 900px) 180px; gap: clamp(32px, 5vw, 88px); max-width: 1600px; margin: auto; padding: 72px 5.5vw 104px; }
#main.cb-home { grid-template-columns: 248px minmax(0, 1fr); max-width: 1500px; }
#mainContent { float: none !important; width: auto !important; min-width: 0 !important; overflow: visible; }
.cb-topbar { height: 64px; padding: 0 5.5vw; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--cb-line); background: color-mix(in srgb, var(--cb-canvas) 94%, transparent); backdrop-filter: blur(12px); }
.cb-brand { display: flex; align-items: center; gap: 10px; color: var(--cb-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.cb-brand-mark { color: var(--cb-primary); font: 600 25px/1 Georgia, serif; }
.cb-tools { display: flex; align-items: center; gap: 10px; }
.cb-button { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--cb-line); border-radius: 8px; background: var(--cb-soft); color: var(--cb-body); cursor: pointer; font: 500 13px/1 "Noto Sans SC", sans-serif; text-decoration: none; }
.cb-button:hover { color: var(--cb-primary); border-color: var(--cb-primary); }
.cb-theme { width: 40px; padding: 0; justify-content: center; font: 17px/1 Georgia, serif; }
.cb-left, .cb-right { max-height: calc(100dvh - 96px); position: sticky; top: 88px; align-self: start; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--cb-line) transparent; }
.cb-intro { margin-bottom: 54px; }
.cb-kicker { color: var(--cb-muted); font: 500 11px/1.4 "DM Mono", monospace; letter-spacing: 1px; }
.cb-intro h2 { margin: 18px 0 14px; color: var(--cb-ink); font: 500 38px/1.06 "Cormorant Garamond", Garamond, serif; letter-spacing: -1px; }
.cb-intro h2 em { color: var(--cb-primary); font-style: normal; }
.cb-intro p { margin: 0; color: var(--cb-muted); font-size: 14px; line-height: 1.8; }
.cb-category { margin-bottom: 26px; --cb-category: var(--cb-primary); }
.cb-category:nth-child(4n+2) { --cb-category: var(--cb-green); }
.cb-category:nth-child(4n+3) { --cb-category: var(--cb-yellow); }
.cb-category:nth-child(4n+4) { --cb-category: var(--cb-red); }
.cb-category-toggle { width: 100%; padding: 0 0 10px; display: grid; grid-template-columns: 1fr auto 12px; gap: 8px; border: 0; background: transparent; color: var(--cb-muted); text-align: left; cursor: pointer; font: 500 13px "Noto Sans SC", sans-serif; }
.cb-category-toggle:hover { color: var(--cb-category); }
.cb-category-toggle::after { content: ""; width: 5px; height: 5px; margin-top: 4px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.cb-category-toggle[aria-expanded="false"]::after { transform: rotate(-45deg); }
.cb-count { font: 10px "DM Mono", monospace; }
.cb-category-posts[hidden] { display: none; }
.cb-category-posts a { display: block; margin-left: -9px; padding: 7px 9px; border-radius: 6px; color: var(--cb-body); font-size: 13px; line-height: 1.5; text-decoration: none; }
.cb-category-posts a:hover, .cb-category-posts a[aria-current="page"] { color: var(--cb-category); background: var(--cb-card); }
.cb-post-total { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--cb-line); color: var(--cb-muted); font: 12px "DM Mono", monospace; }
.cb-right-label { color: var(--cb-muted); font: 500 11px "DM Mono", monospace; letter-spacing: 1px; }
.cb-toc { margin-top: 18px; border-left: 1px solid var(--cb-line); }
.cb-toc a { display: block; margin-left: -1px; padding: 8px 0 8px 15px; border-left: 2px solid transparent; color: var(--cb-muted); font-size: 12px; line-height: 1.5; text-decoration: none; }
.cb-toc a[data-level="3"] { padding-left: 27px; font-size: 11px; }
.cb-toc a:hover, .cb-toc a.is-active { color: var(--cb-primary); border-left-color: var(--cb-primary); }
.cb-home-heading { margin: 0 0 36px; color: var(--cb-ink); font: 500 50px/1 "Cormorant Garamond", Garamond, serif; letter-spacing: -1px; }
.cb-featured { margin-bottom: 52px; padding: 40px 42px; border-radius: 12px; background: var(--cb-primary); color: #fff; }
.cb-featured time { font: 500 10px "DM Mono", monospace; letter-spacing: 1px; opacity: .76; }
.cb-featured h2 { margin: 17px 0 14px; font: 500 37px/1.1 "Cormorant Garamond", Garamond, serif; letter-spacing: -.7px; overflow-wrap: anywhere; }
.cb-featured p { max-width: 760px; margin: 0 0 26px; font-size: 15px; line-height: 1.8; opacity: .86; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cb-featured .cb-button { background: #f5f5f0; color: #252726; border-color: transparent; }
.cb-list-label { padding-bottom: 12px; border-bottom: 1px solid var(--cb-line); color: var(--cb-muted); font: 500 11px "DM Mono", monospace; letter-spacing: 1px; }
.cb-post-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--cb-line); color: inherit; text-decoration: none; }
.cb-post-row time { color: var(--cb-muted); font: 10px "DM Mono", monospace; }
.cb-post-row h3 { margin: 0 0 7px; color: var(--cb-ink); font: 500 26px/1.2 "Cormorant Garamond", Garamond, serif; overflow-wrap: anywhere; }
.cb-post-row:hover h3 { color: var(--cb-primary); }
.cb-post-row p { margin: 0; color: var(--cb-muted); font-size: 13px; line-height: 1.6; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#topics { width: auto !important; min-width: 0 !important; }
#topics .post { width: auto !important; min-width: 0 !important; }
#topics .postTitle a, #topics .postTitle2 { display: inline !important; max-width: 100%; overflow-wrap: anywhere; white-space: normal !important; }
#topics .postBody, #topics .postCon { width: auto !important; min-width: 0 !important; }
#post_detail, .post { background: transparent; border: 0; }
#topics .postTitle, #topics .postTitle a, #cb_post_title_url { color: var(--cb-ink) !important; font: 500 58px/1.03 "Cormorant Garamond", Garamond, serif !important; letter-spacing: -1.2px; }
#topics .postTitle { margin: 42px 0 16px; padding: 0; border: 0; }
.postDesc { color: var(--cb-muted); font-size: 12px; }
#cnblogs_post_body { color: var(--cb-body); font-family: "Noto Sans SC", sans-serif !important; font-size: 17px !important; line-height: 1.95 !important; }
#cnblogs_post_body h2 { margin: 52px 0 16px; color: var(--cb-ink); font: 500 34px/1.12 "Cormorant Garamond", Garamond, serif; scroll-margin-top: 88px; }
#cnblogs_post_body h3 { margin: 32px 0 12px; color: var(--cb-ink); font-size: 20px; scroll-margin-top: 88px; }
#cnblogs_post_body p { margin: 0 0 22px; }
#cnblogs_post_body blockquote { margin: 34px 0; padding: 7px 0 7px 22px; border: 0; border-left: 2px solid var(--cb-primary); background: transparent; color: var(--cb-muted); }
#cnblogs_post_body code-box { position: relative; display: block; overflow: hidden; margin: 32px 5px; border-radius: 4px; background: #f5f5fa !important; box-shadow: 0 4px 11px -2px rgb(37 44 97 / 15%), 0 1px 3px rgb(93 100 148 / 6%); }
#cnblogs_post_body code-box .code-tools { position: relative; display: flex; align-items: center; min-height: 28px; height: 28px; overflow: hidden; padding: 6px; border-radius: 4px 4px 0 0; background: #f5f5fa !important; color: #999 !important; }
#cnblogs_post_body code-box .code-tools::after { position: absolute; top: 9px; left: 12px; width: 10px; height: 10px; border-radius: 50%; background: #fc625d; box-shadow: 18px 0 #fdbc40, 36px 0 #35cd4b; content: ''; }
#cnblogs_post_body code-box .code-language { margin-left: auto; margin-right: 8px; color: #999 !important; font: 11px "DM Mono", monospace !important; }
#cnblogs_post_body code-box .code-copy { position: absolute; top: 4px; right: 8px; z-index: 1; display: flex; width: 26px; height: 24px; align-items: center; justify-content: center; padding: 1px 0 0 2px; border: 0; border-radius: 6px; background: rgba(80,80,80,.08) !important; color: #777 !important; cursor: pointer; font: 11px "DM Mono", monospace !important; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, color .2s, background .2s; }
#cnblogs_post_body code-box:hover .code-copy, #cnblogs_post_body code-box:focus-within .code-copy { opacity: 1; visibility: visible; }
#cnblogs_post_body code-box .code-copy:hover { background: rgba(80,80,80,.16) !important; color: var(--cb-primary) !important; }
#cnblogs_post_body .cnblogs_code_toolbar,
#cnblogs_post_body .cnblogs_code_copy,
#cnblogs_post_body .code-toolbar,
#cnblogs_post_body .code-tools:not(.cb-code-tools) { display: none !important; }
#cnblogs_post_body code-box pre { overflow: auto !important; max-width: 100%; margin: 0 !important; padding: 10px 16px 14px !important; border: 0 !important; border-radius: 0 0 4px 4px !important; background: #f5f5fa !important; color: #23263b !important; font: 14px/1.65 "DM Mono", Consolas, Menlo, Monaco, "Courier New", monospace !important; white-space: pre; }
#cnblogs_post_body code-box pre code { color: inherit !important; background: transparent !important; font: inherit !important; }
.cb-article-top { margin-bottom: 42px; }
.cb-article-bottom { margin-top: 74px; padding-top: 20px; display: flex; justify-content: flex-end; border-top: 1px solid var(--cb-line); }
.cb-empty { padding: 32px; border: 1px solid var(--cb-line); color: var(--cb-muted); line-height: 1.8; }
@media (max-width: 1000px) { #main { grid-template-columns: 210px minmax(0, 1fr); gap: 34px; } .cb-right { display: none; } }
@media (max-width: 767px) { #main, #main.cb-home { display: block; padding: 36px 20px 70px; } .cb-topbar { height: 60px; padding: 0 20px; } .cb-left { max-height: none; position: static; overflow: visible; } .cb-intro { margin-bottom: 30px; } .cb-category-list { display: none; } .cb-left.is-open .cb-category-list { display: block; } .cb-mobile-nav { display: inline-flex !important; } .cb-home-heading { margin-top: 50px; font-size: 42px; } .cb-featured { padding: 28px 25px; } .cb-featured h2 { font-size: 31px; } .cb-post-row { grid-template-columns: 1fr; gap: 7px; } #topics .postTitle, #topics .postTitle a, #cb_post_title_url { font-size: 44px !important; } }
@media (min-width: 768px) { .cb-mobile-nav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }
