/* ==========================================================================
   Zhongqian Pump — corporate website stylesheet
   B2B industrial, responsive, SEO-friendly semantic markup
   ========================================================================== */

:root {
  --navy: #0f3d5c;
  --navy-dark: #0a2a41;
  --blue: #155e86;
  --steel: #5b7a8d;
  --orange: #e87722;
  --orange-dark: #c95f12;
  --ink: #1f2937;
  --muted: #5b6672;
  --line: #e2e8ee;
  --bg: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(15, 61, 92, 0.10);
  --radius: 10px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #d7e4ec;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #d7e4ec; }
.topbar a:hover { color: #ffffff; }
.topbar .topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; flex: none; }
.brand > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand .brand-name { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.25; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.brand .brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 10px 9px;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--navy); background: var(--bg); }
.main-nav a.active { color: var(--navy); border-bottom: 2px solid var(--orange); border-radius: 6px 6px 0 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
}
.ls-btn {
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}
.ls-btn:hover { color: var(--navy); }
.ls-btn.active { background: var(--navy); color: var(--white); }
.header-phone {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.header-phone span { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 42px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); }

/* ---------- Site search ---------- */
.site-search { position: relative; display: flex; align-items: center; }
.search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  flex: none;
}
.search-btn:hover { background: var(--bg); }
.search-panel { position: relative; display: block; }
.search-input {
  width: 116px;
  min-width: 0;
  flex: 0 1 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.search-results:empty { display: none; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 60;
}
.search-results li a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 8px;
}
.search-results li a:hover,
.search-results li[aria-selected="true"] a { background: var(--bg); }
.sr-title { font-size: 14px; color: var(--ink); line-height: 1.35; }
.sr-cat { font-size: 12px; color: var(--muted); }
.search-results .sr-empty { padding: 12px; font-size: 13px; color: var(--muted); }

@media (max-width: 1400px) {
  .search-btn { display: inline-flex; }
  .search-panel[hidden] { display: none !important; }
  .search-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(300px, 78vw);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 60;
  }
  .search-input { width: 100%; }
  .search-results {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    max-height: 260px;
    margin-top: 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,42,65,0.92) 0%, rgba(15,61,92,0.72) 55%, rgba(15,61,92,0.35) 100%);
}
.hero .container { position: relative; padding: 88px 24px; }
.hero-inner { max-width: 680px; }
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd9b8;
  border: 1px solid rgba(255,217,184,0.4);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero p.lead { font-size: 18px; color: #dbe8f0; margin: 0 0 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .kicker {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head h2 { font-size: 30px; color: var(--navy); margin: 8px 0 12px; line-height: 1.3; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.card-media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.card-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-body { padding: 22px; }
.card-body h3 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.card-body h3 a, .spare-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover, .spare-body h3 a:hover { color: var(--orange); }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }

.feature-card { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #eaf2f7; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Industry chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
caption { text-align: left; padding: 16px 20px; font-weight: 700; color: var(--navy); background: var(--bg); }
th, td { padding: 13px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f0f5f8; color: var(--navy); font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: #f8fbfd; }

/* ---------- Detail blocks ---------- */
.detail-block { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.detail-block .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-block .diagram-box, .detail-block .media { max-width: 680px; margin: 0 auto; width: 100%; }
.detail-block > div:last-child { max-width: 760px; margin: 0 auto; width: 100%; }
.detail-block h2 { font-size: 28px; color: var(--navy); margin: 0 0 16px; }
.detail-block p { color: var(--muted); }
/* two-column intro split (overview pages only) */
.detail-block.split { grid-template-columns: 5fr 7fr; align-items: center; }
.detail-block.split .diagram-box, .detail-block.split .media { max-width: 420px; margin: 0; }
.detail-block.split > div:last-child { max-width: none; margin: 0; }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  background: var(--orange);
  border-radius: 50%;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.4-1.4z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.4-1.4z"/></svg>') center/contain no-repeat;
}

/* ---------- Steps / principle ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num {
  counter-increment: step;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}
.step .num::before { content: counter(step); }
.step h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-card { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-card .icon { color: var(--orange); flex: 0 0 28px; }
.contact-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { color: var(--ink); font-weight: 500; }

.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 600; font-size: 14px; color: var(--navy); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(232,119,34,0.35); border-color: var(--orange); }
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { background: var(--navy); color: #fff; padding: 56px 0; }
.page-banner h1 { margin: 0 0 10px; font-size: 32px; }
.page-banner p { margin: 0; color: #dbe8f0; max-width: 640px; }
.breadcrumb { font-size: 13px; color: #b9d2e0; margin-bottom: 14px; }
.breadcrumb a { color: #b9d2e0; }
.breadcrumb a:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 44px 24px; }
.cta-band h2 { margin: 0 0 6px; font-size: 24px; }
.cta-band p { margin: 0; color: #dbe8f0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c6d6e0; padding: 56px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.site-footer h3 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c6d6e0; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 12px 0 0; color: #9db9c8; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8aa9ba;
}

/* ---------- SVG diagram cards ---------- */
.diagram-box {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  aspect-ratio: 4 / 3;
}
.diagram-box svg, .diagram-box img { width: 100%; height: 100%; object-fit: contain; }
.diagram-box.tall { aspect-ratio: 1 / 1; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--white);
}
.faq summary {
  padding: 18px 20px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--orange);
  margin-right: 10px;
  font-weight: 700;
}
.faq details[open] summary::before { content: "–"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq .faq-body p { margin: 0; }

/* ---------- Process timeline ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: proc;
}
.process .p-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.process .p-item .p-num {
  counter-increment: proc;
  width: 32px; height: 32px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.process .p-item .p-num::before { content: counter(proc); }
.process .p-item h3 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.process .p-item p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Product series cards ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .card-media { aspect-ratio: 1 / 1; background: var(--white); padding: 18px; }
.product-card .card-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card .card-body h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.product-card .card-body p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.spec-tags span {
  font-size: 12.5px; color: var(--navy); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px;
}
.spec-tags a {
  font-size: 12.5px; color: var(--navy); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; text-decoration: none;
}
.spec-tags a:hover { border-color: var(--orange); color: var(--orange); }
.product-card .meta { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Spare part cards ---------- */
.spare-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spare-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.spare-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.spare-card .spare-media {
  aspect-ratio: 1 / 1; background: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.spare-card .spare-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.spare-card .spare-body { padding: 20px; }
.spare-card .spare-body h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.spare-card .spare-body p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 1024px) { .spare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .spare-grid { grid-template-columns: 1fr; } }

/* ---------- Card image link ---------- */
.card-media a, .spare-media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.card-media img, .spare-media img { margin: 0 auto; }

/* ---------- QR contact cards ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 24px; justify-content: center; }
.qr-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.qr-card img { max-width: 180px; width: 100%; margin: 0 auto 12px; border-radius: 10px; }
.qr-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.qr-card p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { .qr-grid { grid-template-columns: 1fr; } }

/* ---------- Support page: notes, sub-titles, steps ---------- */
.manual-group-title { margin: 30px 0 16px; }
.manual-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14px; }
.step-list { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.step-list li { color: var(--muted); line-height: 1.6; }
.step-list li::marker { color: var(--navy); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px; }
  .main-nav a { padding: 12px 10px; }
  .brand .brand-sub { display: none; }
  .header-phone { display: none; }
  .hero .container { padding: 56px 24px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
  .grid-4, .grid-3, .grid-2, .steps, .detail-block, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .detail-block { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .topbar .topbar-contact { gap: 10px; }
}
