/* 智慧通信电力方案 — 科技紫风格扩展 */
/* 复用 food-safety.css 的 fs-* 组件体系，仅做通信场景微调 */

.fs-hero--commpower {
  background: radial-gradient(60% 50% at 78% 12%, rgba(139,92,246,.18), transparent 70%);
}

/* 首屏右侧仅保留通信现场与产品主视觉，避免小字方案图和状态卡互相遮挡。 */
.fs-hero--commpower .fs-hero__visual {
  position: relative;
}

.fs-hero--commpower .fs-hero__layout {
  width: min(100% - 56px, 1260px);
  grid-template-columns: minmax(420px, .84fr) minmax(0, 1.26fr);
  gap: 46px;
}

.fs-hero--commpower .sp-food-case__visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(97, 132, 145, .24);
  border-radius: 6px;
  background: #edf3f4;
  box-shadow: 0 24px 58px rgba(28, 57, 67, .14);
}

.fs-hero--commpower .sp-food-case__visual picture,
.fs-hero--commpower .sp-food-case__visual picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.fs-hero--commpower .sp-food-case__visual picture img {
  object-fit: contain;
  object-position: center;
  filter: saturate(.94) contrast(1.02);
}

.fs-hero--commpower .sp-food-case__wash {
  background: linear-gradient(90deg, rgba(241, 247, 248, .08), transparent 24%);
}

.fs-hero--commpower .sp-food-case__metric {
  display: none;
}

.cp-hero-image-expand {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(25, 60, 67, .22);
  border-radius: 2px;
  background: rgba(248, 251, 251, .94);
  color: #29464d;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.cp-hero-image-expand:hover,
.cp-hero-image-expand:focus-visible { border-color: #0aa897; color: #078f82; outline: 0; }
.cp-hero-image-expand span { margin-left: 8px; }

body:has(.cp-image-dialog[open]),
body:has(.cp-product-dialog[open]) { overflow: hidden; }
.cp-image-dialog {
  width: min(1480px, calc(100% - 48px));
  max-width: 1480px;
  max-height: calc(100svh - 48px);
  padding: 18px;
  overflow: auto;
  border: 1px solid #beced1;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(12, 36, 42, .34);
}
.cp-image-dialog::backdrop { background: rgba(10, 28, 32, .72); backdrop-filter: blur(5px); }
.cp-image-dialog img { display: block; width: 100%; height: auto; }
.cp-image-dialog__close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 0 -38px;
  padding: 0;
  place-items: center;
  border: 1px solid #c6d4d6;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #26464d;
  font: 300 25px/1 Arial, sans-serif;
  cursor: pointer;
}
.cp-image-dialog__close:hover,
.cp-image-dialog__close:focus-visible { border-color: #0aa897; color: #078f82; outline: 0; }

.fs-hero--commpower ~ .fs-section .is-cp-product-clickable { cursor: zoom-in; }
.fs-hero--commpower ~ .fs-section .is-cp-product-clickable:focus-visible { outline: 2px solid #0aa897; outline-offset: 3px; }

.cp-product-dialog {
  width: min(860px, calc(100% - 48px));
  max-width: 860px;
  max-height: calc(100svh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid #bfd0d2;
  border-radius: 6px;
  background: #f8fafa;
  color: #183038;
  box-shadow: 0 28px 80px rgba(10, 34, 39, .3);
}
.cp-product-dialog::backdrop { background: rgba(10, 28, 32, .68); backdrop-filter: blur(5px); }
.cp-product-dialog__shell { position: relative; display: grid; min-height: 500px; grid-template-columns: 46% 54%; }
.cp-product-dialog__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #c7d5d7;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #315058;
  font: 300 25px/1 Arial, sans-serif;
  cursor: pointer;
}
.cp-product-dialog__close:hover,
.cp-product-dialog__close:focus-visible { border-color: #0aa897; color: #078f82; outline: 0; }
.cp-product-dialog__shell > figure {
  display: grid;
  min-width: 0;
  margin: 0;
  place-items: center;
  border-right: 1px solid #d5e0e2;
  background-color: #e8eff0;
  background-image: linear-gradient(rgba(45, 83, 89, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 83, 89, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cp-product-dialog__shell > figure img { width: 78%; max-width: 330px; max-height: 380px; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(24, 58, 64, .2)); }
.cp-product-dialog__shell > section { padding: 52px 38px 38px; }
.cp-product-dialog__eyebrow { margin: 0 0 15px; color: #078f82; font: 600 9px/1 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.cp-product-dialog__title { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-right: 30px; }
.cp-product-dialog__title h2 { margin: 0; color: #183038; font-size: 25px; font-weight: 600; line-height: 1.35; }
.cp-product-dialog__title strong { flex: 0 0 auto; color: #078f82; font: 600 14px/1 ui-monospace, Consolas, monospace; }
.cp-product-dialog__description { min-height: 70px; margin: 20px 0 24px; color: #5d7177; font-size: 13px; line-height: 1.8; }
.cp-product-dialog__facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid #d7e1e3; border-left: 1px solid #d7e1e3; }
.cp-product-dialog__facts > div { min-width: 0; padding: 14px; border-right: 1px solid #d7e1e3; border-bottom: 1px solid #d7e1e3; background: rgba(255, 255, 255, .72); }
.cp-product-dialog__facts dt { margin: 0 0 6px; color: #84969b; font-size: 10px; }
.cp-product-dialog__facts dd { margin: 0; color: #29484f; font-size: 12px; font-weight: 600; line-height: 1.4; }
.cp-product-dialog__action { display: inline-flex; min-height: 42px; margin-top: 25px; padding: 0 17px; align-items: center; gap: 18px; background: #10b3a3; color: #072326; font-size: 12px; font-weight: 600; text-decoration: none; }

/* 产品卡片作为链接 */
a.fs-product-card { text-decoration: none; color: inherit; display: block; }

/* 两列卡片网格（用于特征展示） */
.fs-card-grid--2c { grid-template-columns: repeat(2, 1fr); }
.fs-card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.fs-feature-block .fs-card-grid--3 .fs-image-card {
  border-radius: 6px;
}

.fs-feature-block .fs-card-grid--3 .fs-image-card img {
  height: 220px;
  padding: 24px 28px;
  aspect-ratio: auto;
  background: #f2f6f7;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(27, 59, 66, .14));
}

@media (max-width: 640px) { .fs-card-grid--2c { grid-template-columns: 1fr; } }
