/* ============================================================
   BaoQin Machinery — Site Stylesheet v2
   Layout & brand color inherited from baoqingmachinery.com
   (primary #2196f3, dark footer), rebuilt on a modern grid system.
   ============================================================ */
:root {
  --blue: #2196f3;
  --blue-d: #1477c9;
  --blue-soft: #eaf5fe;
  --ink: #121a22;
  --ink-2: #24313d;
  --body: #5b6774;
  --muted: #8a97a4;
  --line: #e6ebf0;
  --bg-soft: #f6f9fc;
  --dark: #111820;
  --dark-2: #1a232d;
  --accent: #ef5c32;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-1: 0 2px 8px rgba(16, 42, 67, .06);
  --shadow-2: 0 14px 34px rgba(16, 42, 67, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1220px;
}

* { box-sizing: border-box; }
html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, div, ol, ul, li, h1, h2, h3, h4, h5, h6, p, span, th, td, dl, dd, form, fieldset, legend, input, textarea, select, figure { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
img { border: 0; vertical-align: middle; max-width: 100%; }
a { text-decoration: none; color: var(--blue); transition: color .2s var(--ease); }
a:hover { color: var(--blue-d); }
button { font-family: inherit; cursor: pointer; }
h2, h3, h4, h5, h6 { font-weight: normal; }

body {
  font-family: "Segoe UI", Arial, "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
.inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================ Top bar ============================ */
.top-bar {
  background: var(--dark);
  color: #9fb0c0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top-bar .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.top-bar-lt { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-bar-lt a { color: #9fb0c0; }
.top-bar-lt a:hover { color: #fff; }
.top-bar-lt span { display: inline-flex; align-items: center; gap: 7px; }
.top-bar-lt svg { width: 13px; height: 13px; fill: none; stroke: var(--blue); stroke-width: 1.8; flex: none; }
.top-bar-comp { color: #cdd8e3; letter-spacing: .02em; }

/* language switcher */
.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 9px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; color: #dbe6f0; font-size: 12px; line-height: 1;
  transition: all .2s var(--ease);
}
.lang-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lang-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lang-btn .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); }
.lang-btn .lang-short { display: none; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 300;
  min-width: 148px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ease);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 5px; color: var(--ink-2); font-size: 13px;
}
.lang-menu a:hover { background: var(--blue-soft); color: var(--blue-d); }
.lang-menu a.on { color: var(--blue); font-weight: 600; }
.lang-menu a.on::after { content: "✓"; font-size: 12px; }

/* ============================ Header / nav ============================ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.header.stuck { box-shadow: 0 6px 24px rgba(16, 42, 67, .10); }
.header .inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo { flex: none; display: flex; align-items: center; height: 78px; }
.logo img { display: block; max-height: 54px; width: auto; height: auto; }

.main-menu { margin-left: auto; }
.navi { display: flex; align-items: center; gap: 2px; }
.navi > li { position: relative; }
.navi > li > a {
  display: flex; align-items: center; gap: 5px;
  height: 78px; padding: 0 14px;
  color: var(--ink-2); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.navi > li > a::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .5;
}
.navi > li.no-sub > a::after { display: none; }
.navi > li > a:hover, .navi > li.current > a { color: var(--blue); }
.navi > li.current > a::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--blue);
}

/* dropdown */
.navi .sub {
  position: absolute; top: 100%; left: 0; z-index: 250;
  min-width: 250px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue);
  border-radius: 0 0 8px 8px; box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s var(--ease);
}
.navi > li:hover .sub, .navi > li.open .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.navi .sub a {
  display: block; padding: 9px 12px; border-radius: 5px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.navi .sub a:hover { background: var(--blue-soft); color: var(--blue-d); }
.navi .sub li + li { border-top: 1px solid #f2f6fa; }

/* submenu toggle button — mobile only (must stay hidden on desktop,
   otherwise the inline-block button inflates the li and breaks nav alignment) */
.navi .sub-btn { display: none; }

/* hamburger */
.burger {
  display: none; flex: none; width: 42px; height: 42px; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: 8px; position: relative;
}
.burger span {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink);
  transition: all .25s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.on span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ============================ Hero ============================ */
.hero { position: relative; background: var(--dark); overflow: hidden; }
.hero-track { position: relative; }
.hero-slide {
  display: none; width: 100%;
  height: 950px;
  background-position: center; background-size: cover;
}
.hero-slide.on { display: block; animation: fadeIn .7s var(--ease); }
@keyframes fadeIn { from { opacity: .35; } to { opacity: 1; } }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 30, .30) 0%, rgba(10, 20, 30, 0) 55%);
  pointer-events: none;
}
.hero-arrow {
  position: absolute; top: 50%; z-index: 6; width: 46px; height: 46px; margin-top: -23px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%; backdrop-filter: blur(4px); color: #fff; font-size: 0;
  transition: all .25s var(--ease);
}
.hero-arrow::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
}
.hero-arrow.prev { left: 22px; }
.hero-arrow.prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.hero-arrow.next { right: 22px; }
.hero-arrow.next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.hero-arrow:hover { background: var(--blue); border-color: var(--blue); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 6; display: flex; justify-content: center; gap: 8px; }
.hero-dots button {
  width: 26px; height: 4px; padding: 0; border-radius: 2px; background: rgba(255, 255, 255, .45);
  transition: all .25s var(--ease);
}
.hero-dots button.on { background: #fff; width: 40px; }

/* feature strip */
.feature-strip { position: relative; z-index: 8; margin-top: -42px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2);
  overflow: hidden;
}
.feature-item { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-right: 1px solid var(--line); }
.feature-item:last-child { border-right: 0; }
.feature-item .fi {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--blue-soft); border-radius: 50%;
}
.feature-item .fi svg { width: 21px; height: 21px; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-item h3 { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.feature-item p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ============================ Sections ============================ */
.section { padding: clamp(52px, 6vw, 88px) 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { margin-bottom: 38px; text-align: center; }
.sec-eyebrow {
  display: inline-block; margin-bottom: 10px;
  color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.sec-head h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--ink);
  letter-spacing: -.01em; line-height: 1.25;
}
.sec-head h2 a { color: var(--ink); }
.sec-head h2 a:hover { color: var(--blue); }
.sec-head .sec-line { width: 46px; height: 3px; margin: 16px auto 0; background: var(--blue); border-radius: 2px; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.sec-head.left { text-align: left; }
.sec-head.left .sec-line { margin-left: 0; }

/* ============================ Product cards ============================ */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pcard {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #cfe4f8; }
.pcard-media { position: relative; display: block; background: #f4f7fa; overflow: hidden; }
.pcard-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.pcard-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.pcard-title {
  color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em;
}
.pcard-title:hover { color: var(--blue); }
.pcard-link { margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.pcard-link::after { content: "→"; transition: transform .25s var(--ease); }
.pcard:hover .pcard-link::after { transform: translateX(3px); }

/* category blocks on products page */
.cat-block { padding-top: 8px; }
.cat-block + .cat-block { margin-top: 56px; padding-top: 46px; border-top: 1px solid var(--line); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.cat-head h2 { font-size: 20px; font-weight: 700; color: var(--ink); }
.cat-head span { color: var(--muted); font-size: 13px; }

/* recommended */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rec-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.rec-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; opacity: .92; transition: transform .5s var(--ease), opacity .3s; }
.rec-card:hover img { transform: scale(1.04); opacity: 1; }
.rec-card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 22px 18px;
  background: linear-gradient(to top, rgba(9, 17, 25, .82), rgba(9, 17, 25, 0));
  color: #fff; font-size: 16px; font-weight: 600;
}
.rec-card:hover span { color: #fff; }

/* stats strip */
.stats { background: var(--dark); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .09); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -.01em; }
.stat b em { font-style: normal; color: var(--blue); }
.stat span { display: block; margin-top: 6px; font-size: 12.5px; color: #93a5b6; letter-spacing: .04em; }

/* ============================ News / Blog ============================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.article-media { position: relative; display: block; overflow: hidden; background: #eef3f7; }
.article-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.article-card:hover .article-media img { transform: scale(1.05); }
.article-date {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px;
  background: rgba(255, 255, 255, .94); border-radius: 4px;
  color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
}
.article-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.article-body .kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.article-title {
  color: var(--ink); font-size: 15.5px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 3em;
}
.article-title:hover { color: var(--blue); }
.article-excerpt {
  color: var(--muted); font-size: 13.5px; line-height: 1.72;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-more { margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.article-more::after { content: " →"; }
.center-btn { margin-top: 38px; text-align: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 30px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1;
  transition: all .25s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(33, 150, 243, .28); }
.btn-primary:hover { background: var(--blue-d); color: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { border: 1px solid #c9d7e4; color: var(--ink-2); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* CTA band */
.cta { background: linear-gradient(120deg, #1477c9 0%, #2196f3 55%, #38a8f5 100%); color: #fff; }
.cta .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 20px; flex-wrap: wrap; }
.cta h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: #fff; line-height: 1.3; }
.cta p { margin-top: 6px; color: #e3f2fd; font-size: 14px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================ Breadcrumb ============================ */
.breadcrumb {
  position: relative; color: #fff;
  background: var(--dark) url("../img/channel-banner.jpg") center/cover no-repeat;
}
.breadcrumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 22, 32, .92), rgba(12, 22, 32, .66)); }
.breadcrumb .inner { position: relative; z-index: 2; padding-top: 44px; padding-bottom: 40px; }
.breadcrumb h1, .breadcrumb h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; color: #fff; line-height: 1.3; }
.crumb-box { margin-top: 10px; font-size: 12.5px; color: #a9bccd; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumb-box a { color: #a9bccd; }
.crumb-box a:hover { color: #fff; }
.crumb-box .sep { opacity: .5; }
/* Blog 归档 hero 使用纯色背景 */
.page-blog .breadcrumb, .post-type-archive-blog .breadcrumb { background: var(--dark); }
.page-blog .breadcrumb::before, .post-type-archive-blog .breadcrumb::before { display: none; }

/* ============================ Content pages ============================ */
.page-wrap { padding: clamp(36px, 5vw, 64px) 0 clamp(50px, 6vw, 80px); }
.page-body { max-width: 900px; margin: 0 auto; }
.post-thumb { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; display: block; border-radius: 10px; margin-bottom: 24px; background: #f4f7fa; }
.post-thumb-wrap img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; display: block; }
.prose > p { margin-bottom: 16px; color: var(--body); }
.prose > p:last-child { margin-bottom: 0; }
.prose h2 { margin: 30px 0 10px; font-size: 18px; font-weight: 700; color: var(--ink); }
.prose h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.prose ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.prose li { margin-bottom: 6px; }
.page-intro { margin-bottom: 28px; padding: 22px 24px; background: var(--bg-soft); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.updated { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: start; }
.contact-card { padding: 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h2 { margin-bottom: 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.contact-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #dfe8f0; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border-radius: 50%; border: 1px solid var(--line); }
.contact-row .ic svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-row b { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-row p, .contact-row a { color: var(--ink-2); font-size: 14px; line-height: 1.6; word-break: break-word; }
.form-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.form-card h2 { margin-bottom: 6px; font-size: 20px; font-weight: 700; color: var(--ink); }
.form-card .sub { margin-bottom: 20px; color: var(--muted); font-size: 13.5px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid #dbe4ec; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-2); background: #fff; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(33, 150, 243, .12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { margin-top: 8px; color: var(--muted); font-size: 12px; }

/* inquiry mail modal (fallback when no mail client is configured) */
.inquiry-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; background: rgba(10, 18, 26, .55); padding: 20px; }
.im-box { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 14px; padding: 26px 24px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.im-box h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.im-box .im-to { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.im-box label { display: block; font-size: 12px; font-weight: 600; color: var(--blue); margin: 12px 0 6px; }
.im-box .im-subj { font-size: 14px; color: var(--ink-2); padding: 8px 10px; background: #f4f9ff; border-radius: 8px; word-break: break-word; }
.im-box textarea.im-body { width: 100%; min-height: 120px; resize: vertical; border: 1px solid #dce6f0; border-radius: 8px; padding: 10px; font: 13px/1.55 inherit; color: var(--ink-2); background: #fafcff; }
.im-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.im-actions .btn { flex: 1 1 auto; text-align: center; text-decoration: none; cursor: pointer; border: none; }
.im-copy, .im-gmail, .im-outlook { background: #eef3f8; color: var(--ink); }
.im-copy:hover, .im-gmail:hover, .im-outlook:hover { background: #e2eaf2; }
.im-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.im-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: none; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.im-close:hover { background: #f0f0f0; color: var(--ink); }
@media (max-width: 480px) { .im-actions .btn { flex: 1 1 100%; } }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; background: #fff; text-align: left;
  color: var(--ink); font-size: 15px; font-weight: 600;
}
.faq-q::after { content: "+"; flex: none; color: var(--blue); font-size: 20px; font-weight: 400; line-height: 1; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--body); font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* ============================ Product detail ============================ */
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f7fafc; }
.gallery-main img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs button { flex: 1 1 0; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.gallery-thumbs button.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(33, 150, 243, .15); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; }
.pd-title { font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; color: var(--ink); line-height: 1.3; }
.pd-cat { margin: 6px 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.spec-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table dl { display: grid; grid-template-columns: 42% 58%; margin: 0; }
.spec-table dt, .spec-table dd { padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); margin: 0; }
.spec-table dt { background: #f8fbfd; color: var(--ink-2); font-weight: 600; }
.spec-table dd { color: var(--body); word-break: break-word; }
.spec-table dl:last-child dt, .spec-table dl:last-child dd { border-bottom: 0; }
.inquiry-box { margin-top: 20px; padding: 18px 20px; background: var(--blue-soft); border: 1px solid #cfe6fa; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inquiry-box p { color: #2c5d85; font-size: 13px; }
.tabs { margin-top: 46px; }
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab-nav button {
  padding: 12px 22px; background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.tab-nav button.on { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { padding: 28px 0 0; }
.feature-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-block:last-child { border-bottom: 0; }
.feature-block h3 { margin-bottom: 6px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.feature-block p { color: var(--body); }

/* ============================ Footer ============================ */
.footer { background: var(--dark); color: #a6b7c6; font-size: 14px; }
.footer .inner { padding-top: 58px; padding-bottom: 40px; }
.footbar { display: grid; grid-template-columns: 0.9fr 0.85fr 0.85fr 2.1fr; gap: 36px; }
.footbar h3 { margin-bottom: 18px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footbar ul li { margin-bottom: 10px; }
.footbar ul li a { color: #a6b7c6; font-size: 13.5px; position: relative; }
.footbar ul li a:hover { color: #fff; }
.footbar .contact-line { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.7; }
.footbar .contact-line svg { flex: none; width: 15px; height: 15px; margin-top: 4px; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footbar .contact-line p { margin: 0; }
.footbar .contact-line b { display: inline; margin-right: 7px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7b8ea0; font-weight: 700; }
.footbar .contact-line a, .footbar .contact-line span { color: #cfdae5; }
.footer-brandline { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); flex-wrap: wrap; color: #7f92a3; font-size: 12.5px; }
.footer-brandline .fl-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-brandline a { color: #8fa3b4; }
.footer-brandline a:hover { color: #fff; }
.copyright { background: var(--dark-2); color: #7f92a3; font-size: 12.5px; border-top: 1px solid rgba(255, 255, 255, .05); }
.copyright .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.copyright .ft-menu { display: flex; gap: 14px; flex-wrap: wrap; }
.copyright .ft-menu a { color: #8fa3b4; }
.copyright .ft-menu a:hover { color: #fff; }

/* back to top */
#backtop {
  position: fixed; right: 20px; bottom: 28px; z-index: 150;
  width: 44px; height: 44px; display: none; place-items: center;
  background: var(--blue); color: #fff; border: 0; border-radius: 50%;
  box-shadow: 0 8px 22px rgba(33, 150, 243, .35); font-size: 0;
}
#backtop::before { content: ""; width: 9px; height: 9px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg) translate(2px, 2px); }
#backtop.show { display: grid; }
#backtop:hover { background: var(--blue-d); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-slide.on { animation: none; }
}

/* ============================ Responsive ============================ */
@media (max-width: 1100px) {
  .navi > li > a { padding: 0 10px; font-size: 13.5px; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footbar { grid-template-columns: 1fr 1fr; gap: 30px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(1), .feature-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  /* mobile navigation */
  .burger { display: block; }
  .main-menu {
    position: fixed; top: 64px; right: 0; left: auto; bottom: 0;
    width: min(86vw, 380px); margin: 0;
    background: #fff; box-shadow: -8px 0 30px rgba(0, 0, 0, .16);
    transform: translateX(105%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    overflow-y: auto; padding: 8px 0 40px; z-index: 260;
  }
  .main-menu.open { transform: none; visibility: visible; }
  .navi { display: block; }
  .navi > li { border-bottom: 1px solid var(--line); }
  .navi > li > a {
    height: auto; min-height: 52px; padding: 0 22px; font-size: 15px;
    justify-content: space-between;
  }
  .navi > li.current > a::before { display: none; }
  .navi > li > a::after { display: none; }
  .navi .sub-btn {
    position: absolute; top: 0; right: 0; width: 56px; height: 52px;
    background: transparent; border: 0; display: grid; place-items: center;
  }
  .navi .sub-btn::before {
    content: ""; width: 8px; height: 8px; margin-top: -4px;
    border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2);
    transform: rotate(45deg); transition: transform .25s;
  }
  .navi > li.open .sub-btn::before { transform: rotate(-135deg); margin-top: 2px; }
  .navi .sub {
    position: static; min-width: 0; padding: 0 0 8px; border: 0; border-radius: 0;
    box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none; background: var(--bg-soft);
  }
  .navi > li.open .sub { display: block; }
  .navi .sub a { padding: 11px 22px 11px 34px; font-size: 14px; }
  .navi .sub li + li { border-top: 1px solid #e9eff5; }
  .menu-mask {
    position: fixed; inset: 0; top: 64px; background: rgba(10, 18, 26, .5); z-index: 180;
    opacity: 0; visibility: hidden; transition: all .3s;
  }
  .menu-mask.on { opacity: 1; visibility: visible; }

  .header .inner { height: 64px; }
  .logo { height: 64px; }
  .logo img { max-height: 44px; }
  .hero-slide { height: clamp(275px, 65vw, 425px); }
  .hero-arrow { display: none; }
  .feature-strip { margin-top: 0; }
  .feature-grid { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
  .feature-item { padding: 16px; }
  .section { padding: 44px 0; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-3 { grid-template-columns: 1fr; gap: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .product-top { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footbar { grid-template-columns: 1fr; gap: 28px; }
  .footer .inner { padding-top: 44px; }
  .copyright .inner { justify-content: center; text-align: center; }
  .cta .inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .inner { padding: 0 16px; }
  /* compact one-line top bar: phone · e-mail · language */
  .top-bar { font-size: 11.5px; }
  .top-bar .inner { gap: 10px; min-height: 36px; }
  .top-bar-lt { gap: 12px; flex-wrap: nowrap; min-width: 0; flex: 1; }
  .top-bar-lt .top-bar-comp { display: none; }
  .top-bar-lt span { gap: 5px; white-space: nowrap; min-width: 0; }
  .top-bar-lt a { overflow: hidden; text-overflow: ellipsis; }
  .top-bar-lt svg { width: 12px; height: 12px; }
  .lang-btn { height: 24px; padding: 0 8px; font-size: 11.5px; gap: 5px; }
  .lang-btn .lang-full { display: none; }
  .lang-btn .lang-short { display: inline; }
  /* hero pulled in from the edges, taller */
  .hero { margin: 12px 16px 0; border-radius: 12px; }
  .hero-slide { height: min(120vw, 500px); }
  .hero-dots { bottom: 14px; }
  .hero-dots button { width: 20px; }
  .hero-dots button.on { width: 30px; }
  .grid-products { gap: 12px; }
  .pcard-body { padding: 12px 12px 14px; }
  .pcard-title { font-size: 13.5px; min-height: 2.9em; }
  .pcard-cat { font-size: 10px; }
  .pcard-link { font-size: 12px; }
  .feature-item .fi { width: 36px; height: 36px; }
  .feature-item h3 { font-size: 13px; }
  .feature-item p { font-size: 11.5px; }
  .sec-head h2 { font-size: 22px; }
  .spec-table dl { grid-template-columns: 40% 60%; }
  .spec-table dt, .spec-table dd { padding: 9px 11px; font-size: 12.5px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card, .contact-card { padding: 20px; }
  .inquiry-box { flex-direction: column; align-items: flex-start; }
  /* 内容页（详情/文章）收紧纵向间距、修正图片比例 */
  .breadcrumb .inner { padding-top: 26px; padding-bottom: 22px; }
  .page-wrap { padding: 26px 0 38px; }
  .product-top { gap: 16px; }
  .gallery-main img { aspect-ratio: 4/3; object-fit: cover; }
  .gallery-thumbs { gap: 8px; margin-top: 8px; }
  .pd-title { font-size: 19px; }
  .pd-cat { margin: 4px 0 12px; }
  .inquiry-box { margin-top: 14px; padding: 14px 16px; }
  .tabs { margin-top: 26px; }
  .feature-block { padding: 14px 0; }
  .prose h2 { margin: 22px 0 8px; }
  .prose h3 { margin: 18px 0 6px; }
  .page-intro { margin-bottom: 18px; padding: 16px 16px; }
  .post-thumb { aspect-ratio: 16/10; margin-bottom: 18px; }
  .form-card { padding: 18px; }
  .article-title { min-height: 0; }
  .tab-nav button { padding: 11px 14px; font-size: 13px; }
  .footer-brandline { justify-content: center; text-align: center; }
  .copyright .ft-menu { justify-content: center; }
}

@media (max-width: 380px) {
  .grid-products { grid-template-columns: 1fr; }
  .pcard-title { min-height: 0; }
}


/* ============================ ZYH additions ============================ */
/* products listing: left subcategory sidebar + right 3-column grid */
.cat-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 40px; align-items: start; }
.cat-layout > * { min-width: 0; }
.cat-side { position: sticky; top: 102px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 18px; box-shadow: var(--shadow-1); }
.cat-side-title { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding-bottom: 13px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.cat-side-group { min-width: 0; }
.cat-side-group + .cat-side-group { margin-top: 18px; }
.cat-side-group h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 7px; padding-left: 12px; }
.cat-side-group ul { max-width: 100%; }
.cat-side-group ul li + li { margin-top: 2px; }
.cat-side-group ul a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; line-height: 1.5; transition: background .2s var(--ease), color .2s var(--ease); }
.cat-side-group ul a span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.cat-side-group ul a:hover { background: var(--bg-soft); color: var(--blue); }
.cat-side-group ul a.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.cat-side-cta { margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.cat-side-cta h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cat-side-cta p { font-size: 12.5px; line-height: 1.65; color: var(--body); margin-bottom: 12px; }
.cat-side-cta .btn { display: inline-block; width: 100%; text-align: center; padding: 9px 12px; font-size: 13px; }
.cat-main .page-intro { max-width: none; text-align: left; margin: 0 0 34px; padding: 0; background: none; border: 0; color: var(--body); font-size: 15px; line-height: 1.8; }
.cat-desc { margin: -10px 0 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.cat-empty { color: var(--muted); }
.cat-block { scroll-margin-top: 96px; }

.cat-block .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-block + .module-block { margin-top: 52px; }
.module-head { padding: 0 0 16px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.module-head h2 { font-size: 23px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.module-head p { color: var(--body); font-size: 14px; line-height: 1.7; max-width: 700px; }

.equip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 26px; }
.equip-card { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #eef1f5; }
.equip-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }

.about-hl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.about-hl { padding: 22px 24px; background: var(--bg-soft); border-radius: var(--radius); border-top: 3px solid var(--blue); }
.about-hl h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.about-hl p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--body); }

@media (max-width: 980px) {
  .cat-block .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-hl-grid { grid-template-columns: 1fr; }
  .cat-layout { grid-template-columns: 1fr; gap: 26px; }
  .cat-side { position: static; top: auto; padding: 16px; }
  .cat-side-group + .cat-side-group { margin-top: 14px; }
  .cat-side-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .cat-side-group ul li + li { margin-top: 0; }
  .cat-side-group h3 { padding-left: 0; }
  .cat-side-group ul a { padding: 7px 12px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; gap: 7px; }
  .cat-side-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .cat-side-cta h3 { margin: 0; }
  .cat-side-cta p { margin: 0; flex: 1 1 200px; }
  .cat-side-cta .btn { width: auto; padding: 8px 18px; }
  .cat-block { scroll-margin-top: 78px; }
}
@media (max-width: 640px) {
  .cat-block .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equip-grid { grid-template-columns: 1fr; }
  .module-head h2 { font-size: 20px; }
  .cat-side { padding: 14px 14px 12px; }
  .cat-side-title { font-size: 11px; padding-bottom: 10px; margin-bottom: 12px; }
  .cat-side-group h3 { font-size: 10.5px; margin-bottom: 6px; }
  .cat-side-group ul { flex-wrap: nowrap; overflow-x: auto; gap: 7px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cat-side-group ul::-webkit-scrollbar { display: none; }
  .cat-side-group ul a { white-space: nowrap; padding: 6px 11px; font-size: 13px; }
  .cat-side-cta { display: none; }
}

/* ============================ Product detail: YouTube video ============================ */
.pd-video { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.pd-video h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.video-box { position: relative; display: block; width: 100%; max-width: 760px; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--dark); cursor: pointer; }
.video-box > img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .62; transition: transform .5s var(--ease), opacity .3s; }
.video-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,17,25,.55), rgba(9,17,25,.05)); pointer-events: none; }
.video-box:hover > img { transform: scale(1.03); opacity: .72; }
.video-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.video-play::before { content: ""; position: absolute; left: 27px; top: 21px; border-left: 17px solid var(--blue); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-box:hover .video-play { transform: scale(1.08); }
.video-label { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; text-align: center; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-source { margin-top: 10px; font-size: 12.5px; color: var(--muted); word-break: break-all; }
@media (max-width: 640px) { .video-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; } .video-play::before { left: 22px; top: 16px; border-left-width: 14px; border-top-width: 10px; border-bottom-width: 10px; } }

/* ============================ Company Profile: factory photos ============================ */
.about-feature { margin: 0 0 30px; }
.about-feature img, .about-gallery img { display: block; width: 100%; object-fit: cover; background: var(--bg-soft); }
.about-feature img { aspect-ratio: 900 / 380; border-radius: var(--radius); }
.about-feature figcaption, .about-gallery figcaption { margin-top: 9px; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.prose h2.about-gallery-title { margin: 32px 0 14px; font-size: 19px; font-weight: 700; color: var(--ink); }
.about-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.about-gallery figure { margin: 0; min-width: 0; }
.about-gallery img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
@media (max-width: 640px) {
  .about-feature { margin-bottom: 24px; }
  .about-feature img { aspect-ratio: 16 / 9; }
  .prose h2.about-gallery-title { margin: 26px 0 12px; font-size: 17px; }
  .about-gallery { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
}
