/* ==========================================================================
   鹿朋商管 · 内容页样式（知识库列表/详情、原创分析列表/详情）
   2026-10-01  新增。仅这 4 个页面引用，独立文件便于增量部署。
   依赖 main.css 中的 :root 变量：--lp-ink / --lp-primary / --lp-line 等
   ========================================================================== */

/* ---------------------------------------------------------------- 页面外壳 */
.lp-page {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px)  { .lp-page { padding-inline: 24px; } }
@media (min-width: 1280px) { .lp-page { padding-inline: 32px; } }

/* 顶部留白只由 .lp-page 的 padding-top（=导航高度，见 main.css）承担。
   此前这里再加一次 nav 高度，与 .lp-page 叠加成 168px，导致面包屑上方出现大片空白。 */
.lp-main {
  padding-top: 0;
  padding-bottom: 56px;
}
@media (min-width: 768px) { .lp-main { padding-bottom: 80px; } }

/* 锚点跳转补偿：导航是 fixed 定位，点目录跳转时标题会被导航盖住 */
html { scroll-padding-top: calc(var(--lp-nav-h) + 24px); }

/* ---------------------------------------------------------------- 面包屑 */
.lp-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-muted);
  white-space: nowrap;
  overflow-x: auto;
  padding-block: 14px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lp-crumb::-webkit-scrollbar { display: none; }
.lp-crumb a { color: #4b5563; text-decoration: none; }
.lp-crumb a:hover { color: var(--lp-primary); }
.lp-crumb .sep { color: #c7cbd1; }
.lp-crumb .cur { color: #9aa0a6; }

/* ---------------------------------------------------------------- 页头 */
.lp-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 34px 22px;
  text-align: center;
  background: linear-gradient(135deg, #123039 0%, #0b4a54 58%, #134f56 100%);
}
@media (min-width: 768px) { .lp-hero { padding: 46px 40px; } }

.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 84% 8%, rgba(184, 137, 75, .30), transparent 62%),
    radial-gradient(80% 70% at 6% 96%, rgba(255, 255, 255, .10), transparent 60%);
  pointer-events: none;
}
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
  letter-spacing: .01em;
}
.lp-hero p {
  margin: 0 auto;
  max-width: 46rem;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .84);
}
@media (min-width: 768px) { .lp-hero p { font-size: 15px; } }

/* 页头统计条 */
.lp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .7);
}
.lp-hero-stats b { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- 搜索框 */
/* 列表页：搜索框与结果条同排，窄屏自动折到下一行 */
.lp-toolbar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}
.lp-toolbar .lp-search {
  flex: 0 1 340px;
  max-width: 340px;
  margin: 0;
  margin-inline: 0;
  padding: 3px 3px 3px 13px;
}
.lp-toolbar .lp-search input { height: 34px; font-size: 14px; }
.lp-toolbar .lp-search button { height: 34px; padding-inline: 17px; font-size: 13.5px; }
@media (max-width: 639px) {
  .lp-toolbar { justify-content: flex-start; }
  .lp-toolbar-info { width: 100%; }
  .lp-toolbar .lp-search { flex: 1 1 100%; max-width: none; }
}
/* 平板及紧凑桌面（640~1199）：结果条文字较长（归档/搜索页）时允许折行，
   折行后搜索框撑满整行，避免 340px 宽度孤零零停在左侧。 */
@media (min-width: 640px) and (max-width: 1199px) {
  .lp-toolbar .lp-search { flex: 1 1 260px; max-width: none; }
}

.lp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin-inline: auto;
  padding: 5px 5px 5px 14px;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.lp-search:focus-within {
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 4px rgba(11, 74, 84, .07);
}
.lp-search .lp-search-ico { flex: none; width: 18px; height: 18px; color: #9aa0a6; }
.lp-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--lp-ink);
}
.lp-search input::placeholder { color: #9aa0a6; }
.lp-search button {
  flex: none;
  height: 38px;
  padding-inline: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--lp-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s;
}
.lp-search button:hover { opacity: .88; }

/* ---------------------------------------------------------------- 两栏布局 */
.lp-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 20px;
}
@media (min-width: 1024px) {
  .lp-layout {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
}

/* ---------------------------------------------------------------- 侧栏 */
.lp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lp-main-area { min-width: 0; }
@media (min-width: 1024px) {
  .lp-side { position: sticky; top: calc(var(--lp-nav-h) + 20px); }
}
/* 移动端单栏：让侧栏子项直接参与主列排序，
   固定为「分类 → 搜索/列表 → 推广卡」，避免小程序卡插在 hero 与搜索框之间，
   把搜索框和首屏列表挤到第二屏。 */
@media (max-width: 1023px) {
  .lp-side { display: contents; }
  .lp-cats { order: 1; }
  .lp-main-area { order: 2; }
  .lp-side > .lp-card-mini { order: 3; }
}

.lp-side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #8a9299;
  text-transform: uppercase;
}

/* 分类导航：桌面竖排 / 移动横滚 chips */
.lp-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lp-cats::-webkit-scrollbar { display: none; }
.lp-cats a {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  color: #55636b;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.lp-cats a:hover { border-color: var(--lp-primary); color: var(--lp-primary); }
.lp-cats a.on {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: #fff;
  font-weight: 500;
}
.lp-cats .cnt { opacity: .6; font-size: 12px; margin-left: 3px; }

@media (min-width: 1024px) {
  .lp-cats {
    display: block;
    overflow: visible;
    padding: 0;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    padding: 8px;
  }
  .lp-cats a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 9px 12px;
    white-space: normal;
  }
  .lp-cats a:hover { background: rgba(11, 74, 84, .06); }
  .lp-cats a.on { background: rgba(11, 74, 84, .09); color: var(--lp-primary); font-weight: 600; }
}

/* 侧栏小卡 */
.lp-card-mini {
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 16px;
}
.lp-card-mini h3 {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--lp-ink);
}
.lp-card-mini ul { margin: 0; padding: 0; list-style: none; }
.lp-card-mini li + li { margin-top: 9px; padding-top: 9px; border-top: 1px dashed #eef1f3; }
.lp-card-mini li a {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4b5563;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp-card-mini li a:hover { color: var(--lp-primary); }
.lp-card-mini .idx {
  display: inline-block;
  min-width: 17px;
  margin-right: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lp-accent);
}
@media (max-width: 1023px) {
  .lp-side .lp-hide-m { display: none; }
}

/* ---------------------------------------------------------------- 结果条 */
.lp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f3;
  font-size: 13.5px;
  color: var(--lp-muted);
}
.lp-toolbar .cnt b { color: var(--lp-primary); font-weight: 600; }
.lp-toolbar .reset { color: var(--lp-muted); text-decoration: none; }
.lp-toolbar .reset:hover { color: var(--lp-primary); }
.lp-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(11, 74, 84, .08);
  color: var(--lp-primary);
  font-size: 12px;
}
.lp-badge.gray { background: #f1f3f4; color: #6b7a82; }

/* ---------------------------------------------------------------- 文章卡片 */
.lp-cards { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .lp-cards { gap: 14px; } }

.lp-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.lp-card:hover {
  border-color: rgba(11, 74, 84, .28);
  box-shadow: 0 14px 30px -22px rgba(20, 35, 43, .45);
  transform: translateY(-1px);
}
.lp-card > a {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 768px) { .lp-card > a { padding: 20px 24px; } }

.lp-card-cat {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2.5px 10px;
  border-radius: 6px;
  background: rgba(184, 137, 75, .1);
  color: #8f6829;
  font-size: 12px;
  font-weight: 500;
}
.lp-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--lp-ink);
  transition: color .2s;
}
@media (min-width: 768px) { .lp-card-title { font-size: 18.5px; } }
.lp-card:hover .lp-card-title { color: var(--lp-primary); }

.lp-card-digest {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: #5f6b73;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .lp-card-digest { font-size: 14px; -webkit-line-clamp: 2; }
}

.lp-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #9aa0a6;
}
.lp-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d5d9dd;
}
.lp-card-meta .more {
  margin-left: auto;
  color: var(--lp-primary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.lp-card-meta .more::after { content: " \2192"; }

/* ---------------------------------------------------------------- 分页 */
.lp-pager { margin-top: 30px; text-align: center; }
.lp-pager-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.lp-pager a,
.lp-pager span.pg,
.lp-pager span.pg-on {
  min-width: 36px;
  height: 36px;
  padding-inline: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lp-line);
  border-radius: 9px;
  background: #fff;
  color: #55636b;
  text-decoration: none;
  transition: all .2s;
}
.lp-pager a:hover { border-color: var(--lp-primary); color: var(--lp-primary); }
.lp-pager span.pg { color: #c7cbd1; }
.lp-pager span.pg-on {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: #fff;
  font-weight: 600;
}
.lp-pager .lbl { min-width: auto; padding-inline: 14px; }
.lp-pager-jump {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--lp-muted);
}
.lp-pager-jump input {
  width: 62px;
  height: 34px;
  padding-inline: 8px;
  border: 1px solid var(--lp-line);
  border-radius: 9px;
  text-align: center;
  font-size: 13.5px;
}
.lp-pager-jump button {
  height: 34px;
  padding-inline: 14px;
  border: 1px solid var(--lp-line);
  border-radius: 9px;
  background: #fff;
  color: #55636b;
  font-size: 13.5px;
  cursor: pointer;
}
.lp-pager-jump button:hover { border-color: var(--lp-primary); color: var(--lp-primary); }

/* ---------------------------------------------------------------- 空状态 */
.lp-empty {
  padding: 64px 20px;
  text-align: center;
  color: #9aa0a6;
  font-size: 14.5px;
}
.lp-empty .big { display: block; font-size: 34px; margin-bottom: 12px; opacity: .35; }
.lp-empty a { color: var(--lp-primary); }

/* ---------------------------------------------------------------- 页面导语 */
.lp-overview {
  margin: 0 0 18px;
  padding: 13px 15px 13px 16px;
  border-left: 3px solid var(--lp-accent);
  border-radius: 0 10px 10px 0;
  background: #fbfaf8;
  font-size: 13.5px;
  line-height: 1.85;
  color: #5f6b73;
}
@media (min-width: 768px) { .lp-overview { font-size: 14px; margin-bottom: 20px; } }

/* ------------------------------------------- 小程序 + 公众号 双码卡（并排） */
.lp-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}
.lp-duo > .lp-qrcard { margin-top: 0; height: 100%; }
@media (min-width: 1080px) {
  .lp-duo { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* 二维码卡上的行动提示（小程序卡与公众号卡共用金色强调） */
.lp-qrcard .lp-qrcard-tip {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-accent);
}

/* ---------------------------------------------------------------- 底部区块 */
.lp-block {
  margin-top: 34px;
  padding: 22px;
  background: #fbfaf8;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
}
@media (min-width: 768px) { .lp-block { padding: 26px 28px; } }
.lp-block h2,
.lp-block h3 {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--lp-ink);
}
.lp-block-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 20px;
}
@media (min-width: 640px) { .lp-block-links { grid-template-columns: 1fr 1fr; } }
.lp-block-links a {
  font-size: 13.5px;
  line-height: 1.6;
  color: #55636b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp-block-links a::before { content: "\00b7"; margin-right: 7px; color: var(--lp-accent); font-weight: 700; }
.lp-block-links a:hover { color: var(--lp-primary); }

/* CTA */
.lp-cta {
  margin-top: 34px;
  padding: 30px 22px;
  border-radius: 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #123039 0%, #0b4a54 62%, #134f56 100%);
}
@media (min-width: 768px) { .lp-cta { padding: 42px 36px; } }
.lp-cta h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; line-height: 1.35; }
.lp-cta p { margin: 0 auto 22px; max-width: 34rem; font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, .8); }
.lp-cta-btns { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
@media (min-width: 640px) { .lp-cta-btns { flex-direction: row; } }
.lp-cta-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.lp-cta-btns .solid { background: var(--lp-accent); color: #241a08; }
.lp-cta-btns .solid:hover { background: #c9975a; }
.lp-cta-btns .ghost { border: 1px solid rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .1); }
.lp-cta-btns .ghost:hover { background: rgba(255, 255, 255, .2); }

/* 二维码卡 */
.lp-qrcard {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  text-align: center;
}
@media (min-width: 640px) {
  .lp-qrcard { flex-direction: row; text-align: left; gap: 22px; }
}
.lp-qrcard img { width: 108px; height: 108px; object-fit: contain; flex: none; }
.lp-qrcard h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--lp-ink); }
.lp-qrcard p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--lp-muted); }

/* ---------------------------------------------------------------- 微信小程序 */
/* 小程序标识小徽标 */
.lp-xcx-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  vertical-align: 1px;
  white-space: nowrap;
  color: var(--lp-primary);
  background: rgba(11, 74, 84, .07);
  border: 1px solid rgba(11, 74, 84, .16);
}

/* 列表页侧栏小程序卡（桌面竖排） */
.lp-xcx .lp-xcx-qr {
  display: block;
  width: 108px;
  height: 108px;
  margin: 2px auto 12px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  object-fit: contain;
}
.lp-xcx .lp-xcx-desc { margin: 0 0 9px; font-size: 13px; line-height: 1.7; color: #6b7a82; }
.lp-xcx .lp-xcx-tip { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--lp-accent); }

/* 移动端：侧栏小程序卡改横向紧凑排列，压缩高度 */
@media (max-width: 1023px) {
  .lp-xcx {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 4px 14px;
    align-items: center;
  }
  .lp-xcx h3 { grid-column: 2; grid-row: 1; margin: 0 0 4px; }
  .lp-xcx .lp-xcx-qr { grid-column: 1; grid-row: 1 / span 3; width: 80px; height: 80px; margin: 0; }
  .lp-xcx .lp-xcx-desc { grid-column: 2; grid-row: 2; margin: 0 0 5px; font-size: 12.5px; line-height: 1.6; }
  .lp-xcx .lp-xcx-tip { grid-column: 2; grid-row: 3; font-size: 12px; }
}

/* 详情页底部小程序卡（沿用 .lp-qrcard 的响应式骨架） */
.lp-qrcard--xcx {
  background: linear-gradient(135deg, #f7fbfb 0%, #fdfaf6 100%);
  border-color: rgba(184, 137, 75, .28);
}
.lp-qrcard--xcx img {
  width: 132px;
  height: 132px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
}
.lp-qrcard--xcx p { color: #5c6a72; }
.lp-qrcard--xcx .lp-qrcard-tip {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-accent);
}

/* ==========================================================================
   详情页
   ========================================================================== */

.lp-article { max-width: 1180px; margin-inline: auto; }

/* 文章头 */
.lp-art-head { text-align: center; margin-bottom: 22px; }
.lp-art-head h1 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.42;
  color: var(--lp-ink);
  letter-spacing: .01em;
}
.lp-art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 13px;
  color: #9aa0a6;
}
.lp-art-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #d5d9dd; }
.lp-art-meta .cat {
  padding: 2.5px 10px;
  border-radius: 6px;
  background: rgba(184, 137, 75, .1);
  color: #8f6829;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.lp-art-meta .cat:hover { background: rgba(184, 137, 75, .18); }

/* 摘要 */
.lp-art-digest {
  margin: 0 0 26px;
  padding: 18px 20px;
  background: #fbfaf8;
  border: 1px solid var(--lp-line);
  border-left: 3px solid var(--lp-accent);
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #55636b;
}
@media (min-width: 768px) { .lp-art-digest { padding: 20px 24px; font-size: 15px; } }

/* 正文 + 目录 两栏 */
.lp-art-body { display: block; }
@media (min-width: 1120px) {
  .lp-art-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 244px;
    gap: 44px;
    align-items: start;
  }
}
.lp-art-main { max-width: 820px; margin-inline: auto; }

/* 目录 */
.lp-toc {
  display: none;
  position: sticky;
  top: calc(var(--lp-nav-h) + 20px);
  padding-left: 18px;
  border-left: 1px solid var(--lp-line);
  max-height: calc(100vh - var(--lp-nav-h) - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
}
@media (min-width: 1120px) { .lp-toc { display: block; } }
.lp-toc h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #9aa0a6;
  text-transform: uppercase;
}
.lp-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.lp-toc li { margin-bottom: 9px; }
.lp-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7a82;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.lp-toc a:hover,
.lp-toc a.active { color: var(--lp-primary); }
.lp-toc .lv3 { padding-left: 13px; font-size: 12.5px; }

/* 移动端折叠目录 */
.lp-toc-m {
  margin-bottom: 22px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
@media (min-width: 1120px) { .lp-toc-m { display: none; } }
.lp-toc-m > summary {
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-toc-m > summary::-webkit-details-marker { display: none; }
.lp-toc-m > summary::after { content: "\002B"; color: var(--lp-primary); font-weight: 400; font-size: 18px; }
.lp-toc-m[open] > summary::after { content: "\2212"; }
.lp-toc-m ol {
  margin: 0;
  padding: 4px 18px 16px;
  list-style: none;
  counter-reset: toc;
  border-top: 1px solid #eef1f3;
  padding-top: 12px;
}
.lp-toc-m li { margin-bottom: 10px; }
.lp-toc-m a {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: #55636b;
  text-decoration: none;
}
.lp-toc-m a:hover { color: var(--lp-primary); }

/* 正文排版（覆盖/增强 main.css 的 .article-content） */
.lp-content {
  font-size: 16.5px;
  line-height: 1.95;
  letter-spacing: .015em;
  color: #26313a;
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .lp-content { font-size: 16px; line-height: 1.9; letter-spacing: .01em; }
}
.lp-content > *:first-child { margin-top: 0; }
.lp-content p { margin: 0 0 1.35em; }
/* 点目录跳转时，标题不被固定导航遮挡 */
.lp-content h2,
.lp-content h3,
.lp-content h4 { scroll-margin-top: calc(var(--lp-nav-h) + 24px); }
.lp-content h2 {
  margin: 2.1em 0 .9em;
  padding-left: 14px;
  border-left: 4px solid var(--lp-primary);
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.48;
  color: var(--lp-ink);
}
@media (min-width: 768px) { .lp-content h2 { font-size: 1.45rem; } }
.lp-content h3 {
  margin: 1.8em 0 .7em;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--lp-ink);
}
.lp-content h4 { margin: 1.5em 0 .6em; font-size: 1.02rem; font-weight: 600; color: var(--lp-ink); }
.lp-content strong { font-weight: 600; color: #17222a; }
.lp-content a { color: var(--lp-primary); text-decoration: underline; text-underline-offset: 3px; }
.lp-content ul,
.lp-content ol { margin: 0 0 1.35em; padding-left: 1.45em; }
.lp-content li { margin-bottom: .5em; }
.lp-content li::marker { color: var(--lp-accent); }
.lp-content blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--lp-accent);
  border-radius: 0 10px 10px 0;
  background: #fbfaf8;
  color: #55636b;
  font-size: 15.5px;
}
.lp-content blockquote p:last-child { margin-bottom: 0; }
.lp-content hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--lp-line); }
.lp-content img { max-width: 100%; height: auto; border-radius: 10px; }
.lp-content figure { margin: 1.8em 0; }

/* 表格：桌面正常，移动端横向滚动 */
.lp-content table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
}
.lp-content th,
.lp-content td { padding: 10px 12px; border: 1px solid var(--lp-line); text-align: left; }
.lp-content th { background: #f7f5f1; font-weight: 600; color: var(--lp-ink); }
.lp-table-scroll {
  margin: 1.6em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lp-table-scroll table { margin: 0; min-width: 560px; }

/* 代码 */
.lp-content pre {
  margin: 1.6em 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #16232b;
  color: #e6edf3;
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lp-content code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(11, 74, 84, .07);
  color: #0b4a54;
  font-size: .92em;
  word-break: break-word;
}
.lp-content pre code { padding: 0; background: none; color: inherit; }

/* 文章配图（兼容数据库里已存的 .article-image-wrapper 结构） */
.lp-content .article-image-wrapper { margin: 1.9em 0; text-align: center; }
.lp-content .article-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 26px -18px rgba(20, 35, 43, .5);
}
.lp-content .article-image-caption {
  margin-top: 9px;
  font-size: 12.5px;
  color: #9aa0a6;
}

/* 移动端正文内边距更贴合屏幕 */
@media (max-width: 767px) {
  .lp-art-main { padding-inline: 2px; }
}

/* ---------------------------------------------------------------- 上下篇 */
.lp-navbox {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--lp-line);
}
@media (min-width: 768px) { .lp-navbox { grid-template-columns: 1fr 1fr; } }
.lp-navbox a {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 13px;
  text-decoration: none;
  transition: all .2s;
}
.lp-navbox a:hover { border-color: rgba(11, 74, 84, .3); box-shadow: 0 12px 26px -22px rgba(20, 35, 43, .5); }
.lp-navbox .k { display: block; margin-bottom: 6px; font-size: 12.5px; color: #9aa0a6; }
.lp-navbox .t {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--lp-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp-navbox a:hover .t { color: var(--lp-primary); }
.lp-navbox .next { text-align: right; }
.lp-navbox .dead { opacity: .42; pointer-events: none; background: #fbfaf8; }

/* ---------------------------------------------------------------- 相关阅读 */
.lp-rel { margin-top: 34px; }
.lp-rel h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-ink);
}
.lp-rel h3::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--lp-accent); }
.lp-rel ul { margin: 0; padding: 0; list-style: none; }
.lp-rel li + li { border-top: 1px dashed #eef1f3; }
.lp-rel li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 2px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4b5563;
  text-decoration: none;
}
.lp-rel li a::before { content: "\00b7"; color: var(--lp-accent); font-weight: 700; }
.lp-rel li a:hover { color: var(--lp-primary); }
.lp-rel .date { margin-left: auto; flex: none; font-size: 12.5px; color: #b3b8bd; }

/* 底部快捷链接 */
.lp-quicklinks {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: #c7cbd1;
  line-height: 2;
}
.lp-quicklinks a { color: var(--lp-muted); text-decoration: none; margin-inline: 6px; }
.lp-quicklinks a:hover { color: var(--lp-primary); }
