.container_main {
  max-width: 100%;
}

.section {
  width: var(--container_main_vw);
  margin: auto;
}

.section {
  padding: 1.5rem 0;
  position: relative;
}

.section .header {
  /* margin-top: 1rem; */
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 0.15rem solid #e60012;
}

.section h2 {
  color: #333;
  font-weight: 500;
  text-indent: 1.1em;
}

/* 平台介绍 */
.intro-text {
  display: inline-block;
  text-indent: 2em;
  color: #000;
  letter-spacing: 0.5px;
  line-height: 2;
}

.intro-content img {
  width: 30%;
  border-radius: 10px;
  border: 0.20rem solid var(--primary-color);
  height: auto;
  object-fit: cover;
  margin-left: 0.5rem;
}

/* 视频遮罩层：全屏覆盖，默认隐藏 */
.video-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
}

/* 遮罩层显示时的样式 */
.video-mask.active {
  opacity: 1;
  visibility: visible;
}

/* 视频容器：控制视频最大尺寸 */
.video-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  /* overflow: hidden; */
}

/* 视频样式：自适应容器 */
.video-container video {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}

.video-container .icon-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .top-nav {
    display: none;
  }

  .intro-content {
    padding: 1.5rem;
  }

  .intro-content img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin-bottom: 0.5rem;
    margin-left: 0;
  }

  .video-container {
    width: 100%;
  }

  .video-container .icon-close {
    position: absolute;
    bottom: -60px;
    top: auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* 平台产品 */
.product,
.process {
  width: 100%;

  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  background-position: center;
  z-index: 1;
  position: relative;
}

.product-content {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 500px;
}

.base-line {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e60012;
  z-index: 1;
}

.product-item {
  width: calc(100% / 5.5);
  aspect-ratio: 1/1;
  border-radius: 50%;
  z-index: 2;
  flex-shrink: 0;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* 上半圆 */
.product-item:nth-child(2n)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 6px dotted #e60012;
  border-bottom: none;
  border-radius: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  box-sizing: border-box;
  z-index: -1;
}

/* 下半圆 */
.product-item:nth-child(2n + 1)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 6px dotted #e60012;
  border-top: none;
  border-radius: 50%;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  box-sizing: border-box;
  z-index: -1;
}

.product-image {
  margin: 15%;
  padding: 8%;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 18px 4px rgba(55, 65, 134, 0.19);
}

.product-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  transition: all .6s;
}

.bounding-box {
  padding: 0.8rem 0.4rem;
  border-radius: 4px;
  background-color: #e60012;
  color: white;
  font-size: clamp(0.9rem, 1.5vw, 1.06rem);
  /* white-space: nowrap; */
}

/* 标识框下 */
.product-item:nth-child(2n) .bounding-box {
  position: absolute;
  bottom: 0;
  margin: auto;
  transform: translateY(100%);
}

.product-item:nth-child(2n) .bounding-box::after {
  content: '';
  position: absolute;
  top: 0;
  transform: translateX(-50%) translateY(-95%);
  left: 50%;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #e60012 transparent;
}

/* 标识框上 */
.product-item:nth-child(2n + 1) .bounding-box {
  position: absolute;
  top: 0;
  margin: auto;
  transform: translateY(-100%);
}

.product-item:nth-child(2n + 1) .bounding-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10%);
  border-width: 10px;
  border-style: solid;
  border-color: #e60012 transparent transparent transparent;
}

@media (max-width: 768px) {
  .product-content {
    flex-direction: column;
    height: auto;
  }

  .base-line {
    width: 1px;
    height: 100%;
    top: 0;
  }

  .product-item {
    width: 40%;
    margin-bottom: 5%;
  }

  .product-item:nth-child(2n)::before {
    transform: rotate(90deg);
  }

  .product-item:nth-child(2n + 1)::before {
    transform: rotate(90deg);
  }

  .product-item:nth-child(2n) .bounding-box {
    bottom: auto;
    transform: translateX(-100%);
    width: 80%;
  }

  .product-item:nth-child(2n) .bounding-box::after {
    top: 50%;
    transform: translateX(90%) translateY(-50%);
    right: 0;
    left: auto;
    border-color: transparent transparent transparent #e60012;
  }

  .product-item:nth-child(2n + 1) .bounding-box {
    top: auto;
    transform: translateX(100%);
    width: 80%;
  }

  .product-item:nth-child(2n + 1) .bounding-box::after {
    top: 50%;
    left: 0;
    transform: translateX(-90%) translateY(-50%);
    border-color: transparent #e60012 transparent transparent;
  }
}

/* 平台优势 */
.advantages {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(min-content, 1fr);
  grid-auto-rows: minmax(min-content, 1fr); /* 保证隐式行也有高度，避免卡片溢出被下个板块盖住 */
  position: relative;
  gap: 5%;
  padding: 2% 0;
  box-sizing: border-box;
}

.advantage-card {
  background-color: #e60012;
  color: #fff;
  border-radius: 10px;
  padding: 2rem 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.advantage-card .card-header {
  background-color: #999;
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.advantage-card .card-body {
  padding: 0 1rem;
  flex: 1;
}

.card-body p {
  line-height: 2;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

@media (max-width: 768px) {
  .advantages {
    grid-template-columns: repeat(2, 1fr);
    gap: 3%;
  }
}

/* 技术流程 */
.process-content {
  width: 100%;
  padding: 3% 0;
}

.process-content img {object-fit: contain;}

/* 结果展示 */
.fig-row-1 {
  /* display: grid; */
  /* grid-template-columns: repeat(3, 1fr); */
  /* gap: 20px; */
  margin-bottom: 30px;
}

.fig-row-2 {
  /* display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr;
  gap: 20px; */
  margin-bottom: 30px;
}

.fig-item {
  text-align: center;
}

.fig-item img {
  width: 100%;
  height: auto;
}

/* 统计图表区域（4列等宽） */
.fig-row-3 {
  /* display: grid;
  grid-template-columns: 2fr 3fr 3fr 3fr; */
  /* 4列自动平分宽度 */
  /* gap: 20px;
  justify-content: center; */
  margin-bottom: 30px;
}

.fig-item p {
  margin: 10px 0;
}

.fig-item img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.swiper .subtitle {
  text-align: center;
  font-size: 1.5rem;
  margin: 1.5rem 0;
}

.swiper-scrollbar {
  background: #eaeaff;
}

.swiper-scrollbar-drag {
  background: #e60012;
}

@media (max-width: 768px) {
  .fig-item img {
    height: 100px;
    object-fit: cover;
  }
}

/* 服务联系 */
.contact-content p {
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
}

.contact-content {
  margin-bottom: 2rem;
}

.btn-primary {
  --bs-btn-bg: #e60012;
  --bs-btn-border-color: #e60012;
  --bs-btn-border-radius: 20px;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: 0.375rem;
  --bs-btn-hover-bg: var(--primary-color);
  --bs-btn-hover-border-color: var(--primary-color);
  --bs-btn-active-bg: var(--primary-color);
  --bs-btn-active-border-color: var(--primary-color);
}