/* ============================================
   融易通知识库 · 文章页样式
   复用 blog/style.css 的配色变量
   ============================================ */

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumb a {
  color: var(--forest);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--red);
  text-decoration: underline;
}
.breadcrumb span {
  color: var(--line);
}

/* ---------- 文章头部 ---------- */
.post {
  padding-bottom: 4rem;
}
.post-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.post-header .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.post-header h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.post-meta span + span::before {
  content: "·";
  margin-right: 1.5rem;
  color: var(--line);
}

/* ---------- 正文排版 ---------- */
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink);
}
.post-content h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 2.5em 0 0.8em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--line);
  color: var(--forest);
}
.post-content h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 2em 0 0.6em;
  color: var(--forest);
}
.post-content p {
  margin: 0 0 1.2em;
}
.post-content strong {
  color: var(--ink);
  font-weight: 600;
}
.post-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content ul,
.post-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}
.post-content li {
  margin-bottom: 0.5em;
}
.post-content blockquote {
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  border-left: 3px solid var(--gold);
  background: rgba(197, 151, 67, 0.08);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.post-content blockquote p {
  margin: 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}
.post-content table th,
.post-content table td {
  border: 1px solid var(--line);
  padding: 0.6em 0.9em;
  text-align: left;
}
.post-content table th {
  background: rgba(23, 59, 52, 0.06);
  font-weight: 600;
  color: var(--forest);
}
.post-content table tr:nth-child(even) td {
  background: rgba(23, 59, 52, 0.03);
}
.post-content code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(23, 33, 31, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.post-content pre {
  background: var(--ink);
  color: var(--white);
  padding: 1em 1.2em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5em 0;
}

/* ---------- 文章尾部 ---------- */
.post-footer {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}
.post-disclaimer {
  background: rgba(23, 59, 52, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2em 1.4em;
  margin-bottom: 1.5rem;
}
.post-disclaimer strong {
  color: var(--forest);
  display: block;
  margin-bottom: 0.4em;
  font-size: 0.9rem;
}
.post-disclaimer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.back-link {
  display: inline-block;
  color: var(--forest);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.back-link:hover {
  color: var(--red);
}

/* ---------- 知识库导航页 ---------- */
.kb-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}
.kb-header .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.kb-header h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: var(--ink);
  margin: 0 0 1rem;
}
.kb-intro {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}
.kb-cats {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.cat-block {
  margin-bottom: 2.5rem;
}
.cat-block h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--forest);
  margin: 0 0 0.4em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--line);
}
.cat-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 1em;
}
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7em 1em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}
.cat-list li:hover {
  border-color: var(--gold);
  transform: translateX(3px);
}
.cat-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.cat-list a:hover {
  color: var(--red);
}
.cat-list span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .post-content {
    font-size: 1rem;
  }
  .cat-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
}

.building-tag {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--ink-soft);
  background: rgba(23, 33, 31, 0.06);
  padding: 0.15em 0.5em;
  border-radius: 999px;
  margin-left: 0.5rem;
  font-weight: 400;
  vertical-align: middle;
}

/* ============================================
   第三批 B/C：中文微排版 + 文章页布局优化
   ============================================ */

/* B1: 中文标题字距舒展（英文用负字距，中文用正字距） */
html[lang="zh-CN"] .post-header h1,
html[lang="zh-CN"] .hero h1,
html[lang="zh-CN"] h1 {
  letter-spacing: 0;
  line-height: 1.4;
}
html[lang="en"] .hero h1 {
  letter-spacing: -0.035em;
}

/* B2: 中文正文微排版 */
.post-content {
  text-align: justify;
  text-justify: inter-ideograph;
  line-break: strict;
}
.post-content p {
  text-wrap: pretty;
}
.post-content h2,
.post-content h3 {
  text-wrap: balance;
}
@supports (hanging-punctuation: first allow-end) {
  .post-content {
    hanging-punctuation: first allow-end;
  }
}

/* B3: 数字排版 */
.post-meta,
.article-meta,
.post-content time,
.post-content table td,
.post-content table th {
  font-variant-numeric: tabular-nums lining-nums;
}

/* B5: h2 重设计（短金线强调，去掉通栏 border-bottom） */
.post-content h2 {
  border-bottom: none;
  padding-left: 0.9em;
  position: relative;
  margin: 2.5em 0 0.7em;
}
.post-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 4px;
  background: var(--red);
}
.post-content h3 {
  margin: 2em 0 0.5em;
}

/* C1: 移除旧 kb-with-sidenav 让位规则 → 现在面板浮动，无需让位 */

.post-content {
  max-width: 720px;
}

/* C2: 表格响应式 */
.post-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-content thead th {
  position: sticky;
  top: 0;
  background: rgba(23, 59, 52, 0.06);
  z-index: 1;
}

/* C4: 阅读节奏统一 */
.post-content p {
  margin: 0 0 1.25em;
}
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content table {
  margin: 1.5em 0;
}

/* C5: 移动端阅读 */
@media (max-width: 760px) {
  .post-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    padding: 0 1.25rem;
  }
  .post-header {
    text-align: left;
  }
}

/* B4: 字号下限（≥0.75rem） */
.post-meta span,
.breadcrumb,
.post-disclaimer p,
.cat-list span {
  font-size: 0.75rem;
}

/* C6: 打印样式 */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-header,
  .kb-fab,
  .kb-nav-panel,
  .kb-articles-panel,
  .post-pager,
  .related-reading,
  .footer-nav {
    display: none !important;
  }
  .post-content {
    font-size: 11pt;
    line-height: 1.6;
    max-width: none;
  }
  .post-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
/* ============================================
   融易通知识库 · 三态浮动栏目导航
   - 收起：左贴边 FAB
   - 展开：左侧导航面板（01-15）
   - 文章：右侧文章列表面板
   - 点击任意空白处自动收起
   ============================================ */

/* ---------- 浮动按钮（FAB） ---------- */
.kb-fab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 940;
  width: 32px;
  padding: 18px 0;
  background: rgba(23, 59, 52, 0.85);
  color: var(--paper, #fffdf7);
  border: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--utility);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  cursor: pointer;
  box-shadow: 2px 2px 14px rgba(23, 33, 31, 0.18);
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}
.kb-fab:hover {
  transform: translate(3px, -50%);
  background: rgba(23, 59, 52, 0.95);
}
.kb-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-12px, -50%);
}

/* ---------- 导航面板（左侧弹出） ---------- */
.kb-nav-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 960;
  width: 220px;
  max-width: 78vw;
  background: var(--paper, #fffdf7);
  box-shadow: 4px 0 24px rgba(23, 33, 31, 0.18);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line, rgba(23, 33, 31, 0.12));
}
.kb-nav-panel.is-open {
  transform: translateX(0);
}

.kb-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem 0.8rem;
  border-bottom: 1px solid var(--line, rgba(23, 33, 31, 0.12));
  background: var(--forest, #173b34);
  color: var(--paper, #fffdf7);
  flex-shrink: 0;
}
.kb-nav-header strong {
  font-family: var(--display, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.kb-close {
  background: transparent;
  border: 0;
  width: 28px;
  height: 28px;
  font-size: 1.4rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.kb-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* 导航列表 */
.kb-nav-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}
.kb-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1.1rem;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--ink-soft, #58645f);
  font-family: var(--sans, sans-serif);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.kb-nav-btn i {
  font-style: normal;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold, #c59743);
  min-width: 2em;
  flex-shrink: 0;
}
.kb-nav-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-nav-btn:hover {
  background: rgba(23, 59, 52, 0.06);
  color: var(--ink, #17211f);
}
.kb-nav-btn.is-active {
  background: rgba(23, 59, 52, 0.1);
  color: var(--forest, #173b34);
  border-left-color: var(--red, #a82f28);
  font-weight: 600;
}
.kb-nav-btn.is-active i {
  color: var(--red, #a82f28);
}

/* ---------- 文章列表面板（右侧弹出） ---------- */
.kb-articles-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 960;
  width: 340px;
  max-width: 88vw;
  background: var(--paper, #fffdf7);
  box-shadow: -4px 0 24px rgba(23, 33, 31, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line, rgba(23, 33, 31, 0.12));
}
.kb-articles-panel.is-open {
  transform: translateX(0);
}

.kb-articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--line, rgba(23, 33, 31, 0.12));
  background: var(--white, #fffdf7);
  flex-shrink: 0;
}
.kb-articles-header strong {
  font-family: var(--display, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest, #173b34);
}
.kb-articles-header strong i {
  font-style: normal;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red, #a82f28);
  margin-right: 0.5rem;
}
.kb-articles-header .kb-close {
  color: var(--ink-soft, #58645f);
}
.kb-articles-header .kb-close:hover {
  background: rgba(23, 33, 31, 0.08);
}

/* 文章列表（可上下滑动） */
.kb-articles-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.kb-articles-scroll::-webkit-scrollbar {
  width: 6px;
}
.kb-articles-scroll::-webkit-scrollbar-thumb {
  background: rgba(23, 33, 31, 0.18);
  border-radius: 3px;
}

.kb-articles-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}
.kb-articles-list li {
  margin: 0;
}
.kb-articles-list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  color: var(--ink, #17211f);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(23, 33, 31, 0.06);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.kb-articles-list a i {
  font-style: normal;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold, #c59743);
  min-width: 1.8em;
  flex-shrink: 0;
}
.kb-articles-list a span {
  flex: 1;
}
.kb-articles-list a:hover {
  background: rgba(23, 59, 52, 0.06);
  color: var(--forest, #173b34);
  padding-left: 1.6rem;
}
.kb-empty {
  padding: 2rem 1.4rem;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.92rem;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 760px) {
  .kb-fab {
    width: 28px;
    font-size: 0.62rem;
    padding: 14px 0;
  }
  .kb-nav-panel {
    width: 76vw;
  }
  .kb-articles-panel {
    width: 88vw;
  }
  .kb-nav-btn {
    font-size: 0.88rem;
    padding: 0.65rem 1rem;
  }
  .kb-articles-list a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ---------- 内容让位（仅在面板打开时） ---------- */
body.kb-nav-open main {
  transition: padding-left 0.28s ease;
}

/* ---------- 打印样式：隐藏浮动组件 ---------- */
@media print {
  .kb-fab,
  .kb-nav-panel,
  .kb-articles-panel {
    display: none !important;
  }
}

/* 防止中文标题在面板里折行难看 */
.kb-nav-btn span,
.kb-articles-list a span {
  word-break: keep-all;
}

/* ============================================================
   中国学术排版规范（覆盖层，2026-08）
   正文宋体、首行缩进2字符、标题黑体加粗、
   桌面两端对齐 / 移动端左对齐防字距拉伸
   ============================================================ */

.post-content {
  font-family: Georgia, "Times New Roman", "Noto Serif SC",
               "Source Han Serif SC", "SimSun", "STSong", serif;
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.post-content p {
  text-indent: 2em;
  margin: 0 0 0.7em;
  text-wrap: pretty;
}

.post-content blockquote p,
.post-content li > p,
.post-content td p,
.post-content th p {
  text-indent: 0;
}

.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content table,
.post-content figure {
  text-indent: 0;
}

.post-content ul,
.post-content ol {
  padding-left: 1.8em;
  margin: 0.9em 0;
}
.post-content li {
  margin-bottom: 0.45em;
  line-height: 1.8;
}

.post-content blockquote {
  margin: 1.3em 0;
  padding: 0.7em 1.2em;
  border-left: 3px solid var(--gold);
  background: rgba(197, 151, 67, 0.07);
  font-size: 0.98rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: "DM Sans", -apple-system, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--forest);
  text-indent: 0;
}
.post-content h2 {
  font-size: 1.32rem;
  line-height: 1.4;
  margin: 2.2em 0 0.8em;
}
.post-content h3 {
  font-size: 1.12rem;
  line-height: 1.4;
  margin: 1.8em 0 0.5em;
}
.post-content h4 {
  font-size: 1.05rem;
  margin: 1.5em 0 0.4em;
}

.post-content strong {
  font-weight: 700;
  color: var(--ink);
}

.post-content table td,
.post-content table th,
.post-content time {
  font-variant-numeric: tabular-nums lining-nums;
}

/* 对齐策略：
   全端默认左对齐——任何浏览器字距自然不拉伸。
   （iPhone Safari / 微信 / 部分国产浏览器不支持 CJK 两端对齐优化，justify 会暴力拉伸字距。）
   仅在浏览器支持 CJK 两端对齐优化 + 桌面宽屏时，启用两端对齐。 */
.post-content {
  text-align: left;
}

@media (min-width: 761px) {
  @supports (text-justify: inter-ideograph) {
    .post-content {
      text-align: justify;
      text-justify: inter-ideograph;   /* CJK 字距均匀分布，右边缘整齐且自然 */
      line-break: strict;
    }
    @supports (hanging-punctuation: first allow-end) {
      .post-content {
        hanging-punctuation: first allow-end;
      }
    }
  }
}

@media (max-width: 760px) {
  .post-content {
    text-align: left;                  /* 左对齐：iPhone Safari/微信不支持 CJK 两端对齐优化，justify 必拉伸字距 */
    font-size: 1.0625rem;
    line-height: 1.85;
    padding: 0 1.4rem;                 /* 左右对称留白，文字不贴边 */
  }
  .post-content p {
    text-indent: 2em;
  }
  .post-header {
    text-align: left;
  }
}

@media print {
  .post-content {
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    font-size: 12pt;
    line-height: 1.5;
  }
  .post-content p {
    text-indent: 2em;
    margin: 0 0 0.5em;
  }
  .post-content h2,
  .post-content h3 {
    font-family: "SimHei", "Microsoft YaHei", sans-serif;
  }
}

/* ============================================================
   贷融攻略导读板块（博客首页 #method）
   ============================================================ */
.loan-guide-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}
.loan-guide-intro h2 {
  margin: 0 0 0.8rem;
}
.loan-guide-intro > p:last-child {
  margin: 0 auto;
  color: var(--ink-soft);
  line-height: 1.8;
}
.loan-guide-body {
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.8rem;
}
.loan-guide-body h2:first-child {
  margin-top: 0;
}
.loan-guide-cta {
  text-align: center;
  margin-top: 2rem;
}
@media (max-width: 760px) {
  .loan-guide-body {
    padding: 1.4rem 1.1rem;
  }
}

/* ============================================================
   移动端字体修复（2026-08-31）：iOS 微信正文宋体回退问题
   移动端整体切系统字体栈，不再加载思源宋体 webfont；PC 端不变
   ============================================================ */
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .post-content {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
                 "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC",
                 "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
    line-height: 1.85;
  }
}

/* ============================================================
   知识库搜索（2026-08-31）
   ============================================================ */
.kb-search {
  max-width: 720px;
  margin: 1.6rem auto 0;
  position: relative;
}
.kb-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72em 1.1em;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.kb-search input[type="search"]::placeholder {
  color: var(--ink-soft);
  opacity: 0.75;
}
.kb-search input[type="search"]:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 59, 52, 0.1);
}
.kb-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button;
}
.kb-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.14);
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding: 0.6rem 0.9rem 0.8rem;
  text-align: left;
}
.kb-search-results[hidden] {
  display: none;
}
.kb-search-status {
  margin: 0.4em 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.kb-search-list {
  margin: 0.2em 0 0;
  padding: 0;
  list-style: none;
}
.kb-search-list li {
  padding: 0.65em 0;
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
}
.kb-search-list li:last-child {
  border-bottom: none;
}
.kb-search-list a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
}
.kb-search-list a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kb-search-cat {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.7rem;
  color: var(--ink-soft);
  background: rgba(23, 33, 31, 0.06);
  border-radius: 999px;
  padding: 0.1em 0.55em;
  vertical-align: middle;
}
.kb-search-list p {
  margin: 0.3em 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.kb-search mark {
  background: rgba(197, 151, 67, 0.28);
  color: inherit;
  padding: 0.05em 0.1em;
  border-radius: 3px;
}
@media (max-width: 760px) {
  .kb-search {
    margin-top: 1.2rem;
  }
  .kb-search-results {
    max-height: 56vh;
    box-shadow: 0 10px 26px rgba(23, 33, 31, 0.18);
  }
}

/* ============================================================
   相关阅读（贷融攻略手册互链，2026-09-03）
   ============================================================ */
.related-reading {
  max-width: 720px;
  margin: 2rem auto 0;
}
.related-reading strong {
  color: var(--forest);
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}
.related-reading ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-reading li {
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
}
.related-reading a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.95rem;
}
.related-reading a:hover {
  color: var(--red);
}
