/* =========================================================
   Yifanda landing — design tokens & restrained factory UI
   Palette: ink / navy-teal / paper. No glow orbs, blobs, neon.
   ========================================================= */
:root {
  --ink: #17313c;
  --ink-soft: #253e48;
  --muted: #53656b;
  --muted-2: #6c7c76;
  --teal: #237d6f;
  --teal-dark: #195e54;
  --teal-soft: #e7efeb;
  --paper: #fafbf8;
  --paper-2: #f3f6f4;
  --paper-3: #eef2ee;
  --line: #d8e1dc;
  --line-strong: #c5d2cb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(23, 49, 60, 0.04), 0 1px 3px rgba(23, 49, 60, 0.06);
  --shadow-md: 0 2px 8px rgba(23, 49, 60, 0.06), 0 1px 2px rgba(23, 49, 60, 0.04);
  --shadow-hover: 0 6px 18px rgba(23, 49, 60, 0.08), 0 2px 4px rgba(23, 49, 60, 0.04);
  --radius: 6px;
  --radius-sm: 4px;
  --max: 1180px;
  --section-x: max(5vw, 24px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-zh: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
img { display: block; width: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption {
  margin: 0;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--muted-2);
}
p { margin: 0 0 16px; color: var(--muted); }
h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1 { font-size: clamp(40px, 4.8vw, 64px); margin: 16px 0 22px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 10px 0 22px; }
h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.35; margin: 14px 0 10px; }
em { font-style: normal; color: var(--teal); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ——— Preview notice (quiet) ——— */
.notice {
  background: var(--paper-2);
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 16px;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
}

/* ——— Header ——— */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px var(--section-x);
  background: rgba(250, 251, 248, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(23, 49, 60, 0.02);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.brand {
  margin-right: auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.2;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}
nav a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}
nav a:hover {
  color: var(--teal);
  background: var(--teal-soft);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wa {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.language-switch {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}
.language-switch button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  min-height: 32px;
  min-width: 36px;
  letter-spacing: 0.02em;
}
.language-switch [aria-pressed="true"] {
  background: var(--teal);
  color: var(--white);
}
.language-switch button:hover:not([aria-pressed="true"]) {
  background: var(--paper-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--white);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  min-height: 40px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

/* ——— Sections ——— */
section {
  padding: 72px var(--section-x);
  max-width: calc(var(--max) + 2 * 5vw);
  margin: auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--teal);
}

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 36px;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.08;
  margin: 14px 0 20px;
}
.hero .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.hero p { max-width: 52ch; }
.hero p strong { color: var(--ink); font-weight: 650; }
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 16px;
  font-size: 13px;
  font-weight: 500;
}
.actions > a:not(.button) { color: var(--ink-soft); text-underline-offset: 4px; }
.micro, .fine {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.hero .micro {
  margin: 0;
  max-width: 48ch;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.hero-media {
  position: relative;
  min-width: 0;
}
.hero-carousel {
  position: relative;
  min-width: 0;
}
.hero-carousel-viewport {
  position: relative;
  height: 500px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--paper-2);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.hero-carousel-btn {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.hero-carousel-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.hero-carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}
.hero-carousel-dot {
  appearance: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
}
.hero-carousel-dot.is-active {
  background: var(--teal);
  width: 16px;
}
.hero-carousel-dot:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.hero-media figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-carousel-viewport { cursor: pointer; }
.hero-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(23, 49, 60, 0.62);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 30, 40, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 140ms ease, transform 140ms ease;
}
.hero-play:hover {
  background: rgba(23, 49, 60, 0.78);
}
.hero-play:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.hero-play-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  position: relative;
  flex: 0 0 auto;
}
.hero-play-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--ink);
}
.hero-play-label { white-space: nowrap; }
.hero-tour-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hero-tour-modal[hidden] { display: none !important; }
.hero-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 32, 0.72);
}
.hero-tour-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #0b161d;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  outline: none;
}
.hero-tour-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px 16px;
  color: #fff;
}
.hero-tour-bar h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-tour-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.hero-tour-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.hero-tour-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  background: #000;
  vertical-align: top;
}
body.tour-open { overflow: hidden; }
@media (max-width: 720px) {
  .hero-play {
    padding: 8px 12px 8px 10px;
    font-size: 12px;
    gap: 8px;
  }
  .hero-play-icon { width: 24px; height: 24px; }
  .hero-play-icon::before { left: 9px; top: 7px; border-width: 5px 0 5px 8px; }
  .hero-tour-modal { padding: 10px; }
  .hero-tour-video { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-play { transition: none; }
}


/* Thin trust strip under hero */
.trust-strip {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--section-x) 40px;
  max-width: calc(var(--max) + 2 * 5vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.trust-strip li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 0 0;
  border-right: 1px solid var(--line);
}
.trust-strip li:last-child { border-right: 0; padding-right: 0; }
.trust-strip strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.trust-strip span {
  font-size: 12px;
  color: var(--muted);
}

/* ——— Facts ——— */
.facts {
  background: var(--paper-3);
  padding-top: 40px;
  padding-bottom: 40px;
  border-block: 1px solid var(--line);
  max-width: none;
}
.facts-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.facts > .eyebrow,
.facts-inner > .eyebrow { margin-bottom: 20px; }
.factgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.factgrid > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.factgrid b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  line-height: 1.35;
  color: var(--ink);
}
.factgrid div > span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.facts dl {
  margin: 20px 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}
dl { margin: 20px 0; }
dl > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  gap: 16px;
}
dl > div:last-child { border-bottom: 0; }
dt { font-weight: 650; color: var(--ink); }
dd { margin: 0; color: var(--muted); }
.facts .fine { margin-bottom: 0; max-width: 72ch; }

/* ——— Section heads ——— */
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
}
.sectionhead h2 { margin-bottom: 0; }
.sectionhead > p {
  max-width: 280px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* ——— Application series filters ——— */
.parts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.parts-filter {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.parts-filter:hover:not(.is-active) {
  background: var(--paper-2);
  border-color: var(--line-strong);
  color: var(--ink);
}
.parts-filter.is-active,
.parts-filter[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.parts-empty {
  display: none;
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.parts-empty.is-visible { display: block; }
.parts article[hidden] { display: none !important; }

/* ——— Application cards ——— */
.parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.parts article {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.parts article:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.parts img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.parts article > h3 {
  margin: 16px 16px 6px;
  font-size: 16px;
}
.parts article > p {
  margin: 0 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
}
.parts .placeholder { display: none; }

/* ——— Process (dark) ——— */
.process {
  background: var(--ink);
  color: var(--white);
  max-width: none;
  padding-left: max(5vw, 24px);
  padding-right: max(5vw, 24px);
}
.process > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.process h2 { color: var(--white); }
.process p,
.process figcaption { color: #b7c6c9; }
.process .eyebrow { color: #91c8b8; }
.process .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.steps article {
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.steps article > span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 8px;
}
.steps h3 { font-size: 17px; margin: 6px 0 8px; }
.steps p { margin-bottom: 0; font-size: 13.5px; }
.process .steps article {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.process .steps article > span { color: #91c8b8; }
.process .steps h3 { color: var(--white); }
.process .steps p { color: #b7c6c9; }
.partner-note {
  max-width: 820px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.7;
}
/* ——— Materials / Quality split ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.finish { margin: 0; }
.finish > div {
  grid-template-columns: 140px 1fr;
  padding: 16px 0;
  gap: 16px;
}
.quality {
  background: var(--paper-3);
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-left: max(5vw, 24px);
  padding-right: max(5vw, 24px);
  box-sizing: border-box;
}
.quality > * { max-width: none; }
.quality > figure,
.quality > div {
  max-width: none;
}
.quality img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 32%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quality .micro { margin-bottom: 0; }

/* ——— Placeholders ——— */
.placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  gap: 6px;
  line-height: 1.5;
  color: var(--muted-2);
  font-size: 13px;
}
.placeholder > span:not([data-i18n]) { font-size: 12px; color: var(--muted); }
.placeholder > [data-i18n] { font-size: 12px; color: var(--muted-2); }
.certificate {
  height: auto;
  min-height: 88px;
  max-width: 340px;
  margin: 16px 0;
  border-style: solid;
  border-left: 3px solid #b5c8be;
  background: var(--white);
}

/* ——— Photo sections (floor / lab / media) ——— */
.photo-section .section-lead {
  max-width: 640px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.media-grid figure {
  min-width: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.media-grid figure:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.media-grid figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 0;
}
.media-grid figure figcaption {
  padding: 10px 12px 12px;
  font-size: 12px;
  color: var(--muted);
}
.media-grid figure img.object-top { object-position: top center; }
.media-grid .placeholder {
  height: auto;
  aspect-ratio: 16 / 10;
  min-width: 0;
  overflow-wrap: anywhere;
}

#floor {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  max-width: none;
}
#lab {
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
  max-width: none;
}
#floor .eyebrow,
#lab .eyebrow { margin-bottom: 8px; }
#floor > *,
#lab > *,
#media > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
#floor .media-grid,
#lab .media-grid,
#media .media-grid {
  max-width: var(--max);
}

/* ——— Start ——— */
.start .steps article:hover {
  box-shadow: var(--shadow-md);
}

/* ——— FAQ ——— */
.faq { max-width: 900px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 18px 28px 18px 0;
  line-height: 1.45;
  list-style: none;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 500;
  color: var(--muted-2);
  margin-left: 12px;
}
.faq details[open] summary {
  color: var(--teal);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer {
  color: var(--muted);
  padding: 0 0 20px;
  max-width: 720px;
  line-height: 1.75;
}
.faq .answer .fine { margin: 12px 0 0; }

/* ——— Contact ——— */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  background: var(--paper-3);
  max-width: none;
  border-top: 1px solid var(--line);
  padding-left: max(5vw, 24px);
  padding-right: max(5vw, 24px);
}
.contact > * { max-width: none; }
@media (min-width: 901px) {
  .contact {
    max-width: calc(var(--max) + 2 * 5vw);
    margin-left: auto;
    margin-right: auto;
  }
}
.contact h2 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
}
.contact address {
  font-style: normal;
  max-width: 420px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}
.contact a:not(.button) { text-underline-offset: 4px; }

form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
form h3 { margin: 0 0 20px; font-size: 18px; }
label {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  margin: 0 0 16px;
  color: var(--ink);
}
input, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  padding: 11px 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(35, 125, 111, 0.12);
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder {
  color: var(--muted-2);
  font-size: 13px;
}
form .button { width: 100%; margin-top: 4px; }
form > .fine { margin: 14px 0 0; }
#status:empty { display: none; }
#status { margin-top: 10px; font-size: 13px; color: var(--teal); }



/* ——— Sample lightbox (enlarge / view original) ——— */
.sample-lightbox {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sample-lightbox[hidden] { display: none !important; }
.sample-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 32, 0.78);
}
.sample-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(94vh, 960px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 20px 20px 16px;
  outline: none;
}
.sample-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.sample-lightbox-close:hover { color: var(--ink); background: var(--paper-2); }
.sample-lightbox-figure {
  margin: 0 28px 0 0;
}
.sample-lightbox-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68vh, 720px);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.sample-lightbox-figure figcaption {
  margin-top: 14px;
}
.sample-lightbox-figure h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.sample-lightbox-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.sample-lightbox-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}
.sample-lightbox-actions .button { width: auto; margin: 0; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 720px) {
  .sample-lightbox { padding: 10px; align-items: flex-end; }
  .sample-lightbox-dialog { width: 100%; max-height: 94vh; padding: 16px 14px 14px; }
  .sample-lightbox-figure { margin-right: 24px; }
  .sample-lightbox-figure img { max-height: 52vh; }
  .sample-lightbox-actions .button { width: 100%; }
}

/* ——— Sample inquiry modal ——— */
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.inquiry-modal[hidden] { display: none !important; }
.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 49, 60, 0.45);
}
.inquiry-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 840px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 24px 24px 20px;
}
.inquiry-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.inquiry-modal-close:hover { color: var(--ink); background: var(--paper-2); }
.inquiry-modal-sample {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0 28px 18px 0;
}
.inquiry-modal-sample img {
  width: 96px;
  height: 72px;
  object-fit: contain;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.inquiry-modal-sample .eyebrow { margin: 0 0 4px; }
.inquiry-modal-sample h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}
.inquiry-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
#inquiry-form { box-shadow: none; border: 0; padding: 0; background: transparent; }
#inquiry-form .optional {
  font-weight: 500;
  color: var(--muted-2);
  font-size: 12px;
}
#inquiry-form label { margin-bottom: 12px; }
#inquiry-status:empty { display: none; }
#inquiry-status { margin-top: 10px; font-size: 13px; color: var(--teal); }
.inquiry-success {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.inquiry-success p { margin: 0 0 12px; font-size: 13.5px; }
.inquiry-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.inquiry-success-actions .button { width: auto; margin: 0; }
body.inquiry-open { overflow: hidden; }
@media (max-width: 560px) {
  .inquiry-modal { padding: 12px; align-items: flex-end; }
  .inquiry-modal-dialog { width: 100%; max-height: 94vh; padding: 20px 16px 16px; }
  .inquiry-modal-sample { grid-template-columns: 72px 1fr; gap: 10px; margin-right: 24px; }
  .inquiry-modal-sample img { width: 72px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .inquiry-modal-backdrop { transition: none; }
}

/* ——— Footer ——— */
footer {
  padding: 32px var(--section-x) 40px;
  border-top: 1px solid var(--line);
  max-width: calc(var(--max) + 2 * 5vw);
  margin: auto;
}
footer strong {
  letter-spacing: 1.4px;
  font-size: 15px;
}
footer p {
  margin: 10px 0;
  font-size: 12.5px;
  max-width: 720px;
}

/* ——— Mobile CTA bar ——— */
.mobilebar {
  display: none;
}

/* ——— zh-TW typography ——— */
html[lang="zh-Hant-TW"] body { font-family: var(--font-zh); }
html[lang="zh-Hant-TW"] h1,
html[lang="zh-Hant-TW"] h2,
html[lang="zh-Hant-TW"] h3 { letter-spacing: 0; }
html[lang="zh-Hant-TW"] h2 { line-height: 1.35; }
html[lang="zh-Hant-TW"] h3 { line-height: 1.45; }
html[lang="zh-Hant-TW"] .hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.25;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  header { gap: 12px; }
  nav { display: none; }
  .hero { gap: 32px; }
  .hero-carousel-viewport { height: 420px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .quality, .contact { gap: 28px; }
  .hero .lead { font-size: 17px; }
  .factgrid { grid-template-columns: repeat(2, 1fr); }
  .steps, .process .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { gap: 28px; }
  .hero-carousel-viewport { height: 380px; }
  .factgrid { grid-template-columns: 1fr 1fr; }
  .steps, .process .steps { grid-template-columns: 1fr 1fr; }
  .split, .quality, .contact { gap: 28px; }
  .parts img { height: auto; }
}

@media (max-width: 600px) {
  header {
    padding: 10px 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  header .wa { display: none; }
  .brand { font-size: 18px; margin-right: auto; }
  .brand small { font-size: 9px; }
  header .button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .language-switch button { padding: 5px 8px; }

  section { padding: 44px 20px; }
  .hero, .split, .quality, .contact { grid-template-columns: 1fr; }
  .hero {
    padding-top: 28px;
    padding-bottom: 24px;
    gap: 24px;
  }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .hero-carousel-viewport { height: 260px; }
  .actions { flex-direction: column; align-items: flex-start; gap: 14px; }

  .trust-strip {
    grid-template-columns: 1fr;
    padding: 0 20px 28px;
    gap: 0;
  }
  .trust-strip li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .trust-strip li:last-child { border-bottom: 0; }

  .facts { padding-top: 28px; padding-bottom: 28px; }
  .factgrid { gap: 10px; }
  .factgrid b { font-size: 14px; }
  .factgrid > div { padding: 12px 14px; }
  dl > div, .finish > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .facts dl { padding: 2px 14px; }

  .sectionhead { display: block; }
  .sectionhead > p { margin-top: 12px; max-width: none; }

  .parts { grid-template-columns: 1fr; gap: 14px; }
  .parts-filters { gap: 6px; margin-bottom: 16px; }
  .parts-filter { padding: 6px 12px; font-size: 12.5px; }
  .parts article > h3 { margin: 14px 14px 6px; }
  .parts article > p { margin: 0 14px 16px; }
  .parts img { height: auto; }

  .steps, .process .steps { gap: 12px; }
  .steps h3 { font-size: 16px; }
  .quality img { height: auto; }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .media-grid .placeholder {
    aspect-ratio: auto;
    height: 130px;
    padding: 12px;
  }
  form { padding: 22px 18px; }
  .contact h2 { font-size: 34px; }

  .mobilebar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    z-index: 50;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 -4px 16px rgba(23, 49, 60, 0.06);
  }
  .mobilebar .button { flex: 1; }
  footer { padding: 28px 20px 108px; }

  html[lang="zh-Hant-TW"] .hero h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .parts article, .media-grid figure, input, textarea { transition: none; }
  .parts article:hover { transform: none; }
}

@media print {
  header, .mobilebar, .notice { position: static; }
  .mobilebar { display: none; }
  .parts article:hover, .media-grid figure:hover { box-shadow: none; transform: none; }
}
