/* =========================================================
   产品列表页 Banner（pbanner-v2）+ 参数条（pparams）设计稿还原
   依赖：style.min.css 中的基础样式（本文件在其后加载）
   底图为整幅轮播图：桌面端按设计高度展示，文字位于图片左侧浅色区域
   ========================================================= */

/* ---------- 桌面端（≥992px） ---------- */
@media (min-width: 992px) {
  .pbanner-v2 {
    min-height: 560px;
  }

  /* 底图恢复整幅全屏展示 */
  .pbanner-v2-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  /* 图片本身已有浅色文字区，避免遮罩使设备和紫色背景发白 */
  .pbanner-v2-mask {
    background: none;
  }

  .pbanner-v2-inner {
    min-height: 560px;
    padding: 60px 24px 60px 60px;
  }

  .pbanner-v2-content {
    max-width: 520px;
  }

  /* 标题使用衬线（宋体风格）字体 */
  .pbanner-v2-title {
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
      "SimSun", serif;
    font-size: 46px;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 22px;
  }

  .pbanner-v2-content--with-subtitle .pbanner-v2-title {
    margin-bottom: 72px;
  }

  /* 副标题使用设计稿中的紫色层级 */
  .pbanner-v2-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #7c3aed;
    margin: 0 0 18px;
  }

  .pbanner-v2-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.9;
    max-width: 440px;
    margin: 0 0 30px;
  }

  /* 按钮更紧凑；描边按钮白底 */
  .pbanner-v2-btn {
    padding: 10px 22px;
    font-size: 13px;
  }

  .pbanner-v2-btn-outline {
    background: #fff;
  }

  /* ---------- 参数条：4 列左对齐 + 竖分隔线 ---------- */
  .pparams .pparams-row {
    flex-wrap: nowrap;
  }

  .pparams .pparam-item {
    text-align: left;
    padding: 4px 32px;
  }

  .pparams .pparam-item:first-child {
    padding-left: 0;
  }

  .pparams .pparam-item + .pparam-item {
    border-left: 1px solid #ececec;
  }

  .pparams .pparam-item .pparam-label {
    color: #333;
    font-size: 12px;
  }

  .pparams .pparam-item .pparam-value {
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
      "SimSun", serif;
    font-size: 22px;
    font-weight: 600;
  }
}

/* ---------- 大屏（≥1200px）：内容与 62% 容器对齐（与页脚/CTA 一致） ---------- */
@media (min-width: 1200px) {
  .pbanner-v2-inner {
    padding-left: 19%;
    padding-right: 19%;
  }

  .pparams .container {
    max-width: 100%;
  }
}

/* ---------- 小屏（<992px）沿用原有整幅背景图版式，不做改动 ---------- */

/* =========================================================
   our-journey（设备/算法/应用闭环）设计稿还原
   注：style.min.css 末尾的同名规则带 !important，此处同样需要
   ========================================================= */

/* ---------- 桌面端（≥992px） ---------- */
@media (min-width: 992px) {
  .our-journey {
    padding: 70px 0;
  }

  .our-journey--stack .container {
    max-width: 77%;
  }

  /* 标题使用衬线（宋体风格）字体 */
  .our-journey .oj-header .oj-title {
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
      "SimSun", serif !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
  }

  .our-journey .oj-header .oj-subtitle {
    font-size: 14px !important;
    color: #999 !important;
  }

  /* 三项改为带边框的白底卡片，去掉顶部通栏分隔线 */
  .our-journey .oj-items {
    border-top: none;
    gap: 20px;
  }

  .our-journey .oj-items .oj-item {
    flex: 1 1 0;
    background: #fff;
    border: 1px solid #ECEAF2;
    border-radius: 4px;
    padding: 26px 24px 30px;
  }

  .our-journey .oj-items .oj-item .oj-year {
    font-size: 11px !important;
    margin-bottom: 14px !important;
  }

  /* 卡片标题使用衬线字体 */
  .our-journey .oj-items .oj-item .oj-item-title {
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
      "SimSun", serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
  }

  .our-journey .oj-items .oj-item .oj-desc {
    font-size: 13px !important;
    color: #999 !important;
    line-height: 1.8;
  }
}

/* ---------- 大屏（≥1200px）：与 62% 版心对齐 ---------- */
@media (min-width: 1200px) {
  .our-journey .container {
    max-width: 77%;
  }
}

/* ---------- 产品列表页 our-journey--stack：标题区纵向排列（设计稿还原） ---------- */
.our-journey--stack .oj-header {
  display: block;
  max-width: 100%;
}

.our-journey--stack .oj-header .oj-title {
  width: 100%;
}

.our-journey--stack .oj-header .oj-subtitle {
  width: 100%;
}

/* ---------- 产品卡片点击锚点跳转本页详情区 ---------- */
html {
  scroll-behavior: smooth;
}

#pfDetail {
  scroll-margin-top: 110px;
}

@media (max-width: 991.98px) {
  #pfDetail {
    scroll-margin-top: 80px;
  }
}

/* =========================================================
   手机端（≤991px）设计稿还原：
   Banner 左文右图（右紫色产品区裁切）、参数条 4 项一行、
   our-journey 三卡并排
   ========================================================= */

/* ---------- Banner：左白底文字 + 右侧 banner 紫色产品区 ---------- */
@media (max-width: 991.98px) {
  .pbanner-v2 {
    min-height: 400px;
    background: #f6f5f7;
  }

  /* 底图只展示右侧（紫色 + 产品），左侧由遮罩盖成浅色文字区 */
  .pbanner-v2-bg {
    left: 52%;
    width: 48%;
    object-position: 75% center;
  }

  .pbanner-v2-mask {
    background: linear-gradient(
      90deg,
      #f6f5f7 0%,
      #f6f5f7 40%,
      rgba(246, 245, 247, 0.55) 56%,
      rgba(246, 245, 247, 0) 72%
    );
  }

  .pbanner-v2-inner {
    min-height: 400px;
    padding: 44px 0;
  }

  .pbanner-v2-content {
    max-width: 58%;
  }

  .pbanner-v2-eyebrow {
    font-size: 9px;
    gap: 8px;
    margin-bottom: 12px;
  }

  .pbanner-v2-eyebrow::before {
    width: 18px;
  }

  .pbanner-v2-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .pbanner-v2-desc {
    font-size: 11px;
    line-height: 1.8;
    margin-bottom: 16px;
  }

  .pbanner-v2-btns {
    gap: 10px;
  }

  .pbanner-v2-btn {
    padding: 8px 14px;
    font-size: 11px;
    gap: 6px;
  }
}

@media (max-width: 575.98px) {
  .pbanner-v2 {
    min-height: 340px;
  }

  .pbanner-v2-inner {
    min-height: 340px;
    padding: 34px 0;
  }

  .pbanner-v2-title {
    font-size: 18px;
  }

  .pbanner-v2-desc {
    font-size: 10px;
  }

  .pbanner-v2-btn {
    padding: 7px 12px;
    font-size: 10px;
  }
}

/* ---------- 参数条：手机端保持 4 项一行，小字左对齐 ---------- */
@media (max-width: 767.98px) {
  .pparams {
    padding: 14px 0;
  }

  .pparams .pparams-row {
    flex-wrap: nowrap;
  }

  .pparams .pparams-row .pparam-item {
    flex: 1 1 0;
    padding: 2px 10px;
    text-align: left;
    border-bottom: none;
  }

  .pparams .pparams-row .pparam-item:nth-child(odd) {
    border-right: none;
  }

  /* 恢复所有项之间的竖分隔线（覆盖基础样式的隐藏规则） */
  .pparams .pparams-row .pparam-item:nth-child(2)::before,
  .pparams .pparams-row .pparam-item:nth-child(3)::before,
  .pparams .pparams-row .pparam-item:nth-child(4)::before {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    width: 1px;
    background: #ececec;
  }

  .pparams .pparams-row .pparam-item .pparam-label {
    font-size: 9px;
    color: #999;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
  }

  .pparams .pparams-row .pparam-item .pparam-value {
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
      "SimSun", serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
  }
}

/* ---------- our-journey：标题通栏 + 三张白底小卡并排 ---------- */
@media (max-width: 767.98px) {
  .our-journey {
    padding: 32px 0;
  }

  .our-journey .oj-header {
    margin-bottom: 18px;
  }

  .our-journey .oj-header .oj-eyebrow {
    font-size: 9px !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.12em !important;
  }

  .our-journey .oj-header .oj-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }

  .our-journey .oj-header .oj-subtitle {
    font-size: 11px !important;
    line-height: 1.7 !important;
  }

  .our-journey .oj-items {
    flex-direction: row !important;
    flex-wrap: nowrap;
    border-top: none !important;
    gap: 10px;
  }

  .our-journey .oj-items .oj-item {
    flex: 1 1 0 !important;
    min-width: 0;
    padding: 14px 12px !important;
    background: #fff;
    border: 1px solid #ececec !important;
    border-radius: 6px;
  }

  .our-journey .oj-items .oj-item .oj-year {
    font-size: 9px !important;
    margin-bottom: 8px !important;
  }

  .our-journey .oj-items .oj-item .oj-item-title {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }

  .our-journey .oj-items .oj-item .oj-desc {
    font-size: 9px !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 575.98px) {
  .our-journey {
    padding: 26px 0;
  }

  .our-journey .oj-items {
    gap: 8px;
  }

  .our-journey .oj-items .oj-item {
    padding: 12px 10px !important;
  }

  .our-journey .oj-items .oj-item .oj-item-title {
    font-size: 11px !important;
  }

  .our-journey .oj-items .oj-item .oj-desc {
    font-size: 8px !important;
  }
}
