/* ZJLH Machinery — main.css v20261116a */
:root {
  --ink: #0f1a24;
  --primary: #16337a;
  --primary-dark: #10244f;
  --accent: #f2b60a;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #dde4ec;
  --muted: #5b6b7c;
  --ok: #168a4e;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 26, 36, 0.08);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #cfd8e3; font-size: 13.5px; }
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 7px 20px;
  display: flex; align-items: center; justify-content: flex-end; gap: 26px;
}
.topbar a { color: #e8eef5; display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; flex: none; }
.topbar .tb-note { color: #8fa0b3; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.header-in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.brand-sub { font-size: 9.5px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: #26323d; font-size: 16px; font-weight: 600; padding: 10px 14px;
  border-radius: 6px; white-space: nowrap;
}
.nav a:hover { background: #eef2f8; color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav .has-sub { position: relative; }
.nav .submenu {
  position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow); min-width: 230px; padding: 8px 0;
  display: none; z-index: 70;
}
.nav .has-sub:hover .submenu, .nav .has-sub:focus-within .submenu { display: block; }
.nav .submenu a { display: block; padding: 9px 18px; font-size: 15px; font-weight: 500; }
.header-cta { margin-left: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 600;
  padding: 12px 26px; border-radius: 8px; font-size: 16px; border: none; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #dca300; color: var(--ink); }
.btn--sm { padding: 9px 18px; font-size: 15px; }
.btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.65); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs span[aria-current] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(105deg, var(--primary-dark) 0%, var(--primary) 55%, #274b9f 100%);
  color: #fff; overflow: hidden;
}
.hero-in {
  max-width: var(--maxw); margin: 0 auto; padding: 68px 20px 74px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center;
}
.hero h1 { font-size: 40px; line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
.hero p.lead { margin: 16px 0 28px; font-size: 18px; color: #d4def0; max-width: 520px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 14px 40px rgba(6, 14, 30, 0.45); }
.hero--page { padding: 0; }
.hero--page .hero-in { padding: 56px 20px; grid-template-columns: 1fr; }
.hero--page h1 { font-size: 34px; }
.hero-kicker { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: #fff; }
.sec-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.sec-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head p { margin-top: 10px; color: var(--muted); font-size: 16.5px; }
.sec-head--left { text-align: left; margin: 0 0 30px; }

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

.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
  display: block; color: var(--ink);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(15,26,36,0.13); color: var(--ink); }
.cat-card img { height: 190px; width: 100%; object-fit: cover; }
.cat-card .cc-body { padding: 16px 18px 18px; }
.cat-card h3 { font-size: 17.5px; }
.cat-card p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.cat-card .cc-more { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--primary); }

.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.prod-card img { height: 210px; width: 100%; object-fit: cover; background: #eef1f5; }
.prod-card .pc-body { padding: 15px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-card h3 { font-size: 16.5px; line-height: 1.35; }
.prod-card .pc-spec { font-size: 13.5px; color: var(--muted); margin-top: 7px; }
.prod-card .pc-link { margin-top: auto; padding-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--primary); }

/* ---------- Feature list ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feat .f-ico {
  width: 46px; height: 46px; border-radius: 10px; background: #eaf0fb; color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feat .f-ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: 27px; margin-bottom: 14px; }
.split p { color: #33414f; }
.split ul.ticks { margin-top: 16px; }
.split ul.ticks li { padding-left: 26px; position: relative; margin-bottom: 9px; }
.split ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--ok); border-radius: 50%;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 11px 16px; border-bottom: 1px solid #e8edf3; font-size: 15px; text-align: left; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; background: #f8fafc; }
.spec-table td { color: var(--ink); }
.spec-table caption {
  caption-side: top; text-align: left; font-size: 18px; font-weight: 700;
  padding: 0 0 12px; color: var(--ink);
}
.spec-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Page hero (product) ---------- */
.pd-hero { background: #fff; border-bottom: 1px solid var(--line); }
.pd-hero-in {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 48px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center;
}
.pd-hero img { border-radius: var(--radius); border: 1px solid var(--line); background: #f0f3f7; }
.pd-hero h1 { font-size: 30px; line-height: 1.22; }
.pd-hero .pd-sub { margin: 12px 0 22px; color: var(--muted); font-size: 16.5px; }
.pd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 24px; }
.pd-kpi { background: #f4f7fb; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.pd-kpi b { display: block; font-size: 19px; color: var(--primary); }
.pd-kpi span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: 24px; }
.cta-band p { color: #a9b8c9; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; gap: 16px; margin-bottom: 16px; }
.info-card .ic { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #eaf0fb; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.info-card .ic svg { width: 22px; height: 22px; }
.info-card b { display: block; font-size: 15px; margin-bottom: 3px; }
.info-card a, .info-card span.v { color: var(--ink); font-size: 15.5px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 21px; margin-bottom: 6px; }
.form-card .form-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.f-row label, label.f-full { display: block; font-size: 13.5px; font-weight: 600; color: #2a3743; }
.f-row input, .f-row select, label.f-full + input, .f-msg { width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #c8d3e0; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fbfcfe; }
.f-msg { resize: vertical; min-height: 110px; }
input:focus, select:focus, .f-msg:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.form-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 14px; flex-wrap: wrap; }
.form-foot .hint { font-size: 13px; color: var(--muted); }
.f-ok { display: none; background: #e9f7ef; border: 1px solid #bfe6cf; color: var(--ok); border-radius: 8px; padding: 14px 16px; font-size: 15px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1219; color: #b6c2cf; font-size: 14.5px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 52px 20px 36px; display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 0.92fr; gap: 34px; }
.footer-col h3 { color: #fff; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b6c2cf; }
.footer-col a:hover { color: #fff; }
.footer-col .f-about { margin-top: 14px; color: #8496a8; font-size: 13.5px; line-height: 1.65; }
.footer-col li { display: flex; align-items: baseline; }
.footer-col .ftag { display: inline-block; width: 52px; letter-spacing: 0.06em; color: #7f92a5; flex: none; }
.footer-bottom { border-top: 1px solid #1d2733; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: #7f92a5; flex-wrap: wrap; }

/* ---------- Floating buttons ---------- */
.fab-wrap { position: fixed; right: 18px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 80; }
.fab {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 14px rgba(10, 20, 35, 0.3); border: none; cursor: pointer;
}
.fab svg { width: 24px; height: 24px; }
.fab--wa { background: #25d366; }
.fab--wx { background: #07c160; }
.fab--mail { background: var(--primary); }
.wx-pop {
  position: fixed; right: 76px; bottom: 22px; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 34px rgba(10,20,35,0.28); padding: 14px; z-index: 81;
}
.wx-pop[hidden] { display: none; }
.wx-pop img { width: 190px; height: auto; border-radius: 6px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Parts category cards ---------- */
.pcat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pcat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.pcat svg { flex: 0 0 42px; width: 42px; height: 42px; color: var(--primary); }
.pcat h3 { margin: 0 0 4px; font-size: 16px; }
.pcat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 28px 12px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 8px; font-size: 20px; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; padding: 52px 20px 60px; }
  .hero h1 { font-size: 33px; }
  .pd-hero-in { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink);
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .mobile-nav { display: none; background: #fff; border-top: 1px solid var(--line); }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 13px 22px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid #eef1f5; }
  .mobile-nav a:hover { background: #f4f7fb; color: var(--primary); }
  .grid-2, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
@media (min-width: 861px) {
  .nav-toggle, .mobile-nav { display: none !important; }
}
@media (max-width: 640px) {
  .topbar .tb-note { display: none; }
  .grid-4, .feat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 28px; }
  .pd-kpis { grid-template-columns: repeat(2, 1fr); }
  .f-row { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { padding: 9px 10px; font-size: 14px; }
  .section { padding: 48px 0; }
  table.cmp { font-size: 0.875rem; }
}
