/* ========== 生产管理页专属样式 ========== */

/* 主图：与 about 页 about-hero 一致的布局 */
.production-hero {
  position: relative;
  overflow: hidden;
}

.production-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.production-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  z-index: 1;
}

.production-hero-content .container {
  margin-top: 10%;
  margin-right: 10%;
  margin-left: auto;
  text-align: right;
}

.production-hero-content .container.left {
  margin-top: 10%;
  margin-left: 10%;
  margin-right: auto;
  text-align: left;
}

.production-hero-title-img-wrap {
  margin-bottom: 0.5rem;
}

.production-hero-title-img {
  display: inline-block;
  width: 22%;
  max-width: 260px;
  height: auto;
}

.production-hero-subtitle {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  letter-spacing: 0.15em;
}

/* 子导航 Tab：与 about-tabs 外观一致 */
.production-tabs-wrap {
  padding-bottom: 14px;
}

.production-tabs {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; */
  align-items: stretch;
  gap: 0 3.5rem;
  padding: 3rem 0 0;
  margin-left: 10%;
  list-style: none;
}

.production-tabs .nav-item {
  position: relative;
}

.production-tabs .nav-link {
  display: block;
  color: #333;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: color 0.2s, background 0.2s;
  position: relative;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  margin-left: -6px;
}

.production-tabs .nav-link:first-of-type {
  margin-left: 0;
}

.production-tabs .nav-link:hover {
  color: #2280be;
}

/* 选中：蓝色平行四边形 + 白字 */
.production-tabs .nav-link.active {
  color: #fff;
  font-weight: 600;
  background: #257bae;
  z-index: 1;
}

/* 选中项下方的蓝色线条 */
.production-tabs .nav-item:has(.nav-link.active)::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 89%;
  height: 3px;
  background: #2ea2dd;
  z-index: 2;
}

/* 生产环境内容区（默认显示），其他三个区初始隐藏，点击子导航时再切换显示 */
.production-section-env {
  /* background-color: #f3f5f9; */
  padding: 3rem 0 4rem;
}

.production-section-equipment,
.production-section-test,
.production-section-management {
  display: none;
  padding: 3rem 0 4rem;
}

.production-env-bg {
  position: relative;
  width: 100%;
  background: url('../img/生产管理/生产环境详情背景图.png') no-repeat top center;
  background-size: contain;
  /* 使用固定宽高比以保证背景完整显示且比例不变（与设计图接近） */
  aspect-ratio: 16 / 9;
}

.production-env-inner {
  position: absolute;
  inset: 0;
  padding: 1.8rem 4.5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
}

.production-env-title-bar {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  top: -1.45rem;
  left: 7.5rem;
}

.production-env-title-cn {
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  padding: 0.35rem 1.8rem;
}

/* 检测设备标题中英文混排时，英文部分单独样式与位置
   只在中文 / 日文模式下生效，不影响英文模式 */
body.lang-zh .production-env-title-cn .production-test-title-en,
body.lang-jpn .production-env-title-cn .production-test-title-en {
  display: inline-block;
  font-size: 1.1rem;
  margin-left: 0.75rem;
}

.production-env-text {
  font-size: 0.8rem;
  line-height: 1.9;
  color: #555555;
  margin: 0 auto;
  max-width: 79%;
  text-align: left;
}

.production-env-text-2 {
  margin-top: 1.9%;
}

/* 下方六个场景标题：默认位置大致居中于各图片，可按需要单独微调 top/left */
.production-env-caption {
  position: absolute;
  font-size: 0.7rem;
  color: #ffffff;
}

.production-env-caption-1 {
  left: 14%;
  top: 59%;
}

.production-env-caption-2 {
  left: 14%;
  top: 85.5%;
}

.production-env-caption-3 {
  left: 39%;
  top: 85.5%;
}

.production-env-caption-4 {
  left: 65%;
  top: 59%;
}

.production-env-caption-5 {
  left: 65%;
  top: 85.5%;
}

/* 生产设备 / 检测设备 / 生产管理 内容区：共用相同布局，只更换背景图 */
.production-equipment-bg,
.production-test-bg,
.production-management-bg {
  position: relative;
  width: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  aspect-ratio: 16 / 9;
}

.production-equipment-bg {
  background-image: url('../img/生产管理/生产设备详情背景图.png');
}

.production-test-bg {
  background-image: url('../img/生产管理/检测设备详情背景图.png');
}

.production-management-bg {
  background-image: url('../img/生产管理/生产管理详情背景图.png');
}

/* 生产设备文字块样式（对应设备详情左侧列表） */
.production-equipment-list {
  margin-top: 4rem;
  margin-left: 12%;
  max-width: 40%;
  color: #ffffff;
}

.production-equipment-item {
  margin-bottom: 1.8rem;
}

.production-equipment-item-cn {
  font-size: 1.1rem;
  font-weight: 500;
}

.production-equipment-item-en {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  margin-left: 5%;
}

/* 英文模式：只保留英文标题，隐藏中文描述行并缩小字号 */
body.lang-en .production-equipment-item-cn {
  font-size: 0.9rem;
}

body.lang-en .production-equipment-item-en {
  display: none;
}

.production-equipment-item-cn::before {
  content: "☐";
  display: inline-block;
  margin-right: 0.6rem;
  font-size: 1.05em;
  vertical-align: middle;
}

/* 检测设备文字标签：白色、不加粗，每个可单独用 top/left 微调 */
.production-test-label {
  position: absolute;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
}

/* 下面的 top/left 先给出大致位置，可按实际效果再微调数值 */
.production-test-label-1 {
  top: 82%;
  left: 52%;
}

.production-test-label-2 {
  top: 82%;
  left: 13.5%;
}

.production-test-label-3 {
  top: 47%;
  left: 52%;
}

.production-test-label-4 {
  top: 47%;
  left: 42%;
}

.production-test-label-5 {
  top: 47%;
  left: 13.5%;
}

/* 生产管理文字标签：白色、不加粗，每个可单独用 top/left 微调 */
.production-management-label {
  position: absolute;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
}

/* 下面的 top/left 先给出大致位置，可按实际效果再微调数值 */
.production-management-label-1 { 
  top: 31%;
  left: 26%; 
}
.production-management-label-2 {  
  top: 31%; 
  left: 46.5%;
}
.production-management-label-3 {  
  top: 31%; 
  left: 67%; 
}
.production-management-label-4 { 
  top: 57%; 
  left: 26%;
}
.production-management-label-5 { 
  top: 57%; 
  left: 46.5%;
}
.production-management-label-6 { 
  top: 82.5%; 
  left: 26%;
}
.production-management-label-7 { 
  top: 82.5%; 
  left: 46.5%;
}
.production-management-label-8 { 
  top: 82.5%; 
  left: 67%; 
}

/* 英文模式：如需根据英文长度微调各项位置，可在这里单独调整 */
body.lang-en .production-management-label-1 {
  /* top: 31%; */
  left: 23%;
}
body.lang-en .production-management-label-2 {
  /* top: 31%; */
  left: 43.2%;
}
body.lang-en .production-management-label-3 {
  /* top: 31%; */
  left: 65.5%;
}
body.lang-en .production-management-label-4 {
  /* top: 57%; */
  left: 25%;
}
body.lang-en .production-management-label-5 {
  /* top: 57%; */
  left: 45%;
}
body.lang-en .production-management-label-6 {
  /* top: 82.5%; */
  left: 24%;
}
body.lang-en .production-management-label-7 {
  /* top: 82.5%; */
  left: 46%;
}
body.lang-en .production-management-label-8 {
  /* top: 82.5%; */
  left: 64.5%;
}

/* 日文模式：同样可以单独微调各项位置 */
body.lang-jpn .production-management-label-1 {
  /* top: 31%; */
  /* left: 26%; */
}
body.lang-jpn .production-management-label-2 {
  /* top: 31%; */
  left: 46%;
}
body.lang-jpn .production-management-label-3 {
  /* top: 31%; */
  left: 67.5%;
}
body.lang-jpn .production-management-label-4 {
  /* top: 57%; */
  /* left: 26%; */
}
body.lang-jpn .production-management-label-5 {
  /* top: 57%; */
  /* left: 46.5%; */
}
body.lang-jpn .production-management-label-6 {
  /* top: 82.5%; */
  /* left: 26%; */
}
body.lang-jpn .production-management-label-7 {
  /* top: 82.5%; */
  left: 45%;
}
body.lang-jpn .production-management-label-8 {
  /* top: 82.5%; */
  left: 65%;
}
