/* =========================================================================
   kb.iaitop.com · 首屏体验层附加样式（骨架屏 / 流式淡入 / 完整日期）
   ========================================================================= */

/* ---------- 骨架屏 ---------- */
.kb-skel-wrap { padding: 2px 0; }
.kb-skel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 6px;
  background: var(--bg);
}
.kb-skel > div {
  background: linear-gradient(90deg, #ececf0 25%, #f5f5f7 37%, #ececf0 63%);
  background-size: 400% 100%;
  animation: kb-shimmer 1.35s ease-in-out infinite;
  border-radius: 6px;
}
.kb-skel-t { height: 14px; width: 62%; margin-bottom: 9px; }
.kb-skel-e { height: 11px; width: 88%; margin-bottom: 11px; opacity: .8; }
.kb-skel-m2 { display: flex; align-items: center; height: 12px; }
.kb-skel-chip { width: 46px; height: 12px; border-radius: 999px; margin-right: auto; }
.kb-skel-d { width: 54px; height: 11px; }

/* 移动端骨架尺寸与真实卡片对齐 */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .kb-skel { border-radius: 14px; padding: 14px; margin-bottom: 8px; min-height: 68px; }
  .kb-skel-t { height: 15px; width: 58%; }
  .kb-skel-e { height: 12px; width: 92%; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .kb-skel-wrap { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .kb-skel { margin-bottom: 0; }
}

@keyframes kb-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-skel > div { animation: none; }
  .kb-stream { opacity: 1 !important; transform: none !important; }
}

/* ---------- 逐条流式淡入 ---------- */
.doc-item.kb-stream {
  opacity: 0;
  transform: translateY(6px);
  animation: none;
}
.doc-item.kb-stream.kb-in {
  opacity: 1;
  transform: none;
  transition: opacity .22s cubic-bezier(.22,1,.36,1), transform .22s cubic-bezier(.22,1,.36,1);
}

/* ---------- 完整日期 ---------- */
.doc-item .meta .d.kb-full-date {
  font-size: 11px;
  letter-spacing: -.1px;
  white-space: nowrap;
}
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .doc-item .meta .d.kb-full-date { font-size: 11.5px; }
}

/* 移动端：摘要行与日期同排时避免挤压 */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .doc-item .meta { flex-wrap: nowrap; }
  .doc-item .meta .d { margin-left: auto; flex-shrink: 0; }
}
