/* ==========================================================================
   新乡市豫科机电设备有限公司 — 站点样式
   工业蓝 + 金属灰，干净、专业、信息密度高
   ========================================================================== */

:root {
  --ink: #0d1826;
  --ink-2: #24344a;
  --brand: #0e3a72;
  --brand-deep: #08264d;
  --brand-2: #1479c4;
  --cyan: #12a7d8;
  --cyan-soft: #e6f6fc;
  --bg: #f4f7fa;
  --bg-2: #eaf0f6;
  --card: #ffffff;
  --line: #e2e9f1;
  --muted: #5d6e83;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(13, 24, 38, .06), 0 4px 14px rgba(13, 24, 38, .05);
  --shadow: 0 2px 6px rgba(13, 24, 38, .06), 0 18px 40px rgba(13, 24, 38, .10);
  --max: 1220px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(28px, 3.4vw, 46px); }
h2 { font-size: clamp(23px, 2.3vw, 33px); }
h3 { font-size: clamp(18px, 1.4vw, 21px); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--bg-2); color: var(--brand); }
.nav a.is-active { color: var(--brand); background: var(--cyan-soft); }

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background .18s;
}
.header-tel:hover { background: var(--brand-2); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 11px 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 4px 0;
}
.nav-toggle span:nth-child(2) { width: 70%; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--brand-deep);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 26, 52, .94) 0%, rgba(8, 45, 88, .84) 44%, rgba(9, 58, 108, .42) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 96px 0; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .10);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-tag i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4fd8ff;
  box-shadow: 0 0 0 4px rgba(79, 216, 255, .22);
}
.hero h1 { max-width: 15em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #63d6ff; }
.hero-sub {
  max-width: 40em;
  font-size: clamp(15px, 1.15vw, 17px);
  color: rgba(255, 255, 255, .82);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}
.hero-facts b { color: #fff; font-size: 20px; margin-right: 6px; }

/* ------------------------------------------------------------- button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { background: #0f6bb0; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-2); }
.btn-line { border-color: var(--line); background: #fff; color: var(--brand); }
.btn-line:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* ----------------------------------------------------------- sections */
.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section.alt { background: #fff; }
.section.dark { background: var(--brand-deep); color: #fff; }
.section.dark .section-lead { color: rgba(255, 255, 255, .74); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section.dark .eyebrow { color: #5fd0f5; }
.section-lead { color: var(--muted); font-size: 16px; margin: 0; }

/* -------------------------------------------------------------- stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(178px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat { background: #fff; padding: 26px 22px; }
.stat b { display: block; font-size: 30px; line-height: 1.2; color: var(--brand); }
.stat b small { font-size: 15px; font-weight: 700; margin-left: 3px; color: var(--brand-2); }
.stat span { color: var(--muted); font-size: 14px; }

/* -------------------------------------------------------------- grids */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr)); }

/* -------------------------------------------------------------- cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: #c9d8e7; box-shadow: var(--shadow); }
.card-body { padding: 22px 22px 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card img { width: 100%; height: 190px; object-fit: cover; }

.icon-card { padding: 26px 24px; }
.icon-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--cyan-soft);
  color: var(--brand-2);
  font-weight: 800;
  margin-bottom: 16px;
}

/* ----------------------------------------------------------- cat block */
.cat-block {
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff 0%, #f7fafd 100%);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-block:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d8e7; }
.cat-block h3 { margin-bottom: 6px; }
.cat-block p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.cat-block .cat-more { margin-top: auto; font-weight: 700; color: var(--brand-2); font-size: 14px; }
.cat-block .idx { font-size: 12.5px; font-weight: 800; letter-spacing: .18em; color: #b9c7d8; }
.cat-thumbs { display: flex; gap: 8px; margin: 0 0 16px; }
.cat-thumbs img {
  width: 58px; height: 58px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
}

/* ------------------------------------------------------------- filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand-2); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip em { font-style: normal; opacity: .62; margin-left: 6px; font-size: 13px; }

/* ------------------------------------------------------------ product */
.product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d8e7; }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
  overflow: hidden;
}
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.product-media .badge {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 58, 114, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 17px; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.product-body .spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- doc */
.doc-card { text-align: center; padding: 16px; }
.doc-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}
.doc-card h4 { margin: 14px 0 4px; font-size: 15.5px; }
.doc-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* -------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.split.rev > .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-body h2 { margin-bottom: 16px; }
.split-body p { color: var(--muted); }

.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cyan-soft);
  border: 1px solid #bfe6f5;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 10px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------- table */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.spec caption { text-align: left; padding: 18px 20px 2px; font-weight: 700; font-size: 16px; color: var(--brand); }
table.spec th, table.spec td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec thead th { background: var(--bg-2); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: #f8fbfe; }
table.spec td:first-child { font-weight: 600; }

/* ----------------------------------------------------------- app card */
.app-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 38, 77, .10) 0%, rgba(8, 38, 77, .88) 100%);
}
.app-card .app-body { position: relative; z-index: 2; padding: 20px 22px; }
.app-card h3 { font-size: 17.5px; margin: 0 0 4px; }
.app-card p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .8); }

/* -------------------------------------------------------------- certs */
.cert {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert img { width: 100%; height: 250px; object-fit: contain; cursor: zoom-in; }
.cert h4 { margin: 12px 0 2px; font-size: 15px; }
.cert p { margin: 0; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ clients */
.client-list { display: flex; flex-wrap: wrap; gap: 10px; }
.client-list span {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ------------------------------------------------------------ patents */
.patent-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.patent-photo { display: flex; align-items: center; justify-content: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.patent-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; }
@media (max-width: 760px) {
  .patent-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .patent-photo { padding: 8px; }
}
.patents {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.patent { display: flex; gap: 16px; align-items: baseline; background: #fff; padding: 13px 20px; font-size: 15px; }
.patent b { color: #b9c7d8; font-size: 13px; font-weight: 800; min-width: 30px; }
.patent i {
  margin-left: auto;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--brand-2);
  white-space: nowrap;
}
.patent i.inst { background: #fdf0e3; color: #b96b12; }

/* ---------------------------------------------------------------- cta */
.cta-band {
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(18, 167, 216, .30), transparent 62%),
    linear-gradient(120deg, var(--brand-deep), #0d4785 70%, #12629f);
  color: #fff;
  border-radius: var(--radius);
  padding: 46px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.contact-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.contact-item .k { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--brand-2); text-transform: uppercase; }
.contact-item .v { font-size: 19px; font-weight: 700; margin-top: 8px; word-break: break-all; }
.contact-item .v.small { font-size: 16px; font-weight: 600; }
.contact-item p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.qr { display: flex; gap: 18px; flex-wrap: wrap; }
.qr figure { margin: 0; text-align: center; }
.qr img { width: 138px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qr figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------------------- footer */
.site-footer { background: #081d38; color: rgba(255, 255, 255, .68); padding: 58px 0 26px; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-logo { height: 40px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 16px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

/* ---------------------------------------------------------- page hero */
.page-hero {
  background: linear-gradient(120deg, var(--brand-deep), #0d4785 68%, #1273b4);
  color: #fff;
  padding: 62px 0 54px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 56em; margin: 0; }
.crumb { font-size: 13.5px; color: rgba(255, 255, 255, .62); margin-bottom: 14px; }
.crumb a:hover { color: #fff; }

/* ----------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 16, 30, .88);
  padding: 34px 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; object-fit: contain; background: #fff; border-radius: 10px; }
.lightbox .lb-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.lightbox .lb-cap {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
}

/* -------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.rev > .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(13, 24, 38, .10);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .header-inner { position: relative; min-height: 66px; gap: 12px; }
  .header-tel { padding: 9px 14px; font-size: 13px; }
  .brand img { height: 36px; }
  .section { padding: 60px 0; }
  .hero { min-height: auto; }
  .hero .wrap { padding: 66px 0 58px; }
  .cta-band { padding: 32px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .header-tel span { display: none; }
  .header-tel { padding: 9px 12px; }
  .hero-facts { gap: 10px 20px; font-size: 13px; }
  .hero-facts b { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat b { font-size: 25px; }
  .cert img { height: 200px; }
  .btn { padding: 12px 20px; font-size: 14.5px; }
  .qr { gap: 12px; }
  .qr img { width: 112px; }
  .qr figcaption { font-size: 12px; }
  table.spec { min-width: 0; }
  table.spec.wide { min-width: 560px; }
}

@media print {
  .site-header, .site-footer, .cta-band, .lightbox { display: none; }
  body { background: #fff; }
}
