/* ============================================================
   精益生产页 · 两张示意图的「网页原生重绘」
   原图：175971971.webp（变革三步走路径图）/ 175971984.webp（天龙八部体系图）
   问题：PPT 位图，宋体黑体混排、高饱和亮蓝大色块，缩放后小字发虚，
         与全页「白底 + 思源黑体 + 深灰正文 + 细灰线」的基调冲突。
   方案：文字全部改为真实 HTML 文本，沿用全页字体栈；图形用 CSS/SVG 重画；
         配色降为克制的商务蓝 + 浅灰蓝底，与上一轮 yj-lean-block.css 同一套语言。
   命名空间 yjdg- / yjpath- / yjhouse-，避免污染速成美站模板样式。
   ============================================================ */
.yjdg,
.yjdg * { box-sizing: border-box; }

.yjdg {
  width: 100%;
  font-family: 'Source Han Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #45525f;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(20, 60, 105, .035);
  padding: 20px 24px;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.yjdg h3, .yjdg h4, .yjdg p, .yjdg ul, .yjdg li { margin: 0; padding: 0; }
.yjdg ul { list-style: none; }

/* 容器兜底：模板图片组件自带的 padding / 边框 / 背景 / 脚本描边全部清零
   注意只作用于父容器，不能落到 .yjdg 自身，否则会清掉卡片的边框与内边距 */
#smv_con_79_13, #smv_con_82_51 { height: auto !important; }
#smv_con_79_13 .yibuFrameContent,
#smv_con_82_51 .yibuFrameContent {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
/* 两张图统一宽度，左右边缘对齐：页面是绝对定位画布，原图 1053 / 1086 并不齐 */
#yj-path-diagram  { width: 1053px; }
#yj-house-diagram { width: 1053px; }

/* ---------- 共用零件 ---------- */
.yjdg-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}
.yjdg-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #0d6fb8;
  white-space: nowrap;
}
.yjdg-legend { font-size: 12px; color: #8794a3; letter-spacing: .2px; }

.yjdg-tag {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #3f4c5a;
  background: #f5f9fe;
  border: 1px solid #e4edf8;
  border-radius: 4px;
  padding: 5px 9px;
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   A. 精益生产变革「三步走」路径图
   ============================================================ */
.yjpath-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 18px;
  align-items: stretch;
}
.yjpath-step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 366px;
  background: #fcfdff;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 16px 16px 14px;
}
.yjpath-step::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: #8fbde8;
}
.yjpath-s2::before { background: #4b95d3; }
.yjpath-s3::before { background: #0d6fb8; }
/* 递进箭头，落在列间空白处 */
.yjpath-step:not(:last-child)::after {
  content: "\203A";
  position: absolute;
  right: -15px;
  top: 46%;
  font-size: 20px;
  line-height: 1;
  color: #b9cde0;
  z-index: 2;
}
.yjpath-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #0d6fb8;
  margin-bottom: 4px;
}
.yjpath-step h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #1f232b;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e9eef5;
}
.yjpath-list { display: flex; flex-direction: column; gap: 7px; }
.yjpath-list li {
  font-size: 13px;
  line-height: 1.5;
  color: #45525f;
  padding-left: 14px;
  position: relative;
}
.yjpath-list li::before {
  content: "";
  position: absolute;
  left: 1px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #9dc4e8;
}
.yjpath-foot {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #0a4f8a;
  letter-spacing: .3px;
}

/* 第二步：标准化 + 专题蜂巢（改为整齐标签网格） */
.yjpath-std {
  background: #eaf4fd;
  border: 1px solid #d5e7f8;
  border-radius: 6px;
  padding: 9px 10px;
  margin-bottom: 12px;
}
.yjpath-std strong { display: block; font-size: 12.5px; color: #0a4f8a; margin-bottom: 3px; }
.yjpath-std span { font-size: 11.5px; color: #4a6076; line-height: 1.6; }
.yjpath-hex { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

/* 第三步：PDCA 飞轮 + 四问 + 制度体系 */
.yjpath-pdca { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.yjpath-wheel { flex: 0 0 104px; width: 104px; height: 104px; }
.yjpath-ask { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.yjpath-ask div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #f5f9fe;
  border: 1px solid #e4edf8;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #45525f;
  white-space: nowrap;
}
.yjpath-ask b { flex: 0 0 auto; font-size: 11.5px; color: #0a4f8a; font-weight: 700; }
.yjpath-sys-t {
  font-size: 11px;
  font-weight: 700;
  color: #8794a3;
  letter-spacing: .6px;
  margin-bottom: 7px;
}
.yjpath-sys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.yjpath-sys .yjdg-tag { font-size: 11px; padding: 4px 5px; text-align: left; }
.yjpath-sys .yjdg-tag.g { background: #f3faf6; border-color: #dcefe3; color: #3c6650; }

/* ============================================================
   B. 精益经营体系「天龙八部」
   ============================================================ */
.yjhouse { padding: 14px 20px 16px; }
.yjhouse-roof {
  position: relative;
  height: 54px;
  text-align: center;
  margin-bottom: 8px;
}
.yjhouse-roof::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #dcecfb 0%, #f0f8ff 100%);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.yjhouse-roof::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #c9dff3;
}
.yjhouse-roof > * { position: relative; z-index: 1; }
.yjhouse-roof strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0a4f8a;
  line-height: 1.35;
  padding-top: 6px;
}
.yjhouse-roof span { display: block; font-size: 11.5px; color: #4a6076; line-height: 1.5; }
.yjhouse-beam {
  background: #0d6fb8;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  text-align: center;
  padding: 9px 10px;
  margin-bottom: 12px;
}
.yjhouse-cols {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.yjhouse-col {
  background: #f7fbff;
  border: 1px solid #e1ebf6;
  border-radius: 6px;
  padding: 9px 5px 7px;
  display: flex;
  flex-direction: column;
}
.yjhouse-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #0a4f8a;
  text-align: center;
  line-height: 1.35;
  padding-bottom: 8px;
  margin-bottom: 7px;
  border-bottom: 1px solid #dce8f6;
  white-space: nowrap;
}
.yjhouse-col ul { flex: 1; }
.yjhouse-col li {
  font-size: 12px;
  line-height: 1.4;
  color: #45525f;
  text-align: center;
  padding: 5px 1px;
  border-bottom: 1px dashed #e6eef7;
  white-space: nowrap;
}
.yjhouse-col li:last-child { border-bottom: 0; }
.yjhouse-base {
  background: #eaf4fd;
  border: 1px solid #d5e7f8;
  border-radius: 6px;
  padding: 8px 12px 10px;
  text-align: center;
}
.yjhouse-base strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0a4f8a;
  margin-bottom: 7px;
}
.yjhouse-base ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.yjhouse-base li {
  font-size: 12px;
  line-height: 1.4;
  color: #3f4c5a;
  background: #fff;
  border: 1px solid #d7e7f6;
  border-radius: 4px;
  padding: 5px 2px;
  white-space: nowrap;
}

/* 窄屏兜底：画布固定宽度，缩小时避免文字挤断 */
@media (max-width: 1180px) {
  .yjpath-grid { gap: 12px; }
  .yjpath-step { padding: 12px 11px; }
  .yjhouse-col li, .yjhouse-base li { font-size: 11px; }
}
