/* 卡大師頁：跟首頁同一套（site.css），這裡只放本頁自己的段落。
   貫穿全頁的記號是工程圖上的「球標」：每段的標籤是一顆紅圈編號，最後一段的品檢表一項項打勾。 */

.cd-hero, .cd-how, .cd-fn-sec, .cd-ind, .cd-num, .cd-sub, .cd-end { flex-direction: column; align-items: stretch; justify-content: center; }
.cd-hero p, .cd-hero h1, main .lead, .fn-t, .cd-steps p { text-wrap: pretty; }

/* ---------- 段落標籤：球標 ---------- */
.cd-k { display: flex; align-items: center; gap: 14px; }
.cd-k .bl {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0; border-radius: 50%;
  border: 1.4px solid var(--red-text); color: var(--red-text); font: 400 12px/1 var(--mono); letter-spacing: 0;
}
.cd-k::after { content: ""; flex: none; width: 48px; height: 1px; background: var(--line-2); }

/* ---------- 01 首屏 ---------- */
.cd-hero { min-height: 100vh; min-height: 100svh; padding: clamp(112px, 15vh, 150px) 0 clamp(64px, 9vh, 96px); justify-content: center; }
.cd-word { font-size: clamp(72px, 13vw, 226px); margin: 0 0 clamp(28px, 4.5vh, 48px); animation: fade 1.2s var(--ease) .1s both; }
.cd-hero-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
.cd-h1 { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.26; font-weight: 300; animation: fade 1.2s var(--ease) .25s both; }
.cd-h1 b { font-weight: 900; }
.cd-hero-copy .lead { margin-top: 24px; max-width: 30em; animation: fade 1.2s var(--ease) .4s both; }
.cd-acts { display: grid; grid-template-columns: minmax(0, 340px); gap: 12px; margin-top: 36px; animation: fade 1.2s var(--ease) .55s both; }
.cd-acts .btn { width: 100%; }
.cd-by { margin-top: 26px; animation: fade 1.2s var(--ease) .7s both; }
.cd-draw {
  position: relative; height: clamp(360px, 54vh, 520px); margin: 0; border: 1px solid var(--line-2);
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px; animation: appear 1.4s var(--ease) .5s both;
}

/* ---------- 02 怎麼運作：左四步，右邊卡大師畫面 ---------- */
.cd-tour { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cd-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.cd-steps li {
  counter-increment: s; min-height: 52vh; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: center; gap: 6px 20px;
  padding: 24px 0; transition: opacity .5s var(--ease);
}
/* 輪到的那一步整段亮起來、編號放大變紅；不用側邊線 */
.cd-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 400 12px/2.6 var(--mono); letter-spacing: .1em; color: var(--mute); transition: color .5s var(--ease), scale .5s var(--ease); transform-origin: 0 50%; }
.cd-steps li.on::before { color: var(--red-text); scale: 1.5; }
.cd-steps h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.4; }
.cd-steps p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 26em; }
.js .cd-steps li:not(.on) { opacity: .35; }
.cdw-col { position: sticky; top: calc(50vh - 230px); }

.cdw {
  --c-ink: #ECEAE4; --c-dim: rgba(236, 234, 228, .55); --c-line: rgba(236, 234, 228, .1);
  height: 460px; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; color: var(--c-ink);
  background: linear-gradient(180deg, #17171B, #0F0F12); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 50px 100px -40px rgba(20, 8, 8, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.cdw-bar { flex: none; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--c-line); }
.cdw-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.cdw-bar span { margin-left: 12px; font: 400 12px/1 var(--mono); letter-spacing: .14em; color: rgba(236, 234, 228, .8); }
.cdw-bar em { margin-left: auto; font: 400 10px/1 var(--mono); font-style: normal; letter-spacing: .1em; color: var(--c-dim); border: 1px solid var(--c-line); padding: 4px 7px; border-radius: 4px; }
.cdw-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

/* 圖面 */
.cdw-draw {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 22px 18px; border-right: 1px solid var(--c-line);
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cdw-svg { display: block; width: 100%; height: auto; max-height: 100%; overflow: visible; }
.cdw-svg .ln { fill: none; stroke: rgba(236, 234, 228, .66); stroke-width: 1.1; vector-effect: non-scaling-stroke; transition: opacity .6s var(--ease); }
.cdw-svg .cl { stroke: rgba(236, 234, 228, .3); stroke-dasharray: 10 3 2 3; }
.cdw-svg .hid { stroke: rgba(236, 234, 228, .38); stroke-dasharray: 4 3; }
.cdw-svg .dm { stroke: rgba(236, 234, 228, .42); }
.cdw-svg .dims circle { fill: #FF5A5E; }
.cdw-svg .bln path { fill: none; stroke: rgba(255, 90, 94, .75); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cdw-svg .bln circle { fill: #0F0F12; stroke: #FF5A5E; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.cdw-svg .bln text { fill: #F2F1EE; font: 500 10px var(--mono); text-anchor: middle; dominant-baseline: central; }


/* 上傳的檔案 */
.cdw-file {
  position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 12px; min-width: 176px; padding: 14px 18px 18px;
  border-radius: 12px; background: #1D1D22; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7);
  font-size: 14px; font-weight: 500; transform: translate(-50%, -50%); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cdw-file .doc { position: relative; flex: none; width: 22px; height: 28px; border-radius: 3px; background: #ECEAE4; clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%); }
.cdw-file .doc::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 2px; background: #D3141B; box-shadow: 0 -5px 0 rgba(17, 17, 19, .25); }
.cdw-file .prog { position: absolute; left: 18px; right: 18px; bottom: 9px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cdw-file .prog::after { content: ""; position: absolute; inset: 0; background: #FF4A4F; transform-origin: left; transform: scaleX(1); }
@keyframes cd-drop { from { opacity: 0; transform: translate(-50%, -110%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes cd-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 右邊清單 */
.cdw-side { min-width: 0; padding: 18px 16px; display: flex; flex-direction: column; }
.cdw-h { position: relative; height: 18px; margin-bottom: 12px; font: 400 12px/18px var(--mono); letter-spacing: .12em; color: var(--c-dim); }
.cdw-h span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity .4s var(--ease); }
.cdw-h .t3 { color: #FF7A7D; }
.cdw-rows { list-style: none; margin: 0; padding: 0; }
.cdw-rows li {
  display: grid; grid-template-columns: 22px 38px minmax(0, 1fr) 14px; gap: 10px; align-items: center; height: 46px;
  border-bottom: 1px solid var(--c-line); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.cdw-rows .r-b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.2px solid #FF5A5E;
  font: 500 10px/1 var(--mono); color: #F2F1EE; transition: opacity .4s var(--ease), transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.cdw-rows em { font-style: normal; font-size: 12.5px; color: var(--c-dim); white-space: nowrap; }
.cdw .tx { display: block; height: 7px; border-radius: 4px; background: rgba(236, 234, 228, .17); }
.cdw .w1 { width: 86%; } .cdw .w2 { width: 62%; } .cdw .w3 { width: 74%; } .cdw .w4 { width: 52%; }
.ck { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.cdw-rows .r-ok { width: 14px; height: 14px; stroke-width: 2.4; color: #FF5A5E; transition: opacity .35s var(--ease), transform .4s cubic-bezier(.3, 1.6, .5, 1); }

/* 四個畫面：0 上傳 → 1 讀出 → 2 球標 → 3 品檢表（沒有程式時停在 3，全部看得到） */
.cdw[data-state="0"] .t0, .cdw[data-state="1"] .t1, .cdw[data-state="2"] .t2, .cdw[data-state="3"] .t3 { opacity: 1; }
.cdw[data-state="0"] .cdw-svg .ln { opacity: .35; }
.cdw:not([data-state="0"]) .cdw-file { opacity: 0; transform: translate(-50%, -30%); pointer-events: none; }
.cdw[data-state="0"] .cdw-file { animation: cd-drop .7s var(--ease) both; }
.cdw[data-state="0"] .cdw-file .prog::after { animation: cd-load 2.2s cubic-bezier(.4, 0, .2, 1) .5s both; }
.cdw-svg .dims circle { transition: opacity .4s var(--ease); }
.cdw[data-state="0"] .cdw-svg .dims circle { opacity: 0; }
.cdw-svg .bln { transform-box: fill-box; transform-origin: center; transition: opacity .45s var(--ease), transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.cdw[data-state="0"] .bln, .cdw[data-state="1"] .bln { opacity: 0; transform: scale(.5); }
/* 還沒上傳：清單是空的格子 */
.cdw-rows em, .cdw .cdw-rows .tx { transition: opacity .45s var(--ease); }
.cdw[data-state="0"] .cdw-rows em, .cdw[data-state="0"] .cdw-rows .tx { opacity: 0; }
.cdw[data-state="0"] .cdw-rows li { border-bottom-style: dashed; }
.cdw[data-state="0"] .r-b, .cdw[data-state="1"] .r-b { opacity: 0; transform: scale(.4); }
.cdw:not([data-state="3"]) .r-ok { opacity: 0; transform: scale(.4); }
.cdw[data-state="3"] .cdw-rows li { background: rgba(237, 28, 36, .05); }
.cdw-rows li:nth-child(2), .cdw-svg .bln:nth-child(2), .cdw-svg .dims circle:nth-child(2) { transition-delay: .1s; }
.cdw-rows li:nth-child(3), .cdw-svg .bln:nth-child(3), .cdw-svg .dims circle:nth-child(3) { transition-delay: .2s; }
.cdw-rows li:nth-child(4), .cdw-svg .bln:nth-child(4), .cdw-svg .dims circle:nth-child(4) { transition-delay: .3s; }
.cdw-rows li:nth-child(5), .cdw-svg .bln:nth-child(5), .cdw-svg .dims circle:nth-child(5) { transition-delay: .4s; }
.cdw-rows li:nth-child(6), .cdw-svg .bln:nth-child(6), .cdw-svg .dims circle:nth-child(6) { transition-delay: .5s; }
.cdw-rows li:nth-child(2) .r-b, .cdw-rows li:nth-child(2) .r-ok { transition-delay: .12s; }
.cdw-rows li:nth-child(3) .r-b, .cdw-rows li:nth-child(3) .r-ok { transition-delay: .24s; }
.cdw-rows li:nth-child(4) .r-b, .cdw-rows li:nth-child(4) .r-ok { transition-delay: .36s; }
.cdw-rows li:nth-child(5) .r-b, .cdw-rows li:nth-child(5) .r-ok { transition-delay: .48s; }
.cdw-rows li:nth-child(6) .r-b, .cdw-rows li:nth-child(6) .r-ok { transition-delay: .6s; }

/* ---------- 03 六大功能 ---------- */
.cd-fn { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.cd-fn > li { border-bottom: 1px solid var(--line); }
.fn-row {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr) clamp(150px, 14vw, 210px);
  gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(22px, 3.4vh, 36px) 0;
}
.fn-n {
  font-family: var(--wide); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(44px, 4.8vw, 80px);
  line-height: .85; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(242, 240, 236, .42);
}
.fn-row h3 { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.4; }
.fn-t { color: var(--ink-2); font-size: 16px; line-height: 1.8; max-width: 30em; }
.fn-g { display: block; width: 100%; height: auto; overflow: visible; }
.fn-g .s { fill: none; stroke: rgba(242, 240, 236, .72); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fn-g .dim { stroke: rgba(242, 240, 236, .28); }
.fn-g .r { stroke: #FF4A4F; }
.fn-g .dash { stroke-dasharray: 4 4; }
/* 捲進來時：線條小圖從左畫到右，編號的外框亮起來 */
.fx-on .fn-row[data-reveal] .fn-g { clip-path: inset(-6px 100% -6px -6px); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1) .1s; }
.fx-on .fn-row[data-reveal].in .fn-g { clip-path: inset(-6px -6px -6px -6px); }
.fx-on .fn-row[data-reveal] .fn-n { -webkit-text-stroke-color: rgba(242, 240, 236, .12); transition: -webkit-text-stroke-color .8s var(--ease); }
.fx-on .fn-row[data-reveal].in .fn-n { -webkit-text-stroke-color: rgba(242, 240, 236, .42); }

/* 功能列：上面一行小字是工廠裡的那個時刻 */
.fn-when { display: block; margin-bottom: 8px; font: 400 12px/1.4 var(--mono); letter-spacing: .14em; color: #FF6A6E; }

/* ---------- 跟 ChatGPT 差在哪（沿用首頁的 .xs 對照列） ---------- */
.cd-vs .xs-old span { display: block; }
.cd-src { margin-top: 22px; }

/* ---------- 真實成果：三欄案例，大數字 ---------- */
.cd-case { flex-direction: column; align-items: stretch; }
.cs3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.cs3-c { padding: clamp(26px, 4vh, 40px) clamp(20px, 2.4vw, 40px) 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); }
.cs3-c:first-child { padding-left: 0; border-left: 0; }
.cs3-k { font: 400 12px/1.6 var(--mono); letter-spacing: .1em; color: var(--mute); }
.cs3-k b { display: block; font-weight: 400; color: #FF6A6E; margin-bottom: 4px; }
.cs3-t { font-size: 16px; font-weight: 700; color: var(--ink); }
.cs3-n {
  margin-top: 10px; white-space: nowrap; color: var(--ink);
  font-family: var(--wide); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800;
  font-size: clamp(48px, 5.4vw, 92px); line-height: .95; letter-spacing: -.03em;
}
.cs3-n small { font-family: var(--zh); font-size: .34em; font-weight: 700; letter-spacing: 0; margin: 0 .2em; color: var(--ink-2); }
.cs3-n small:first-child { margin-left: 0; }
.cs3-m:first-of-type .cs3-n { color: #FF4A4F; }
.cs3-n.cs3-w { font-family: var(--zh); font-size: clamp(30px, 3vw, 46px); font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
.cs3-d { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 22em; }

/* ---------- 適用產業：標題欄（16 格＋最後一條給你的工廠） ---------- */
.tb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .5); }
.tb li {
  position: relative; min-height: clamp(104px, 13vh, 132px); padding: 16px 22px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.tb li:nth-child(4n) { border-right: 0; }
.tb li.tb-you { grid-column: 1 / -1; border-bottom: 0; border-right: 0; min-height: 0; }
.tb-you a { flex-direction: row !important; align-items: baseline; gap: 6px 22px; flex-wrap: wrap; }
.tb-you a b { margin-top: 0 !important; padding-top: 0 !important; }
.tb-you small { margin-top: 0 !important; margin-left: auto; }
.tb-n { display: block; width: 7px; height: 7px; background: var(--red); }
.tb-you .tb-n { align-self: center; background: #fff; }
.tb b { font-size: clamp(22px, 2vw, 32px); font-weight: 900; line-height: 1.25; }
.tb li.tb-you { padding: 0; }
.tb-you a {
  position: relative; overflow: hidden; isolation: isolate; flex: 1; display: flex; flex-direction: column; justify-content: flex-start;
  padding: 18px 22px 22px; background: #D3141B; color: #fff; text-decoration: none;
}
.tb-you a b { margin-top: auto; padding-top: 24px; }
.tb-you a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #A30F15; transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
.tb-you a:hover::before, .tb-you a:focus-visible::before { transform: scaleX(1); }
.tb-you a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.tb-you small { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.tb-you b { display: block; }
.fx-on .tb[data-reveal]:not(.in) li { opacity: 0; transform: translateY(14px); }
.tb li:nth-child(4n+2) { transition-delay: .06s; } .tb li:nth-child(4n+3) { transition-delay: .12s; } .tb li:nth-child(4n) { transition-delay: .18s; }
.tb li:nth-child(n+5) { transition-duration: .7s; } .tb li.tb-you { transition-delay: .4s; }

/* 三步開始 */
.cd-go { list-style: none; margin: clamp(28px, 4vh, 40px) 0 0; padding: 0; counter-reset: g; border-top: 1px solid var(--line-2); }
.cd-go li { counter-increment: g; display: grid; grid-template-columns: 34px 6em minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cd-go li::before { content: counter(g, decimal-leading-zero); font: 400 12px/1 var(--mono); letter-spacing: .1em; color: #FF6A6E; }
.cd-go b { font-size: 18px; font-weight: 700; }
.cd-go span { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.cd-go-n { margin-top: 18px; font-size: 15px; line-height: 1.75; color: var(--ink-2); max-width: 34em; }
.cd-pt-d { margin-top: 16px; font-size: 14.5px; line-height: 1.75; color: var(--mute); max-width: 36em; }
.sb-meter2 { margin-top: 24px; }
.sb-meter2 .sb-track i { background: #FF6A6E; transition-delay: 1s; }
.sb-meter2 .sb-l b { transition-delay: 2s; }

/* ---------- 05 數字＋合作夥伴 ---------- */
.cd-num-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.cd-scene { margin: 0; }
.cd-scene img { width: 100%; max-width: 640px; height: auto; margin-inline: auto; }
.cd-num-r .h2 { font-size: clamp(34px, 3.8vw, 60px); }
.cd-stats { list-style: none; margin: clamp(36px, 5vh, 52px) 0 14px; padding: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.cd-stats li { padding: 26px 20px 0; border-left: 1px solid var(--line); }
.cd-stats li:first-child { padding-left: 0; border-left: 0; }
.cd-stats .stat-n { color: var(--ink); white-space: nowrap; font-size: clamp(36px, 3.4vw, 54px); }
.cd-stats .zero .stat-n { color: var(--red-text); }
.cd-stats .stat-t { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
.cd-pt { margin-top: clamp(36px, 5vh, 52px); padding-top: 22px; border-top: 1px solid var(--line); }
.cd-pt-k { font: 400 12px/1.4 var(--mono); letter-spacing: .14em; color: var(--mute); }
.cd-pt-n { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; font-family: var(--wide); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.3; color: var(--ink-2); }
.cd-pt-n span { white-space: nowrap; }
.cd-pt-n i { display: none; }

/* ---------- 06 政府補助 ---------- */
.cd-sub-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.sb {
  position: relative; border-radius: 22px; padding: clamp(24px, 3vw, 40px); color: #F2F1EE;
  background: linear-gradient(180deg, #17171B, #0F0F12); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 50px 100px -40px rgba(20, 8, 8, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.sb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; font: 400 12px/1 var(--mono); letter-spacing: .14em; color: rgba(242, 241, 238, .75); }
.sb-top em { margin-left: auto; font-style: normal; font-size: 11px; color: #FF7A7D; border: 1px solid rgba(255, 90, 94, .45); padding: 6px 10px; border-radius: 999px; letter-spacing: .1em; }
.sb-l { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.sb-l span { font-size: 15px; color: rgba(242, 241, 238, .7); }
.sb-l b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; line-height: 1.2; color: #fff; transition: opacity .6s var(--ease) 1.4s, transform .6s var(--ease) 1.4s; }
.sb-track { position: relative; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sb-track i { position: absolute; inset: 0; border-radius: 7px; background: #D3141B; transform-origin: left; transition: transform 1.6s cubic-bezier(.2, .7, .1, 1) .3s; }
.fx-on .sb[data-reveal]:not(.in) .sb-track i { transform: scaleX(0); }
.fx-on .sb[data-reveal]:not(.in) .sb-l b { opacity: 0; transform: translateY(8px); }
.sb-steps { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: b; border-top: 1px solid rgba(255, 255, 255, .1); }
.sb-steps li { counter-increment: b; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sb-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.sb-steps li::before { content: counter(b, decimal-leading-zero); grid-row: span 2; font: 400 12px/1 var(--mono); letter-spacing: .1em; color: #FF6A6E; }
.sb-steps b { font-size: 17px; line-height: 1.4; }
.sb-steps span { grid-column: 2; font-size: 14.5px; line-height: 1.6; color: rgba(242, 241, 238, .66); }
.sb-steps em { grid-column: 3; grid-row: 1 / span 2; font: 400 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; color: rgba(242, 241, 238, .7); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 10px; }

/* ---------- 08 收尾：品檢表打勾 ---------- */
.cd-end { min-height: 86vh; }
.cd-end-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.cd-end .h2 { font-size: clamp(34px, 4vw, 64px); }
.cd-end-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; max-width: 612px; }
.cd-end-acts .btn { width: 100%; }
.qc { background: rgba(255, 255, 255, .78); border: 1.5px solid var(--ink); }
.qc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 22px; border-bottom: 1.5px solid var(--ink); font-size: 18px; font-weight: 900; }
.qc-h em { font: 400 11px/1 var(--mono); font-style: normal; letter-spacing: .14em; color: var(--mute); }
.qc-rows { list-style: none; margin: 0; padding: 0; }
.qc-rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-2); font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; line-height: 1.4; }
.qc-rows li:last-child { border-bottom: 0; }
.qc-rows b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.4px solid var(--red-text); font: 400 12px/1 var(--mono); color: var(--red-text); }
.qc-rows .qc-ok { width: 24px; height: 24px; stroke-width: 2.2; color: var(--red); transition: opacity .3s var(--ease), transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.fx-on .qc[data-reveal]:not(.in) .qc-ok { opacity: 0; transform: scale(.3); }
.qc-rows li:nth-child(1) .qc-ok { transition-delay: .4s; } .qc-rows li:nth-child(2) .qc-ok { transition-delay: .8s; }
.qc-rows li:nth-child(3) .qc-ok { transition-delay: 1.2s; } .qc-rows li:nth-child(4) .qc-ok { transition-delay: 1.6s; }

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .cd-hero-grid, .cd-tour, .cd-num-grid, .cd-sub-grid, .cd-end-grid { grid-template-columns: minmax(0, 1fr); }
  .cd-draw { height: min(64vw, 460px); }
  .cdw-col { position: relative; top: auto; order: -1; }
  .cd-steps li { min-height: 0; padding: 20px 0 20px 22px; }
  .js .cd-steps li:not(.on) { opacity: .55; }
  .fn-row { grid-template-columns: minmax(0, 1fr) 150px; grid-template-areas: "h g" "t g"; row-gap: 6px; align-items: start; }
  .fn-n { grid-area: n; } .fn-row h3 { grid-area: h; } .fn-t { grid-area: t; } .fn-g { grid-area: g; align-self: center; }
  .cd-scene img { max-width: 520px; }
  .cd-scene { order: 2; }
  .cs3 { grid-template-columns: minmax(0, 1fr); }
  .cs3-c, .cs3-c:first-child { padding: 28px 0 32px; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; }
  .cs3-k { grid-column: 1 / -1; }
}

/* ---------- 手機 ---------- */
@media (max-width: 760px) {
  .cd-hero { padding-top: 104px; }
  .cd-word { font-size: 14.6vw; }
  .cd-h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .cd-acts { grid-template-columns: minmax(0, 1fr); }
  .cd-draw { height: 72vw; }
  .cdw { height: auto; }
  .cdw-body { grid-template-columns: minmax(0, 1fr); }
  .cdw-draw { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 18px 14px; }
  .cdw-rows li { height: 40px; }
  .cd-steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .fn-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "t" "g"; }
  .fn-n { font-size: 40px; }
  .fn-g { max-width: 190px; margin-top: 14px; }
  .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb li { min-height: 88px; padding: 12px 14px 14px; gap: 12px; }
  .tb li:nth-child(4n) { border-right: 1px solid var(--line-2); }
  .tb li:nth-child(2n) { border-right: 0; }
  .tb li.tb-you { padding: 0; }
  .tb-you a { padding: 14px 16px 16px; }
  .tb-you small { margin-left: 0; flex-basis: 100%; }
  .tb b { font-size: 20px; }
  .cs3-c, .cs3-c:first-child { grid-template-columns: minmax(0, 1fr); }
  .cs3-n { font-size: 56px; }
  .cd-go li { grid-template-columns: 30px minmax(0, 1fr); }
  .cd-go span { grid-column: 2; }
  .cd-stats { grid-template-columns: minmax(0, 1fr); }
  .cd-stats li, .cd-stats li:first-child { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .cd-stats .stat-t { margin-top: 0; }
  .cd-pt-n { gap: 8px 26px; }
  .cd-pt-n i { display: none; }
  .cd-end-acts { grid-template-columns: minmax(0, 1fr); }
  .qc-rows li { padding: 16px; gap: 12px; }
  .sb-steps li { grid-template-columns: 30px minmax(0, 1fr); }
  .sb-steps em { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
}

/* ---------- 減少動態：全部停在完成的樣子 ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-on .fn-row[data-reveal] .fn-g { clip-path: none; }
  .fx-on .tb[data-reveal]:not(.in) li, .fx-on .sb[data-reveal]:not(.in) .sb-l b { opacity: 1; transform: none; }
  .fx-on .sb[data-reveal]:not(.in) .sb-track i { transform: none; }
  .fx-on .qc[data-reveal]:not(.in) .qc-ok { opacity: 1; transform: none; }
}
