/* ============================================================
   Jinpu (Tianjin) Pump Industry Co., Ltd. — Gen Pro Pump
   Global stylesheet · deep navy + gold industrial style
   ============================================================ */

:root {
  --navy-900: #061733;
  --navy-800: #0a2247;
  --navy-700: #0e2f5c;
  --navy-600: #14406e;
  --navy-100: #e8eef7;
  --gold-500: #c9a45c;
  --gold-400: #d9b878;
  --gold-600: #a8823e;
  --ink: #1c2536;
  --ink-soft: #4a5568;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #dde5f0;
  --shadow-sm: 0 2px 10px rgba(6, 23, 51, .08);
  --shadow-md: 0 10px 30px rgba(6, 23, 51, .12);
  --shadow-lg: 0 24px 60px rgba(6, 23, 51, .18);
  --radius: 14px;
  --maxw: 1200px;
  --font-sans: "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease;
  background: linear-gradient(180deg, rgba(6, 23, 51, .82), rgba(6, 23, 51, 0));
}

.site-header.scrolled {
  background: rgba(6, 23, 51, .96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand img { height: 52px; width: auto; border-radius: 4px; }

.brand-text { color: #fff; line-height: 1.2; white-space: nowrap; }
.brand-text .cn { font-size: 17px; font-weight: 700; letter-spacing: 1.5px; }
.brand-text .en { font-size: 10.5px; letter-spacing: 2.5px; color: var(--gold-400); text-transform: uppercase; }

.main-nav ul { display: flex; gap: 6px; align-items: center; }

.main-nav a {
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900) !important;
  font-weight: 700;
}
.nav-cta:hover { filter: brightness(1.08); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-left: 10px;
  transition: border-color .2s, background .2s;
}
.lang-switch:hover { border-color: var(--gold-400); background: rgba(201, 164, 92, .12); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px auto; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(20, 64, 110, .9), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(201, 164, 92, .12), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 700px at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(1000px 700px at 70% 40%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 140px 0 90px;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gold-400);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 44px; height: 2px; background: var(--gold-500); }

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 10px 28px rgba(201, 164, 92, .35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.hero-figure { position: relative; }

.hero-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .12);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(201, 164, 92, .5);
  border-radius: var(--radius);
  z-index: -1;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 46px;
}
.hero-badges span {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .04);
}

/* ---------- Stats bar ---------- */

.stats {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.2;
}
.stat small { font-size: 14px; color: rgba(255, 255, 255, .65); letter-spacing: 1px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section.alt { background: var(--paper); }
.section.navy {
  background:
    radial-gradient(900px 480px at 90% 0%, rgba(201, 164, 92, .1), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
}

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 12px;
}
.navy .section-tag { color: var(--gold-400); }

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-head p { color: var(--ink-soft); font-size: 16px; }
.navy .section-head p { color: rgba(255, 255, 255, .72); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.about-copy h3 { font-size: 22px; margin-bottom: 14px; letter-spacing: .5px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; text-align: justify; }

.about-points { margin-top: 26px; display: grid; gap: 12px; }
.about-points li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--navy-700);
}
.about-points li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--gold-500) 0 5px, transparent 5px),
              conic-gradient(var(--navy-600) 0 25%, transparent 0 50%, var(--navy-600) 0 75%, transparent 0);
  border: 1px solid var(--gold-500);
}

/* ---------- Product cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.navy .product-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.navy .product-card:hover { background: rgba(255, 255, 255, .08); }

.product-card .thumb {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.product-card .thumb img { width: 100%; height: 270px; object-fit: cover; object-position: top; }

.product-card .body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }

.product-card h3 { font-size: 20px; margin-bottom: 4px; letter-spacing: .5px; }
.navy .product-card h3 { color: #fff; }
.product-card .model { color: var(--gold-600); font-weight: 800; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.navy .product-card .model { color: var(--gold-400); }
.product-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.navy .product-card p { color: rgba(255, 255, 255, .7); }

.spec-list { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.spec-list li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.navy .spec-list li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .78); }
.spec-list b { display: block; color: var(--navy-700); font-size: 15px; }
.navy .spec-list b { color: var(--gold-400); }

/* ---------- Applications ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.app-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 430px;
  box-shadow: var(--shadow-sm);
}

.app-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .5s ease;
}
.app-card:hover img { transform: scale(1.06); }

.app-card .label {
  position: absolute; inset: auto 0 0 0;
  padding: 60px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(6, 23, 51, .92));
  color: #fff;
}
.app-card .label h3 { font-size: 18px; margin-bottom: 4px; }
.app-card .label span { font-size: 12.5px; color: var(--gold-400); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Catalog gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-grid figure {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.gallery-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.gallery-grid img { width: 100%; height: 300px; object-fit: cover; object-position: top; }

.gallery-grid figcaption {
  font-size: 13px;
  text-align: center;
  padding: 10px 8px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 23, 51, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 40px; line-height: 1;
  color: #fff; background: none; border: 0; cursor: pointer;
  opacity: .8;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: stretch;
}

.contact-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-list { display: grid; gap: 22px; margin-top: 8px; }

.contact-list li { display: flex; gap: 16px; align-items: flex-start; }

.contact-icon {
  flex: 0 0 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 800;
}

.contact-list b { display: block; font-size: 13px; letter-spacing: 2px; color: var(--gold-400); text-transform: uppercase; margin-bottom: 2px; }
.contact-list span { font-size: 16px; color: rgba(255, 255, 255, .92); word-break: break-all; }
.contact-list a:hover { color: var(--gold-400); }

.contact-slogan {
  display: flex; flex-direction: column; justify-content: center;
  gap: 18px;
}
.contact-slogan h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; font-weight: 800; }
.contact-slogan h3 em { font-style: normal; color: var(--gold-400); }
.contact-slogan p { color: rgba(255, 255, 255, .7); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.footer-inner img { height: 40px; width: auto; border-radius: 4px; }

.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--gold-400); }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-figure { max-width: 420px; }
  .card-grid, .card-grid.two { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: rgba(6, 23, 51, .98);
    transform: translateY(-115%);
    transition: transform .35s ease;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 16px 24px 26px; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; }
  .lang-switch { margin: 10px 14px 0; }
  .nav-toggle { display: block; }
  .header-inner .lang-switch { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 68px 0; }
}
