@font-face {
  font-family: "Zpix";
  src:
    local("Zpix"),
    url("https://cdn.jsdelivr.net/gh/SolidZORO/zpix-pixel-font@master/dist/zpix.ttf") format("truetype"),
    url("https://fastly.jsdelivr.net/gh/SolidZORO/zpix-pixel-font@master/dist/zpix.ttf") format("truetype"),
    url("https://gcore.jsdelivr.net/gh/SolidZORO/zpix-pixel-font@master/dist/zpix.ttf") format("truetype");
  font-display: swap;
}

/* ===========================================================
   像素风主题（Pixel Art）
   - 仅改样式，类名 / 结构与 site.js 完全兼容
   - 字体：Zpix（中文像素）+ 系统等宽备用字体
   - 零圆角、硬边阴影、像素网格背景
   =========================================================== */

:root {
  color-scheme: dark;
  --bg: #0d1020;
  --panel: #1a1f38;
  --panel-2: #232a4d;
  --panel-3: #2e3766;
  --line: #41508f;
  --text: #ece8ff;
  --muted: #9aa3c7;
  --soft: #c7cdf0;
  --green: #5dd35d;
  --gold: #ffd23f;
  --red: #ff5b5b;
  --blue: #4db4ff;
  --shadow: 4px 4px 0 #05060c;
  --font-body: "Zpix", "Microsoft YaHei", monospace;
  --font-display: "Zpix", "Microsoft YaHei", monospace;
}

/* ---- 暗色阅读细节 ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  background: var(--panel-3);
}

* {
  scrollbar-color: var(--panel-3) var(--bg);
}

::selection {
  background: var(--gold);
  color: #1a1a1a;
}

mark {
  background: var(--gold);
  color: #1a1a1a;
  padding: 0 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(65, 80, 143, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 80, 143, 0.10) 1px, transparent 1px),
    linear-gradient(180deg, #0d1020 0%, #0b0e1c 100%);
  background-size: 16px 16px, 16px 16px, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 2px 6px;
  background: #05060c;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.94em;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--line);
  background: var(--bg);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 3px solid #05060c;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 50%, transparent 50%),
    linear-gradient(#5dd35d 0 50%, #b07a3a 50% 100%);
  background-size: 8px 8px, 100% 100%;
  image-rendering: pixelated;
  box-shadow: var(--shadow);
  color: #05140a;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  overflow: hidden;
}

.brand-mark.has-text {
  background: var(--green);
}

.brand-mark.has-image {
  background: #05060c;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  border: 2px solid transparent;
  border-radius: 0;
  padding: 9px 12px;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-color: var(--gold);
  background: var(--panel-2);
  color: var(--text);
}

.page {
  padding: 46px 0 68px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 50px);
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-panel,
.panel,
.game-card,
.post-list,
.markdown-card {
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 18px;
}

.hero-panel strong {
  display: block;
  margin-bottom: 9px;
  font-size: 16px;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 18px;
}

.search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 0;
  padding: 11px 13px;
  background: #05060c;
}

.search-box span {
  color: var(--muted);
  font-size: 14px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.result-count {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 14px;
}

.game-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-cover {
  position: relative;
  min-height: 76px;
  border-bottom: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 50%, transparent 50%),
    linear-gradient(135deg, var(--accent, #5dd35d), #232a4d);
  background-size: 12px 12px, 100% 100%;
  image-rendering: pixelated;
}

.game-cover.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 6, 12, 0.1), rgba(5, 6, 12, 0.46));
  pointer-events: none;
}

.game-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.game-icon {
  position: absolute;
  right: 18px;
  bottom: -14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #05060c;
  background: #8de877;
  color: #05140a;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-icon-image {
  background: #05060c;
}

.game-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 4px 8px;
  color: #dff4ce;
  background: rgba(93, 211, 93, 0.16);
}

.game-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.4;
}

.game-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag {
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 5px 8px;
  background: #05060c;
  color: #ddd5c7;
  font-size: 12px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 15px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 3px solid #05060c;
  border-radius: 0;
  padding: 0 13px;
  font-family: var(--font-display);
  font-size: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 100ms steps(2), filter 100ms;
}

.button:hover {
  transform: translate(-2px, -2px);
  filter: brightness(1.08);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.button.primary {
  background: var(--green);
  color: #05140a;
}

.button.ghost {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text);
  box-shadow: var(--shadow);
}

.empty {
  border: 3px dashed var(--line);
  border-radius: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.two-col {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.post-item {
  display: block;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 11px;
  color: var(--muted);
}

.post-item:hover,
.post-item.is-active {
  border-color: var(--gold);
  background: var(--panel-2);
  color: var(--text);
}

.post-item strong {
  display: block;
  color: inherit;
  line-height: 1.5;
}

.post-item .post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.post-item .post-cat {
  border: 1px solid var(--line);
  padding: 1px 6px;
  font-size: 11px;
  color: var(--soft);
}

.post-item.is-active .post-cat {
  border-color: var(--gold);
  color: var(--gold);
}

.post-item .post-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.post-item .tags {
  margin-top: 8px;
}

.post-item .tag {
  padding: 2px 6px;
  font-size: 11px;
}

.markdown-card {
  min-height: 360px;
  scroll-margin-top: 92px;
  padding: clamp(20px, 4vw, 34px);
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  margin: 1.2em 0 0.55em;
  line-height: 1.2;
}

.markdown h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 34px);
}

.markdown h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
}

.markdown h3 {
  font-size: 19px;
}

.markdown h4 {
  color: var(--green);
  font-size: 16px;
}

.markdown h5,
.markdown h6 {
  color: var(--muted);
  font-size: 14px;
}

.markdown h1:first-child,
.markdown h2:first-child,
.markdown h3:first-child,
.markdown h4:first-child,
.markdown h5:first-child,
.markdown h6:first-child {
  margin-top: 0;
}

.markdown {
  max-width: 46em;
}

.markdown p,
.markdown li,
.markdown blockquote {
  color: var(--soft);
  line-height: 1.9;
}

.markdown p {
  margin: 0 0 1.2em;
}

.markdown h2[id],
.markdown h3[id] {
  scroll-margin-top: 92px;
}

.markdown h2[id]:hover::after,
.markdown h3[id]:hover::after {
  content: " §";
  color: var(--gold);
}

.markdown hr {
  border: 0;
  border-top: 3px solid var(--line);
  margin: 28px 0;
}

.markdown .md-figure {
  margin: 18px 0;
}

.markdown img.md-img {
  max-width: 100%;
  display: block;
  border: 3px solid #05060c;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.markdown ul {
  padding-left: 1.2em;
}

.markdown blockquote {
  margin: 16px 0;
  border-left: 4px solid var(--green);
  padding: 8px 0 8px 14px;
  background: rgba(93, 211, 93, 0.1);
}

.markdown pre {
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 14px;
  background: #05060c;
}

.markdown pre code {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.markdown a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel {
  padding: 22px;
}

.panel h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 3px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1120px);
  }

  .page {
    padding-top: 34px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
  }

  .footer {
    flex-direction: column;
  }
}

/* CF-BLOG-START */
/* === 博客改造组件样式（面包屑 / 从这里开始 / 侧边栏 / 目录 / 代码块 / 图片预览 / 搜索弹窗），复用主题变量 === */

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .crumb-sep {
  color: var(--line);
}

.breadcrumb .crumb-current {
  color: var(--soft);
}

/* ---- 博客工具条搜索按钮 ---- */
.toolbar .search-glyph {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-radius: 0;
  transform: rotate(-45deg);
}

.toolbar .search-glyph::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: currentColor;
}

/* ---- 从这里开始 ---- */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 14px;
  margin-bottom: 22px;
}

.start-card,
.start-aside {
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.start-card {
  padding: 20px;
}

.start-label {
  display: inline-block;
  border: 2px solid var(--gold);
  padding: 3px 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.start-card h2 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
}

.start-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.start-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.start-aside {
  padding: 16px;
}

.start-aside strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 14px;
}

.start-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ---- 博客侧边栏 ---- */
.post-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 108px);
  overflow: auto;
}

.sidebar-block {
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
}

.sidebar-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.05em;
}

/* ---- 分类列表 ---- */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 7px 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.category-item:hover,
.category-item.is-active {
  border-color: var(--gold);
  background: var(--panel-2);
  color: var(--text);
}

.category-item em {
  font-style: normal;
  border: 1px solid var(--line);
  padding: 0 6px;
  font-size: 11px;
  color: var(--muted);
}

.category-item.is-active em {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- 标签云（按计数加权字号） ---- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 4px 8px;
  background: #05060c;
  color: #ddd5c7;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 100ms, color 100ms;
}

.tag-item[data-weight="2"] {
  font-size: 13px;
}

.tag-item[data-weight="3"] {
  font-size: 15px;
  color: var(--gold);
}

.tag-item:hover,
.tag-item.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- 文章目录 ---- */
.toc {
  margin: 0 0 22px;
  border: 2px solid var(--line);
  background: rgba(5, 6, 12, 0.45);
}

.toc summary {
  cursor: pointer;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--green);
  user-select: none;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--line);
  padding: 4px 10px 10px;
}

.toc-link {
  padding: 5px 8px;
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toc-link:hover {
  border-left-color: var(--line);
  color: var(--text);
}

.toc-link.is-active {
  border-left-color: var(--gold);
  color: var(--gold);
  background: rgba(93, 211, 93, 0.06);
}

.toc-h3 {
  padding-left: 20px;
  font-size: 12px;
}

/* ---- 代码块：复制按钮与轻量高亮 ---- */
.markdown pre.code-block {
  position: relative;
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 14px;
  background: #05060c;
}

.markdown pre.code-block.has-copy {
  padding-top: 38px;
}

.markdown pre.code-block code {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 3px 9px;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tok-comment {
  color: #7d86ad;
  font-style: italic;
}

.tok-string {
  color: var(--green);
}

.tok-number {
  color: var(--blue);
}

.tok-keyword {
  color: var(--gold);
}

.tok-tag {
  color: var(--blue);
}

/* ---- 图片预览 lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 12, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border: 3px solid var(--line);
  background: #05060c;
  box-shadow: var(--shadow);
  image-rendering: pixelated;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- 博客搜索弹窗 ---- */
.bs-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 9vh;
  background: rgba(5, 6, 12, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms;
}

.bs-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bs-dialog {
  width: min(680px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: translateY(-10px);
  transition: transform 160ms ease;
}

.bs-modal.is-open .bs-dialog {
  transform: translateY(0);
}

.bs-input {
  width: 100%;
  box-sizing: border-box;
  border: 3px solid var(--line);
  border-radius: 0;
  padding: 11px 13px;
  background: #05060c;
  color: var(--text);
  font: inherit;
}

.bs-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.bs-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.bs-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bs-filter-label {
  flex-shrink: 0;
  width: 30px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.bs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bs-chip {
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 4px 9px;
  background: #05060c;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.bs-chip:hover {
  color: var(--text);
}

.bs-chip.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

.bs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.bs-count {
  color: var(--muted);
  font-size: 12px;
}

.bs-sorts {
  display: flex;
  gap: 6px;
}

.bs-sort {
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 3px 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.bs-sort.is-active {
  border-color: var(--gold);
  background: var(--panel-2);
  color: var(--gold);
}

.bs-suggest {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.bs-suggest-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.bs-suggest-chip {
  border: 2px dashed var(--gold);
  border-radius: 0;
  padding: 3px 9px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.bs-suggest-chip:hover {
  background: rgba(255, 210, 63, 0.1);
}

.bs-results {
  min-height: 120px;
  margin-top: 10px;
  overflow: auto;
}

.bs-result {
  display: block;
  border: 2px solid transparent;
  padding: 11px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 100ms, background 100ms;
}

.bs-result:hover {
  border-color: var(--gold);
  background: var(--panel-2);
}

.bs-result-date {
  float: right;
  color: var(--muted);
  font-size: 12px;
}

.bs-result strong {
  font-family: var(--font-display);
  font-size: 14px;
}

.bs-result mark {
  background: var(--gold);
  color: #1a1a1a;
  padding: 0 2px;
}

.bs-result-snippet,
.bs-result-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bs-result .tags {
  margin-top: 8px;
}

.bs-empty {
  padding: 8px 0 4px;
  text-align: center;
}

.bs-empty-title {
  margin: 0 0 16px;
  color: var(--soft);
}

.bs-guide-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.bs-guide-block > strong {
  color: var(--green);
  font-size: 13px;
}

.bs-guide-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tag-btn {
  cursor: pointer;
}

.tag-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.bs-close {
  align-self: flex-end;
  margin-top: 12px;
}

/* ---- 响应式：小屏折叠 ---- */
@media (max-width: 820px) {
  .start-grid {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .bs-dialog {
    width: min(100% - 22px, 92vw);
  }
}
/* CF-BLOG-END */
