/* ====================================================================
   solution-scoped.css —— 产品/解决方案页
   ▶ 对应 Vue 源码：src/views/product/solution.vue + toolkits.vue
     （scoped → #solution-page 前缀，两文件样式合并去重）
   ▶ pxTorem(N) = N/16 rem
   ==================================================================== */

/* ---------- 通用：覆盖全局 .section 高度 ---------- */
#solution-page .section {
  width: 100%;
  position: relative;
}
/* product matrix 与 toolkits 区块用 auto 高度（内容撑开）；
   section-4（系统模块）保持全局 100vh，其内部 absolute 定位内容依赖父容器高度 */
#solution-page .section-matrix,
#solution-page .section-suite { height: auto; max-height: unset; }
#solution-page .center {
  flex-direction: column;
  white-space: pre-wrap;
}

/* ---------- 字号通用（solution + toolkits 合并） ---------- */
#solution-page .s-48 { letter-spacing: calc(var(--letterSpacing) * 0.3); }
#solution-page .s-22 {
  line-height: 174%;
  letter-spacing: calc(var(--letterSpacing) * 0.19);
  opacity: 1;
}
#solution-page .grid-3 .s-22,
#solution-page .subtitle-info .s-22 {
  opacity: .8;
}
#solution-page .s-14 {
  letter-spacing: calc(var(--letterSpacing) * 0.15);
  opacity: .8;
}
#solution-page .s-18 {
  font-weight: 300;
  letter-spacing: calc(var(--letterSpacing) * 0.2);
}
#solution-page .en {
  line-height: 174%;
  letter-spacing: calc(var(--letterSpacing) * 0.225);
  font-weight: 300;
  text-transform: none;
}
#solution-page .blue {
  color: #1c82e6;
  opacity: 1;
  font-weight: 500;
  font-size: 2rem;
  margin-top: 1rem;
}

/* ---------- 内联 style 抽离 ---------- */
#solution-page .matrix-headline2 { margin-bottom: 5rem; }
#solution-page .matrix-icons-row {
  width: 100%;
  margin: 1rem 0;
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  align-items: center;
}
#solution-page .matrix-icons .matrix-icon {
  width: 5rem;
  height: 5rem;
  display: inline-block;
}
#solution-page .matrix-icons {
  white-space: normal;
}
#solution-page .matrix-icons .matrix-icon img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
#solution-page .product-info {
  flex: 1;
  font-size: 0;
}
#solution-page .item-pic {
  width: 40%;
  margin-left: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#solution-page .ex-dark { width: auto; }
#solution-page .w-full { width: 100%; }
#solution-page .suite-header {
  opacity: 0.8;
  text-transform: none;
  margin: 10% 0;
}
#solution-page .suite-content { margin: 1rem 5% 0 5%; }
#solution-page .tt-none { text-transform: none; }

/* ---------- 产品矩阵区块 ---------- */
#solution-page .section-matrix {
  width: 72.8%;
  margin-top: 10rem;
}
#solution-page .subtitle-info {
  text-align: left;
  width: 100%;
  border-left: 0.5rem #0082e6 solid;
  vertical-align: baseline;
  padding-left: 1rem;
  font-size: 0;
}
#solution-page .subtitle-info > div:first-child { color: #0082e6; }

#solution-page .pro {
  width: 100%;
  height: 12rem;
  display: flex;
  justify-content: center;
  margin: 4rem 0 5rem;
}
#solution-page .pro img {
  width: 100%;
  object-fit: contain;
}

/* 产品矩阵 grid-3：1列 grid，每个 item 是 flex row */
#solution-page .section-matrix .grid-3 {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(1, 1fr);
  margin-top: 6.2rem;  /* pxTorem(99) */
  gap: 4.375rem;  /* pxTorem(70) */
  position: relative;
}
#solution-page .product-item {
  background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  align-items: center;
}
#solution-page .type {
  width: 16rem;
  height: auto;
  flex-shrink: 0;
  font-size: 0;
}
#solution-page .type img {
  width: 100%;
  display: block;
}
#solution-page .item-divide {
  margin: 1rem 0;
  height: 0.2rem;
  width: 100%;
  background: #0082e6;
}
#solution-page .item-pic {
  width: 40%;
  margin-left: 1rem;
}
#solution-page .item-pic img {
  height: auto;
  object-fit: contain;
  width: 100%;
}
#solution-page .section-matrix .grid-3 ul {
  padding-left: 2rem !important;
  text-align: left;
  text-transform: none;
}

/* ---------- 解决方案套件区块（Toolkits） ---------- */
#solution-page .suite-header {
  text-align: center;
  font-size: 0;
}

#solution-page .module {
  display: flex;
  margin: 4.3125rem 0;  /* pxTorem(69) */
  width: 70%;
}
#solution-page .label { width: 20%; }
#solution-page .module .label { white-space: normal; }
#solution-page .module .label ul { margin-bottom: 0; }
#solution-page .module:first-child .label ul {
  margin-bottom: 1.5rem !important;  /* pxTorem(24) */
  text-align: left;
  padding: 0;
  margin: 0;
}
#solution-page .label ul li { list-style: disc; }
#solution-page .label > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: underline;
}
#solution-page .label > div > span { margin-left: 0.5625rem; }  /* pxTorem(9) */

#solution-page .grid-4 {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 2.5rem;  /* pxTorem(20) pxTorem(40) */
}
#solution-page .grid-4 > .item { letter-spacing: calc(var(--letterSpacing) * 0.0875); }

#solution-page .item {
  display: flex;
  flex-direction: column;
  text-align: left;
  white-space: pre-wrap;
}
#solution-page .item > div:first-child {
  width: 3.125rem;  /* pxTorem(50) */
  height: 3.125rem;
}
#solution-page .grid-4 .item > div:nth-child(2) {
  flex: 1;
  margin: 1rem 0 2.4375rem;  /* pxTorem(16) pxTorem(39) */
}
#solution-page .grid-6 .item > div:nth-child(2) {
  margin: 1rem 0 2.4375rem;
  height: 2rem;
}
#solution-page .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#solution-page .grid-6 {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 3.25rem;  /* pxTorem(52) */
}
#solution-page .shortline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  width: 3.75rem;  /* pxTorem(60) */
  height: 0;
}
#solution-page .grid-6 .shortline { margin: 0.625rem 0; }  /* pxTorem(10) */

/* 开放接口 grid-3：flex space-between */
#solution-page .section-suite .grid-3 {
  display: flex;
  opacity: 0.8;
  width: 80%;
  justify-content: space-between;
}
#solution-page .s-18 > div {
  background-image: url('/assets/dash-circle.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 12.5rem;  /* pxTorem(200) */
  height: 12.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  white-space: pre-wrap;
}
#solution-page .module:last-child { align-items: center; }
#solution-page .item:nth-child(n + 5) .shortline { display: none; }
#solution-page .label li { text-align: left; }

/* ---------- 系统模块区块 ---------- */
#solution-page .section .section-title { border: none; }

#solution-page .section-4 {
  position: relative;
  overflow: hidden;
  background-color: #d9d9d9;
  transition: all 3s;
}
#solution-page .section-4:hover { background-color: #222222; }
#solution-page .section-4 .parts {
  position: absolute;
  right: -5%;
  z-index: 1;
  width: 70%;
  top: 50%;
  transform: translate(0, -50%);
  opacity: 0.5;
}
#solution-page .section-4 .parts-text {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 72.5%;
  top: 47%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
#solution-page .section-4 .text {
  position: absolute;
  width: 100%;
  top: 40%;
  padding-right: 20%;
  color: #000;
}
#solution-page .section-4 .section-title {
  padding-bottom: 1rem;
  border-bottom: 1px solid #000;
  margin-right: 0;
  width: 50%;
}
#solution-page .section-4 .section-title .section-content { width: 70%; }
#solution-page .section-4:hover .text { opacity: 0; transition: all 3s; }
#solution-page .section-4:hover .parts {
  left: 46%;
  transform: translate(-50%, -50%);
  transition: all 3s;
}
#solution-page .section-4:hover .parts-text {
  opacity: 1;
  transition: all 1s 3s;
}
#solution-page .section-content { width: 75%; }

/* ---------- 底部入口 ---------- */
#solution-page .bottom-shadow:first-child {
  background-image: url('/assets/solution-link-bg.png');
}

/* ---------- 响应式 ---------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  #solution-page .type { width: 11rem; }
  #solution-page .blue { font-size: 1.8rem; }
  #solution-page .s-26 { font-size: 1.2rem; }
  #solution-page .s-22 { font-size: 1.625rem; }
  #solution-page .s-32 { font-size: 1.5rem; }

  /* 平板：系统模块区块（对齐线上：标题+图标一行占 80%、底盘图贴底）
     .section-4 .section-title 的 width:50% 特异性(1,2,0)高于下方移动端
     .section-title{width:100%}(1,1,0)，必须在此同特异性覆盖 */
  #solution-page .section-4 .section-title { width: 100%; }
  #solution-page .section-4 .parts { top: auto; bottom: 0; transform: none; }
  #solution-page .section-4:hover .parts { transform: translate(-50%, 0); }
}

@media screen and (max-width: 768px) {
  #solution-page .section-matrix { width: 80% !important; }
  #solution-page .type { width: 7rem; }
  #solution-page .blue { font-size: 1.2rem; }
  #solution-page .item-pic { width: 30%; }
  #solution-page .s-32 { font-size: 1.2rem; }
  #solution-page .s-26 { font-size: 1rem; }
  #solution-page .s-22 { font-size: 1.375rem; }
  #solution-page .s-48 { font-size: 3rem; }

  #solution-page .section-matrix .grid-3 { grid-template-columns: repeat(1, 1fr); }
  #solution-page .section-matrix .grid-3 > div { margin: 5% 0; }
  #solution-page .product-info { justify-content: space-evenly; }

  /* toolkits 移动端 */
  #solution-page .section-suite { padding: 5% 0; margin-bottom: 0; }
  #solution-page .section-suite > div:first-child { padding: 0 5%; }
  #solution-page .module { flex-direction: column; width: 100%; }
  #solution-page .module > div:last-child { padding: 0 10%; }
  #solution-page .module .label {
    width: 100%;
    padding: 5% 0;
    height: 20vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }
  #solution-page .item:nth-child(n + 5) .shortline { display: block; }
  #solution-page .item:nth-child(n + 7) .shortline { display: none; }
  #solution-page .module:nth-child(2n) > .label {
    background-image: url('/assets/tk1-bg.png');
    background-size: contain;
  }
  #solution-page .module:nth-child(2n + 1) > .label {
    background-image: url('/assets/tk2-bg.png');
    background-position: bottom;
  }
  #solution-page .module:nth-child(2) > .label ul,
  #solution-page .module:nth-child(3) > .label ul { margin-bottom: 0 !important; }
  #solution-page .module .label ul li { list-style: none; text-align: center; font-size: 1.375rem; }
  #solution-page .grid-4 {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 15%;
  }
  #solution-page .grid-6 {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  #solution-page .grid-6 > div { margin: 10% 0; }
  #solution-page .section-suite .grid-3 {
    width: 100%;
    justify-content: space-around;
  }
  #solution-page .section-suite .grid-3 > div { margin-right: 0; }

  /* 系统模块移动端 */
  #solution-page .section-4 { height: 500px; }
  #solution-page .section-4 .text { position: relative; top: 5%; }
  #solution-page .section-4 .section-title .section-content { width: 115%; }
  /* 标题一行+图标同行、占满 .text 内容区(≈80%)：覆盖上方 width:50% (特异性 1,2,0) */
  #solution-page .section-4 .section-title { width: 100%; }
  /* 底盘图贴底：absolute+bottom:0 不受文字流高度影响（relative top:60% 在标题
     不再折行后会上移出现空隙），hover 态同步 translate(-50%,0) */
  #solution-page .section-4 .parts {
    position: absolute;
    right: 0%;
    width: 100%;
    top: auto;
    bottom: 0;
    transform: none;
  }
  #solution-page .section-4:hover .parts { left: 50%; transform: translate(-50%, 0); transition: all 1s; }
  #solution-page .section-4:hover .text { opacity: 0; transition: all 1s; }
  #solution-page .section-4 .parts-text {
    left: 55%;
    width: 100%;
    top: 68%;
  }
  #solution-page .section-4:hover .parts-text { opacity: 1; transition: all 1s 1s; }

  #solution-page .section-title { width: 100%; padding-left: 5%; margin-right: 0; }
  #solution-page .section-content { width: 90%; }
}
