/* ==========================================================================
   数字沙盘专题页专属样式 (other.css)
   ========================================================================== */

:root {
  --primary-color: #c12022;
  --primary-hover: #b82d19;
  --text-main: #2b2b2b;
  --text-muted: #666666;
  --text-light: #999999;
  --navy-dark-bg: #0d2238; /* 设计稿深蓝科技背景 */
  --navy-deep-bg: #071524;
}

body {
  /* background-color: #f7f8fa; */
  color: var(--text-main);
  overflow-x: hidden;
}

/* ================= 1. 顶部专题 Banner 区 ================= */
.sandbox-hero-banner {
  background: linear-gradient(180deg, #fbfbfa 0%, #ecefe8 100%);
  /* padding: 40px 0 80px 0;  */
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 780px; /* 大屏高度，可设为 75vh ~ 80vh */
  overflow: hidden;
  background-color: #0d1622;
}

/* 重置 Layui 轮播容器 */
#topicBannerCarousel {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

#topicBannerCarousel [carousel-item] {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

/* 单个 Slide 容器（保持与原本完全相同的居中与版心约束） */
.banner-slide-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  height: 100%;
}

.hero-left-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none; /* 解除原本宽度限制 */
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
}

.hero-left-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* padding-top: 100px; */
}

/* 图片暗色遮罩：右侧适当加深，确保白字与红标清晰可见 */
.hero-left-media .media-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* 2. 悬浮内容版心与右侧卡片定位 (hero-right-info) */
.banner-float-container {
  position: relative;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 将内容完全推向右侧 */
  box-sizing: border-box;
}
.hero-right-info {
  text-align: right;
  width: 550px; /* 控制右侧文本阅读宽度 */
  max-width: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 30px;
  /* background: rgba(0, 0, 0, 0.25); */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  /* border: 1px solid rgba(255, 255, 255, 0.12); */
  box-sizing: border-box;
}

.red-topic-badge {
  width: 100%;
  /* 免费平替：思源宋体 Heavy */
  font-family: "SourceSerifHeavy", "Source Han Serif CN Heavy", serif;
  font-weight: 900;
  font-size: 38px; /* 原 46px -> 38px 更显沉稳内敛 */
  color: #ffffff;
  background-color: var(--primary-color); /* 红底，匹配图中红色 */
  letter-spacing: 0.15em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(218, 60, 37, 0.3);
  padding: 8px 18px;
}

.topic-lead {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  letter-spacing: 2px;
}

.topic-desc {
  font-size: 14px;
  line-height: 2.1;
  color: #666666;
  /* text-align: justify; */
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hero-right-info .tag-list span {
  font-family: 微软雅黑;
  font-size: 12px; /* 原 14px -> 12px 精工标签感 */
  color: #666666;
  padding: 4px 10px;
  letter-spacing: 1.4px;
  border: 1px solid #666666;
  border-radius: 40px;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  -ms-border-radius: 40px;
  -o-border-radius: 40px;
}

.topic-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* 对应设计稿靠右对齐的查看更多 */
  margin-top: 30px;
}

.btn-more-link {
  font-size: 15px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1.2px;
  transition: opacity 0.25s ease;
}

.btn-more-link:hover {
  opacity: 0.85;
}

/* ================= Layui 轮播指示器与箭头重写 ================= */
#topicBannerCarousel .layui-carousel-ind {
  bottom: 50px !important; /* 避免与下方的骑跨导航条重合 */
  z-index: 10;
}

#topicBannerCarousel .layui-carousel-ind ul {
  background: transparent !important;
}

#topicBannerCarousel .layui-carousel-ind li {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}

#topicBannerCarousel .layui-carousel-ind li.layui-this {
  background-color: var(--primary-color) !important;
  width: 26px !important;
  border-radius: 10px !important; /* 高级胶囊形当前项指示器 */
}

/* 翻页左右箭头 */
#topicBannerCarousel .layui-carousel-arrow {
  background-color: rgba(0, 0, 0, 0.25) !important;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  transition: background-color 0.3s ease;
}

#topicBannerCarousel .layui-carousel-arrow:hover {
  background-color: var(--primary-color) !important;
}

/* ================= 3. 数字沙盘板块通用样式 ================= */
.sandbox-main {
  width: 100%;
  background-color: #f7f8fa;
}

.sandbox-section {
  padding-bottom: 70px;
}

/* 顶部深蓝科技背景条 */
.section-blue-header {
  height: 580px;
  padding: 140px 0; /* 底部预留空间让视频视窗向上重叠融入 */
  position: relative;
  overflow: hidden;
  background: url("/assets/img/sand-box1.png") no-repeat center center;
  background-size: cover;
}

/* 增加科技网格纹理底衬 */
.section-blue-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 28, 57, 0.9);
  background-size: 24px 24px;
  pointer-events: none;
}

.fusion-header::before {
  background: rgba(0, 52, 84, 0.9);
}

.electronicSandbox-header::before {
  background: rgba(61, 23, 8, 0.9);
}



.header-flex {
  position: relative;
  z-index: 2;
}

.header-left .main-title {
  font-size: 60px;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.capsule-tags {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag-pill {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  color: #ffffff;
  font-size: 16px;
  padding: 3px 14px;
  letter-spacing: 1px;
}

.header-right {
  margin-top: 40px;
}

.header-right p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 2.8;
  letter-spacing: 0.8px;
  text-align: right;
}

/* 居中大屏视频卡片（向上负 margin 叠在深蓝区） */
.screen-container {
  margin: 50px auto;
  position: relative;
  z-index: 10;
}

.screen-video-card {
  width: 100%;
  height: 800px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  background-color: #0b1118;
}

.screen-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.screen-video-card:hover .screen-poster {
  transform: scale(1.02);
}

/* 红色正圆形视频播放按钮 */
.play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 0 0 10px rgba(218, 60, 37, 0.25);
  transition: all 0.3s ease;
  z-index: 3;
}

.play-btn-circle i {
  font-size: 52px;
}

.screen-video-card:hover .play-btn-circle {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 18px rgba(218, 60, 37, 0.35);
}

/* 底部 5 联特性展示条 (Features Bar) */
.features-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.feature-item {
  flex: 1;
  background-color: #ffffff;
  border-radius: 3px;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-item .icon-box {
  color: #555555;
  font-size: 24px;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}
.feature-item .icon-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.feature-item .item-title {
  font-size: 16px;
  color: #727171;
  letter-spacing: 2px;
}

.feature-item:hover .icon-box,
.feature-item:hover .item-title {
  color: var(--primary-color);
}

/* ==========================================================================
   智融物联中控系统板块专属样式 (IoT System Section)
   ========================================================================== */
.section-iot-system {
  background-color: #f7f8fa;
  padding: 40px 0 90px 0;
}

/* 1. 顶部标头与右向细线 */
.iot-header-block {
  margin-bottom: 35px;
}

.iot-title-line {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

/* 红色线框标头 */
.iot-title-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-color);
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  background-color: var(--primary-color);
  flex-shrink: 0;
}

/* 贯穿延伸的红色水平细线 */
.iot-h-line {
  flex: 1;
  height: 1px;
  background-color: var(--primary-color);
}

/* 正文说明排版 */
.iot-desc-wrap p {
  font-size: 15px;
  line-height: 2.1;
  color: #666666;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.iot-desc-wrap .desc-lead {
  font-weight: 600;
  color: #222222;
}

/* 2. 主体交错图文排版布局 */
.iot-content-layout {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.iot-row-group {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

/* 3. 控制面板卡片 (iot-card-panel) */
.iot-card-panel {
  width: 290px;
  flex-shrink: 0;
  background-color: #ffffff;
  border: 1px solid #e2e5e8;
  border-radius: 2px;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: relative;
}

/* 红色大标题栏 */
.iot-card-panel .panel-header {
  position: relative;
  background-color: var(--primary-color);
  color: #ffffff;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  user-select: none;
}
/* ================= 核心：伪元素精准三角 ================= */

/* 左侧面板（left-panel）激活项：右侧产生向右三角，刺向右边大图 */
.left-panel .panel-item.active::after {
  content: "" !important;
  position: absolute;
  top: 50%;
  right: -10px; /* 突出到卡片外边框之外 */
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid var(--primary-color); /* 纯白箭头与卡片主体融合 */
  filter: drop-shadow(2px 0 1px rgba(0, 0, 0, 0.08)); /* 浅阴影防止融入底色 */
  z-index: 99;
}

/* 右侧面板（right-panel）激活项：左侧产生向左三角，刺向左边大图 */
.right-panel .panel-item.active::after {
  content: "" !important;
  position: absolute;
  top: 50%;
  left: -10px; /* 突出到卡片外边框之外 */
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--primary-color); /* 纯白箭头 */
  filter: drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.08));
  z-index: 99;
}

/* 子功能项列表 */
.panel-items-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: visible !important; /* 关键：子列表也不能溢出隐藏 */
}

.panel-item {
  position: relative !important; /* 作为 ::after 三角的定位基准 */
  flex: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
  color: #555555;
  border-bottom: 1px solid #eeeeee;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  letter-spacing: 1px;
}

.panel-item:last-child {
  border-bottom: none;
}

.panel-item:hover {
  color: var(--primary-color);
  background-color: #fafafa;
}

.panel-item.active {
  color: var(--primary-color, #da3c25);
  font-weight: bold;
  background-color: #ffffff !important;
  z-index: 10;
  border: 1px solid var(--primary-color);
}
/* 核心：仅在 active 激活项下显现指示三角 */
.panel-item.active .indicator-arrow {
  display: block;
}

/* 4. 实景大图与动图外框展示区 (iot-display-box) */
.iot-display-box {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  display: flex;
}

.media-frame {
  position: relative;
  width: 100%;
  min-height: 530px;
  background-color: #0b1118;
  /* border: 1px solid #1a56a7;  */
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.iot-media-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

/* 切换时的淡隐类 */
.iot-media-video.fade-switching {
  opacity: 0;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    opacity 0.3s ease,
    transform 0.5s ease;
}

.media-frame:hover img {
  transform: scale(1.02);
}

/* (动图) 水印文字 */
.gif-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}
.section-case {
  background-color: #fff;
}
.section-case .iot-title-line {
  padding: 70px 0;
}

/* ================= 4. 全端响应式规范 (<= 992px & <= 768px) ================= */
@media screen and (max-width: 992px) {
  #topicBannerCarousel {
    height: 520px !important; /* 平板端调高以容纳垂直图文 */
  }
  .hero-banner-inner {
    flex-direction: column;
    justify-content: center;
    gap: 25px;
  }
  .hero-left-media {
    max-width: 100%;
    height: 260px;
  }
  .sandbox-hero-banner {
    height: 480px;
  }
  .hero-right-info {
    width: 60%;
    max-width: 60%;
  }

  .header-flex {
    flex-direction: column;
    gap: 20px;
  }

  .screen-video-card {
    height: 380px;
  }

  .features-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  .feature-item {
    flex: none;
    width: calc(33.333% - 12px);
  }
  .iot-card-panel {
    width: 220px;
  }
  .iot-card-panel .panel-header {
    height: 90px;
    font-size: 18px;
  }
  .media-frame {
    min-height: 300px;
  }
}

@media screen and (max-width: 768px) {
  .sandbox-hero-banner {
    height: 420px;
  }
  /* 移动端全屏遮罩加深，文字居中排版 */
  /* .hero-left-media .media-mask {
    background: rgba(0, 0, 0, 0.55);
  } */
  #topicBannerCarousel {
    height: 480px !important; /* 手机端适中高度 */
  }
  .hero-left-media {
    height: 100%;
  }
  .hero-left-media img {
    height: 100%;
    object-fit: cover;
  }
  .hero-right-info {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    align-items: center;
    text-align: center;
  }
  .banner-float-container {
    justify-content: center;
    padding: 0 15px;
  }

  .red-topic-badge {
    font-size: 16px;
    padding: 6px 14px;
    margin-bottom: 12px;
  }
  .hero-banner-inner {
    gap: 15px;
    padding: 0 15px;
  }

  .topic-lead {
    font-size: 13.5px;
    margin-bottom: 6px;
  }

  .topic-desc {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #fff;
  }

  .topic-btn-wrap {
    justify-content: center;
  }
  #topicBannerCarousel .layui-carousel-arrow {
    display: none !important; /* 手机端隐藏箭头，专注手势/自动轮播 */
  }
  #topicBannerCarousel .layui-carousel-ind {
    bottom: 20px !important;
  }

  /* 科技背景区 */
  /* .section-blue-header {
    padding: 60px 0 90px 0;
  } */
  .header-left .main-title {
    font-size: 24px;
  }
  .tag-pill {
    font-size: 11px;
    padding: 2px 10px;
  }
  .header-right p {
    font-size: 12.5px;
    line-height: 1.8;
  }

  /* 视频视窗 */
  /* .screen-container {
    margin-top: -65px;
  } */
  .screen-video-card {
    height: 220px;
  }
  .play-btn-circle {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  /* 特性卡片转为 2 列紧凑网格 */
  .features-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
  }
  .feature-item {
    width: 100%;
    padding: 16px 10px;
  }
  .feature-item:last-child {
    grid-column: span 2; /* 最后一项居中独占一行 */
  }
  .feature-item .icon-box {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .feature-item .item-title {
    font-size: 12.5px;
  }
  .section-iot-system {
    padding: 25px 0 50px 0;
  }

  .iot-title-box {
    font-size: 16px;
    padding: 3px 10px;
  }

  .iot-desc-wrap p {
    font-size: 12.5px;
    line-height: 1.8;
  }

  /* 手机端取消左右双列，改为卡片在上、图片在下的直列流 */
  .iot-row-group,
  .iot-row-group.reverse-group {
    flex-direction: column;
    gap: 15px;
    position: relative;
    /* 开启合成层，防止子元素重绘穿透 */
    contain: paint;
  }

  .iot-card-panel {
    width: 100%;
    position: relative;
    z-index: 2;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
  }

  .iot-card-panel .panel-header {
    height: 48px;
    font-size: 16px;
  }

  /* 隐藏左右箭头 */
  .iot-card-panel .indicator-arrow {
    display: none;
  }
  .left-panel .panel-item.active::after,
  .right-panel .panel-item.active::after {
    display: none !important; /* 移动端隐藏侧向三角 */
  }

  .panel-items-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-item {
    min-height: 42px;
    font-size: 13px;
    border: 1px solid #eeeeee;
  }

  .media-frame {
    min-height: 220px;
    height: 220px;
  }

  .gif-watermark {
    font-size: 14px;
  }
  .section-case .iot-title-line {
    padding: 20px 0;
  }
}
