/* ============================================================
   智慧路 zhihuilu.com · 内页排版升级补丁  v1  /  2026-10-28
   ------------------------------------------------------------
   挂载位置：外观 → 自定义 → 额外 CSS（粘贴即生效，全站四语言）
   作用域  ：.entry-content 内页正文；首页 zh-* 模板不受影响
   撤销    ：删除本段即可，无数据库残留
   ============================================================ */

.entry-content{
  --zhlx-ink:#141719;
  --zhlx-line:#e6e2dc;
  --zhlx-brand:#c7000b;
  --zhlx-tint:#faf7f4;
  font-size:16.5px;
  line-height:1.78;
  color:#2a2e33;
}

/* 首段 → 导语：左侧品牌竖条，字号略提，与正文拉开层级 */
.entry-content > p:first-of-type{
  font-size:1.05em;
  line-height:1.72;
  color:var(--zhlx-ink);
  border-left:3px solid var(--zhlx-brand);
  padding:2px 0 2px 18px;
  margin:0 0 2em;
}

/* h2 → 小节锚点：顶部细分割 + 品牌短线，长页面不再糊成一片 */
.entry-content > h2{
  position:relative;
  margin:2.6em 0 .85em;
  padding-top:1.15em;
  border-top:1px solid var(--zhlx-line);
  line-height:1.35;
}
.entry-content > h2::before{
  content:"";position:absolute;top:-1px;left:0;
  width:54px;height:3px;background:var(--zhlx-brand);
}
.entry-content > h2:first-of-type{border-top:0;padding-top:0;margin-top:1.5em}
.entry-content > h2:first-of-type::before{display:none}

/* h3 → 左侧竖条 */
.entry-content > h3{position:relative;margin:1.9em 0 .5em;padding-left:14px}
.entry-content > h3::before{
  content:"";position:absolute;left:0;top:.28em;bottom:.28em;
  width:3px;background:var(--zhlx-brand);border-radius:2px;opacity:.85;
}

/* 无序列表 → 菱形品牌标记（替代灰色圆点） */
.entry-content ul{list-style:none;padding-left:0;margin:1em 0 1.3em}
.entry-content ul > li{position:relative;padding-left:26px;margin:.5em 0}
.entry-content ul > li::before{
  content:"";position:absolute;left:3px;top:.62em;
  width:8px;height:8px;background:var(--zhlx-brand);
  border-radius:1.5px;transform:rotate(45deg);opacity:.9;
}

/* 有序列表 → 编号芯片，流程一眼可数 */
.entry-content ol{list-style:none;counter-reset:zhlx;padding-left:0;margin:1em 0 1.3em}
.entry-content ol > li{counter-increment:zhlx;position:relative;padding-left:44px;margin:.7em 0}
.entry-content ol > li::before{
  content:counter(zhlx,decimal-leading-zero);
  position:absolute;left:0;top:.1em;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.74em;font-weight:700;line-height:1.5;
  color:var(--zhlx-brand);background:#fdf2f1;
  border:1px solid #f4dcda;border-radius:4px;padding:2px 7px;
}

/* 表格 → 品牌表头 + 悬停行 */
.entry-content table{border-collapse:collapse;width:100%;margin:1.2em 0 1.6em;font-size:.94em}
.entry-content th{
  background:var(--zhlx-tint);border-bottom:2px solid var(--zhlx-brand);
  text-align:left;padding:10px 12px;font-weight:700;color:var(--zhlx-ink);
}
.entry-content td{border-bottom:1px solid var(--zhlx-line);padding:10px 12px;vertical-align:top}
.entry-content tr:hover td{background:#fcfbf9}

/* 正文链接 → 品牌下划线，可点感更强 */
.entry-content p a,.entry-content li a,.entry-content td a{
  color:var(--zhlx-brand);
  text-decoration:underline;text-decoration-thickness:1px;
  text-underline-offset:3px;text-decoration-color:rgba(199,0,11,.32);
  transition:text-decoration-color .15s ease;
}
.entry-content p a:hover,.entry-content li a:hover,.entry-content td a:hover{
  text-decoration-color:var(--zhlx-brand);
}

/* 移动端：收紧节奏，避免每屏只有半个标题 */
@media (max-width:768px){
  .entry-content{font-size:16px;line-height:1.76}
  .entry-content > h2{margin-top:2em;padding-top:.95em}
  .entry-content > p:first-of-type{padding-left:14px}
  .entry-content ol > li{padding-left:40px}
}

/* ============================================================
   询价表单：辅助件（主题 contact.css 已有主体样式，这里只补缺的）
   ============================================================ */
.zhlr-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}

.zhl-page--contact .zhl-form__err{
  margin:0 0 14px;padding:10px 13px;
  font-size:.9rem;line-height:1.6;
  color:#8f231d;background:#fdf2f1;
  border:1px solid #f2d7d4;border-radius:8px;
}

.zhl-page--contact .zhl-form--done{
  padding:20px 22px;
  background:#faf7f4;
  border:1px solid #e6e2dc;
  border-left:3px solid #c7000b;
  border-radius:10px;
  max-width:var(--zhl-read,720px);
}
.zhl-page--contact .zhl-form--done h3{margin-top:0}
.zhl-page--contact .zhl-form--done p:last-child{margin-bottom:0}

.zhl-ref{
  display:inline-block;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.92rem;
  padding:6px 12px;
  background:#fff;
  border:1px solid #e6e2dc;
  border-radius:6px;
}

/* ============================================================
   展会列表（zhl_fair 自动列出）
   ============================================================ */
.zhlr-fairs{margin:2.4em 0 .4em}
.zhlr-fairs__hd{margin:0 0 16px}
.zhlr-fairs__hd h3{margin:0 0 6px;font-size:1.22rem;line-height:1.35}
.zhlr-fairs__hd p{margin:0;font-size:.9rem;line-height:1.65;color:#6a7078}

.zhlr-fairs__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

.zhlr-fair{
  display:flex;flex-direction:column;gap:6px;
  padding:16px 18px;
  background:#faf7f4;
  border:1px solid #e6e2dc;
  border-left:3px solid #c7000b;
  border-radius:9px;
  text-decoration:none;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.zhlr-fair:hover{background:#fff;border-color:#d8d2c8;border-left-color:#c7000b;transform:translateY(-1px)}

.zhlr-fair__meta{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.72rem;letter-spacing:.04em;color:#8a5a12;
}
.zhlr-fair__title{font-size:1rem;line-height:1.45;color:#141719;font-weight:700}
.zhlr-fair__desc{font-size:.86rem;line-height:1.6;color:#5f646a}
.zhlr-fair__foot{margin-top:auto;padding-top:6px;font-size:.8rem;font-weight:600;color:#c7000b}

/* 表单错误/成功在非联系页也更稳 */
.zhl-form__err{color:#8f231d}

@media (max-width:760px){
  .zhlr-fairs__grid{grid-template-columns:1fr}
  .zhlr-fair{padding:14px 15px}
}
