@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Noto+Sans+TC:wght@400;500;700;900&display=swap");

:root {
  --paper: #ffffff; --paper-deep: #f5f5f4; --card: #ffffff;
  --ink: #141414; --ink-2: #4a4a4a; --ink-3: #858585; --line: #e4e4e2;
  --pine: #141414; --leaf: #ffd2bd; --stamp: #e0321c; --amber: #f4c95d; --sky: #9cc9ee;
  --line-green: #06c755;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; --accent: #ff5a1f;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 500 12.5px/1 var(--mono); letter-spacing: .12em; color: var(--stamp); margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, .55); } 70% { box-shadow: 0 0 0 9px rgba(6, 199, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); } }

/* ---------- 導覽 ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { flex: none; width: 42px; height: 42px; }
.brand-mark .m1 { fill: #141414; }
.brand-mark .m2 { fill: #ffd2bd; }
.brand-mark .m3 { fill: none; stroke: #06c755; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font: 900 22px/1.1 var(--sans); letter-spacing: .04em; }
.brand-name small { display: block; margin-top: 3px; font: 500 9.5px/1 var(--mono); letter-spacing: .2em; color: var(--ink-3); }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav .nav-login { padding: 8px 16px; border: 1px solid var(--ink); border-radius: 8px; color: var(--ink); }
.nav .nav-login:hover { background: var(--ink); color: #fff; }

/* ---------- 主視覺 ---------- */
.hero { padding-block: clamp(24px, 3.4vw, 48px) clamp(30px, 3.6vw, 46px); }
.hero h1 { font: 900 clamp(38px, 5.6vw, 76px)/1.16 var(--serif); letter-spacing: .01em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--leaf) 62% 92%, transparent 92%); }
.lead { margin-top: 20px; max-width: 46ch; font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 12px 22px; border-radius: 9px; border: 1px solid var(--ink); font-weight: 700; font-size: 15.5px; text-decoration: none; transition: transform .15s var(--ease), background .15s; }
.button:hover { transform: translateY(-2px); }
.button.dark { background: var(--ink); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--paper-deep); }
.button.light { background: var(--leaf); border-color: var(--leaf); color: var(--ink); }
.hero > * { animation: rise .7s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .08s; } .hero > :nth-child(3) { animation-delay: .16s; } .hero > :nth-child(4) { animation-delay: .24s; }

/* ---------- 流程動畫舞台 ---------- */
.flow { padding-bottom: clamp(48px, 7vw, 96px); }
.flow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.flow-head h2 { font: 900 clamp(22px, 2.6vw, 30px)/1.3 var(--serif); }
.flow-toggle { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink-2); font: 500 13px/1.2 var(--sans); cursor: pointer; }
.flow-toggle:hover { border-color: var(--ink); color: var(--ink); }
.stage {
  position: relative; padding: clamp(16px, 2.4vw, 28px); border-radius: 22px; color: #ededed;
  background-color: var(--ink);
  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; overflow: hidden;
}
.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rail button { position: relative; display: flex; align-items: center; gap: 9px; padding: 12px 12px 15px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); color: #9a9a9a; font: 700 14.5px/1.3 var(--sans); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.rail button:hover { background: rgba(255, 255, 255, .09); color: #e6e6e6; }
.rail button b { font: 600 12px/1 var(--mono); color: #6e6e6e; }
.rail button.is-done { color: #c2c2c2; }
.rail button.is-done b { color: var(--leaf); }
.rail button.is-active { background: var(--paper); color: var(--ink); }
.rail button.is-active b { color: var(--stamp); }
.rail .bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rail .is-active .bar { background: rgba(20, 20, 20, .14); }
.rail .bar i { display: block; height: 100%; width: 100%; background: var(--stamp); transform-origin: left; transform: scaleX(0); }
.rail .is-done .bar i { transform: scaleX(1); background: var(--leaf); }
.rail .is-active .bar i { animation: fill var(--dur, 5s) linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.caption { min-height: 62px; margin: 18px 4px 16px; }
.cap { display: none; font-size: clamp(15px, 1.35vw, 17.5px); color: #bdbdbd; max-width: 60ch; }
.cap strong { display: block; font: 900 clamp(21px, 2.3vw, 29px)/1.35 var(--serif); color: #fff; margin-bottom: 2px; }
.stage[data-step="1"] .cap-1, .stage[data-step="2"] .cap-2, .stage[data-step="3"] .cap-3, .stage[data-step="4"] .cap-4, .stage[data-step="5"] .cap-5 { display: block; animation: rise .5s var(--ease) both; }

.scene { display: grid; grid-template-columns: 292px 48px minmax(0, 1fr) 48px 350px; align-items: stretch; min-height: 560px; }
.col { min-width: 0; display: flex; flex-direction: column; transition: opacity .55s, transform .55s var(--ease), filter .55s; opacity: .4; transform: scale(.965); filter: saturate(.5); }
.stage[data-step="1"] .col-phone, .stage[data-step="2"] .col-ai, .stage[data-step="3"] .col-ai, .stage[data-step="4"] .col-desk, .stage[data-step="5"] .col-desk { opacity: 1; transform: none; filter: none; }
.stage[data-step="4"] .col-phone { opacity: .85; filter: none; }
.stage-foot { margin-top: 14px; text-align: right; font-size: 12px; color: #6e6e6e; }

/* 顯示時機：from-N 從第 N 步開始出現；until-N 到第 N 步消失；only-N 只在該步出現 */
.stage[data-step="1"] .from-2, .stage[data-step="1"] .from-3, .stage[data-step="1"] .from-4, .stage[data-step="1"] .from-5,
.stage[data-step="2"] .from-3, .stage[data-step="2"] .from-4, .stage[data-step="2"] .from-5,
.stage[data-step="3"] .from-4, .stage[data-step="3"] .from-5,
.stage[data-step="4"] .from-5 { visibility: hidden; }
.stage[data-step="1"] .from-2.nb, .stage[data-step="1"] .from-4.nb, .stage[data-step="1"] .from-5.nb,
.stage[data-step="2"] .from-4.nb, .stage[data-step="2"] .from-5.nb,
.stage[data-step="3"] .from-4.nb, .stage[data-step="3"] .from-5.nb,
.stage[data-step="4"] .from-5.nb { display: none; }
.stage[data-step="4"] .until-4, .stage[data-step="5"] .until-4, .stage[data-step="5"] .until-5 { display: none; }
.stage:not([data-step="1"]) .only-1, .stage:not([data-step="2"]) .only-2, .stage:not([data-step="3"]) .only-3 { display: none; }
.stage[data-step="1"] .only-23, .stage[data-step="4"] .only-23, .stage[data-step="5"] .only-23 { display: none; }
.stage:not([data-step="4"]):not([data-step="5"]) .only-45 { display: none; }

/* 進場動畫：aN 只在第 N 步播放，其餘時間維持完成狀態 */
.roll { --an: roll; --t: .45s; }
.stage[data-step="4"] .shift-4, .stage[data-step="5"] .shift-4, .stage[data-step="5"] .shift-5 { margin-top: -30px; }
@keyframes roll { from { margin-top: 0; } to { margin-top: -30px; } }
.pop { --an: pop; } .rise { --an: rise; } .slide { --an: slide; } .drop { --an: drop; } .flip { --an: flip; }
.stage[data-step="1"] .a1, .stage[data-step="2"] .a2, .stage[data-step="3"] .a3, .stage[data-step="4"] .a4, .stage[data-step="5"] .a5 {
  animation: var(--an, rise) var(--t, .55s) var(--ease) both; animation-delay: var(--d, 0s);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.7); } 60% { opacity: 1; transform: translateY(-3px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) scale(.94); } 55% { opacity: 1; transform: translateY(4px) scale(1.01); } to { opacity: 1; transform: none; } }
@keyframes flip { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
.stage.is-paused *, .stage.is-paused *::before, .stage.is-paused *::after { animation-play-state: paused !important; }

/* ----- 手機 ----- */
.col-phone { justify-content: center; }
.phone { display: flex; flex-direction: column; height: 548px; border-radius: 34px; border: 7px solid #0a0a0a; background: #8ba6c9; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); color: #111; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 4px; background: #7f9cc1; font: 600 12px/1 var(--sans); color: #fff; }
.island { width: 74px; height: 20px; border-radius: 12px; background: #0a0a0a; }
.sig { font-size: 8px; letter-spacing: 1px; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: #7f9cc1; color: #fff; }
.phone-top .back { font-size: 24px; line-height: 1; }
.oa { flex: 1; display: grid; }
.oa b { font-size: 15.5px; line-height: 1.3; }
.oa small { font-size: 10.5px; opacity: .85; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px 10px; overflow: hidden; justify-content: flex-start; }
.chat-date { align-self: center; padding: 2px 11px; border-radius: 12px; background: rgba(0, 0, 0, .22); color: #fff; font-size: 11px; }
.row { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; transform-origin: left bottom; }
.row.out { justify-content: flex-end; transform-origin: right bottom; }
.ava { flex: none; align-self: flex-start; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--pine); font: 700 14px/1 var(--serif); }
.bubble { max-width: 200px; padding: 9px 12px; border-radius: 18px; background: #fff; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.row.out .bubble { background: #8de37e; border-bottom-right-radius: 5px; }
.row.in .bubble { border-top-left-radius: 5px; }
.meta { font-size: 9.5px; line-height: 1.3; color: #fff; text-align: right; opacity: .9; }
.dots { display: flex; gap: 4px; padding: 13px 14px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #a0a0a0; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.flex-card { width: 198px; border-radius: 14px; background: #fff; overflow: hidden; font-size: 13.5px; }
.flex-top { padding: 8px 12px; background: var(--pine); color: #fff; font-weight: 700; }
.flex-body { padding: 8px 12px 4px; }
.flex-body p { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #e3e3e3; }
.flex-body .flex-date { border: 0; color: #666; font-size: 12px; }
.flex-foot { padding: 7px 12px 9px; color: #1b8a45; font-weight: 700; font-size: 12.5px; }
.phone-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; background: #fff; font-size: 18px; color: #8a8f8c; }
.field { flex: 1; min-height: 34px; display: flex; align-items: center; padding: 5px 12px; border-radius: 17px; background: #f0f1f0; font-size: 13.5px; color: #111; overflow: hidden; white-space: nowrap; }
.typed { display: inline-flex; justify-content: flex-end; max-width: 100%; overflow: hidden; }
.typed span { display: inline-block; flex: none; overflow: hidden; white-space: pre; max-width: 2em; }
.typed::after { content: ""; flex: none; width: 2px; height: 1.15em; margin-left: 1px; background: var(--line-green); animation: caret .8s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.stage[data-step="1"] .typed span { animation: type .01s both; animation-delay: calc(.55s + var(--i) * 82ms); }
@keyframes type { from { max-width: 0; } to { max-width: 2em; } }
.stage[data-step="1"] .typed { animation: vanish .01s 2.9s both; }
@keyframes vanish { from { opacity: 1; } to { opacity: 0; } }
.send { color: #b8beba; }
.stage[data-step="1"] .send { animation: sendready 3s both; }
@keyframes sendready { 0%, 18% { color: #b8beba; transform: none; } 22%, 92% { color: var(--line-green); transform: none; } 96% { transform: scale(.8); } 100% { color: #b8beba; transform: none; } }

/* ----- 欄位之間的傳送線 ----- */
.link { position: relative; align-self: center; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 4px, transparent 4px 9px); }
.link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); opacity: 0; }
.stage[data-step="2"] .link-a i, .stage[data-step="4"] .link-b i { animation: travel 1s linear infinite; }
.link i:nth-child(2) { animation-delay: .33s !important; } .link i:nth-child(3) { animation-delay: .66s !important; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* ----- AI 解析 ----- */
.col-ai { justify-content: center; }
.ai-panel { position: relative; height: 548px; padding: 18px 20px; border-radius: 16px; background: #0a0a0a; border: 1px solid rgba(255, 210, 189, .22); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .14); font-size: 14px; }
.ai-head b { letter-spacing: .04em; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: #616161; }
.stage[data-step="2"] .ai-dot, .stage[data-step="3"] .ai-dot { background: var(--leaf); animation: pulse-leaf 1s infinite; }
.stage[data-step="4"] .ai-dot, .stage[data-step="5"] .ai-dot { background: var(--line-green); }
@keyframes pulse-leaf { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 189, .6); } 100% { box-shadow: 0 0 0 9px rgba(255, 210, 189, 0); } }
.ai-state { margin-left: auto; font: 500 12px/1 var(--mono); color: #9a9a9a; }
.ai-idle { position: absolute; inset: 60px 0 0; display: grid; place-items: center; text-align: center; color: #616161; font-size: 15px; }
.msg { position: relative; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: clamp(16px, 1.45vw, 19.5px); line-height: 2; color: #fff; overflow: hidden; }
.scan { position: absolute; top: 0; bottom: 0; left: 0; width: 70px; background: linear-gradient(90deg, transparent, rgba(255, 210, 189, .35), transparent); opacity: 0; --an: scan; --t: 3.2s; --d: .5s; }
@keyframes scan { 0% { opacity: 1; transform: translateX(-70px); } 99% { opacity: 1; transform: translateX(640px); } 100% { opacity: 0; transform: translateX(640px); } }
.tk { padding: 3px 5px; border-radius: 5px; background-repeat: no-repeat; background-size: 100% 100%; --an: mark; --t: .35s; }
.tk.item { background-image: linear-gradient(var(--leaf), var(--leaf)); color: var(--ink); font-weight: 700; }
.tk.qty { background-image: linear-gradient(var(--amber), var(--amber)); color: var(--ink); font-weight: 700; }
.tk.date { background-image: linear-gradient(var(--sky), var(--sky)); color: var(--ink); font-weight: 700; }
.tk.noise { color: #7a7a7a; padding: 0; }
@keyframes mark { from { background-size: 0 100%; color: #fff; font-weight: 400; } to { background-size: 100% 100%; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 2px 0; font-size: 12px; color: #9a9a9a; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #616161; }
.lg.item::before { background: var(--leaf); } .lg.qty::before { background: var(--amber); } .lg.date::before { background: var(--sky); }
.match { margin-top: 16px; display: grid; gap: 7px; }
.match-head, .match-row { display: grid; grid-template-columns: minmax(0, .82fr) 34px minmax(0, 1.25fr); align-items: center; }
.match-head { font: 500 11px/1 var(--mono); letter-spacing: .1em; color: #7a7a7a; padding: 0 2px 2px; }
.said { padding: 8px 11px; border: 1px dashed rgba(255, 255, 255, .28); border-radius: 8px; font-size: 13.5px; color: #e6e6e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wire { height: 2px; background: var(--leaf); transform-origin: left; --an: wire; --t: .3s; }
@keyframes wire { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.db { display: flex; align-items: baseline; gap: 8px; padding: 8px 11px; border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.db b { font-size: 14.5px; }
.db em { font: 600 13px/1.4 var(--mono); font-style: normal; color: var(--pine); }
.db small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.db .ok { margin-left: auto; flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--line-green); color: #fff; font: 700 11px/1 var(--sans); font-style: normal; align-self: center; }
.match-row.who .db { background: var(--leaf); }

/* ----- 商家後台 ----- */
.col-desk { justify-content: flex-start; padding-top: 6px; position: relative; }
.window { position: relative; z-index: 2; border-radius: 12px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #ececea; }
.dots3 { display: flex; gap: 5px; } .dots3 i { width: 9px; height: 9px; border-radius: 50%; background: #c8c8c6; }
.url { flex: 1; padding: 3px 10px; border-radius: 6px; background: var(--paper); font: 500 11px/1.4 var(--mono); color: var(--ink-3); }
.win-body { position: relative; padding: 14px 14px 12px; }
.win-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.win-title b { font: 900 18px/1.3 var(--serif); }
.win-title span { font-size: 11.5px; color: var(--ink-3); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 9px; background: var(--card); margin-bottom: 10px; }
.counts div { padding: 7px 11px; border-left: 1px solid var(--line); }
.counts div:first-child { border-left: 0; }
.counts small { display: block; font-size: 11px; color: var(--ink-3); }
.counts strong { display: block; height: 30px; overflow: hidden; font: 600 24px/30px var(--mono); }
.counts strong span { display: block; }
.counts .hot strong { color: var(--pine); }
.new-order { padding: 11px 12px; margin-bottom: 8px; border-radius: 9px; border: 1px solid var(--line); border-left: 4px solid var(--pine); background: #fff; }
.stage[data-step="4"] .new-order { box-shadow: 0 0 0 0 rgba(6, 199, 85, .5); animation: var(--an) .55s var(--ease) .5s both, glow 1.1s 1.1s 2; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, .55); } 100% { box-shadow: 0 0 0 14px rgba(6, 199, 85, 0); } }
.no-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.no-head b { font-size: 15px; }
.tag { padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.tag-new { background: var(--stamp); color: #fff; }
.tag-done { background: #f0f0ef; color: var(--pine); }
.no-items { margin: 4px 0 8px; font-size: 13px; color: var(--ink-2); }
.no-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 10.5px/1.4 var(--mono); color: var(--ink-3); }
.print-btn { padding: 6px 15px; border-radius: 7px; background: var(--pine); color: #fff; font: 700 12.5px/1.3 var(--sans); --an: press; --t: .35s; --d: 1.05s; }
@keyframes press { 0%, 100% { transform: none; } 45% { transform: scale(.88); background: #000000; } }
.old-order { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; margin-bottom: 6px; border-radius: 9px; border: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); }
.old-order b { color: var(--ink-2); font-size: 13px; }
.cursor { position: absolute; right: 26px; top: 172px; width: 18px; height: 18px; z-index: 5; --an: cursor; --t: 1.6s; opacity: 0; }
.cursor::before { content: ""; position: absolute; inset: 0; background: #111; clip-path: polygon(0 0, 0 82%, 24% 62%, 42% 100%, 58% 92%, 40% 56%, 72% 56%); filter: drop-shadow(0 0 1px #fff); }
@keyframes cursor { 0% { opacity: 0; transform: translate(-150px, 150px); } 15% { opacity: 1; } 62% { opacity: 1; transform: none; } 70% { transform: scale(.82); } 78% { transform: none; opacity: 1; } 100% { opacity: 0; transform: none; } }
.slip-slot { position: relative; z-index: 1; height: 0; }
.slip { position: absolute; left: 22px; right: 22px; top: -8px; padding: 12px 14px 12px; background: #fff; color: #111; font-size: 12px; box-shadow: 0 14px 28px rgba(0, 0, 0, .4); --an: feed; --t: 1.5s; }
.slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: linear-gradient(-45deg, transparent 4px, #fff 0) 0 0 / 8px 6px repeat-x, linear-gradient(45deg, transparent 4px, #fff 0) 0 0 / 8px 6px repeat-x; }
@keyframes feed { 0% { transform: translateY(-104%); } 22% { transform: translateY(-76%); } 30% { transform: translateY(-76%); } 52% { transform: translateY(-48%); } 60% { transform: translateY(-48%); } 82% { transform: translateY(-18%); } 88% { transform: translateY(-18%); } 100% { transform: none; } }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 5px; border-bottom: 2px solid #111; }
.slip-head b { font-size: 13.5px; }
.slip-head span { font: 500 10px/1 var(--mono); }
.slip-to { margin: 5px 0 3px; font-size: 11.5px; }
.slip table { width: 100%; border-collapse: collapse; }
.slip td { padding: 3px 2px; border-bottom: 1px solid #ccc; }
.slip td:nth-child(2) { text-align: right; font-family: var(--mono); width: 34px; }
.slip td:nth-child(3) { width: 30px; text-align: right; }
.slip-sign { margin-top: 7px; font-size: 11px; }
.stamp { position: absolute; right: 12px; bottom: 10px; padding: 3px 10px; border: 2px solid var(--stamp); border-radius: 5px; color: var(--stamp); font: 900 14px/1.4 var(--serif); letter-spacing: .16em; transform: rotate(-9deg); --an: stamp; --t: .4s; }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(2.6); } 60% { opacity: 1; transform: rotate(-9deg) scale(.92); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
.stock-note { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-size: 12.5px; color: #bdbdbd; }
.stock-note b { color: var(--leaf); } .stock-note s { color: #7a7a7a; }

/* ---------- AI 聽得懂什麼 ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h2 { font: 900 clamp(30px, 4.2vw, 54px)/1.22 var(--serif); }
.section-head > p:last-child { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.example { display: flex; flex-direction: column; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.example .say, .example .get { padding: 11px 13px; border-radius: 12px; font-size: 14.5px; }
.example .say { background: #e6f6e3; border-bottom-right-radius: 4px; margin-left: 18px; }
.example .get { margin: 8px 18px 0 0; background: var(--ink); color: #fff; border-bottom-left-radius: 4px; }
.example .say span, .example .get span { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; margin-bottom: 5px; color: #1b8a45; }
.example .get span { color: var(--leaf); }
.example.warn .get { background: var(--stamp); }
.example.warn .get span { color: #ffd9cf; }
.example h3 { margin-top: 18px; font-size: 17px; }
.example > p { margin-top: 5px; font-size: 14px; color: var(--ink-2); }

/* ---------- 商家後台功能 ---------- */
.desk { background: var(--ink); color: #e6e6e6; }
.section-head.light h2 { color: #fff; }
.section-head.light .eyebrow { color: var(--leaf); }
.section-head.light > p:last-child { color: #b3b3b3; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .16); }
.feature { padding: 26px 22px 10px 0; border-right: 1px solid rgba(255, 255, 255, .16); }
.feature + .feature { padding-left: 22px; }
.feature:last-child { border-right: 0; }
.feature b { font: 500 12px/1 var(--mono); color: var(--leaf); }
.feature h3 { margin: 14px 0 8px; font: 900 22px/1.3 var(--serif); color: #fff; }
.feature p { font-size: 14.5px; color: #b3b3b3; }

/* ---------- FAQ／CTA／頁尾 ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-items { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px dashed #c9c9c7; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 19px 2px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; font-family: var(--mono); color: var(--stamp); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 20px; color: var(--ink-2); max-width: 62ch; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(30px, 5vw, 56px); margin-bottom: clamp(40px, 6vw, 72px); border-radius: 22px; background: var(--pine); color: #fff; }
.cta h2 { font: 900 clamp(28px, 3.8vw, 46px)/1.25 var(--serif); }
.cta p { margin-top: 10px; color: #cfcfcf; }
.cta-side { text-align: center; }
.demo-credentials { margin-top: 10px; font: 500 12.5px/1.4 var(--mono); color: #cfcfcf; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px 40px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--n, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 平板／手機 ---------- */
@media (max-width: 1100px) {
  .scene { grid-template-columns: 270px 30px minmax(0, 1fr) 30px 310px; }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(3) { padding-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
}
@media (max-width: 900px) {
  .nav nav a:not(.nav-login) { display: none; }
  .scene { display: block; min-height: 0; }
  .link { display: none; }
  .col { display: none; opacity: 1 !important; transform: none !important; filter: none !important; }
  .stage[data-step="1"] .col-phone, .stage[data-step="2"] .col-ai, .stage[data-step="3"] .col-ai, .stage[data-step="4"] .col-desk, .stage[data-step="5"] .col-desk { display: flex; animation: rise .45s var(--ease) both; }
  .col { height: 548px; }
  .phone { width: min(300px, 100%); margin-inline: auto; }
  .col-desk { max-width: 420px; margin-inline: auto; height: 580px; }
  .rail { gap: 5px; }
  .rail button { justify-content: center; padding: 11px 4px 14px; }
  .rail button span:not(.bar) { display: none; }
  .rail button b { font-size: 13px; }
  .rail .bar { left: 6px; right: 6px; }
  .caption { min-height: 104px; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .stage { border-radius: 16px; padding: 12px; }
  .examples, .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 20px 0 14px; border-right: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .feature-grid { border-top: 0; }
  .ai-panel { padding: 14px 12px; }
  .match-head, .match-row { grid-template-columns: minmax(0, .95fr) 12px minmax(0, 1.3fr); }
  .said { padding: 8px 7px; font-size: 12.5px; }
  .db { padding: 8px 8px; gap: 6px; }
  .db small { display: none; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .cta-side { width: 100%; } .cta-side .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .scan, .cursor { display: none; }
}

/* ---------- 配色：白底、黑、橘 ---------- */
.eyebrow, .section-head.light .eyebrow { color: var(--accent); }
.brand-mark .m2 { fill: #fff; }
.footer .brand-mark { width: 32px; height: 32px; }
.rail button.is-active { background: #fff; }
.rail button.is-active b { color: var(--accent); }
.rail .bar i { background: var(--accent); }
.rail .is-done .bar i { background: #6e6e6e; }
.rail button.is-done b { color: #bdbdbd; }
.tk.item { background-image: linear-gradient(#ff8a57, #ff8a57); }
.lg.item::before { background: #ff8a57; }
.link i, .wire { background: var(--accent); }
.window, .db { background: #fff; }
.match-row.who .db { background: #ffd2bd; }
.db em { color: #141414; }
.new-order { border-left-color: var(--accent); }
.print-btn, .flex-top { background: #141414; }
.counts .hot strong { color: var(--accent); }
.stock-note b { color: #ff8a57; }
.feature b { color: var(--accent); }
.example .get span { color: #ffb999; }
.faq summary::after { color: var(--accent); }
.cta { background: #141414; }
.button.light { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav .nav-login:hover, .button.dark { background: #141414; color: #fff; }
.hero h1, .section-head h2, .cta h2, .flow-head h2 { letter-spacing: -.01em; }
