/*
  DeepDrink Layout V2
  用法：博客园后台 -> 页面定制 CSS 代码
  要求：勾选“禁用模板默认 CSS”
  配套：deepdrink-layout-v2-head.html / deepdrink-layout-v2-footer.html
*/

:root {
  --dd-width: 1220px;
  --dd-content: 840px;
  --dd-side: 300px;
  --dd-gap: 26px;

  --dd-bg: #f5f8fc;
  --dd-card: rgba(255, 255, 255, .82);
  --dd-card-strong: rgba(255, 255, 255, .94);
  --dd-soft: rgba(248, 251, 255, .88);
  --dd-line: #dbe4ef;
  --dd-line-soft: #edf2f7;

  --dd-ink: #0f172a;
  --dd-text: #334155;
  --dd-muted: #64748b;
  --dd-faint: #94a3b8;

  --dd-blue: #2563eb;
  --dd-blue-2: #1d4ed8;
  --dd-cyan: #0891b2;
  --dd-teal: #0f766e;
  --dd-green: #16a34a;
  --dd-rose: #be123c;

  --dd-code: #0b1220;
  --dd-code-2: #101827;
  --dd-code-text: #e5edf8;
  --dd-inline-bg: #eef4ff;
  --dd-inline-text: #be185d;

  --r-1: 5px;
  --r-2: 6px;
  --r-3: 8px;
  --r-4: 8px;
  --r-5: 8px;

  --shadow-1: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 22px rgba(15, 23, 42, .04);
  --shadow-2: 0 14px 34px rgba(15, 23, 42, .08);
  --shadow-3: 0 20px 44px rgba(15, 23, 42, .12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Consolas, Menlo, Monaco, "Courier New", monospace;
  --ease: .22s cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--dd-ink);
  background:
    linear-gradient(180deg, #fbfdff 0%, #f2f7fb 430px, var(--dd-bg) 100%);
  font: 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

@supports not (overflow-x: clip) { body { overflow-x: hidden; } }

body > :not(script) {
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, .048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .048) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 18%, rgba(8, 145, 178, .08) 34%, transparent 52%),
    linear-gradient(155deg, transparent 0 46%, rgba(22, 163, 74, .06) 62%, transparent 78%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .28) 68%, transparent 100%);
  animation: ddBlueprintDrift 28s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: -16vh -12vw auto -12vw;
  z-index: 0;
  height: 64vh;
  pointer-events: none;
  opacity: .82;
  filter: blur(22px);
  background:
    linear-gradient(110deg, transparent 0 20%, rgba(37, 99, 235, .14) 31%, rgba(8, 145, 178, .09) 42%, transparent 55%),
    linear-gradient(150deg, transparent 0 50%, rgba(15, 118, 110, .1) 66%, transparent 78%);
  transform: translate3d(0, 0, 0) skewY(-4deg);
  animation: ddAmbientShift 18s ease-in-out infinite alternate;
}

@keyframes ddBlueprintDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px, 0 0, 0 0; }
}

@keyframes ddAmbientShift {
  from { transform: translate3d(-1.8%, 0, 0) skewY(-4deg); opacity: .72; }
  to { transform: translate3d(1.8%, 18px, 0) skewY(-2deg); opacity: .9; }
}

body, input, button, textarea, select { font-family: var(--font); }
a { color: var(--dd-blue); text-decoration: none; transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
a:hover { color: var(--dd-blue-2); }
img, video, canvas, svg { max-width: 100%; height: auto; }
::selection { color: #fff; background: var(--dd-blue); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--dd-bg); }
::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(100, 116, 139, .38); }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, .6); }

#home, #main, #mainContent, .forFlow, #sideBar, #topics, #cnblogs_post_body, #navigator, #blogTitle, .dd-headbar, .dd-hero, .dd-footer { min-width: 0; max-width: 100%; }

#dd-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--dd-blue), var(--dd-cyan), var(--dd-green));
  box-shadow: 0 0 14px rgba(8, 145, 178, .34);
  will-change: transform;
}

.dd-headbar {
  position: relative;
  z-index: 998;
  color: var(--dd-text);
  border-bottom: 1px solid rgba(219, 228, 239, .82);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dd-headbar { -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}

.dd-headbar__inner {
  width: min(var(--dd-width), calc(100% - 32px));
  min-height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.dd-headbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dd-ink);
  font-weight: 850;
  letter-spacing: 0;
}

.dd-headbar__mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(37, 99, 235, .38);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .96), rgba(8, 145, 178, .82));
  box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}

.dd-headbar__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-right: 2px solid rgba(255, 255, 255, .92);
  border-bottom: 2px solid rgba(255, 255, 255, .92);
  transform: rotate(-45deg);
}

.dd-headbar__meta {
  color: var(--dd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-headbar__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dd-headbar__links a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--r-3);
  color: var(--dd-muted);
  font-weight: 720;
}

.dd-headbar__links a:hover {
  color: var(--dd-blue);
  background: rgba(238, 244, 255, .86);
}

.dd-hero {
  width: min(var(--dd-width), calc(100% - 32px));
  margin: 28px auto 0;
}

.dd-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  grid-template-rows: repeat(3, minmax(104px, auto));
  gap: 12px;
}

.dd-hero__main,
.dd-hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(219, 228, 239, .86);
  border-radius: var(--r-5);
  background: var(--dd-card);
  box-shadow: var(--shadow-1);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dd-hero__main, .dd-hero-card, #navigator, .day, .entrylistItem, #topics, #sideBarMain > div, .newsItem, .catList, .dd-toc, .dd-footer__panel {
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}

.dd-hero__main {
  grid-row: 1 / 4;
  min-height: 348px;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72)),
    linear-gradient(115deg, rgba(37, 99, 235, .08), transparent 46%, rgba(8, 145, 178, .08));
  box-shadow: var(--shadow-2);
}

.dd-hero__main::before,
.dd-hero-card::before,
.day::before,
.entrylistItem::before,
#topics::before,
#sideBarMain > div::before,
.newsItem::before,
.catList::before,
#blog-calendar::before,
#sidebar_search::before,
#sidebar_shortcut::before,
#sidebar_categories::before,
#sidebar_recentposts::before,
#sidebar_topviews::before,
#sidebar_topdiggedposts::before,
#sidebar_topcommentedposts::before,
.dd-toc::before,
.dd-footer__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--dd-blue), var(--dd-cyan), var(--dd-green));
  opacity: .84;
}

.dd-hero__main::after,
.dd-hero-card::after,
.day::after,
.entrylistItem::after,
#topics::after,
#sideBarMain > div::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, .12), transparent 32%);
  transition: opacity var(--ease);
}

.dd-has-spotlight:hover::after { opacity: 1; }
.dd-hero__copy, .dd-hero__visual, .dd-hero-card > * { position: relative; z-index: 2; }
.dd-hero__copy, .dd-hero__visual { min-width: 0; }

.dd-hero__title {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--dd-ink);
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 880;
  overflow-wrap: anywhere;
}

.dd-hero__title em {
  display: block;
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, var(--dd-blue), var(--dd-cyan), var(--dd-teal), var(--dd-blue));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ddTextFlow 10s ease infinite;
}

@keyframes ddTextFlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.dd-hero__desc {
  max-width: 640px;
  margin: 0;
  color: var(--dd-text);
  font-size: 16px;
  line-height: 1.92;
  overflow-wrap: anywhere;
}

.dd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.dd-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: var(--r-3);
  color: var(--dd-blue);
  background: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 820;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.dd-hero__actions a:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--dd-blue), var(--dd-cyan));
  box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
}

.dd-hero__actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .32);
  box-shadow: var(--shadow-2);
}

.dd-hero__visual {
  min-width: 0;
}

.dd-hero__terminal {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: var(--r-5);
  background: linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(15, 23, 42, .88));
  box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
}

.dd-hero__terminal-head {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dd-hero__terminal-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
}

.dd-hero__terminal-head span:nth-child(2) { background: #22c55e; }
.dd-hero__terminal-head span:nth-child(3) { background: #f59e0b; }

.dd-hero__terminal-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.dd-hero__terminal-body i {
  display: block;
  width: var(--w);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .42), rgba(56, 189, 248, .92), rgba(148, 163, 184, .42));
  background-size: 220% 100%;
  animation: ddCodePulse 4.8s ease-in-out infinite;
}

.dd-hero__terminal-body i:nth-child(2) { animation-delay: .4s; }
.dd-hero__terminal-body i:nth-child(3) { animation-delay: .8s; }
.dd-hero__terminal-body i:nth-child(4) { animation-delay: 1.2s; }

@keyframes ddCodePulse {
  0%, 100% { background-position: 0% 50%; opacity: .58; }
  50% { background-position: 100% 50%; opacity: 1; }
}

.dd-hero-card {
  min-height: 104px;
  padding: 17px 18px;
  color: var(--dd-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .72));
}

.dd-hero-card__label {
  color: var(--dd-blue);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0;
}

.dd-hero-card strong {
  display: block;
  margin-top: 12px;
  color: var(--dd-ink);
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: 0;
}

.dd-hero-card small {
  display: block;
  margin-top: 6px;
  color: var(--dd-muted);
  line-height: 1.55;
}

.dd-hero-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, .26);
  box-shadow: var(--shadow-3);
}

html.dd-has-custom-hero #blogTitle { display: none; }

#top_nav {
  position: sticky;
  top: 0;
  z-index: 990;
  min-height: 52px;
  border-bottom: 1px solid rgba(219, 228, 239, .9);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #top_nav { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

#top_nav a { color: var(--dd-text); font-size: 14px; font-weight: 650; }
#top_nav a:hover { color: var(--dd-blue); }

#top_nav input[type="text"], #top_nav input[type="search"] {
  min-height: 32px;
  border: 1px solid var(--dd-line);
  border-radius: var(--r-3);
  color: var(--dd-ink);
  background: #fff;
  outline: none;
}

#home {
  width: min(var(--dd-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 36px;
}

#header { margin: 0; padding: 0; }

#navigator {
  position: sticky;
  top: 52px;
  z-index: 880;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 24px;
  padding: 10px 12px;
  border: 1px solid rgba(219, 228, 239, .88);
  border-radius: var(--r-4);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-1);
}

#navigator h3 { display: none; }
#navList { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
#navList li { margin: 0; padding: 0; }

#navList a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--r-3);
  color: var(--dd-text);
  background: transparent;
  font-size: 14px;
  font-weight: 760;
}

#navList a:hover {
  color: var(--dd-blue);
  border-color: rgba(37, 99, 235, .16);
  background: rgba(238, 244, 255, .86);
}

#navList a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--dd-blue), var(--dd-cyan));
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity var(--ease), transform var(--ease);
}

#navList a:hover::after { opacity: 1; transform: scaleX(1); }
.blogStats { color: var(--dd-muted); font-size: 12.5px; white-space: nowrap; }

#main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dd-side);
  gap: var(--dd-gap);
  align-items: start;
}

#mainContent, .forFlow, #sideBar { min-width: 0; }
@media screen and (min-width: 1025px) { #sideBar { position: sticky; top: 126px; } }

html.dd-page-list #main { grid-template-columns: minmax(0, 1fr) 320px; }

html.dd-page-list #mainContent .forFlow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

html.dd-page-list .day,
html.dd-page-list .entrylistItem { margin-bottom: 0; }

html.dd-page-list .day:first-of-type,
html.dd-page-list .entrylistItem:first-of-type {
  grid-column: 1 / -1;
  min-height: 248px;
}

html.dd-page-list .day:first-of-type .postTitle,
html.dd-page-list .entrylistItem:first-of-type .entrylistPosttitle { font-size: 30px; }

@supports selector(body:has(.day)) {
  body:has(.day):not(:has(#cnblogs_post_body)) #mainContent .forFlow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

html.dd-page-post #main {
  grid-template-columns: minmax(0, var(--dd-content)) 292px;
  justify-content: center;
}

.day, .entrylistItem {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 22px;
  padding: 25px 27px;
  border: 1px solid rgba(219, 228, 239, .92);
  border-radius: var(--r-4);
  background: var(--dd-card);
  box-shadow: var(--shadow-1);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
}

.day:hover, .entrylistItem:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, .26);
  background: var(--dd-card-strong);
  box-shadow: var(--shadow-3);
}

.dayTitle {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--dd-muted);
  font-size: 13px;
  font-weight: 760;
}

.dayTitle a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: var(--r-2);
  color: var(--dd-blue);
  background: rgba(238, 244, 255, .82);
  font-size: 12.5px;
  font-weight: 800;
}

.postTitle, .entrylistPosttitle {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.38;
  font-weight: 840;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.postTitle a, .postTitle2, .entrylistPosttitle a {
  color: var(--dd-ink) !important;
  text-decoration: none !important;
}

.postTitle a:hover, .postTitle2:hover, .entrylistPosttitle a:hover { color: var(--dd-blue) !important; }
.postCon, .c_b_p_desc, .entrylistPostSummary { position: relative; z-index: 1; color: var(--dd-text); font-size: 15.5px; line-height: 1.88; overflow-wrap: anywhere; }
.postCon p, .c_b_p_desc p, .entrylistPostSummary p { margin: 0 0 .85em; }

.c_b_p_desc_readmore, a.c_b_p_desc_readmore {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, .17);
  border-radius: var(--r-3);
  color: var(--dd-blue) !important;
  background: rgba(255, 255, 255, .74);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none !important;
}

.c_b_p_desc_readmore::after, a.c_b_p_desc_readmore::after { content: " →"; margin-left: 2px; }

.c_b_p_desc_readmore:hover, a.c_b_p_desc_readmore:hover {
  color: #fff !important;
  border-color: var(--dd-blue);
  background: linear-gradient(135deg, var(--dd-blue), var(--dd-cyan));
  transform: translateY(-1px);
}

.postDesc, .entrylistItemPostDesc {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--dd-line-soft);
  color: var(--dd-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.postDesc a, .entrylistItemPostDesc a { color: var(--dd-blue); font-weight: 760; }

#homepage_top_pager, #homepage_bottom_pager, .pager, .Pager, .topicListFooter { margin: 20px 0; text-align: center; }

#homepage_top_pager a, #homepage_bottom_pager a, .pager a, .Pager a, .topicListFooter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 3px;
  padding: 0 10px;
  border: 1px solid var(--dd-line);
  border-radius: var(--r-3);
  color: var(--dd-text);
  background: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-weight: 760;
  box-shadow: var(--shadow-1);
}

#homepage_top_pager a:hover, #homepage_bottom_pager a:hover, .pager a:hover, .Pager a:hover, .topicListFooter a:hover {
  color: #fff;
  border-color: var(--dd-blue);
  background: linear-gradient(135deg, var(--dd-blue), var(--dd-cyan));
  transform: translateY(-1px);
}

#topics {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 22px;
  padding: 34px 36px;
  border: 1px solid rgba(219, 228, 239, .92);
  border-radius: var(--r-4);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-2);
}

#topics .post { margin: 0; padding: 0; border: none; background: transparent; box-shadow: none; }

#topics .postTitle {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--dd-line);
  font-size: 31px;
  line-height: 1.34;
  font-weight: 860;
  letter-spacing: 0;
}

#topics .postTitle a { color: var(--dd-ink) !important; }
#topics .postTitle a:hover { color: var(--dd-blue) !important; }

.dd-reading-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
}

.dd-reading-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: var(--r-2);
  color: var(--dd-muted);
  background: rgba(238, 244, 255, .66);
  font-size: 12.5px;
  font-weight: 700;
}

#cnblogs_post_body {
  position: relative;
  z-index: 1;
  color: var(--dd-text);
  font-size: 16px;
  line-height: 1.95;
  word-break: break-word;
}

#cnblogs_post_body p { margin: 0 0 1.05em; }
#cnblogs_post_body strong, #cnblogs_post_body b { color: var(--dd-ink); font-weight: 820; }
#cnblogs_post_body a { color: var(--dd-blue); border-bottom: 1px solid rgba(37, 99, 235, .26); text-decoration: none; }
#cnblogs_post_body a:hover { color: var(--dd-blue-2); border-bottom-color: var(--dd-blue-2); }
#cnblogs_post_body h1, #cnblogs_post_body h2, #cnblogs_post_body h3, #cnblogs_post_body h4, #cnblogs_post_body h5, #cnblogs_post_body h6 { color: var(--dd-ink); line-height: 1.45; font-weight: 850; letter-spacing: 0; scroll-margin-top: 112px; }
#cnblogs_post_body h1 { margin: 1.55em 0 .75em; font-size: 30px; }

#cnblogs_post_body h2 {
  position: relative;
  margin: 1.7em 0 .85em;
  padding: 10px 14px 10px 16px;
  border: 1px solid rgba(37, 99, 235, .13);
  border-left: 4px solid var(--dd-blue);
  border-radius: var(--r-3);
  background: linear-gradient(90deg, rgba(37, 99, 235, .08), rgba(8, 145, 178, .035)), rgba(255, 255, 255, .86);
  font-size: 24px;
}

#cnblogs_post_body h3 {
  position: relative;
  margin: 1.5em 0 .75em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dd-line);
  font-size: 21px;
}

#cnblogs_post_body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 54px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--dd-blue), var(--dd-cyan));
}

#cnblogs_post_body h4 { margin: 1.25em 0 .65em; font-size: 18px; }
#cnblogs_post_body h5, #cnblogs_post_body h6 { margin: 1.15em 0 .55em; font-size: 16px; }
#cnblogs_post_body ul, #cnblogs_post_body ol { margin: .7em 0 1.1em; padding-left: 1.65em; }
#cnblogs_post_body li { margin: .3em 0; }
#cnblogs_post_body li::marker { color: var(--dd-blue); font-weight: 800; }

#cnblogs_post_body blockquote {
  position: relative;
  margin: 20px 0;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(37, 99, 235, .13);
  border-left: 4px solid var(--dd-blue);
  border-radius: var(--r-3);
  color: var(--dd-text);
  background: linear-gradient(90deg, rgba(37, 99, 235, .07), rgba(8, 145, 178, .035)), rgba(255, 255, 255, .86);
}

#cnblogs_post_body blockquote p:last-child { margin-bottom: 0; }
#cnblogs_post_body hr { height: 1px; margin: 30px 0; border: none; background: linear-gradient(90deg, transparent, var(--dd-line), transparent); }
#cnblogs_post_body img { display: block; max-width: 100%; margin: 18px auto; border-radius: var(--r-3); box-shadow: 0 10px 28px rgba(15, 23, 42, .11); }
#cnblogs_post_body img:hover { transform: translateY(-1px); transition: transform var(--ease); }

#cnblogs_post_body table:not(.hljs-ln) {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  border-radius: var(--r-3);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--dd-line);
}

#cnblogs_post_body table:not(.hljs-ln) th, #cnblogs_post_body table:not(.hljs-ln) td { padding: 10px 12px; border: 1px solid var(--dd-line); text-align: left; }
#cnblogs_post_body table:not(.hljs-ln) th { color: var(--dd-ink); background: linear-gradient(180deg, #f8fafc, #f1f5f9); font-weight: 820; }
#cnblogs_post_body table:not(.hljs-ln) tr:nth-child(even) td { background: rgba(148, 163, 184, .055); }

#cnblogs_post_body code {
  margin: 0 2px;
  padding: 2px 6px;
  border: 1px solid rgba(190, 24, 93, .1);
  border-radius: var(--r-1);
  color: var(--dd-inline-text);
  background: var(--dd-inline-bg);
  font-family: var(--mono);
  font-size: .92em;
}

#cnblogs_post_body pre, #cnblogs_post_body .cnblogs_code {
  position: relative;
  max-width: 100%;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--r-3);
  color: var(--dd-code-text);
  background:
    linear-gradient(115deg, rgba(37, 99, 235, .16), transparent 42%),
    linear-gradient(180deg, var(--dd-code-2), var(--dd-code));
  box-shadow: 0 14px 34px rgba(10, 16, 32, .2);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  contain: paint;
}

#cnblogs_post_body .hljs, #cnblogs_post_body code.hljs { color: var(--dd-code-text); background: transparent; }
#cnblogs_post_body pre code, #cnblogs_post_body .cnblogs_code code { margin: 0; padding: 0; border: none; color: inherit; background: transparent; font-family: var(--mono); font-size: 14px; line-height: 1.8; white-space: pre !important; word-break: normal !important; word-wrap: normal !important; }
#cnblogs_post_body .cnblogs_code pre { margin: 0; padding: 0; border: none; background: transparent; box-shadow: none; }

.dd-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: var(--r-2);
  color: #cbd5e1;
  background: rgba(15, 23, 42, .78);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--ease), background var(--ease), color var(--ease);
}

#cnblogs_post_body pre:hover .dd-code-copy, #cnblogs_post_body .cnblogs_code:hover .dd-code-copy { opacity: 1; }
.dd-code-copy:hover { color: #fff; background: linear-gradient(135deg, var(--dd-blue), var(--dd-cyan)); }
#cnblogs_post_body table.hljs-ln { width: max-content; min-width: 100%; margin: 0; border: none; border-collapse: collapse; background: transparent; box-shadow: none; table-layout: auto; }
#cnblogs_post_body table.hljs-ln tr, #cnblogs_post_body table.hljs-ln td, #cnblogs_post_body table.hljs-ln th { height: auto; margin: 0; padding: 0; border: none; background: transparent; line-height: 1.8; max-width: none; overflow-wrap: normal; }
#cnblogs_post_body .hljs-ln-line.hljs-ln-numbers { width: 3.4em; min-width: 3.4em; padding-right: 12px !important; color: #94a3b8 !important; text-align: right; white-space: nowrap; user-select: none; vertical-align: top; }
#cnblogs_post_body .hljs-ln-line.hljs-ln-code { padding-left: 12px !important; white-space: pre !important; vertical-align: top; }

#BlogPostCategory, #EntryTag, #post_next_prev, #green_channel, #author_profile, #div_digg {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--dd-line);
  border-radius: var(--r-3);
  color: var(--dd-muted);
  background: var(--dd-card);
  font-size: 14px;
}

#BlogPostCategory a, #EntryTag a, #post_next_prev a, #green_channel a, #author_profile a, #div_digg a { color: var(--dd-blue); font-weight: 760; }

#sideBar { color: var(--dd-text); font-size: 14px; }
#sideBarMain { display: grid; gap: 18px; }

#sideBarMain > div, .newsItem, .catList, #blog-calendar, #sidebar_search, #sidebar_shortcut, #sidebar_categories, #sidebar_recentposts, #sidebar_topviews, #sidebar_topdiggedposts, #sidebar_topcommentedposts, .dd-toc {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(219, 228, 239, .9);
  border-radius: var(--r-3);
  background: var(--dd-card);
  box-shadow: var(--shadow-1);
}

#sideBar h3, #sideBarMain h3, .catListTitle, .dd-toc h3 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--dd-line);
  color: var(--dd-ink);
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 840;
  letter-spacing: 0;
}

#sideBar a { color: var(--dd-text); }
#sideBar a:hover { color: var(--dd-blue); }
#sideBar ul { margin: 0; padding: 0; list-style: none; }
#sideBar li { margin: 7px 0; color: var(--dd-muted); line-height: 1.65; }
#profile_block, #sidebar_news_content { color: var(--dd-text); line-height: 1.85; }
#profile_block a, #sidebar_news_content a { color: var(--dd-blue); font-weight: 760; }
.dd-toc__list { display: grid; gap: 3px; }
.dd-toc__list a { display: block; padding: 6px 8px; border-radius: var(--r-2); color: var(--dd-muted); font-size: 13px; line-height: 1.45; }
.dd-toc__list a[data-level="H3"] { padding-left: 20px; font-size: 12.5px; }
.dd-toc__list a:hover, .dd-toc__list a.dd-active { color: var(--dd-blue); background: rgba(238, 244, 255, .9); }

#blog-calendar, #calendar { text-align: center; }
#blog-calendar table, #calendar table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
#blog-calendar th, #blog-calendar td, #calendar th, #calendar td { padding: 4px 2px; color: var(--dd-text); text-align: center; font-size: 13px; }
.CalTitle, .CalTitle td { color: var(--dd-ink) !important; font-weight: 850; }
.CalNextPrev a { color: var(--dd-blue) !important; font-weight: 800; }
.CalDayHeader { color: var(--dd-muted) !important; font-weight: 800; }
.CalTodayDay { border-radius: var(--r-2); color: #fff !important; background: linear-gradient(135deg, var(--dd-blue), var(--dd-cyan)) !important; }

input[type="text"], input[type="password"], input[type="search"], textarea, select { border: 1px solid var(--dd-line); border-radius: var(--r-3); color: var(--dd-ink); background: #fff; outline: none; }
#sideBar input[type="text"], #sideBar input[type="search"], #sideBar input[type="password"], #sideBar textarea { width: 100%; min-height: 36px; padding: 7px 10px; }
input[type="text"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus, select:focus { border-color: rgba(37, 99, 235, .42); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
#sideBar input[type="button"], #sideBar input[type="submit"], #sideBar button, #btn_comment_submit, #comment_form input[type="button"], #comment_form input[type="submit"] { min-height: 36px; padding: 0 14px; border: none; border-radius: var(--r-3); color: #fff; background: linear-gradient(135deg, var(--dd-blue), var(--dd-cyan)); font-weight: 820; cursor: pointer; box-shadow: 0 8px 20px rgba(37, 99, 235, .2); }
#sideBar input[type="button"]:hover, #sideBar input[type="submit"]:hover, #sideBar button:hover, #btn_comment_submit:hover, #comment_form input[type="button"]:hover, #comment_form input[type="submit"]:hover { background: linear-gradient(135deg, var(--dd-blue-2), var(--dd-teal)); transform: translateY(-1px); }

#blog-comments-placeholder, #comment_form { margin-top: 22px; padding: 24px; border: 1px solid var(--dd-line); border-radius: var(--r-3); background: var(--dd-card); box-shadow: var(--shadow-1); }
#commentform_title, .feedback_area_title { margin: 0 0 14px; color: var(--dd-ink); font-size: 19px; font-weight: 850; letter-spacing: 0; }
.feedbackItem, .commentbox_main { margin: 16px 0; padding: 16px; border: 1px solid var(--dd-line); border-radius: var(--r-3); background: rgba(255, 255, 255, .82); }
#comment_form textarea, #tbCommentBody, .comment_textarea { width: 100%; min-height: 140px; padding: 12px; border: 1px solid var(--dd-line); border-radius: var(--r-3); color: var(--dd-ink); background: #fff; line-height: 1.75; outline: none; resize: vertical; }

.dd-footer {
  width: min(var(--dd-width), calc(100% - 32px));
  margin: 34px auto 0;
  color: var(--dd-text);
}

.dd-footer__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 28px 30px;
  border: 1px solid rgba(219, 228, 239, .9);
  border-radius: var(--r-4);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .76)),
    linear-gradient(115deg, rgba(37, 99, 235, .08), transparent 46%, rgba(8, 145, 178, .07));
  box-shadow: var(--shadow-2);
}

.dd-footer__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; }
.dd-footer__kicker { margin: 0 0 8px; color: var(--dd-blue); font-size: 12px; font-weight: 860; letter-spacing: 0; }
.dd-footer__title { margin: 0 0 8px; color: var(--dd-ink); font-size: 22px; font-weight: 860; letter-spacing: 0; }
.dd-footer__desc { margin: 0; max-width: 760px; color: var(--dd-muted); font-size: 13.5px; line-height: 1.85; }
.dd-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dd-footer__links a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid rgba(37, 99, 235, .14); border-radius: var(--r-3); color: var(--dd-text); background: rgba(255, 255, 255, .68); font-size: 13px; font-weight: 760; }
.dd-footer__links a:hover { color: var(--dd-blue); border-color: rgba(37, 99, 235, .28); background: rgba(238, 244, 255, .86); }
.dd-footer__bottom { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(219, 228, 239, .9); color: var(--dd-muted); font-size: 12.5px; }
#footer { width: min(var(--dd-width), calc(100% - 32px)); margin: 14px auto 0; padding: 14px 10px 28px; color: var(--dd-muted); text-align: center; font-size: 12px; line-height: 1.8; }
#footer a { color: var(--dd-blue); }

#dd-backtop {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: var(--r-3);
  color: #fff;
  background: linear-gradient(135deg, var(--dd-blue), var(--dd-cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, .26);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}

#dd-backtop.dd-show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#dd-backtop:hover { transform: translateY(-2px); }

.entrylistTitle, .PostListTitle { margin: 0 0 18px; color: var(--dd-ink); font-size: 24px; font-weight: 850; }
.entrylistDescription, .category_description { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--dd-line); border-radius: var(--r-3); color: var(--dd-text); background: var(--dd-soft); }
.clear { clear: both; }
#under_post_news, #under_post_kb { margin-top: 18px; }

@supports (content-visibility: auto) {
  .day, .entrylistItem { content-visibility: auto; contain-intrinsic-size: auto 270px; }
  #sideBarMain > div, .newsItem, .catList, #blog-calendar, #sidebar_search, #sidebar_shortcut, #sidebar_categories, #sidebar_recentposts, #sidebar_topviews, #sidebar_topdiggedposts, #sidebar_topcommentedposts { content-visibility: auto; contain-intrinsic-size: auto 180px; }
  #blog-comments-placeholder, #comment_form { content-visibility: auto; contain-intrinsic-size: auto 320px; }
}

.day, .entrylistItem, #topics, #sideBarMain > div, .newsItem, .catList, #blog-comments-placeholder, #comment_form { contain: paint; }
.dd-reveal { opacity: 0; transform: translateY(10px); }
.dd-reveal.dd-reveal-in { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s var(--ease); }
#cnblogs_post_body p, #cnblogs_post_body li, #cnblogs_post_body blockquote, #cnblogs_post_body td { overflow-wrap: anywhere; }
#cnblogs_post_body pre, #cnblogs_post_body pre *, #cnblogs_post_body code, #cnblogs_post_body .cnblogs_code, #cnblogs_post_body .cnblogs_code * { overflow-wrap: normal; }

html.dd-low-motion body::before,
html.dd-low-motion body::after { animation: none !important; }

html.dd-low-motion #top_nav,
html.dd-low-motion #navigator,
html.dd-low-motion .dd-headbar,
html.dd-low-motion .dd-hero__main,
html.dd-low-motion .dd-hero-card,
html.dd-low-motion #topics,
html.dd-low-motion #sideBarMain > div,
html.dd-low-motion .dd-footer__panel { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

html.dd-low-motion .dd-hero__title em,
html.dd-low-motion .dd-hero__terminal-body i { animation: none !important; }

html.dd-low-motion .dd-reveal { opacity: 1 !important; transform: none !important; }
html.dd-low-motion .day:hover, html.dd-low-motion .entrylistItem:hover, html.dd-low-motion .dd-hero-card:hover { transform: none !important; }

@media screen and (max-width: 760px) {
  #cnblogs_post_body table:not(.hljs-ln) { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
  #cnblogs_post_body table:not(.hljs-ln) th, #cnblogs_post_body table:not(.hljs-ln) td { white-space: nowrap; }
}

@media (hover: none) {
  .day:hover, .entrylistItem:hover, .dd-hero-card:hover, #dd-backtop:hover, #homepage_top_pager a:hover, #homepage_bottom_pager a:hover, .pager a:hover, .Pager a:hover, .topicListFooter a:hover { transform: none !important; }
  .dd-has-spotlight:hover::after { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media screen and (max-width: 1120px) {
  .dd-hero__inner { grid-template-columns: 1fr; grid-template-rows: auto; }
  .dd-hero__main { grid-row: auto; min-height: 320px; }
  .dd-hero-card { min-height: 100px; }
  html.dd-page-list #mainContent .forFlow, body:has(.day):not(:has(#cnblogs_post_body)) #mainContent .forFlow { grid-template-columns: 1fr; }
}

@media screen and (max-width: 1024px) {
  .dd-headbar__inner, .dd-hero, #home, .dd-footer, #footer { width: min(100% - 24px, var(--dd-width)); }
  .dd-hero__main { grid-template-columns: minmax(0, 1fr); }
  .dd-hero__visual { max-width: 360px; }
  .dd-hero__title { font-size: 46px; }
  #main, html.dd-page-post #main, html.dd-page-list #main { display: block; }
  #sideBar { margin-top: 24px; position: static; }
  #navigator { top: 0; display: block; }
  .blogStats { margin-top: 8px; white-space: normal; }
  .dd-footer__main { grid-template-columns: 1fr; }
  .dd-footer__links { justify-content: flex-start; }
}

@media screen and (max-width: 720px) {
  .dd-headbar__inner { min-height: 48px; overflow: hidden; }
  .dd-headbar__meta { display: none; }
  .dd-headbar__links { gap: 2px; }
  .dd-headbar__links a { padding: 0 7px; font-size: 12.5px; }
  .dd-headbar__links a:nth-child(2),
  .dd-headbar__links a:nth-child(4) { display: none; }
}

@media screen and (max-width: 640px) {
  body { font-size: 15px; }
  .dd-hero { width: calc(100% - 18px); margin-top: 12px; }
  .dd-hero__main { min-height: auto; padding: 26px 20px; }
  .dd-hero__title { font-size: 36px; }
  .dd-hero__desc { font-size: 14.5px; }
  .dd-hero__actions a { min-height: 35px; font-size: 13px; }
  .dd-hero__visual { display: none; }
  #home { width: calc(100% - 18px); padding-top: 12px; }
  #navigator { padding: 9px; }
  #navList { gap: 5px; }
  #navList a { min-height: 33px; padding: 0 10px; font-size: 13px; }
  .day, .entrylistItem, #topics, #blog-comments-placeholder, #comment_form { padding: 18px; }
  .postTitle, .entrylistPosttitle { font-size: 21px; }
  #topics .postTitle { font-size: 24px; }
  #cnblogs_post_body { font-size: 15.5px; line-height: 1.88; }
  #cnblogs_post_body h1 { font-size: 25px; }
  #cnblogs_post_body h2 { padding: 9px 12px; font-size: 21px; }
  #cnblogs_post_body h3 { font-size: 19px; }
  #cnblogs_post_body pre, #cnblogs_post_body .cnblogs_code { padding: 14px; }
  #sideBarMain > div, .newsItem, .catList, #blog-calendar, #sidebar_search, #sidebar_shortcut, #sidebar_categories, #sidebar_recentposts, #sidebar_topviews, #sidebar_topdiggedposts, #sidebar_topcommentedposts, .dd-toc { padding: 16px; }
  .dd-footer, #footer { width: calc(100% - 18px); }
  .dd-footer__panel { padding: 22px 20px; }
  #dd-backtop { right: 14px; bottom: 18px; width: 40px; height: 40px; }
}

@media screen and (max-width: 420px) {
  .dd-headbar__links a:nth-child(3) { display: none; }
  .dd-hero__main { padding: 24px 18px; }
  .dd-hero__title { font-size: 32px; }
  .day, .entrylistItem, #topics { padding: 16px; }
  .postTitle, .entrylistPosttitle { font-size: 20px; }
  #topics .postTitle { font-size: 22px; }
}

@media print {
  body { background: #fff !important; }
  body::before, body::after, .dd-headbar, .dd-hero, #top_nav, #navigator, #sideBar, #dd-progress, #dd-backtop, .dd-footer, #footer { display: none !important; }
  #home, #main, #mainContent, .forFlow, #topics { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; display: block !important; box-shadow: none !important; border: none !important; }
  #cnblogs_post_body { color: #000 !important; font-size: 14px !important; }
  #cnblogs_post_body a { color: #000 !important; border-bottom: none !important; }
}
