@font-face {
  font-family: 'UKIJ Ekran';
  src: url('font/UKIJEkran.eot') format('embedded-opentype');
  src: local('UKIJEkran'), url('font/UKIJEkran.woff') format('woff'), url('font/UKIJEkran.ttf') format('truetype'), url('font/UKIJEkran.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}




.page-navigator{
      list-style: none;
        display: flex;
        flex-direction: row;
        direction: rtl;
}

/* 模块整体 */
.blog-category-module {
  width: 100%;
  font-size: 14px;
}

/* 模块标题 */
.cate-module-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 6px;
}

/* 通用行样式 */
.cate-all-post,
.cate-parent,
.cate-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  border-radius: 5px;
  margin: 4px 0;
  direction: ltr;
}

.cate-all-post:hover,
.cate-parent:hover,
.cate-child:hover {
  background: #f5f7fa;
}

/* 左侧数量 */
.cate-num {
  font-size: 13px;
}

/* 右侧名称+箭头行 */
.cate-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 分类名称 */
.cate-name {
  text-decoration: none;
}

.cate-name:hover {
  color: #007fff;
}

/* 箭头图标 */
.cate-arrow {
  font-size: 12px;
  transition: 0.25s ease;
}

/* 箭头旋转 */
.cate-arrow.open {
  transform: rotate(90deg);
}

/* 二级容器默认隐藏 */
.cate-child-wrap {
  display: none;
  margin-left: 16px;
  border-right: 1px solid #eee;
  padding-right: 10px;
}

.cate-child-wrap.show {
  display: block;
}





.blog-sidebar-category {
  /* max-width: 300px; */
  /* width: 100%; */
  /* background: #ffffff; */
  /* border-radius: 10px; */
  /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); */
  /* padding: 24px; */
}

/* 分类标题 */
.category-title {
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
  position: relative;
}

.category-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background-color: #409eff;
}

/* 分类列表 */
.category-list li {
  /* margin-bottom: 12px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0px;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.category-list li:hover {
  background-color: #f0f7ff;
  padding-left: 14px;
}


.activexx{
  /* background-color: #f0f7ff;
  padding-left: 28px;
  color: #409eff; */
}

/* 分类链接文字 */
.category-list a {
  font-size: 15px;
  width: 100%;
}

.category-list li:hover a {
  color: #409eff;
}

/* 文章数量角标 */
.category-count {
  font-size: 13px;
  background: #f4f5f7;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 28px;
  text-align: center;
}

.category-list li:hover .category-count {
  background: #409eff;
  color: #fff;
}

/* 移动端适配 屏幕小于480px优化 */
@media screen and (max-width: 480px) {
  .blog-sidebar-category {
    padding: 18px;
  }

  .category-title {
    font-size: 16px;
  }

  .category-list a {
    font-size: 14px;
  }
}

/* ------------------------ */
:root {
  --kh-primary: #3fae5a;
  --kh-primary-strong: #2e8d47;
  --kh-soft: #eaf7ee;
  --kh-bg: #f6faf7;
  --kh-card: #ffffff;
  --kh-fg: #1f2a24;
  --kh-fg-soft: #34433b;
  --kh-muted: #6b7a72;
  --kh-border: #e6ede9;
  --kh-shadow: 0 2px 12px rgba(20, 40, 30, 0.06);
  --kh-shadow-lg: 0 8px 28px rgba(20, 40, 30, 0.1);
  --kh-radius: 16px;
}
html.kh-dark {
  --kh-bg: #0f1712;
  --kh-card: #17201a;
  --kh-fg: #eef5f0;
  --kh-fg-soft: #dbe5de;
  --kh-muted: #aab9b1;
  --kh-border: #24302a;
  --kh-soft: #1c2a22;
  --kh-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --kh-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.5);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--kh-bg);
  color: var(--kh-fg);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  font-family: "UKIJ Ekran", "Arial";
}
body.kh-locked {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.card {
  background: var(--kh-card);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow);
}

/* ===== Top ===== */
.kh-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--kh-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kh-border);
}
.kh-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--kh-primary);
  font-weight: 600;
  font-size: 17px;
}
.kh-logo-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--kh-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.kh-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.kh-menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 18px;
  color: var(--kh-muted);
  cursor: pointer;
  padding: 6px;
}
.kh-top-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.kh-iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--kh-muted);
  font-size: 15px;
  transition: all 0.2s;
  display: inline-grid;
  place-items: center;
}
.kh-iconbtn:hover {
  background: var(--kh-soft);
  color: var(--kh-primary);
}

/* ===== Layout ===== */
.kh-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 140px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
#kh-pjax {
  transition: opacity 0.2s;
}
#kh-pjax.kh-loading {
  opacity: 0.5;
  pointer-events: none;
}

.kh-side-left,
.kh-side-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  direction: rtl;
}
.kh-side-left .card,
.kh-side-right .card {
  padding: 18px;
}
.kh-nav-card {
  padding: 12px !important;
}
.kh-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ===== Left sidebar ===== */
.kh-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kh-nav-item {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--kh-fg-soft);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kh-nav-item.active {
  background: var(--kh-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(63, 174, 90, 0.3);
}
.kh-nav-item:not(.active):hover {
  background: var(--kh-soft);
  color: var(--kh-primary);
}
.kh-topics-card h4,
.kh-links-card h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kh-fg);
}
.kh-topics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kh-topic {
  position: relative;
  height: 78px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 500;
  letter-spacing: 4px;
  overflow: hidden;
}
.kh-topic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}
.kh-topic span {
  position: relative;
  z-index: 1;
}

/* ===== Friend links ===== */
.kh-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kh-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all 0.15s;
}
.kh-links li a:hover {
  background: var(--kh-soft);
  color: var(--kh-primary);
}
.kh-links img,
.kh-link-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}
.kh-link-dot {
  background: var(--kh-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.kh-link-name {
  font-size: 13px;
  color: var(--kh-fg-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kh-copy {
  text-align: center;
  color: var(--kh-muted);
  font-size: 12px;
  margin: 8px 0 0;
}

/* ===== Slider ===== */
.kh-slider {
  position: relative;
  aspect-ratio: 16/7;
  border-radius: var(--kh-radius);
  overflow: hidden;
  box-shadow: var(--kh-shadow);
  background: var(--kh-soft);
}
.kh-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s;
}
.kh-slide.active {
  opacity: 1;
}
.kh-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kh-slide-title {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.kh-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.kh-dots .d {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}
.kh-dots .d.active {
  width: 24px;
  background: var(--kh-primary);
}

/* ===== Cats（无白底卡片，按钮直接平铺） ===== */
.kh-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}
.kh-chip {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--kh-card);
  color: var(--kh-fg-soft);
  font-size: 13px;
  transition: all 0.15s;
  border: 1px solid var(--kh-border);
  box-shadow: var(--kh-shadow);
}
.kh-chip:hover {
  color: var(--kh-primary);
  border-color: var(--kh-primary);
}
.kh-chip.active {
  background: var(--kh-primary);
  color: #fff;
  border-color: var(--kh-primary);
  box-shadow: 0 8px 24px rgba(63, 174, 90, 0.3);
}

/* ===== Posts ===== */
.kh-posts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kh-post {
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: box-shadow 0.2s;
  direction: rtl;
}
.kh-post:hover {
  box-shadow: var(--kh-shadow-lg);
}
.kh-post-sticky {
  outline: 1.5px solid var(--kh-primary);
  outline-offset: -1.5px;
  direction: rtl;
}
.kh-post-img {
  display: block;
  overflow: hidden;
  background: var(--kh-soft);
  min-height: 140px;
}
.kh-post-img img {
      transition: transform .5s;
        width: 200px;
        height: 164.95px;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
        background: var(--kh-soft);
}
.kh-post:hover .kh-post-img img {
  transform: scale(1.05);
}
.kh-post-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.kh-post-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--kh-muted);
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}
.kh-post-meta > span:not(.kh-badge) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.kh-post-meta .kh-meta-author {
  flex: 0 1 auto;
  max-width: 80px;
}
.kh-post-meta .kh-meta-date {
  flex: 0 0 auto;
}
.kh-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--kh-soft);
  color: var(--kh-primary);
  font-weight: 500;
  flex-shrink: 0;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kh-cat-clip {
  max-width: 50%;
  min-width: 0;
}
.kh-badge-top {
  background: var(--kh-primary);
  color: #fff;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .kh-post-meta {
    gap: 6px;
    font-size: 11px;
  }
  .kh-badge {
    padding: 2px 6px;
    font-size: 11px;
    max-width: 42%;
  }
  .kh-badge-top {
    padding: 2px 6px;
    font-size: 11px;
  }
  .kh-badge-top i {
    margin-right: 2px;
  }
  .kh-cat-clip {
    max-width: 38%;
  }
  .kh-post-meta .kh-meta-author {
    max-width: 48px;
  }
  .kh-post-sticky .kh-cat-clip {
    max-width: 30%;
  }
  .kh-post-sticky .kh-meta-author {
    max-width: 40px;
  }
}
.kh-post-title {
  margin: 8px 0 4px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--kh-fg);
}
.kh-post-title a:hover {
  color: var(--kh-primary);
}
.kh-post-excerpt {
  margin: 0;
  color: var(--kh-muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kh-post-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--kh-muted);
}
.kh-post-foot i {
  margin-right: 2px;
}
.kh-tag {
  color: var(--kh-primary);
}

/* ===== Pager ===== */
.kh-pager {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-direction: row-reverse;
}
.kh-pager-prev,
.kh-pager-next {
  display: inline-flex;
}
.kh-pager a {
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--kh-fg-soft);
  font-size: 13px;
  background: var(--kh-soft);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kh-pager a:hover {
  background: var(--kh-primary);
  color: #fff;
}
.kh-pager-prev:empty,
.kh-pager-next:empty {
  display: none;
}

/* ===== Article ===== */
.kh-article {
  padding: 28px;
  direction: rtl;
}
.kh-article-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.4;
  color: var(--kh-fg);
  word-wrap: break-word;
}
.kh-article-meta {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--kh-border);
}
.kh-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--kh-fg-soft);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow-x: hidden;
}
.kh-content img,
.kh-content video,
.kh-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}
.kh-content pre {
  overflow-x: auto;
  /* background: var(--kh-soft); */
  background: #272822;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  max-width: 100%;
  direction: ltr;
}
.kh-content code {
  background: var(--kh-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-all;
}
.kh-content pre code {
  background: transparent;
  padding: 0;
  word-break: normal;
}
.kh-content blockquote {
  margin: 12px 0;
  padding: 8px 14px;
  border-right: 3px solid var(--kh-primary);
  background: var(--kh-soft);
  border-radius: 6px;
  color: var(--kh-fg-soft);
}
.kh-content h2,
.kh-content h3,
.kh-content h4 {
  margin: 1.4em 0 0.6em;
  color: var(--kh-fg);
}
.kh-content a {
  color: var(--kh-primary);
  border-bottom: 1px dashed var(--kh-primary);
}
.kh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.kh-content th,
.kh-content td {
  padding: 8px 12px;
  border: 1px solid var(--kh-border);
  text-align: left;
}
.kh-article-tags {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--kh-border);
  font-size: 12px;
  color: var(--kh-primary);
}
.kh-article-tags a {
  margin-right: 6px;
}

/* ===== Right sidebar ===== */
.kh-widget h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kh-fg);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kh-widget h4 i {
  color: var(--kh-primary);
}
.kh-pop {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kh-pop a {
  display: flex;
  gap: 10px;
  align-items: center;
}
.kh-pop img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--kh-soft);
}
.kh-pop p {
  margin: 0;
  font-size: 13px;
  color: var(--kh-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.kh-pop span {
  font-size: 11px;
  color: var(--kh-muted);
}
.kh-comments {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kh-comments li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.kh-c-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--kh-soft);
  object-fit: cover;
}
.kh-comments li a {
  flex: 1;
  min-width: 0;
  display: block;
}
.kh-comments li strong {
  display: block;
  font-size: 12px;
  color: var(--kh-primary);
  font-weight: 500;
}
.kh-comments li p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--kh-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kh-c-empty {
  color: var(--kh-muted);
  font-size: 12px;
  padding: 8px 0;
  display: block;
  text-align: center;
}
.kh-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: center;
}
.kh-stats div {
  padding: 10px 6px;
  background: var(--kh-soft);
  border-radius: 10px;
  font-size: 11px;
  color: var(--kh-muted);
}
.kh-stats span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--kh-primary);
  margin-bottom: 2px;
}
.kh-runtime {
  margin-top: 12px;
  padding: 10px;
  text-align: center;
  background: var(--kh-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(63, 174, 90, 0.3);
}
.kh-icp {
  margin-top: 10px;
  padding: 10px;
  text-align: center;
  background: var(--kh-soft);
  border-radius: 10px;
  font-size: 12px;
}
.kh-icp a {
  color: var(--kh-fg-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.kh-icp a:hover {
  color: var(--kh-primary);
}

/* ===== Music player ===== */
.kh-player {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  background: color-mix(in srgb, var(--kh-card) 95%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow-lg);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 40;
}
.kh-player img,
.kh-player-cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.kh-player-cover {
  background: var(--kh-soft);
  color: var(--kh-primary);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.kh-player-info {
  flex: 1;
  min-width: 0;
}
.kh-player-info b {
  font-size: 13px;
  color: var(--kh-fg);
}
.kh-player-info span {
  font-size: 12px;
  color: var(--kh-muted);
  margin-left: 6px;
}
.kh-progress {
  margin-top: 6px;
  height: 4px;
  background: var(--kh-border);
  border-radius: 999px;
  overflow: hidden;
}
.kh-progress div {
  height: 100%;
  width: 0;
  background: var(--kh-primary);
  transition: width 0.2s;
}
.kh-player-ctrl {
  display: flex;
  gap: 2px;
}
.kh-player-ctrl button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--kh-primary);
  color: #fff;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(63, 174, 90, 0.3);
  transition: transform 0.15s;
}
.kh-player-ctrl button:active {
  transform: scale(0.95);
}

/* ===== Comments ===== */
.kh-comments-area {
  padding: 24px;
  direction: rtl;
}
.kh-cempty {
  color: var(--kh-muted);
  font-size: 13px;
  padding: 12px 0;
}
.kh-clist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kh-clist .comment-body {
  background: var(--kh-soft);
  border-radius: 12px;
  padding: 12px 14px;
  list-style: none;
}
.kh-c-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.kh-c-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--kh-card);
}
.kh-c-body {
  flex: 1;
  min-width: 0;
}
.kh-c-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.kh-clist cite {
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  color: var(--kh-fg);
}
.kh-clist cite a {
  color: var(--kh-primary);
}
.kh-c-owner {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--kh-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
}
.kh-clist .comment-meta {
  font-size: 11px;
  color: var(--kh-muted);
}
.kh-clist .comment-content {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--kh-fg-soft);
  line-height: 1.7;
  word-wrap: break-word;
}
.kh-c-actions a,
.kh-clist .comment-reply {
  font-size: 12px;
  color: var(--kh-primary);
  margin-top: 6px;
  display: inline-block;
}
.kh-clist .comment-children {
  list-style: none;
  margin: 10px 0 0 clamp(6px, 2vw, 16px);
  padding-left: clamp(8px, 1.5vw, 12px);
  border-left: 2px solid var(--kh-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kh-clist .comment-children .comment-children {
  margin-left: 8px;
  padding-left: 10px;
}
.kh-clist .comment-children .comment-children .comment-children {
  margin-left: 0;
  padding-left: 8px;
}

.kh-respond {
  margin-top: 18px;
  border-top: 1px dashed var(--kh-border);
  padding-top: 18px;
  box-sizing: border-box;
  max-width: 100%;
}
.kh-clist .kh-c-body > .kh-respond {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 12px 0 0;
  padding-top: 12px;
  clear: both;
}
.kh-clist .comment-body > .kh-respond {
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 14px 0 0;
  padding-top: 14px;
  clear: both;
}
.kh-clist .kh-respond .kh-cform {
  max-width: 100%;
  min-width: 0;
}
.kh-respond-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kh-fg);
}
.kh-respond-title small a {
  color: var(--kh-primary);
  font-weight: 400;
  font-size: 12px;
  margin-left: 8px;
}
.kh-cform {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kh-cform-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kh-cform-input,
.kh-cform-textarea {
  box-sizing: border-box;
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--kh-border);
  border-radius: 10px;
  font: inherit;
  background: var(--kh-bg);
  color: var(--kh-fg);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  outline: none;
  transition: border-color 0.15s;
}
.kh-cform-input:focus,
.kh-cform-textarea:focus {
  border-color: var(--kh-primary);
}
.kh-cform-textarea {
  min-height: 110px;
  resize: vertical;
}
.kh-cform-tip {
  margin: 0;
  color: var(--kh-muted);
  font-size: 12px;
}
.kh-cform-tip a {
  color: var(--kh-primary);
}
.kh-cform-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kh-cform-submit {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--kh-primary);
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(63, 174, 90, 0.3);
}
.kh-cform-submit:hover {
  background: var(--kh-primary-strong);
}
.kh-cform-hint {
  font-size: 11px;
  color: var(--kh-muted);
}

/* ===== Search modal ===== */
.kh-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 18, 0.45);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 16px;
}
.kh-search-modal.open {
  display: flex;
  animation: kh-fade 0.2s ease-out;
}
@keyframes kh-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.kh-search-box {
  width: 100%;
  max-width: 560px;
  background: var(--kh-card);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow-lg);
  overflow: hidden;
  direction: rtl;
}
.kh-search-box form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--kh-border);
}
.kh-search-ico {
  color: var(--kh-muted);
  padding: 0 6px;
}
.kh-search-box input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 10px;
  font-size: 14px;
  background: transparent;
  color: var(--kh-fg);
}
.kh-search-box button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--kh-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.kh-search-box button:hover {
  background: var(--kh-soft);
  color: var(--kh-primary);
}
.kh-search-tip {
  margin: 0;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--kh-muted);
}

/* ===== 404 ===== */
.kh-404 {
  text-align: center;
  padding: 80px 20px;
}
.kh-404 h1 {
  font-size: 80px;
  color: var(--kh-primary);
  margin: 0;
}
.kh-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--kh-primary);
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .kh-layout {
    grid-template-columns: 200px minmax(0, 1fr) 260px;
    gap: 14px;
  }
}
@media (max-width: 960px) {
  .kh-layout {
    grid-template-columns: 1fr;
    padding: 14px 12px 110px;
    gap: 14px;
  }
  .kh-side-right {
    order: 3;
  }
  .kh-side-left {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    background: var(--kh-bg);
    padding: 16px;
    overflow-y: auto;
    z-index: 55;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--kh-shadow-lg);
    margin: 0;
    border-radius: 0;
  }
  .kh-side-left.open {
    transform: translateX(0);
  }
  .kh-menu-btn {
    display: inline-grid;
    place-items: center;
  }
  .kh-post {
    grid-template-columns: 120px 1fr;
  }
  .kh-post-img {
    aspect-ratio: 1;
    min-height: 0;
  }
  .kh-post-body {
    padding: 12px;
  }
  .kh-post-title {
    font-size: 15px;
    margin: 6px 0 4px;
  }
  .kh-post-excerpt {
    -webkit-line-clamp: 2;
    font-size: 12px;
  }
  .kh-post-foot {
    padding-top: 8px;
  }
  .kh-slider {
    aspect-ratio: 16/9;
  }
  .kh-slide-title {
    font-size: 16px;
    left: 16px;
    bottom: 14px;
  }
  .kh-article {
    padding: 18px 16px;
  }
  .kh-article-title {
    font-size: 20px;
  }
  .kh-content {
    font-size: 14px;
    line-height: 1.8;
  }
  .kh-comments-area {
    padding: 18px 16px;
  }
  .kh-cform-row {
    grid-template-columns: 1fr;
  }
  .kh-c-avatar {
    width: 34px;
    height: 34px;
  }
  .kh-clist .comment-children {
    margin-left: 8px;
    padding-left: 10px;
  }
  .kh-clist .comment-children .comment-children {
    margin-left: 4px;
    padding-left: 8px;
  }
}
@media (max-width: 520px) {
  .kh-layout {
    padding: 12px 10px 96px;
  }
  .kh-top-inner {
    padding: 0 12px;
    gap: 8px;
    height: 52px;
  }
  .kh-logo {
    font-size: 15px;
  }
  .kh-logo-img {
    height: 26px;
  }
  .kh-iconbtn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .kh-cats {
    gap: 6px;
  }
  .kh-chip {
    padding: 5px 12px;
    font-size: 12px;
  }
  .kh-post {
    grid-template-columns: 100px 1fr;
    gap: 0;
  }
  .kh-post-body {
    padding: 10px 12px;
  }
  .kh-post-title {
    font-size: 14px;
  }
  .kh-post-excerpt {
    display: none;
  }
  .kh-post-meta {
    font-size: 11px;
    gap: 6px;
  }
  .kh-badge {
    max-width: 55%;
  }
  .kh-article {
    padding: 14px 12px;
    border-radius: 12px;
  }
  .kh-article-title {
    font-size: 17px;
    line-height: 1.45;
  }
  .kh-article-meta {
    margin-bottom: 14px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .kh-content {
    font-size: 14px;
    line-height: 1.75;
  }
  .kh-content h2 {
    font-size: 17px;
  }
  .kh-content h3 {
    font-size: 15px;
  }
  .kh-content pre {
    padding: 10px;
    font-size: 12px;
  }
  .kh-comments-area {
    padding: 14px 12px;
    border-radius: 12px;
  }
  .kh-c-item {
    gap: 10px;
  }
  .kh-clist .kh-c-body > .kh-respond,
  .kh-clist .comment-body > .kh-respond {
    margin-left: 0;
    width: 100%;
  }
  .kh-clist .comment-children,
  .kh-clist .comment-children .comment-children,
  .kh-clist .comment-children .comment-children .comment-children {
    margin-left: 0;
    padding-left: 8px;
  }
  .kh-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .kh-stats div {
    padding: 8px 4px;
    font-size: 10px;
  }
  .kh-stats span {
    font-size: 15px;
  }
  .kh-player {
    padding: 6px 8px;
    gap: 8px;
    bottom: 10px;
    width: calc(100% - 16px);
  }
  .kh-player img,
  .kh-player-cover {
    width: 36px;
    height: 36px;
  }
  .kh-player-info b {
    font-size: 12px;
  }
  .kh-player-info span {
    display: none;
  }
  .kh-player-ctrl button {
    width: 34px;
    height: 34px;
  }
  .kh-pager {
    padding: 10px 12px;
  }
  .kh-pager a {
    padding: 6px 12px;
    font-size: 12px;
  }
}
.kh-player-ctrl button.kh-player-err {
  background: #e0564b !important;
  box-shadow: 0 8px 24px rgba(224, 86, 75, 0.35) !important;
}
