/* ==========================================================================
   SecIC 产品页专属样式
   ========================================================================== */

/* ── 头部 Banner ──
   用 padding-top 百分比撑高，保持设计稿 1920×720 宽高比（720/1920=37.5%）
   随视口宽度线性缩放，background-size:cover 始终铺满。
*/
.second-banner {
  width: 100%;
  padding-top: 37.5%; /* 720 / 1920 */
  height: 0;
  position: relative;
  background-color: #ffffff;
  background-image: url("../../home/images/securityproducts/secIP/banner_secip.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 文字层：覆盖 pc.css 的固定 width/left/transform，改为百分比定位 */
.second-banner .second-banner-letter {
  position: absolute;
  inset: 0;
  width: auto; /* 覆盖 pc.css width:1200px */
  left: 0;
  top: 0;
  transform: none; /* 覆盖 pc.css translate(-50%,-50%) */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: clamp(40px, 14.17%, 272px); /* 250px / 1920px，带鱼屏上限 */
  padding-top: 13.02%; /* 272px / 1920px（百分比相对父宽度） */
  max-width: 55%;
  box-sizing: border-box;
}

/* clamp(移动端值, 视口比例, PC端值) 线性缩放 */
.banner-letter-big {
  font-size: clamp(26px, 3.125vw, 60px);
  font-weight: 500;
  line-height: 150%;
  /* letter-spacing: clamp(2px, 0.42vw, 8px); */
  color: #ffffff;
}

.banner-letter-sm2 {
  font-size: clamp(13px, 1.15vw, 22px);
  font-weight: normal;
  line-height: 150%;
  /* letter-spacing: 1px; */
  color: #ffffff;
}

/* ── 移动端 Banner（≤768px）──
   参考 hero-section：换手机专属背景图，::before 撑高图片区，文字流到下方
*/
@media (max-width: 768px) {
  .second-banner {
    height: auto;
    min-height: 551px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background-image: url("../../home/images/securityproducts/secIP/banner_secip_mobile.webp") !important;
    background-size: cover;
    background-position: center center;
  }

  .second-banner::before {
    content: "";
    display: block;
    width: 100%;
    padding-bottom: 100%;
    flex-shrink: 0;
  }

  /* 文字区流到图片下方 */
  .second-banner .second-banner-letter {
    position: static;
    inset: auto;
    max-width: 100%;
    padding: 0px 60px 61px 16px;
  }

  .banner-letter-big {
    margin-bottom: 12px;
  }
}

/* 标题英文水印底字 */
.page-title-en {
  font-family: DIN OT;
  font-size: clamp(50px, 6.46vw, 124px);
  font-weight: bold;
  line-height: 100%;
  letter-spacing: 0.03em;
  color: #f3f3f3;
  padding-top: 2.4%;
  text-align: center;
}

.page-title-big {
  font-size: clamp(20px, 2.08vw, 40px);
  font-weight: bold;
  line-height: 100%;
  letter-spacing: 0em;
  color: #000000;
  text-align: center;
  margin-top: -1.04%;
}

/* ── 应用领域网格 ── */
.secip-cases-grid {
  display: flex;
  margin-top: clamp(26px, 3.65vw, 70px);
  margin-bottom: clamp(20px, 6.77vw, 130px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 clamp(20px, 13.02vw, 250px);
  height: clamp(300px, 37.5vw, 720px);
  box-sizing: border-box;
}

/* 6 宫格应用领域（3×2），总高度与 SecIC 应用领域一致 */
.secip-cases-grid--six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
}

.secip-cases-grid--six .secip-cases-item {
  min-height: 0;
}

.secip-cases-grid--six .secip-cases-item.is-active {
  background-image: var(--item-bg-hover);
  z-index: 2;
}

.secip-cases-main {
  flex: 0 0 33.3%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-image: var(--item-bg);
  background-size: cover;
  background-position: center;
}

.secip-cases-main::after {
  content: "";
  position: absolute;
  inset: 0;
  
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.secip-cases-main:hover::after {
  opacity: 1;
}

.secip-cases-main:hover {
  z-index: 2;
  background-image: var(--item-bg-hover);
}

.secip-cases-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.secip-cases-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.secip-cases-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-image: var(--item-bg);
  background-size: cover;
  background-position: center;
}

.secip-cases-item::after {
  content: "";
  position: absolute;
  inset: 0;
  
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.secip-cases-item:hover::after {
  opacity: 1;
}

.secip-cases-item:hover {
  z-index: 2;
  background-image: var(--item-bg-hover);
}

.secip-cases-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片标签（icon + 文字） */
.secip-cases-label {
  position: absolute;
  z-index: 2;
  bottom: clamp(20px, 2.08vw, 40px);
  left: clamp(20px, 2.08vw, 40px);
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 0.625vw, 12px);
  color: #fff;
  font-size: clamp(14px, 1.04vw, 20px);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0em;
}

.secip-cases-label img {
  width: clamp(30px, 3.125vw, 60px);
  height: clamp(30px, 3.125vw, 60px);
}

/* 底盘大图说明文字 */
.secip-cases-desc {
  font-size: 14px;
  font-weight: normal;
  line-height: 170%;
  letter-spacing: 0em;
  text-align: center;
}

@media (min-width: 769px) {
  .secip-cases-label {
    transition: transform 0.4s ease;
  }

  .secip-cases-desc {
    display: none; /* PC端默认隐藏 */
  }

  .secip-cases-main:hover .secip-cases-label,
  .secip-cases-item:hover .secip-cases-label {
    left: 0;
    width: 100%;
    transform: translateY(
      clamp(-30px, -1.56vw, -15px)
    ); /* 水平居中并向上浮动 */
    bottom: 0;
    padding: 0;
  }

  .secip-cases-main:hover .secip-cases-desc,
  .secip-cases-item:hover .secip-cases-desc {
    display: block;
    animation: heroFadeIn 0.4s ease-out both;
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heroFadeIn {
  animation: heroFadeIn 1.2s ease-out both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── 产品优势卡片 ── */
.back-gry {
  background: rgba(242, 243, 245, 0.7);
}

.font-gry {
  color: #eff0f3;
}

.secip-adv-list {
  display: flex;
  gap: clamp(16px, 2.16vw, 41px);
  margin-top: clamp(26px, 3.65vw, 70px);
  padding: 0 clamp(16px, 13.02vw, 250px) clamp(60px, 6.77vw, 130px);
}

.secip-adv-item {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: clamp(24px, 3.54vw, 68px) 38px
    clamp(24px, 3.54vw, 68px) 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.secip-adv-item > img {
  width: clamp(60px, 6.25vw, 120px);
  height: clamp(54px, 5.84vw, 112px);
  object-fit: contain;
  margin-bottom: clamp(10px, 1.56vw, 30px);
}

.secip-adv-name {
  font-size: clamp(14px, 2.08vw, 24px);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0em;
  color: #333333;
  margin-bottom: clamp(10px, 1.56vw, 16px);
  text-align: center;
}

.divider-line {
  width: clamp(35px, 3.64vw, 75px);
  height: clamp(2px, 0.39vw, 3px);
  background-color: var(--color-primary);
  margin-bottom: clamp(10px, 1.56vw, 16px);
}

.secip-adv-text {
  font-size: clamp(12px, 1.04vw, 14px);
  font-weight: normal;
  line-height: 150%;
  letter-spacing: 1px;
  color: #333333;
  text-align: center;
}

.site-lang-en .secip-adv-text {
  align-self: stretch;
  width: 100%;
  text-align: left;
}

/* ── 移动端适配 ── */
@media (max-width: 768px) {
  .secip-cases-grid {
    flex-direction: column;
    height: auto;
    padding: 0 4.26vw; /* 16px */
    gap: 2.66vw; /* 10px */
  }

  .secip-cases-grid--six {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 2.66vw;
  }

  .secip-cases-main,
  .secip-cases-item {
    flex: none;
    height: 53.33vw; /* 200px */
  }

  .secip-cases-right {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 2.66vw; /* 10px */
  }

  /* 增加 .secip-cases-grid 前缀提升权重，替代 !important */
  /* 重置所有卡片默认状态（左下角，无遮罩，无描述） */
  .secip-cases-grid .secip-cases-main::after,
  .secip-cases-grid .secip-cases-item::after {
    opacity: 0;
    background: rgba(255, 143, 7, 0.8);
    transition: opacity 0.3s ease;
  }

  .secip-cases-grid .secip-cases-label,
  .secip-cases-grid .secip-cases-main:hover .secip-cases-label,
  .secip-cases-grid .secip-cases-item:hover .secip-cases-label {
    top: auto;
    bottom: 4vw; /* 15px */
    left: 4vw; /* 15px */
    transform: none;
    padding: 0;
    width: auto;
    align-items: center;
    gap: 1.6vw; /* 6px */
    font-size: 3.73vw; /* 14px */
  }

  .secip-cases-grid .secip-cases-label img {
    width: 8.53vw; /* 32px */
    height: 8.53vw;
  }

  /* 默认隐藏描述文字，同时覆盖 PC 端的 hover 显示 */
  .secip-cases-grid .secip-cases-desc,
  .secip-cases-grid .secip-cases-main:hover .secip-cases-desc,
  .secip-cases-grid .secip-cases-item:hover .secip-cases-desc {
    display: none;
  }

  /* ========== 点击后的激活状态 (.is-active) ========== */
  .secip-cases-grid .secip-cases-main.is-active::after,
  .secip-cases-grid .secip-cases-item.is-active::after {
    opacity: 1; /* 显示主题色遮罩 */
  }

  .secip-cases-grid .secip-cases-main.is-active .secip-cases-label,
  .secip-cases-grid .secip-cases-item.is-active .secip-cases-label {
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -10.66vw); /* -40px */
    align-items: center;
    width: 100%;
  }

  .secip-cases-grid .secip-cases-main.is-active .secip-cases-desc,
  .secip-cases-grid .secip-cases-item.is-active .secip-cases-desc {
    display: block;
    text-align: center;
    font-size: 3.2vw; /* 12px */
    animation: heroFadeIn 0.4s ease-out both;
    padding: 0 46px;
  }

  .secip-adv-list {
    flex-direction: column;
    padding: 0 4.26vw 16vw; /* 强制移动端左右内边距为16px，底部60px */
  }
}

/* ── 产品介绍 ── */
.secip-intro-content {
  margin-top: clamp(26px, 3.65vw, 70px);
  padding: 0 clamp(16px, 13.02vw, 250px) clamp(60px, 6.77vw, 130px);
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 3.125vw, 60px);
}

.secip-intro-section {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.04vw, 20px);
}

.secip-intro-label {
  font-size: clamp(16px, 1.67vw, 32px);
  font-weight: 600;
  line-height: 150%;
  color: var(--color-primary);
  position: relative;
  padding-left: clamp(12px, 1.04vw, 20px);
}

.secip-intro-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(3px, 0.31vw, 6px);
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.secip-intro-text {
  font-size: clamp(13px, 1.04vw, 16px);
  font-weight: normal;
  line-height: 180%;
  letter-spacing: 0.5px;
  color: #333333;
}

.secip-intro-text p {
  margin: 0;
  margin-bottom: clamp(10px, 0.83vw, 16px);
}

.secip-intro-text p:last-child {
  margin-bottom: 0;
}

/* 产品介绍概述段落 */
.intro-overview {
  margin-bottom: clamp(20px, 2.08vw, 40px) !important;
  line-height: 200%;
}

/* 产品介绍功能列表 */
.intro-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-feature-list > li {
  position: relative;
  padding-left: clamp(20px, 2.08vw, 40px);
  margin-bottom: clamp(12px, 1.25vw, 24px);
  line-height: 180%;
}

.intro-feature-list > li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: clamp(12px, 0.83vw, 16px);
}

.intro-feature-list > li:last-child {
  margin-bottom: 0;
}

/* Sutra 多级 Agent 列表 */
.intro-agent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-agent-list > li {
  position: relative;
  padding-left: clamp(20px, 2.08vw, 40px);
  margin-bottom: clamp(20px, 2.08vw, 40px);
}

.intro-agent-list > li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-size: clamp(12px, 0.83vw, 16px);
}

.intro-agent-list > li:last-child {
  margin-bottom: 0;
}

.agent-title {
  font-weight: normal;
  margin-bottom: clamp(8px, 0.83vw, 16px);
  line-height: 180%;
}

.agent-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.agent-features > li {
  position: relative;
  padding-left: clamp(16px, 1.67vw, 32px);
  margin-bottom: clamp(8px, 0.83vw, 16px);
  line-height: 180%;
}

.agent-features > li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: #666;
  font-size: clamp(10px, 0.73vw, 14px);
}

.agent-features > li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .secip-intro-content {
    padding: 0 4.26vw 16vw;
    gap: 8vw;
  }

  .secip-intro-label {
    padding-left: 3.2vw;
  }

  .secip-intro-label::before {
    width: 1.06vw;
  }
}

/* 产品介绍列表中的加粗文本 */
.intro-feature-list strong,
.intro-agent-list strong,
.agent-title strong {
  font-weight: 600;
  color: inherit;
}
