/* 全局样式补充（Tailwind 之外） */
body { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* 长单词 / URL 自动断词，避免移动端横向溢出 */
body { overflow-wrap: break-word; word-break: break-word; }
html, body { max-width: 100%; overflow-x: hidden; }

/* 「精」徽章：金色渐变 */
.badge-featured {
  display: inline; align-items: center; vertical-align: middle;
  margin-right: 5px; padding: 5px; border-radius: 5px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 9px; font-weight: 600; letter-spacing: .3px;
  color: #fff;
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 45%, #d97706 100%);
  box-shadow: 0 1px 3px rgba(217, 119, 6, .35);
}

/* 正文排版 */
.prose-cn { font-size: 16.5px; line-height: 1.9; color: #3a3630; }
.prose-cn h1, .prose-cn h2, .prose-cn h3 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  color: #232019; margin: 1.9em 0 0.7em; line-height: 1.4;
}
.prose-cn h1 { font-size: 1.7em; }
.prose-cn h2 { font-size: 1.4em; }
.prose-cn h3 { font-size: 1.18em; }
.prose-cn p { margin: 0.9em 0; }
.prose-cn ul, .prose-cn ol { margin: 0.9em 0 0.9em 1.4em; }
.prose-cn ul { list-style: disc; }
.prose-cn ol { list-style: decimal; }
.prose-cn li { margin: 0.35em 0; }
.prose-cn a { color: #b95425; text-decoration: underline; text-underline-offset: 3px; }
.prose-cn a:hover { color: #963f20; }
.prose-cn blockquote {
  border-left: 3px solid #e8ab7f; background: #fdf6f0;
  padding: 0.7em 1em; margin: 1.2em 0; color: #635d53; border-radius: 0 8px 8px 0;
}
.prose-cn code {
  background: #eeeeec; padding: 0.15em 0.4em; border-radius: 5px;
  font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}
.prose-cn pre {
  background: #282c34; color: #abb2bf; padding: 1em 1.2em; border-radius: 12px;
  overflow-x: auto; margin: 1.2em 0; font-size: 13.5px; line-height: 1.7;
}
.prose-cn pre code {
  background: transparent; padding: 0; color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}
.prose-cn img { border-radius: 12px; margin: 1.2em 0; max-width: 100%; cursor: zoom-in; }
.prose-cn hr { border: 0; border-top: 1px solid #dedcd8; margin: 2em 0; }
.prose-cn table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.94em; }
.prose-cn th, .prose-cn td { border: 1px solid #dedcd8; padding: 0.5em 0.8em; text-align: left; }
.prose-cn th { background: #f7f7f6; font-weight: 600; }

/* 灯箱 */
#lightbox-mask {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(20,18,14,.9); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
#lightbox-mask img#lb-img {
  max-width: 100%; max-height: calc(100vh - 48px); border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default;
}
#lightbox-mask .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1;
  border: 0; cursor: pointer; transition: background .2s ease; user-select: none;
}
#lightbox-mask .lb-nav:hover { background: rgba(255,255,255,.28); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }
#lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: .05em;
}
#lb-close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1;
  border: 0; cursor: pointer; transition: background .2s ease;
}
#lb-close:hover { background: rgba(255,255,255,.28); }

/* 卡片悬停 */
.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(35,32,25,.18); }

/* 平滑过渡 */
.transition-smooth { transition: all .2s ease; }
