/* ============================================================
   Jingpeng Environmental Protection Materials - Global Styles
   Industrial / Engineering export website
   ============================================================ */

:root {
  --jp-blue: #0b4f8a;        /* primary deep blue */
  --jp-blue-dark: #073a66;
  --jp-blue-light: #1a6db8;
  --jp-teal: #0f8f8a;        /* secondary teal/green */
  --jp-teal-dark: #0a6b68;
  --jp-gray-900: #16191e;
  --jp-gray-700: #3d444d;
  --jp-gray-500: #6b7280;
  --jp-gray-300: #d1d5db;
  --jp-gray-100: #f3f4f6;
  --jp-gray-50: #f8fafc;
  --jp-white: #ffffff;
  --jp-orange: #e8821a;      /* CTA accent */
  --jp-orange-dark: #c96e0e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
  --maxw: 1200px;
}

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

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

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--jp-gray-900);
  background: var(--jp-white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--jp-blue); text-decoration: none; }
a:hover { color: var(--jp-blue-dark); }
ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--jp-gray-900); }

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: none; transition: all .2s ease; text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--jp-orange); color: #fff;
}
.btn-primary:hover { background: var(--jp-orange-dark); color: #fff; }
.btn-outline {
  background: transparent; color: var(--jp-blue);
  border: 2px solid var(--jp-blue);
}
.btn-outline:hover { background: var(--jp-blue); color: #fff; }
.btn-white {
  background: #fff; color: var(--jp-blue);
}
.btn-white:hover { background: var(--jp-gray-100); }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ============ Top bar ============ */
.topbar {
  background: var(--jp-blue-dark);
  color: #cfe0f0; font-size: 13px;
  padding: 7px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.topbar a { color: #cfe0f0; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ============ Header / nav ============ */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--jp-gray-100);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { line-height: 1.15; }
.brand .brand-name { font-weight: 800; font-size: 17px; color: var(--jp-blue-dark); }
.brand .brand-sub { font-size: 11px; color: var(--jp-gray-500); letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--jp-gray-700); font-weight: 600; font-size: 15px;
  padding: 9px 14px; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav a:hover { color: var(--jp-blue); background: var(--jp-gray-50); }
.nav a.active { color: var(--jp-blue); }

.nav .has-drop { position: relative; }
.nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 200;
  border: 1px solid var(--jp-gray-100);
}
.nav .has-drop:hover .dropdown { display: block; }
.nav .dropdown a { display: block; padding: 9px 14px; font-weight: 500; font-size: 14px; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 10px 20px; font-size: 14px; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--jp-gray-900); margin: 5px 0; transition: .2s; }

/* ============ Hero ============ */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(120deg, var(--jp-blue-dark) 0%, var(--jp-blue) 55%, var(--jp-teal) 100%);
  padding: 96px 0 84px; overflow: hidden;
}
.hero.has-bg { background: #0a2a47; }
.hero .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.32;
}
.hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7,38,66,.92) 0%, rgba(11,79,138,.82) 55%, rgba(10,107,104,.78) 100%);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 44px; font-weight: 800; max-width: 720px; margin-bottom: 18px; }
.hero p.lead { font-size: 18px; max-width: 640px; color: #dbe8f5; margin-bottom: 32px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 30px; font-weight: 800; display: block; }
.hero-stats .stat span { font-size: 14px; color: #bcd3e8; }

/* ============ Sections ============ */
.section { padding: 72px 0; }
.section.alt { background: var(--jp-gray-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--jp-teal); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.section-head h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { color: var(--jp-gray-500); font-size: 16px; }

/* ============ Category cards ============ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--jp-gray-100); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease; display: block; color: inherit;
  position: relative;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.cat-card .cat-img { height: 220px; overflow: hidden; background: var(--jp-gray-100); }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-card .cat-body { padding: 22px; }
.cat-card .cat-body h3 { font-size: 19px; margin-bottom: 8px; }
.cat-card .cat-body p { color: var(--jp-gray-500); font-size: 14px; margin-bottom: 14px; }
.cat-card .cat-link { color: var(--jp-blue); font-weight: 600; font-size: 14px; }
.cat-card .cat-body::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--jp-blue), var(--jp-teal));
  transition: width .3s ease;
}
.cat-card:hover .cat-body::after { width: 100%; }

/* ============ Product grid ============ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prod-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--jp-gray-100); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prod-card .prod-img { aspect-ratio: 4/3; overflow: hidden; background: var(--jp-gray-100); }
.prod-card .prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-card .prod-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.prod-card .prod-body h3 { font-size: 16px; margin-bottom: 6px; }
.prod-card .prod-body .tag { font-size: 12px; color: var(--jp-teal); font-weight: 600; margin-bottom: 8px; }
.prod-card .prod-body p { font-size: 13px; color: var(--jp-gray-500); flex: 1; }
.prod-card .prod-foot { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--jp-blue); }

/* ============ Product detail ============ */
.pd-hero { background: var(--jp-gray-50); padding: 48px 0; border-bottom: 1px solid var(--jp-gray-100); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.pd-img img { width: 100%; height: auto; }
.pd-info h1 { font-size: 32px; margin-bottom: 8px; }
.pd-info .pd-cat { color: var(--jp-teal); font-weight: 600; margin-bottom: 16px; font-size: 14px; }
.pd-info .pd-desc { color: var(--jp-gray-700); margin-bottom: 20px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pd-tags span {
  background: var(--jp-gray-100); color: var(--jp-gray-700);
  padding: 6px 12px; border-radius: 20px; font-size: 13px;
}
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.spec-section { padding: 56px 0; }
.spec-section h2 { font-size: 26px; margin-bottom: 20px; }
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--jp-gray-300); }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec th, table.spec td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--jp-gray-100);
  white-space: nowrap;
}
table.spec thead th { background: var(--jp-blue); color: #fff; font-weight: 600; }
table.spec tbody tr:nth-child(even) { background: var(--jp-gray-50); }
table.spec td:first-child { font-weight: 600; color: var(--jp-gray-900); }

.std-note {
  margin-top: 16px; padding: 16px 20px; background: #eef7f6;
  border-left: 4px solid var(--jp-teal); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--jp-gray-700);
}
.std-note b { color: var(--jp-teal-dark); }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid .about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-grid h2 { font-size: 30px; margin-bottom: 16px; }
.about-grid p { color: var(--jp-gray-700); margin-bottom: 14px; }
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.fact-item {
  background: #fff; border: 1px solid var(--jp-gray-100); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.fact-item b { display: block; font-size: 22px; color: var(--jp-blue); margin-bottom: 4px; }
.fact-item span { font-size: 14px; color: var(--jp-gray-500); }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info .ci-item {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.contact-info .ci-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--jp-blue); color: #fff; display: flex; align-items: center; justify-content: center;
}
.contact-info .ci-icon svg { width: 22px; height: 22px; }
.contact-info .ci-item b { display: block; font-size: 16px; margin-bottom: 2px; }
.contact-info .ci-item span { color: var(--jp-gray-500); font-size: 15px; }

.contact-form {
  background: #fff; border: 1px solid var(--jp-gray-100); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 22px; margin-bottom: 20px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--jp-gray-700); }
.form-row label .req { color: #dc2626; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--jp-gray-300);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  background: #fff; transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--jp-blue); box-shadow: 0 0 0 3px rgba(11,79,138,.1);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--jp-gray-500); margin-top: 6px; }

/* ============ Footer ============ */
.site-footer { background: var(--jp-gray-900); color: #b8c4d0; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { color: #b8c4d0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; }
.footer-brand p { font-size: 14px; margin: 14px 0; }
.footer-brand img { height: 40px; background: #fff; padding: 5px 8px; border-radius: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  font-size: 13px; text-align: center; color: #7d8a97;
}

/* ============ Page banner ============ */
.page-banner {
  background: linear-gradient(120deg, var(--jp-blue-dark), var(--jp-blue) 60%, var(--jp-teal));
  color: #fff; padding: 56px 0; text-align: center;
}
.page-banner h1 { color: #fff; font-size: 36px; margin-bottom: 8px; }
.page-banner p { color: #d5e3f1; font-size: 16px; }
.breadcrumb { margin-top: 12px; font-size: 14px; color: #bcd3e8; }
.breadcrumb a { color: #fff; }

/* ============ Filter chips ============ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.filter-chip {
  padding: 9px 18px; border-radius: 30px; border: 1px solid var(--jp-gray-300);
  background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--jp-gray-700);
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--jp-blue); color: var(--jp-blue); }
.filter-chip.active { background: var(--jp-blue); color: #fff; border-color: var(--jp-blue); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: #fff; border: 1px solid var(--jp-gray-100); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.faq-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--jp-blue-dark); }
.faq-item p { color: var(--jp-gray-500); font-size: 15px; }

/* ============ Breadcrumb / utility ============ */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.mb-24 { margin-bottom: 24px; }

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

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 74px; left: 0; right: 0; background: #fff;
    padding: 16px 24px; box-shadow: var(--shadow-lg); align-items: stretch;
  }
  .nav.open .dropdown { position: static; display: none; box-shadow: none; border: none; padding-left: 16px; }
  .nav.open .has-drop.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline { display: none; }

  .hero { padding: 64px 0; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat b { font-size: 24px; }

  .section { padding: 48px 0; }
  .section-head h2 { font-size: 27px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }

  .pd-grid, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .fact-list { grid-template-columns: 1fr 1fr; }

  .page-banner h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .prod-grid { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .contact-form { padding: 22px; }
}
