/* KMBIGTREE — 工业传感器站 共享样式 */
:root {
  --navy: #0b4d27;      /* 深绿: 文字主色/深色区 */
  --navy2: #0f6133;
  --green: #009239;     /* KMBT 品牌绿 (logo 取色) */
  --orange: #009239;    /* CTA 主色 = 品牌绿 */
  --orange-d: #00682a;
  --gray-bd: #e0e8e2;
  --text: #24313f;
  --muted: #6b7a8a;
  --bg: #f4f9f5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: #fff; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.topbar { background: var(--navy); color: #cfe0f0; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
header.site { position: sticky; top: 0; z-index: 90; background: #fff; box-shadow: 0 1px 0 var(--gray-bd), 0 4px 14px rgba(14,42,71,.06); }
header.site .wrap { display: flex; align-items: center; height: 68px; gap: 36px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: .5px; color: var(--navy); }
.logo .mark { width: 34px; height: 34px; background: var(--orange); color: #fff; border-radius: 8px; display: grid; place-items: center; font-size: 17px; font-weight: 900; }
nav.main { display: flex; gap: 26px; font-weight: 600; font-size: 15px; margin-left: auto; }
nav.main a { color: var(--text); padding: 6px 2px; border-bottom: 2.5px solid transparent; }
nav.main a:hover, nav.main a.on { color: var(--orange); border-color: var(--orange); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; border: 0; transition: .15s; }
.btn-o { background: var(--orange); color: #fff; }
.btn-o:hover { background: var(--orange-d); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy2); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(115deg, #06301b 0%, #0a5c2e 55%, #0e7a3c 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 74px; padding-bottom: 74px; }
.hero .kicker { color: #9fe8b8; font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 14px 0 18px; font-weight: 800; }
.hero h1 em { color: #7ee2a3; font-style: normal; }
.hero p.lead { color: #c9d9ea; font-size: 17px; max-width: 520px; }
.hero .cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .pic { position: relative; }
.hero .pic img { border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); background: #fff; }

/* ---------- stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--gray-bd); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 26px 8px; }
.stat b { display: block; font-size: 30px; color: var(--navy); font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .kicker { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: 12.5px; text-transform: uppercase; }
.sec-head h2 { font-size: 30px; color: var(--navy); margin-top: 8px; }
.sec-head p { color: var(--muted); margin-top: 10px; }

/* category cards */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { border: 1px solid var(--gray-bd); border-radius: 12px; overflow: hidden; transition: .18s; background: #fff; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14,42,71,.13); border-color: transparent; }
.cat-card .ph { height: 170px; background: #f2f5f8; display: grid; place-items: center; padding: 18px; }
.cat-card .ph img { max-height: 134px; object-fit: contain; }
.cat-card .bd { padding: 16px 18px 20px; }
.cat-card h3 { font-size: 16.5px; color: var(--navy); }
.cat-card .cnt { color: var(--orange); font-weight: 700; font-size: 13px; margin-top: 4px; }

/* brand strip */
.brands { background: var(--navy); color: #fff; padding: 40px 0; }
.brands .wrap { display: flex; justify-content: space-around; align-items: center; gap: 30px; flex-wrap: wrap; }
.brand-chip { text-align: center; }
.brand-chip b { font-size: 21px; letter-spacing: 1px; }
.brand-chip span { display: block; color: #a9d4b9; font-size: 13px; margin-top: 4px; }

/* ---------- selector / products ---------- */
.sel-bar { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; background: #fff; border: 1px solid var(--gray-bd); border-radius: 12px; padding: 18px; box-shadow: 0 6px 18px rgba(14,42,71,.05); }
.sel-bar label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.sel-bar select, .sel-bar input { width: 100%; padding: 9px 10px; border: 1px solid var(--gray-bd); border-radius: 7px; font-size: 14px; background: #fff; color: var(--text); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.pcard { border: 1px solid var(--gray-bd); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: .15s; }
.pcard:hover { box-shadow: 0 14px 30px rgba(14,42,71,.12); transform: translateY(-3px); }
.pcard .ph { height: 190px; background: #f2f5f8; display: grid; place-items: center; padding: 16px; }
.pcard .ph img { max-height: 158px; object-fit: contain; }
.pcard .bd { padding: 15px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pcard .model { font-weight: 800; font-size: 17px; color: var(--navy); }
.pcard .brand { font-size: 12px; color: #fff; background: #00649e; border-radius: 20px; padding: 2px 10px; display: inline-block; width: fit-content; }
.pcard .brand.macro { background: var(--navy2); }

/* ---------- brand sections ---------- */
.brand-sec .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.brand-intro h2 { font-size: 26px; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.brand-intro .tag { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; border-radius: 20px; padding: 3px 12px; margin-top: 10px; }
.brand-intro p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.ind-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ind-chips span { font-size: 12.5px; background: #fff; border: 1px solid var(--gray-bd); color: var(--navy); border-radius: 20px; padding: 4px 12px; font-weight: 600; }

/* industry cards */
.ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ind-card { background: #fff; border: 1px solid var(--gray-bd); border-radius: 12px; text-align: center; padding: 22px 12px; transition: .15s; }
.ind-card:hover { border-color: var(--green); box-shadow: 0 10px 24px rgba(0,146,57,.12); transform: translateY(-3px); }
.ind-card .ico { font-size: 30px; }
.ind-card b { display: block; margin-top: 8px; color: var(--navy); font-size: 14.5px; }
.ind-card span { color: var(--muted); font-size: 12px; }

/* KMBT own placeholder */
.own-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.own-card { border: 2px dashed #bcd9c6; border-radius: 12px; padding: 26px 22px; background: #f6fbf7; }
.own-card .badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--green); background: #e3f4e9; border-radius: 20px; padding: 3px 12px; }
.own-card h3 { color: var(--navy); font-size: 17px; margin: 12px 0 8px; }
.own-card p { color: var(--muted); font-size: 13.5px; }
.pcard table { width: 100%; font-size: 12.8px; border-collapse: collapse; }
.pcard table td { padding: 3.5px 0; border-top: 1px dashed #edf1f5; }
.pcard table td:first-child { color: var(--muted); width: 42%; }
.pcard .go { margin-top: auto; padding-top: 8px; display: flex; gap: 10px; }
.pcard .go a:first-child { flex: 1; text-align: center; }
.count-line { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* ---------- product detail ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--orange); }
.pd-head { display: grid; grid-template-columns: 460px 1fr; gap: 44px; margin-top: 22px; }
.pd-gallery .main { border: 1px solid var(--gray-bd); border-radius: 12px; background: #f7f9fb; height: 380px; display: grid; place-items: center; padding: 26px; }
.pd-gallery .main img { max-height: 320px; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs img { width: 74px; height: 60px; object-fit: contain; background: #f7f9fb; border: 1px solid var(--gray-bd); border-radius: 8px; padding: 6px; cursor: pointer; }
.pd-thumbs img.on { border-color: var(--orange); }
.pd-info h1 { font-size: 30px; color: var(--navy); line-height: 1.2; }
.pd-info .sub { color: var(--muted); margin-top: 6px; }
.pd-feats { margin: 18px 0; padding-left: 0; list-style: none; }
.pd-feats li { padding: 4px 0 4px 26px; position: relative; font-size: 14.5px; }
.pd-feats li:before { content: "✓"; position: absolute; left: 2px; color: var(--orange); font-weight: 900; }
.pd-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.spec-table th, .spec-table td { border: 1px solid var(--gray-bd); padding: 11px 15px; text-align: left; font-size: 14.5px; }
.spec-table th { background: #f2f6fa; color: var(--navy); width: 260px; font-weight: 700; }
.pd-detail { margin-top: 34px; border-top: 1px solid var(--gray-bd); padding-top: 28px; }
.pd-detail h2 { font-size: 21px; color: var(--navy); margin-bottom: 14px; }
.pd-detail .rich { font-size: 14.8px; color: var(--text); }
.pd-detail .rich img { margin: 10px 0; border-radius: 8px; }
.pd-detail .rich table { border-collapse: collapse; margin: 12px 0; }
.pd-detail .rich table td, .pd-detail .rich table th { border: 1px solid var(--gray-bd); padding: 6px 12px; font-size: 13.5px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- footer ---------- */
footer.site { background: #07301a; color: #a3c5b1; margin-top: 40px; font-size: 14px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 46px 24px 34px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
footer.site a:hover { color: #fff; }
footer.site li { list-style: none; padding: 3px 0; }
.copy { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 16px; font-size: 12.5px; color: #6b9680; }

/* ---------- quote modal ---------- */
.qmask { position: fixed; inset: 0; background: rgba(10,25,40,.55); display: none; place-items: center; z-index: 200; }
.qmask.open { display: grid; }
.qbox { background: #fff; border-radius: 14px; width: min(480px, 92vw); padding: 26px 28px; position: relative; max-height: 88vh; overflow: auto; }
.qbox h3 { color: var(--navy); font-size: 20px; }
.qbox .x { position: absolute; right: 16px; top: 12px; font-size: 22px; color: var(--muted); cursor: pointer; }
.qbox label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 13px 0 5px; }
.qbox input, .qbox textarea, .qbox select { width: 100%; border: 1px solid var(--gray-bd); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.qbox .ok { background: #e8f7ee; color: #177a43; border-radius: 8px; padding: 12px; margin-top: 14px; font-size: 14px; display: none; }

@media (max-width: 960px) {
  .hero .wrap, .pd-head { grid-template-columns: 1fr; }
  .cats, .stats .wrap, .own-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-sec .wrap { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .pgrid, .rel-grid { grid-template-columns: 1fr; }
  .sel-bar { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
}

/* ---- 系列导航条 (mouser 式) ---- */
.fam-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; padding: 12px 16px; background: #f0f7f2; border: 1px solid #d5e8db; border-radius: 10px; }
.fam-label { font-size: 13px; font-weight: 700; color: var(--navy, #0b4d27); white-space: nowrap; }
.fam-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fam-btn { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--green, #009239); color: var(--green, #009239); background: #fff; transition: all .15s; }
.fam-btn:hover { background: #e4f4e9; }
.fam-btn.on { background: var(--green, #009239); color: #fff; }
.fam-btn i { display: block; font-style: normal; font-size: 10px; font-weight: 500; opacity: .75; }

/* ---- 行业应用 chips ---- */
.app-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.app-chips .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #0b5a2b; background: #e7f4ec; border: 1px solid #c4e4cf; padding: 5px 12px; border-radius: 20px; }

/* ---- Datasheet 卡片 ---- */
.pdf-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--gray-bd); border-radius: 10px; background: #fff; }
.pdf-ic { flex: 0 0 auto; width: 44px; height: 52px; background: linear-gradient(135deg, #d9463e, #b03a30); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.pdf-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pdf-meta b { font-size: 14px; }

/* ---- 可选附件区 ---- */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 14px; }
.acc-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--gray-bd); border-radius: 12px; background: #fff; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.acc-card:hover { box-shadow: 0 6px 18px rgba(0, 60, 25, .12); transform: translateY(-2px); }
.acc-card .ph { height: 110px; display: flex; align-items: center; justify-content: center; background: #f7faf8; border-radius: 8px; overflow: hidden; margin-bottom: 4px; }
.acc-card .ph img { max-width: 100%; max-height: 100%; object-fit: contain; }
.acc-card b { font-size: 15px; color: var(--green, #009239); }
.acc-card span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.acc-card em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--green, #009239); margin-top: auto; }

/* 行业卡代表型号 */
.ind-models { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gray-bd); }
.ind-models a { font-size: 12px; font-weight: 700; color: var(--green); background: #eef7f1; padding: 3px 10px; border-radius: 14px; text-decoration: none; }
.ind-models a:hover { background: var(--green); color: #fff; }

/* Explosion-Proof Ex badge */
.ep-badge{position:absolute;top:8px;right:8px;width:36px;height:auto;filter:drop-shadow(0 1px 3px rgba(0,0,0,.35));pointer-events:none}
