/* ==========================================================================
   智慧园区平台 · 子产品落地页专用样式（park/ 目录下 4 个页面共用）
   由 ref/gen_subpages.py 生成，请勿直接手改；改样式请改生成器后重跑。
   ========================================================================== */

/* ---------- 子产品切换条 ---------- */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 10px; overflow-x: auto;
  scrollbar-width: none;
}
.subnav-in::-webkit-scrollbar { display: none; }
.subnav-home {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 13.5px; font-weight: 600; color: var(--ink-600);
  padding: 10px 12px 10px 0; border-right: 1px solid var(--line);
  margin-right: 4px; white-space: nowrap; transition: color .16s;
}
.subnav-home:hover { color: var(--park); }
.subnav-home svg { width: 15px; height: 15px; }
.subnav a.subnav-i {
  position: relative; flex-shrink: 0;
  font-size: 13.5px; font-weight: 600; color: var(--ink-600);
  padding: 11px 4px 10px; margin-right: 22px;
  white-space: nowrap; transition: color .16s;
}
.subnav a.subnav-i::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px;
  border-radius: 2px; background: var(--park);
  transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.subnav a.subnav-i:hover { color: var(--park); }
.subnav a.subnav-i.on { color: var(--park); }
.subnav a.subnav-i.on::after { transform: scaleX(1); }

/* 吸顶导航 + 切换条会遮住锚点目标，补足滚动偏移（仅对带切换条的子页面生效） */
.subnav ~ section[id] { scroll-margin-top: calc(var(--nav-h) + 48px); }

/* ---------- 价格表（style.css 的表格样式限定在 table.cmp 上，这里单独定义） ---------- */
.price-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-tbl th, .price-tbl td {
  padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.price-tbl thead th {
  background: var(--blue-50); font-size: 13.5px; color: var(--ink-900);
  font-weight: 700; white-space: nowrap;
}
.price-tbl tbody tr:last-child td { border-bottom: none; }
.price-tbl tbody tr:hover { background: var(--blue-50); }
.price-tbl td:first-child { min-width: 190px; }
.price-tbl td:nth-child(2) { white-space: nowrap; }
.price-tbl td b { color: var(--ink-900); }

/* 按交付版本对比的价格表（SaaS 版 / 私有化部署版 并列两列） */
.price-tbl.dual td:first-child { min-width: 215px; }
.price-tbl.dual td:nth-child(3) { white-space: nowrap; }
.price-tbl.dual tr.sum td { background: #f6fbff; border-top: 1px solid #d9e7f8; }
.price-tbl.dual tr.sum td b { color: var(--park); }
.price-tbl.dual .na {
  display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400;
  line-height: 1.55; color: var(--ink-400);
}

/* ---------- 痛点清单（左痛点 / 右解法 对照） ---------- */
.pain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 34px;
}
.pain-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 17px; transition: .2s;
}
.pain-item:hover { border-color: #d4e3f7; box-shadow: var(--shadow-sm); }
.pain-x {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; background: #fdecec; color: #d9534f;
}
.pain-x svg { width: 16px; height: 16px; }
.pain-b { min-width: 0; }
.pain-b h4 { font-size: 15px; margin: 0 0 5px; color: var(--ink-900); }
.pain-b p { font-size: 13.5px; line-height: 1.68; color: var(--ink-500); margin: 0; }

/* ---------- 模块明细卡（带功能点清单 + 可选角标） ---------- */
.mod-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 34px;
}
.mod-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--park); border-radius: var(--radius);
  padding: 24px 22px 22px; transition: .22s;
}
.mod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mod-hd { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.mod-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--park-soft); color: var(--park);
}
.mod-ico svg { width: 21px; height: 21px; }
.mod-hd h3 { font-size: 16px; margin: 0; color: var(--ink-900); }
.mod-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--orange-100); color: var(--orange-600);
}
.mod-card p.mod-lead {
  font-size: 13.5px; line-height: 1.7; color: var(--ink-500); margin: 0 0 14px;
}
.mod-feats { list-style: none; margin: 0; padding: 0; }
.mod-feats li {
  position: relative; padding-left: 18px; margin-bottom: 7px;
  font-size: 13.5px; line-height: 1.6; color: var(--ink-600);
}
.mod-feats li:last-child { margin-bottom: 0; }
.mod-feats li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue-300);
}

/* ---------- 模块卡带小程序真机截图（图左文右 · 2 列） ---------- */
.mod-grid.has-shots { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mod-card.has-shot {
  display: grid; grid-template-columns: 176px 1fr; gap: 22px;
  align-items: start; padding: 22px;
}
.mod-shot {
  margin: 0; width: 176px; border-radius: 14px; overflow: hidden;
  border: 1px solid #e2ebf6; background: #f6f9fd;
  box-shadow: 0 8px 20px rgba(19, 87, 150, .09);
}
.mod-shot img {
  display: block; width: 100%; height: auto; cursor: zoom-in;
  transition: transform .3s ease;
}
.mod-shot img:hover { transform: scale(1.035); }
.mod-shot figcaption {
  padding: 7px 8px 8px; text-align: center; font-size: 11.5px; line-height: 1.4;
  color: var(--ink-400); background: #fff; border-top: 1px solid #eef3f9;
}
.mod-card.has-shot .mod-body { min-width: 0; }
.mod-card.has-shot .mod-hd { margin-bottom: 12px; }
.mod-card.has-shot .mod-lead { margin-bottom: 12px; }
@media (max-width: 1080px) {
  .mod-grid.has-shots { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mod-card.has-shot { grid-template-columns: 118px 1fr; gap: 15px; padding: 17px 15px; }
  .mod-shot { width: 118px; }
  .mod-shot figcaption { font-size: 10.5px; padding: 5px 4px 6px; }
  .mod-card.has-shot .mod-hd h3 { font-size: 15px; }
  .mod-card.has-shot .mod-lead,
  .mod-card.has-shot .mod-feats li { font-size: 12.5px; }
}

/* ---------- 模块卡带设备照片（上图下文 · 2 列，2026-09-26 安防页） ---------- */
.mod-card.has-shot.device { display: block; padding: 20px 22px 22px; }
/* 2026-09-27：设备照由通栏改小图居中（原 100% 占满整卡，视觉过重） */
.mod-shot.device { width: 62%; max-width: 300px; margin: 0 auto 18px; }
.mod-shot.device img { aspect-ratio: 16 / 9; object-fit: cover; }
.mod-shot.device figcaption { background: #fbfdff; }
@media (max-width: 560px) {
  .mod-shot.device { width: 100%; max-width: 280px; margin-bottom: 14px; }
}

/* ---------- 一行 4 个（2026-09-27 用户要求；安防/楼宇=设备照，物业=小程序真机截图） ---------- */
.mod-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* ⚠️ 关键：卡内文字改 nowrap 后，grid item 默认 min-width:auto 会按「整行文字宽」撑爆列宽，
   导致整个网格横向溢出（2026-09-27 用户截图反馈「超出」）。必须显式 min-width:0。 */
.mod-grid.cols-4 > .mod-card { min-width: 0; }
/* 最后一行只剩 1 张卡时（楼宇自控 9 项 = 4+4+1），让它跨中间两列，别孤零零吊在最左边。
   `:last-child:nth-child(4n+1)` 只在「总数为 4n+1」时命中（4/8/12 项等整行铺满的页面不受影响）。 */
.mod-grid.cols-4 > .mod-card:last-child:nth-child(4n+1) {
  grid-column: 2 / span 2;
  display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start;
}
/* 跨列后卡片宽了一倍，设备图不跟着放大，锁住与原尺寸一致的视觉体量 */
.mod-grid.cols-4 > .mod-card:last-child:nth-child(4n+1) .mod-shot.device {
  width: 100%; max-width: 300px; margin: 0;
}
.mod-grid.cols-4 > .mod-card:last-child:nth-child(4n+1) .mod-body { min-width: 0; }
.mod-grid.cols-4 .mod-card.has-shot.device { padding: 16px 16px 18px; }
.mod-grid.cols-4 .mod-card.has-shot.device .mod-body { min-width: 0; }
.mod-grid.cols-4 .mod-shot.device { width: 100%; max-width: none; margin: 0 0 14px; }
/* 4 列里「图左文右」的 176px 竖屏真机图会把正文挤到只剩 100px 宽，撑不下 →
   改「上图下文」：手机屏按固定宽度居中，正文独占整卡宽度。 */
.mod-grid.cols-4 .mod-card.has-shot:not(.device) { display: block; padding: 16px 16px 18px; }
.mod-grid.cols-4 .mod-card.has-shot:not(.device) .mod-shot { width: 118px; margin: 0 auto 14px; }
.mod-grid.cols-4 .mod-card.has-shot:not(.device) .mod-shot img { width: 100%; height: auto; }
.mod-grid.cols-4 .mod-shot figcaption { font-size: 10.5px; padding: 5px 5px 6px; }
.mod-grid.cols-4 .mod-hd { gap: 9px; margin-bottom: 11px; }
.mod-grid.cols-4 .mod-ico { width: 34px; height: 34px; border-radius: 9px; }
.mod-grid.cols-4 .mod-ico svg { width: 18px; height: 18px; }
.mod-grid.cols-4 .mod-hd h3 { font-size: 15.5px; }
.mod-grid.cols-4 .mod-lead { font-size: 12.5px; line-height: 1.72; margin-bottom: 11px; }
.mod-grid.cols-4 .mod-feats li { font-size: 12.5px; padding-left: 16px; }
.mod-grid.cols-4 .mod-feats li::before { top: 7px; }
/* 2026-09-27 用户要求：4 列卡的文字一律单行，超出用省略号（鼠标悬停看全文 title） */
.mod-grid.cols-4 .mod-lead,
.mod-grid.cols-4 .mod-feats li,
.mod-grid.cols-4 .mod-shot figcaption {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 1240px) {
  .mod-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  /* 列数变少后卡片变宽，图片要锁住上限，否则又变成大图 */
  .mod-grid.cols-4 .mod-shot.device { width: 100%; max-width: 300px; margin: 0 auto 14px; }
  .mod-grid.cols-4 .mod-card.has-shot:not(.device) .mod-shot { width: 136px; }
  /* 换成 3 列后，孤项判定改成 3n+1（如 7 项 = 3+3+1），占中间那一列 */
  .mod-grid.cols-4 > .mod-card:last-child:nth-child(4n+1) { grid-column: auto; display: block; }
  .mod-grid.cols-4 > .mod-card:last-child:nth-child(3n+1) { grid-column: 2; display: block; }
  .mod-grid.cols-4 > .mod-card:last-child:nth-child(3n+1) .mod-shot.device { margin: 0 auto 14px; }
}
@media (max-width: 960px) {
  .mod-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  /* 2 列时卡片重新变宽，恢复「图左文右」——比上图下文省一大截纵向空间 */
  .mod-grid.cols-4 .mod-card.has-shot:not(.device) {
    display: grid; grid-template-columns: 176px 1fr; gap: 20px; align-items: start; padding: 20px;
  }
  .mod-grid.cols-4 .mod-card.has-shot:not(.device) .mod-shot { width: 176px; margin: 0; }
  /* 2 列下不再做「孤项居中」（跨列只会变宽一倍，反而难看），一律回到默认流 */
  .mod-grid.cols-4 > .mod-card:last-child:nth-child(3n+1) { grid-column: auto; }
}
@media (max-width: 620px) {
  .mod-grid.cols-4 { grid-template-columns: 1fr; }
  .mod-grid.cols-4 .mod-card.has-shot.device { padding: 17px 16px 18px; }
  /* 单列又变窄了，切回「上图下文」 */
  .mod-grid.cols-4 .mod-card.has-shot:not(.device) { display: block; padding: 17px 16px 18px; }
  .mod-grid.cols-4 .mod-card.has-shot:not(.device) .mod-shot { width: 140px; margin: 0 auto 14px; }
}

/* ---------- 角色价值（三类使用方） ---------- */
.role-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px;
}
.role-card {
  background: linear-gradient(180deg, var(--park-soft), #fff 46%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
}
.role-card h4 {
  font-size: 15.5px; margin: 0 0 14px; color: var(--park);
  display: flex; align-items: center; gap: 8px;
}
.role-card h4 svg { width: 18px; height: 18px; }
.role-card ul { list-style: none; margin: 0; padding: 0; }
.role-card li {
  position: relative; padding-left: 17px; margin-bottom: 8px;
  font-size: 13.5px; line-height: 1.62; color: var(--ink-600);
}
.role-card li:last-child { margin-bottom: 0; }
.role-card li::before {
  content: ""; position: absolute; left: 0; top: 7.5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--park); opacity: .38;
}

/* ---------- 协议 / 能力标签组 ---------- */
.proto-wrap {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.proto {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-600);
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 15px;
}
.proto i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--park); opacity: .55; font-style: normal;
}

/* ---------- 硬件对接清单表 ---------- */
.item-list { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.item-row {
  display: grid; grid-template-columns: 44px 1.15fr 2fr 96px;
  align-items: center; gap: 14px; padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.item-row:last-child { border-bottom: none; }
.item-row.head {
  background: var(--bg-soft); font-size: 12.5px; font-weight: 700;
  color: var(--ink-500); letter-spacing: .02em; padding: 12px 20px;
}
.item-row:not(.head):hover { background: #fbfdff; }
.item-no {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--park-soft); color: var(--park);
  font-size: 12.5px; font-weight: 700; font-family: var(--mono, monospace);
}
.item-name {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  font-size: 14.5px; font-weight: 600; color: var(--ink-900);
}
/* 子系统 / 设备 · 实物设备缩略图（2026-09-27 用户要求：用实物图，不用线描图标） */
.dev-photo {
  flex-shrink: 0; width: 60px; height: 45px; border-radius: 8px; overflow: hidden;
  border: 1px solid #e2ebf6; background: #f6f9fd;
}
.dev-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item-desc { font-size: 13px; line-height: 1.6; color: var(--ink-500); }
.item-price {
  text-align: right; font-size: 14px; font-weight: 700;
  color: var(--orange-600); white-space: nowrap;
}
.item-price span { font-size: 12px; font-weight: 500; color: var(--ink-400); }

/* ---------- 场景卡（小图标 + 短句） ---------- */
.scene-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px;
}
.scene-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; transition: .2s;
}
.scene-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.scene-card .sc-ico {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px;
  display: grid; place-items: center; background: var(--park-soft); color: var(--park);
}
.scene-card .sc-ico svg { width: 23px; height: 23px; }
.scene-card h4 { font-size: 14.5px; margin: 0 0 6px; color: var(--ink-900); }
.scene-card p { font-size: 12.5px; line-height: 1.6; color: var(--ink-500); margin: 0; }

/* ---------- 页尾互链（其它子产品） ---------- */
.siblings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
/* 主站 park.html 的子产品入口（4 列，复用 .sib-card） */
.subs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.sib-card {
  display: block; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: .22s;
}
.sib-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--park); transform: scaleY(0); transform-origin: top; transition: transform .24s;
}
.sib-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d4e3f7; }
.sib-card:hover::before { transform: scaleY(1); }
.sib-card h4 {
  font-size: 15px; margin: 0 0 7px; color: var(--ink-900);
  display: flex; align-items: center; gap: 7px;
}
.sib-card h4 svg { width: 17px; height: 17px; color: var(--park); flex-shrink: 0; }
.sib-card p { font-size: 13px; line-height: 1.65; color: var(--ink-500); margin: 0; }
.sib-card .sib-go {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 13px;
  font-size: 12.5px; font-weight: 700; color: var(--park);
}

/* ---------- 报价口径说明条 ---------- */
.price-tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--park-soft); border: 1px solid #c9def8; border-left: 3px solid var(--park);
  border-radius: var(--radius); padding: 16px 18px; margin-top: 26px;
}
.price-tip svg { width: 18px; height: 18px; color: var(--park); flex-shrink: 0; margin-top: 1px; }
.price-tip p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-600); }
.price-tip b { color: var(--ink-900); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .subs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .role-grid, .siblings { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pain-grid, .mod-grid { grid-template-columns: 1fr; }
  .item-row { grid-template-columns: 36px 1fr; row-gap: 6px; padding: 14px 16px; }
  .item-row.head { display: none; }
  .item-desc { grid-column: 2; }
  .item-price { grid-column: 2; text-align: left; }
  .price-tbl { font-size: 13.5px; }
  .price-tbl th, .price-tbl td { padding: 13px 14px; }
  .price-tbl td:first-child { min-width: 0; }
}
@media (max-width: 560px) {
  .scene-grid { grid-template-columns: 1fr; }
  .subs-grid { grid-template-columns: 1fr; }
  .subnav-home { font-size: 13px; padding-right: 10px; }
  .subnav a.subnav-i { margin-right: 16px; font-size: 13px; }
}

/* ---------- 硬件设备参考（表格 + 口径说明条） ---------- */
.hw-model {
  font-size: 12.5px; line-height: 1.7; color: var(--ink-500);
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
}
.hw-note {
  margin-top: 20px; padding: 14px 18px;
  font-size: 13px; line-height: 1.8; color: var(--ink-500);
  background: #f6fbfa; border: 1px solid #d4eae5; border-left: 3px solid #1e9e8a;
  border-radius: var(--radius-sm);
}
.hw-note b { color: var(--ink-900); }

/* ---------- park.html（主站）Hero 区的子产品直达入口 ----------
   注意：本文件由 ref/gen_subpages.py 生成（SUB_CSS 常量），
   直接改产品 css 会在下次重跑生成器时被覆盖，一律改生成器。 */
.hero-subs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.hero-subs .hs-t { font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-right: 2px; }
.hero-subs a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #dcecff; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .26); transition: .18s;
}
.hero-subs a:hover { background: #fff; color: #135796; border-color: #fff; transform: translateY(-1px); }
.hero-subs a i { font-style: normal; font-size: 12px; opacity: .65; }
@media (max-width: 560px) {
  .hero-subs { gap: 6px; }
  .hero-subs a { padding: 6px 11px; font-size: 12.5px; }
}
