:root {
  --page: #f3f1ec;
  --paper: #fffdf9;
  --ink: #22201d;
  --muted: #6f6a63;
  --line: #ded9d0;
  --soft: #efede7;
  --gold: #c6922e;
  --red: #ef4e3b;
  --red-dark: #b8322d;
  --green-soft: #dcefe8;
  --green: #2b7a66;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 150px 22px minmax(0, 1fr) 108px 118px;
  align-items: center;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-spacer {
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.brand img {
  width: 120px;
  height: 58px;
  object-fit: contain;
}

.footer-col .brand-logo-en {
  display: block;
}

.footer-col .brand-logo-zh {
  display: none;
}

html[data-locale="zh"] .footer-col .brand-logo-en {
  display: none;
}

html[data-locale="zh"] .footer-col .brand-logo-zh {
  display: block;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
  height: 60px;
  padding: 0 18px 0 12px;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 5px;
  font-size: 15px;
  color: #070707;
  border-radius: 5px;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f8f5ef;
  color: #111;
}

.locale-switcher {
  position: relative;
  height: 60px;
  overflow: visible;
}

.locale-switcher details {
  height: 100%;
}

.locale-switcher summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 100%;
  padding: 0 8px;
  border-radius: 6px;
  color: #070707;
  cursor: pointer;
  list-style: none;
}

.locale-switcher summary:hover {
  background: #f8f5ef;
}

.locale-switcher summary::-webkit-details-marker {
  display: none;
}

.locale-switcher summary::after {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #5b554d;
  border-bottom: 1.5px solid #5b554d;
  transform: rotate(45deg) translateY(-2px);
}

.locale-switcher details[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.locale-switcher span,
.locale-switcher a {
  font-size: 14px;
}

.locale-switcher summary span {
  font-weight: 900;
}

.locale-switcher small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 10px;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 18px 44px rgba(35, 31, 26, 0.16);
}

.locale-menu a,
.locale-menu span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
}

.locale-menu a[aria-current="true"] {
  background: var(--soft);
  color: var(--red-dark);
}

.locale-menu span {
  color: #8a8379;
}

.quote-button {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 34px;
  border-radius: 4px;
  background: var(--red);
  color: white;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 64px;
}

.hero,
.overview-card,
.deep-section,
.materials,
.one-partner,
.final-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 36px;
  padding: 38px;
  min-height: 520px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lede,
.section-heading p,
.deep-copy p,
.final-cta p,
.one-partner p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  background: var(--red-dark);
  color: white;
}

.secondary-action {
  border: 1px solid var(--line);
  background: white;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 8px;
  background: #111;
}

.hero-visual img,
.deep-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.process-strip article {
  display: grid;
  align-items: center;
  min-height: 132px;
  padding: 20px;
  border-radius: 8px;
  background: #e9e6df;
}

.process-strip span {
  display: block;
  line-height: 1;
  color: var(--gold);
}

.capability-card strong {
  display: grid;
  align-items: center;
  color: var(--gold);
}

.process-strip strong {
  display: block;
  margin: 7px 0;
  font-size: 22px;
}

.process-strip p,
.capability-card p,
.note,
.spec-list dd,
.material-columns p {
  color: var(--muted);
}

.overview-card,
.materials,
.one-partner,
.final-cta {
  padding: 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.capability-card {
  display: grid;
  align-items: center;
  min-height: 188px;
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid transparent;
}

.capability-card:hover {
  display: grid;
  align-items: center;
  border-color: #cfc7ba;
  background: white;
}

.capability-card span {
  display: block;
  height: 46px;
  line-height: 46px;
  font-size: 18px;
  font-weight: 800;
}

.capability-card strong {
  display: block;
  line-height: 1.1;
  margin-bottom: 10px;
  font-size: 24px;
}

.note {
  margin: 18px 0 0;
  font-size: 14px;
}

.deep-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) 1fr;
  gap: 34px;
  margin-top: 16px;
  padding: 28px;
}

.deep-section.reverse {
  grid-template-columns: 1fr minmax(360px, 0.86fr);
}

.deep-section.reverse .deep-media {
  order: 2;
}

.deep-media {
  overflow: hidden;
  min-height: 360px;
  border-radius: 8px;
  background: #111;
}

.deep-copy {
  align-self: center;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  color: var(--ink);
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
}

.soft-panel,
.dark-panel,
.finish-board {
  display: grid;
  align-content: center;
  padding: 28px;
}

.soft-panel {
  background: #f4efe5;
}

.myth-grid {
  display: grid;
  gap: 16px;
}

.myth-grid div,
.dark-panel div {
  display: grid;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.myth-grid span,
.dark-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.dark-panel {
  gap: 18px;
  background: #191817 url("./assets/dark-texture.png") center / cover;
}

.dark-panel div {
  display: grid;
  align-items: center;
  color: white;
  background: rgba(20, 20, 20, 0.68);
  border-color: rgba(255, 255, 255, 0.14);
}

.finish-board {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--green-soft);
}

.finish-board span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-weight: 800;
}

.process-photo,
.printing-photo,
.finishing-photo {
  position: relative;
  background: #171512;
}

.process-photo img,
.printing-photo img,
.finishing-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.finishing-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.finish-tags {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finish-tags span {
  display: inline-block;
  height: 34px;
  line-height: 34px;
  padding: 0 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  color: #2d4f45;
  font-size: 13px;
  font-weight: 800;
}

.material-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.material-columns article {
  min-height: 156px;
  padding: 22px;
  border-radius: 8px;
  background: var(--soft);
}

.one-partner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 16px;
  background: #fff5df;
  border-color: #ead3a9;
}

.process-map {
  display: grid;
  gap: 10px;
  align-self: center;
}

.process-map span,
.process-map strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  background: white;
  font-weight: 800;
  color: var(--ink);
}

.process-map strong {
  min-height: 56px;
  background: var(--red-dark);
  color: white;
}

.final-cta {
  margin-top: 16px;
  border-color: #c64a40;
}

.final-cta h2 {
  max-width: 780px;
}

.home-main {
  display: grid;
  gap: 16px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(380px, 0.92fr);
  gap: 34px;
  min-height: 560px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-hero-copy {
  align-self: center;
}

.home-hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(46px, 4.3vw, 54px);
  line-height: 1.04;
}

.home-hero-title span {
  display: block;
  white-space: nowrap;
}

.microcopy {
  margin: 16px 0 0;
  color: #8a8379;
  font-size: 14px;
}

.home-hero-image {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin: 0;
  border-radius: 8px;
  background: #141414;
}

.home-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-bar div {
  display: grid;
  place-items: center;
  min-height: 86px;
  border-radius: 7px;
  background: var(--soft);
  text-align: center;
}

.trust-bar strong {
  font-size: 24px;
}

.trust-bar span {
  color: var(--muted);
  font-size: 14px;
}

.logo-wall {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.logo-wall p:not(.eyebrow) {
  color: var(--muted);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.logo-row span {
  display: flex;
  align-items: center;
  padding-left: 2ch;
  height: 54px;
  border-radius: 6px;
  background: #f5f0e8;
  color: #7b756d;
  font-weight: 800;
}

.act-band {
  padding: 22px 28px;
  border-radius: 8px;
}

.act-band h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.act-band p {
  margin: 0;
  font-weight: 700;
}

.act-band.warm {
  background: #fff0d7;
  color: #80531b;
}

.act-band.cool {
  background: #ddf3ec;
  color: #237260;
}

.feature-section,
.home-block {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 28px;
  border-color: #f3a640;
}

.feature-section p {
  color: var(--muted);
  font-size: 17px;
}

.dfm-report {
  display: grid;
  gap: 14px;
  min-height: 360px;
  padding: 20px;
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7f2ea);
}

.report-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.report-top span {
  color: var(--gold);
  font-weight: 900;
}

.report-drawing {
  position: relative;
  min-height: 170px;
  border: 1px dashed #c9c0b4;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(198, 146, 46, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(198, 146, 46, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.report-drawing::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 22%;
  width: 48%;
  height: 46%;
  border: 3px solid #36332e;
  border-radius: 18px 42px 18px 42px;
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(239, 78, 59, 0.18);
}

.pin.a {
  left: 29%;
  top: 24%;
}

.pin.b {
  left: 57%;
  top: 44%;
}

.pin.c {
  left: 39%;
  top: 63%;
}

.report-notes {
  display: grid;
  gap: 8px;
}

.report-notes p {
  margin: 0;
  padding: 10px;
  border-radius: 6px;
  background: white;
  font-size: 14px;
}

.home-card-grid {
  display: grid;
  gap: 14px;
}

.home-card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.home-card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.image-card,
.case-card {
  overflow: hidden;
  min-height: 310px;
  border-radius: 8px;
  background: var(--soft);
}

.image-card img,
.case-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.image-card h3,
.case-card h3,
.image-card p,
.case-card p {
  margin-left: 16px;
  margin-right: 16px;
}

.image-card h3,
.case-card h3 {
  margin-top: 15px;
}

.image-card p,
.case-card p {
  color: var(--muted);
}

.quality-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.quality-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quality-points span {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  border-radius: 7px;
  background: var(--soft);
  font-weight: 800;
}

.quality-layout figure {
  overflow: hidden;
  margin: 0;
  min-height: 240px;
  border-radius: 8px;
  background: #111;
}

.quality-layout img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: left 72%;
  display: block;
}

.case-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px dashed #f3a640;
  border-radius: 7px;
  color: #a4671a;
  font-weight: 800;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.workflow span {
  display: flex;
  align-items: center;
  padding-left: 2ch;
  height: 58px;
  border-radius: 7px;
  background: var(--soft);
  font-weight: 900;
}


.dfm-main {
  display: grid;
  gap: 16px;
}

.dfm-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1fr);
  gap: 34px;
  min-height: 560px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dfm-hero-copy {
  align-self: center;
}

.dfm-hero-copy h1 {
  max-width: 700px;
  font-size: clamp(48px, 4.7vw, 64px);
}

.dfm-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin: 0;
  border-radius: 8px;
  background: #151515;
}

.dfm-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dfm-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.dfm-hero-report {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.dfm-hero-report span {
  color: var(--gold);
  font-weight: 900;
}

.dfm-hero-report strong {
  font-size: 20px;
}

.dfm-hero-report p {
  margin: 0;
  color: var(--muted);
}

.dfm-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dfm-proof div,
.dfm-check-grid article,
.dfm-steps article {
  display: grid;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.dfm-proof strong,
.dfm-proof span {
  display: block;
}

.dfm-proof strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.dfm-proof span {
  color: var(--muted);
}

.dfm-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dfm-check-grid article {
  display: grid;
  align-items: center;
  min-height: 210px;
}

.dfm-check-grid span,
.dfm-steps span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.dfm-check-grid p,
.dfm-steps p {
  color: var(--muted);
}

.dfm-deliverable {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  padding: 28px;
  background: #fff8e8;
  border: 1px solid #ead3a9;
  border-radius: 8px;
}

.dfm-report.large {
  min-height: 430px;
}

.report-drawing.compact {
  min-height: 130px;
}

.dfm-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dfm-steps article {
  display: grid;
  align-items: center;
  min-height: 220px;
}

.dfm-issue-list {
  display: grid;
  gap: 10px;
}

.dfm-issue-list div {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--soft);
}

.dfm-issue-list span {
  color: var(--muted);
}

.cases-main {
  display: grid;
  gap: 16px;
}

.cases-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1fr);
  gap: 34px;
  min-height: 560px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cases-hero-copy {
  align-self: center;
}

.cases-hero-copy h1 {
  max-width: 700px;
  font-size: clamp(48px, 4.7vw, 64px);
}

.cases-hero-title span {
  display: block;
}

.positioning-line {
  margin: -6px 0 18px;
  color: var(--red-dark);
  font-size: 22px;
  font-weight: 900;
}

.cases-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin: 0;
  border-radius: 8px;
  background: #151515;
}

.cases-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cases-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.case-route-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.case-route-panel span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.case-route-panel ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-route-panel li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 10px;
  border-radius: 6px;
  background: #f0ece4;
  color: #292521;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.cases-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.12fr 0.88fr;
  gap: 10px;
  min-height: 480px;
}

.cases-hero-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.cases-hero-grid .wide {
  grid-column: 1 / -1;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-feature.reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1fr);
}

.case-feature.reverse figure {
  order: 2;
}

.case-feature figure {
  overflow: hidden;
  min-height: 390px;
  margin: 0;
  border-radius: 8px;
  background: #111;
}

.case-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.case-tags span {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  background: #f3efe7;
  color: #6d5a35;
  font-size: 13px;
  font-weight: 900;
}

.case-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.case-matrix div {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.case-matrix strong {
  font-size: 19px;
  color: var(--ink);
}

.case-matrix div > span {
  color: var(--muted);
}

.case-matrix div > span:first-of-type {
  color: var(--gold);
  font-weight: 900;
}

.case-confidential {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  padding: 28px;
  background: #fff8e8;
  border: 1px solid #ead3a9;
  border-radius: 8px;
}

.case-confidential p {
  color: var(--muted);
  font-size: 18px;
}

.case-confidential-list {
  display: grid;
  gap: 10px;
  align-self: center;
}

.case-confidential-list span {
  display: block;
  height: 54px;
  line-height: 54px;
  padding: 0 16px;
  border-radius: 7px;
  background: white;
  font-weight: 900;
}

.quality-main {
  display: grid;
  gap: 16px;
}

.quality-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1fr);
  gap: 34px;
  min-height: 560px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quality-hero-copy {
  align-self: center;
}

.quality-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(48px, 4.7vw, 64px);
}

.quality-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin: 0;
  border-radius: 8px;
  background: #151515;
}

.quality-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.quality-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.inspection-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.inspection-panel span,
.quality-cert-strip span,
.quality-method-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.inspection-panel strong {
  font-size: 20px;
}

.inspection-panel p {
  margin: 0;
  color: var(--muted);
}

.quality-cert-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quality-cert-strip article {
  display: grid;
  align-items: center;
  min-height: 170px;
  padding: 22px;
  border-radius: 8px;
  background: var(--soft);
}

.quality-cert-strip strong {
  display: block;
  margin: 10px 0;
  font-size: 28px;
}

.quality-cert-strip p,
.quality-method-grid p,
.quality-standard p,
.quality-proof-grid span {
  color: var(--muted);
}

.quality-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quality-method-grid article {
  display: grid;
  align-items: center;
  min-height: 220px;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.quality-method-grid span {
  display: inline-flex;
  margin-bottom: 18px;
}

.quality-inspection {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quality-inspection figure {
  overflow: hidden;
  min-height: 420px;
  margin: 0;
  border-radius: 8px;
  background: #111;
}

.quality-inspection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 72%;
  display: block;
}

.quality-standard {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  padding: 28px;
  background: #fff8e8;
  border: 1px solid #ead3a9;
  border-radius: 8px;
}

.quality-standard-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-self: center;
}

.quality-standard-list span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 7px;
  background: white;
  font-weight: 900;
}

.quality-standard-list span:last-child {
  grid-column: 1 / -1;
}

.quality-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quality-proof-grid div {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.quality-proof-grid strong {
  font-size: 19px;
}

.about-main {
  display: grid;
  gap: 16px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1fr);
  gap: 34px;
  min-height: 560px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-hero-copy {
  align-self: center;
}

.about-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(48px, 4.7vw, 64px);
}

.about-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin: 0;
  border-radius: 8px;
  background: #151515;
}

.about-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.about-position-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.about-position-card span,
.about-principles span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.about-position-card strong {
  font-size: 20px;
}

.about-position-card p {
  margin: 0;
  color: var(--muted);
}

.about-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-proof div {
  display: grid;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.about-proof strong,
.about-proof span {
  display: block;
}

.about-proof strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.about-proof span,
.about-manifesto p,
.about-principles p,
.about-system p,
.about-protection-grid span {
  color: var(--muted);
}

.about-manifesto,
.about-system {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  padding: 28px;
  background: #fff8e8;
  border: 1px solid #ead3a9;
  border-radius: 8px;
}

.about-phrase-board {
  display: grid;
  gap: 10px;
  align-self: center;
}

.about-phrase-board span {
  display: block;
  min-height: 72px;
  padding: 18px;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.about-phrase-board span:first-child {
  border-left: 5px solid var(--gold);
}

.about-phrase-board span:last-child {
  border-left: 5px solid var(--gold);
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.about-principles article {
  min-height: 230px;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.about-principles span {
  display: inline-flex;
  margin-bottom: 18px;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-split.reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1fr);
}

.about-split.reverse figure {
  order: 2;
}

.about-split figure {
  overflow: hidden;
  min-height: 410px;
  margin: 0;
  border-radius: 8px;
  background: #111;
}

.about-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-route {
  display: grid;
  gap: 10px;
  align-self: center;
}

.about-route span,
.about-route strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 7px;
  background: white;
  font-weight: 900;
  text-align: center;
  color: var(--ink);
}

.about-route strong {
  min-height: 60px;
  background: var(--red-dark);
  color: white;
}

.about-protection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.about-protection-grid div {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 160px;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.about-protection-grid strong {
  font-size: 19px;
}

.contact-main {
  display: grid;
  gap: 16px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 34px;
  min-height: 520px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-hero-copy {
  align-self: center;
}

.contact-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(46px, 4.5vw, 62px);
}

.contact-direct-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 78, 59, 0.08), transparent 38%),
    var(--soft);
  border: 1px solid var(--line);
}

.contact-direct-card > span,
.location-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.contact-direct-card strong {
  font-size: 34px;
  line-height: 1.05;
}

.contact-direct-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-direct-card div {
  padding-top: 14px;
  border-top: 1px solid rgba(34, 32, 29, 0.12);
}

.contact-direct-card dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-direct-card dd {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.contact-proof,
.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.contact-proof {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-proof div,
.location-grid article {
  display: grid;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background: var(--soft);
}

.contact-proof strong,
.contact-proof span {
  display: block;
}

.contact-proof strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.contact-proof span,
.location-grid p,
.route-list span,
.contact-handoff p {
  color: var(--muted);
}

.contact-locations,
.contact-route,
.contact-handoff {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.location-grid h3 {
  margin-top: 8px;
  font-size: 26px;
}

.native-address {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 32, 29, 0.12);
  color: var(--ink);
  font-weight: 800;
}

.contact-route {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) 1fr;
  gap: 28px;
}

.route-map {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(34, 32, 29, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(34, 32, 29, 0.06) 1px, transparent 1px),
    #f8f6f0;
  background-size: 46px 46px;
}

.map-line {
  position: absolute;
  left: 24%;
  right: 22%;
  top: 52%;
  height: 3px;
  background: var(--gold);
  transform: rotate(-12deg);
  transform-origin: left center;
}

.map-pin {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 38px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.factory-pin {
  left: 18%;
  top: 55%;
}

.office-pin {
  right: 18%;
  top: 34%;
  background: var(--red-dark);
}

.route-copy {
  align-self: center;
}

.route-list,
.handoff-list {
  display: grid;
  gap: 10px;
}

.route-list div,
.handoff-list span {
  display: grid;
  align-items: center;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.route-list strong {
  font-size: 17px;
}

.contact-handoff {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) 1fr;
  gap: 28px;
  align-items: center;
}

.handoff-list {
  grid-template-columns: repeat(2, 1fr);
}

.handoff-list span {
  display: grid;
  align-items: center;
  min-height: 56px;
  align-content: center;
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    grid-template-columns: 140px 10px 1fr 94px;
  }

  .brand {
    height: 62px;
  }

  .brand img {
    width: 110px;
  }

  .nav-spacer {
    height: 62px;
  }

  .quote-button {
    display: none;
  }

  .locale-switcher {
    height: 62px;
  }

  .locale-switcher summary {
    padding: 0 10px;
  }

  .locale-menu {
    right: 8px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    height: auto;
    border-right: 0;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0;
    font-size: 14px;
  }

  .hero,
  .deep-section,
  .deep-section.reverse,
  .one-partner,
  .home-hero,
  .feature-section,
  .quality-layout,
  .dfm-hero,
  .dfm-deliverable,
  .cases-hero,
  .case-feature,
  .case-feature.reverse,
  .case-confidential,
  .quality-hero,
  .quality-inspection,
  .quality-standard,
  .about-hero,
  .about-manifesto,
  .about-split,
  .about-split.reverse,
  .about-system,
  .contact-hero,
  .contact-route,
  .contact-handoff {
    grid-template-columns: 1fr;
  }

  .deep-section.reverse .deep-media {
    order: 0;
  }

  .case-feature.reverse figure {
    order: 0;
  }

  .about-split.reverse figure {
    order: 0;
  }

  .process-strip,
  .capability-grid,
  .material-columns,
  .home-card-grid.four,
  .home-card-grid.three,
  .quality-points,
  .workflow,
  .trust-bar,
  .logo-row,
  .dfm-proof,
  .dfm-check-grid,
  .dfm-steps,
  .case-matrix,
  .quality-cert-strip,
  .quality-method-grid,
  .quality-proof-grid,
  .about-proof,
  .about-principles,
  .about-protection-grid,
  .contact-proof,
  .location-grid,
  .handoff-list {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 48px;
  }

  .home-hero h1 {
    font-size: clamp(40px, 7.4vw, 48px);
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1180px);
    margin-top: 14px;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .brand {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-spacer {
    display: none;
  }

  .nav-links {
    grid-template-columns: repeat(2, 1fr);
    position: relative;
  }

  .nav-links::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 1px;
    background: rgba(222, 217, 208, 0.9);
    transform: translateX(-0.5px);
    pointer-events: none;
  }

  .locale-switcher {
    height: auto;
    border-right: 0;
    border-bottom: 0;
  }

  .locale-switcher summary {
    min-height: 46px;
  }

  .locale-menu {
    position: static;
    margin: 0 12px 12px;
    box-shadow: none;
  }

  .quote-button {
    display: flex;
    justify-self: stretch;
    min-width: 0;
    height: 42px;
    margin: 0 12px 12px;
    font-size: 14px;
  }

  .hero,
  .overview-card,
  .deep-section,
  .materials,
  .one-partner,
  .final-cta,
  .quality-hero,
  .quality-inspection,
  .quality-standard,
  .about-hero,
  .about-manifesto,
  .about-split,
  .about-system,
  .contact-hero,
  .contact-locations,
  .contact-route,
  .contact-handoff {
    padding: 20px;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual,
  .deep-media,
  .home-hero-image,
  .dfm-hero-visual,
  .cases-hero-visual,
  .quality-hero-visual,
  .about-hero-visual {
    min-height: 260px;
  }

  h1 {
    font-size: 40px;
  }

  .home-hero h1 {
    font-size: clamp(30px, 8.5vw, 40px);
  }

  h2 {
    font-size: 30px;
  }

  .process-strip,
  .capability-grid,
  .material-columns,
  .finish-board,
  .home-card-grid.four,
  .home-card-grid.three,
  .quality-points,
  .workflow,
  .trust-bar,
  .logo-row,
  .dfm-proof,
  .dfm-check-grid,
  .dfm-steps,
  .case-matrix,
  .quality-cert-strip,
  .quality-method-grid,
  .quality-proof-grid,
  .quality-standard-list,
  .about-proof,
  .about-principles,
  .about-protection-grid,
  .contact-proof,
  .location-grid,
  .handoff-list {
    grid-template-columns: 1fr;
  }

  .inspection-panel {
    position: static;
    border-radius: 0;
    box-shadow: none;
  }

  .quality-standard-list span:last-child {
    grid-column: auto;
  }

  .about-position-card {
    position: static;
    border-radius: 0;
    box-shadow: none;
  }

  .about-phrase-board span {
    white-space: normal;
  }

  .cases-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .case-route-panel {
    position: static;
    border-radius: 0;
    box-shadow: none;
  }

  .case-route-panel ol {
    grid-template-columns: 1fr;
  }

  .cases-hero-grid .wide {
    grid-column: auto;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dfm-issue-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ── Bilingual content visibility ── */



/* ===== Footer Styles ===== */
.site-footer {
  border-top: 1px solid #e5e5e5;
  background: #fff;
  padding: 48px 24px 24px;
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col {
  min-width: 140px;
}

.footer-col.brand-col {
  flex: 1 1 200px;
}

.footer-col .brand-logo {
  width: 120px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #000;
}

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.footer-bottom p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 16px 16px;
    margin-top: 40px;
  }
  .footer-inner {
    gap: 24px;
  }
}


/* === v=20260712s comprehensive fix === */

/* 1. Header logo language switching */
.site-header .brand .brand-logo-en { display: block; }
.site-header .brand .brand-logo-zh { display: none; }
html[data-locale="zh"] .site-header .brand .brand-logo-en { display: none; }
html[data-locale="zh"] .site-header .brand .brand-logo-zh { display: block; }

/* 2. Fix span color/weight bleed: descendant .section span matches ALL nested spans. */
.quality-method-grid h3 span, .quality-method-grid h4 span,
.dfm-check-grid h3 span, .dfm-check-grid h4 span,
.dfm-steps h3 span, .dfm-steps h4 span,
.about-principles h3 span, .about-principles h4 span,
.myth-grid h3 span, .myth-grid h4 span,
.location-grid h3 span, .location-grid h4 span,
.inspection-panel h3 span, .inspection-panel h4 span,
.quality-cert-strip h3 span, .quality-cert-strip h4 span {
  color: var(--ink);
}
.quality-method-grid p span, .dfm-check-grid p span, .dfm-steps p span,
.about-principles p span, .location-grid p span,
.inspection-panel p span, .quality-cert-strip p span,
.capability-card p span, .process-strip p span, .quality-proof-grid p span {
  color: var(--muted) !important;
  font-weight: 400 !important;
}

/* 3. Capability card text: block layout with line-height for vertical centering */
.capability-card span,
.capability-card strong {
  display: block !important;
}

/* 4. Card layout: vertical center + left align + left padding for ALL card sections.
   Each section uses its own card element (article, div, etc.). */

/* 3-layer card sections that use <article> */
.quality-method-grid article,
.dfm-check-grid article,
.dfm-steps article,
.about-principles article,
.location-grid article,
.quality-cert-strip div,
.process-strip div {
  display: grid;
  align-items: center;
  justify-items: start;
  text-align: left;
  padding-left: 32px;
}

/* Sections that lacked min-height - set a minimum for centering */
.quality-proof-grid div,
.capability-card,
.location-grid article {
  min-height: 180px;
}

/* 2-layer card sections that use <div> */
.case-matrix div,
.dfm-proof div,
.contact-proof div,
.route-list div,
.inspection-panel div {
  display: grid;
  align-items: center;
  justify-items: start;
  text-align: left;
  padding-left: 32px;
}

/* trust-bar div: keep original place-items:center, do NOT override */

/* Language switching - MUST be last to override layout display rules */
.en-only { display: inline !important; }
.zh-only { display: none !important; }

html[data-locale="zh"] .en-only { display: none !important; }
html[data-locale="zh"] .zh-only { display: inline !important; }

html[data-locale="en"] .en-only { display: inline !important; }
html[data-locale="en"] .zh-only { display: none !important; }


/* ============================================
   v=20260724d - Button text vertical centering
   Root cause: body { line-height: 1.45 } inflates .en-only line-box.
   Flex align-items:center centers the inflated line-box, not the text.
   Fix: Use line-height=height on parent, .en-only inherits it.
   Text naturally centers when line-height = container height.
   ============================================ */

/* --- Step 1: Override parent containers from flex to block + line-height=height --- */

/* Homepage */
.logo-row span {
  display: block !important;
  line-height: 54px !important;
  text-align: center !important;
  padding-left: 0 !important;
}
.workflow span {
  display: block !important;
  line-height: 58px !important;
  text-align: center !important;
  padding-left: 0 !important;
}

/* Capabilities */
.finish-tags span {
  display: inline-block !important;
  line-height: 34px !important;
  text-align: center !important;
}
.capability-card span {
  display: block !important;
  line-height: 46px !important;
  text-align: center !important;
}
.process-map span {
  display: block !important;
  line-height: 42px !important;
  text-align: center !important;
  padding: 0 !important;
}
.process-map strong {
  display: block !important;
  line-height: 56px !important;
  text-align: center !important;
  padding: 0 !important;
}
.process-strip span {
  display: block !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Cases */
.case-tags span {
  display: inline-block !important;
  line-height: 30px !important;
  text-align: center !important;
}
.case-confidential-list span {
  display: block !important;
  line-height: 54px !important;
  text-align: center !important;
  padding: 0 !important;
}

/* About */
.about-route span {
  display: block !important;
  line-height: 46px !important;
  text-align: center !important;
  padding: 0 !important;
}
.about-route strong {
  display: block !important;
  line-height: 60px !important;
  text-align: center !important;
  padding: 0 !important;
}
.about-phrase-board span {
  display: flex !important;
  align-items: center !important;
  line-height: 1.05 !important;
}
.about-principles span {
  display: inline-flex !important;
  align-items: center !important;
}

/* DFM */
.dfm-check-grid span {
  display: inline-flex !important;
  align-items: center !important;
}
.dfm-steps span {
  display: inline-flex !important;
  align-items: center !important;
}

/* Quality */
.quality-method-grid span {
  display: inline-flex !important;
  align-items: center !important;
}
.quality-standard-list span {
  display: block !important;
  line-height: 56px !important;
  text-align: center !important;
  padding: 0 !important;
}

/* --- Step 2: .en-only rules by container type --- */

/* Type A: block/inline-block containers with line-height=height → .en-only = inline + inherit */
html[data-locale="en"] .logo-row span .en-only,
html[data-locale="en"] .workflow span .en-only,
html[data-locale="en"] .case-tags span .en-only,
html[data-locale="en"] .case-confidential-list span .en-only,
html[data-locale="en"] .finish-tags span .en-only,
html[data-locale="en"] .capability-card span .en-only,
html[data-locale="en"] .process-map span .en-only,
html[data-locale="en"] .process-map strong .en-only,
html[data-locale="en"] .process-strip span .en-only,
html[data-locale="en"] .about-route span .en-only,
html[data-locale="en"] .about-route strong .en-only,
html[data-locale="en"] .quality-standard-list span .en-only {
  display: inline !important;
  line-height: inherit !important;
}

/* Type B: flex/inline-flex containers → .en-only = block + line-height:1 */
html[data-locale="en"] .about-phrase-board span .en-only,
html[data-locale="en"] .about-principles span .en-only,
html[data-locale="en"] .dfm-check-grid span .en-only,
html[data-locale="en"] .dfm-steps span .en-only,
html[data-locale="en"] .quality-method-grid span .en-only {
  display: block !important;
  line-height: 1 !important;
}

/* All buttons: hide .zh-only in English locale */
html[data-locale="en"] .logo-row span .zh-only,
html[data-locale="en"] .workflow span .zh-only,
html[data-locale="en"] .case-tags span .zh-only,
html[data-locale="en"] .case-confidential-list span .zh-only,
html[data-locale="en"] .finish-tags span .zh-only,
html[data-locale="en"] .capability-card span .zh-only,
html[data-locale="en"] .process-map span .zh-only,
html[data-locale="en"] .process-map strong .zh-only,
html[data-locale="en"] .process-strip span .zh-only,
html[data-locale="en"] .about-route span .zh-only,
html[data-locale="en"] .about-route strong .zh-only,
html[data-locale="en"] .about-phrase-board span .zh-only,
html[data-locale="en"] .about-principles span .zh-only,
html[data-locale="en"] .dfm-check-grid span .zh-only,
html[data-locale="en"] .dfm-steps span .zh-only,
html[data-locale="en"] .quality-method-grid span .zh-only,
html[data-locale="en"] .quality-standard-list span .zh-only {
  display: none !important;
}

/* Chinese locale: same logic, .zh-only gets the display, .en-only hidden */
/* Type A: block/inline-block containers → .zh-only = inline + inherit */
html[data-locale="zh"] .logo-row span .zh-only,
html[data-locale="zh"] .workflow span .zh-only,
html[data-locale="zh"] .case-tags span .zh-only,
html[data-locale="zh"] .case-confidential-list span .zh-only,
html[data-locale="zh"] .finish-tags span .zh-only,
html[data-locale="zh"] .capability-card span .zh-only,
html[data-locale="zh"] .process-map span .zh-only,
html[data-locale="zh"] .process-map strong .zh-only,
html[data-locale="zh"] .process-strip span .zh-only,
html[data-locale="zh"] .about-route span .zh-only,
html[data-locale="zh"] .about-route strong .zh-only,
html[data-locale="zh"] .quality-standard-list span .zh-only {
  display: inline !important;
  line-height: inherit !important;
}

/* Type B: flex/inline-flex containers → .zh-only = block + line-height:1 */
html[data-locale="zh"] .about-phrase-board span .zh-only,
html[data-locale="zh"] .about-principles span .zh-only,
html[data-locale="zh"] .dfm-check-grid span .zh-only,
html[data-locale="zh"] .dfm-steps span .zh-only,
html[data-locale="zh"] .quality-method-grid span .zh-only {
  display: block !important;
  line-height: 1 !important;
}

/* All buttons: hide .en-only in Chinese locale */
html[data-locale="zh"] .logo-row span .en-only,
html[data-locale="zh"] .workflow span .en-only,
html[data-locale="zh"] .case-tags span .en-only,
html[data-locale="zh"] .case-confidential-list span .en-only,
html[data-locale="zh"] .finish-tags span .en-only,
html[data-locale="zh"] .capability-card span .en-only,
html[data-locale="zh"] .process-map span .en-only,
html[data-locale="zh"] .process-map strong .en-only,
html[data-locale="zh"] .process-strip span .en-only,
html[data-locale="zh"] .about-route span .en-only,
html[data-locale="zh"] .about-route strong .en-only,
html[data-locale="zh"] .about-phrase-board span .en-only,
html[data-locale="zh"] .about-principles span .en-only,
html[data-locale="zh"] .dfm-check-grid span .en-only,
html[data-locale="zh"] .dfm-steps span .en-only,
html[data-locale="zh"] .quality-method-grid span .en-only,
html[data-locale="zh"] .quality-standard-list span .en-only {
  display: none !important;
}

/* Default (no locale attr): same as English */

/* Type A */
.logo-row span .en-only,
.workflow span .en-only,
.case-tags span .en-only,
.case-confidential-list span .en-only,
.finish-tags span .en-only,
.capability-card span .en-only,
.process-map span .en-only,
.process-map strong .en-only,
.process-strip span .en-only,
.about-route span .en-only,
.about-route strong .en-only,
.quality-standard-list span .en-only {
  display: inline !important;
  line-height: inherit !important;
}

/* Type B */
.about-phrase-board span .en-only,
.about-principles span .en-only,
.dfm-check-grid span .en-only,
.dfm-steps span .en-only,
.quality-method-grid span .en-only {
  display: block !important;
  line-height: 1 !important;
}

/* All buttons: hide .zh-only by default */
.logo-row span .zh-only,
.workflow span .zh-only,
.case-tags span .zh-only,
.case-confidential-list span .zh-only,
.finish-tags span .zh-only,
.capability-card span .zh-only,
.process-map span .zh-only,
.process-map strong .zh-only,
.process-strip span .zh-only,
.about-route span .zh-only,
.about-route strong .zh-only,
.about-phrase-board span .zh-only,
.about-principles span .zh-only,
.dfm-check-grid span .zh-only,
.dfm-steps span .zh-only,
.quality-method-grid span .zh-only,
.quality-standard-list span .zh-only {
  display: none !important;
}
