/*
 * @kanway-css-index
 * 文件: css/core/core-features-quality.css
 * 引用: core-features-quality.html
 * 依赖: core-features-shared.css
 * 模块: .adv-prodc（ISO 生产管理）| .adv-qc（品质管控）| .adv-sta（员工培训）
 */

.adv-mod--prodc { background: #fff; }
.adv-mod--qc { background: var(--adv-bg); }
.adv-mod--sta { background: #fff; padding-bottom: 48px; }

/* ========== prodc（ISO 生产管理） ========== */
.adv-prodc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--adv-border);
  min-height: 0;
  background: #fff;
}

.adv-prodc__visual {
  position: relative;
  height: 485px;
  min-height: 485px;
  max-height: 485px;
  overflow: hidden;
  background: #eee;
}

.adv-prodc__visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.adv-prodc-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--adv-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 485px;
}

.adv-prodc-tabs li {
  flex: 1 1 0;
  display: flex;
  min-height: 0;
  border-bottom: 1px solid var(--adv-border);
}

.adv-prodc-tabs li:last-child { border-bottom: 0; }

.adv-prodc-tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 14px 12px;
  border: 0;
  box-sizing: border-box;
  background: #fafbfc;
  text-align: left;
  cursor: pointer;
  color: var(--adv-muted);
  font-size: 14px;
  line-height: 1.45;
  transition: background 0.2s, color 0.2s;
}

.adv-prodc-tabs button em {
  flex-shrink: 0;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  color: #6e6e6e;
  width: 48px;
  text-align: center;
}

.adv-prodc-tabs button span { display: block; padding-top: 6px; }

.adv-prodc-tabs button:hover,
.adv-prodc-tabs button.is-active {
  background: var(--adv-primary);
  color: #fff;
}

.adv-prodc-tabs button.is-active em,
.adv-prodc-tabs button:hover em { color: #fff; }

/* ========== qc（品质管控） ========== */
.adv-qc {
  display: flex;
  flex-direction: column;
}

.adv-qc-panels {
  width: 100%;
}

.adv-qc-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--adv-border);
}

.adv-qc-tabs li { border-right: 1px solid var(--adv-border); }
.adv-qc-tabs li:last-child { border-right: 0; }

.adv-qc-tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 122px;
  padding: 24px 16px 20px 24px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: #8c8c8c;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s;
}

.adv-qc-tabs button em {
  flex-shrink: 0;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  color: #8c8c8c;
}

.adv-qc-tab__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.adv-qc-tab__label i {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  color: #777;
  line-height: 1.3;
}

.adv-qc-tabs button:hover,
.adv-qc-tabs button.is-active {
  background: var(--adv-primary);
  color: #fff;
}

.adv-qc-tabs button:hover .adv-qc-tab__label i,
.adv-qc-tabs button.is-active .adv-qc-tab__label i {
  color: rgba(255, 255, 255, 0.85);
}

.adv-qc-tabs button:hover em,
.adv-qc-tabs button.is-active em { color: #fff; }

.adv-qc-panel {
  display: none;
  grid-template-columns: minmax(0, 59%) minmax(280px, 41%);
  border: 1px solid var(--adv-border);
  border-top: 0;
  background: #fff;
  min-height: 463px;
}

.adv-qc-panel[hidden],
.adv-qc-panel:not(.is-active) {
  display: none !important;
}

.adv-qc-panel.is-active {
  display: grid !important;
  align-items: stretch;
}

.adv-qc-panel__img {
  min-height: 100%;
  overflow: hidden;
}

.adv-qc-panel__img img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 463px;
  max-height: 463px;
  object-fit: cover;
  object-position: center;
}

.adv-qc-panel__body {
  padding: 0 20px 24px;
  overflow: hidden;
}

.adv-qc-panel__body h4 {
  margin: 30px 0 12px;
  font-size: 24px;
  line-height: 1.4;
  color: var(--adv-text);
}

.adv-qc-panel__body h4 b {
  color: var(--adv-primary);
  padding-right: 8px;
}

.adv-qc-panel__body > p {
  margin: 0;
  max-width: 422px;
  font-size: 14px;
  line-height: 30px;
  color: #777;
  background: #f4f4f4;
  padding: 10px;
}

.adv-qc-panel__figure {
  margin: 16px 0 0;
}

.adv-qc-panel__figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========== sta（员工培训） ========== */
.adv-sta {
  display: grid;
  grid-template-columns: 273px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 510px;
}

.adv-sta-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: 1px solid #dce1e3;
  min-height: 510px;
}

.adv-sta-tabs li {
  border-bottom: 1px dashed #dce1e3;
  min-height: 161px;
  display: flex;
}

.adv-sta-tabs li:last-child {
  border-bottom: 0;
  flex: 1;
}

.adv-sta-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 14px;
  border: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
  color: #8c8c8c;
  font-size: 24px;
  transition: color 0.2s;
}

.adv-sta-tabs button em {
  display: block;
  font-size: 56px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  color: #8c8c8c;
}

.adv-sta-tabs button:hover,
.adv-sta-tabs button.is-active,
.adv-sta-tabs button.is-active em,
.adv-sta-tabs button:hover em {
  color: var(--adv-primary);
}

.adv-sta-panels {
  min-width: 0;
  padding-left: 28px;
  box-sizing: border-box;
}

.adv-sta-panel {
  display: none;
}

.adv-sta-panel[hidden],
.adv-sta-panel:not(.is-active) {
  display: none !important;
}

.adv-sta-panel__copy {
  margin-top: 10px;
  padding: 0 0 0 4px;
}

.adv-sta-panel__copy h4 {
  margin: 0 0 15px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: #333;
}

.adv-sta-panel__copy p {
  margin: 0;
  min-height: 92px;
  font-size: 14px;
  line-height: 28px;
  color: #555;
}

/* 原稿：右侧文案在上、大图在下（非左右并排） */
.adv-sta-panel.is-active {
  display: block !important;
}

.adv-sta-panel__img {
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

.adv-sta-panel__img img {
  display: block;
  width: 100%;
  height: 332px;
  max-height: 332px;
  object-fit: cover;
  object-position: center;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .adv-prodc {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .adv-prodc__visual {
    height: 485px;
    min-height: 485px;
    max-height: 485px;
  }

  .adv-prodc__visual img {
    height: 100%;
    object-fit: cover;
  }

  .adv-prodc-tabs {
    display: block;
    height: auto;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--adv-border);
  }

  .adv-prodc-tabs li {
    flex: none;
    display: block;
  }

  .adv-prodc-tabs button {
    flex: none;
    min-height: 72px;
  }

  .adv-qc-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv-qc-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .adv-qc-panel__img img {
    min-height: 320px;
    max-height: 420px;
  }

  .adv-sta {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .adv-sta-panels {
    padding-left: 0;
  }

  .adv-sta-tabs {
    display: flex;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px dashed #dce1e3;
  }

  .adv-sta-tabs li {
    flex: 1;
    min-height: 120px;
    border-bottom: 0;
    border-right: 1px dashed #dce1e3;
  }

  .adv-sta-tabs li:last-child {
    border-right: 0;
  }

  .adv-sta-panel__img img {
    height: auto;
    min-height: 200px;
    max-height: 332px;
  }
}

@media (max-width: 576px) {
  .adv-qc-tabs {
    grid-template-columns: 1fr;
  }

  .adv-qc-tabs button {
    min-height: 88px;
    padding: 16px 12px;
    font-size: 18px;
  }

  .adv-qc-tabs button em {
    font-size: 36px;
  }

  .adv-sta-tabs {
    flex-direction: column;
  }

  .adv-sta-tabs li {
    border-right: 0;
    border-bottom: 1px dashed #dce1e3;
  }
}
