/* ==========================================================================
   老静态页 → 新站外壳融合样式
   只负责三件事：① 统一页头 ② 内容区宽度对齐 1200 ③ 页脚换成新站深色版式
   正文（表格、产品网格、文章排版）完全走老模板 CSS，这里一概不碰。
   页头规则全部挂在 .xh 下，避免和老模板的全局 a / ul / div 规则打架。
   ========================================================================== */

.xh {
  --brand: #0a7d95;
  --brand-dark: #075e70;
  --brand-soft: #e8f4f7;
  --ink: #17181a;
  --text: #47494d;
  --muted: #8b8e94;
  --line: #e5e6e8;
  --accent: #dd8a2e;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  text-align: left;
  /* 老模板 body 顶部那条装饰图带会从页头底部露出来，这里压掉 */
  margin-bottom: 0;
}

.xh *,
.xh *::before,
.xh *::after { box-sizing: border-box; }

.xh img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.xh a { color: inherit; text-decoration: none; text-transform: none; }
.xh a:hover { color: inherit; }
.xh ul, .xh li { margin: 0; padding: 0; list-style: none; }
.xh p { margin: 0; }
.xh .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部信息条 ---------- */
.xh .topbar { height: 34px; background: #0e2b33; color: rgba(255, 255, 255, .74); font-size: 12.5px; }
.xh .topbar__in { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 20px; }
.xh .topbar__tags { display: flex; gap: 14px; overflow: hidden; white-space: nowrap; }
.xh .topbar__tags span { position: relative; }
.xh .topbar__tags span + span::before {
  content: ""; position: absolute; left: -8px; top: 50%;
  width: 1px; height: 11px; margin-top: -5.5px; background: rgba(255, 255, 255, .18);
}
.xh .topbar__meta { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.xh .topbar__meta a { color: rgba(255, 255, 255, .74); }
.xh .topbar__meta a:hover { color: #fff; }
.xh .topbar__hot { color: #fff; font-weight: 600; letter-spacing: .02em; }
.xh .topbar__hot b { color: #ffce8a; font-weight: 700; font-size: 13.5px; }

/* ---------- 品牌行 ---------- */
.xh .site-header {
  position: static;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.xh .head { display: flex; align-items: center; gap: 24px; height: 80px; }
.xh .brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.xh .brand__logo { height: 46px; width: auto; display: block; }
.xh .brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.xh .brand__name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.xh .brand__slogan { font-size: 12px; color: var(--muted); letter-spacing: .16em; }

.xh .head__search {
  display: flex; align-items: stretch; margin-left: auto;
  width: min(380px, 34vw); height: 42px;
  border: 2px solid var(--brand); background: #fff;
}
.xh .head__search input {
  flex: 1; min-width: 0; border: 0; padding: 0 14px;
  font: 400 14px/42px "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: var(--ink); background: #fff; outline: none;
}
.xh .head__search input::placeholder { color: #9aa4a8; }
.xh .head__search button {
  width: 86px; border: 0; background: var(--brand); color: #fff;
  font: 400 14.5px/1 "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  letter-spacing: .08em; cursor: pointer; transition: background .18s var(--ease);
}
.xh .head__search button:hover { background: var(--brand-dark); }

.xh .head__tel { text-align: right; line-height: 1.25; padding-left: 22px; border-left: 1px solid var(--line); }
.xh .head__tel span { display: block; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.xh .head__tel strong { font-size: 21px; color: var(--brand); letter-spacing: .02em; font-weight: 700; }
.xh .head__tel a { color: var(--brand); }

/* ---------- 频道导航 ---------- */
.xh .navbar { background: var(--brand); }
.xh .navbar__in { display: flex; align-items: stretch; height: 44px; }
.xh .nav { display: flex; align-items: stretch; height: 44px; margin: 0 auto; }
.xh .nav__item { position: relative; display: flex; align-items: stretch; }
.xh .nav__item > a {
  display: flex; align-items: center; padding: 0 19px;
  font-size: 15.5px; color: #fff; letter-spacing: .04em;
  white-space: nowrap; transition: background .16s var(--ease);
}
.xh .nav__item > a:hover { background: rgba(0, 0, 0, .15); color: #fff; }
.xh .nav__item.is-current > a { background: rgba(0, 0, 0, .22); font-weight: 600; }

.xh .nav__drop {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 6px);
  min-width: 188px; padding: 6px 0;
  background: #fff; border-top: 3px solid var(--accent);
  box-shadow: 0 16px 36px rgba(14, 43, 51, .18);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 9999;
}
.xh .nav__item:hover > .nav__drop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.xh .nav__drop a {
  display: block; padding: 9px 20px; font-size: 14px; color: #3d4a4f;
  white-space: nowrap; transition: background .15s, color .15s;
}
.xh .nav__drop a:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ==========================================================================
   内容区：老模板 #main 是 1000px，新站是 1200px，这里把正文拉齐到 1200
   左侧栏 8em=128px，间距 24px，右栏 1048px
   ========================================================================== */
#main { width: 1200px !important; }
#main .right { width: 1048px !important; }

/* 左侧栏目名比 8em 宽（如「江苏中机采煤机配件」），原来固定 2.3em 行高会被裁掉，
   这里改成自动高、允许两行显示 */
#main .left .lcon li a {
  height: auto;
  line-height: 1.45;
  padding: 8px 3px;
  font-size: 13px;
  white-space: normal;
  word-break: break-all;
}

/* ==========================================================================
   页脚：沿用老页面的文字内容（电话 / 覆盖区域 / 地图 / 备案号），
   换成新站深色页脚版式
   ========================================================================== */
#foot {
  background: #212224;
  border-top: 0;
  padding: 32px 0 28px;
  color: rgba(255, 255, 255, .62);
}
#foot .fcon {
  width: 1200px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  font-size: 13px;
  line-height: 2;
  text-align: center;
  color: rgba(255, 255, 255, .62);
}
#foot .fcon p { color: rgba(255, 255, 255, .45); margin: 10px 0 12px; }
#foot .fcon a { color: rgba(255, 255, 255, .8); }
#foot .fcon a:hover { color: #fff; }

/* ==========================================================================
   网站地图页（sitemap.html，独立页面，不加载老模板 CSS）
   ========================================================================== */
.smp-body {
  margin: 0;
  background: #fff;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #47494d;
}
.smp { padding: 30px 0 50px; }
.smp .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.smp * { box-sizing: border-box; }
.smp__head h1 { margin: 0 0 8px; font-size: 26px; color: #17181a; letter-spacing: .04em; }
.smp__head p { margin: 0 0 26px; font-size: 13.5px; color: #8b8e94; }
.smp__head code { padding: 1px 5px; background: #f4f5f6; border-radius: 3px; font-size: 12.5px; }
.smp__grid { column-count: 3; column-gap: 36px; }
.smp__col { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 26px; }
.smp__col h2 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding-left: 9px;
  font-size: 15px; color: #0a7d95; border-left: 3px solid #0a7d95;
}
.smp__col h2 a { color: #0a7d95; text-decoration: none; }
.smp__col h2 em { font-style: normal; font-size: 12px; font-weight: 400; color: #8b8e94; }
.smp__col ul { margin: 0; padding: 0; list-style: none; }
.smp__col li {
  position: relative; padding-left: 12px;
  font-size: 13px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.smp__col li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: #d5d7da;
}
.smp__col li a { color: #47494d; text-decoration: none; }
.smp__col li a:hover { color: #0a7d95; }
.smp__more { margin-top: 34px; padding-top: 20px; border-top: 1px solid #e5e6e8; }
.smp__more h2 { margin: 0 0 10px; font-size: 15px; color: #0a7d95; }
.smp__more ul { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.smp__more li a { font-size: 13.5px; color: #47494d; text-decoration: none; }
.smp__more li a:hover { color: #0a7d95; }
@media (max-width: 980px) { .smp__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .smp__grid { grid-template-columns: 1fr; } }

/* 1280 以下的窄屏降级：老模板是定宽 1000px 的桌面版式，这里只保证不出横向滚动条 */
@media (max-width: 1279px) {
  #main { width: auto !important; max-width: 1200px; padding: 0 16px; }
  #main .right { width: calc(100% - 152px) !important; }
  .xh .head__search { width: min(280px, 28vw); }
  .xh .head__tel { padding-left: 14px; }
  .xh .head__tel strong { font-size: 18px; }
  .xh .nav__item > a { padding: 0 13px; font-size: 14.5px; }
}
@media (max-width: 1023px) {
  .xh .topbar__tags span:nth-child(n+3) { display: none; }
  .xh .head__search { display: none; }
  .xh .nav__item > a { padding: 0 10px; font-size: 13.5px; }
}

/* 正文表格：老内容多是从 Word 粘贴的，带 width="522" 之类的死宽度，
   在 1048px 容器里被挤成一列一列的字，这里让它按容器自适应 */
#main .xlcon table,
#main .ncon table { width: 100% !important; max-width: 100%; border-collapse: collapse; }
#main .xlcon table td,
#main .xlcon table th,
#main .ncon table td,
#main .ncon table th { width: auto !important; min-width: 64px; padding: 6px 9px; vertical-align: top; line-height: 1.8; }
#main .xlcon table img,
#main .ncon table img { max-width: 100%; height: auto; }

/* 老模板正文右上角有个 20em×16em 的浮动广告位，第三方广告早清掉了，
   101 个空 DIV 还在把正文挤成窄条，直接隐藏 */
#main .right .rcon .adw { display: none; }
