/* ==========================================================================
   宏赢护栏外贸站 — 全站样式（Hubei Hongying Guardrail Co., Ltd.）
   无外部依赖（无 CDN、无外链字体）。file:// 直接打开与 IIS / NGINX 部署均可。
   下面的类名就是全站共享契约：新增页面只允许复用这些类。
   文件底部另有三套风格预设与中文版排版规则。
   ========================================================================== */

:root {
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --brand-soft: #e7f4f2;
  --accent: #c2761a;
  --accent-soft: #fdf4e6;

  --ink: #0f172a;
  --body: #475569;
  --muted: #6b7688;
  --line: #e3e8ef;
  --surface: #f8fafc;
  --white: #fff;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .07);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .09);

  --container: 1180px;
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible { outline: 3px solid rgba(15, 118, 110, .45); outline-offset: 2px; border-radius: 4px; }

.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: 12px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

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

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

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--ink); color: #cbd5e1; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .6rem;
}
.section--dark .eyebrow { color: #7dd3c8; }

.section-title { margin-bottom: .6rem; }
.section-sub { font-size: 1.02rem; color: var(--muted); margin: 0; }
.section--dark .section-sub { color: #94a3b8; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #a8630f; color: #fff; }

.btn--ghost { background: transparent; color: var(--brand-dark); border-color: #cbd5e1; }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-soft); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f5f9; color: var(--ink); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn--block { width: 100%; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- topbar + header ---------- */

.topbar { background: var(--ink); color: #cbd5e1; font-size: .86rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar a { color: #e2e8f0; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.topbar__list li { margin: 0; }

.lang { display: flex; align-items: center; gap: .45rem; }
.lang a { opacity: .7; }
.lang a.is-active, .lang span.is-active { color: #fff; opacity: 1; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(15, 23, 42, .07); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 40px; height: 40px; flex: 0 0 auto; }
.brand__name { display: block; font-weight: 800; color: var(--ink); letter-spacing: .02em; line-height: 1.1; }
.brand__tag { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link { color: var(--ink); font-weight: 600; font-size: .96rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--brand-dark); text-decoration: none; }
.nav__link.is-active { color: var(--brand-dark); border-bottom-color: var(--brand); }

.header__cta { flex: 0 0 auto; }

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

/* ---------- hero ---------- */

.hero {
  position: relative; color: #e2e8f0;
  background: linear-gradient(155deg, #0b3b38 0%, #0f766e 55%, #14857c 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 340px at 88% 12%, rgba(255, 255, 255, .16), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero__title { color: #fff; margin-bottom: 1rem; }
.hero__text { font-size: 1.06rem; color: #d5ece9; max-width: 34rem; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__media { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(4, 30, 28, .35); background: rgba(255, 255, 255, .08); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero__badges div { font-size: .88rem; color: #cfe9e5; }
.hero__badges strong { display: block; font-size: 1.5rem; color: #fff; line-height: 1.2; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, .14);
  color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}

.breadcrumbs { font-size: .86rem; color: var(--muted); padding: 1.1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: #cbd5e1; }

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-head__inner { padding-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 760px; }
.page-head h1 { margin-bottom: .6rem; }
.page-head p { color: var(--muted); margin: 0; }

/* ---------- cards ---------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* 产品卡主图统一为 4:3 — 容器定死比例并裁切，源图是横幅还是竖幅都显示成同一种形状。
   图片自身也写死 aspect-ratio：即使 height:100% 因父级高度未定而退化成 height:auto，
   各张源图自己的原始长宽比也不会再决定卡片高度（这正是护栏/围挡两栏卡片高低不齐的原因）。
   Product cards: one fixed 4:3 media box so no source photo can change the card height. */
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.card__media img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 兜底：图片若没被 .card__media 包住，卡片内的产品图仍按同一 4:3 裁切，
   避免竖版实拍图把卡片撑高、导致同一行卡片高度不齐。
   Fallback for a stray unwrapped image. */
.card > img, .card__body > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__title { font-size: 1.08rem; margin-bottom: .4rem; }
.card__title a { color: var(--ink); }
.card__text { font-size: .94rem; color: var(--muted); margin-bottom: 1rem; }
.card__link { margin-top: auto; font-weight: 600; font-size: .92rem; }
.card__link::after { content: " →"; }

/* ---------- feature / icon lists ---------- */

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__title { font-size: 1.05rem; margin-bottom: .3rem; }
.feature__text { font-size: .94rem; color: var(--muted); margin: 0; }

.list-checks { list-style: none; padding: 0; margin: 0; }
.list-checks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.list-checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem;
  border-radius: 50%; background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px var(--brand);
}

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 1.4rem 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat__value { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.section--dark .stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.section--dark .stat__value { color: #fff; }
.section--dark .stat__label { color: #94a3b8; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 3rem; }
.step__num {
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700;
}
.step__title { font-size: 1.02rem; margin-bottom: .35rem; }
.step__text { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- quotes ---------- */

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.quote__text { font-size: 1rem; color: var(--ink); margin-bottom: 1rem; }
.quote__author { font-size: .9rem; color: var(--muted); }

/* ---------- logo strip ---------- */

.logos { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.logo-item { color: #94a3b8; font-weight: 700; letter-spacing: .04em; font-size: .95rem; }

/* ---------- cta band ---------- */

.cta-band { background: linear-gradient(120deg, #0b3b38, #0f766e); color: #e6f4f2; border-radius: var(--radius); padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.cta-band__title { color: #fff; margin-bottom: .5rem; }
.cta-band__text { color: #cfe9e5; margin: 0 0 1.3rem; max-width: 46rem; }
.cta-band .btn-row { margin: 0; }

/* ---------- product detail ---------- */

.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.product__media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.product__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.product__gallery img { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.product__title { margin-bottom: .5rem; }
.product__meta { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.product__meta span { display: inline-block; margin-right: 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.tag { font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-dark); }

.specs { width: 100%; border-collapse: collapse; font-size: .94rem; }
.specs caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: .6rem; }
.specs th, .specs td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--ink); font-weight: 600; background: var(--surface); }

/* ---------- prose (articles) ---------- */

.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote {
  margin: 1.6rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--brand);
  background: var(--brand-soft); color: var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }

.article__head { max-width: 780px; }
.article__meta { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.article__lead { font-size: 1.08rem; color: var(--ink); }

/* ---------- news list ---------- */

.news-list { display: grid; gap: 18px; }
.news-item {
  display: grid; grid-template-columns: 132px 1fr; gap: 1.25rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem;
  transition: box-shadow .15s ease, transform .15s ease;
}
.news-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-item__date { font-size: .84rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.news-item__title { font-size: 1.12rem; margin-bottom: .35rem; }
.news-item__title a { color: var(--ink); }
.news-item__excerpt { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- contact ---------- */

.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.contact-card__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .35rem; }
.contact-card__value { color: var(--ink); font-weight: 600; }
.contact-card__value a { color: var(--ink); }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 260px; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--muted); font-size: .92rem; }

/* ---------- forms ---------- */

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 2rem); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__field { margin-bottom: 1.1rem; }
.form__label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form__label .req { color: #dc2626; }
.form__input, .form__textarea, .form__select {
  width: 100%; padding: .78rem .9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__input:focus, .form__textarea:focus, .form__select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); outline: none;
}
.form__hint { font-size: .84rem; color: var(--muted); margin: .4rem 0 0; }
.form__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }
.form__consent input { margin-top: .3rem; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { font-size: .92rem; margin: 0; }
.form__status.is-ok { color: #15803d; }
.form__status.is-error { color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- notice / faq ---------- */

.notice {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.15rem;
  background: var(--accent-soft); border: 1px solid #f0d9b5; border-radius: var(--radius-sm);
  color: #7c4a09; font-size: .93rem;
}

.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.faq__q { font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.faq__a { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #94a3b8; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer__title { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .9rem; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: .5rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .86rem; color: #7d8a9c;
}
.footer__note { max-width: 60ch; }

.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__tag { color: #7d8a9c; }

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

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-md); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .news-item:hover, .btn:hover { transform: none; }
}

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

@media (max-width: 1000px) {
  .grid--4, .stats, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .product, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 420px; overflow: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.25rem; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link { display: block; padding: .85rem 0; border-bottom: 0; }
  .nav__link.is-active { color: var(--brand-dark); }
  .site-header { position: sticky; }
}

@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4, .stats, .steps, .quotes { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: .5rem; }
  .topbar__inner { justify-content: center; text-align: center; }
  .hero__badges { gap: 1rem 1.5rem; }
  .product__gallery { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .site-header, .topbar, .to-top, .cta-band, .site-footer { display: none; }
  body { color: #000; }
}

/* ==========================================================================
   STYLE PRESETS — 三套预设主题
   换风格方法：把下面某一块的变量内容，复制覆盖到文件最顶部 :root 里对应
   的那几行（只改颜色/圆角即可，其余不用动）。同一时间只启用一套，所以下面
   这些块都保持注释状态。
   ==========================================================================

   --- 预设 A · 工业蓝（更冷静、更工程、适合五金/机械/配件类外贸站）---
:root {
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-soft: #e8efff;
  --accent: #0f766e;
  --accent-soft: #e6f4f1;
  --ink: #0b1220;
  --body: #475569;
  --muted: #64748b;
  --radius: 6px;
  --radius-sm: 4px;
}

   --- 预设 B · 暖木家居（更暖、更家居，适合家具/家居/工艺品）---
:root {
  --brand: #8a5a2b;
  --brand-dark: #6f4620;
  --brand-soft: #f6efe6;
  --accent: #2f6f68;
  --accent-soft: #e7f2f0;
  --ink: #241a13;
  --body: #4b4038;
  --muted: #7b6b5e;
  --radius: 18px;
}

   --- 预设 C · 活力橙（更年轻、更醒目，适合消费品/促销型站点）---
:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fff1e6;
  --accent: #0f766e;
  --accent-soft: #e7f4f2;
  --ink: #111827;
  --body: #4b5563;
  --muted: #6b7280;
  --radius: 999px;   /* 药丸形按钮与圆润卡片 */
}

   配套的深色区块与 hero 渐变也跟着主色走，如果换成蓝色调，可把 .hero 的
   background 改成：linear-gradient(155deg, #0b2a5e 0%, #1d4ed8 55%, #2563eb 100%);

   ========================================================================== */

/* ==========================================================================
   中文版排版（/zh/ 目录下的页面，<html lang="zh-CN">）
   中文与英文的视觉密度不同：行高放开、去掉负字距、标题字号略降，
   否则同样的 16px/1.65 会显得拥挤、标题会过大。
   ========================================================================== */

html[lang="zh-CN"] body { line-height: 1.85; letter-spacing: .01em; }

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4 { letter-spacing: 0; line-height: 1.4; }

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.4vw, 1.9rem); }

html[lang="zh-CN"] .hero__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
html[lang="zh-CN"] .hero__text { font-size: 1.04rem; line-height: 1.9; }
html[lang="zh-CN"] .section-sub { font-size: 1rem; line-height: 1.85; }

html[lang="zh-CN"] .eyebrow { letter-spacing: .08em; }
html[lang="zh-CN"] .brand__tag { letter-spacing: .04em; text-transform: none; }

html[lang="zh-CN"] .prose p,
html[lang="zh-CN"] .prose li { font-size: 1.02rem; line-height: 1.95; }

html[lang="zh-CN"] .specs th,
html[lang="zh-CN"] .specs td { line-height: 1.7; }

html[lang="zh-CN"] .btn { letter-spacing: .04em; padding: .82rem 1.6rem; }
html[lang="zh-CN"] .footer__title { letter-spacing: .08em; }

/* 产品详情页右栏容器。之前只在 HTML 里用到、CSS 未定义，导致它作为 grid 子项
   没有 min-width:0，长规格文本或长英文单词可能把栅格撑破。 */
.product__info { min-width: 0; }

/* ==========================================================================
   产品总览页卡片图 — 最终尺寸规则（唯一权威 / single source of truth）
   位置在文件最末，且权重 0-3-1，高于全站 `img` 重置（0-0-1）、
   `.card__media img`（0-1-1）与 `.card > img`（0-1-1），
   因此卡片图上不会再有任何一条规则与它相争。
   图片自身带 aspect-ratio: 4 / 3：即便 height:100% 因父级高度不定而退化成 auto，
   高度也仍由「宽度 × 4:3」算出，不会再回落到各张源图的原始长宽比。
   Final, highest-specificity authority for the card images on the product
   overview pages (products.html and zh/products.html).
   ========================================================================== */
.grid--3 .card .card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.grid--3 .card .card__media img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.grid--3 .card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ==========================================================================
   全站浮动联系条（contact dock）— 由 assets/js/main.js 注入
   放在文件最末，避免与上面的规则相争；只复用顶部 :root 的设计变量。
   无 JS 时不显示；关闭状态由 localStorage 记忆；类名统一以 contact-dock 开头。
   ========================================================================== */

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

/* —— 收起的圆形按钮（仅在被关闭后出现）—— */
.contact-dock__toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-md); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.contact-dock__toggle:hover { background: var(--brand-soft); color: var(--brand-dark); transform: translateY(-2px); }
.contact-dock__toggle svg { width: 22px; height: 22px; }

/* —— 面板：>900px 固定在右下角 —— */
.contact-dock { position: fixed; right: 18px; bottom: 18px; z-index: 80; }
.contact-dock__panel {
  position: relative; width: 336px; max-width: 100%;
  max-height: calc(100vh - 36px); overflow: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1.05rem 1.1rem 1.15rem;
  animation: contact-dock-in .18s ease-out;
}
@keyframes contact-dock-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.contact-dock__head { padding-right: 2.2rem; margin-bottom: .85rem; }
.contact-dock__title { font-size: 1rem; margin: 0 0 .2rem; }
.contact-dock__note { font-size: .82rem; color: var(--muted); margin: 0; }

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

/* —— 邮件（主要动作）—— */
.contact-dock__mail {
  display: flex; align-items: center; gap: .7rem; padding: .68rem .8rem;
  background: var(--brand); color: #fff; border-radius: var(--radius-sm); font-weight: 600;
  transition: background-color .15s ease;
}
.contact-dock__mail:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.contact-dock__mail svg { width: 20px; height: 20px; flex: none; }
.contact-dock__mail-text { display: block; font-size: .95rem; line-height: 1.35; }
.contact-dock__mail-addr { display: block; font-size: .78rem; font-weight: 400; opacity: .85; word-break: break-all; }

/* —— 快速询价表单（沿用 form[data-inquiry] 契约，只是更紧凑）—— */
.contact-dock__mini { margin-top: .95rem; }
.contact-dock__subtitle { font-size: .9rem; margin: 0 0 .1rem; }
.contact-dock__lead { font-size: .8rem; color: var(--muted); margin: 0 0 .6rem; }
.contact-dock__mini .form__field { margin-bottom: .6rem; }
.contact-dock__mini .form__label { font-size: .82rem; margin-bottom: .25rem; }
.contact-dock__mini .form__input,
.contact-dock__mini .form__textarea { padding: .52rem .6rem; font-size: .88rem; }
.contact-dock__mini .form__textarea { min-height: 68px; }
.contact-dock__mini .form__actions { gap: .7rem; margin-top: .1rem; }
.contact-dock__mini .btn { padding: .6rem 1.15rem; font-size: .88rem; }
.contact-dock__mini .form__status { font-size: .82rem; }

/* —— 电话 · WhatsApp（次要）—— */
.contact-dock__phone { margin-top: .95rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.contact-dock__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .45rem; }
.contact-dock__links { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: center; }
.contact-dock__links a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--brand-dark); }
.contact-dock__links svg { width: 15px; height: 15px; flex: none; }
.contact-dock__links .contact-dock__wa { color: #128c7e; }
.contact-dock__qr { margin: .6rem 0 0; }
.contact-dock__qr img { width: 92px; height: 92px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; background: #fff; }
.contact-dock__qr figcaption { font-size: .76rem; color: var(--muted); margin-top: .3rem; }

/* —— ≤900px：底部整条 —— */
@media (max-width: 900px) {
  .contact-dock { left: 0; right: 0; bottom: 0; }
  .contact-dock__panel {
    width: 100%; max-height: 78vh; border-radius: var(--radius) var(--radius) 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    padding: .95rem 1rem 1.05rem;
    padding-bottom: calc(1.05rem + env(safe-area-inset-bottom, 0px));
  }
  .contact-dock__toggle { right: 14px; bottom: 14px; }
}

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

@media print {
  .contact-dock { display: none; }
}
