/* 鹤壁市路明电气有限公司 - 站点样式 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  --bg-deep: #15191d;
  --line: #e0e5ea;
  --line-strong: #c2cad2;
  --ink: #15191d;
  --ink-2: #4a545d;
  --ink-3: #7d8791;
  --accent: #0f5673;
  --accent-deep: #0a3d53;
  --wrap: 1180px;
  --gap: 22px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: 0; line-height: 1.28; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--bg-deep); color: #b9c3cb; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.tb-org { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-contact { display: flex; gap: 18px; white-space: nowrap; }
.tb-contact a { color: #e3eaf0; text-decoration: none; }
.tb-contact a:hover { text-decoration: underline; }

/* ---------- 主导航 ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(120%) blur(6px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .04em; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt b { font-size: 19px; }
.brand-txt i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { position: relative; padding: 8px 14px; font-size: 15.5px; color: var(--ink-2); }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.menu a:hover { color: var(--ink); }
.menu a:hover::after, .menu a.on::after { transform: scaleX(1); }
.menu a.on { color: var(--ink); font-weight: 600; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: none; padding: 10px 9px; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.drawer { display: none; border-top: 1px solid var(--line); background: #fff; }
.drawer.open { display: block; }
.drawer-menu { display: grid; grid-template-columns: 1fr 1fr; }
.drawer-menu a { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.drawer-menu a.on { color: var(--accent); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background-color .18s ease, color .18s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-wide { width: 100%; }

/* ---------- 内页标题 ---------- */
.phead { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.phead .wrap { padding-top: 34px; padding-bottom: 34px; }
.phead h1 { font-size: 27px; }
.phead p { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }

.crumb { padding-top: 16px; padding-bottom: 0; font-size: 13.5px; color: var(--ink-3); }
.crumb i { font-style: normal; margin: 0 8px; color: var(--line-strong); }
.crumb a:hover { color: var(--accent); }

/* ---------- 区块骨架 ---------- */
.sec { padding: 62px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { position: relative; padding-left: 14px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: .42em; bottom: .18em; width: 4px; background: var(--accent); }
.more { font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; white-space: nowrap; }
.more:hover { color: var(--accent); border-color: var(--accent); }
.narrow { max-width: 780px; }
.note { font-size: 14px; color: var(--ink-3); }

/* ---------- 首页主视觉 ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 44px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.hero-txt h1 { font-size: 34px; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; max-width: 15em; }
.hero-txt p { margin: 16px 0 26px; max-width: 46ch; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { position: relative; }
.hero-img img { width: 100%; border: 1px solid var(--line); }

/* ---------- 产品分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ctile { background: #fff; padding: 22px 20px 20px; display: flex; flex-direction: column; min-height: 148px; transition: background-color .18s ease; }
.ctile b { font-size: 17px; }
.ctile span { margin-top: 7px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; flex: 1; }
.ctile i { font-style: normal; margin-top: 12px; font-size: 12.5px; color: var(--accent); }
.ctile:hover { background: var(--bg-alt); }

/* ---------- 图文分栏 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px; align-items: center; }
.split-rev .split-media { order: 2; }
.split-media img { width: 100%; border: 1px solid var(--line); }
.split-txt h2 { margin-bottom: 16px; }
.split-txt p { color: var(--ink-2); }

/* ---------- 企业动态 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ncard { display: block; background: #fff; border-top: 2px solid var(--accent); padding: 18px 0 0; }
.ncard time { font-size: 13px; color: var(--ink-3); }
.ncard b { display: block; margin: 8px 0 6px; font-size: 16.5px; line-height: 1.5; }
.ncard span { font-size: 14px; color: var(--ink-2); display: block; max-height: 3.4em; overflow: hidden; }
.ncard:hover b { color: var(--accent); }

/* ---------- 询价 ---------- */
.contact-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 46px; align-items: start; }
.cb-info p { color: var(--ink-2); }
.cb-info .ir, .cb-info p:not(:first-child) { margin-top: 12px; }
.cb-info p b { display: inline-block; min-width: 68px; color: var(--ink-3); font-weight: 500; }
.qform { display: grid; gap: 14px; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qform label, .form-grid label, .modal-body label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.qform input, .qform textarea, .form-grid input, .form-grid textarea, .modal-body input, .modal-body textarea, .modal-body select {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); padding: 10px 12px; width: 100%;
}
.qform input:focus, .qform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.qform button { justify-self: start; }
.qf-msg { margin: 0; font-size: 14px; color: var(--accent); min-height: 1.4em; }

/* ---------- 信息表 ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.info-grid-1 { grid-template-columns: 1fr; }
.ir { background: #fff; padding: 14px 18px; display: flex; gap: 14px; align-items: baseline; }
.ir b { flex: none; width: 128px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.ir span { font-size: 15px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row a { border: 1px solid var(--line-strong); padding: 7px 16px; font-size: 14.5px; color: var(--ink-2); }
.tag-row a:hover { border-color: var(--accent); color: var(--accent); }

.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--line); }
.shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.shot.placeholder { display: grid; place-items: center; min-height: 320px; background: var(--bg-alt); border: 1px dashed var(--line-strong); color: var(--ink-3); font-size: 14px; }
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
.cap { background: #fff; padding: 18px 20px; }
.cap b { font-size: 16px; }

/* ---------- 产品列表 ---------- */
.two-col { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 42px; align-items: start; }
.side { position: sticky; top: 88px; display: grid; gap: 26px; }
.sform { display: grid; gap: 10px; }
.srch { display: flex; align-items: center; border: 1px solid var(--line-strong); background: #fff; }
.srch:focus-within { border-color: var(--accent); }
.srch-ic { width: 1px; height: 20px; background: var(--line-strong); margin: 0 10px; flex: none; }
.srch input { flex: 1; min-width: 0; border: 0; padding: 10px 10px 10px 0; font: inherit; font-size: 15px; }
.srch input:focus { outline: none; }
.clear { font-size: 13.5px; color: var(--ink-3); justify-self: start; }
.clear:hover { color: var(--accent); }
.side-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.side-list b { padding: 0 0 10px; font-size: 15px; border-bottom: 1px solid var(--line); }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.side-list a i { font-style: normal; font-size: 13px; color: var(--ink-3); }
.side-list a:hover { color: var(--accent); }
.side-list a.on { color: var(--accent); font-weight: 600; }
.side-list a.on i { color: var(--accent); }
.count { margin: 0 0 18px; font-size: 14px; color: var(--ink-3); }

.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.pgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: border-color .18s ease, box-shadow .18s ease; }
.pcard:hover { border-color: var(--accent); box-shadow: 0 6px 22px rgba(15, 86, 115, .09); }
.pmedia { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.pmedia img { width: 100%; height: 100%; object-fit: cover; }
.pmedia .noimg { display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--ink-3); }
.pinfo { display: block; padding: 15px 16px 17px; }
.pinfo b { display: block; font-size: 16px; line-height: 1.5; }
.pmodel { display: block; margin-top: 5px; font-size: 13px; color: var(--ink-3); }
.psum { display: block; margin-top: 7px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; max-height: 3.3em; overflow: hidden; }
.pcat { display: block; margin-top: 10px; font-size: 12.5px; color: var(--accent); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line-strong); font-size: 14.5px; }
.pager span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }

.empty { border: 1px dashed var(--line-strong); background: var(--bg-alt); padding: 46px 24px; text-align: center; }
.empty p { margin: 0 0 18px; color: var(--ink-2); }

/* ---------- 产品详情 ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 44px; align-items: start; }
.pd-media { display: grid; gap: 14px; }
.pd-media .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pd-info h1 { font-size: 28px; }
.pd-model { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.pd-cat { margin: 6px 0 20px; font-size: 14px; }
.pd-cat a { color: var(--accent); border-bottom: 1px solid var(--line-strong); }
.pd-info p { color: var(--ink-2); }
.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec { background: #fff; padding: 14px 18px; }
.spec span { display: block; font-size: 13px; color: var(--ink-3); }
.spec b { display: block; margin-top: 4px; font-size: 16px; }

.article { max-width: 780px; }
.article h1 { font-size: 27px; margin-bottom: 8px; }
.article time { display: block; font-size: 13.5px; color: var(--ink-3); margin-bottom: 24px; }
.article p { color: #2c343b; }

.nrow { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.nrow:first-child { border-top: 1px solid var(--line); }
.nrow time { font-size: 13.5px; color: var(--ink-3); padding-top: 3px; }
.nr-t b { display: block; font-size: 17px; }
.nr-t span { display: block; margin-top: 5px; font-size: 14px; color: var(--ink-2); }
.nrow:hover .nr-t b { color: var(--accent); }

.side-form h2 { margin-bottom: 18px; }

/* ---------- 页脚 ---------- */
.foot { background: var(--bg-deep); color: #97a2ac; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: 40px; padding-top: 48px; padding-bottom: 38px; }
.foot b { color: #fff; }
.foot-brand .mark { margin-bottom: 14px; }
.foot-brand b { display: block; font-size: 17px; margin-bottom: 8px; }
.foot-col p { margin: 0 0 8px; }
.foot-col p b { display: inline-block; min-width: 44px; font-weight: 500; color: #6f7b85; }
.foot-links { display: grid; align-content: start; gap: 8px; }
.foot-links b { margin-bottom: 6px; }
.foot-links a:hover { color: #fff; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #262c33; padding-top: 16px; padding-bottom: 22px; font-size: 13px; color: #6f7b85; }
.foot-bar a { color: inherit; text-decoration: none; }
.foot-bar a:hover { color: #a9b4bd; text-decoration: underline; }

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; padding-bottom: 40px; }
  .hero-txt h1 { font-size: 32px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid, .pgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

/* ---------- 手机 ---------- */
@media (max-width: 768px) {
  .topbar-in { min-height: 30px; font-size: 12px; }
  .tb-contact span:not(:first-child) { display: none; }
  .menu { display: none; }
  .burger { display: block; }
  .nav-in { height: 60px; }
  .sec { padding: 40px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .hero-txt h1 { font-size: 27px; }
  .split, .contact-band, .pd, .two-col { grid-template-columns: 1fr; gap: 26px; }
  .split-rev .split-media { order: 0; }
  .side { position: static; }
  .qf-row { grid-template-columns: 1fr; }
  .info-grid, .fact-grid, .spec-grid, .cap-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .ir { flex-direction: column; gap: 2px; }
  .ir b { width: auto; }
  .phead .wrap { padding-top: 24px; padding-bottom: 24px; }
}

@media (max-width: 420px) {
  .pgrid, .pgrid-4 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
