/* ============================================================
   QIJING — multi-layer label laminating machines
   Image-led single page. System fonts only, no external requests.
   ============================================================ */

:root {
  --red: #c8202f;
  --red-d: #a3161f;
  --ink: #111318;
  --dark: #0c0e12;
  --dark-2: #14171c;
  --muted: #6b7280;
  --line: #e6e7ea;
  --paper: #fff;
  --soft: #f5f6f8;
  --green: #1faa53;
  --max: 1240px;
  --pad: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border: 0;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #178a43; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- header ---------- */

.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: 22px 0;
}
/* 透明 logo 在浅色机身上会糊掉，顶部压一层从深到透明的渐变兜底可读性 */
.site-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(8,10,14,.55) 0%, rgba(8,10,14,.28) 45%, rgba(8,10,14,0) 100%);
  pointer-events: none;
  z-index: -1;
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.logo img { height: 60px; width: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.head-cta {
  padding: 11px 20px;
  font-size: 13px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 3px;
  /* 首屏照片变亮后，纯描边按钮在浅色天花板上会看不清，加一层淡底 */
  background: rgba(8,10,14,.32);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #fff;
  transition: background .18s, border-color .18s;
}
.head-cta:hover { background: var(--red); border-color: var(--red); }

/* ---------- hero (full-bleed machine photo, headline over the image) ---------- */

.hero {
  position: relative;
  min-height: clamp(600px, 90vh, 860px);
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  overflow: hidden;
  padding: 116px 0 clamp(46px, 5.4vw, 72px);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; }
.hero-slide.is-on { opacity: 1; }
.hero-slide picture { display: contents; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(1.1) saturate(1.02) contrast(1.01);
}
/* 换图时先压黑再亮起来：这一层盖在照片上，由 JS 加 .on 触发 */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #0b0d11;
  opacity: 0;
  /* 揭开时慢一点，读起来是「慢慢亮起来」 */
  transition: opacity 1.25s cubic-bezier(.33,.02,.35,1);
}
.hero-veil.on {
  opacity: 1;
  /* 压黑时快一点，别让人等 */
  transition-duration: .65s;
  transition-timing-function: ease-in;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* 只在文字所在的「上方 + 左下」压深，机器主体保持原亮度 */
  background:
    linear-gradient(180deg, rgba(8,10,14,.60) 0%, rgba(8,10,14,.14) 24%, rgba(8,10,14,0) 42%, rgba(8,10,14,.10) 62%, rgba(8,10,14,.62) 88%, rgba(8,10,14,.80) 100%),
    linear-gradient(90deg, rgba(8,10,14,.52) 0%, rgba(8,10,14,.16) 34%, rgba(8,10,14,0) 62%);
}
.hero-in {
  position: relative;
  z-index: 3;
}
.hero .eyebrow { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 16px 0 0;
  text-shadow: 0 2px 26px rgba(0,0,0,.42);
}
.hero h1 em { font-style: normal; color: #fff; }
.hero p {
  color: rgba(255,255,255,.92);
  font-size: clamp(14px, 1.4vw, 16.5px);
  max-width: 46ch;
  margin: 18px 0 0;
  text-shadow: 0 1px 16px rgba(0,0,0,.72), 0 1px 3px rgba(0,0,0,.4);
}
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- stats ---------- */

.stats { border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 26px 24px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--red);
  line-height: 1.1;
}
.stat span { font-size: 11.5px; color: var(--muted); }

/* ---------- section shells ---------- */

.sec { padding: clamp(52px, 6.5vw, 88px) 0; }
.sec-head { margin-bottom: clamp(24px, 3vw, 38px); }
.sec-head h2 { font-size: clamp(27px, 3.7vw, 44px); margin-top: 14px; }
.sec-head p { margin: 13px 0 0; color: var(--muted); font-size: 14.5px; max-width: 52ch; }

/* ---------- applications: structure tabs + compact grid ---------- */

.app-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.app-tabs::-webkit-scrollbar { display: none; }
.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #8b929c;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s, border-color .16s;
}
.app-tab em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--soft);
  color: #a8afb9;
}
.app-tab:hover { color: var(--ink); }
.app-tab.on { color: var(--ink); border-bottom-color: var(--red); }
.app-tab.on em { background: var(--red); color: #fff; }

.app-panel[hidden] { display: none; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.app-tile {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f5f8 0%, #e4e7ee 100%);
}
.app-tile.has-img { cursor: zoom-in; }
.app-tile.has-img:active { transform: scale(.99); }
.app-tile.has-img:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.app-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.94) saturate(.97);
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s;
}
.app-tile.has-img:hover img { transform: scale(1.07); filter: brightness(1.03) saturate(1.04); }
.app-tile .ph {
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 30px;
  transform: translate(-50%, -50%);
  color: #c3cad6;
}
.app-tile b {
  position: absolute;
  right: 6px; bottom: 6px;
  z-index: 2;
  max-width: calc(100% - 12px);
  padding: 4px 7px;
  border-radius: 2px;
  background: rgba(12,14,18,.84);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.app-hint {
  margin-left: auto;
  align-self: center;
  padding-right: 2px;
  font-size: 11px;
  color: #9aa1ab;
}

/* 没有实拍的格子做成深色文字卡，读起来是「版式」而不是「图挂了」 */
.app-tile.no-img { background: linear-gradient(155deg, #22262e 0%, #14171d 100%); }
.app-tile.no-img .ph {
  left: auto; right: 13px; top: auto; bottom: 13px;
  transform: none;
  width: 26px; height: 26px;
  color: rgba(255,255,255,.16);
}
.app-tile.no-img b {
  left: 14px; right: 14px;
  top: 50%; bottom: auto;
  transform: translateY(-50%);
  max-width: none;
  padding: 0;
  background: none;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: #fff;
}
.app-tile.no-img b::before {
  content: "";
  display: block;
  width: 16px; height: 2px;
  margin-bottom: 8px;
  background: var(--red);
}

/* 每组的最后一格：问一句，补齐网格空位 */
.app-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  background: var(--red);
  color: #fff;
  transition: background .18s;
}
.app-cta:hover { background: var(--red-d); }
.app-cta .cta-t { font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: -0.012em; }
.app-cta .cta-a { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }

/* 三格一排（RFID）：正好铺满一行，不留空格 */
.app-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 多层层那组只有 6 格：CTA 占两格、横排成一条，把最后一行补满 */
.app-cta.wide {
  grid-column: span 2;
  aspect-ratio: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 26px;
}
.app-cta.wide .cta-t { font-size: 16px; }

/* ---------- image lightbox ---------- */

body.lb-open { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6,8,12,.965);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lb[hidden] { display: none; }
.lb-in { margin: 0; max-width: min(1000px, 92vw); }
.lb-in img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  background: #171a20;
}
.lb-in figcaption {
  margin-top: 12px;
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  text-align: center;
}
.lb-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.18); }

/* ---------- machine video ---------- */

.vid { background: var(--dark); color: #fff; padding-top: clamp(38px, 4.4vw, 60px); }
.vid .eyebrow { color: #ff8a93; }
.vid .eyebrow::before { background: #ff8a93; }
.vid h2 { color: #fff; }
.vid .sec-head p { color: rgba(255,255,255,.62); }
.vid .sec-head { margin-bottom: clamp(16px, 2vw, 26px); }
.vcar { position: relative; max-width: 980px; margin: 0 auto; }
.vcar-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vcar-track::-webkit-scrollbar { display: none; }
.vid-card {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.vcar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.vcar-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, border-color .16s;
}
.vcar-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); }
.vcar-dots { display: flex; gap: 6px; }
.vcar-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: width .2s, background .2s;
}
.vcar-dots i.on { width: 18px; border-radius: 3px; background: #fff; }

.vid-cta {
  margin: 26px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}
.vid-cta a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.45);
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.vid-cta a:hover { color: var(--red); border-bottom-color: var(--red); }
.vid-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.vid-card b { color: #fff; font-size: 13.5px; letter-spacing: -0.01em; }
.vid-card span { color: rgba(255,255,255,.48); font-size: 11.5px; }
.vid-box {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.vid-box video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vid-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  border: 0;
  padding: 0;
  background: rgba(8,10,14,.16);
  cursor: pointer;
}
.vid-play[hidden] { display: none; }
.vid-play span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #0c0e12;
  font-size: 13px;
  font-weight: 700;
}
.vid-play svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- machine ---------- */

.machine { background: var(--soft); }
.machine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
}
.machine-photo {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.machine-photo { min-width: 0; }
.machine-photo img { width: 100%; height: auto; }
.machine-grid > * { min-width: 0; }

/* ---------- machine photo carousel (swipe / arrows / dots) ---------- */

.mgal { position: relative; min-width: 0; max-width: 100%; overflow: hidden; }
.mgal-track {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mgal-track::-webkit-scrollbar { display: none; }
.mgal-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  background: #fff;
}
.mgal-slide img {
  width: 100%; height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.mgal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(12,14,18,.14);
  background: rgba(255,255,255,.94);
  color: #0c0e12;
  font-size: 21px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background .16s, border-color .16s;
}
.mgal-btn:hover { background: #fff; border-color: rgba(12,14,18,.34); }
.mgal-btn.prev { left: 10px; }
.mgal-btn.next { right: 10px; }
.mgal-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.mgal-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(12,14,18,.22);
  transition: width .2s, background .2s;
}
.mgal-dots i.on { background: var(--red); width: 16px; border-radius: 3px; }
.machine h2 { font-size: clamp(24px, 3vw, 34px); margin: 13px 0 0; }
.machine p { color: #5a6270; font-size: 14px; margin: 15px 0 0; max-width: 44ch; }

.speclist { margin: 26px 0 0; border-top: 1px solid #dcdfe4; }
.specrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #dcdfe4;
}
.specrow dt {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.specrow dd {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.machine-cta { margin-top: 22px; align-self: flex-start; }

/* ---------- full-bleed photo band with overlaid type ---------- */

.band {
  position: relative;
  min-height: clamp(420px, 52vw, 580px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.band-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,14,.88) 0%, rgba(8,10,14,.52) 48%, rgba(8,10,14,.16) 100%),
    linear-gradient(180deg, rgba(8,10,14,.18), rgba(8,10,14,.42));
}
.band-in { position: relative; z-index: 2; padding-block: clamp(44px, 6vw, 72px); }
.band h2 { font-size: clamp(28px, 4vw, 52px); max-width: 15ch; margin: 14px 0 0; }
.band p { color: rgba(255,255,255,.8); font-size: 14.5px; margin: 16px 0 0; max-width: 42ch; }
.band .eyebrow { color: #ff8a93; }
.band .eyebrow::before { background: #ff8a93; }
.band-facts { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 30px; }
.band-facts div { font-size: 11px; color: rgba(255,255,255,.6); }
.band-facts b {
  display: block;
  color: #fff;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.band p.band-addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 36ch;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.74);
}
.band p.band-addr svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: #ff8a93; }

/* ---------- enquiry ---------- */

.enquiry { background: var(--soft); }
.enquiry-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
.enquiry h2 { font-size: clamp(27px, 3.5vw, 42px); margin-top: 13px; }
.enquiry p { color: var(--muted); font-size: 14px; margin: 15px 0 0; max-width: 32ch; }
.contact-list { margin: 24px 0 0; display: grid; gap: 13px; }
.contact-item { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.contact-item i {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-style: normal;
  font-size: 14px;
  color: var(--red);
}
.contact-item b {
  display: block;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.contact-item a, .contact-item span { font-weight: 600; }

form.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 18px 50px rgba(17,19,24,.06);
}
.field { display: grid; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field > label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5460;
}
.field > label .req { color: var(--red); }
.field > label .hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
}
.field-note { margin: 0; max-width: none; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.enquiry .field-note { max-width: none; margin: 0; font-size: 11.5px; }
.field-note a { color: var(--red); border-bottom: 1px solid rgba(200,32,47,.35); }
.field-note a:hover { border-bottom-color: var(--red); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdfe4;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
input:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,32,47,.11);
}
textarea { min-height: 68px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid #dcdfe4;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5460;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
}
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip:hover { border-color: #b9bec7; }
.chip:has(input:checked), .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(200,32,47,.18); }

.submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
}
.submit-row .btn { flex: 1 1 190px; }
.note { font-size: 11px; color: #8b929c; margin: 0; flex: 1 1 190px; }
.gdpr {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  max-width: none;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.gdpr a { color: var(--red); border-bottom: 1px solid rgba(200,32,47,.35); }
.gdpr a:hover { border-bottom-color: var(--red); }
.note.warn { color: var(--red); font-size: 12px; line-height: 1.55; }
.note.warn a { color: var(--red); border-bottom: 1px solid currentColor; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  font-size: 12px;
  padding: 30px 0;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
  justify-content: space-between;
}
.foot-in b { color: #fff; font-size: 13px; }
.foot-in a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  transition: transform .18s, box-shadow .18s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.34); }
.wa-float svg { width: 18px; height: 18px; fill: currentColor; }

body.has-consent .wa-float { bottom: calc(112px + env(safe-area-inset-bottom)); }

/* ---------- cookie consent ---------- */

.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  padding: 14px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 34px rgba(17,19,24,.10);
}
.consent[hidden] { display: none; }
.consent-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.consent p { margin: 0; font-size: 12px; line-height: 1.5; color: #5a6270; max-width: 60ch; }
.consent-acts { display: flex; gap: 8px; flex: none; }
.c-btn {
  padding: 10px 18px;
  border: 1px solid #d7dbe2;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.c-btn:hover { border-color: #b9bec7; }
.c-btn.c-yes { background: var(--ink); border-color: var(--ink); color: #fff; }
.c-btn.c-yes:hover { background: var(--red); border-color: var(--red); }

/* ---------- legal / thank you ---------- */

.page-head { background: var(--dark); color: #fff; padding: 96px 0 44px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 12px; }
.legal { padding: 48px 0 72px; font-size: 14.5px; color: #333a44; }
.legal h2 { font-size: 17px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.thanks { padding: 150px 0 96px; text-align: center; }
.thanks .tick {
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(31,170,83,.1);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 27px; font-weight: 800;
}
.thanks h1 { font-size: clamp(28px, 4.4vw, 46px); }
.thanks p { color: var(--muted); margin: 16px auto 0; max-width: 46ch; }
.thanks .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .machine-grid, .enquiry-grid { grid-template-columns: minmax(0, 1fr); }
  .machine-grid { gap: 28px; }
  .machine-photo { order: -1; }
  .hero { min-height: clamp(560px, 84vh, 720px); }
  .hero-img { object-position: 50% 44%; }
}

@media (max-width: 860px) {
  :root { --pad: 18px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 16px 18px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { padding-left: 0; }
  .head-cta { display: none; }
  .band { min-height: 470px; }
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  /* 手机首屏：文字区收紧，把画面让给机器 */
  .hero { min-height: 88vh; padding-top: 84px; padding-bottom: 54px; }
  /* 同意条出现时把首屏文字整体上移，避免悬浮按钮压住主按钮 */
  body.has-consent .hero { padding-bottom: 108px; }
  .hero h1 { font-size: clamp(26px, 7.9vw, 34px); line-height: 0.98; }
  .hero h1 { margin-top: 12px; }
  .hero .eyebrow { font-size: 9.5px; letter-spacing: .13em; }
  .hero p { font-size: 13.5px; line-height: 1.55; margin-top: 13px; max-width: 40ch; }
  .hero-acts { margin-top: 18px; gap: 8px; }
  .hero-acts .btn { flex: 1 1 100%; padding: 14px 12px; font-size: 13.5px; }
  /* 手机端：WhatsApp 由右下角悬浮按钮承担，首屏不再重复一个描边按钮 */
  .hero-acts .btn-ghost { display: none; }
  .band-img { object-position: 0% 34%; }
  /* 手机端厂区带：把左侧压暗改轻，让楼顶「崎精印机」招牌露出来，靠文字阴影保可读 */
  .band::after {
    background:
      linear-gradient(180deg, rgba(8,10,14,.24) 0%, rgba(8,10,14,.50) 44%, rgba(8,10,14,.92) 100%),
      linear-gradient(90deg, rgba(8,10,14,.36) 0%, rgba(8,10,14,.04) 70%);
  }
  .band h2, .band p { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
  /* 应用区：手机两列，切 tab 换结构；格子压扁一点，减少滚动距离 */
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* RFID 三张排一行，不拉通栏（源图分辨率低，放大就糊） */
  .app-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-cta.wide { aspect-ratio: auto; padding: 20px 16px; gap: 10px; }
  .app-cta.wide .cta-t { font-size: 13px; }
  .app-tabs { gap: 0; }
  .app-tab { padding: 10px 11px 11px; font-size: 12px; }
  .app-tab em { font-size: 9px; }
  .app-tile b { right: 4px; bottom: 4px; padding: 3px 6px; font-size: 9.5px; }
  .app-tile.no-img b { left: 10px; right: 10px; font-size: 11.5px; }
  .app-tile.no-img b::before { width: 12px; margin-bottom: 6px; }
  .app-cta { padding: 11px; }
  .app-cta .cta-t { font-size: 11.5px; }
  .app-cta .cta-a { font-size: 9.5px; letter-spacing: .07em; }
  .app-hint { display: none; }
  .app-tab .t-lbl { display: none; }
  .app-tile .ph { width: 24px; height: 24px; }
  .app-note { display: none; }
  .lb { padding: 14px; }
  .lb-close { top: 10px; right: 10px; }
  .logo img { height: 42px; }
  .mgal-btn { display: none; }
  /* 视频：一屏一张，左右滑动 + 圆点 */
  .vid-card figcaption { margin-top: 10px; padding-top: 9px; }
  .vid-card b { font-size: 12px; line-height: 1.3; }
  .vid-card span { font-size: 10.5px; }
  .vid-play span { padding: 11px 17px; font-size: 12px; }
  .vcar-nav { margin-top: 12px; gap: 10px; }
  .vcar-btn { width: 30px; height: 30px; font-size: 16px; }
  .consent { padding: 12px 0; }
  .consent p { font-size: 11.5px; }
  .consent-acts { width: 100%; }
  .c-btn { flex: 1 1 0; padding: 11px 12px; }
  body.has-consent .wa-float { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .wa-float { padding: 11px 14px; font-size: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .page-head { padding: 76px 0 34px; }
  .band-facts { flex-direction: column; gap: 16px; }
  .band-facts div { max-width: 34ch; }
}
