/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(11, 15, 20, 0.78);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(224, 111, 42, 0.6);
}

.brand-text { color: var(--heading); }

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

.site-nav > a,
.nav-link {
  transition: color .2s ease;
  color: var(--muted);
  padding: 4px 0;
  cursor: pointer;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.nav-link:hover { color: #fff; }

.nav-item { position: relative; }

.nav-item.has-children .nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: grid;
  gap: 2px;
  min-width: 160px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(20, 18, 15, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all .22s ease;
}

.nav-item.has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 14px;
  pointer-events: none;
}

.nav-item.has-children:hover::after,
.nav-item.has-children:focus-within::after {
  pointer-events: auto;
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}

.nav-dropdown a:hover {
  color: #fff;
  background: rgba(224, 111, 42, 0.12);
}

.nav-item.has-children:hover .nav-dropdown,
.nav-item.has-children:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.search-box {
  min-width: 240px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 4px;
  gap: 6px;
  color: var(--muted-2);
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-box:focus-within {
  border-color: rgba(224, 111, 42, 0.5);
  box-shadow: 0 0 0 3px rgba(224, 111, 42, 0.12);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 13px;
  padding: 0;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

/* 搜索图标按钮:无框,纯图标,hover 变蓝 */
.search-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, background .15s ease;
  flex-shrink: 0;
}
.search-icon-btn:hover { color: var(--blue-light); background: rgba(224, 111, 42,0.12); }
.search-icon-btn:focus { outline: none; }
.search-icon-btn:focus-visible { color: var(--blue-light); background: rgba(224, 111, 42,0.12); }

/* ⌘K / Ctrl+K 提示 */
.search-hint {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.search-box:focus-within .search-hint { opacity: 0; }

/* 平台区分:Mac 显示 ⌘,其他显示 Ctrl(默认隐藏 mac,JS 检测后切换) */
.search-hint-mac { display: none; }
.search-hint-win { display: inline; }
html.is-mac .search-hint-mac { display: inline; }
html.is-mac .search-hint-win { display: none; }

/* 浅色主题 */
html[data-theme="light"] .search-hint {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #6b7280;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s ease, transform .15s ease;
}
.nav-toggle:hover { color: var(--blue-light); transform: scale(1.1); }
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible {
  color: var(--blue-light);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
html[data-theme="light"] .nav-toggle { color: #6b7280; }
html[data-theme="light"] .nav-toggle:hover { color: var(--blue-2); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease;
}

.nav-toggle span + span { margin-top: 5px; }

/* ============ Hero ============ */
.hero-section { padding: 0; }

/* grid 堆叠:所有 slide 占同一格,容器自动取最高 slide 的高度(不塌陷),
   切换时用 opacity + transform 做交叉淡入淡出,而不是 display 瞬切。
   .hero-controls 是 position:absolute,脱离 grid 流,不受影响。 */
.hero-carousel {
  position: relative;
  display: grid;
  isolation: isolate;
  overflow: hidden; /* 裁掉 slide 左右滑动时的水平溢出,避免出现横向滚动条 */
}

.hero-slide {
  grid-area: 1 / 1;
  padding: 90px 0 78px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px); /* 无 motion 时的横向淡入兜底(motion 在则由 JS 接管为带方向滑动) */
  pointer-events: none;
  z-index: 1;
  /* 失活:淡出 .7s,淡出结束后再 visibility:hidden(延迟保证能看到淡出) */
  transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  z-index: 2;
  transition: opacity .7s ease, transform .7s ease, visibility 0s;
}

/* motion(JS)接管动画时,关掉 CSS transition,避免两套动画叠加打架。
   静止态仍由 .is-active 的 opacity/visibility/transform 定义(motion 动画
   fill:none,播完会停回这里)。 */
.hero-carousel--motion .hero-slide,
.hero-carousel--motion .hero-slide.is-active {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active {
    transform: none;
    transition: opacity .2s ease, visibility 0s;
  }
}

.hero-media {
  position: absolute;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: blur(14px) saturate(1.2);
  opacity: 0.7;
  transform: scale(1.06);
}

.hero-surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 25% 20%, rgba(224, 111, 42, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.2) 0%, rgba(11, 15, 20, 0.55) 55%, rgba(11, 15, 20, 0.75) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(224, 111, 42, 0.1);
  color: var(--blue-light);
  font-size: 13px;
  margin-bottom: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  border: 1px solid rgba(224, 111, 42, 0.18);
  width: fit-content;
}

.hero-copy h1,
.page-banner-inner h1,
.article-copy h1,
.article-head h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  color: var(--heading);
  font-family: var(--font);
}

.hero-copy h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.hero-copy h1 a { color: inherit; }

.hero-copy p,
.page-banner-inner p,
.article-summary {
  color: var(--muted);
  margin: 22px 0 0;
  font-size: 17px;
  max-width: 680px;
}

.hero-copy p {
  line-height: 1.68;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  max-height: calc(1.68em * 4);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: .2s ease;
  cursor: pointer;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-color: rgba(224, 111, 42, .75);
  box-shadow: 0 12px 30px rgba(196, 90, 27, .25);
  color: #fff;
}

.button-secondary { color: var(--text); }
.button:hover { transform: translateY(-1px); border-color: rgba(224, 111, 42, 0.5); }

.hero-side-visual {
  position: relative;
  min-width: 0;
  width: 100%;
}

.code-window {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.code-window-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.code-dot:nth-child(1) { background: var(--red); }
.code-dot:nth-child(2) { background: var(--yellow); }
.code-dot:nth-child(3) { background: var(--green); }

.code-window pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  max-width: 100%;
  font-family: var(--mono);
  color: var(--body);
  font-size: 13px;
  line-height: 1.9;
  background: transparent;
  border: 0;
}

.cw-kw { color: #ed8b4a; }
.cw-str { color: #86efac; }
.cw-fn { color: var(--purple); }
.cw-cm { color: var(--muted-2); }

/* ============ Hero carousel controls (overlay) ============ */
/* hero-controls 容器铺满 hero,但不挡操作 (pointer-events: none),
   内部按钮单独 pointer-events: auto。配合 .hero-carousel { position: relative } 使用。 */
.hero-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* hero arrows: 默认隐藏,hero 区域 hover 时淡入;轻量玻璃感无重阴影 */
.hero-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-50%) scale(0.9);
  transition: opacity .25s ease,
              transform .25s cubic-bezier(.2,.8,.3,1),
              background .2s ease,
              border-color .2s ease,
              color .2s ease;
}

/* hover hero 整体时淡入 */
.hero-carousel:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.hero-arrow:hover {
  background: rgba(196, 90, 27, 0.55);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.hero-arrow--prev:hover svg { transform: translateX(-1px); }
.hero-arrow--next:hover svg { transform: translateX( 1px); }

.hero-arrow:active { transform: translateY(-50%) scale(0.94); }

.hero-arrow:focus { outline: none; }
.hero-arrow:focus-visible {
  box-shadow: 0 0 0 3px rgba(224, 111, 42, 0.45);
}

[data-hero-prev] { left: 18px; }
[data-hero-next] { right: 18px; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: .2s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.7); }

.hero-dot.is-active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}

/* 移动端缩小 + 贴边 */
@media (max-width: 768px) {
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow svg { width: 18px; height: 18px; }
  [data-hero-prev] { left: 10px; }
  [data-hero-next] { right: 10px; }
  .hero-dots { bottom: 14px; }
}

/* ============ Sections ============ */
.stream-section,
.featured-section,
.related-section,
.comment-section {
  padding: 40px 0 60px;
}

.blog-stream {
  padding-top: 36px;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--heading);
  font-weight: 700;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* ============ Home layout ============ */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.home-main { min-width: 0; }

.blog-stream-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: end;
  margin-bottom: 22px;
}

.blog-main-toolbar {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.blog-stream-heading {
  display: block;
  margin-bottom: 0;
}

.blog-stream-heading > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 14px;
}

.blog-stream-heading .section-tag {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: 6px;
}

.blog-stream-heading h2 {
  line-height: 1.25;
}

.blog-stream-heading p {
  margin: 0;
  color: var(--muted);
}

.blog-search-actions {
  grid-column: 1 / -1;
  grid-row: 1;
  width: min(100%, 668px);
  min-width: 0;
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-search-box {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.blog-rss-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted-2);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.blog-rss-button:hover {
  color: var(--blue-light);
  border-color: rgba(224, 111, 42, 0.5);
  background: rgba(224, 111, 42, 0.1);
  transform: translateY(-1px);
}

.blog-rss-button:focus-visible {
  color: var(--blue-light);
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

/* ============ Home projects ============ */
.home-projects-section {
  position: relative;
  padding: 78px 0 54px;
  border-top: 1px solid var(--border-soft);
  background: transparent;
}

.home-projects-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.home-projects-head .section-tag {
  margin-bottom: 12px;
}

.home-projects-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.home-projects-copy {
  display: block;
  margin-top: 16px;
}

.home-projects-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-projects-more {
  white-space: nowrap;
}

.home-projects-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: stretch;
}

.home-project-feature,
.home-project-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-project-feature:hover,
.home-project-card:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

.home-project-feature:focus-visible,
.home-project-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.home-project-feature {
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card-bg);
}

.home-project-feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 38px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
}

.home-project-feature h3 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.home-project-feature p {
  margin: 16px 0 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.8;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.home-project-tags,
.home-project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-project-tags {
  margin-top: 22px;
}

.home-project-tags > span,
.home-project-card-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(224, 111, 42, 0.11);
  color: var(--blue-light);
  font-size: 12px;
  border: 1px solid rgba(224, 111, 42, 0.14);
  line-height: 1.4;
  pointer-events: auto;
}

.home-project-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.home-project-cta {
  width: fit-content;
  margin-top: auto;
}

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-project-card {
  min-height: 172px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.home-project-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 19px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: 0;
}

.home-project-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-project-card-tags {
  margin-top: auto;
}

.home-project-open {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 14px;
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, color .2s ease;
}

.home-project-card:hover .home-project-open {
  color: #fff;
  transform: translateX(2px);
}

html[data-theme="light"] .home-project-card:hover .home-project-open {
  color: var(--blue-2);
}

html[data-theme="light"] .home-projects-section {
  background: transparent;
}

html[data-theme="light"] .home-project-feature,
html[data-theme="light"] .home-project-card {
  box-shadow: var(--shadow);
}

.home-project-empty {
  max-width: 720px;
}

/* ============ Home popular posts ============ */
.home-hot-section {
  position: relative;
  padding: 20px 0 44px;
  background: transparent;
}

.home-hot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.home-hot-head .section-tag {
  margin-bottom: 12px;
}

.home-hot-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.home-hot-head p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-hot-more {
  white-space: nowrap;
}

.home-hot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.home-hot-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.home-hot-feature,
.home-hot-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-hot-feature:hover,
.home-hot-card:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

.home-hot-feature:focus-visible,
.home-hot-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.home-hot-feature {
  display: grid;
  grid-template-columns: minmax(210px, 0.88fr) minmax(0, 1.12fr);
  gap: 20px;
  padding: 18px;
  overflow: hidden;
}

.home-hot-feature-media {
  min-height: 260px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-2);
  overflow: hidden;
}

.home-hot-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hot-feature-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-hot-feature-meta,
.home-hot-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
}

.home-hot-card-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 7px;
}

.home-hot-feature-meta {
  margin-bottom: 24px;
}

.home-hot-feature-meta span:first-child {
  color: var(--blue-light);
}

.home-hot-feature h3,
.home-hot-card h3 {
  margin: 0;
  color: var(--heading);
  letter-spacing: 0;
}

.home-hot-feature h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  font-weight: 800;
}

.home-hot-card h3 {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.32;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hot-feature p,
.home-hot-card p {
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.home-hot-feature p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  -webkit-line-clamp: 4;
}

.home-hot-card p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 1;
}

.home-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.home-hot-tags > span {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(224, 111, 42, 0.11);
  color: var(--blue-light);
  font-size: 12px;
  border: 1px solid rgba(224, 111, 42, 0.14);
  line-height: 1.4;
}

.home-hot-list {
  display: grid;
  gap: 10px;
}

.home-hot-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.home-hot-rank {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(224, 111, 42, 0.18);
  background: rgba(224, 111, 42, 0.1);
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
}

.home-hot-card-body {
  min-width: 0;
  padding-top: 1px;
}

html[data-theme="light"] .home-hot-feature,
html[data-theme="light"] .home-hot-card {
  box-shadow: var(--shadow);
}

html[data-theme="light"] .home-hot-tags > span,
html[data-theme="light"] .home-hot-rank {
  color: var(--blue-2);
  background: rgba(224, 111, 42, 0.08);
  border-color: rgba(224, 111, 42, 0.18);
}

/* ============ Home media ============ */
.home-media-section {
  position: relative;
  padding: 22px 0 42px;
  background: transparent;
}

.home-media-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.home-media-head .section-tag {
  margin-bottom: 12px;
}

.home-media-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.home-media-head p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-media-more {
  white-space: nowrap;
}

.home-media-groups {
  display: grid;
  gap: 0;
}

.home-media-group {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.home-media-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.home-media-group-head {
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.home-media-group-head h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

.home-media-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.home-media-links {
  display: flex;
  gap: 10px;
}

.home-media-chip {
  min-width: 0;
  flex: 1 1 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

button.home-media-chip {
  font: inherit;
}

.home-media-chip:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

.home-media-chip:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.media-platform-icon {
  --media-icon-color: var(--blue-light);
  --media-icon-bg: rgba(224, 111, 42, 0.1);
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(224, 111, 42, 0.18);
  border-radius: 10px;
  background: var(--media-icon-bg);
  color: var(--media-icon-color);
}

.media-platform-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-platform-icon--bilibili {
  --media-icon-color: #32b6e6;
  --media-icon-bg: rgba(50, 182, 230, 0.12);
}

.media-platform-icon--xiaoheihe {
  --media-icon-color: #f2b84b;
  --media-icon-bg: rgba(242, 184, 75, 0.12);
}

.media-platform-icon--x {
  --media-icon-color: #f5f1e9;
  --media-icon-bg: rgba(245, 241, 233, 0.1);
}

.media-platform-icon--xiaohongshu {
  --media-icon-color: #ff4d66;
  --media-icon-bg: rgba(255, 77, 102, 0.12);
}

.media-platform-icon--taptap {
  --media-icon-color: #35d4df;
  --media-icon-bg: rgba(53, 212, 223, 0.12);
}

.media-platform-icon--douyin {
  --media-icon-color: #ff5c8a;
  --media-icon-bg: rgba(255, 92, 138, 0.12);
}

.media-platform-icon--wechat {
  --media-icon-color: #22c55e;
  --media-icon-bg: rgba(34, 197, 94, 0.12);
}

.home-media-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-media-platform {
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.home-media-chip strong {
  min-width: 0;
  color: var(--heading);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-media-chip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

html[data-theme="light"] .home-media-chip {
  box-shadow: var(--shadow);
}

html[data-theme="light"] .home-media-platform {
  color: var(--blue-2);
}

html[data-theme="light"] .media-platform-icon--x {
  --media-icon-color: #222;
  --media-icon-bg: rgba(34, 34, 34, 0.06);
}

/* ============ Media page ============ */
.media-page .blog-stream {
  padding-top: 36px;
}

.media-group {
  margin-top: 26px;
}

.media-group:first-of-type {
  margin-top: 0;
}

.media-group-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.media-group-head h3 {
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.media-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.media-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

button.media-card {
  width: 100%;
  font: inherit;
  text-align: left;
}

.media-card:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

.media-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.media-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.media-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}

.media-card-meta span:first-child {
  color: var(--blue-light);
}

.media-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
}

.media-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.media-card-tags {
  margin-top: auto;
  padding-top: 16px;
}

.media-card-tags .tag {
  pointer-events: none;
}

.media-card-open {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, color .2s ease;
}

.media-card:hover .media-card-open {
  color: #fff;
  transform: translateX(2px);
}

.media-card--qr {
  cursor: default;
}

.media-card--qr:hover .media-card-open {
  transform: none;
}

html[data-theme="light"] .media-card {
  box-shadow: var(--shadow);
}

html[data-theme="light"] .media-card-meta span:first-child {
  color: var(--blue-2);
}

html[data-theme="light"] .media-card:hover .media-card-open {
  color: var(--blue-2);
}

.media-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

html.media-qr-open {
  overflow: hidden;
}

.media-qr-modal[hidden] {
  display: none;
}

.media-qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, .58);
  backdrop-filter: blur(10px);
}

.media-qr-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  text-align: center;
}

.media-qr-panel img {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.media-qr-panel h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  line-height: 1.35;
}

.media-qr-panel p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ============ Home toys ============ */
.home-toys-section {
  position: relative;
  padding: 58px 0 68px;
  border-top: 0;
  background: transparent;
}

.home-toys-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.home-toys-head .section-tag {
  margin-bottom: 12px;
}

.home-toys-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.home-toys-head p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-toys-more {
  white-space: nowrap;
}

.home-toys-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-toy-card {
  min-width: 0;
  min-height: 308px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-toy-card:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

.home-toy-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.home-toy-card.is-soon {
  cursor: default;
}

.home-toy-card.is-soon:hover {
  border-color: var(--border);
  transform: none;
}

.home-toy-visual {
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(243, 182, 128, .18), transparent 34%),
    linear-gradient(135deg, rgba(224, 111, 42, .12), rgba(255, 255, 255, .02));
  overflow: hidden;
}

.home-toy-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-toy-card--dino .home-toy-visual img {
  width: 82px;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  filter: invert(1) brightness(1.2);
}

.home-toy-visual span {
  color: rgba(243, 182, 128, .82);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-toy-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}

.home-toy-body h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
}

.home-toy-body p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-toy-tags {
  margin-top: auto;
}

.home-toy-tags .tag {
  pointer-events: none;
}

.home-toy-open {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, color .2s ease;
}

.home-toy-card:hover .home-toy-open {
  color: #fff;
  transform: translateX(2px);
}

.home-toy-card.is-soon .home-toy-open,
.home-toy-card.is-soon:hover .home-toy-open {
  color: var(--muted-2);
  transform: none;
}

html[data-theme="light"] .home-toys-section {
  background: transparent;
}

html[data-theme="light"] .home-toy-card {
  box-shadow: var(--shadow);
}

html[data-theme="light"] .home-toy-visual {
  background:
    radial-gradient(circle at 30% 20%, rgba(224, 111, 42, .16), transparent 34%),
    linear-gradient(135deg, rgba(255, 247, 237, .95), rgba(255, 255, 255, .76));
}

html[data-theme="light"] .home-toy-card--dino .home-toy-visual img {
  filter: none;
}

html[data-theme="light"] .home-toy-card:hover .home-toy-open {
  color: var(--blue-2);
}

.post-stack {
  display: grid;
  gap: 18px;
}

/* ============ Post card (list-style with thumb) ============ */
.post-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: .2s ease;
}

.post-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  color: inherit;
}

.post-card:hover {
  border-color: rgba(224, 111, 42, .55);
  transform: translateY(-2px);
}

.post-card-media {
  display: block;
  min-height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-2);
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.post-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--heading);
  line-height: 1.35;
  font-weight: 700;
}

.post-card h3 a {
  color: inherit;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.post-card h3 a:hover { color: inherit; }

.post-card p,
.post-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.card-badge {
  font-size: 13px;
  color: var(--muted-2);
}

.card-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-meta-right {
  display: flex;
  gap: 12px;
  color: var(--muted-2);
}

.tags-list,
.article-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.tag,
.tags-list a,
.tags-list span,
.article-tags a,
.card-badge-tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(224, 111, 42, 0.11);
  color: var(--blue-light);
  font-size: 12px;
  border: 1px solid rgba(224, 111, 42, 0.14);
  line-height: 1.4;
  display: inline-block;
  pointer-events: auto;
}

.tag:hover,
.tags-list a:hover,
.article-tags a:hover {
  background: rgba(224, 111, 42, 0.22);
  color: #fff;
}

/* ============ Sidebar ============ */
.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.side-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.side-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--heading);
  font-weight: 700;
}

.side-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* Profile card */
.side-profile {
  padding: 0;
  overflow: hidden;
}

.profile-banner {
  height: 80px;
  background: linear-gradient(135deg, #2d2118 0%, #6f351d 55%, #3d2b1f 100%);
  background-size: cover;
  background-position: center;
}

.profile-body {
  padding: 0 18px 18px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--card);
  margin-top: -32px;
  display: block;
  object-fit: cover;
}

.profile-avatar--default {
  background: linear-gradient(135deg, #e06f2a 0%, #8a3f1a 100%);
}

.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 10px;
  margin-bottom: 5px;
}

.profile-bio {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.profile-stat {
  text-align: center;
  padding: 2px 4px;
}

.profile-stat + .profile-stat {
  border-left: 1px solid var(--border);
}

.profile-stat strong {
  display: block;
  color: var(--heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.profile-stat span {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 3px;
}

/* Legacy — kept for any existing usage */
.side-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8ede3, #64748b);
  margin-bottom: 14px;
  object-fit: cover;
}

.side-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.side-stats strong {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.side-stats span {
  color: var(--muted-2);
  font-size: 12px;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-list li { margin: 0; }

.side-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  padding: 4px 0;
  transition: color .2s ease;
}

.side-list a strong {
  color: inherit;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-list a span {
  color: var(--muted-2);
  font-size: 12px;
  font-family: var(--mono);
  white-space: nowrap;
}

.side-list a:hover,
.side-list a:hover strong { color: #fff; }

.subscribe input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  margin: 12px 0 10px;
}

.subscribe .button { width: 100%; }

/* Terminal stats card */
.side-terminal {
  padding: 0;
  overflow: hidden;
  background: var(--card-bg);
}

.side-terminal .terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.side-terminal .terminal-title {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.side-terminal .terminal-body {
  margin: 0;
  padding: 14px 18px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--body);
  background: transparent;
  border: 0;
  overflow: hidden;
}

.side-terminal .t-prompt { color: var(--green); }
.side-terminal .t-cmd { color: #e5e7eb; }
.side-terminal .t-tree { color: var(--muted-2); }
.side-terminal .t-key { color: var(--muted); }
.side-terminal .t-val { color: #86efac; }

/* Latest comments */
.side-comments {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.side-comments li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.side-comments li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-comments .sc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.side-comments .sc-author {
  color: var(--blue-light);
  font-weight: 600;
  font-size: 13px;
}

.side-comments .sc-meta {
  color: var(--muted-2);
  font-size: 11px;
  font-family: var(--mono);
}

.side-comments .sc-text {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-comments .sc-on {
  color: var(--muted-2);
  font-size: 12px;
  display: inline-block;
}

.side-comments .sc-on a { color: var(--muted-2); }
.side-comments .sc-on a:hover { color: var(--blue-light); }
