/* =========================================================
   Sora Docs · Cnblogs Theme
   Reference: Mohao's Nest / VuePress-style reading layout
   Base skin: SimpleMemory（请保留模板默认 CSS）
   Theme: frosted white glass, fixed light palette
   ========================================================= */

:root {
  color-scheme: light;
  --sora-bg: #dce6f1;
  --sora-bg-alt: #f4f7fb;
  --sora-surface: rgba(255, 255, 255, 0.56);
  --sora-surface-soft: rgba(255, 255, 255, 0.38);
  --sora-surface-strong: rgba(255, 255, 255, 0.76);
  --sora-text: rgba(36, 50, 68, 0.9);
  --sora-text-strong: #233247;
  --sora-muted: rgba(50, 67, 88, 0.66);
  --sora-subtle: rgba(58, 75, 96, 0.46);
  --sora-border: rgba(255, 255, 255, 0.7);
  --sora-border-hard: rgba(255, 255, 255, 0.92);
  --sora-control: rgba(255, 255, 255, 0.34);
  --sora-control-hover: rgba(255, 255, 255, 0.64);
  --sora-accent: #4b7fae;
  --sora-accent-hover: #2f6797;
  --sora-accent-soft: rgba(104, 157, 201, 0.2);
  --sora-green: #30d158;
  --sora-code-bg: rgba(248, 251, 255, 0.66);
  --sora-shadow: 0 18px 48px rgba(83, 105, 132, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --sora-nav-height: 60px;
  --sora-sidebar-width: 268px;
  --sora-content-width: 780px;
  --sora-toc-width: 220px;
  --sora-radius: 10px;
  --sora-radius-sm: 7px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0 !important;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sora-nav-height) + 22px);
  background: var(--sora-bg);
}

body {
  min-width: 0 !important;
  margin: 0;
  color: var(--sora-text);
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 255, 255, 0.98), transparent 29rem),
    radial-gradient(circle at 88% 8%, rgba(178, 211, 238, 0.68), transparent 33rem),
    radial-gradient(circle at 48% 92%, rgba(255, 255, 255, 0.78), transparent 32rem),
    linear-gradient(135deg, var(--sora-bg) 0%, var(--sora-bg-alt) 48%, #d6e1ed 100%);
  background-attachment: fixed;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #233247;
  background: rgba(126, 181, 224, 0.34);
}

a {
  color: var(--sora-accent);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    opacity 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--sora-accent-hover);
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--sora-accent);
  outline-offset: 3px;
}

/* ---------- 页首 HTML：跳转链接与阅读进度 ---------- */

.sora-skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1300;
  padding: 8px 12px;
  color: #fff;
  background: var(--sora-accent);
  border-radius: var(--sora-radius-sm);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-150%);
}

.sora-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.sora-reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1250;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.sora-reading-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--sora-accent), #91c5eb);
  box-shadow: 0 0 10px rgba(75, 127, 174, 0.28);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 顶部固定导航 ---------- */

#home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  width: 100%;
  height: var(--sora-nav-height);
  min-height: var(--sora-nav-height);
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  color: var(--sora-text);
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-bottom: 1px solid var(--sora-border);
  border-radius: 0;
  box-shadow: 0 8px 28px rgba(86, 107, 132, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(135%) blur(22px);
  -webkit-backdrop-filter: saturate(135%) blur(22px);
}

#header::before,
#header::after {
  display: none;
}

#blogTitle {
  position: relative;
  float: none;
  flex: 0 0 var(--sora-sidebar-width);
  width: var(--sora-sidebar-width);
  margin: 0;
  padding: 0 18px 0 0;
  overflow: hidden;
}

#blogTitle h1,
#blogTitle h2 {
  margin: 0;
  padding: 0;
}

#blogTitle h1 {
  position: relative;
  padding-left: 18px;
  line-height: 1;
}

#blogTitle h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(75, 127, 174, 0.16),
    0 2px 8px rgba(75, 127, 174, 0.2);
  transform: translateY(-50%);
}

#blogTitle h1 a {
  display: block;
  overflow: hidden;
  color: var(--sora-text-strong) !important;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#blogTitle h1 a:hover {
  color: var(--sora-accent-hover) !important;
}

#blogTitle h2 {
  display: none;
}

#navigator {
  position: relative;
  float: none;
  flex: 1 1 auto;
  width: auto;
  height: var(--sora-nav-height);
  min-height: var(--sora-nav-height);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

#navList {
  float: none;
  width: auto;
  height: auto;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

#navList li {
  float: none;
  margin: 0;
  padding: 0;
}

#navList a {
  position: relative;
  height: auto;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  color: var(--sora-text) !important;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
}

#navList a::after {
  content: "";
  position: absolute;
  inset: auto 50% 2px;
  height: 2px;
  background: var(--sora-accent);
  border-radius: 2px;
  opacity: 0;
  transition: inset 0.2s ease, opacity 0.2s ease;
}

#navList a:hover,
#navList a:focus-visible {
  color: var(--sora-accent-hover) !important;
  background: var(--sora-control);
}

#navList a:hover::after {
  inset-inline: 11px;
  opacity: 1;
}

.blogStats {
  float: none;
  flex: 0 0 auto;
  margin: 0;
  color: var(--sora-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.sora-sidebar-toggle {
  display: none;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  padding: 0;
  color: var(--sora-text);
  background: var(--sora-control);
  border: 1px solid var(--sora-border);
  border-radius: 8px;
  cursor: pointer;
}

.sora-sidebar-toggle span,
.sora-sidebar-toggle::before,
.sora-sidebar-toggle::after {
  content: "";
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sora-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: none;
  background: rgba(84, 103, 126, 0.24);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* ---------- 三栏阅读布局 ---------- */

#main {
  width: min(1332px, calc(100% - 40px));
  margin: calc(var(--sora-nav-height) + 24px) auto 64px;
  padding: 0;
  display: grid;
  grid-template-columns: var(--sora-sidebar-width) minmax(0, var(--sora-content-width)) var(--sora-toc-width);
  grid-template-areas: "sidebar content toc";
  align-items: start;
  justify-content: center;
  gap: 32px;
  overflow: visible;
  background: transparent !important;
}

body.sora-no-toc #main {
  width: min(1080px, calc(100% - 40px));
  grid-template-columns: var(--sora-sidebar-width) minmax(0, var(--sora-content-width));
  grid-template-areas: "sidebar content";
}

#mainContent {
  grid-area: content;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent !important;
}

#mainContent .forFlow {
  margin: 0;
}

#sideBar {
  grid-area: sidebar;
  position: sticky;
  top: calc(var(--sora-nav-height) + 24px);
  float: none;
  width: auto;
  min-width: 0;
  max-height: calc(100vh - var(--sora-nav-height) - 48px);
  margin: 0;
  padding: 0 5px 0 0;
  overflow: hidden auto;
  background: transparent !important;
  scrollbar-color: var(--sora-border-hard) transparent;
  scrollbar-width: thin;
}

#sideBar::-webkit-scrollbar,
#sora-toc nav::-webkit-scrollbar {
  width: 4px;
}

#sideBar::-webkit-scrollbar-track,
#sora-toc nav::-webkit-scrollbar-track {
  background: transparent;
}

#sideBar::-webkit-scrollbar-thumb,
#sora-toc nav::-webkit-scrollbar-thumb {
  background: var(--sora-border-hard);
  border-radius: 999px;
}

/* ---------- 正文与文章列表容器 ---------- */

.day,
.entrylistItem,
#topics,
.feedbackItem,
#comment_form_container {
  margin: 0 0 18px;
  padding: 30px 34px;
  color: var(--sora-text);
  background: var(--sora-surface);
  border: 1px solid var(--sora-border);
  border-radius: var(--sora-radius);
  box-shadow: var(--sora-shadow);
  backdrop-filter: saturate(135%) blur(22px);
  -webkit-backdrop-filter: saturate(135%) blur(22px);
}

.day {
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.day:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--sora-border-hard);
  transform: translateY(-2px);
}

.dayTitle {
  width: fit-content;
  margin: 0 0 13px;
  padding: 4px 9px;
  color: var(--sora-accent);
  background: var(--sora-accent-soft);
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
}

.dayTitle a {
  color: inherit !important;
}

.postTitle,
.entrylistPosttitle {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  color: var(--sora-text-strong);
  font-size: 26px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.postTitle a,
.entrylistPosttitle a {
  color: var(--sora-text-strong) !important;
}

.postTitle a:hover,
.entrylistPosttitle a:hover {
  color: var(--sora-accent-hover) !important;
}

.postCon,
.entrylistPostSummary {
  color: var(--sora-muted);
  font-size: 15px;
  line-height: 1.85;
}

.postDesc,
.entrylistItemPostDesc {
  margin-top: 18px;
  padding-top: 12px;
  color: var(--sora-muted);
  border-top: 1px solid var(--sora-border);
  font-size: 12px;
}

.postDesc a,
.entrylistItemPostDesc a {
  color: var(--sora-muted);
}

.postDesc a:hover,
.entrylistItemPostDesc a:hover {
  color: var(--sora-accent-hover);
}

.c_b_p_desc_readmore {
  margin-left: 7px;
  color: var(--sora-accent) !important;
  font-weight: 700;
}

.topicListFooter,
.pager {
  margin: 20px 0;
  color: var(--sora-muted);
}

.pager a,
.pager span,
.topicListFooter a {
  margin: 0 3px;
  padding: 7px 11px;
  color: var(--sora-muted);
  background: var(--sora-surface-strong);
  border: 1px solid var(--sora-border);
  border-radius: 7px;
}

.pager a:hover,
.topicListFooter a:hover {
  color: #fff;
  background: var(--sora-accent);
  border-color: var(--sora-accent);
}

/* ---------- 文章正文 ---------- */

#cnblogs_post_body,
.postBody {
  color: var(--sora-text);
  font-size: 16px;
  line-height: 1.88;
  overflow-wrap: break-word;
}

#cnblogs_post_body h1,
#cnblogs_post_body h2,
#cnblogs_post_body h3,
#cnblogs_post_body h4,
#cnblogs_post_body h5,
.postBody h1,
.postBody h2,
.postBody h3,
.postBody h4,
.postBody h5 {
  color: var(--sora-text-strong);
  font-weight: 740;
  letter-spacing: -0.02em;
  line-height: 1.4;
  scroll-margin-top: calc(var(--sora-nav-height) + 22px);
}

#cnblogs_post_body h1,
.postBody h1 {
  margin: 1.55em 0 0.72em;
  font-size: 30px;
}

#cnblogs_post_body h2,
.postBody h2 {
  margin: 1.75em 0 0.72em;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--sora-border);
  font-size: 25px;
}

#cnblogs_post_body h3,
.postBody h3 {
  margin: 1.55em 0 0.62em;
  font-size: 20px;
}

#cnblogs_post_body h4,
.postBody h4 {
  margin: 1.4em 0 0.55em;
  font-size: 17px;
}

#cnblogs_post_body p,
#cnblogs_post_body ul,
#cnblogs_post_body ol,
.postBody p,
.postBody ul,
.postBody ol {
  margin: 0.88em 0;
}

#cnblogs_post_body p,
.postBody p {
  text-align: justify;
}

#cnblogs_post_body li + li,
.postBody li + li {
  margin-top: 0.25em;
}

#cnblogs_post_body a,
.postBody a {
  color: var(--sora-accent);
  font-weight: 560;
  text-underline-offset: 3px;
}

#cnblogs_post_body a:hover,
.postBody a:hover {
  color: var(--sora-accent-hover);
  text-decoration: underline;
}

#cnblogs_post_body hr,
.postBody hr {
  height: 1px;
  margin: 2rem 0;
  background: var(--sora-border);
  border: 0;
}

#cnblogs_post_body blockquote,
.postBody blockquote {
  margin: 1.25em 0;
  padding: 12px 16px;
  color: var(--sora-muted);
  background: var(--sora-control);
  border: 0;
  border-left: 3px solid var(--sora-accent);
  border-radius: 0 7px 7px 0;
}

#cnblogs_post_body img,
.postBody img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--sora-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(83, 105, 132, 0.16);
}

#cnblogs_post_body code,
.postBody code {
  margin: 0 0.08em;
  padding: 0.15em 0.4em;
  color: #36516e;
  background: var(--sora-control-hover);
  border: 1px solid var(--sora-border);
  border-radius: 5px;
  font-family: "SFMono-Regular", Consolas, Monaco, "Liberation Mono", monospace;
  font-size: 0.88em;
  -webkit-font-smoothing: auto;
}

.sora-code-wrap {
  position: relative;
  margin: 1.2em 0;
  overflow: hidden;
  background: var(--sora-code-bg);
  border: 1px solid var(--sora-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 28px rgba(83, 105, 132, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#cnblogs_post_body .sora-code-wrap pre,
.postBody .sora-code-wrap pre,
#cnblogs_post_body pre,
#cnblogs_post_body .hljs,
.postBody pre,
.cnblogs_code,
div.cnblogs_Highlighter {
  margin: 1.2em 0;
  padding: 18px 20px !important;
  overflow: auto;
  color: #334b65;
  background: var(--sora-code-bg) !important;
  border: 1px solid var(--sora-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-family: "SFMono-Regular", Consolas, Monaco, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.65;
  scrollbar-color: var(--sora-border-hard) transparent;
  scrollbar-width: thin;
}

#cnblogs_post_body .sora-code-wrap pre,
.postBody .sora-code-wrap pre {
  margin: 0;
  padding-top: 43px !important;
  border: 0 !important;
  border-radius: 0 !important;
}

#cnblogs_post_body pre code,
#cnblogs_post_body .hljs code,
.postBody pre code,
.sora-code-wrap code {
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: inherit;
}

.sora-code-lang {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 2;
  color: var(--sora-subtle);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  pointer-events: none;
}

.sora-copy-btn {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 3;
  min-width: 48px;
  padding: 5px 8px;
  color: var(--sora-muted);
  background: var(--sora-control);
  border: 1px solid var(--sora-border);
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
}

.sora-copy-btn:hover {
  color: var(--sora-text-strong);
  background: var(--sora-control-hover);
}

.sora-copy-btn.is-copied {
  color: #23823b;
  border-color: rgba(48, 209, 88, 0.28);
}

/* 浅色代码块配色，避免原深色高亮主题在白玻璃上失去对比度。 */
#cnblogs_post_body .hljs-keyword,
#cnblogs_post_body .hljs-selector-tag,
#cnblogs_post_body .hljs-literal,
#cnblogs_post_body .hljs-section,
#cnblogs_post_body .hljs-link {
  color: #76508f;
}

#cnblogs_post_body .hljs-string,
#cnblogs_post_body .hljs-title,
#cnblogs_post_body .hljs-name,
#cnblogs_post_body .hljs-type,
#cnblogs_post_body .hljs-attribute,
#cnblogs_post_body .hljs-symbol,
#cnblogs_post_body .hljs-bullet,
#cnblogs_post_body .hljs-built_in,
#cnblogs_post_body .hljs-addition {
  color: #39765a;
}

#cnblogs_post_body .hljs-comment,
#cnblogs_post_body .hljs-quote,
#cnblogs_post_body .hljs-meta {
  color: #718096;
}

#cnblogs_post_body .hljs-number,
#cnblogs_post_body .hljs-regexp,
#cnblogs_post_body .hljs-deletion {
  color: #ad5a5a;
}

#cnblogs_post_body table,
.postBody table {
  width: 100%;
  margin: 1.3em 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--sora-border);
  border-radius: 8px;
}

#cnblogs_post_body th,
#cnblogs_post_body td,
.postBody th,
.postBody td {
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--sora-border);
  border-bottom: 1px solid var(--sora-border);
}

#cnblogs_post_body th,
.postBody th {
  color: var(--sora-text-strong);
  background: var(--sora-control);
  font-weight: 700;
}

#cnblogs_post_body tr:last-child td,
.postBody tr:last-child td {
  border-bottom: 0;
}

#cnblogs_post_body th:last-child,
#cnblogs_post_body td:last-child,
.postBody th:last-child,
.postBody td:last-child {
  border-right: 0;
}

#green_channel,
#author_profile,
#blog_post_info_block,
#under_post_card1,
#under_post_card2,
#post_next_prev {
  color: var(--sora-muted) !important;
  background: transparent !important;
  border-color: var(--sora-border) !important;
  border-radius: 8px;
}

/* ---------- 左侧导航与公告 ---------- */

#sideBarMain {
  padding: 14px 16px;
  color: var(--sora-muted);
  background: var(--sora-surface-soft);
  border: 1px solid var(--sora-border);
  border-radius: var(--sora-radius);
  box-shadow: 0 16px 38px rgba(83, 105, 132, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  font-size: 13px;
  backdrop-filter: saturate(135%) blur(22px);
  -webkit-backdrop-filter: saturate(135%) blur(22px);
}

#sideBarMain > div {
  margin: 0;
  padding: 15px 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sora-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#sideBarMain > div:first-child {
  padding-top: 0;
}

#sideBarMain > div:last-child {
  padding-bottom: 0;
  border-bottom: 0 !important;
}

#sidebar_news {
  overflow: visible !important;
}

.newsItem,
#blog-news {
  margin: 0;
  padding: 0;
}

.catListTitle,
#sideBar h3 {
  margin: 0 0 9px;
  padding: 0;
  color: var(--sora-text-strong);
  border: 0;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.015em;
  line-height: 1.5;
}

#sideBar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#sideBar li {
  margin: 1px 0;
  padding: 0;
  line-height: 1.45;
}

#sideBar li a {
  width: 100%;
  padding: 6px 8px;
  display: block;
  overflow: hidden;
  color: var(--sora-muted);
  border-radius: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sideBar li a:hover,
#sideBar li a:focus-visible {
  color: var(--sora-text-strong);
  background: var(--sora-control-hover);
}

#sideBar li a.sora-current-link {
  color: var(--sora-accent) !important;
  background: var(--sora-accent-soft);
  font-weight: 680;
}

#sideBar a {
  color: var(--sora-muted);
}

#sideBar a:hover {
  color: var(--sora-accent-hover);
}

#blogCalendar {
  width: 100%;
  color: var(--sora-muted);
}

#blogCalendar th,
#blogCalendar td {
  padding: 3px 1px;
  text-align: center;
}

.sora-profile {
  color: var(--sora-muted);
}

.sora-profile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.sora-eyebrow {
  color: var(--sora-text-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.sora-profile__index {
  color: var(--sora-subtle);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.sora-profile h3 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--sora-text-strong) !important;
  border: 0 !important;
  font-size: 18px !important;
  font-weight: 760 !important;
  letter-spacing: -0.02em !important;
}

.sora-bio {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.75;
}

.sora-status {
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sora-text);
  background: var(--sora-control);
  border: 1px solid var(--sora-border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 620;
}

.sora-status__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--sora-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.11);
}

.sora-tags {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sora-tags span {
  padding: 4px 7px;
  color: var(--sora-muted);
  background: var(--sora-control);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}

.sora-quote {
  margin: 12px 0 0;
  padding: 11px 0 0;
  color: var(--sora-subtle);
  border: 0;
  border-top: 1px solid var(--sora-border);
  font-size: 11px;
  font-style: normal;
  line-height: 1.65;
}

/* ---------- 右侧文章目录 ---------- */

#sora-toc {
  grid-area: toc;
  position: sticky;
  top: calc(var(--sora-nav-height) + 24px);
  min-width: 0;
  padding: 14px 12px;
  color: var(--sora-muted);
  background: var(--sora-surface-soft);
  border: 1px solid var(--sora-border);
  border-radius: var(--sora-radius);
  box-shadow: 0 14px 34px rgba(83, 105, 132, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 12px;
  backdrop-filter: saturate(135%) blur(20px);
  -webkit-backdrop-filter: saturate(135%) blur(20px);
}

.sora-toc__title {
  margin: 0 0 10px;
  padding: 0 8px;
  color: var(--sora-text-strong);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

#sora-toc nav {
  position: relative;
  max-height: calc(100vh - var(--sora-nav-height) - 78px);
  padding: 2px 0 2px 10px;
  overflow: hidden auto;
  border-left: 1px solid var(--sora-border-hard);
  scrollbar-width: thin;
}

.sora-toc__link {
  position: relative;
  width: 100%;
  padding: 5px 8px;
  display: block;
  overflow: hidden;
  color: var(--sora-muted);
  border-radius: 5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sora-toc__link::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: transparent;
  border-radius: 2px;
}

.sora-toc__link[data-level="3"] {
  padding-left: 18px;
}

.sora-toc__link[data-level="4"] {
  padding-left: 28px;
  color: var(--sora-subtle);
  font-size: 11px;
}

.sora-toc__link:hover {
  color: var(--sora-accent-hover);
  background: var(--sora-control);
}

.sora-toc__link.is-active {
  color: var(--sora-accent);
  background: var(--sora-accent-soft);
  font-weight: 700;
}

.sora-toc__link.is-active::before {
  background: var(--sora-accent);
}

/* ---------- 评论区 ---------- */

.feedback_area_title,
#commentform_title {
  margin: 24px 0 12px;
  color: var(--sora-text-strong);
  font-size: 18px;
  font-weight: 740;
}

.feedbackItem,
#comment_form_container {
  padding: 22px;
}

.feedbackManage,
.feedbackCon,
.comment_vote {
  color: var(--sora-muted);
}

#tbCommentBody,
#comment_textarea {
  width: 100% !important;
  min-height: 170px;
  padding: 14px;
  color: var(--sora-text);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--sora-border-hard);
  border-radius: 8px;
  outline: none;
  resize: vertical;
}

#tbCommentBody:focus,
#comment_textarea:focus {
  border-color: var(--sora-accent);
  box-shadow: 0 0 0 3px var(--sora-accent-soft);
}

#btn_comment_submit,
.comment_btn {
  padding: 9px 17px !important;
  color: #fff !important;
  background: var(--sora-accent) !important;
  border: 1px solid var(--sora-accent) !important;
  border-radius: 7px !important;
  cursor: pointer;
}

#btn_comment_submit:hover,
.comment_btn:hover {
  background: var(--sora-accent-hover) !important;
}

/* ---------- 返回顶部与页脚 ---------- */

.sora-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--sora-text);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--sora-border-hard);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(83, 105, 132, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(8px);
  backdrop-filter: saturate(135%) blur(20px);
  -webkit-backdrop-filter: saturate(135%) blur(20px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.sora-back-top::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

.sora-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sora-back-top:hover {
  color: #fff;
  background: var(--sora-accent);
}

.sora-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 26px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--sora-muted);
  background: var(--sora-surface-soft);
  border: 1px solid var(--sora-border);
  border-radius: var(--sora-radius);
  box-shadow: 0 14px 34px rgba(83, 105, 132, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: left;
  backdrop-filter: saturate(135%) blur(20px);
  -webkit-backdrop-filter: saturate(135%) blur(20px);
}

.sora-footer__line {
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--sora-border-hard);
}

.sora-footer strong,
.sora-footer small {
  display: block;
}

.sora-footer strong {
  color: var(--sora-text);
  font-size: 12px;
}

.sora-footer small {
  margin-top: 1px;
  color: var(--sora-subtle);
  font-size: 10px;
}

#footer {
  color: var(--sora-subtle);
  background: transparent;
  border: 0;
  font-size: 11px;
}

/* ---------- 平板 ---------- */

@media (max-width: 1199px) {
  :root {
    --sora-sidebar-width: 240px;
  }

  #main,
  body.sora-no-toc #main {
    width: min(1052px, calc(100% - 36px));
    grid-template-columns: var(--sora-sidebar-width) minmax(0, var(--sora-content-width));
    grid-template-areas: "sidebar content";
    gap: 28px;
  }

  #sora-toc {
    display: none;
  }

  #blogTitle {
    flex-basis: var(--sora-sidebar-width);
    width: var(--sora-sidebar-width);
  }

  .blogStats {
    display: none;
  }
}

/* ---------- 移动端侧栏抽屉 ---------- */

@media (max-width: 899px) {
  body.sora-sidebar-open {
    overflow: hidden;
  }

  #header {
    padding: 0 14px;
  }

  .sora-sidebar-toggle {
    display: block;
  }

  body.sora-sidebar-open .sora-sidebar-toggle span {
    opacity: 0;
  }

  body.sora-sidebar-open .sora-sidebar-toggle::before {
    transform: translateY(5.5px) rotate(45deg);
  }

  body.sora-sidebar-open .sora-sidebar-toggle::after {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  #blogTitle {
    flex: 0 1 220px;
    width: auto;
    max-width: 220px;
    padding-right: 10px;
  }

  #navigator {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #navigator::-webkit-scrollbar {
    display: none;
  }

  #navList {
    margin-left: auto;
  }

  #navList a {
    padding: 7px 8px;
    font-size: 12px;
  }

  #main,
  body.sora-no-toc #main {
    width: min(var(--sora-content-width), calc(100% - 28px));
    margin-top: calc(var(--sora-nav-height) + 18px);
    display: block;
  }

  #sideBar {
    position: fixed;
    inset: var(--sora-nav-height) auto 0 0;
    z-index: 1060;
    width: min(82vw, 300px);
    max-height: none;
    padding: 14px;
    overflow-y: auto;
    background: rgba(244, 248, 252, 0.82) !important;
    border-right: 1px solid var(--sora-border);
    box-shadow: 12px 0 36px rgba(83, 105, 132, 0.18),
      inset -1px 0 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(135%) blur(24px);
    -webkit-backdrop-filter: saturate(135%) blur(24px);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }

  body.sora-sidebar-open #sideBar {
    transform: translateX(0);
  }

  body.sora-sidebar-open .sora-sidebar-overlay {
    display: block;
  }

  #sideBarMain {
    padding: 8px 10px 24px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .day,
  .entrylistItem,
  #topics {
    padding: 26px 28px;
  }
}

@media (max-width: 560px) {
  #navigator {
    display: none;
  }

  #blogTitle {
    flex: 1 1 auto;
    max-width: none;
  }

  #main,
  body.sora-no-toc #main {
    width: calc(100% - 20px);
  }

  .day,
  .entrylistItem,
  #topics,
  .feedbackItem,
  #comment_form_container {
    padding: 22px 18px;
    border-radius: 8px;
  }

  .postTitle,
  .entrylistPosttitle {
    font-size: 22px;
  }

  #cnblogs_post_body,
  .postBody {
    font-size: 15px;
  }

  #cnblogs_post_body p,
  .postBody p {
    text-align: left;
  }

  #cnblogs_post_body h1,
  .postBody h1 {
    font-size: 26px;
  }

  #cnblogs_post_body h2,
  .postBody h2 {
    font-size: 22px;
  }

  #cnblogs_post_body table,
  .postBody table {
    display: block;
    overflow-x: auto;
  }

  .sora-footer {
    width: calc(100% - 20px);
    justify-content: flex-start;
  }

  .sora-back-top {
    right: 14px;
    bottom: 14px;
  }
}

@media print {
  #header,
  #sideBar,
  #sora-toc,
  .sora-reading-progress,
  .sora-back-top,
  .sora-sidebar-overlay,
  .sora-footer {
    display: none !important;
  }

  #main,
  body.sora-no-toc #main {
    width: 100%;
    margin: 0;
    display: block;
  }

  #topics,
  .day,
  .entrylistItem {
    padding: 0;
    color: #233247;
    background: #fff;
    border: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}