.quality-page {
  --white: #fffdfa;
  --paper: #f8f5f4;
  --ink: #211f24;
  --body: #514d52;
  --muted: #766f73;
  --red: #c64b67;
  --deep: #a83953;
  --blue: #c9dce7;
  --gold: #bfa86f;
  --line: #d8d3d4;
  --serif: "Source Han Serif CN", serif;
  --sans: "Source Han Sans CN", sans-serif;
  --content: 1180px;
}
.quality-page {
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 360;
  line-height: 1.75;
}
.quality-page a {
  color: inherit;
  text-decoration: none;
}
.quality-page button,
.quality-page a {
  outline-offset: 4px;
}
.quality-page a:focus-visible,
.quality-page button:focus-visible {
  outline: 2px solid var(--deep);
}
.quality-page section[id] {
  scroll-margin-top: 5.5rem;
}
.quality-page .container {
  width: var(--content);
  margin: 0 auto;
}
.quality-page h1,
.quality-page h2,
.quality-page h3,
.quality-page p {
  margin-top: 0;
}
.eyebrow,
.section-no,
.micro-label,
.status-label,
.role-label {
  font-family: var(--sans);
  letter-spacing: 0;
}
.eyebrow {
  margin-bottom: 0.875rem;
  color: var(--deep);
  font-size: 0.8125rem;
  font-weight: 650;
}
.hero {
  position: relative;
  min-height: clamp(640px, 34.5vw, 860px);
  overflow: hidden;
  background: #ebece7;
  isolation: isolate;
}
.hero:before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../../images/pages/quality-assurance/hero-products.webp")
    center 62% / cover no-repeat;
  content: "";
  pointer-events: none;
}
.hero:after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(23, 27, 32, 0.02);
  content: "";
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(640px, 34.5vw, 860px);
  padding: 2.25rem 0;
  flex-direction: column;
  justify-content: center;
}
.hero-top {
  display: grid;
  padding: 1.5rem 1.625rem 1.625rem;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    rgba(27, 26, 31, 0.74),
    rgba(27, 26, 31, 0.6)
  );
  box-shadow: 0 16px 38px rgba(35, 31, 34, 0.2);
  color: #fff;
}
.hero-top > div:first-child {
  min-width: 0;
}
h1 {
  max-width: 760px;
  margin-bottom: 1.375rem;
  font-size: 3.25rem;
  font-weight: 620;
  line-height: 1.2;
}
.hero h1 {
  color: #fff;
}
.hero .eyebrow {
  color: #ffd3dc;
}
.hero-lead {
  max-width: 735px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  line-height: 1.85;
}
.hero-approval {
  padding: 0.625rem 0.5rem 0.625rem 1.5rem;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
}
.hero-approval .micro-label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
}
.hero-approval strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 620;
  line-height: 1.5;
}
.hero-approval span:last-child {
  display: block;
  margin-top: 0.375rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
}
.check-chain {
  display: grid;
  margin: 1.375rem 0 0;
  padding: 0;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    rgba(27, 26, 31, 0.7),
    rgba(27, 26, 31, 0.58)
  );
  box-shadow: 0 16px 38px rgba(35, 31, 34, 0.2);
  color: #fff;
}
.check-chain li {
  display: grid;
  min-width: 0;
  min-height: 88px;
  padding: 0.875rem 0.75rem;
  grid-template-columns: 20px max-content;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-content: center;
  align-items: center;
  justify-content: center;
}
.check-chain li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.check-chain svg,
.status-icon,
.role-icon svg,
.placeholder-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check-chain svg {
  position: static;
  grid-row: 1/3;
  color: #f2c66f;
}
.check-chain small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
}
.check-chain strong {
  grid-column: 2;
  font-size: 1rem;
  font-weight: 620;
  white-space: nowrap;
}
.section,
.materials,
.operations {
  padding: var(--yj-section-y) 0;
}
.section-head {
  display: grid;
  margin-bottom: 2.75rem;
  grid-template-columns: 390px 1fr;
  gap: 4.5rem;
  align-items: start;
}
.section-no {
  margin-bottom: 0.5625rem;
  color: var(--deep);
  font-size: 0.75rem;
  font-weight: 700;
}
h2 {
  margin-bottom: 0;
  font-size: 2.25rem;
  font-weight: 620;
  line-height: 1.32;
}
.section-intro {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.85;
}
.identity-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 3.375rem;
  align-items: start;
}
.document-slot {
  display: grid;
  min-height: 284px;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--paper);
  align-content: space-between;
}
.document-slot.certificate-scan {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.certificate-scan img {
  display: block;
  width: 100%;
  height: auto;
}
.document-slot.record-scan {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.record-scan img {
  display: block;
  width: 100%;
  height: auto;
}
.placeholder-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 1.875rem;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--deep);
}
.document-slot h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 620;
  line-height: 1.45;
}
.document-slot p {
  margin-bottom: 0;
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.75;
}
.pending-chip {
  display: inline-flex;
  width: max-content;
  margin-top: 1.5rem;
  padding: 0.3125rem 0.5625rem;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
}
.fact-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 0.9375rem;
}
.fact-table th,
.fact-table td {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.fact-table th {
  width: 170px;
  padding-right: 1.75rem;
  font-weight: 650;
}
.fact-table td {
  color: var(--body);
}
.quality-page .correspondence {
  margin: 1.375rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.8;
}
.formula-note {
  display: grid;
  margin-top: 2.625rem;
  padding: 1.6875rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 260px 1fr;
  gap: 4rem;
}
.formula-note h3 {
  margin: 0.3125rem 0 0;
  font-size: 1.4375rem;
  font-weight: 620;
}
.formula-copy p {
  margin-bottom: 0.5rem;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.formula-copy p:last-child {
  margin-bottom: 0;
}
.products {
  padding: var(--yj-section-y) 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.products .section-head {
  margin-bottom: 2.375rem;
}
.products .section-no {
  color: #dbc687;
}
.products .section-intro {
  color: #ddd8db;
}
.shared-identity {
  display: flex;
  padding: 0.8125rem 0;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-top: 1px solid #ffffff3d;
  border-bottom: 1px solid #ffffff3d;
  color: #dbc687;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
}
.shared-identity svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #ffffff3d;
}
.product {
  display: grid;
  padding: 2.125rem 2.75rem 2.25rem;
  grid-template-columns: 150px 1fr;
  gap: 2.125rem;
  align-items: center;
}
.product + .product {
  border-left: 1px solid #ffffff3d;
}
.product-media {
  display: grid;
  aspect-ratio: 1/1.08;
  padding: 1.125rem;
  place-items: center;
  border: 1px solid #ffffff42;
  background: #ffffff08;
  text-align: center;
}
.product-media.has-image {
  padding: 0;
  overflow: hidden;
  background: #eee8df;
}
.product-media.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-media svg {
  width: 30px;
  height: 30px;
  margin-bottom: 0.6875rem;
  fill: none;
  stroke: #dbc687;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-media span {
  display: block;
  color: #c9c1c5;
  font-family: var(--sans);
  font-size: 0.6875rem;
  line-height: 1.55;
}
.product h3 {
  margin-bottom: 0.875rem;
  font-size: 1.6875rem;
  font-weight: 620;
}
.product-facts {
  margin: 0;
}
.product-facts div {
  display: grid;
  padding: 0.5rem 0;
  grid-template-columns: 72px 1fr;
  border-top: 1px solid #ffffff2e;
  font-size: 0.875rem;
}
.product-facts dt {
  color: #bdb3b8;
}
.product-facts dd {
  margin: 0;
  color: #fff;
}
.quality-page .product-boundary {
  max-width: 1000px;
  margin: 1.625rem auto 0;
  color: #eee9eb;
  font-size: 0.9375rem;
  line-height: 1.85;
  text-align: center;
}
.product-boundary strong {
  color: #dbc687;
  font-weight: 600;
}
.materials {
  padding: var(--yj-section-y) 0;
  background: var(--paper);
}
.materials .section-head {
  display: block;
  margin-bottom: 1.75rem;
}
.mapping-table {
  border-top: 1px solid var(--ink);
}
.mapping-row {
  display: grid;
  padding: 1rem 0;
  grid-template-columns: 220px 300px 1fr;
  gap: 1.625rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.7;
}
.mapping-row:first-child {
  padding: 0.625rem 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 650;
}
.mapping-row strong {
  font-weight: 620;
}
.mapping-row span:last-child {
  color: var(--body);
}
.status-columns {
  display: grid;
  margin: 2.25rem 0 0;
  grid-template-columns: 1fr 1fr;
  gap: 3.125rem;
  align-items: start;
}
.status {
  padding-top: 1.1875rem;
  border-top: 3px solid var(--ink);
}
.status.pending {
  border-color: var(--red);
}
.status-title {
  display: flex;
  margin-bottom: 0.625rem;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 650;
}
.status-icon {
  width: 18px;
  height: 18px;
  color: var(--deep);
}
.status ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.status li {
  position: relative;
  padding: 0.625rem 0 0.625rem 1.375rem;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 0.875rem;
}
.status li:before {
  position: absolute;
  top: 20px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  content: "";
}
.status.pending li:before {
  background: var(--red);
}
.quality-page .boundary-copy {
  margin: 1.875rem 0 0;
  padding: 1.125rem 1.375rem;
  border-left: 3px solid var(--red);
  background: var(--white);
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.8;
}
.materials .boundary-copy {
  margin-top: 1.375rem;
}
.operations {
  background: var(--white);
}
.operation-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 3.375rem;
  align-items: start;
}
.operator-name {
  margin: 0 0 1.125rem;
  font-size: 1.5rem;
  font-weight: 620;
  line-height: 1.5;
}
.record {
  border-top: 1px solid var(--ink);
}
.record-row {
  display: grid;
  padding: 0.875rem 0;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.record-row span:first-child {
  font-weight: 620;
}
.record-row span:last-child {
  color: var(--body);
}
.quality-page .record-note {
  margin: 1.25rem 0 0;
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.85;
}
.responsibility {
  padding: var(--yj-section-y-compact) 0;
  background: var(--deep);
  color: var(--white);
}
.responsibility .section-head {
  margin-bottom: 2.125rem;
}
.responsibility .section-no {
  color: #f0d995;
}
.responsibility .section-intro {
  color: #fff;
}
.role-matrix {
  border-top: 1px solid #ffffffa1;
}
.role-row {
  display: grid;
  padding: 1.375rem 0;
  grid-template-columns: 68px 190px 330px 1fr;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid #ffffff38;
}
.role-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #ffffff6b;
  color: #f0d995;
}
.role-label {
  color: #f0d995;
  font-size: 0.75rem;
  font-weight: 650;
}
.role-row strong {
  font-size: 1.125rem;
  font-weight: 620;
  line-height: 1.55;
}
.role-row p {
  margin: 0;
  color: #f8eef1;
  font-size: 0.875rem;
  line-height: 1.75;
}
.closing {
  padding: var(--yj-section-y-compact) 0;
  background: var(--white);
}
.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.75rem;
}
.closing h2 {
  margin-bottom: 0.5625rem;
  font-size: 2rem;
}
.closing p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 0.9375rem;
}
.actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
}
.primary,
.secondary {
  display: inline-flex;
  min-height: 44px;
  padding: 0.625rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 650;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.quality-page .primary {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}
.quality-page .primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
}
.secondary {
  border-color: var(--line);
  background: transparent;
}
.secondary:hover {
  border-color: var(--deep);
  color: var(--deep);
}
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1440px) {
  .quality-page .container {
    width: calc(100% - 96px);
    max-width: calc(100vw - 96px);
  }
  .hero-top {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.75rem;
  }
  .section-head {
    grid-template-columns: 360px 1fr;
    gap: 3.625rem;
  }
  .product {
    padding-right: 2.25rem;
    padding-left: 2.25rem;
  }
  .role-row {
    grid-template-columns: 60px 170px 300px 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 680px) {
  .quality-page .container {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero,
  .hero-inner {
    min-height: 620px;
  }

  .hero:after {
    background: rgba(23, 27, 32, 0.16);
  }

  .hero-top,
  .section-head,
  .identity-grid,
  .operation-grid,
  .product-stage,
  .product,
  .record-row,
  .role-row {
    grid-template-columns: 1fr;
  }

  h1,
  .section-title {
    font-size: 2.125rem;
  }

  .check-chain {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 1rem;
  }

  .check-chain li {
    min-height: 58px;
    padding: 0.5rem 0.35rem;
    grid-template-columns: 14px minmax(0, max-content);
    column-gap: 0.35rem;
  }

  .check-chain svg {
    width: 15px;
    height: 15px;
  }

  .check-chain small {
    font-size: 0.5625rem;
  }

  .check-chain strong {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .document-slot.certificate-scan {
    width: min(86%, 320px);
    justify-self: center;
  }

  .formula-note {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.375rem 0;
  }

  .formula-note h3 {
    font-size: 1.25rem;
    line-height: 1.45;
  }

  .formula-copy p {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .products {
    padding: var(--yj-section-y) 0;
  }

  .product {
    padding: 1.5rem 1.25rem;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    border-left: 0;
  }

  .product-media {
    width: 100%;
  }

  .product-facts div {
    grid-template-columns: 4.25em minmax(0, 1fr);
    gap: 0.5rem;
  }

  .quality-page .actions {
    display: grid;
  }

  .quality-page .primary,
  .quality-page .secondary {
    width: 100%;
  }

  .mapping-row {
    padding: 0.75rem 0;
    grid-template-columns: 28% 27% minmax(0, 1fr);
    gap: 0.625rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .mapping-row:first-child {
    padding: 0.5rem 0;
    font-size: 0.625rem;
  }

  .mapping-row strong,
  .mapping-row span {
    min-width: 0;
  }

  .status-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .document-slot.record-scan {
    width: min(86%, 340px);
    justify-self: center;
  }

  .operation-grid {
    gap: 1.5rem;
  }

  .record-row {
    grid-template-columns: 6em minmax(0, 1fr);
    gap: 0.75rem;
    font-size: 0.8125rem;
  }

  .role-row {
    padding: 0.875rem 0;
    grid-template-columns: 32px 4.5em 6.5em minmax(0, 1fr);
    gap: 0.5rem;
  }

  .role-icon {
    width: 30px;
    height: 30px;
  }

  .role-icon svg {
    width: 15px;
    height: 15px;
  }

  .role-label {
    font-size: 0.625rem;
  }

  .role-row strong {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .role-row p {
    font-size: 0.75rem;
    line-height: 1.55;
  }

  .closing-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .closing .actions {
    display: flex;
    gap: 0.5rem;
  }

  .closing .primary,
  .closing .secondary {
    width: auto;
    min-height: 40px;
    flex: 1 1 0;
    padding: 0.5rem 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quality-page {
    scroll-behavior: auto;
  }
  .quality-page,
  .quality-page *,
  .quality-page *:before,
  .quality-page *:after {
    animation: none !important;
    transition: none !important;
  }
  .quality-page [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
