@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root { --brand: #02539C; --mist: #B3CBE1; --paper: #F2F6FA; --ink: #0E141B; --muted: #4B5A6B; --nav: 60px;
  --sans: "Space Grotesk", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-snap-type: y mandatory; scroll-padding-top: 0; background: var(--paper); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.u { display: inline-block; }

/* 標題列：不透明、固定 */
.hs-nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: var(--nav); display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px); background: var(--paper); box-shadow: 0 1px 0 rgba(14,20,27,.1); }
.hs-logo img { width: 128px; height: auto; }
.hs-nav-cta { font-weight: 700; font-size: .9rem; color: var(--brand); text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }

/* 一拍＝一個滿版段落；捲一次換一拍 */
.hs-beat { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-rows: auto 1fr; align-content: start; gap: clamp(14px, 3vh, 28px);
  padding: calc(var(--nav) + clamp(18px, 4vh, 40px)) clamp(18px, 5vw, 64px) clamp(24px, 5vh, 48px); position: relative; }
@media (min-width: 980px) {
  .hs-beat { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); grid-template-rows: 1fr; align-items: center; gap: clamp(28px, 4vw, 72px); }
}
.hs-text { max-width: 34em; }
.hs-kicker, .hs-label { font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); margin-bottom: 10px; }
.hs-h1 { font-size: clamp(1.9rem, 6.2vw, 3.6rem); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; }
.hs-h1 em, .hs-h2 em { font-style: normal; color: var(--brand); }
.hs-h2 { font-size: clamp(1.6rem, 5.4vw, 3rem); line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
.hs-sub { margin-top: 12px; font-size: clamp(1rem, 2.6vw, 1.2rem); color: #2F3D4D; }
.hs-sub.small { font-size: .85rem; color: var(--muted); }
.hs-cta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hs-btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 6px; }
.hs-btn:active { transform: translateY(1px); }
.hs-link { font-weight: 700; color: var(--brand); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.hs-stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(14,20,27,.12); }
.hs-stats strong { display: block; font-size: clamp(1.5rem, 4.4vw, 2.2rem); font-weight: 800; color: var(--brand); line-height: 1.1; }
.hs-stats span { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.hs-note { margin-top: 10px; font-size: .72rem; color: var(--muted); }
.hs-quote { margin-top: 14px; padding-left: 14px; border-left: 4px solid var(--brand); }
.hs-quote p { font-size: clamp(.98rem, 2.4vw, 1.15rem); font-weight: 700; line-height: 1.7; color: var(--brand); }
.hs-quote footer { margin-top: 6px; font-size: .8rem; color: var(--muted); }

/* 畫面：背景＋透明圖層＋HTML 字 */
.hs-art { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: #E4ECF4; align-self: start; }
@media (min-width: 980px) { .hs-art { align-self: center; } }
@media (max-width: 979px) and (max-height: 700px) { .hs-art { aspect-ratio: 16 / 9; } }
.hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-panel { background: linear-gradient(180deg, #FFFFFF 0%, #E9F0F7 100%); box-shadow: inset 0 0 0 1px rgba(2,83,156,.08); }
.lay { position: absolute; height: auto; filter: drop-shadow(0 10px 18px rgba(2,83,156,.16)); }
.hs-split .hs-half { position: absolute; left: 0; width: 100%; height: 50%; object-fit: cover; }
.hs-split .hs-half.top { top: 0; } .hs-split .hs-half.bottom { top: 50%; }
.hs-clock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: var(--brand); color: #fff; font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.8rem); letter-spacing: .02em; padding: .1em .55em; border-radius: 999px; font-variant-numeric: tabular-nums; box-shadow: 0 6px 20px rgba(2,83,156,.35); }
.hs-arrow { position: absolute; font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 800; color: var(--brand); }
.hs-arrow.dashed { color: #5C9AD6; letter-spacing: -.1em; }
.hs-gauge { position: absolute; height: auto; overflow: visible; }
.hs-gauge .needle { transform-origin: 60px 62px; }
.g-high .needle { transform: rotate(52deg); }
.g-low .needle { transform: rotate(-58deg); }
.hs-dot { position: absolute; width: clamp(10px, 2.4vw, 16px); height: clamp(10px, 2.4vw, 16px); border-radius: 50%; background: #5C9AD6; box-shadow: 0 0 0 6px rgba(92,154,214,.25); }
.hs-badge { position: absolute; z-index: 3; background: rgba(255,255,255,.94); color: var(--brand); font-weight: 700; font-size: clamp(.72rem, 2.2vw, .95rem);
  padding: .4em .8em; border-radius: 999px; box-shadow: 0 4px 14px rgba(14,20,27,.12); white-space: nowrap; }
.hs-link-line { position: absolute; height: 0; border-top: 3px dotted var(--brand); }
/* 時間軸：23:47 → 09:00 */
.hs-timeline { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 10px 14px; padding: 0 7%; align-content: center; }
.t-from, .t-to { font-size: clamp(1.8rem, 7vw, 3.6rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.t-from { color: #5C9AD6; } .t-to { color: var(--brand); }
.t-bar { height: 10px; border-radius: 99px; background: #D5E2EF; overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 100%; background: var(--brand); border-radius: 99px; transform-origin: left center; }
.t-gap { grid-column: 1 / -1; justify-self: center; font-size: clamp(1rem, 3.4vw, 1.5rem); font-weight: 800; color: var(--brand); background: #fff; padding: .2em .8em; border-radius: 999px; box-shadow: 0 2px 10px rgba(14,20,27,.08); }

/* 同心圓（服務名稱放在圈上，按離老闆每天的工作遠近分圈） */
.hs-orbit-wrap { aspect-ratio: 1 / 1; background: transparent; overflow: visible; max-width: 560px; justify-self: center; }
.orbit-real { position: absolute; inset: 4%; }
.orb-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; border: 1.5px solid rgba(2,83,156,.28); }
.orb-ring1 { width: 46%; height: 46%; background: rgba(2,83,156,.10); border-color: rgba(2,83,156,.45); }
.orb-ring2 { width: 70%; height: 70%; background: rgba(2,83,156,.05); }
.orb-ring3 { width: 88%; height: 88%; }
.orb-ring4 { width: 98%; height: 98%; border-style: dashed; border-color: rgba(2,83,156,.4); }
.orb-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 25%; aspect-ratio: 1 / 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: clamp(.8rem, 2.4vw, 1.1rem); white-space: nowrap; box-shadow: 0 10px 30px rgba(2,83,156,.28); z-index: 2; }
.orb-chips { list-style: none; }
.orb-chip { position: absolute; translate: -50% -50%; z-index: 3; white-space: nowrap; padding: .38em .8em; border-radius: 999px; font-size: clamp(.7rem, 1.9vw, .95rem); font-weight: 700; line-height: 1.2;
  background: #fff; color: var(--brand); box-shadow: 0 2px 10px rgba(14,20,27,.08); border: 1px solid rgba(2,83,156,.25); }
.orb-r1 { background: var(--brand); color: #fff; border-color: var(--brand); }
.orb-r3 { background: var(--paper); color: #2B5E92; }
.orb-r4 { background: var(--paper); border-style: dashed; color: #2B5E92; box-shadow: none; }

.hs-foot { grid-column: 1 / -1; align-self: end; font-size: .72rem; color: var(--muted); padding-top: 18px; }

/* 自動播放提示：停手後 4 秒的進度條（JS 加 .run） */
.hs-auto { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.hs-auto i { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left center; }
.hs-auto.run i { animation: hsFill 4s linear forwards; }
@keyframes hsFill { to { transform: scaleX(1); } }

/* ── 動畫：只在 html.hs-js 且段落 .is-in 之後播；起點用 from，終點就是原位 ── */
.hs-js .is-in .a-up    { animation: hsUp .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.hs-js .is-in .a-drop  { animation: hsDrop .9s cubic-bezier(.2,.8,.2,1.05) var(--d, 0s) both; }
.hs-js .is-in .a-left  { animation: hsLeft .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.hs-js .is-in .a-right { animation: hsRight .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.hs-js .is-in .a-pop   { animation: hsPop .6s cubic-bezier(.2,.9,.3,1.25) var(--d, 0s) both; }
.hs-js .is-in .a-in    { animation: hsIn .7s ease var(--d, 0s) both; }
.hs-js .is-in .a-zoom  { animation: hsZoom 2.4s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.hs-js .is-in .a-clear { animation: hsClear 1.6s ease var(--d, 0s) both; }
.hs-js .is-in .a-bar   { animation: hsBar 1.2s cubic-bezier(.4,0,.2,1) var(--d, 0s) both; }
.hs-js .is-in .a-ring  { animation: hsRing .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }
.hs-js .is-in .g-high .needle { animation: hsNeedleHigh 1.2s cubic-bezier(.3,1.4,.5,1) calc(var(--d, 0s) + .2s) both; }
.hs-js .is-in .g-low .needle  { animation: hsNeedleLow 1.2s cubic-bezier(.3,1.4,.5,1) .2s both; }
.hs-js .is-in .float { animation: hsDrop .9s cubic-bezier(.2,.8,.2,1.05) var(--d, 0s) both, hsFloat 5s ease-in-out calc(var(--d, 0s) + .9s) infinite; }
.hs-js .is-in .hs-dot { animation: hsPop .6s cubic-bezier(.2,.9,.3,1.25) var(--d, 0s) both, hsPulse 1.8s ease-in-out calc(var(--d, 0s) + .6s) infinite; }
@keyframes hsUp    { from { opacity: .3; transform: translateY(26px); } }
@keyframes hsDrop  { from { opacity: .3; transform: translateY(-40px) rotate(-4deg); } }
@keyframes hsLeft  { from { opacity: .3; transform: translateX(-30px); } }
@keyframes hsRight { from { opacity: .3; transform: translateX(30px); } }
@keyframes hsPop   { from { opacity: .3; scale: .6; } }
@keyframes hsIn    { from { opacity: .3; } }
@keyframes hsZoom  { from { transform: scale(1.08); } }
@keyframes hsClear { from { filter: blur(6px) grayscale(1) drop-shadow(0 10px 18px rgba(2,83,156,.16)); opacity: .35; } }
@keyframes hsBar   { from { transform: scaleX(0); } }
@keyframes hsRing  { from { opacity: .3; scale: .5; } }
@keyframes hsNeedleHigh { from { transform: rotate(-80deg); } }
@keyframes hsNeedleLow  { from { transform: rotate(60deg); } }
@keyframes hsFloat { 50% { transform: translateY(-8px); } }
@keyframes hsPulse { 50% { box-shadow: 0 0 0 12px rgba(92,154,214,0); } }

/* 減少動態：沒有位移動畫、沒有自動播放；內容一律在原位 */
@media (prefers-reduced-motion: reduce) {
  .hs-js .is-in [class*="a-"], .hs-js .is-in .float, .hs-js .is-in .hs-dot, .hs-js .is-in .needle { animation: none !important; }
  html { scroll-snap-type: none; }
  .hs-auto { display: none; }
}

/* 第 2 輪（10/04 WebKit iPhone 13 逐拍看）：內容只佔上面 2/3、下方空白 → 垂直置中、手機的圖放大到 4:3；封面高出一屏 80px → 封面的圖改 16:9 */
.hs-beat { align-content: center; }
@media (max-width: 979px) {
  .hs-art { aspect-ratio: 4 / 3; }
  .hs-cover .hs-art { aspect-ratio: 16 / 9; }
  .hs-cover .hs-stats { margin-top: 14px; padding-top: 10px; }
  .hs-cover .hs-cta { margin-top: 14px; }
  .hs-orbit-wrap { aspect-ratio: 1 / 1; }
}

.hs-panel { background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #E3ECF6 60%, #D2E0EE 100%); }
.t-from, .t-to { font-size: clamp(2.4rem, 11vw, 5.2rem); }
.t-bar { height: 14px; }
.t-gap { font-size: clamp(1.3rem, 5vw, 2rem); }
.hs-timeline { gap: 18px 14px; padding: 0 5%; }
/* 動畫縮短：捲到定位時已經播完（觸發點也提早，見 hs-story.js） */
.hs-js .is-in .a-up, .hs-js .is-in .a-left, .hs-js .is-in .a-right { animation-duration: .6s; }
.hs-js .is-in .a-pop { animation-duration: .45s; }


.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; }
.hs-nav { gap: 12px; }
.hs-nav nav { flex: 1; }
.nav-links { list-style: none; display: flex; gap: clamp(12px, 2vw, 28px); justify-content: center; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink); }
.nav-links a:hover { color: var(--brand); }
.hs-nav-right { display: flex; align-items: center; gap: 10px; }
.hs-lang { font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid rgba(14,20,27,.18); padding: 4px 8px; border-radius: 6px; }
.nav-hamburger { display: none; background: none; border: 0; width: 36px; height: 36px; color: var(--ink); cursor: pointer; }
.nav-hamburger svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .hs-nav nav { flex: 0; }
  .nav-hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; position: absolute; top: var(--nav); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); box-shadow: 0 8px 20px rgba(14,20,27,.12); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 20px; border-top: 1px solid rgba(14,20,27,.08); }
  .hs-logo img { width: 112px; }
}
.hs-play { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; border-radius: 999px; padding: 5px 10px; font: 700 .78rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.hs-play[aria-pressed="false"] { background: transparent; color: var(--brand); }
.hs-play-ico { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hs-play[aria-pressed="true"] .hs-play-ico { width: 8px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hs-count { font-variant-numeric: tabular-nums; opacity: .85; }
@media (max-width: 380px) { .hs-play-txt { display: none; } }
.hs-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(2,83,156,.12); }
.hs-progress i { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(.08); transform-origin: left center; transition: transform .5s ease; }
.hs-auto.run i { animation-duration: var(--dwell, 8s); }
/* 儀表板那一拍：沿用首頁儀表板樣式，這裡只管放進一屏 */
.hs-dash { display: block; }
.hs-dash .dbw { padding: 0; max-width: 980px; margin: 0 auto; }
.hs-dash .db-foot { margin-top: 14px; }
@media (max-width: 979px) { .hs-dash .db { padding: 16px 14px; gap: 12px; } .hs-dash .db-big { font-size: clamp(26px, 8.6vw, 44px); } .hs-dash .db-spark, .hs-dash .aiu-src:last-of-type { display: none; } }
/* Cookie 告知（沿用舊首頁的元素與腳本，樣式在這裡重寫） */
#cookieConsent { display: none; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 8px 30px rgba(14,20,27,.18); padding: 14px 16px; font-size: .85rem; }
#cookieConsent > div { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; max-width: 980px; margin: 0 auto; }
#cookieConsent a { color: var(--brand); }
#cookieConsent button { font: 700 .85rem var(--sans); padding: 10px 18px; border-radius: 8px; cursor: pointer; border: 1.5px solid var(--brand); }
#cookieConsent button[data-cspev1] { background: var(--brand); color: #fff; }
#cookieConsent button[data-cspev2] { background: #fff; color: var(--brand); margin-left: 8px; }
/* 深淺色切換（沿用舊首頁按鈕與腳本） */
.theme-toggle { position: fixed; z-index: 35; right: 16px; bottom: 96px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(14,20,27,.15); background: var(--paper); color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: 0 2px 10px rgba(14,20,27,.12); }
:root[data-theme="dark"] { --paper: #0E141B; --ink: #E4EAF1; --muted: #93A3B5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0E141B; --ink: #E4EAF1; --muted: #93A3B5; } }
:root[data-theme="dark"] .hs-sub { color: #C3CFDC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-sub { color: #C3CFDC; } }
:root[data-theme="dark"] .hs-h1 em, :root[data-theme="dark"] .hs-h2 em, :root[data-theme="dark"] .hs-label, :root[data-theme="dark"] .hs-kicker, :root[data-theme="dark"] .hs-stats strong, :root[data-theme="dark"] .hs-link, :root[data-theme="dark"] .hs-quote p { color: #8DB8E0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.hs-h1 em, .hs-h2 em, .hs-label, .hs-kicker, .hs-stats strong, .hs-link, .hs-quote p) { color: #8DB8E0; } }

/* 驚喜 popup：手機底部抽屜、桌機右下卡片；開啟時從下方滑入（關閉 JS 時本來就 hidden，不影響內容） */
.hs-pop { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: #fff; color: #0E141B; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(14,20,27,.22);
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); max-height: 88vh; overflow: auto; }
.hs-pop.open { transform: none; }
@media (min-width: 861px) { .hs-pop { left: auto; right: 24px; bottom: 24px; width: 380px; border-radius: 16px; } }
.hs-pop-x { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: #56657A; cursor: pointer; }
.hs-pop-kicker { font-size: .78rem; font-weight: 700; color: #02539C; letter-spacing: .06em; }
.hs-pop-h { margin-top: 6px; font-size: 1.35rem; line-height: 1.3; font-weight: 800; padding-right: 30px; }
.hs-pop-sub { margin-top: 6px; font-size: .92rem; color: #3A4756; }
.hs-pop form { margin-top: 12px; display: grid; gap: 10px; }
.hs-pop label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: #3A4756; }
.hs-pop input { font: 500 16px var(--sans); padding: 11px 12px; border: 1.5px solid rgba(14,20,27,.18); border-radius: 8px; background: #F7FAFC; color: #0E141B; }
.hs-pop input:focus { outline: none; border-color: #02539C; background: #fff; }
.hs-pop-msg { min-height: 1em; font-size: .85rem; color: #B3452B; }
.hs-pop-msg a { color: #02539C; }
.hs-pop-actions { display: flex; align-items: center; gap: 14px; }
.hs-pop-later { background: none; border: 0; color: #56657A; font: 700 .9rem var(--sans); cursor: pointer; text-decoration: underline; }
.hs-pop-done { margin-top: 14px; display: grid; gap: 10px; justify-items: start; }
@media (prefers-reduced-motion: reduce) { .hs-pop { transition: none; } }
.hs-js .is-in .dbw .db { animation: hsUp .6s cubic-bezier(.2,.7,.2,1) .1s both; }
.hs-js .is-in .dbw .db-stat { animation: hsPop .45s cubic-bezier(.2,.9,.3,1.25) both; }
.hs-js .is-in .dbw .db-stat:nth-child(2) { animation-delay: .1s; } .hs-js .is-in .dbw .db-stat:nth-child(3) { animation-delay: .2s; } .hs-js .is-in .dbw .db-stat:nth-child(4) { animation-delay: .3s; }
.hs-btn, .hs-play, .hs-link, .nav-links a { transition: transform .15s ease, background .2s ease, color .2s ease; }
.hs-btn:hover { transform: translateY(-2px); background: #013D73; }
.hs-foot a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .hs-js .is-in .dbw .db, .hs-js .is-in .dbw .db-stat { animation: none; } }

/* 第 2 輪（10/04 WebKit 截圖）：
   ① [hidden] 被 display:grid 蓋掉 → 送出成功後表單沒收起來（真 bug）
   ② 手機抽屜佔 88% 螢幕＝像滿版擋住 → 四欄兩兩並排、間距收緊；客服小視窗泡泡壓在欄位上 → popup 疊在最上層
   ③ 封面大標兩段各自一行 */
.hs-pop form[hidden], .hs-pop-done[hidden], .hs-pop[hidden] { display: none !important; }
.hs-pop { z-index: 2147483600; }
@media (max-width: 860px) {
  .hs-pop { padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
  .hs-pop-h { font-size: 1.15rem; margin-top: 2px; }
  .hs-pop-sub { font-size: .85rem; margin-top: 2px; }
  .hs-pop form { grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 10px; }
  .hs-pop label { font-size: .72rem; gap: 2px; }
  .hs-pop input { padding: 9px 10px; font-size: 16px; }
  .hs-pop-msg, .hs-pop-actions { grid-column: 1 / -1; }
  .hs-pop-msg { min-height: 0; }
}
.hs-h1 .u { display: block; }

/* ⑧ 最後一幕「買一送九十九」：100 項功能牆緩慢往上流動、輪流閃亮；JS 沒跑／減少動態時就是一面靜態清單 */
.hs-b99-h { font-size: clamp(2.6rem, 11vw, 5.4rem); line-height: 1.05; }
.hs-b99-h em { color: var(--brand); }
.hs-b99-ask { margin-top: 14px; font-size: clamp(1.05rem, 3.2vw, 1.4rem); font-weight: 800; color: var(--ink); }
.hs-b99-ask span { display: block; margin-top: 2px; font-size: .78em; font-weight: 600; color: var(--muted); }
.hs-cta button.hs-btn { border: 0; font: 700 1rem var(--sans); cursor: pointer; }
.hs-b99-wall { aspect-ratio: auto; height: clamp(220px, 34vh, 420px); background: linear-gradient(180deg, #02539C 0%, #0A3E70 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.hs-b99-scroll { padding: 10px 12px; }
.hs-b99-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-bottom: 8px; }
.hs-b99-list li { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: .35em .75em; border-radius: 999px; font-size: clamp(.72rem, 2.1vw, .92rem); font-weight: 700; white-space: nowrap; }
.hs-b99-list[aria-hidden="true"] { display: none; }
.hs-js .hs-b99-list[aria-hidden="true"] { display: flex; }
.hs-js .is-in .hs-b99-scroll { animation: hsFlow 70s linear infinite; }
.hs-js .is-in .hs-b99-list li { animation: hsTwinkle 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.53s); }
@keyframes hsFlow { to { transform: translateY(-50%); } }
@keyframes hsTwinkle { 0%, 100% { opacity: .55; } 45% { opacity: 1; background: rgba(255,255,255,.26); } }
@media (prefers-reduced-motion: reduce) {
  .hs-js .is-in .hs-b99-scroll, .hs-js .is-in .hs-b99-list li { animation: none; }
  .hs-b99-wall { height: auto; -webkit-mask-image: none; mask-image: none; }
  .hs-js .hs-b99-list[aria-hidden="true"] { display: none; }
}
.hs-pop label, .hs-pop input { min-width: 0; width: 100%; }   /* 兩欄並排時輸入框不縮，右欄被切出畫面（第 2 輪截圖） */
.hs-pop .hs-btn { font-size: 1rem; padding: 12px 22px; }   /* 第 3 輪：按鈕字太小 */
.hs-b99-h { white-space: nowrap; } @media (min-width: 980px) { .hs-b99-h { font-size: clamp(2.6rem, 4.6vw, 4.4rem); } }   /* 第 4 輪：桌機斷成「買一送九十／九」 */

/* ① 首屏具體服務一行 */
.hs-svc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hs-svc li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(2,83,156,.22); color: var(--brand); font-weight: 800; font-size: .95rem; transition: transform .2s, box-shadow .2s; }
.hs-svc li:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(2,83,156,.15); }
.hs-svc .fx-ico { width: 18px; height: 18px; }
.hs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* ⑤ 小字 ≥14px、色 ≥#6B7280（--muted＝#4B5A6B）；按鈕 44px */
.hs-stats span, .hs-note, .hs-foot, .hs-quote footer, .hs-sub.small, .hs-b99-ask span { font-size: .875rem; color: var(--muted); }
.dbw .aiu-src, .dbw .aiu-foot { font-size: 14px; color: var(--muted); }
.dbw .db-label, .dbw .db-stat small { font-size: 14px; }
.orb-chip { font-size: clamp(.875rem, 2.2vw, .95rem); }
.hs-play, .hs-lang { min-height: 44px; display: inline-flex; align-items: center; }
.hs-lang { padding: 0 12px; font-size: .875rem; }
.hs-pop-x { width: 44px; height: 44px; }
.hs-pop-later { min-height: 44px; padding: 0 12px; }
.hs-pop label { font-size: .875rem; }
.hs-pop label small { font-weight: 500; color: var(--muted); font-size: .8125rem; }
.hs-pop-sub { font-size: .9375rem; }
.hs-foot a { display: inline-block; padding: 10px 6px; }
@media (max-width: 860px) { .hs-pop label { font-size: .875rem; } .hs-pop-sub { font-size: .875rem; } }

/* ═══ 小組件（hs-fx.js）：只用 transform／opacity；不在畫面上的幕全部暫停 ═══ */
.hs-beat { position: relative; isolation: isolate; }   /* .fx 用 z-index:-1 墊在內容底下、背景上面 */
.hs-beat > .fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; contain: strict; }
.hs-beat:not(.is-on) .fx *, .hs-beat:not(.is-on) .fx-c, .hs-beat:not(.is-on) .fx-w { animation-play-state: paused !important; }
.fx-p { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0; transform: scale(var(--s)); will-change: transform, opacity; }
.is-in .fx-p { animation: fxDrift var(--t) ease-in-out calc(var(--k) * -.7s) infinite; }
@keyframes fxDrift { 0% { opacity: 0; transform: translate(0, 0) scale(var(--s)); } 25% { opacity: .22; } 50% { transform: translate(14px, -30px) scale(var(--s)); opacity: .14; } 75% { opacity: .24; } 100% { opacity: 0; transform: translate(-8px, -60px) scale(var(--s)); } }
.fx-i { position: absolute; width: clamp(34px, 5vw, 52px); height: clamp(34px, 5vw, 52px); translate: -50% -50%; color: var(--brand); opacity: .2; will-change: transform; }
.fx-ico { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.is-in .fx-i { animation: fxFloat 7s ease-in-out calc(var(--k) * -1.3s) infinite; }
.is-in .fx-i .fx-ico > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fxDraw 1.6s cubic-bezier(.6,0,.2,1) calc(.4s + var(--k) * .22s) forwards; }
@keyframes fxFloat { 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }
/* 逐字／逐句進場 */
.hs-js .is-in .fx-c { display: inline-block; animation: fxChar .55s cubic-bezier(.2,.8,.2,1) calc(.15s + var(--k) * .045s) both; }
.hs-js .is-in .fx-w { display: inline; animation: fxPhrase .8s ease-out calc(.5s + var(--k) * .35s) both; }
@keyframes fxChar { from { opacity: .3; transform: translateY(.45em) rotate(4deg); } }
@keyframes fxPhrase { from { opacity: .3; } }
.hs-js .is-in .hs-h1.a-up, .hs-js .is-in .hs-h2.a-up { animation: none; }   /* 逐字接手，整行不再一起動 */
/* 重播這一幕、從頭再看一次 */
.hs-replay { position: absolute; right: 12px; bottom: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(2,83,156,.3); background: rgba(255,255,255,.85); color: var(--brand); display: grid; place-items: center; cursor: pointer; transition: transform .25s; }
.hs-replay svg { width: 20px; height: 20px; }
.hs-replay:hover { transform: rotate(-35deg); }
.hs-replay:active { transform: rotate(-180deg) scale(.92); }
.hs-again { background: none; border: 0; font: 700 1rem var(--sans); color: var(--brand); cursor: pointer; min-height: 44px; }
/* 按鈕微互動 */
.hs-btn { transition: transform .18s, box-shadow .18s; }
.hs-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,83,156,.28); }
.hs-btn:active { transform: scale(.96); }
/* ③ 功能牆：靜態清單（沒 JS 也完整）＋聚光燈一項一項淡入淡出；不跑馬燈、不重複 */
.hs-b99-wall { height: auto; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; padding: 18px 14px; display: grid; gap: 14px; }
.hs-b99-scroll { display: none; }
.hs-b99-list li { animation: none !important; opacity: 1; transition: opacity .6s, background .6s, transform .6s; }
.hs-b99-spot { display: none; }
.fx-on .hs-b99-spot { display: grid; place-items: center; text-align: center; min-height: 6.2em; color: #fff; }
.fx-on .hs-b99-spot .n { font-size: .875rem; font-weight: 700; opacity: .75; letter-spacing: .08em; }
.fx-on .hs-b99-spot .t { font-size: clamp(1.6rem, 6.5vw, 2.6rem); font-weight: 900; line-height: 1.15; }
.fx-on .hs-b99-spot.show .t { animation: fxSpot 1.9s ease both; }
@keyframes fxSpot { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 18%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
.fx-on .hs-b99-list li { opacity: .38; }
.fx-on .hs-b99-list li.lit { opacity: 1; background: rgba(255,255,255,.3); transform: scale(1.08); }
@media (max-width: 860px) { .fx-on .hs-b99-list { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); } }
:root[data-theme="dark"] .hs-svc li, :root[data-theme="dark"] .hs-replay { background: rgba(14,20,27,.85); }
@media (prefers-reduced-motion: reduce) { .hs-replay { display: none; } }
/* 第 2 次截圖修正 */
.hs-stats strong span { display: inline; margin: 0; font-size: inherit; color: inherit; line-height: inherit; }
.hs-replay { bottom: auto; top: calc(var(--nav, 60px) + 10px); }
.fx-ping { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; }
.is-in .fx-ping { animation: fxPing 3.2s ease-out calc(1.8s + var(--k) * .5s) infinite; }
@keyframes fxPing { 0% { opacity: .5; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@media (max-width: 860px) { .hs-stats strong { font-size: clamp(1.5rem, 7vw, 2rem); } }
.fx-on .hs-b99-list { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }   /* 桌機也收在一屏內，聚光燈負責「一項一項」 */

/* ═══ 第 2 輪改單（65.4 分，round-02-home-20261004.md）═══ */
/* 1 成果數字放最前 */
.hs-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 10px; color: var(--brand); font-weight: 800; font-size: 1.15rem; }
.hs-result strong { font-size: clamp(2.6rem, 10vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.hs-result span { flex-basis: 100%; font-size: .875rem; font-weight: 500; color: var(--muted); line-height: 1.5; }
/* 1 儀表板：淺色品牌藍（不要黑底終端機風）；字改無襯線＋等寬數字 */
.dbw .db.db-light { --p: #fff; --p2: #F2F6FA; --ln: rgba(2,83,156,.16); --tx: #0E141B; --dm: #4B5A6B; --ac: #02539C; --ok: #02539C;
  font-family: inherit; box-shadow: 0 18px 50px rgba(2,83,156,.12); border-color: rgba(2,83,156,.18); }
.db-light .mono, .db-light .db-big, .db-light .db-stat b { font-family: inherit; }
.db-light .db-title { color: #0E141B; }
.db-light .db-big { color: var(--brand); }
.db-light .db-stat b { color: #0E141B; }
.db-light .db-live { background: var(--brand); border-color: var(--brand); color: #fff; }
.db-light .db-live i { background: #fff; }
.db-light .db-label, .db-light .db-stat small, .db-light .db-sub { font-size: 14px; color: #4B5A6B; }
.db-light .db-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .db-light .db-stats { grid-template-columns: 1fr 1fr; } }
.dbw .db-foot { text-align: left; }
.dbw .aiu-src, .dbw .aiu-foot { font-size: 14px; color: #4B5A6B; }
:root[data-theme="dark"] .dbw .db.db-light { --p: #12202E; --p2: #0E141B; --tx: #E4EAF1; --dm: #B3C2D3; }
:root[data-theme="dark"] .db-light .db-title, :root[data-theme="dark"] .db-light .db-stat b { color: #E4EAF1; }
:root[data-theme="dark"] .db-light .db-big { color: #B3CBE1; }
/* 3 買一送九十九：條款小字放最後一行 */
.hs-terms { margin-top: 16px; font-size: .875rem; color: var(--muted); line-height: 1.6; max-width: 34em; }
/* 8 重播鍵：看完這一幕才浮現（hs-fx.js 加 .fx-seen），位置在右下，裝飾圖示讓開 */
.hs-replay { top: auto; bottom: 18px; right: 16px; opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none; transition: opacity .5s, transform .5s; }
.fx-seen > .hs-replay { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 860px) { .hs-replay { bottom: 84px; } }   /* 手機右下有客服泡泡，往上讓 */
/* 9 幕間空白：不再每幕撐滿一屏，內容多高就多高 */
.hs-beat { min-height: 0; padding-top: calc(var(--nav, 60px) + 28px); padding-bottom: 36px; }
@media (min-width: 980px) { .hs-beat { padding-top: calc(var(--nav, 60px) + 48px); padding-bottom: 56px; } }
.hs-beat.hs-cover { min-height: 100svh; }
/* 10 功能格對比：未亮的標籤也要讀得到 */
.fx-on .hs-b99-list li { opacity: .82; }
.fx-on .hs-b99-list li.lit { opacity: 1; }
.fx-on .hs-b99-spot .n { opacity: .92; }

/* ═══ 第 3 輪改單（61.0 分，round-03-home-20261004.md）═══ */
/* 1 裝飾圖示只在插圖區四角；聊天泡泡與 ◐ 不壓內容 */
.fx-art { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fx-art .fx-i { width: clamp(28px, 4vw, 40px); height: clamp(28px, 4vw, 40px); opacity: .55; color: var(--brand); background: rgba(255,255,255,.85); border-radius: 50%; padding: 6px; box-shadow: 0 4px 12px rgba(2,83,156,.15); }
@media (max-width: 860px) {
  #themeToggle { display: none !important; }   /* 手機跟系統深淺色走；浮動鈕壓在內容上（第 3 輪評審） */
  #joey-chatbot-btn { transform: scale(.82); transform-origin: bottom right; }
  .hs-beat:last-of-type, .hs-foot { padding-bottom: 88px; }
}
/* 4 功能牆：淺底、對比 ≥4.5:1 */
.hs-b99-wall { background: #fff !important; border: 1.5px solid rgba(2,83,156,.18); box-shadow: 0 12px 36px rgba(2,83,156,.10); }
.hs-b99-list li { color: #0E141B !important; background: #F2F6FA !important; border-color: rgba(2,83,156,.18) !important; }
.fx-on .hs-b99-list li { opacity: 1; }
.fx-on .hs-b99-list li.lit { background: var(--brand) !important; color: #fff !important; }
.fx-on .hs-b99-spot { color: var(--brand); }
.fx-on .hs-b99-spot .n { color: #4B5A6B; opacity: 1; font-size: .875rem; }
.fx-on .hs-b99-list { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
/* 5 6 7 結尾：一主一次、挑戰句、從頭再看、條款最後一行 */
.hs-b99-try { margin-top: 8px; font-weight: 700; color: var(--brand); }
.hs-cta .hs-link, .hs-cta .hs-btn { min-height: 44px; display: inline-flex; align-items: center; }
.hs-again-row { margin-top: 6px; }
.hs-again-row .hs-again { font-size: .875rem; color: #4B5A6B; text-decoration: underline; }
.hs-b99 > .hs-terms { grid-column: 1 / -1; margin-top: 4px; font-size: .875rem; color: #4B5A6B; }
/* 8 小字 */
.dbw .aiu-one { white-space: normal; }
@media (min-width: 980px) { .dbw .aiu-one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.hs-result span, .hs-stats span, .hs-note { color: #4B5A6B; }
/* 第 3 輪回歸測試：重播鍵被插圖蓋住點不到；標籤 13.6px */
.hs-replay { z-index: 30; }
.hs-kicker, .hs-label { font-size: .875rem; }
.hs-b99-list li { font-size: 14px !important; } .db-light .db-live { font-size: 14px; }
.hs-pop-fail { grid-column: 1 / -1; font-size: .875rem; color: #B3452B; } .hs-pop-fail[hidden] { display: none !important; }

/* ═══ 第 5 輪機械改單（59.4 分，round-05-home-20261004.md）═══ */
/* 合併後的小標 */
.hs-h3 { margin-top: 18px; font-size: clamp(1.15rem, 3.6vw, 1.45rem); font-weight: 800; line-height: 1.35; color: var(--ink); }
/* 首屏膠囊：真的可點（跳到對應幕） */
.hs-svc li { padding: 0; }
.hs-svc li a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; color: inherit; text-decoration: none; }
.hs-svc li { position: relative; }
.hs-svc .fx-ico { position: absolute; left: 14px; pointer-events: none; }
.hs-svc li a { padding-left: 38px; }
/* 文字連結點擊高度 ≥44px */
.hs-link, .hs-foot a, .nav-links a, .hs-again { min-height: 44px; display: inline-flex; align-items: center; }
/* 聊天泡泡不壓第一屏插圖：第一屏在畫面上時先收起來 */
html:has(#s1.is-on) #joey-chatbot-btn { opacity: 0; pointer-events: none; transition: opacity .3s; }
/* 功能牆攤開，不在卡片內捲動 */
.fx-on .hs-b99-list, .hs-b99-list { max-height: none !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
/* 段距再砍 */
.hs-beat { padding-top: calc(var(--nav, 60px) + 16px); padding-bottom: 24px; }
@media (min-width: 980px) { .hs-beat { padding-top: calc(var(--nav, 60px) + 32px); padding-bottom: 32px; } }
/* 儀表板：使用模型那格補滿空位 */
@media (max-width: 720px) { .db-light .db-stat:last-child { grid-column: 1 / -1; } }
/* 功能牆分類折疊 */
.hs-b99-cats { display: grid; gap: 8px; }
.hs-b99-cat { border: 1.5px solid rgba(2,83,156,.16); border-radius: 12px; background: #fff; }
.hs-b99-cat summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; }
.hs-b99-cat summary::-webkit-details-marker { display: none; }
.hs-b99-cat summary span { font-size: .875rem; font-weight: 600; color: #4B5A6B; }
.hs-b99-cat summary span::after { content: " ＋"; color: var(--brand); }
.hs-b99-cat[open] summary span::after { content: " －"; }
.hs-b99-cat .hs-b99-list { padding: 0 12px 12px; justify-content: flex-start; }
:root[data-theme="dark"] .hs-b99-cat { background: #12202E; }
/* 第 5 輪：整頁縮短約三成——導覽列讓位改用 scroll-padding（捲到幕時自動讓開），不再每幕撐 padding；手機插圖 16:9；儀表板外框內距縮小 */
html { scroll-padding-top: var(--nav, 60px); }
.hs-beat { padding-top: 20px; padding-bottom: 20px; }
.hs-beat.hs-cover { padding-top: calc(var(--nav, 60px) + 16px); min-height: 0; }
@media (min-width: 980px) { .hs-beat { padding-top: 32px; padding-bottom: 32px; } .hs-beat.hs-cover { min-height: calc(100svh - 40px); } }
@media (max-width: 979px) { .hs-art:not(.hs-b99-wall) { aspect-ratio: 16 / 9; } }
.dbw { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 720px) { .db-light .db-top { flex-wrap: wrap; } .db-light .db-live { order: -1; } }
/* 英文下一版（/en/index-next）：英文字長，大字要能換行；語言鈕不直排；同心圓標籤縮短見 en-map */
html[lang="en"] .hs-b99-h { white-space: normal; font-size: clamp(2.2rem, 9vw, 4.2rem); }
html[lang="en"] .hs-b99-spot .t { font-size: clamp(1.3rem, 5vw, 2.2rem); overflow-wrap: anywhere; }
html[lang="en"] .hs-lang { white-space: nowrap; }
html[lang="en"] .orb-chip { font-size: .8125rem; }
html[lang="en"] .orb-core { font-size: .8125rem; line-height: 1.2; text-align: center; }

/* A 版（index-next-a）：儀表板換成一行大數字＋看完整算力 */
.hs-bignum { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--brand); font-weight: 800; font-size: 1.15rem; }
.hs-bignum strong { font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.hs-bignum span:not([data-aiu]) { flex-basis: 100%; font-size: .875rem; font-weight: 500; color: #4B5A6B; }
.compute-page .hs-beat { min-height: 0; }
#cookieConsent p, #cookieConsent a { font-size: 14px; }
/* 算力頁是獨立一頁，不用像首頁那幕一樣藏曲線與註腳 */
@media (max-width: 979px) { .compute-page .hs-dash .db-spark { display: grid; } .compute-page .hs-dash .aiu-src:last-of-type { display: block; } }
.compute-page { padding-top: var(--nav, 60px); }

html[data-variant="a"] { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
html[data-variant="a"] .hs-beat { min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  padding-top: calc(var(--nav, 60px) + 24px); padding-bottom: 32px; align-content: center;
  scroll-snap-align: start; scroll-snap-stop: normal; }
html[data-variant="a"] .hs-beat.hs-cover { min-height: 100svh; padding-top: calc(var(--nav, 60px) + 16px); }
@media (min-width: 980px) { html[data-variant="a"] .hs-beat { padding-top: calc(var(--nav, 60px) + 32px); padding-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { html[data-variant="a"] { scroll-snap-type: none; } }
@media (max-width: 979px) { html[data-variant="a"] .hs-beat { grid-template-rows: auto auto; } }   /* 原本 auto 1fr 會讓第二列撐滿，置中就沒效果 */
html[data-variant="a"] .hs-art.hs-orbit-wrap { aspect-ratio: 1 / 1; }
html[data-variant="a"] .orb-chip { font-size: clamp(.875rem, 3.4vw, .95rem); padding: .35em .7em; }
html[data-variant="a"] .orb-core { width: 28%; }
html[data-variant="a"].hs-js .is-in [class*="a-"] { animation-duration: 1.1s; animation-delay: calc(var(--d, 0s) * 2.2 + .2s); }
html[data-variant="a"].hs-js .is-in .a-zoom { animation-duration: 3.2s; }
html[data-variant="a"].hs-js .is-in .fx-c { animation-duration: .6s; animation-delay: calc(.2s + var(--k) * .09s); }
html[data-variant="a"].hs-js .is-in .fx-w { animation-duration: 1s; animation-delay: calc(1.2s + var(--k) * .6s); }
html[data-variant="a"] .is-in .fx-i .fx-ico > * { animation-duration: 2.2s; }
/* A 版：副標逐句進場最多排到第 5 段（s6 用頓號列七項會被切很多段，原本要 4.8 秒才播完），整幕維持 2.5–4 秒 */
html[data-variant="a"].hs-js .is-in .fx-w { animation-delay: calc(.9s + min(var(--k), 5) * .4s); }
/* A 版：整幕延遲上限（s2b 時間軸最後一格 --d 1.7s、同心圓七標籤會拖到 4.4–4.6 秒）→ 最晚 2.8 秒開始、1.1 秒播完，整幕 ≤ 約 3.9 秒 */
html[data-variant="a"].hs-js .is-in [class*="a-"] { animation-delay: calc(min(var(--d, 0s) * 2, 2.6s) + .2s); }

@media (min-width: 861px) { .nav-links .nav-en { display: none; } }   /* 桌機右上已有 EN 鈕；手機漢堡選單裡才列 English */
.hs-sitemap { padding: calc(var(--nav, 60px) + 24px) clamp(18px, 5vw, 64px) 32px; scroll-snap-align: start; background: var(--paper); }
.hs-map-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
@media (min-width: 720px) { .hs-map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hs-map-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hs-map-card { background: #fff; border: 1.5px solid rgba(2,83,156,.14); border-radius: 14px; padding: 14px 16px; }
.hs-map-card h3 { font-size: .875rem; font-weight: 800; color: var(--brand); letter-spacing: .06em; margin-bottom: 6px; }
.hs-map-card ul { list-style: none; }
.hs-map-card a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 8px 0; text-decoration: none; color: var(--ink); border-top: 1px solid rgba(2,83,156,.08); }
.hs-map-card li:first-child a { border-top: 0; }
.hs-map-card a b { font-size: 1rem; }
.hs-map-card a span { font-size: .875rem; color: #4B5A6B; }
.hs-map-card a:hover b { color: var(--brand); }
:root[data-theme="dark"] .hs-map-card { background: #12202E; }
.hs-site-foot { padding: 20px clamp(18px, 5vw, 64px) 96px; }
.hs-foot-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin-bottom: 10px; }
.hs-foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: .875rem; font-weight: 700; color: var(--brand); text-decoration: none; }
/* 頁尾要能捲到：mandatory snap 只在 snap 區塊比畫面高時允許在裡面自由捲，頁尾在網站地圖外面、又不是 snap 點，手機永遠被拉回網站地圖頂端（10/04 實測） */
.hs-site-foot { scroll-snap-align: end; }
/* 整頁掃描抓到的小字（之前只掃各幕，沒掃到導覽列與彈窗） */
.hs-play-txt, .hs-count { font-size: .875rem; }
.hs-pop-kicker, .hs-pop label small { font-size: .875rem; }
@media (max-width: 860px) { .nav-links li { width: 100%; } }   /* 手機選單分隔線要整列（li 原本只有字的寬度） */
@media (max-width: 860px) { .nav-links a { display: flex; width: 100%; } }   /* 第 5 輪 44px 那條把 .nav-links a 設成 inline-flex，蓋掉了手機選單的整列 block（分隔線只剩字寬） */
/* 英文 A 版：英文標籤比中文長，貼在圓周最外側（90.9%）的「Meeting minutes」在 390 寬手機右邊出界（10/04 量到）。
   英文允許折成兩行、限寬，置中不變；中文不受影響 */
html[lang="en"][data-variant="a"] .orb-chip { white-space: normal; max-width: 6.5em; text-align: center; line-height: 1.15; }
/* 10/04 補量：圖上的標籤（hs-badge 11.5px）、同心圓中心（12.8px）、cookie 鈕（13.6px）低於 14px。
   第 5 輪量的時候漏掉了：那支量測腳本跳過 aria-hidden 區塊與 button，而這三種剛好都在裡面——它們看得見，只是對讀屏軟體隱藏 */
html[lang] .hs-badge, html[lang] .orb-core { font-size: .875rem; }   /* 要蓋過 471–472 行的 html[lang="en"] 13px */
#cookieConsent button { font-size: .875rem; }
/* ═══ 英文 A 版第 4 輪評審修正（10/04）：只作用在 html[lang="en"][data-variant="a"]，中文不受影響 ═══ */
/* ① 導覽 logo：英文頁不用中文字樣的 logo 圖，改「標誌＋ENSCON AI」文字 */
html[lang="en"] .hs-logo-en { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: #0E141B; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap; }
html[lang="en"] .hs-logo-en img { width: 29px; height: auto; }
/* ② 次要按鈕（回電）與美元換算註 */
.hs-btn-ghost { background: #fff !important; color: #02539C !important; box-shadow: inset 0 0 0 2px #02539C; }
.hs-usd { font-size: .875rem; color: var(--muted); margin-top: 6px; }
html[lang="en"][data-variant="a"] .hs-cta { flex-wrap: wrap; gap: 10px 14px; }
html[lang="en"][data-variant="a"] .hs-cta button.hs-link { background: none; border: 0; font: inherit; color: #02539C; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0; }
/* ⑤ 標題「9h 13m」不斷行 */
.nw { white-space: nowrap; }
/* ⑤ cookie 條：手機只留一行短字＋兩顆鈕 */
#cookieConsent .ck-short { display: none; }
@media (max-width: 860px) {
  html[lang="en"] #cookieConsent { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; }
  html[lang="en"] #cookieConsent > div { flex-wrap: nowrap; gap: 8px; }
  html[lang="en"] #cookieConsent .ck-long { display: none; }
  html[lang="en"] #cookieConsent .ck-short { display: inline; }
  html[lang="en"] #cookieConsent p { flex: 1 1 auto; min-width: 0; font-size: .875rem; line-height: 1.3; }
  html[lang="en"] #cookieConsent > div > div { display: flex; flex: 0 0 auto; gap: 6px; }
  html[lang="en"] #cookieConsent button { padding: 8px 10px !important; margin-left: 0 !important; white-space: nowrap; }
}
/* ⑤ 彈窗打開時：cookie 條與客服泡泡讓開（三個浮層不搶同一塊）；桌機彈窗不蓋到導覽列 */
html[lang="en"] body:has(#hsPop:not([hidden])) #cookieConsent,
html[lang="en"] body:has(#hsPop:not([hidden])) #joey-chatbot-btn { visibility: hidden !important; }
@media (min-width: 861px) { html[lang="en"] .hs-pop { max-height: calc(100vh - var(--nav, 60px) - 48px); overflow: auto; } }
/* 英文手機：「ENSCON AI」文字 logo 被 Autoplay 鈕壓住（10/04 量到）→ 手機只留播放圖示＋1/10，字收起（aria-label 仍是 Autoplay: on/off） */
@media (max-width: 860px) {
  html[lang="en"][data-variant="a"] .hs-play-txt { display: none; }
  html[lang="en"] .hs-logo-en { font-size: .95rem; gap: 6px; }
  html[lang="en"] .hs-logo-en img { width: 24px; }
}
/* ═══ 英文 A 第 5 輪（10/04）═══ */
/* ① 首頁同風格的回電區（取代連到舊深色 /en/contact） */
.hs-contact .hs-text { max-width: 40em; }
.hs-cb-sub { font-size: 1.05rem; line-height: 1.6; color: #2B3A4A; margin: 10px 0 18px; }
.hs-cb { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.hs-cb label { display: grid; gap: 4px; font-size: .875rem; font-weight: 700; color: #3A4756; min-width: 0; }
.hs-cb label small { font-weight: 500; color: var(--muted); font-size: .875rem; }
.hs-cb input { font: 500 16px var(--sans); padding: 11px 12px; border: 1.5px solid rgba(14,20,27,.18); border-radius: 8px; background: #fff; color: #0E141B; min-width: 0; width: 100%; }
.hs-cb input:focus { outline: none; border-color: #02539C; }
.hs-cb-wide, .hs-cb-msg, .hs-cb button { grid-column: 1 / -1; }
.hs-cb button { justify-self: start; }
.hs-cb-msg { min-height: 0; font-size: .875rem; color: #B3452B; }
.hs-cb-done { font-size: 1.05rem; font-weight: 700; color: #02539C; margin-top: 8px; }
.hs-cb-done[hidden], .hs-cb[hidden] { display: none !important; }
.hs-cb-alt { margin-top: 16px; font-size: .9375rem; color: #3A4756; }
.hs-cb-alt a { color: #02539C; font-weight: 700; }
@media (max-width: 860px) { .hs-cb { grid-template-columns: 1fr; } }
/* ⑤ 英文副標逐段淡入：原本後段要約 4 秒才全亮、起點 30% 透明，評審在 1.3 秒時看到淺灰字 → 英文頁縮短延遲、起點 60% */
@keyframes fxPhraseEn { from { opacity: .6; } }
html[lang="en"][data-variant="a"].hs-js .is-in .fx-w { animation-name: fxPhraseEn; animation-duration: .6s; animation-delay: calc(.3s + min(var(--k), 5) * .15s); }
.hs-cb .hs-btn { font-size: 1rem; padding: 12px 22px; min-height: 48px; }
/* ═══ 英文 A 版 round-en-06 下一輪（10/04）═══ */
/* ① 手機場景頂部空白：A 版每幕 align-content: center，內容短的幕上方空 16–98px（加導覽列 60）→ 英文手機改靠上，統一導覽列下 24px */
@media (max-width: 979px) { html[lang="en"][data-variant="a"] .hs-beat:not(.hs-cover) { align-content: start; padding-top: calc(var(--nav, 60px) + 24px); } }
/* ② 回電區的信任元素：桌機放右半邊（原本整片空），手機接在表單下面 */
.hs-cb-trust { display: grid; gap: 14px; align-content: center; }
.hs-cb-card { background: #fff; border: 1.5px solid #B3CBE1; border-radius: 14px; padding: 16px 18px; }
.hs-cb-card .k { font-size: .875rem; font-weight: 700; color: #02539C; letter-spacing: .04em; }
.hs-cb-card .v { font-size: 1.15rem; font-weight: 800; color: #0E141B; margin-top: 4px; }
.hs-cb-card .v a { color: #02539C; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.hs-cb-card .n { font-size: .875rem; color: #4B5A6B; margin-top: 2px; }
@media (min-width: 980px) { .hs-cb-trust { grid-template-columns: 1fr 1fr; } }
/* ④ 99 從哪來 */
.hs-b99-why { font-size: .9375rem; color: #2B3A4A; margin-top: 8px; }

/* ═══ A 版（中英共用，10/05 中文照抄）#1040：場景三手機畫面上的「建議答案＋來源」卡與「Yes」回覆，讓圖跟文案講同一件事 ═══
   Yes 放在卡片裡最後一行（第一版疊在卡片外，手機上蓋掉「sources」那行） */
html[data-variant="a"] #s3c .hs-s3c-card { position: absolute; left: 64%; top: 30%; width: 31%; box-sizing: border-box; padding: 8px 9px; border-radius: 10px; background: #fff; color: #0E141B; box-shadow: 0 4px 14px rgba(0,0,0,.25); display: grid; gap: 3px; }
html[data-variant="a"] #s3c .hs-s3c-card b { font-size: 14px; line-height: 1.25; font-weight: 800; color: #02539C; }
html[data-variant="a"] #s3c .hs-s3c-card i { font-size: 14px; line-height: 1.25; font-style: normal; color: #2B3A4A; }
html[data-variant="a"] #s3c .hs-s3c-card em { justify-self: end; margin-top: 4px; padding: 4px 10px; border-radius: 12px 12px 4px 12px; background: #06C755; color: #fff; font-size: 14px; font-style: normal; font-weight: 800; }
/* #1100 ①：產品環的「LINE AI 客服」可以點（連到 /chatbot），樣式跟晶片一樣 */
.orb-chip a{color:inherit;text-decoration:none}.orb-chip a:hover{text-decoration:underline}
/* #1094（2026-10-05）：中文首頁彈窗改成「一鍵加 LINE ＋ 只留電話」。全部限定 .hs-pop--line——英文首頁仍是四欄兩欄格線，不能被蓋到 */
.hs-pop--line .hs-pop-who { margin-top: 8px; font-size: .875rem; color: #02539C; font-weight: 700; }
.hs-pop--line .hs-pop-line { display: flex; align-items: center; justify-content: center; margin-top: 12px; width: 100%; min-height: 50px; font-size: 1.05rem; background: #06C755; border-color: #06C755; color: #fff; text-decoration: none; }
.hs-pop--line .hs-pop-line:hover { filter: brightness(.95); }
.hs-pop--line form { display: block; margin-top: 12px; }
.hs-pop--line form > label { display: block; font-size: .875rem; font-weight: 700; color: #3A4756; margin-bottom: 6px; }
.hs-pop--line .hs-pop-row { display: flex; gap: 8px; }
.hs-pop--line .hs-pop-row input { flex: 1; min-width: 0; width: auto; }
.hs-pop--line .hs-pop-call { flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid #02539C; border-radius: 8px; background: #fff; color: #02539C; font: 800 .95rem var(--sans); cursor: pointer; }
.hs-pop--line .hs-pop-call:disabled { opacity: .5; }
.hs-pop--line .hs-pop-msg { margin-top: 6px; }
.hs-pop--line .hs-pop-msg:empty { display: none; }
.hs-pop--line .hs-pop-proof { display: block; position: relative; margin-top: 10px; height: 190px; overflow: hidden; border-radius: 12px; border: 1px solid rgba(14,20,27,.1); }
.hs-pop--line .hs-pop-proof img { width: 100%; height: auto; display: block; transform: translateY(-16%); }   /* 跳過聊天室標題列，從日期與客人那句開始露 */
.hs-pop--line .hs-pop-proof span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; text-align: right; font-size: .8125rem; font-weight: 700; color: #02539C; background: linear-gradient(rgba(255,255,255,0), #fff 70%); }
@media (max-width: 860px) { .hs-pop--line .hs-pop-proof { height: 150px; } }

.hs-mq { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; overflow: hidden; min-width: 0; max-width: 100%;   /* min-width:0：不寫的話它被父層撐成整排膠囊那麼寬，手機上右邊被螢幕切掉、右側淡出看不到（10/06 截圖） */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hs-mq .hs-mq-row { margin-top: 0; flex-wrap: nowrap; width: max-content; animation: hsMq 46s linear infinite; }
.hs-mq .hs-mq-row[data-dir="r"] { animation-direction: reverse; animation-duration: 52s; }
.hs-mq .hs-mq-row:nth-child(3) { animation-duration: 40s; }
.hs-mq:hover .hs-mq-row, .hs-mq:focus-within .hs-mq-row { animation-play-state: paused; }
.hs-mq .hs-mq-row li { flex: none; white-space: nowrap; }
@keyframes hsMq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hs-mq { -webkit-mask-image: none; mask-image: none; }
  /* 減少動態：不動，改成可以手滑的橫排（換行的話 20 顆在手機上會疊成 650px 高，10/06 實測） */
  .hs-mq .hs-mq-row { animation: none; width: auto; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .hs-mq .hs-mq-row::-webkit-scrollbar { display: none; }
  .hs-mq .hs-mq-row li[aria-hidden="true"] { display: none; }
}
