/* ============================================================
   森雅通用设备 · 官网样式
   设计语言：钢蓝工业 + 安全橙；签名元素为吊装带载荷色标谱系条
   ============================================================ */

:root {
  --ink: #141f2b;          /* 深钢蓝黑：标题/深底 */
  --steel: #24425e;        /* 钢结构蓝 */
  --steel-2: #35597a;
  --paper: #f4f6f8;        /* 页面浅底 */
  --card: #ffffff;
  --line: #d9dfe5;
  --mut: #5b6b7a;          /* 次级文字 */
  --safety: #e8590c;       /* 安全橙：CTA/强调 */
  --safety-d: #c74e0b;

  /* 吊装带载荷色标（EN 1492 系列惯用色） */
  --wll-yellow: #e3a600;
  --wll-violet: #6d28d9;
  --wll-orange: #ea580c;
  --wll-green:  #15803d;
  --wll-blue:   #2563eb;
  --wll-red:    #c02626;

  --cat-sling:  var(--wll-yellow);
  --cat-wire:   var(--wll-violet);
  --cat-chain:  var(--wll-orange);
  --cat-rope:   var(--wll-green);
  --cat-lifter: var(--wll-blue);
  --cat-clamp:  var(--wll-red);

  --font-body: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;

  --wrap: 1180px;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(20, 31, 43, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 色标谱系条（签名元素） ---------- */
.wll-bar {
  height: 5px;
  background: linear-gradient(90deg,
    var(--wll-violet) 0 16.6%, var(--wll-green) 16.6% 33.3%,
    var(--wll-yellow) 33.3% 50%, #9aa5ae 50% 66.6%,
    var(--wll-red) 66.6% 83.3%, var(--wll-orange) 83.3% 100%);
}

/* ---------- 顶部工具条 ---------- */
.topbar { background: var(--ink); color: #b9c4cf; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar span, .topbar a { white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar .mono { font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- 页头 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { line-height: 1.2; }
.brand-name b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .06em; }
.brand-name i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--mut); letter-spacing: .14em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--ink);
  border-radius: 4px; position: relative;
}
.nav a:hover { color: var(--safety); }
.nav a.on { color: var(--safety); }
.nav a.on::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 3px;
  background: var(--safety); border-radius: 2px;
}
.nav .nav-cta {
  margin-left: 10px; background: var(--safety); color: #fff !important; padding: 9px 20px;
  border-radius: 4px; font-weight: 700;
}
.nav .nav-cta:hover { background: var(--safety-d); }
.nav .nav-cta.on::after { display: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; cursor: pointer; }
.nav-toggle svg { display: block; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(53, 89, 122, .55), transparent 65%),
    linear-gradient(160deg, #1a2734 0%, var(--ink) 58%, #101a24 100%);
}
.hero::before {  /* 蓝图网格 */
  content: ""; position: absolute; inset: 0;
  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: 44px 44px;
  mask-image: linear-gradient(105deg, rgba(0,0,0,.9), transparent 72%);
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center; padding-top: 76px; padding-bottom: 84px;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  color: #8fa5b8; margin-bottom: 18px;
}
.hero-eyebrow em { font-style: normal; color: var(--safety); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; line-height: 1.22;
  letter-spacing: .02em; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #ffb27d; }
.hero p.lead { max-width: 33em; color: #c3ced8; font-size: 16.5px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 4px;
  font-size: 15.5px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer;
}
.btn-safety { background: var(--safety); color: #fff; }
.btn-safety:hover { background: var(--safety-d); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--safety); color: var(--safety); }
.btn-line:hover { background: var(--safety); color: #fff; }

.hero-plate { position: relative; }
.hero-plate .wll-bar { border-radius: 3px 3px 0 0; }
.hero-plate figure {
  background: #fff; border-radius: 0 0 6px 6px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.hero-plate img { width: 100%; aspect-ratio: 10 / 9; object-fit: cover; }
.hero-plate figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.hero-plate figcaption .mono { font-family: var(--font-mono); font-size: 11px; color: var(--mut); letter-spacing: .08em; }

/* ---------- 铭牌数据条 ---------- */
.plate-strip { background: #fff; border-bottom: 1px solid var(--line); }
.plate-strip .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.plate-cell {
  padding: 22px 12px 20px; text-align: center; position: relative;
}
.plate-cell + .plate-cell::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line);
}
.plate-cell b { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--steel); letter-spacing: .02em; }
.plate-cell span { font-size: 13px; color: var(--mut); letter-spacing: .12em; }

/* ---------- 通用段落 ---------- */
.section { padding: 72px 0; }
.section-tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { margin-bottom: 38px; }
.sec-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .24em;
  color: var(--safety); text-transform: uppercase; margin-bottom: 8px;
}
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: .03em; }
.sec-head .sub { color: var(--mut); margin-top: 8px; max-width: 40em; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-more { font-size: 14.5px; font-weight: 700; color: var(--steel); white-space: nowrap; }
.sec-more:hover { color: var(--safety); }

/* ---------- 分类铭牌 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; transition: transform .22s ease, box-shadow .22s ease;
}
.cat-card::before { content: ""; display: block; height: 4px; background: var(--cat, var(--steel)); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-body { padding: 20px 22px 22px; }
.cat-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--mut); }
.cat-body h3 { font-size: 19px; font-weight: 800; margin: 6px 0 4px; }
.cat-body p { font-size: 13.5px; color: var(--mut); min-height: 3.2em; }
.cat-count {
  margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  display: flex; justify-content: space-between; align-items: center;
}
.cat-count b { color: var(--cat, var(--steel)); }

/* ---------- 产品卡 ---------- */
.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pro-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.pro-card::before { content: ""; display: block; height: 3px; background: var(--cat, var(--steel)); }
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pro-thumb { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.pro-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pro-info { padding: 14px 16px 16px; }
.pro-info h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.pro-info .tag {
  display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--mut);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 8px; letter-spacing: .05em;
}

/* ---------- 产品页筛选 ---------- */
.filter-bar {
  position: sticky; top: 66px; z-index: 30; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.filter-bar .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; }
.chip {
  flex: none; padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--steel); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 关于/介绍 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.about-copy p { margin-bottom: 14px; color: #38485a; }
.about-copy p b { color: var(--ink); }
.reg-plate {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.reg-plate .reg-head {
  background: var(--ink); color: #fff; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.reg-plate .reg-head b { font-size: 15px; letter-spacing: .1em; }
.reg-plate .reg-head span { font-family: var(--font-mono); font-size: 10.5px; color: #8fa5b8; letter-spacing: .14em; }
.reg-plate dl { padding: 8px 20px 14px; }
.reg-plate .reg-row {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.reg-plate .reg-row:last-child { border-bottom: 0; }
.reg-plate dt { color: var(--mut); }
.reg-plate dd { font-weight: 600; word-break: break-all; }
.reg-plate dd.mono { font-family: var(--font-mono); letter-spacing: .03em; }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
}
.adv-card .ico { width: 44px; height: 44px; border-radius: 6px; background: #fdeee3; display: grid; place-items: center; margin-bottom: 14px; color: var(--safety); }
.adv-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.adv-card p { font-size: 13.5px; color: var(--mut); }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(150deg, var(--steel) 0%, var(--ink) 70%); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 46px; padding-bottom: 46px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 900; letter-spacing: .03em; }
.cta-band p { color: #b9c8d4; margin-top: 6px; font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.site-foot { background: var(--ink); color: #93a3b1; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding: 52px 0 40px; }
.foot-grid h4 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .08em; margin-bottom: 14px; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a:hover { color: #fff; }
.foot-brand .brand-name b { color: #fff; font-size: 17px; }
.foot-brand .brand-name i { color: #6c7f90; }
.foot-brand p { margin-top: 12px; font-size: 13.5px; line-height: 1.8; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #6c7f90; }
.foot-bottom .mono { font-family: var(--font-mono); letter-spacing: .1em; }

/* ---------- 内页 banner ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #1a2734 0%, var(--ink) 70%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-hero .wrap { position: relative; padding-top: 52px; padding-bottom: 46px; }
.crumb { font-family: var(--font-mono); font-size: 12px; color: #8fa5b8; letter-spacing: .1em; margin-bottom: 10px; }
.crumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: .04em; }
.page-hero p { color: #b9c8d4; margin-top: 10px; max-width: 44em; font-size: 15px; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(13, 20, 28, .78); padding: 24px;
}
.lightbox.open { display: grid; place-items: center; }
.lb-panel {
  background: #fff; border-radius: 8px; max-width: 680px; width: 100%;
  max-height: 92vh; overflow: auto; position: relative;
}
.lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20,31,43,.75); color: #fff; font-size: 18px; line-height: 1;
}
.lb-close:hover { background: var(--safety); }
.lb-img { background: #fff; border-bottom: 1px solid var(--line); }
.lb-img img { width: 100%; max-height: 56vh; object-fit: contain; }
.lb-body { padding: 20px 24px 24px; }
.lb-body .tag {
  display: inline-block; font-size: 11.5px; color: var(--mut); border: 1px solid var(--line);
  border-radius: 3px; padding: 1px 8px; letter-spacing: .05em; margin-bottom: 8px;
}
.lb-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.lb-body p { font-size: 14.5px; color: #38485a; margin-bottom: 16px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
}
.contact-card .ico { width: 42px; height: 42px; border-radius: 6px; background: #eef3f7; color: var(--steel); display: grid; place-items: center; margin-bottom: 12px; }
.contact-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: #38485a; word-break: break-all; }
.contact-card p .pend { color: var(--safety); font-weight: 700; }
.contact-note {
  margin-top: 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--safety);
  border-radius: var(--radius); padding: 20px 24px; font-size: 14.5px; color: #38485a;
}
.contact-note b { color: var(--ink); }

/* ---------- 404 ---------- */
.nf-wrap { text-align: center; padding: 110px 24px; }
.nf-wrap .mono { font-family: var(--font-mono); color: var(--safety); letter-spacing: .3em; font-size: 13px; }
.nf-wrap h1 { font-size: 64px; font-weight: 900; margin: 10px 0 6px; }
.nf-wrap p { color: var(--mut); margin-bottom: 26px; }

/* ---------- 滚动显现（仅在 JS 可用时启用） ---------- */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .rv.in { opacity: 1; transform: none; }

/* ---------- 焦点可见性 ---------- */
a:focus-visible, button:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--safety); outline-offset: 2px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 60px; gap: 36px; }
  .hero-plate { max-width: 460px; }
  .pro-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .plate-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .plate-cell:nth-child(3)::before { display: none; }
}

@media (max-width: 700px) {
  .topbar .tb-r { display: none; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 2px;
    display: none; box-shadow: 0 18px 30px rgba(20,31,43,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px dashed var(--line); }
  .nav a.on::after { display: none; }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .nav-toggle { display: block; }
  .pro-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pro-info { padding: 10px 12px 12px; }
  .pro-info h3 { font-size: 13.5px; }
  .section { padding: 54px 0; }
  .filter-bar { top: 66px; }
  .plate-cell b { font-size: 21px; }
}

@media (max-width: 460px) {
  .cat-grid { grid-template-columns: 1fr; }
  .adv-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .pro-card, .cat-card { transition: none; }
}
