/* 龜剛AI 官網。顏色變數由 site.js 依日夜即時改寫;這裡的值是沒有 JavaScript 時的白天配色。
   品牌色取自海龜 logo:深海軍藍(龜殼)、亮藍(龜頭)、綠到青的速度線。 */
:root {
  --bg: #F4F7FB; --fg: #0A1B3D; --muted: #56657F; --surface: #FFFFFF; --surface2: #E6EDF6; --line: #D3DCE8;
  --accent: #1257B5; --pri: #0B2A5E; --priFg: #FFFFFF;
  --lx: 50%; --ly: 30%; --glow: rgba(56,189,248,0.26); --glow2: rgba(56,189,248,0.10); --dusk: rgba(25,174,143,0);
  --logoDay: 1; --logoNight: 0;
  --navy: #0B2A5E; --blue: #1F6FD6; --green: #1FCB82; --mint: #D3F6E5;
  --phone-scale: 0.78; --mac-scale: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Helvetica Neue", "Noto Sans TC", "Microsoft JhengHei", Helvetica, Arial, sans-serif;
  color: var(--fg); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
/* 英文版拉丁字型優先(Noto Sans TC 的 ’ 是全形,會在 it’s 中間空一格) */
html[lang="en"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
main { flex: 1; display: flex; flex-direction: column; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1024px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--pri); color: var(--priFg); padding: 8px 14px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- 頁首 ---- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 0 22px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.logo { position: relative; width: 72px; height: 32px; display: block; flex: none; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* 白天版 / 夜間版 logo 疊在一起,依日夜交叉淡入 */
.logo .day, .lockup .day { opacity: var(--logoDay); } .logo .night, .lockup .night { opacity: var(--logoNight); }
.brand-name { font-size: 18px; font-weight: 600; }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 14px; font-size: 15.5px; font-weight: 500; color: var(--fg); opacity: 0.7; transition: opacity .25s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--fg); }
/* 選單底線:滑過時由左長出來,目前頁面常駐 */
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-tools { display: flex; gap: 4px; align-items: center; }
.tool { display: flex; align-items: center; gap: 7px; background: none; border: 0; padding: 6px 10px; cursor: pointer; color: var(--fg);
  font-size: 15px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0.8; transition: opacity .2s ease, transform .2s ease; }
.tool:hover { opacity: 1; }
.tool:active { transform: scale(0.94); }

/* ---- 日夜開關(清晨 / 黑夜)----
   整顆的狀態只有一個變數 --dn(0 = 黑夜、1 = 清晨,拖曳時是中間值),由 site.js 寫在 .dn 上;
   圓鈕位置、太陽變月亮、星星、雲、文字全部用它算,所以這裡沒有 transition(動畫是 site.js 一格一格推 --dn)。
   裡面的元素也是 site.js 產生的(三頁共用);沒有 JavaScript 時整顆不顯示。設計稿:Day Night Toggle。 */
.dn { --dn: 1; --dn-w: 128px; --dn-h: 36px; --dn-knob: 24px; --dn-cs: 1;
  --dn-go: calc(var(--dn-w) - 4px - var(--dn-knob) - 8px);   /* 圓鈕從最左到最右走多遠 */
  position: relative; flex: none; width: var(--dn-w); height: var(--dn-h); border-radius: 999px; padding: 2px; margin: 0 6px 0 4px;
  cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.14));
  box-shadow: 0 6px 14px -6px rgba(8,12,32,0.45), 0 1px 2px rgba(8,12,32,0.2); }
.dn:empty { display: none; }
.dn-in { position: relative; display: block; width: 100%; height: 100%; border-radius: 999px; overflow: hidden;
  background: linear-gradient(180deg, #0d1230 0%, #1f2757 70%, #343b74 100%); }
.dn-in > * { position: absolute; display: block; }
.dn-sky { inset: 0; background: linear-gradient(180deg, #7dbbec 0%, #b9dcf2 55%, #fbe0b6 100%); opacity: var(--dn); }
.dn-stars { inset: 0; opacity: calc(1 - var(--dn)); transform: translateY(calc(var(--dn) * -6px)); }
.dn-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: dnTw 3s ease-in-out infinite; }
.dn-stars i:nth-child(1) { left: 34%; top: 22%; box-shadow: 0 0 3px #fff; }
.dn-stars i:nth-child(2) { left: 30%; top: 62%; transform: scale(0.75); animation-duration: 3.8s; animation-delay: .8s; }
.dn-stars i:nth-child(3) { left: 48%; top: 14%; transform: scale(0.75); animation-duration: 4.3s; animation-delay: .4s; }
.dn-stars i:nth-child(4) { left: 84%; top: 22%; box-shadow: 0 0 3px #fff; animation-duration: 3.3s; animation-delay: 1.2s; }
.dn-stars i:nth-child(5) { left: 74%; top: 74%; transform: scale(0.75); animation-duration: 2.7s; animation-delay: 1.7s; }
.dn-stars i:nth-child(6) { left: 44%; top: 78%; transform: scale(0.75); animation-duration: 4s; animation-delay: .2s; }
.dn-stars i:nth-child(7) { left: 65%; top: 12%; transform: scale(0.75); animation-duration: 3.5s; animation-delay: 2.1s; }
@keyframes dnTw { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.dn-cloud { right: -4px; bottom: -13px; width: 60px; height: 24px; transform-origin: 100% 100%;
  opacity: var(--dn); transform: translateY(calc((1 - var(--dn)) * 18px)) scale(var(--dn-cs)); }
.dn-cloud i { position: absolute; bottom: 0; border-radius: 50%; background: #fff; }
.dn-cloud i:nth-child(1) { left: 0; width: 20px; height: 20px; }
.dn-cloud i:nth-child(2) { left: 13px; bottom: 2px; width: 25px; height: 25px; }
.dn-cloud i:nth-child(3) { left: 33px; width: 27px; height: 27px; }
.dn-cloud.back { right: -6px; bottom: -12px; width: 76px; height: 28px; opacity: calc(var(--dn) * 0.45); transform: translateY(calc((1 - var(--dn)) * 12px)) scale(var(--dn-cs)); }
.dn-cloud.back i:nth-child(1) { width: 26px; height: 26px; }
.dn-cloud.back i:nth-child(2) { left: 18px; bottom: 4px; width: 30px; height: 30px; }
.dn-cloud.back i:nth-child(3) { left: 42px; bottom: 1px; width: 34px; height: 34px; }
.dn-knob { left: 4px; top: calc((100% - var(--dn-knob)) / 2); width: var(--dn-knob); height: var(--dn-knob); transform: translateX(calc(var(--dn) * var(--dn-go))); }
.dn-halo { position: absolute; inset: -10px; border-radius: 50%; opacity: var(--dn); transform: scale(calc(0.7 + 0.3 * var(--dn)));
  background: radial-gradient(circle, rgba(255,224,150,0.55) 30%, rgba(255,224,150,0.22) 52%, rgba(255,224,150,0) 70%); }
.dn-moon { position: absolute; inset: -6px; border-radius: 50%; opacity: calc(1 - var(--dn));
  background: radial-gradient(circle, rgba(210,220,255,0.28) 40%, rgba(210,220,255,0) 70%); }
/* 圓鈕本體:底下是月亮(有坑洞),上面蓋一層太陽;切換時整顆轉 140 度 */
.dn-disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transform: rotate(calc(-140deg + 140deg * var(--dn)));
  background: radial-gradient(circle at 34% 28%, #f6f7fb 0%, #d7dbe8 55%, #b7bdd0 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 -1px 2px rgba(70,80,120,0.35), inset 0 1px 1px rgba(255,255,255,0.8); }
.dn-disc i { position: absolute; border-radius: 50%; aspect-ratio: 1; background: #aeb5c9; box-shadow: inset 0.5px 1px 1px rgba(60,70,110,0.45); }
.dn-disc i:nth-child(1) { left: 19%; top: 22%; width: 25%; }
.dn-disc i:nth-child(2) { left: 56%; top: 47%; width: 18%; }
.dn-disc i:nth-child(3) { left: 31%; top: 65%; width: 12%; }
.dn-sun { position: absolute; inset: 0; border-radius: 50%; opacity: var(--dn);
  background: radial-gradient(circle at 34% 28%, #fff6cf 0%, #ffd76a 45%, #ffb133 100%);
  box-shadow: inset 0 -1px 2px rgba(214,120,10,0.35), inset 0 1px 1px rgba(255,255,255,0.85); }
.dn-in > .dn-label { top: 0; height: 100%; display: flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dn-label b { font-weight: 700; }
.dn-label span { font-weight: 500; letter-spacing: 0.04em; }
.dn-label.day { left: 10px; color: #22335a; opacity: clamp(0, calc((var(--dn) - 0.45) / 0.55), 1); transform: translateX(calc((1 - var(--dn)) * -8px)); }
.dn-label.night { right: 10px; color: #eef0fb; opacity: clamp(0, calc((0.55 - var(--dn)) / 0.55), 1); transform: translateX(calc(var(--dn) * 8px)); }
.dn-rim { inset: 0; border-radius: 999px; pointer-events: none; box-shadow: inset 0 1px 3px rgba(5,8,25,0.45), inset 0 -1px 1px rgba(255,255,255,0.25); }
.tool .dim { opacity: 0.6; }
@media (max-width: 560px) {
  .nav-in { gap: 10px; padding: 0 14px; }
  .brand-name, .clock-word { display: none; }
  .nav-in { height: 52px; }
  .nav-links a { padding: 6px 8px; font-size: 14.5px; }
  .nav-links a::after { left: 8px; right: 8px; bottom: 1px; }
  .tool { font-size: 14px; padding: 4px 6px; }
  /* 手機:開關縮短,只留太陽 / 月亮,不放文字 */
  .dn { --dn-w: 50px; --dn-h: 28px; --dn-knob: 18px; --dn-cs: 0.6; margin: 0; }
  .dn-in > .dn-label { display: none; }
  .logo { width: 58px; height: 26px; }
}

/* 窄手機(英文選單字比較長):再收一點間距,整列才不會超出螢幕、讓頁面可以左右滑 */
@media (max-width: 400px) {
  .nav-in { gap: 6px; padding: 0 10px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 5px; font-size: 13.5px; }
  .nav-links a::after { left: 5px; right: 5px; }
  .logo { width: 48px; height: 22px; }
  .tool { padding: 4px 4px; }
}
@media (max-width: 340px) {
  .nav-links a { padding: 6px 3px; font-size: 12.5px; }
  .nav-links a::after { left: 3px; right: 3px; }
  .logo { width: 40px; height: 18px; }
}

/* ---- 按鈕 ---- */
.btns { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
/* 動態:滑過上浮 + 一道光澤掃過,按下回彈,點擊有水波(site.js 加的 .rip);實心鈕與外框鈕各一套。
   裝飾都用 ::before / ::after,因為中英切換會整個換掉按鈕裡的文字。 */
.btn { position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; justify-content: center; align-items: center; border-radius: 999px; padding: 9px 20px; font-size: 15px; font-weight: 500;
  cursor: pointer; white-space: nowrap; border: 1px solid var(--pri); background: var(--pri); color: var(--priFg);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, filter .28s ease, color .28s ease, background-size .4s cubic-bezier(.2,.7,.2,1); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,0.34) 50%, transparent 68%); transform: translateX(-130%); }
.btn:hover::before { transform: translateX(130%); transition: transform .75s cubic-bezier(.2,.7,.2,1); }
.btn:hover { filter: brightness(1.12); color: var(--priFg); transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--fg) 60%, transparent); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: .08s; }
/* 外框鈕:底色由左往右填滿 */
.btn.ghost { background: linear-gradient(var(--pri), var(--pri)) no-repeat 0 50% / 0% 100%; color: var(--pri); }
.btn.ghost::before { display: none; }
.btn.ghost:hover { background-size: 100% 100%; color: var(--priFg); filter: none; }
.dark .btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.dark .btn::before, .plan.hi .btn::before { background: linear-gradient(105deg, transparent 32%, color-mix(in srgb, var(--blue) 26%, transparent) 50%, transparent 68%); }
.dark .btn:hover { filter: brightness(0.92); color: var(--fg); }
.dark .btn.ghost { background: linear-gradient(var(--bg), var(--bg)) no-repeat 0 50% / 0% 100%; color: var(--bg); }
.dark .btn.ghost:hover { background-size: 100% 100%; color: var(--fg); filter: none; }
.btn.block { display: flex; width: 100%; padding: 11px 20px; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: default; pointer-events: none; }
/* 主要行動:箭頭滑過時往前、平常有一圈呼吸光(滑過就停) */
.btn.go::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.btn.go:hover::after { transform: translateX(4px) rotate(45deg); }
.btn.pulse { animation: btnPulse 2.8s ease-out infinite; }
.btn.pulse:hover { animation: none; }
@keyframes btnPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.btn .rip { position: absolute; z-index: -1; border-radius: 50%; background: currentColor; opacity: 0.28; transform: scale(0); pointer-events: none; animation: btnRip .6s ease-out forwards; }
@keyframes btnRip { to { transform: scale(1); opacity: 0; } }
/* 文字連結:底線由左長出來 */
.link { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px; border: 0; padding: 0 0 2px; color: var(--accent); font-size: 17px; font-weight: 500; cursor: pointer;
  transition: background-size .35s cubic-bezier(.2,.7,.2,1); }
.link:hover { background-size: 100% 1.5px; color: var(--accent); }

/* ---- 共用排版 ---- */
.glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at var(--lx) var(--ly), var(--glow) 0%, var(--glow2) 35%, transparent 70%); }
.dusk { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none; background: linear-gradient(180deg, transparent, var(--dusk)); }
.head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.t-hero { font-size: clamp(44px, 5.4vw, 64px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.t-h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.t-h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; text-align: center; text-wrap: balance; }
.t-sub { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; max-width: 24em; text-wrap: balance; color: var(--muted); }
.t-lead { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.005em; }
.dark { background: var(--fg); color: var(--bg); }
.dark .t-sub { color: inherit; opacity: 0.85; }
.dark .link { color: #4BE3A6; }
.night .dark .link { color: #0D7A55; }   /* 夜裡深色區塊反過來變淺,亮綠字看不清 */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--surface); border-radius: 26px; padding: 32px 30px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 5%, transparent);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.card:hover { transform: translateY(-4px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent), 0 20px 36px -20px color-mix(in srgb, var(--fg) 45%, transparent); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; align-items: stretch; }
.page-head { position: relative; overflow: hidden; padding: 104px 22px 56px; }
.page-body { padding: 0 22px 140px; }
.stack { max-width: 1024px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; }
.narrow { max-width: 640px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.narrow h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rows > li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.rows > li b { font-weight: 600; }
.note { font-size: 14px; color: var(--muted); }
.note a { color: var(--accent); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--surface2); border-radius: 6px; padding: 1px 6px; }
[data-reveal] { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].pre { opacity: 0; transform: translateY(18px); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 首頁:Hero 與手機 ---- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.hero .head { padding: 88px 22px 0; }
/* 主視覺的完整標誌(海龜 + 龜剛AI 字),取代原本的文字標題 */
.lockup { position: relative; width: min(680px, 86vw); aspect-ratio: 1400 / 314; margin: 0 0 8px; }
.lockup img { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-box { position: relative; margin-top: 52px; width: 100%; height: calc(520px * var(--phone-scale)); flex: none; overflow: hidden; }
.phone-pos { position: absolute; left: 50%; top: 0; margin-left: -201px; transform: scale(var(--phone-scale)); transform-origin: top center; }
.phone { width: 402px; height: 874px; border-radius: 48px; overflow: hidden; position: relative; background: #F2F2F7;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12); font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; color: #1D1D1F; }
.phone .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 126px; height: 37px; border-radius: 24px; background: #000; z-index: 50; }
.phone .status { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 21px 44px 19px 52px; }
.phone .status .time { font-weight: 600; font-size: 17px; line-height: 22px; color: #000; }
.phone .status .icons { display: flex; gap: 7px; align-items: center; }
.phone .bar { padding: 62px 16px 10px; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.8); }
.phone .bar .av { width: 30px; height: 30px; border-radius: 50%; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12); }
.phone .bar .av img { width: 26px; height: auto; display: block; }
.phone .bar b { font-size: 17px; font-weight: 600; color: #000; }
/* 案件進度列:狀態標籤一次亮一個(.on),進度條寬度是 --p;兩個都由 site.js 的手機對話動畫推進 */
.flow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 7px 16px 12px;
  background: rgba(255,255,255,0.8); border-bottom: 0.5px solid rgba(0,0,0,0.12); font-size: 13px; font-weight: 500; color: #6E6E73; }
.flow .stage { display: flex; min-height: 23px; }
.flow .stage b { display: none; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #E1ECFF; color: #0B2A5E; }
.flow .stage b.on { display: inline-block; animation: badgeIn .4s cubic-bezier(.2,.9,.3,1.3) both; }
.flow .stage b[data-s="3"] { background: #FFF1C2; color: #6B4E00; }
.flow .stage b[data-s="6"] { background: var(--mint); color: #0B5A3C; }
.flow .track { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 3px; border-radius: 3px; background: rgba(0,0,0,0.08); overflow: hidden; display: block; }
.flow .fill { display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--blue) 55%, var(--green));
  transition: width .9s cubic-bezier(.2,.7,.2,1); }
@keyframes badgeIn { from { opacity: 0; transform: translateY(5px) scale(0.9); } to { opacity: 1; transform: none; } }
.chat { padding: 18px 14px; }
.chat-in { display: flex; flex-direction: column; gap: 10px; }
.chat .late { display: none; }
.msg { display: flex; align-items: flex-end; gap: 8px; }
.msg.me { flex-direction: row-reverse; }
.msg .who { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: #D1D1D6; color: #1D1D1F; }
.msg .say { border-radius: 18px; padding: 10px 13px; font-size: 15px; line-height: 1.4; max-width: 80%; letter-spacing: -0.01em; background: #E9E9EB; color: #1D1D1F; }
.msg.ai .who { background: #fff; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12); }
.msg .who img { width: 25px; height: auto; display: block; }
.msg.ai .say { background: #fff; }
.msg.me .who, .msg.me .say { background: var(--navy); color: #fff; }
.msg.me .say { white-space: nowrap; }
.quick { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 0 0 38px; flex-wrap: wrap; }
.quick span { border: 1px solid #C7C7CC; background: #fff; color: #1D1D1F; border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.quick span:first-child { border-color: var(--navy); background: var(--navy); color: #fff; }
.msg.done .say { background: var(--mint); }
/* 對話動畫(site.js 在 .phone 加 .play 才生效):訊息一則一則冒出來(.on),放不下就整串往上推;
   AI 回話前有「打字中」三個點;快速回覆鈕出現後第一顆被點一下(.tap),再換成「你」的訊息 */
.phone.play .chat { height: 352px; overflow: hidden; }
.phone.play .chat-in { transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .45s ease; }
.phone.play .chat-in.fade { opacity: 0; }
.phone.play .chat-in > * { display: none; }
.phone.play .chat-in > .on { display: flex; }
.phone.play .msg.on { transform-origin: 0 100%; animation: msgIn .45s cubic-bezier(.2,.9,.3,1.25) both; }
.phone.play .msg.me.on { transform-origin: 100% 100%; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(0.94); } to { opacity: 1; transform: none; } }
.msg.typing .say { display: flex; align-items: center; gap: 5px; padding: 15px 14px; }
.msg.typing .say i { width: 7px; height: 7px; border-radius: 50%; background: #8E8E93; animation: typeDot 1.1s ease-in-out infinite; }
.msg.typing .say i:nth-child(2) { animation-delay: .15s; }
.msg.typing .say i:nth-child(3) { animation-delay: .3s; }
@keyframes typeDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.quick span { position: relative; }
.phone.play .quick.on span { animation: chipIn .38s cubic-bezier(.2,.9,.3,1.25) both; }
.phone.play .quick.on span:nth-child(2) { animation-delay: .07s; }
.phone.play .quick.on span:nth-child(3) { animation-delay: .14s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
.phone.play .quick.on span.tap { animation: chipTap .5s ease both; }
@keyframes chipTap { 0% { transform: scale(1); } 35% { transform: scale(0.9); filter: brightness(1.3); } 100% { transform: scale(1); } }
.quick span.tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(31,111,214,0.3); pointer-events: none; animation: chipTouch .5s ease-out both; }
@keyframes chipTouch { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
/* 進場:標誌、標語、按鈕依序浮上來,手機從下面升上來 */
.hero .head > * { animation: heroRise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .head > :nth-child(2) { animation-delay: .12s; }
.hero .head > :nth-child(3) { animation-delay: .24s; }
.hero .phone { animation: phoneIn 1.1s cubic-bezier(.2,.7,.2,1) .3s both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
.phone .home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 139px; height: 5px; border-radius: 100px; background: rgba(0,0,0,0.25); }

/* ---- 首頁:說人話 ---- */
.plain { padding: 104px 22px 104px; overflow: hidden; }
.plain-demo { max-width: 720px; margin: 64px auto 0; display: flex; flex-direction: column; }
.plain-raw { background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); border-radius: 22px 22px 0 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.plain-raw .lbl, .plain-out .lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.plain-raw .lbl { opacity: 0.55; }
.plain-raw .lines { margin: 0; font-size: 12.5px; line-height: 1.7; opacity: 0.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.plain-out { background: var(--bg); color: var(--fg); border-radius: 0 0 22px 22px; padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.plain-out .lbl { color: var(--accent); }
.plain-out .row { display: flex; gap: 10px; align-items: flex-end; }
.plain-out .av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1D1D1F; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.plain-out .av img { width: 25px; height: auto; display: block; }
.plain-out .say { background: var(--mint); color: #0A1B3D; border-radius: 18px; padding: 12px 16px; font-size: 16px; line-height: 1.5; max-width: 92%; }

/* ---- 首頁:中控台 ---- */
.console { position: relative; overflow: hidden; padding: 104px 22px 0; }
.mac-box { position: relative; margin: 56px auto 104px; width: calc(960px * var(--mac-scale)); height: calc(420px * var(--mac-scale)); }
.mac-pos { position: absolute; left: 0; top: 0; transform: scale(var(--mac-scale)); transform-origin: top left; }
.mac { width: 960px; height: 420px; border-radius: 26px; overflow: hidden; background: #fff; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.23), 0 16px 48px rgba(0,0,0,0.35); font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; color: #1D1D1F; }
.mac-bar { display: flex; gap: 8px; align-items: center; padding: 8px; flex: none; }
.lights { display: flex; gap: 9px; align-items: center; padding: 0 10px 0 9px; }
.lights i { width: 14px; height: 14px; border-radius: 50%; border: 0.5px solid rgba(0,0,0,0.1); display: block; }
.lights i:nth-child(1) { background: #ff736a; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #19c332; }
.mac-title { font-size: 15px; font-weight: 700; color: rgba(0,0,0,0.85); white-space: nowrap; padding-left: 8px; flex: 1; }
.pill { height: 36px; border-radius: 999px; background: rgba(255,255,255,0.35); border: 0.5px solid rgba(0,0,0,0.08); box-shadow: 0 8px 40px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 13px; font-weight: 500; color: #727272; }
.pill.dot { width: 36px; justify-content: center; padding: 0; }
.pill.dot i { width: 14px; height: 14px; border-radius: 50%; background: #4c4c4c; opacity: 0.4; display: block; }
.pill.search { width: 140px; }
.mac-body { display: flex; flex: 1; min-height: 0; background: #fff; border-top: 1px solid #E5E5EA; }
.mac-side { width: 190px; flex: none; background: #F5F5F7; border-right: 1px solid #E5E5EA; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.mac-side span { padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.mac-side span.on { background: #E3E3E8; }
.mac-main { flex: 1; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.mac-main .top { display: flex; justify-content: space-between; align-items: baseline; }
.mac-main .top b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.mac-main .top span { font-size: 13px; color: #6E6E73; }
.cases { display: grid; grid-template-columns: 56px 1fr 120px 110px 90px; font-size: 13px; }
.cases > span { padding: 11px 0; border-bottom: 1px solid #EFEFF4; color: #6E6E73; }
.cases .id, .cases .tm { font-variant-numeric: tabular-nums; }
.cases .tm { text-align: right; }
.cases .ti { padding-right: 8px; font-weight: 500; color: #1D1D1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cases .st { padding: 9px 0; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.badge.wait { background: #FFF1C2; color: #6B4E00; } .badge.work { background: #E1ECFF; color: #0B2A5E; }
.badge.sent { background: #E6F4EA; color: #1E6B3A; } .badge.intake { background: #EFEFF4; color: #3A3A3C; }

/* ---- 首頁:四格 ---- */
.tiles { padding: 12px; }
.tiles-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }   /* 四格固定 2×2,寬螢幕才不會排成 3+1 */
@media (max-width: 860px) { .tiles-grid { grid-template-columns: 1fr; } }
.tile { min-height: 440px; padding: 64px 28px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: var(--surface); }
.tile.alt { background: var(--surface2); }
.tile h3 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.tile p { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.35; opacity: 0.8; max-width: 24em; text-wrap: balance; }
.chips { margin-top: auto; padding-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
.chips span { border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; white-space: nowrap; }
/* 九步:一步一步輪流亮起(每步 0.6 秒,一輪 5.4 秒) */
.chips.seq span { animation: stepOn 5.4s linear infinite; }
.chips.seq span:nth-child(2) { animation-delay: .6s; } .chips.seq span:nth-child(3) { animation-delay: 1.2s; }
.chips.seq span:nth-child(4) { animation-delay: 1.8s; } .chips.seq span:nth-child(5) { animation-delay: 2.4s; }
.chips.seq span:nth-child(6) { animation-delay: 3s; } .chips.seq span:nth-child(7) { animation-delay: 3.6s; }
.chips.seq span:nth-child(8) { animation-delay: 4.2s; } .chips.seq span:nth-child(9) { animation-delay: 4.8s; }
@keyframes stepOn {
  0%, 15%, 100% { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--fg) 22%, transparent); transform: none; }
  3%, 10% { background: var(--pri); color: var(--priFg); border-color: var(--pri); transform: translateY(-2px); }
}

/* ---- 首頁:引言 ---- */
.quotes { padding: 104px 22px; }
.quotes .wrap { display: flex; flex-direction: column; gap: 44px; }
.quote { margin: 0; background: var(--surface); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 5%, transparent); }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .ini { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--pri); color: var(--priFg); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.quote .nm { display: flex; flex-direction: column; line-height: 1.3; }
.quote .nm b { font-size: 14px; font-weight: 600; } .quote .nm span { font-size: 13px; color: var(--muted); }

/* ---- 首頁:價格預告 ---- */
.teaser { padding: 112px 22px; }
.teaser .fine { margin-top: 20px; font-size: 14px; opacity: 0.6; }
.teaser .fine a { color: inherit; text-decoration: underline; }

/* ---- 下載頁 ---- */
.os .name { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.012em; }
.os .meta { font-size: 14px; color: var(--muted); }
.os .acts { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.os .alt { font-size: 14px; color: var(--accent); }
.os .alt:hover { text-decoration: underline; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.step { counter-increment: s; background: var(--surface); border-radius: 22px; padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 5%, transparent); }
.step::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--pri); color: var(--priFg); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step b { font-size: 17px; font-weight: 600; }
.step span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.step a { color: var(--accent); }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 28px 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 22px; color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq .ans { padding: 0 0 22px; font-size: 15px; color: var(--muted); line-height: 1.6; display: flex; flex-direction: column; gap: 10px; }
.faq .ans ol, .faq .ans ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.faq .ans b { color: var(--fg); font-weight: 600; }
.hash { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; text-align: center; }
.hash button { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 12px; padding: 0 0 0 6px; }

/* ---- 價格頁 ---- */
.plan { gap: 12px; }
.plan .name { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.012em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .price span { font-size: 14px; opacity: 0.7; white-space: nowrap; }
.plan .desc { font-size: 15px; line-height: 1.5; opacity: 0.72; min-height: 46px; }
.plan ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.plan .btn { margin-top: auto; padding: 11px 20px; }
.plan .kicker { color: inherit; opacity: 0.7; }
.plan.hi { background: var(--pri); color: var(--priFg); }
.plan.hi li { border-color: color-mix(in srgb, var(--priFg) 18%, transparent); }
.plan.hi .btn { background: var(--priFg); color: var(--pri); border-color: var(--priFg); }
.plan.hi .btn:hover { color: var(--pri); }

/* ---- 頁尾 ---- */
.foot .wrap { max-width: 1200px; }
.foot { border-top: 1px solid var(--line); padding: 24px 22px 36px; color: var(--muted); font-size: 12px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot .who { display: flex; flex-direction: column; gap: 2px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  /* 系統設了「減少動態效果」:全部動畫與轉場關掉(手機對話動畫 site.js 也不會啟動,停在靜態畫面)。
     網址加 ?motion=on 時 site.js 會在 html 加 .motion-on,這幾條就不套用(預覽用)。 */
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation: none !important; transition: none !important; }
  html:not(.motion-on) [data-reveal] { transition: none; }
  html:not(.motion-on) [data-reveal].pre { opacity: 1; transform: none; }
}
