:root {
  --base: #0a1422;
  --accent: #5fd8e0;
  --ink: #eef2f4;
  --steel: #6f8494;
  --muted: #cfdee5;
  --hairline: rgb(111 132 148 / .54);
  color-scheme: dark;
  --sans: "PingFang TC","Noto Sans TC","Source Han Sans TC","Microsoft JhengHei",system-ui,sans-serif;
  --edge: clamp(24px, 5.3vw, 100px);
  --max: 1560px;
  --header: 78px;
  --ease: cubic-bezier(.2,.7,.25,1);
}

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

html { background: var(--base); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.75 var(--sans);
}

h1, h2, p, dl, dd { margin: 0; }
h2 { font-size: 30px; line-height: 1.35; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.wrap { width: min(calc(100% - 2 * var(--edge)), var(--max)); margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  transition: transform .3s var(--ease), visibility .3s;
}

.site-header[data-hidden] { transform: translateY(-101%); visibility: hidden; }
.mast { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; width: max-content; }
.brand-mark { flex: none; position: relative; width: 32px; height: 32px; color: var(--accent); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; inset: 0; }
.brand-mark::before { border: 1px solid currentColor; background: linear-gradient(135deg, transparent 48%, currentColor 49% 51%, transparent 52%); }
.brand-mark::after { inset: 8px; border: 1px solid currentColor; }

.brand-name { display: grid; line-height: 1.24; }
.brand-name strong { font-size: 18px; letter-spacing: .09em; }
.brand-name small { font-size: 14px; color: var(--muted); }
.desk-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.nav-link, .menu-toggle { min-height: 44px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; letter-spacing: .04em; }
.nav-link:hover { color: var(--accent); }
.menu-toggle { display: none; font-size: 14px; font-weight: 700; padding-inline: 12px; }
.menu-glyph { width: 18px; height: 10px; position: relative; color: var(--accent); }
.menu-glyph::before, .menu-glyph::after { content: ""; position: absolute; right: 0; width: 100%; height: 1px; background: currentColor; }
.menu-glyph::after { bottom: 0; width: 67%; }

.hero {
  --cut-edge: clamp(32px, 6vw, 116px);
  --cut-track-height: 140px;
  --cut-brass: #f3cb93;
  position: relative;
  isolation: isolate;
  color: #f2f6f7;
  line-height: 1.55;
  background: #0e1e2c;
}

.cut-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: max(560px, 100svh);
  overflow: clip;
  padding: 100px var(--cut-edge) calc(var(--cut-track-height) + clamp(90px, 17svh, 200px));
}

.cut-picture { position: absolute; z-index: -2; inset: 0; background: #153549; }
.cut-picture img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
}

.cut-stage::before, .cut-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.cut-stage::before {
  background: radial-gradient(ellipse 34% 42% at 20% 44%, #0a142266, transparent),
    linear-gradient(90deg, #0b19293b 0%, #0c213124 30%, transparent 50%);
}
.cut-stage::after {
  background: linear-gradient(180deg, transparent 10%, #65c8da70 52%, transparent 93%);
  clip-path: polygon(59% 0, calc(59% + 2px) 0, calc(36% + 2px) 100%, 36% 100%);
}

.cut-copy { width: fit-content; }
.cut-copy h1 {
  font-size: clamp(46px, 4.75vw, 92px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .015em;
  text-shadow: 0 2px 4px #0a1422cc, 0 4px 28px #0a1422d9;
}
.cut-copy h1 span {
  display: block;
  animation: cut-across .42s cubic-bezier(.14,.88,.32,1) both;
}
.cut-copy h1 span + span {
  margin-inline-start: .34em;
  color: var(--accent);
  animation-delay: .09s;
}
.cut-intro {
  margin: 24px 0 18px;
  color: #e1ecf3;
  font-size: clamp(16px, 1.25vw, 19px);
  text-shadow: 0 1px 3px #0a1422, 0 2px 14px #0a1422e6;
}

.cut-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cut-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.cut-actions .cut-primary {
  min-height: 48px;
  padding-inline: 17px 22px;
  background: var(--cut-brass);
  color: var(--base);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.cut-primary:focus-visible { clip-path: none; }
.cut-actions .cut-primary:hover { background: #f9e2bb; }
.cut-actions .cut-secondary { border-color: #b8d3dd72; background: #0a14225c; }
.cut-secondary:hover { color: var(--accent); }

/* 流程軌疊在桌機主圖底部，直式畫面改為兩列。 */
.cut-process {
  --node-top: 13px;
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 76px);
  min-height: var(--cut-track-height);
  padding: 20px var(--cut-edge);
  border-top: 1px solid #a8e4ef47;
  background: linear-gradient(180deg, #ffffff14, #ffffff05 60%), #0a14224d;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 -18px 40px #0a142240;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.cut-process:focus-visible { outline-offset: -5px; }
.cut-process h2 {
  border-left: 2px solid var(--cut-brass);
  padding-left: 13px;
  color: var(--cut-brass);
  font-size: 16px;
  font-weight: 700;
  line-height: inherit;
}
.cut-process:is(:hover, :focus-visible) h2 { text-decoration: underline; text-underline-offset: .25em; }
.cut-process ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.cut-process li {
  position: relative;
  padding: 27px 4px 0;
  color: #e9f3f5;
  text-align: center;
  font-size: 14px;
}
.cut-process li::before {
  content: "";
  position: absolute;
  top: var(--node-top);
  left: 50%;
  width: 100%;
  height: 1px;
  background: #5f99a9;
}
.cut-process li:last-child::before { display: none; }
.cut-process li::after {
  content: "";
  position: absolute;
  top: calc(var(--node-top) - 5px);
  left: calc(50% - 5px);
  width: 11px;
  height: 11px;
  background: var(--accent);
  box-shadow: 0 0 11px #5fd8e064;
  transform: rotate(45deg);
  animation: track-light .48s var(--step-time, .24s) ease-out both;
}
.cut-process li:nth-child(2) { --step-time: .37s; }
.cut-process li:nth-child(3) { --step-time: .50s; }
.cut-process li:nth-child(4) { --step-time: .63s; }
.cut-process li:nth-child(5) { --step-time: .76s; }
.cut-process li:nth-child(6) { --step-time: .89s; }

@keyframes cut-across {
  from { opacity: .15; transform: translate(-36px, 22px) skewX(-11deg); }
  to { opacity: 1; transform: translate(0, 0) skewX(0); }
}
@keyframes track-light {
  0% { opacity: .25; transform: rotate(45deg) scale(.62); }
  44% { opacity: 1; transform: rotate(45deg) scale(1.36); }
  100% { opacity: 1; transform: rotate(45deg) scale(1); }
}

@media (max-height: 700px) {
  .hero { --cut-track-height: 110px; }
}

@media (max-width: 760px), (orientation: portrait) {
  .hero {
    --cut-edge: clamp(18px, 5.65vw, 42px);
    --cut-track-height: 156px;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100svh;
    padding-top: var(--header);
  }
  .cut-stage {
    grid-template-rows: minmax(222px, 1fr) auto;
    align-items: stretch;
    min-height: 0;
    padding: 0;
  }
  .cut-stage::before, .cut-stage::after { display: none; }
  .cut-picture { position: relative; z-index: 0; }
  .cut-picture img { object-position: 50% 82%; }
  .cut-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: -24px;
    padding: 29px var(--cut-edge) 22px;
    background: linear-gradient(123deg, #0d2436, #10242f 70%, #1f3742);
    clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%);
  }
  .cut-copy h1 { font-size: clamp(37px, 11vw, 68px); }
  .cut-copy h1 span + span { margin-inline-start: .55em; }
  .cut-intro { margin: 13px 0 15px; }
  .cut-actions { column-gap: 10px; }
  .cut-actions a { gap: 9px; padding-inline: 13px; }
  .cut-actions .cut-primary { padding-inline: 17px 22px; }
  .cut-process {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    padding-block: 10px 12px;
    border-color: #6aaec27a;
    background: linear-gradient(108deg, #111f2c, #0b1928 75%);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .cut-process h2 { font-size: 14px; padding-left: 8px; }
  .cut-process ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; }
  .cut-process li { padding-top: 24px; }
  .cut-process li:nth-child(3)::before {
    width: 32%;
    height: calc(100% + 5px);
    border: 1px solid #5f99a9;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: none;
  }
  .cut-process li:nth-child(4) { grid-column: 3; grid-row: 2; }
  .cut-process li:nth-child(5) { grid-column: 2; grid-row: 2; }
  .cut-process li:nth-child(6) { grid-column: 1; grid-row: 2; }
  .cut-process li:nth-child(n+4)::before { left: -50%; }
}

@media (max-width: 460px) {
  .cut-process ol { padding-inline-end: 42px; }
}

.action {
  position: relative;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.action-primary { background: var(--accent); color: var(--base); }
.arrow { font-size: 18px; font-weight: 400; line-height: 1; }


dialog { border: 0; padding: 0; color: var(--ink); background: var(--base); }
dialog::backdrop { background: rgb(0 0 0 / .73); }
.mobile-menu {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
}

.mobile-menu::backdrop { background: var(--base); }
.menu-shell { position: relative; min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: var(--header); gap: 16px; }
.close-button { min-width: 44px; min-height: 44px; padding-inline: 12px; border: 1px solid var(--hairline); font-size: 14px; }
.close-button:hover { border-color: var(--accent); }
.menu-links { align-self: center; display: grid; position: relative; padding-block: 20px; }
.menu-link { display: grid; align-items: center; width: 100%; min-height: 70px; text-align: start; }
.menu-link strong { font-size: clamp(24px, 6vw, 38px); line-height: 1.3; }
.menu-link small { color: var(--muted); font-size: 14px; }
.menu-link:hover strong, .menu-link:focus-visible strong { color: var(--accent); }
.menu-foot { padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.menu-foot p { margin-top: 12px; font-size: 14px; color: var(--muted); }


@media (max-width: 900px) {
  :root { --header: 66px; }
  .desk-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--hairline); }
}

@media (max-width: 620px) {
  :root { --header: 62px; }
  .brand { gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-mark::after { inset: 7px; }
}




.site-header { background: linear-gradient(rgb(10 20 34 / .9), rgb(10 20 34 / .65) 78%, transparent); }
.mast { border-bottom: 1px solid var(--hairline); }
.nav-quote { color: var(--accent); border-inline-start: 1px solid var(--hairline); padding-inline-start: 26px; }
.led-word { position: relative; display: inline-block; }
.led-projection {
  position: absolute;
  inset: 0;
  color: transparent;
  pointer-events: none;
  background: radial-gradient(circle, var(--ink) 0 30%, transparent 37%) 0 0 / 6px 6px;
  background-clip: text;
  mask: linear-gradient(90deg, transparent 22%, #000 50%, transparent 78%) 100% 0 / 230% 100%;
  opacity: 0;
}

@keyframes led-travel {
  0% { mask-position: 100% 0; opacity: 0; }
  28%, 72% { opacity: .88; }
  100% { mask-position: 0 0; opacity: 0; }
}

.menu-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13% 0 12%;
  background: radial-gradient(ellipse at 92% 45%, rgb(95 216 224 / .12), transparent 60%);
}

.menu-links { padding-inline-start: 17px; border-inline-start: 2px solid var(--accent); }
.menu-link { grid-template-columns: 1fr 44px; gap: 3px 12px; padding: 16px 0; }
.menu-link + .menu-link { border-top: 1px solid var(--hairline); }
.menu-link .arrow { color: var(--accent); grid-column: 2; grid-row: 1 / 3; justify-self: center; }
.menu-link small { grid-column: 1; }

.mobile-menu[open] .menu-links { animation: calibrate .26s var(--ease) both; }
.mobile-menu[data-closing] .menu-links { animation: calibrate-out .23s ease both; }

@keyframes calibrate {
  from { clip-path: polygon(0 0,100% 0,0 0,0 100%); }
  to { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
}

@keyframes calibrate-out {
  from { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
  to { clip-path: polygon(0 0,100% 0,0 0,0 100%); }
}

@media (max-width: 620px) {
  .action { gap: 10px; min-height: 48px; padding-inline: 12px; }
}

@media (max-width: 359px) {
  :root { --edge: 18px; }
}

/* 共用排版與進場掃光 */
:root {
  --panel: #0f1e2d;
  --night: #08111d;
  --subtle: #a9becb;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --space: clamp(60px, 8vw, 126px);
  --split: clamp(28px, 5.4vw, 86px);
  --list-inset: clamp(14px, 2.1vw, 30px);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

main:focus, section[tabindex]:focus { outline: none; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h2 { font-size: clamp(34px, 4.25vw, 68px); line-height: 1.22; letter-spacing: .07em; }
h3 { font-size: clamp(18px, 2vw, 26px); line-height: 1.35; }
img { display: block; max-width: 100%; }

a, button, summary, input, select, textarea {
  transition: color .23s, background-color .23s, border-color .23s;
}
:is(summary, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 12px;
  left: var(--edge);
  z-index: 3;
  color: var(--base);
  background: var(--accent);
  padding: 10px 16px;
  transform: translateY(calc(-100% - 20px));
}
.skip:focus { transform: none; }
.noscript { padding: 18px var(--edge); color: var(--muted); }
body .cxdigi-language-link {
  color: var(--ink);
  background: var(--base);
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}
body .cxdigi-language-link:focus-visible { outline-color: var(--accent); }

.section-inner { position: relative; padding-block: var(--space); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px var(--split);
  margin-bottom: clamp(28px, 4.4vw, 64px);
}
.section-heading h2 { flex: none; }
.section-heading p, .inquiry-intro > p { max-width: 33em; color: var(--subtle); }
.details-section, .quality, .inquiry { background: var(--panel); }
.workflow, .site-footer { background: var(--night); }

.section-inner::after, .flow-track::before, .flow-track::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.section-inner::after {
  inset: 12px 0 auto;
  height: calc(var(--space) - 24px);
  opacity: 0;
  background: radial-gradient(ellipse, rgb(95 216 224 / .16), transparent 70%) no-repeat 0 0 / 32% 100%;
}
.section-inner.is-in::after { animation: line-travel 1.35s var(--ease); }
@keyframes line-travel {
  0% { opacity: 0; background-position: -40% 0; }
  12%, 88% { opacity: 1; }
  100% { opacity: 0; background-position: 140% 0; }
}

/* 加工能力的製程選擇與條件表 */
.process-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: clamp(20px, 3vw, 42px); }
.process-switch button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
  min-height: 68px;
  padding: 12px clamp(6px, 1.6vw, 26px);
  text-align: start;
}
.process-switch button:hover, .detail-controls button:hover { background: rgb(95 216 224 / .05); }
.process-switch button[aria-pressed="true"], .detail-controls button[aria-pressed="true"] {
  background: rgb(95 216 224 / .12);
  color: var(--accent);
}
.process-switch strong { font-size: clamp(16px, 2vw, 23px); line-height: 1.3; }
.process-switch button > span, .case-id, .flow-track li > span {
  color: var(--accent);
  font: 400 14px/1.35 var(--mono);
}

.cap-layout, .detail-layout, .quality-grid { display: grid; gap: clamp(22px, 4.4vw, 68px); }
.cap-layout { grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr); }
.process-photo, .component-figure, .inspection-figure {
  position: relative;
  min-width: 0;
  min-height: 285px;
  overflow: hidden;
  background: var(--night);
}
:is(.process-photo, .component-figure, .inspection-figure) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cap-content { display: flex; flex-direction: column; justify-content: center; }
.cap-caption, .measure-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 15px;
}
table { width: 100%; border-collapse: collapse; text-align: start; }
th, td { padding: 11px 0; vertical-align: top; text-align: left; }
th { color: var(--subtle); font-weight: 400; }
.cap-content th { width: 6em; padding-inline-end: 10px; white-space: nowrap; }
.fine { margin-top: 18px; color: var(--subtle); font-size: 14px; }
.process-photo.is-swapping img { animation: image-settle .25s ease-out both; }
@keyframes image-settle { from { opacity: .45; } }

/* 製程細節 */
.detail-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.component-figure img { object-position: 48% center; }
:is(.component-figure, .inspection-figure) figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  padding: max(20px, 3vw) clamp(16px, 2.4vw, 36px) 16px;
  background: linear-gradient(0deg, rgb(8 17 29 / .94), transparent);
  font-size: 14px;
  color: var(--ink);
}
.detail-panel { display: flex; flex-direction: column; gap: 22px; }
.detail-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail-controls button { min-height: 44px; padding: 5px; }
.detail-readout {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  align-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex: 1;
}
#detail-number { color: var(--accent); font: 400 21px/1.2 var(--mono); }
.detail-body h3 { margin: 5px 0 12px; }
#detail-description { color: var(--subtle); max-width: 30em; }
.detail-note { display: grid; gap: 4px; padding: 14px; margin-top: 16px; background: var(--base); }
.detail-note > span { color: var(--subtle); font-size: 14px; }
.detail-note strong { font-weight: 400; }
.detail-readout > a { grid-column: 1/-1; }

/* 製品案例與問答的可展開項目 */
.case-list, .faq-list { display: grid; gap: 10px; }
:is(.case-list, .faq-list) details { background: var(--panel); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.case-list summary {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(9rem, .55fr) 1.5rem;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px var(--list-inset);
}
.case-title { font-size: clamp(18px, 2.1vw, 30px); font-weight: 700; }
.case-material { color: var(--subtle); font-size: 14px; }
.case-toggle { color: var(--accent); font-size: 24px; transition: rotate .25s; }
.case-list details[open] .case-toggle { rotate: 45deg; }
.case-list summary:hover .case-title { color: var(--accent); }
.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px clamp(18px, 5vw, 76px);
  margin-inline: calc(var(--list-inset) + 6rem) calc(var(--list-inset) + 2.5rem);
  padding-bottom: 24px;
}
.case-body p { color: var(--subtle); max-width: 32em; }
.case-body dl > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px; padding: 5px 0; }
.case-body dt { color: var(--subtle); }
.detail-readout > a, .text-button, .back-top {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  width: fit-content;
  border-bottom: 1px solid var(--hairline);
  color: var(--accent);
}
.text-button:hover, .detail-readout > a:hover, .back-top:hover { border-color: var(--accent); }

/* 合作流程與共用光流 */
.flow-track { position: relative; display: grid; list-style: none; padding: 0; }
.flow-track::before, .flow-track::after { top: 0; bottom: 0; left: 10px; width: 1px; }
.flow-track::before { background: linear-gradient(var(--accent), var(--hairline)); }
.flow-track::after {
  opacity: 0;
  background: linear-gradient(180deg, transparent, var(--accent) 70%, transparent) no-repeat 0 0 / 100% 32%;
}
.flow-track.is-in::after { animation: flow-travel 1.8s var(--ease); }
@keyframes flow-travel {
  0% { opacity: 0; background-position: 0 -48%; }
  12%, 88% { opacity: 1; }
  100% { opacity: 0; background-position: 0 148%; }
}
.flow-track li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(7em, .7fr) minmax(0, 1.5fr);
  gap: 10px clamp(12px, 2vw, 30px);
  align-items: baseline;
  padding-block: 16px;
}
.flow-track li:first-child { padding-top: 2px; }
.flow-track li > span { position: relative; z-index: 1; text-align: center; background: var(--night); }
.flow-track h3 { font-size: clamp(18px, 1.75vw, 24px); }
.flow-track li p { color: var(--subtle); }

@media (min-width: 1120px) {
  .flow-track { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 40px); }
  .flow-track::before, .flow-track::after { inset: 10px 0 auto; width: auto; height: 1px; }
  .flow-track::before { background: linear-gradient(90deg, var(--accent), var(--hairline)); }
  .flow-track::after {
    background: linear-gradient(90deg, transparent, var(--accent) 70%, transparent) no-repeat 0 0 / 32% 100%;
  }
  .flow-track.is-in::after { animation-name: line-travel; }
  .flow-track li, .flow-track li:first-child {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    padding: 0;
  }
  .flow-track li > span { justify-self: start; padding-inline-end: 8px; }
}

/* 首件量測 */
.quality-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 54px); }
.inspection-figure img { object-position: 51% 43%; }
.measure-head > span, .pass { color: var(--accent); font: 400 14px/1.35 var(--mono); }
.quality-copy th, .quality-copy td { font-size: 14px; padding: 9px 6px; }
.quality-copy tr > :last-child { text-align: right; }
.quality-copy td { font-family: var(--mono); }
.quality-copy table { white-space: nowrap; }
.quality-copy thead { border-bottom: 1px solid var(--hairline); }
.quality-copy tbody tr:nth-child(odd) { background: rgb(95 216 224 / .035); }
.quality-copy ol { list-style: none; padding: 0; margin-top: 22px; }
.quality-copy li { display: grid; grid-template-columns: 2.2em 1fr; gap: 8px; padding-top: 12px; }
.quality-copy li > span { color: var(--accent); font: 400 14px/1.7 var(--mono); }
.quality-copy li h3 { font-size: 18px; }
.quality-copy li p { color: var(--subtle); font-size: 14px; margin-top: 3px; }

.radar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(82px, 11vw, 156px);
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50%;
  border: 1px solid rgb(95 216 224 / .66);
  background:
    linear-gradient(90deg, transparent 49.5%, rgb(95 216 224 / .55) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgb(95 216 224 / .55) 50%, transparent 50.5%),
    repeating-radial-gradient(circle, transparent 0 18%, rgb(95 216 224 / .42) 18.5% 19%, transparent 19.5% 21%),
    rgb(8 17 29 / .72);
}
.radar-sweep {
  position: absolute;
  inset: 0;
  display: block;
  background: conic-gradient(from -68deg, transparent 0deg, rgb(95 216 224 / .43) 66deg, var(--accent) 67deg, transparent 70deg);
  rotate: 137deg;
}
.radar.is-in .radar-sweep { animation: radar-sweep 3s linear infinite; }
@keyframes radar-sweep { from { rotate: 0deg; } to { rotate: 360deg; } }
.radar-point {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 5px;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.radar-point:nth-of-type(2) { --x: 67%; --y: 26%; --pulse: .29s; }
.radar-point:nth-of-type(3) { --x: 68%; --y: 69%; --pulse: 1.14s; }
.radar-point:nth-of-type(4) { --x: 22%; --y: 55%; --pulse: 2.16s; }
.radar.is-in .radar-point { animation: radar-pulse 3s var(--pulse) ease-out infinite both; }
@keyframes radar-pulse {
  0% { opacity: .9; scale: 1.5; }
  37%, 100% { opacity: .28; scale: 1; }
}

/* FAQ 與詢價 */
.faq-list { max-width: 1080px; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 11px var(--list-inset);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 700;
}
.faq-list summary::after { content: "＋"; color: var(--accent); transition: rotate .25s; }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { max-width: 37em; margin-inline: var(--list-inset); padding-bottom: 18px; color: var(--subtle); }
.inquiry-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: var(--split);
}
.inquiry-intro { display: flex; flex-direction: column; align-items: start; }
.inquiry-intro h2 { margin-bottom: 15px; }
.drawing-check { align-self: stretch; margin: clamp(24px, 4vw, 54px) 0 24px; }
.drawing-check h3, .file-types h3 { margin-bottom: 9px; }
.drawing-check p { padding-block: clamp(8px, 1.3vw, 18px); }
.drawing-check p span { color: var(--accent); font: 400 14px/1.4 var(--mono); margin-inline-end: 10px; }
.file-types ul { display: flex; gap: 6px 16px; flex-wrap: wrap; list-style: none; padding: 0; }
.file-types li { font: 400 14px/1.4 var(--mono); padding: 6px 0; }
.inquiry-intro > .local-note { margin-top: 22px; font-size: 14px; }
#inquiry-form { padding: clamp(16px, 3vw, 42px); background: var(--base); }
.form-top { padding-bottom: 10px; }
.form-top span { font-weight: 700; font-size: 18px; }
label { display: flex; gap: 1px 8px; flex-wrap: wrap; align-items: baseline; margin: 13px 0 5px; }
label span { color: var(--subtle); font-size: 14px; }
:is(input, select, textarea) {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 11px;
  font: inherit;
}
#inquiry-form :is(input, select, textarea):focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 0;
}
:is(input, textarea)::placeholder { color: var(--subtle); opacity: 1; }
textarea { resize: vertical; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#inquiry-form .action { margin-top: 18px; }
#inquiry-form .action:hover, .menu-foot .action:hover { background: var(--ink); }
.form-status { margin-top: 12px; color: var(--subtle); font-size: 14px; }

.site-footer { padding-block: 30px 60px; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; align-items: center; }
.footer-bottom { margin-top: 42px; color: var(--subtle); font-size: 14px; }

/* 文字與按鈕動態 */
.section h2 .led-projection, .details-section h2 .led-projection { background-size: 5px 5px; }
h2.is-in .led-projection { animation: led-travel .8s var(--ease); }
.ghost-copy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  color: var(--accent);
}
.ghost-title { position: relative; }
.ghost-title.is-in { animation: ghost-arrive .29s var(--ease); }
.ghost-title.is-in .ghost-copy { animation: ghost-trail .29s var(--ease); }
@keyframes ghost-arrive { from { transform: translateX(-10px) skewX(-5deg); } }
@keyframes ghost-trail {
  from { opacity: .52; transform: translateX(-8px); text-shadow: -5px 0 rgb(95 216 224 / .44), -10px 0 2px rgb(95 216 224 / .22); }
  to { opacity: 0; transform: none; }
}
.reel { display: inline-flex; white-space: pre; }
.reel-window { display: inline-block; height: 1.5em; line-height: 1.5; overflow: clip; }
.reel-strip {
  display: inline-flex;
  flex-direction: column;
  transform: translateY(calc(1.5em - 100%));
  animation: reel-stop var(--duration) var(--ease) var(--delay) both;
}
@keyframes reel-stop {
  0% { transform: translateY(0); }
  82% { transform: translateY(calc(1.56em - 100%)); }
}
@media (max-width: 900px) {
  .cap-layout, .detail-layout, .quality-grid { gap: 24px; }
  .cap-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .detail-layout, .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-track li { grid-template-columns: 22px minmax(0, 1fr); gap: 3px 14px; }
  .flow-track li p { grid-column: 2; }
}

@media (max-width: 680px) {
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .cap-layout, .detail-layout, .quality-grid, .inquiry-inner, .case-body { grid-template-columns: minmax(0, 1fr); }
  .process-switch button { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 4px; padding-inline: 7px; }
  .process-switch button > span:last-child { display: none; }
  .process-photo, .component-figure, .inspection-figure { min-height: 0; aspect-ratio: 1.55; }
  .cap-caption { align-items: start; }
  .case-list summary { grid-template-columns: 3em minmax(0, 1fr) 1.4em; gap: 0 8px; }
  .case-material { grid-column: 2; }
  .case-toggle { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .case-body { margin-inline: var(--list-inset); }
  .case-body dl > div { padding-block: 3px; }
  .inquiry-inner { gap: 24px; }
}

@media (max-width: 360px) {
  .field-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .quality-copy th, .quality-copy td { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
