/* ============================================================
   北京展翊科技官网 — 产品实景与图集样式（media.css）
   用于 hardware.html / platform.html / about.html 资质区块
   ============================================================ */

/* ---------- 数据条 ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-band .stat-item {
  background: #fff;
  padding: 26px 20px;
  text-align: center;
}
.stat-band .stat-num {
  font-size: 30px; font-weight: 700; color: var(--brand-blue);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-band .stat-num .unit { font-size: 16px; }
.stat-band .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ---------- 双入口卡 ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.entry-card {
  display: flex; align-items: center; gap: 22px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.entry-card:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.entry-thumb {
  width: 132px; height: 92px; flex: 0 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.entry-body h3 .arrow { color: var(--brand-blue); font-weight: 500; }
.entry-body p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.entry-body .entry-meta { margin-top: 8px; font-size: 12.5px; color: var(--brand-blue); font-weight: 500; }

/* ---------- 产品线区块 ---------- */
.hw-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border-light);
}
.hw-block:last-child { border-bottom: none; }
.hw-block.reverse .hw-media { order: 2; }
.hw-block.reverse .hw-info { order: 1; }

.hw-media { min-width: 0; }
.hw-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.hw-title .model { color: var(--brand-blue); }
.hw-lead { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.75; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  font-size: 12.5px; font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
  line-height: 1.4;
}
.chip.green { background: var(--brand-green-soft); color: var(--brand-green-dark); }
.chip.gray { background: var(--bg-soft); color: var(--text-secondary); border: 1px solid var(--border-light); }

.kv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.kv-list .kv { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.6; }
.kv-list .kv .k { color: var(--text-muted); flex: 0 0 auto; }
.kv-list .kv .v { color: var(--text-primary); font-weight: 500; }

/* ---------- 产品图框（关键：overflow + scale 隐藏边缘杂线） ---------- */
.hw-shot {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.hw-shot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(30, 95, 189, 0.06);
  pointer-events: none;
}
.hw-shot .shot-inner {
  height: 300px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
}
.hw-shot .shot-inner img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.4s ease;
}
.hw-shot:hover .shot-inner img { transform: scale(1.05); }
.hw-shot .shot-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(30, 95, 189, 0.9);
  color: #fff;
  z-index: 2;
}
.hw-shot .shot-cap {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  background: #fff;
}

/* 多图小图集 */
.hw-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hw-gallery .hw-shot .shot-inner { height: 185px; padding: 12px; }
.hw-gallery .hw-shot .shot-inner img { transform: scale(1); }
.hw-gallery .hw-shot:hover .shot-inner img { transform: scale(1.05); }
.hw-gallery .hw-shot .shot-cap { padding: 8px 10px; font-size: 11.5px; }

/* ---------- 软件平台截图 ---------- */
.plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plat-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: zoom-in;
}
.plat-item:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.plat-shot {
  aspect-ratio: 16 / 9;
  background: #0F1A2B;
  overflow: hidden;
}
.plat-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.plat-item:hover .plat-shot img { transform: scale(1.03); }
.plat-cap { padding: 14px 18px; }
.plat-cap h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.plat-cap p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }
.plat-cap .num { font-size: 11.5px; font-weight: 700; color: var(--brand-blue); letter-spacing: 0.08em; }

/* 实景图带 */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scene-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}
.scene-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.scene-card:hover img { transform: scale(1.06); }
.scene-card .scene-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(10, 18, 32, 0.72) 100%);
  color: #fff; font-size: 13px; font-weight: 500;
}

/* 大图实景（带文字） */
.scene-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 340px;
  display: flex; align-items: flex-end;
  border: 1px solid var(--border);
}
.scene-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-hero .scene-mask {
  position: relative; z-index: 1;
  padding: 40px;
  width: 100%;
  background: linear-gradient(90deg, rgba(10, 18, 32, 0.86) 0%, rgba(10, 18, 32, 0.45) 55%, rgba(10, 18, 32, 0) 100%);
  color: #fff;
}
.scene-hero h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.scene-hero p { font-size: 14px; color: rgba(255,255,255,0.78); max-width: 520px; line-height: 1.75; }

/* ---------- 资质证书 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: zoom-in;
}
.cert-card:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cert-frame {
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.cert-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-cap { padding: 14px; text-align: center; border-top: 1px solid var(--border-light); }
.cert-cap h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cert-cap p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ---------- 资质墙（软著证书网格） ---------- */
.cert-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.wall-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.wall-item:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.wall-frame {
  aspect-ratio: 3 / 4;
  background: #F7F9FC;
  padding: 7px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wall-frame img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 1px 5px rgba(16, 32, 64, 0.12);
  transition: transform 0.45s ease;
}
.wall-item:hover .wall-frame img { transform: scale(1.04); }
.wall-cap { padding: 9px 8px 11px; text-align: center; border-top: 1px solid var(--border-light); }
.wall-cap h4 {
  font-size: 12px; font-weight: 600; line-height: 1.4;
  color: var(--text-primary); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 34px;
}
.wall-cap span { font-size: 11px; font-family: var(--font-mono); color: var(--brand-blue); }
.wall-summary {
  cursor: default;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 8px;
  padding: 20px 14px;
  background: linear-gradient(160deg, #F2F7FF 0%, #FFFFFF 70%);
  border-style: dashed;
}
.wall-summary:hover { transform: none; box-shadow: none; border-color: var(--brand-blue); }
.wall-summary .stat-num { font-size: 40px; font-weight: 700; color: var(--brand-blue); line-height: 1; }
.wall-summary p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 16, 28, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1400px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox .lb-cap {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center; color: rgba(255,255,255,0.86); font-size: 14px;
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,0.18); }

/* ---------- 软著清单 ---------- */
.ip-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ip-table th, .ip-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border-light); }
.ip-table th { background: var(--bg-soft); font-weight: 600; font-size: 13px; color: var(--text-primary); white-space: nowrap; }
.ip-table td { color: var(--text-secondary); }
.ip-table td.reg { font-family: var(--font-mono); font-size: 12.5px; color: var(--brand-blue); white-space: nowrap; }
.ip-table tr:hover td { background: #FAFCFE; }

/* 监控对象表 */
.obj-table { min-width: 880px; background: #fff; border-radius: var(--radius-lg); }
.obj-table thead th { position: sticky; top: 0; }
.obj-table td.cat {
  font-weight: 700; font-size: 13px; color: var(--brand-blue);
  background: #F7FAFF; text-align: center; line-height: 1.5;
  border-right: 1px solid var(--border-light); vertical-align: middle;
}
.obj-table td.obj { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.obj-table tbody tr:first-child td { border-top: 1px solid var(--border-light); }
.table-note {
  margin-top: 14px; font-size: 12.5px; line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- 选型表 ---------- */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 响应式 ---------- */
/* 导航项较多，中等宽度收紧间距，避免挤压换行 */
@media (max-width: 1180px) and (min-width: 769px) {
  .nav-link { padding: 8px 11px; font-size: 14.5px; }
  .nav-menu { gap: 2px; }
  .nav-cta { margin-left: 6px; }
}
@media (max-width: 900px) and (min-width: 769px) {
  .nav-cta { display: none; }
}
@media (max-width: 1024px) {
  .hw-block { grid-template-columns: 1fr; gap: 28px; }
  .hw-block.reverse .hw-media { order: 0; }
  .hw-block.reverse .hw-info { order: 0; }
  .plat-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-wall { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hw-shot .shot-inner { height: 220px; }
  .hw-gallery { grid-template-columns: repeat(2, 1fr); }
  .hw-gallery .hw-shot .shot-inner { height: 120px; }
  .kv-list { grid-template-columns: 1fr; }
  .scene-hero { min-height: 240px; }
  .scene-hero .scene-mask { padding: 24px; background: rgba(10, 18, 32, 0.72); }
  .scene-hero h3 { font-size: 19px; }
  .entry-card { flex-direction: column; align-items: flex-start; }
  .entry-thumb { width: 100%; height: 120px; }
  .ip-table th, .ip-table td { padding: 9px 10px; font-size: 12.5px; }
  .cert-wall { grid-template-columns: repeat(3, 1fr); }
  .wall-cap h4 { font-size: 11.5px; min-height: 32px; }
}
@media (max-width: 520px) {
  .hw-gallery { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-wall { grid-template-columns: repeat(2, 1fr); }
  .wall-summary { padding: 14px 10px; }
  .wall-summary .stat-num { font-size: 32px; }
  .scene-grid { grid-template-columns: 1fr; }
}
