/* Yuancheng Machinery - Industrial B2B Style */
:root {
  --navy: #0e2a44;
  --navy-2: #16395c;
  --steel: #3d5a77;
  --accent: #e8762c;
  --accent-d: #c95f1a;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #1d2733;
  --mut: #5c6b7a;
  --line: #dfe6ee;
  --shadow: 0 8px 28px rgba(14, 42, 68, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ===== Header ===== */
.topbar {
  background: var(--navy); color: #cfe0f2; font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #fff; font-weight: 600; }
header.site {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 2px 14px rgba(14,42,68,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1f4a77 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; letter-spacing: -.5px;
}
.logo-badge span { color: var(--accent); }
.logo-text b { font-size: 17px; color: var(--navy); display: block; line-height: 1.15; }
.logo-text small { font-size: 11px; color: var(--mut); letter-spacing: .4px; }
nav.main { display: flex; gap: 6px; }
nav.main a {
  padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--steel);
  transition: .18s;
}
nav.main a:hover, nav.main a.on { color: var(--navy); background: #eef3f9; }
nav.main a.cta { background: var(--accent); color: #fff; }
nav.main a.cta:hover { background: var(--accent-d); }
.burger { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(rgba(10, 28, 46, .78), rgba(10, 28, 46, .86)),
    url("../images/site_11.jpg") center/cover no-repeat;
}
.hero .wrap { padding: 108px 22px 96px; }
.hero .kicker {
  display: inline-block; background: rgba(232,118,44,.16); border: 1px solid rgba(232,118,44,.55);
  color: #ffb27d; font-size: 13px; font-weight: 700; letter-spacing: 2.5px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; font-weight: 800; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: 20px 0 34px; font-size: 18px; color: #d7e3f0; max-width: 680px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 8px; font-weight: 700; font-size: 15px;
  transition: .18s; border: 2px solid transparent; cursor: pointer;
}
.btn-acc { background: var(--accent); color: #fff; }
.btn-acc:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ===== Stats ===== */
.stats { background: var(--navy); color: #fff; }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 34px 22px;
}
.stat { text-align: center; }
.stat b { font-size: 34px; font-weight: 800; color: #fff; }
.stat b i { font-style: normal; color: var(--accent); }
.stat span { display: block; font-size: 13px; color: #a8bdd2; letter-spacing: .5px; margin-top: 2px; }

/* ===== Sections ===== */
section.pad { padding: 78px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head .tag {
  color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 2.2px;
  text-transform: uppercase;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); margin: 8px 0 12px; }
.sec-head p { color: var(--mut); font-size: 16px; }

/* Cards / products */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.p-card {
  background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: .2s; border: 1px solid var(--line);
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(14,42,68,.16); }
.p-card .thumb { background: #fff; aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: .3s; }
.p-card:hover .thumb img { transform: scale(1.04); }
.p-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card .model {
  font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 1px;
}
.p-card h3 { font-size: 16.5px; line-height: 1.4; color: var(--navy); min-height: 46px; }
/* application cards: anchor-wrapped, no thumbnail */
.app-links .p-card { text-decoration: none; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: flex; }
.app-links .p-card h3 { min-height: 0; }
.app-links .p-card p { font-size: 13.5px; color: var(--mut); line-height: 1.6; }
.p-card p { font-size: 13.5px; color: var(--mut); flex: 1; }
.p-card .more { color: var(--accent); font-weight: 700; font-size: 14px; }
.p-card .more:hover { text-decoration: underline; }

/* Feature blocks */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 30px 26px;
}
.feat .ico {
  width: 52px; height: 52px; border-radius: 12px; background: #fdeee3; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px;
}
.feat h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--mut); }

/* About split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split .imgs img { border-radius: 10px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin: 6px 0 16px; }
.split p { color: var(--mut); margin-bottom: 14px; font-size: 15px; }
.checklist li {
  padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink); font-size: 15px;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent);
  font-weight: 800; font-size: 16px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 70%, #1c4a78 100%);
  color: #fff; text-align: center;
}
.cta-band .wrap { padding: 64px 22px; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 12px; }
.cta-band p { color: #c4d6e8; margin-bottom: 28px; }

/* ===== Product detail ===== */
.crumb { font-size: 13px; color: var(--mut); padding: 18px 0; }
.crumb a { color: var(--steel); }
.crumb a:hover { color: var(--accent); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.pd .gallery {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px;
  display: flex; align-items: center; justify-content: center;
}
.pd h1 { font-size: clamp(22px, 2.8vw, 32px); color: var(--navy); line-height: 1.25; }
.pd .model-line { color: var(--accent); font-weight: 800; letter-spacing: 1px; margin: 8px 0 14px; }
.pd .desc { color: var(--mut); font-size: 15px; margin-bottom: 18px; }
.pd h3.sub { font-size: 17px; color: var(--navy); margin: 22px 0 10px; }
table.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
table.specs th, table.specs td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
table.specs th { background: #eef3f9; color: var(--navy); width: 42%; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }

/* Filter pills */
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.pill {
  padding: 9px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--steel); cursor: pointer; transition: .16s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.info-card {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 34px 30px;
}
.info-card h3 { font-size: 20px; margin-bottom: 20px; }
.info-card .row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-card .row .ic {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.info-card .row b { display: block; font-size: 13px; color: #9fb8d1; letter-spacing: .6px; text-transform: uppercase; }
.info-card .row span { font-size: 15px; }
form.inq {
  background: #fff; border-radius: 14px; padding: 34px 30px; box-shadow: var(--shadow);
}
form.inq h3 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
form.inq .hint { color: var(--mut); font-size: 13.5px; margin-bottom: 20px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.inq label { font-size: 13px; font-weight: 700; color: var(--steel); display: block; margin: 12px 0 5px; }
form.inq input, form.inq textarea, form.inq select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fbfcfe; color: var(--ink);
}
form.inq input:focus, form.inq textarea:focus { outline: 2px solid rgba(232,118,44,.35); border-color: var(--accent); }
form.inq button { margin-top: 18px; width: 100%; }
.form-note { margin-top: 12px; font-size: 13px; color: #1e7c43; display: none; }

/* ===== Footer ===== */
footer.site { background: #0a1e32; color: #b9c9d9; margin-top: 0; }
footer.site .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 54px 22px 40px;
}
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .4px; }
footer.site li { margin-bottom: 9px; font-size: 14px; }
footer.site a:hover { color: var(--accent); }
footer.site .fine {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 22px; font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #7f93a8;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: 1fr; }
  .split, .pd, .contact-grid { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  nav.main {
    display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 12px 18px 18px; box-shadow: 0 14px 24px rgba(14,42,68,.14);
  }
  nav.main.open { display: flex; }
  .burger { display: block; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .hero .wrap { padding: 76px 22px 64px; }
  /* specs table must not push the page wider than the screen */
  .wrap { overflow-x: hidden; }
  .specs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.specs { min-width: 0; table-layout: fixed; }
  table.specs th, table.specs td { padding: 10px 10px; font-size: 12px; word-break: break-word; overflow-wrap: anywhere; }
  table.specs th { width: 46%; }
}

/* market cards without thumb */
.p-card>.body{padding:26px 24px}

/* ===== Video section ===== */
.video-wrap {
  position: relative; border-radius: 14px; overflow: hidden; background: #0e2a44;
  box-shadow: 0 14px 40px rgba(14,42,68,.22); aspect-ratio: 16/9; cursor: pointer;
}
.video-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; transition: .3s; }
.video-wrap:hover img { opacity: 1; transform: scale(1.02); }
.video-wrap .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.video-wrap .play span {
  width: 78px; height: 78px; border-radius: 50%; background: rgba(232,118,44,.94);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px;
  padding-left: 5px; box-shadow: 0 8px 26px rgba(0,0,0,.35); transition: .2s;
}
.video-wrap:hover .play span { transform: scale(1.1); background: #e8762c; }
.video-wrap .vlabel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 18px;
  background: linear-gradient(transparent, rgba(8,24,40,.88)); color: #fff;
  font-size: 15px; font-weight: 600;
}
.video-wrap .vdur {
  position: absolute; right: 14px; top: 14px; background: rgba(0,0,0,.62);
  color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 4px; letter-spacing: .5px;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 820px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-wrap .play span { width: 60px; height: 60px; font-size: 24px; }
}
.video-note {
  margin-top: 18px; font-size: 13.5px; color: var(--mut); text-align: center;
}

/* multi-image gallery (series pages with two variants) */
.pd .gallery { flex-direction: column; gap: 16px; }
.pd .gallery figure { margin: 0; width: 100%; text-align: center; }
.pd .gallery figcaption { font-size: 12px; color: var(--mut); margin-top: 8px; letter-spacing: .4px; }

/* ===== Mid-page CTA ===== */
.cta-mid{display:flex;gap:26px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:linear-gradient(120deg,var(--navy) 0%,var(--navy-2) 70%,#1c4a78 100%);border-radius:14px;padding:30px 34px;margin:34px 0;color:#fff}
.cta-mid h3{color:#fff;margin:0 0 8px;font-size:clamp(19px,2.4vw,23px)}
.cta-mid p{margin:0;color:#c4d6e8;font-size:15px;max-width:620px}
.cta-actions{display:flex;gap:12px;flex-wrap:wrap}
.cta-actions .btn-ghost{border-color:rgba(255,255,255,.55);color:#fff;margin-left:0}

/* Product card badge */
.pbadge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 8px; }

/* ---- Component BOM (Imported Core Components) ---- */
.bom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.bom-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 22px 20px; position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.bom-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bom-item .cat {
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--mut); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.bom-item .mdl {
  font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(237,124,42,.35); background: rgba(237,124,42,.07);
  padding: 3px 7px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.bom-item .brand { font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.bom-item .brand-latin { display:block; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .5px; margin-top: 3px; text-transform: uppercase; }
.bom-item .role { font-size: 13px; color: var(--mut); margin-top: 10px; line-height: 1.55; }
.bom-item .role-sub { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; }
.bom-item .role-sub strong { color: var(--navy); }
.bom-note { font-size: 13px; color: var(--mut); margin-top: 18px; line-height: 1.7; }
@media (max-width: 900px) { .bom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bom-grid { grid-template-columns: 1fr; } }

/* ---- CE certificate block ---- */
.cert-wrap {
  display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; margin-top: 6px;
}
.cert-shot {
  display: block; position: relative; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #fff; box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
}
.cert-shot:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(14,42,68,.16); }
.cert-shot img { width: 100%; height: auto; display: block; }
.cert-shot .zoom-hint {
  position: absolute; right: 10px; bottom: 10px; background: rgba(14,42,68,.86); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .4px; padding: 5px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.cert-body h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.cert-body p { font-size: 14.5px; color: var(--mut); line-height: 1.75; margin-bottom: 12px; }
.cert-facts {
  display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 20px 0 18px;
  padding: 18px 20px; background: #f5f7fa; border-radius: 10px; border: 1px solid var(--line);
}
.cert-facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--mut); padding-top: 2px; }
.cert-facts dd { font-size: 13.5px; color: var(--ink); line-height: 1.5; font-weight: 600; }
.cert-facts dd span { font-weight: 400; color: var(--mut); }
.cert-foot-img { margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; max-width: 620px; position: relative; }
.cert-foot-img img { width: 100%; display: block; cursor: zoom-in; }
.cert-foot-img .cf-tag {
  position: absolute; z-index: 2; right: 8px; top: 8px; background: rgba(14,42,68,.86); color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .3px; padding: 4px 9px; border-radius: 20px;
}
.cert-models { font-size: 13px; color: var(--mut); line-height: 1.8; margin-bottom: 18px; }
.cert-models code {
  font-family: inherit; font-weight: 700; color: var(--navy); background: #eef3f9;
  padding: 1px 6px; border-radius: 4px; white-space: nowrap; display: inline-block; margin: 2px 3px 2px 0;
}
.cert-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .cert-wrap { grid-template-columns: 1fr; gap: 26px; }
  .cert-shot { max-width: 400px; margin: 0 auto; }
  .cert-facts { grid-template-columns: 1fr; gap: 4px 0; }
  .cert-facts dd { margin-bottom: 10px; }
}

/* image lightbox */
.lb { position: fixed; inset: 0; z-index: 9999; background: rgba(6,18,30,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lb.on { display: flex; }
.lb img { max-width: 96vw; max-height: 92vh; width: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb .lb-x {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
