/* ==========================================================================
   YINTEFEISI — Hubei Hongying Guardrail Co., Ltd. (second, independent site)
   Design direction: LIGHT INDUSTRIAL / TECHNICAL DRAWING.
   Square corners, hairline rules, mono-spaced numerals, an orange-red accent
   and full-bleed bands. Deliberately unlike the first site (dark-green,
   rounded 14px cards, pill buttons, floating card grid).

   No CDN, no external fonts, no framework: every rule lives in this one file
   and only system font stacks are used. All colours come from the :root
   custom properties below.
   ========================================================================== */

:root {
  /* accent — orange-red, the single strong colour of the site */
  --accent: #e2431c;
  --accent-dk: #b5320f;
  --accent-soft: #fdeee9;

  /* steel — near-black blue-grey used for full-bleed dark bands */
  --steel: #121a22;
  --steel-2: #1b2531;
  --steel-3: #2b3947;

  /* text and surfaces */
  --ink: #0e141b;
  --body: #4c5560;
  --muted: #7c8794;
  --on-steel: #c3cfda;
  --on-steel-dim: #93a3b2;
  --rule: #dde1e6;
  --rule-soft: rgba(255, 255, 255, .14);
  --band: #f4f6f8;
  --white: #fff;

  /* geometry — square, technical */
  --radius: 3px;
  --container: 1240px;
  --header-h: 76px;
  --hotbar-h: 40px;

  --shadow: 0 10px 28px rgba(14, 20, 27, .12);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* anchor jumps land below the sticky masthead */
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  color: var(--body);
  background: var(--white);
}

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

a { color: var(--accent-dk); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.2rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1rem; }
strong, b { color: var(--ink); }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

:focus-visible { outline: 3px solid rgba(226, 67, 28, .5); outline-offset: 2px; }

.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;
}

.skip-link {
  position: absolute; left: 10px; top: -70px; z-index: 999;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem;
  padding: .65rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius);
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.sec { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.sec--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.sec--band { background: var(--band); }
.sec--steel { background: var(--steel); color: var(--on-steel); }
.sec--steel h1, .sec--steel h2, .sec--steel h3 { color: #fff; }

.lead { font-size: 1.05rem; color: var(--muted); max-width: 62ch; margin: 0; }
.sec--steel .lead { color: var(--on-steel-dim); }

/* uppercase eyebrow with a left rule — a signature of this layout */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--steel-3);
  margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 36px; height: 3px; background: var(--accent); flex: 0 0 auto; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }
.sec--steel .eyebrow { color: var(--on-steel-dim); }

/* hazard stripe — thin industrial detail used at band edges */
.stripe {
  height: 8px;
  background-image: repeating-linear-gradient(45deg, var(--accent) 0 12px, var(--steel-2) 12px 24px);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border: 2px solid var(--steel); border-radius: var(--radius);
  background: var(--steel); color: #fff; font: inherit; font-weight: 700;
  font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn--dark { background: var(--steel); border-color: var(--steel); color: #fff; }
.btn--dark:hover { background: var(--steel-2); border-color: var(--steel-2); color: #fff; }
.btn--outline { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn--outline:hover { border-color: var(--steel); background: var(--band); color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--accent-dk); }
.btn--white:hover { background: var(--steel); border-color: var(--steel); color: #fff; }
.btn--sm { padding: .6rem 1rem; font-size: .78rem; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.linkarrow { font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.linkarrow::after { content: " \2192"; color: var(--accent); }
.linkarrow:hover { text-decoration: none; color: var(--accent); }

/* ---------- top hotline bar ---------- */

.hotbar { background: var(--accent); color: #fff; font-size: .85rem; }
.hotbar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .4rem 1.5rem; min-height: var(--hotbar-h);
}
.hotbar a { color: #fff; font-weight: 700; }
.hotbar a:hover { color: #fff; text-decoration: underline; }
.hotbar__list { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 0; list-style: none; margin: 0; padding: 0; }
.hotbar__list li { margin: 0; display: flex; align-items: center; }
.hotbar__list li + li::before { content: ""; width: 1px; height: 15px; background: rgba(255, 255, 255, .45); margin: 0 .85rem; }
.hotbar__list .tel { font-family: var(--mono); letter-spacing: .04em; font-size: .95rem; }

.langswitch { display: flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; }
.langswitch a, .langswitch span {
  display: inline-block; padding: .18rem .55rem; border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius); color: #fff; letter-spacing: .06em;
}
.langswitch a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.langswitch .is-current { background: #fff; border-color: #fff; color: var(--accent-dk); }
.langswitch--foot a, .langswitch--foot span { border-color: var(--rule-soft); color: var(--on-steel); }
.langswitch--foot a:hover { color: #fff; }
.langswitch--foot .is-current { background: #fff; border-color: #fff; color: var(--steel); }

/* ---------- sticky masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 70;
  background: #fff; border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.masthead.is-stuck { box-shadow: var(--shadow); border-bottom-color: transparent; }
.masthead__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--steel); color: #fff; border-radius: var(--radius);
  font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  border-bottom: 3px solid var(--accent);
}
.brand__text { display: block; }
.brand__name { display: block; color: var(--ink); font-weight: 800; font-size: .98rem; letter-spacing: .04em; line-height: 1.15; }
.brand__sub { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .05em; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: block; color: var(--ink); font-weight: 700; font-size: .84rem;
  letter-spacing: .09em; text-transform: uppercase; padding: .45rem 0;
  border-bottom: 3px solid transparent;
}
.nav__link:hover { color: var(--accent-dk); text-decoration: none; border-bottom-color: var(--rule); }
.nav__link.is-active { color: var(--accent-dk); border-bottom-color: var(--accent); }

.masthead__side { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.hotline { display: flex; align-items: center; gap: .6rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.hotline:hover { text-decoration: none; }
.hotline__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hotline__num { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--ink); }
.hotline:hover .hotline__num { color: var(--accent-dk); }

.navtoggle {
  display: none; margin-left: auto; width: 46px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
  display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--steel); border-radius: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: relative; }
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 4px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (full-width steel band) ---------- */

.hero { position: relative; background: var(--steel); color: var(--on-steel); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
}
.hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(2.75rem, 6vw, 5rem) 0;
}
.hero__title { color: #fff; margin-bottom: 1rem; }
.hero__text { font-size: 1.06rem; color: var(--on-steel); max-width: 38rem; margin-bottom: 1.5rem; }
.hero__text strong { color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.chips li { margin: 0; }
.chip {
  display: inline-block; padding: .42rem .78rem; font-size: .82rem; font-weight: 600;
  color: #dde7ef; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
}
.chip:hover { color: #fff; background: rgba(226, 67, 28, .22); border-color: var(--accent); text-decoration: none; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-top: 2rem;
  padding-top: 1.35rem; border-top: 1px solid var(--rule-soft);
}
.hero__facts div { font-size: .82rem; color: var(--on-steel-dim); }
.hero__facts b { display: block; font-family: var(--mono); font-size: 1.4rem; color: #fff; font-weight: 700; }

.frame { position: relative; border: 1px solid var(--rule-soft); background: var(--steel-2); overflow: hidden; }
.frame--light { border-color: var(--rule); background: var(--band); }
.frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame__tag {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; padding: .4rem .7rem;
}

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; }
.about__text > p { max-width: 60ch; }

.checks { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.checks li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; color: var(--body); }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: .18em;
  width: 18px; height: 18px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700;
  border-radius: 1px;
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 1px; background: var(--rule); border: 1px solid var(--rule); border-top: 0; }
.facts__cell { background: #fff; padding: 1rem 1.1rem; }
.facts__cell b { display: block; font-family: var(--mono); font-size: 1.2rem; color: var(--ink); font-weight: 700; }
.facts__cell span { font-size: .82rem; color: var(--muted); }

/* ---------- product bands (three-band matrix) ---------- */

.band { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--rule); background: #fff; }
.band--alt { background: var(--band); }

.band__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.5rem;
  border-left: 5px solid var(--accent); padding-left: 1.15rem; margin-bottom: 1.85rem;
}
.band__no { font-family: var(--mono); font-size: .86rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.band__title { margin: 0 0 .3rem; }
.band__line { margin: 0; max-width: 68ch; color: var(--muted); font-size: .98rem; }
.band__count {
  margin-left: auto; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: .3rem .6rem; background: #fff;
}
.band__foot { margin: 1.5rem 0 0; }

/* hairline matrix of product cells — no floating rounded cards */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.pcard { display: block; background: #fff; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pcard:hover { text-decoration: none; background: var(--accent-soft); }
.pcard__img { display: block; overflow: hidden; background: var(--band); border-bottom: 1px solid var(--rule); }
.pcard__img img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__name {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .9rem 1rem; color: var(--ink); font-weight: 700; font-size: .97rem; line-height: 1.35;
}
.pcard__name::after { content: "\2192"; color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.pcard:hover .pcard__name { color: var(--accent-dk); }

/* ---------- numbered advantages ---------- */

.adv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-soft); margin-top: 1rem; }
.adv__item { padding: 1.75rem 1.5rem 1.75rem 0; border-right: 1px solid var(--rule-soft); }
.adv__item + .adv__item { padding-left: 1.5rem; }
.adv__item:last-child { border-right: 0; }
.adv__no { display: block; font-family: var(--mono); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--accent); margin-bottom: .7rem; }
.adv__title { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.adv__text { font-size: .93rem; color: var(--on-steel-dim); margin: 0; }

/* ---------- full-width CTA band ---------- */

.cta { background: var(--accent); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.cta__title { color: #fff; margin-bottom: .7rem; }
.cta__text { color: rgba(255, 255, 255, .92); max-width: 48ch; margin: 0; }
.cta__card { background: rgba(0, 0, 0, .16); border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.cta__phone { display: block; font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1.2; }
.cta__phone:hover { color: #fff; text-decoration: none; }
.cta__label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-bottom: .55rem; }
.cta__links { list-style: none; margin: .9rem 0 0; padding: .9rem 0 0; border-top: 1px solid rgba(255, 255, 255, .3); }
.cta__links li { margin-bottom: .4rem; }
.cta__links a { color: #fff; font-weight: 700; }
.cta__links a:hover { color: #fff; }
.cta__addr { font-size: .88rem; color: rgba(255, 255, 255, .88); margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .3); }
.cta__actions { margin-top: 1.1rem; }

/* ---------- multi-column footer ---------- */

.foot { background: var(--steel); color: var(--on-steel-dim); padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: .93rem; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.35fr; gap: 2rem; }
.foot__h {
  color: #fff; font-family: var(--mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: .5rem; border-bottom: 1px solid var(--rule-soft); margin: 0 0 .9rem;
}
.foot__list { list-style: none; padding: 0; margin: 0; }
.foot__list li { margin-bottom: .5rem; }
.foot a { color: var(--on-steel); }
.foot a:hover { color: #fff; }
.foot__note { max-width: 46ch; margin-top: 1rem; }
.brand--foot .brand__name { color: #fff; }
.brand--foot .brand__sub { color: var(--on-steel-dim); }
.brand--foot .brand__mark { background: var(--steel-2); }
.foot__lang { margin-top: 1rem; }
.foot__bottom {
  margin-top: 2.25rem; padding-top: 1.2rem; border-top: 1px solid var(--rule-soft);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: #7b8a99;
}

/* ---------- back to top ---------- */

.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, background-color .15s ease;
}
.totop.is-on { opacity: 1; visibility: visible; }
.totop:hover { background: var(--accent-dk); }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hotline { display: none; }
}

@media (max-width: 1000px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv__item:nth-child(2n) { border-right: 0; }
  .adv__item:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .about, .cta__inner { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
}

@media (max-width: 880px) {
  .navtoggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 460px; overflow: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .35rem 22px 1.1rem; }
  .nav__list li { border-bottom: 1px solid var(--rule); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link { padding: .9rem 0; border-bottom: 0; }
  .masthead__side .btn { display: none; }
}

@media (max-width: 640px) {
  .pgrid, .adv, .facts { grid-template-columns: 1fr; }
  .adv__item { padding: 1.5rem 0; border-right: 0; }
  .adv__item + .adv__item { padding-left: 0; }
  .adv__item:nth-child(n+2) { border-top: 1px solid var(--rule-soft); }
  .foot__grid { grid-template-columns: 1fr; }
  .hotbar__inner { justify-content: center; text-align: center; }
  .hotbar__list { justify-content: center; }
  .hotbar__list li + li::before { margin: 0 .5rem; }
  .hero__facts { gap: 1rem 1.75rem; }
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pcard__img img { transition: none; }
  .pcard:hover .pcard__img img { transform: none; }
}

@media print {
  .hotbar, .masthead, .totop, .cta, .foot { display: none; }
  body { color: #000; }
}

/* ==========================================================================
   Chinese pages (<html lang="zh-CN">) — looser line height, no negative
   tracking, slightly smaller display sizes, and no uppercase transforms.
   ========================================================================== */

html[lang="zh-CN"] body { line-height: 1.88; }
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 { letter-spacing: 0; line-height: 1.42; }
html[lang="zh-CN"] h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
html[lang="zh-CN"] h2 { font-size: clamp(1.4rem, 2.5vw, 1.95rem); }
html[lang="zh-CN"] .hero__text { font-size: 1.04rem; line-height: 1.9; }
html[lang="zh-CN"] .eyebrow { letter-spacing: .1em; }
html[lang="zh-CN"] .btn { letter-spacing: .06em; }
html[lang="zh-CN"] .nav__link { letter-spacing: .04em; font-size: .9rem; }
html[lang="zh-CN"] .band__line { line-height: 1.85; }
html[lang="zh-CN"] .cta__phone { letter-spacing: .02em; }

/* ==========================================================================
   INNER PAGES — products, about, contact.
   Same visual language as the home page: square corners, hairline rules,
   mono-spaced labels, the orange-red accent and full-bleed steel bands.
   Appended here so no page carries a <style> block of its own.
   ========================================================================== */

/* ---------- page banner (short steel band under the masthead) ---------- */

.pagehead { position: relative; background: var(--steel); color: var(--on-steel); overflow: hidden; }
.pagehead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
}
.pagehead__inner { position: relative; z-index: 1; padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }
.pagehead__title { color: #fff; max-width: 22ch; margin-bottom: .8rem; }
.pagehead__text { color: var(--on-steel); max-width: 74ch; margin: 0; }
.pagehead__text strong { color: #fff; }

/* ---------- breadcrumb ---------- */

.crumbs { position: relative; z-index: 1; padding-top: 1.05rem; }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; margin: 0; padding: 0; font-size: .8rem; font-family: var(--mono); letter-spacing: .04em; }
.crumbs__list li { margin: 0; display: flex; align-items: center; }
.crumbs__list li + li::before { content: "/"; color: var(--on-steel-dim); margin-right: .45rem; }
.crumbs__list a { color: var(--on-steel); }
.crumbs__list a:hover { color: #fff; }
.crumbs__here { color: #fff; }

/* ---------- generic ruled table (specification / fact rows) ---------- */

.tableau { margin-top: 1.85rem; border-top: 2px solid var(--steel); border-bottom: 1px solid var(--rule); }
.tableau__caption {
  display: block; font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding: .7rem 0; border-bottom: 1px solid var(--rule);
}
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: .82rem .9rem .82rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.tableau th { width: 30%; color: var(--ink); font-weight: 700; }
.tableau td { color: var(--body); font-size: .95rem; }
.tableau tr:last-child th, .tableau tr:last-child td { border-bottom: 0; }
.sec--band .tableau { background: #fff; border-top-color: var(--accent); }

/* ---------- family jump strip ---------- */

.jumpstrip { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.jumpstrip li { margin: 0; }
.jumpstrip a {
  display: inline-block; padding: .45rem .8rem; font-size: .8rem; font-weight: 700;
  font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
}
.jumpstrip a:hover { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-soft); text-decoration: none; }

/* ---------- overview matrix: a card carries a name, a line and a link ---------- */

.pcard__body { display: block; padding: .95rem 1rem 1.05rem; }
.pcard__line { display: block; color: var(--body); font-size: .9rem; line-height: 1.6; margin: 0 0 .6rem; }
.pcard__more { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dk); }
.pcard:hover .pcard__more { color: var(--accent); }

/* ---------- family head extra line on the overview page ---------- */

.band__intro { padding: clamp(2.5rem, 5vw, 4rem) 0 0; background: #fff; }
.band--alt .band__intro { background: transparent; }

/* ---------- contact layout, cards and enquiry form ---------- */

.contact { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }

.ccards { display: block; }
.ccard { border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fff; padding: 1rem 1.15rem; margin-bottom: .8rem; }
.ccard__label { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.ccard__value { color: var(--ink); font-weight: 700; line-height: 1.55; }
.ccard__value a { font-weight: 700; }
.ccard__hint { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }

.form { margin-top: 1.5rem; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form__field { margin-bottom: 1rem; min-width: 0; }
.form__label { display: block; color: var(--ink); font-weight: 700; font-size: .86rem; margin-bottom: .35rem; }
.req { color: var(--accent); font-weight: 700; }
.form__input, .form__select, .form__textarea {
  display: block; width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .7rem .85rem; transition: border-color .15s ease;
}
.form__textarea { min-height: 150px; resize: vertical; }
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 67, 28, .16); }
.form__input::placeholder, .form__textarea::placeholder { color: #a7b1bd; }
.form__hint { font-size: .84rem; color: var(--muted); margin: .45rem 0 0; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.35rem; }
.form__status { margin: 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.form__status.is-ok { color: #1c7a4a; }
.form__status.is-error { color: var(--accent-dk); }

/* honeypot — kept out of the layout, and out of the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btnrow { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }

/* ---------- in-house capability list ---------- */

.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 1.6rem; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.caps__item { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; padding: 1.25rem 1.3rem; }
.caps__no { display: block; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: .55rem; }
.caps__title { margin: 0 0 .35rem; font-size: 1.02rem; }
.caps__text { margin: 0; font-size: .92rem; color: var(--body); }

/* ---------- responsive additions ---------- */

@media (max-width: 1000px) {
  .contact, .caps { grid-template-columns: 1fr; }
  .caps { border-left: 0; }
  .caps__item { border-right: 0; }
}

@media (max-width: 640px) {
  .form__grid { grid-template-columns: 1fr; gap: 0; }
  .tableau th, .tableau td { display: block; width: auto; padding-right: 0; }
  .tableau th { padding-bottom: 0; border-bottom: 0; }
  .pagehead__title { max-width: none; }
}

/* ==========================================================================
   PRODUCT DETAIL PAGES — gallery, detail column, specification block and
   related-product strip. Same visual language as the rest of the site:
   square corners, hairline rules, mono-spaced labels, the orange-red accent.
   Appended here so no page carries a <style> block of its own.
   ========================================================================== */

/* ---------- gallery: one main frame plus up to three thumbnails ---------- */

.gallery { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.gallery__thumbs { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.gallery__thumb {
  display: block; width: 100%; padding: 0; cursor: pointer;
  background: #fff; border: 1px solid var(--rule); border-radius: 0;
  overflow: hidden; transition: border-color .15s ease, opacity .15s ease;
}
.gallery__thumb:hover { border-color: var(--accent); }
.gallery__thumb[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.gallery__thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__note { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .7rem 0 0; }

/* ---------- detail layout: gallery left, specification summary right ------ */

.detail { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(1.5rem, 3.4vw, 2.6rem); align-items: start; }
.detail__facts { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.detail__facts li { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; margin: 0; padding: .62rem 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.detail__facts b { color: var(--ink); font-weight: 700; }

/* ---------- prose column and feature list ---------- */

.prose p { margin: 0 0 1rem; max-width: 74ch; }
.feats { list-style: none; padding: 0; margin: 0; }
.feats li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; color: var(--body); }
.feats li::before {
  content: "\2713"; position: absolute; left: 0; top: .18em;
  width: 18px; height: 18px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700;
  border-radius: 1px;
}

/* ---------- two-column block used for the drawing-request panel ---------- */

.specblock { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 3.4vw, 2.6rem); align-items: start; }
.specblock__side { border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fff; padding: 1.15rem 1.3rem; }
.specblock__side h3 { margin-top: 0; }
.specblock__side p { margin: 0; font-size: .95rem; }

/* ---------- related products strip: three cells of the hairline matrix ---- */

.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }

@media (max-width: 1000px) {
  .gallery, .detail, .specblock { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: 1fr; }
}

/* ---------- product-detail copy: block headings and the drawing panel ----- */

.prod__title { margin: 0 0 1rem; }
.detail > div > .prod__title + .feats,
.detail > div > .feats { margin-bottom: 1.75rem; }
.detail .specblock__side { margin: 0 0 1.6rem; }
.detail > div > p { max-width: 72ch; }
.detail > div > .detail__facts:last-child, .detail > div > .feats:last-child { margin-bottom: 0; }

/* ==========================================================================
   CONTENT-LED PRODUCT DETAIL TEMPLATE — the Chinese SEO product-page order:
   breadcrumb bar → two-column product intro → lead paragraph → five to six
   titled H2 sections (overview, specification, features, made-to-spec,
   packing/price/delivery, FAQ) → related products → closing CTA → sticky
   bottom action bar. Same visual language as the rest of the site: square
   corners, hairline rules, mono-spaced labels, the orange-red accent.
   Appended here so no page carries a <style> block of its own.
   ========================================================================== */

/* ---------- 1. breadcrumb bar ---------- */

.pagehead--detail .crumbs { padding-top: 1.15rem; padding-bottom: 1.15rem; }
.crumbs__label {
  margin: 0 0 .45rem;
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--on-steel-dim);
}
html[lang="zh-CN"] .crumbs__label { letter-spacing: .1em; text-transform: none; }

/* ---------- 2. two-column product intro ---------- */

.intro { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(1.75rem, 3.6vw, 3rem); align-items: start; }

/* the gallery keeps its own grid, so the two-column product page stacks it */
.gallery--stack { grid-template-columns: minmax(0, 1fr); }

.intro__summary { font-size: 1.06rem; line-height: 1.7; color: var(--body); max-width: 62ch; margin: 0 0 1.35rem; }
.intro__eyebrow { margin-bottom: .75rem; }
.intro__title { margin: 0 0 .75rem; }

/* definition list: hairline rows, mono label left / value right */
.deflist {
  margin: 0 0 1.35rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .25rem 0;
}
.deflist__row { display: grid; grid-template-columns: minmax(9.5rem, .55fr) minmax(0, 1fr); gap: .5rem 1.15rem; padding: .62rem 0; border-bottom: 1px solid var(--rule); }
.deflist__row:last-child { border-bottom: 0; }
.deflist dt {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-top: .18rem;
}
.deflist dd { margin: 0; color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.6; }
html[lang="zh-CN"] .deflist dt { letter-spacing: .06em; text-transform: none; }

/* highlighted "how to select" note — factual and generic */
.selnote { border: 1px solid var(--rule); border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.15rem; margin-bottom: 1.5rem; }
.selnote__label { margin: 0 0 .4rem; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dk); }
.selnote p:last-child { margin: 0; font-size: .95rem; color: var(--body); }
html[lang="zh-CN"] .selnote__label { letter-spacing: .08em; text-transform: none; }

.btnrow--intro { margin-top: 0; }

/* ---------- 3. lead paragraph and section headings ---------- */

.leadbox { border-left: 4px solid var(--accent); background: #fff; padding: clamp(1.15rem, 2.4vw, 1.7rem) clamp(1.15rem, 2.4vw, 1.9rem); }
.leadbox .lead { max-width: 82ch; }
.leadbox__note { margin: 1rem 0 0; padding-top: .85rem; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); max-width: 82ch; }
html[lang="zh-CN"] .leadbox__note { letter-spacing: .02em; }

.sec__head { margin-bottom: 1.7rem; }
.sec__head h2 { margin-bottom: 0; max-width: 42ch; }
.sec__head .lead { margin-top: 1rem; max-width: 78ch; }

.picnote { margin: 1.2rem 0 0; font-size: .92rem; color: var(--muted); max-width: 74ch; }

/* ---------- 4. specification table: wider label and a scroll guard ---------- */

.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-scroll .tableau { margin-top: 1.9rem; }
.spec-scroll__hint { margin: .9rem 0 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); max-width: 74ch; }
html[lang="zh-CN"] .spec-scroll__hint { letter-spacing: .02em; }

/* the specification tables of the new template get a wider label column */
.spec-scroll .tableau th { width: 34%; }

/* ---------- 5. FAQ block — three to five question and answer pairs ---------- */

.faqbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.faq { background: #fff; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.3rem 1.4rem; }
.faq__q { font-size: 1.04rem; margin: 0 0 .55rem; padding-left: 1.5rem; position: relative; }
.faq__q::before { content: "Q"; position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: .84rem; font-weight: 700; color: var(--accent); }
.faq__a { margin: 0; font-size: .95rem; color: var(--body); }

/* ---------- 6. closing CTA panel ---------- */

.cta--detail .cta__title { max-width: 30ch; }

/* ---------- 7. sticky bottom action bar for narrow screens ---------- */

.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  background: #fff;
  border-top: 1px solid var(--rule);
  box-shadow: 0 -6px 20px rgba(14, 20, 27, .1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.stickybar__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.stickybar__list li { margin: 0; border-left: 1px solid var(--rule); }
.stickybar__list li:first-child { border-left: 0; }
.stickybar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .12rem;
  min-height: 54px; padding: .4rem .25rem;
  font-size: .74rem; font-weight: 700; line-height: 1.25; text-align: center;
  color: var(--ink); background: #fff;
}
.stickybar__item:hover { background: var(--band); color: var(--accent-dk); text-decoration: none; }
.stickybar__mark { font-size: 1rem; line-height: 1; color: var(--accent-dk); }
.stickybar__item--accent { background: var(--accent); color: #fff; }
.stickybar__item--accent .stickybar__mark { color: #fff; }
.stickybar__item--accent:hover { background: var(--accent-dk); color: #fff; }

/* ---------- responsive: the new template blocks ---------- */

@media (max-width: 1000px) {
  .intro { grid-template-columns: 1fr; }
  .faqbox { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .stickybar { display: block; }
}

@media (max-width: 640px) {
  .deflist__row { grid-template-columns: 1fr; gap: .1rem; }
  .deflist dt { padding-top: 0; }
  .spec-scroll .tableau { min-width: 34rem; }
  .sec__head h2 { max-width: none; }
}

@media print {
  .stickybar { display: none !important; }
}

/* ==========================================================================
   LAYOUT FIX BLOCK — redesigned product-detail template (.intro /
   .gallery--stack). Appended deliberately as a separate, auditable block: no
   rule above is edited or deleted, this block only overrides. Scope is limited
   to the two template classes, so the 21 older product pages, whose gallery is
   a two-column grid beside the copy, are untouched.

   Defects corrected here:
   1. `.intro` — `grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr)`
      with no `min-width: 0` on its items. A grid item's automatic minimum size
      is its min-content size, and the replaced gallery image carried an
      intrinsic 1200 px width, so the first track grew past the container, the
      whole grid became wider than `.wrap`, and the second column (eyebrow, H1,
      summary, `.deflist`, `.selnote`) plus the masthead nav were pushed past
      the viewport edge and clipped.
   2. `.gallery__thumbs { grid-template-columns: 1fr }` — bare `1fr` tracks and
      a non-scrolling thumbnail column; the thumbnail strip is now a horizontal
      rail that scrolls internally instead of widening the page.
   3. `.frame img { width: 100%; aspect-ratio: 4 / 3 }` with no height on the
      frame: the frame had no height of its own, so the main image was free to
      grow to the full width of its column. The frame now owns a 4 / 3 box with
      `overflow: hidden`, and the image fills it with `object-fit: cover`.
      The ratio sits on the frame (not a percentage height) because a
      percentage height collapses inside the flex parents of the masthead.
   4. `.deflist__row` `dt`/`dd` values (and the mono `.hotline__num`) had no
      wrap rule for long unbroken strings.
   5. No `overflow-wrap` anywhere: long Latin product names, URLs and e-mail
      addresses could not break inside their track.
   ========================================================================== */

/* ---------- 1. no horizontal overflow in the template ---------- */

.intro,
.gallery,
.gallery--stack { min-width: 0; }

.intro__media,
.intro__detail,
.gallery > * { min-width: 0; }

/* the copy column sits at roughly 38–45% of the container at desktop width */
.intro { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); }

/* long words, URLs, e-mail addresses and model codes wrap instead of widening
   the page. `anywhere` (not `break-word`) is used because overflow-wrap only
   gets its own line-break opportunity from `anywhere`. */
.intro__detail,
.intro__summary,
.deflist,
.selnote,
.deflist dd,
.intro__title,
.spec-scroll .tableau td,
.spec-scroll .tableau th,
.cta__links a,
.hotline__num { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .intro__title,
  .intro__summary,
  .selnote,
  .deflist dd { overflow-wrap: break-word; }
}

/* tables scroll internally and never widen the page (clip also disables the
   implicit scroll container that `overflow-x: auto` alone creates) */
.spec-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }

/* ---------- 2. fixed 4 / 3 main frame with a cap ---------- */

.gallery--stack .frame {
  width: 100%;
  aspect-ratio: 4 / 3;      /* the ratio lives on the frame: a percentage
                               height would collapse inside a flex parent */
  height: auto;             /* the ratio sets the used height */
  max-height: 420px;        /* the gallery never dominates the page */
  min-height: 200px;        /* still a frame if the photograph fails to load */
  overflow: hidden;         /* the cropped image cannot spill out */
}

.gallery--stack .frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 3. main image on top, thumbnail rail beneath it ---------- */

.gallery--stack { row-gap: 1.1rem; align-items: stretch; }

.gallery__nav { display: flex; align-items: center; gap: .55rem; min-width: 0; }

.gallery--stack .gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  grid-template-columns: none;
  gap: .7rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: .2rem;    /* room for the scrollbar without clipping the ring */
}

.gallery--stack .gallery__thumb { width: 100%; scroll-snap-align: start; }

/* tap targets stay at a usable size on a narrow screen instead of scrolling */
@media (max-width: 480px) {
  .gallery--stack .gallery__thumbs { grid-auto-columns: 78px; }
}

/* small prev/next controls for the strip, driven by the appended plain-JS
   block in assets/js/main.js; hidden unless the strip actually overflows */
.gallery__arrow {
  flex: 0 0 auto; width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--ink); font: inherit; font-size: 1em; line-height: 1;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.gallery__arrow:hover { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-soft); }
.gallery__arrow[hidden] { display: none; }
.gallery__arrow:disabled { opacity: .45; cursor: default; }

/* ---------- 4. definition rows that wrap, and a container-scaled type scale - */

.deflist__row { grid-template-columns: minmax(7rem, .48fr) minmax(0, 1fr); }
.deflist dt, .deflist dd { min-width: 0; }
.deflist dd { overflow-wrap: anywhere; }

/* the display sizes scale with the container, not with the raw viewport, so a
   long product name in either language cannot overflow its column */
.intro__title { font-size: clamp(1.4rem, 2.5vw + .55rem, 2.3rem); }
.intro__summary { font-size: clamp(1rem, .3vw + .9rem, 1.06rem); }
.selnote p:last-child { overflow-wrap: anywhere; }

/* ---------- 5. narrow screens: copy stacks below the image at ≤ 900 px ----- */

@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .gallery--stack .frame { max-height: 360px; }
  .gallery__nav { gap: .45rem; }
  .gallery--stack .gallery__thumbs { grid-auto-columns: 84px; }
}

@media (max-width: 640px) {
  .intro__title { font-size: clamp(1.32rem, 4.4vw + .5rem, 1.85rem); }
  .intro__summary { font-size: 1rem; }
  .gallery__arrow { width: 30px; height: 30px; }
}

/* ---------- 6. long-string overflow guard on shared components ------------ */

.hotbar__list li,
.brand__text,
.pcard__name,
.foot__bottom,
.foot__list li,
.cta__card,
.crumbs__list { min-width: 0; }

/* the Chinese type rules earlier in the file must keep deciding the line
   height of the two template paragraphs this block re-sizes */
html[lang="zh-CN"] .intro__summary { line-height: 1.7; }
html[lang="zh-CN"] .intro__title { line-height: 1.42; }

@media (max-width: 390px) {
  .wrap { padding: 0 16px; }
  .stickybar__item { font-size: .7rem; }
}

@media print {
  .gallery__arrow { display: none !important; }
}

/* ==========================================================================
   HERO #about STRIP — the standalone About section has been removed from both
   home pages; the two facts it carried that were not already stated above
   (the integrated municipal-safety service scope, and a mixed hoarding +
   guardrail + mesh order handled as one programme) now sit in a single strip
   directly beneath the hero's fact line. The strip reuses .hero__text as it
   is, and carries id="about" so the header nav and the inner pages that link
   to index.html#about still land on home-page content.
   Only the spacing is set here: a successor of .hero__facts gets no top
   margin of its own, so without this rule the sentence would sit flush
   against the rule above the fact line.
   ========================================================================== */

.hero__text#about { margin: 1.5rem 0 0; }

@media (max-width: 640px) {
  .hero__text#about { margin-top: 1.35rem; }
}

/* ==========================================================================
   SITE-WIDE FLOATING CONTACT DOCK — injected by assets/js/main.js on every
   page except the 404 pages. It reproduces the behaviour of the first site's
   dock (dismissible panel, dismissal remembered in localStorage, a compact
   launcher once dismissed, a quick enquiry form that submits through the
   existing inquiry handler) but it is restyled into THIS site's language:
   square corners, the orange-red accent, hairline rules, mono-spaced labels
   and numerals, and no rounded pills.

   Appended as its own block at the end of the file: no rule above is edited
   or deleted, every class here is namespaced `contact-dock`, and every
   colour comes from the :root custom properties.
   ========================================================================== */

.contact-dock[hidden],
.contact-dock__launcher[hidden] { display: none; }

/* ---------- the panel — fixed bottom-right ------------------------------- */

.contact-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 85;               /* clear of .stickybar (60) and .totop (80) */
}

.contact-dock__panel {
  position: relative;
  width: 336px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);   /* the site's accent rule */
  border-radius: 0;                      /* square, like every other card */
  box-shadow: var(--shadow);
  padding: .95rem 1rem 1.05rem;
  animation: contact-dock-in .16s ease-out;
}

@keyframes contact-dock-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- head — mono kicker, title, one-line note --------------------- */

.contact-dock__head {
  padding-right: 2rem; padding-bottom: .7rem; margin-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
}
.contact-dock__kicker {
  margin: 0 0 .3rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.contact-dock__title { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.contact-dock__note { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--muted); }

/* the static mono index carried by the three blocks */
.contact-dock__no {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; color: var(--accent);
}

/* ---------- close ------------------------------------------------------- */

.contact-dock__close {
  position: absolute; top: .45rem; right: .45rem;
  width: 30px; height: 30px; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 0;
  color: var(--muted);
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.contact-dock__close:hover { color: var(--ink); background: var(--band); border-color: var(--rule); }
.contact-dock__close svg { width: 15px; height: 15px; }

/* ---------- 01 · e-mail — the primary action ---------------------------- */

.contact-dock__mail {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem .75rem;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent-dk); border-radius: 0;
  text-decoration: none;
  transition: background-color .15s ease;
}
.contact-dock__mail:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }
.contact-dock__mail svg { width: 18px; height: 18px; flex: 0 0 auto; }
.contact-dock__mail .contact-dock__no { color: rgba(255, 255, 255, .8); }
.contact-dock__mail-text { display: block; min-width: 0; }
.contact-dock__mail-label { display: block; font-size: .92rem; font-weight: 700; line-height: 1.3; }
.contact-dock__mail-addr {
  display: block; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .02em; opacity: .92; overflow-wrap: anywhere;
}

/* ---------- 02 · quick enquiry form — the contact page's contract -------- */

.contact-dock__block { margin-top: .85rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
.contact-dock__subtitle {
  display: flex; align-items: baseline; gap: .4rem;
  margin: 0 0 .25rem; font-size: .88rem; line-height: 1.35; color: var(--ink);
}
.contact-dock__lead { margin: 0 0 .65rem; font-size: .78rem; line-height: 1.5; color: var(--muted); }

.contact-dock__form { margin-top: 0; }                  /* the site .form carries 1.5rem */
.contact-dock__form .form__field { margin-bottom: .55rem; }
.contact-dock__form .form__label { font-size: .8rem; margin-bottom: .25rem; }
.contact-dock__form .form__input,
.contact-dock__form .form__textarea { padding: .5rem .55rem; font-size: .86rem; border-radius: 0; }
.contact-dock__form .form__textarea { min-height: 66px; }
.contact-dock__form .form__input:focus-visible,
.contact-dock__form .form__textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-dock__form .form__actions { gap: .5rem .7rem; margin-top: .5rem; }
.contact-dock__form .btn { padding: .58rem 1rem; font-size: .82rem; border-radius: 0; border-width: 1px; }
.contact-dock__form .form__status { flex: 1 1 100%; font-size: .78rem; line-height: 1.5; }

/* ---------- 03 · phone and WhatsApp — secondary ------------------------- */

.contact-dock__label {
  display: flex; align-items: baseline; gap: .4rem;
  margin: 0 0 .45rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.contact-dock__links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.contact-dock__links a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .84rem; font-weight: 700; letter-spacing: .02em;
  color: var(--accent-dk);
}
.contact-dock__links a:hover { color: var(--accent); }
.contact-dock__links .contact-dock__tel { color: var(--ink); }        /* the number reads as data */
.contact-dock__links .contact-dock__wa { color: var(--accent-dk); }   /* the second channel as accent */
.contact-dock__links svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* the phone block closes the panel, so it carries no trailing margin */
.contact-dock__phone { margin-bottom: 0; }

/* ---------- the compact round launcher ---------------------------------- */

.contact-dock__launcher {
  position: fixed; right: 18px; z-index: 85;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center;
  font: inherit; cursor: pointer;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent-dk); border-radius: 50%;
  box-shadow: var(--shadow);
  transition: background-color .15s ease, transform .15s ease;
}
.contact-dock__launcher:hover {
  background: var(--accent-dk); color: #fff;
  transform: translateY(-2px);
}
.contact-dock__launcher svg { width: 21px; height: 21px; }

/* visible focus on every control the dock adds */
.contact-dock__launcher:focus-visible,
.contact-dock__close:focus-visible,
.contact-dock__mail:focus-visible,
.contact-dock__links a:focus-visible,
.contact-dock__form .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-dock__mail:focus-visible,
.contact-dock__form .btn:focus-visible { outline-color: var(--steel); }

/* ---------- ≤ 900 px: the launcher leads, kept clear of the stickybar ---- */

/* Narrow screens open on the compact launcher only — the panel is never shown
   until the visitor taps it, and it is never a full-width bottom sheet, just
   the same compact card. Both elements sit above the detail pages' stickybar. */
@media (max-width: 900px) {
  .contact-dock { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .contact-dock__panel {
    width: 336px; max-width: calc(100vw - 28px);
    max-height: calc(100vh - 120px);
    padding: .9rem .9rem 1rem;
  }
  .contact-dock__launcher { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* .stickybar is 1 px rule + a 54 px item row (+ the safe-area padding it
   carries itself) and is only shown ≤ 880 px, so the launcher is lifted 69 px
   from the viewport edge there — bar height plus a 14 px gap, safe area
   included — and the two can never overlap. The panel is lifted with it and
   loses the matching height at the same time. */
@media (max-width: 880px) {
  .contact-dock--sticky,
  .contact-dock__launcher--sticky { bottom: calc(69px + env(safe-area-inset-bottom, 0px)); }
  .contact-dock--sticky .contact-dock__panel { max-height: calc(100vh - 100px); }
}

/* ---------- Chinese pages keep their type rules ------------------------- */

html[lang="zh-CN"] .contact-dock__kicker,
html[lang="zh-CN"] .contact-dock__label { letter-spacing: .06em; text-transform: none; }
html[lang="zh-CN"] .contact-dock { line-height: 1.7; }
html[lang="zh-CN"] .contact-dock__note,
html[lang="zh-CN"] .contact-dock__lead,
html[lang="zh-CN"] .contact-dock__mail-label,
html[lang="zh-CN"] .contact-dock__subtitle { line-height: 1.65; }

/* ---------- motion preferences and print -------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .contact-dock__panel { animation: none; }
  .contact-dock__launcher,
  .contact-dock__close,
  .contact-dock__mail { transition: none; }
  .contact-dock__launcher:hover { transform: none; }
}

@media print {
  .contact-dock,
  .contact-dock__launcher { display: none !important; }
}
