/* =========================================================
   GDSI — v90 體驗層（接在 styles.css 後面載入）
   ---------------------------------------------------------
   1. 動態效果：全部掛在 html[data-motion="on"] 底下（預設開；頁尾可關）。
      關閉、或 motion.js 沒載入時，這裡的進場規則都不會生效——內容照常顯示。
   2. 新元件：首頁主視覺、兩種訪客的入口、產業數據圖表、公司專區、聯絡我們。
   3. 既有元件的微調：按鈕、卡片、清單的互動回饋，載入中與空白狀態。
   ========================================================= */

:root {
  --navy: #0b1b33;
  --navy-2: #12294a;
  --sky: #35c4ff;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-up: 0 2px 4px rgba(34,48,63,.05), 0 14px 34px rgba(34,48,63,.12);
}

/* ═══════════ 1. 動態效果 ═══════════ */

/* 捲到才出現：motion.js 替卡片、清單列、標題加上 .mo，進入畫面時再加 .mo-in */
html[data-motion="on"] .mo {
  opacity: 0; transform: translateY(18px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--mo-d, 0ms);
  will-change: opacity, transform;
}
html[data-motion="on"] .mo.mo-in { opacity: 1; transform: none; }
/* 清單的列位移小一點（一整排一起動，位移大會暈） */
/* 這幾條只管「還沒進場」的狀態（:not(.mo-in)）：權重與上面的 .mo.mo-in 相同，不加這個條件的話寫在後面的會贏，
   元件淡入後會停在偏移的位置、等 class 拿掉才跳回去 */
html[data-motion="on"] .lb-row.mo:not(.mo-in), html[data-motion="on"] .board-row.mo:not(.mo-in), html[data-motion="on"] .mini.mo:not(.mo-in),
html[data-motion="on"] .he-row.mo:not(.mo-in), html[data-motion="on"] .ld-row.mo:not(.mo-in) { transform: translateY(10px); }
/* 標題從左邊滑進來 */
html[data-motion="on"] .cz-head.mo:not(.mo-in) { transform: translateX(-14px); }

/* 換頁：整頁淡入。
   這個檔案裡的進場動畫一律用 backwards（延遲期間先套用起始影格），不用 both／forwards：
   動畫結束後還保留狀態的話，Safari 與 Firefox 會讓那個元素自成一層，裡面的下拉選單會被後面的元素蓋住，滑鼠移上去的位移也會失效。 */
html[data-motion="on"] .mo-page { animation: moPage .42s var(--ease) backwards; }
@keyframes moPage { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 長條從 0 長出來（data-grow：橫向；data-grow="y"：由下往上；data-grow="clip"：裡面有字，用裁切才不會把字壓扁） */
html[data-motion="on"] [data-grow] { transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease) var(--mo-d, 90ms); }
html[data-motion="on"] [data-grow="y"] { transform: scaleY(0); transform-origin: center bottom; }
html[data-motion="on"] [data-grow="clip"] { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) var(--mo-d, 90ms); }
html[data-motion="on"] [data-grow].grow-in { transform: none; }
html[data-motion="on"] [data-grow="clip"].grow-in { clip-path: inset(0 0 0 0); }

/* 列印、或關閉動態效果：一律直接顯示 */
@media print { .mo, [data-grow] { opacity: 1 !important; transform: none !important; clip-path: none !important; } .scroll-prog, .to-top { display: none !important; } }

/* 按鈕水波（宿主要有定位，水波才會留在按鈕裡；沒有定位的由 motion.js 在按下時補上） */
.has-ripple { overflow: hidden; }
.co-tab, .cb-site, .cmp-pick, .hero-chip { position: relative; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .2; transform: scale(0); pointer-events: none; animation: moRipple .6s ease-out forwards; }
@keyframes moRipple { to { transform: scale(1); opacity: 0; } }

/* 頂端的閱讀進度條 */
.scroll-prog { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 210; pointer-events: none; }
.scroll-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky) 60%, var(--gold)); transform: scaleX(0); transform-origin: left center; }
html[data-motion="off"] .scroll-prog, .console-mode .scroll-prog { display: none; }

/* 頁首：往下捲之後收一點、陰影加深 */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
/* 高度維持不變：變矮的話，貼著頁首的選單、分頁列位置都要跟著改，而且會和瀏覽器的捲動錨定互相拉扯（頁首忽大忽小） */
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(34,48,63,.10); }
/* 品牌標誌：藍色圓角方塊裡一個白色的 G 形刻度環，缺口上有金色的指標點 */
.brand-mark { background: linear-gradient(135deg, #16a8f2, #0068b3); border-radius: 26%; overflow: hidden; transition: transform .5s var(--ease-spring), box-shadow .3s ease; }
.brand-mark .bm { display: block; width: 100%; height: 100%; }
.brand .brand-mark { width: 38px; height: 38px; box-shadow: 0 6px 16px rgba(0,104,179,.34); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.07); box-shadow: 0 10px 22px rgba(0,104,179,.42); }
.console-bm { width: 46px; height: 46px; flex: none; box-shadow: 0 6px 16px rgba(0,104,179,.34); }
.bm-arc { stroke-dasharray: 100; }
.bm-dot { transform-box: fill-box; transform-origin: center; }
/* 進站時 G 一筆畫出來、指標點彈出；滑鼠移上去指標點再跳一下 */
html[data-motion="on"] .brand .bm-arc, html[data-motion="on"] .console-bm .bm-arc { animation: bmDraw 1.1s var(--ease) .15s backwards; }
html[data-motion="on"] .brand .bm-dot, html[data-motion="on"] .console-bm .bm-dot { animation: bmDot .5s var(--ease-spring) 1.1s backwards; }
html[data-motion="on"] .brand:hover .bm-dot { animation: bmPulse .7s var(--ease-spring); }
@keyframes bmDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes bmDot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bmPulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.55); } }

/* 回到頂端 */
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 54; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.94); color: var(--blue-dark); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .35s var(--ease-spring), background .2s, color .2s, visibility 0s linear .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.to-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.to-top .gic { width: 1.15rem; height: 1.15rem; }
.console-mode .to-top { display: none; }
body.has-cmp-tray .to-top { bottom: calc(.6rem + var(--cmp-tray-h, 64px)); }

/* 載入中：四條跳動的長條（取代單純的文字） */
.loading { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.ld-bars { display: inline-flex; align-items: flex-end; gap: 5px; height: 30px; }
.ld-bars i { width: 6px; height: 100%; border-radius: 3px; background: var(--blue); opacity: .85; transform-origin: center bottom; animation: ldBar 1s ease-in-out infinite; }
.ld-bars i:nth-child(2) { animation-delay: .12s; background: var(--sky); }
.ld-bars i:nth-child(3) { animation-delay: .24s; background: var(--green); }
.ld-bars i:nth-child(4) { animation-delay: .36s; background: var(--gold); }
@keyframes ldBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
html[data-motion="off"] .ld-bars i { animation: none; transform: scaleY(.7); }
.ld-text { font-size: .9rem; letter-spacing: .06em; }

/* ── 既有元件的互動回饋 ── */
.btn { transition: transform .18s var(--ease), box-shadow .18s ease, background .16s ease, border-color .16s ease, color .16s ease; }
.btn:active { transform: translateY(0) scale(.97); }
.btn-gold:hover { box-shadow: 0 8px 20px rgba(0,140,214,.34); }
/* 主要按鈕：一道光掃過去 */
html[data-motion="on"] .btn-lg.btn-gold::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: btnShine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes btnShine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.btn-lg.btn-gold { position: relative; overflow: hidden; }

.panel, .ar-card, .pr-card, .country-card, .award-card, .prod-card, .vz-card, .ld-card, .stat { transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.ar-card:hover, .pr-card:hover, .country-card:hover, .prod-card:hover, .vz-card:hover, .ld-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.lb-row { transition: background .15s ease, transform .2s var(--ease), box-shadow .2s ease; }
.lb-row:hover { transform: translateX(4px); }
.lb-row:hover .co-logo2, .mini:hover .co-logo2, .board-row:hover .co-logo2 { transform: scale(1.08); }
.co-logo2 { transition: transform .3s var(--ease-spring); }
.mini { transition: border-color .15s ease, box-shadow .2s ease, transform .2s var(--ease); }
.mini:hover { transform: translateY(-2px); }
.cz-more .gic, .ar-go .gic, .honor-card > .gic { transition: transform .25s var(--ease); }
.cz-more:hover .gic, .ar-card:hover .ar-go .gic, .honor-card:hover > .gic { transform: translateX(4px); }
.honor-ic { transition: transform .45s var(--ease-spring); }
.honor-card:hover .honor-ic { transform: rotate(-8deg) scale(1.1); }

/* 提示訊息：從下方彈上來 */
.toast { transition: opacity .25s ease, translate .4s var(--ease-spring); }
/* 彈窗：放大進場 */
html[data-motion="on"] .modal-backdrop .modal { animation: moPop .32s var(--ease-spring) backwards; }
@keyframes moFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes moPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* 排行榜前三名的名次：金色微光 */
html[data-motion="on"] .lb-rk.top { background: linear-gradient(100deg, var(--gold) 20%, #ffd978 45%, var(--gold) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldShine 3.2s linear infinite; }
@keyframes goldShine { from { background-position: 120% 0; } to { background-position: -100% 0; } }

/* 動態效果開關（頁尾） */
.motion-toggle { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: .82rem; font-weight: 700; color: var(--muted); background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: .35em .85em; cursor: pointer; transition: .16s; }
.motion-toggle:hover { color: var(--blue); border-color: var(--blue); }
.motion-toggle .mt-dot { width: 26px; height: 15px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; }
.motion-toggle .mt-dot::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .25s var(--ease-spring); }
.motion-toggle[aria-pressed="true"] .mt-dot { background: var(--green); }
.motion-toggle[aria-pressed="true"] .mt-dot::after { transform: translateX(11px); }

/* ═══════════ 2. 首頁主視覺 ═══════════ */
/* 不在 .hx 上裁切（搜尋建議清單要能超出主視覺往下蓋）；只裁切裝飾用的背景層 */
.hx { position: relative; z-index: 2; color: #fff; background: linear-gradient(135deg, #081528 0%, #0d2444 48%, #0b4f85 135%); isolation: isolate; }
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hx-blob.b1 { width: 520px; height: 520px; left: -160px; top: -200px; background: radial-gradient(circle, #008cd6 0%, transparent 70%); }
.hx-blob.b2 { width: 460px; height: 460px; right: -120px; top: 10%; background: radial-gradient(circle, #35c4ff 0%, transparent 70%); opacity: .38; }
.hx-blob.b3 { width: 380px; height: 380px; left: 36%; bottom: -220px; background: radial-gradient(circle, #e8a200 0%, transparent 70%); opacity: .26; }
.hx-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 78%); }
html[data-motion="on"] .hx-blob.b1 { animation: hxDrift 16s ease-in-out infinite alternate; }
html[data-motion="on"] .hx-blob.b2 { animation: hxDrift 20s ease-in-out -6s infinite alternate-reverse; }
html[data-motion="on"] .hx-blob.b3 { animation: hxDrift 24s ease-in-out -11s infinite alternate; }
html[data-motion="on"] .hx-grid { animation: hxGrid 28s linear infinite; }
@keyframes hxDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.18); } }
@keyframes hxGrid { from { background-position: 0 0, 0 0; } to { background-position: 46px 46px, 46px 46px; } }

.hx-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(1.6rem, 4vw, 3.6rem); align-items: center; padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.hx-copy { min-width: 0; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: #d5efff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .38em 1em; backdrop-filter: blur(6px); }
.hx-eyebrow .gic { width: 1em; height: 1em; color: var(--sky); }
.hx h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3.3rem); line-height: 1.24; margin: 1.1rem 0 .9rem; letter-spacing: .01em; }
/* 兩句各自成行，不從詞中間斷開（「選直銷公司之／前」） */
.hx-l1 { display: block; }
.hx-accent { position: relative; display: inline-block; background: linear-gradient(100deg, #6fd4ff 0%, #ffffff 42%, #ffd978 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: .14em; border-radius: 999px; background: linear-gradient(90deg, var(--sky), var(--gold)); transform-origin: left center; }
html[data-motion="on"] .hx-accent { animation: hxSheen 6s ease-in-out infinite; }
html[data-motion="on"] .hx-accent::after { animation: hxLine 1s var(--ease) .75s backwards; }
@keyframes hxSheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes hxLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hx-sub { font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.85; color: rgba(255,255,255,.84); max-width: 54ch; margin: 0 0 1.5rem; }
.hx-sub b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 搜尋列（主視覺裡最重要的操作） */
.hx-search { position: relative; display: flex; align-items: center; gap: .55rem; background: #fff; border-radius: 16px; padding: .42rem .42rem .42rem 1.05rem; max-width: 600px;
  box-shadow: 0 18px 50px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.2); transition: box-shadow .22s ease, transform .22s var(--ease); }
.hx-search:focus-within { box-shadow: 0 22px 60px rgba(0,0,0,.4), 0 0 0 4px rgba(53,196,255,.42); transform: translateY(-1px); }
.hx-search .hs-ic { color: var(--blue); display: inline-flex; flex: none; }
.hx-search .hs-ic .gic { width: 1.25rem; height: 1.25rem; }
.hx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.04rem; color: var(--ink); padding: .62rem 0; }
.hx-search input::placeholder { color: var(--muted); }
.hx-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hx-search > .btn { flex: none; border-radius: 12px; padding: .78em 1.5em; font-size: 1rem; }
.hx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; font-size: .84rem; color: rgba(255,255,255,.66); }
.hx-chips > span { font-weight: 700; margin-right: .1rem; }
.hero-chip { position: relative; display: inline-flex; align-items: center; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .26em .85em; font-weight: 600; font-size: .84rem; transition: background .18s, border-color .18s, transform .2s var(--ease); }
.hero-chip:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.hx-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hx .btn-gold { background: linear-gradient(135deg, #12a4ee, #008cd6); box-shadow: 0 8px 24px rgba(0,140,214,.5); }
.hx .btn-gold:hover { background: linear-gradient(135deg, #2ab3f8, #0a96e0); }
.btn-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.34); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.7); transform: translateY(-1px); }

/* 右側：即時前五名 */
.hx-visual { position: relative; min-width: 0; }
.hx-card { position: relative; background: #fff; color: var(--ink); border-radius: 18px; padding: 1.05rem 1.1rem .7rem; box-shadow: 0 30px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.3); }
.hx-card-head { display: flex; align-items: center; gap: .5rem; padding: 0 .2rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.hx-card-head b { font-family: var(--serif); font-size: 1.02rem; }
.hx-card-head em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--blue-dark); background: var(--blue-soft); border-radius: 999px; padding: .14em .7em; white-space: nowrap; }
.hx-row { display: grid; grid-template-columns: 1.7rem 34px minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .56rem .35rem; border-radius: 10px; transition: background .16s ease, transform .2s var(--ease); }
.hx-row:hover { background: var(--blue-softer); transform: translateX(4px); }
.hx-rk { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.hx-rk.top { color: var(--gold); }
.hx-name { min-width: 0; display: flex; flex-direction: column; gap: .32rem; }
.hx-name b { font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-bar { display: block; height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.hx-bar i { display: block; height: 100%; border-radius: inherit; }
.hx-score { font-family: var(--serif); font-size: 1.22rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; }
.hx-card-more { display: flex; align-items: center; justify-content: center; gap: .25rem; margin-top: .3rem; padding: .62rem; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 700; color: var(--blue); }
.hx-card-more .gic { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.hx-card-more:hover .gic { transform: translateX(4px); }
.hx-float { position: absolute; display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 800; border-radius: 999px; padding: .45em .95em; box-shadow: 0 12px 30px rgba(0,0,0,.3); white-space: nowrap; z-index: 2; }
.hx-float .gic { width: 1.05em; height: 1.05em; }
.hx-float.f1 { left: -22px; top: -16px; } .hx-float.f1 .gic { color: var(--gold); }
.hx-float.f2 { right: -16px; bottom: -15px; } .hx-float.f2 .gic { color: var(--green); }
@keyframes hxBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* 主視覺底部的四個數字 */
/* 底部留白用 .hx 的 padding（用 margin 會穿出主視覺，在下面露出一條白邊） */
.hx { padding-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.hx-stats { display: flex; flex-wrap: wrap; margin: clamp(.6rem, 2vw, 1.4rem) 0 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; backdrop-filter: blur(8px); }
/* 有幾格就平均分幾格（有些數字是 0 時不顯示，不能留空欄） */
.hx-stat { flex: 1 1 0; display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.2rem; min-width: 0; }
.hx-stat + .hx-stat { border-left: 1px solid rgba(255,255,255,.12); }
.hx-stat-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(53,196,255,.16); color: var(--sky); }
.hx-stat-ic .gic { width: 1.25rem; height: 1.25rem; }
.hx-stat > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.hx-stat b { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.hx-stat em { font-style: normal; font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.45; }

/* 主視覺的進場（一進站就播；不靠捲動） */
html[data-motion="on"] .hx-copy > * { animation: hxUp .7s var(--ease) backwards; }
html[data-motion="on"] .hx-copy > :nth-child(1) { animation-delay: .05s; }
html[data-motion="on"] .hx-copy > :nth-child(2) { animation-delay: .14s; }
html[data-motion="on"] .hx-copy > :nth-child(3) { animation-delay: .24s; }
html[data-motion="on"] .hx-copy > :nth-child(4) { animation-delay: .34s; }
html[data-motion="on"] .hx-copy > :nth-child(5) { animation-delay: .44s; }
html[data-motion="on"] .hx-copy > :nth-child(6) { animation-delay: .54s; }
html[data-motion="on"] .hx-card { animation: hxCard .9s var(--ease) .25s backwards; }
html[data-motion="on"] .hx-row { animation: hxRow .55s var(--ease) backwards; animation-delay: calc(.5s + var(--i, 0) * 90ms); }
html[data-motion="on"] .hx-stats { animation: hxUp .7s var(--ease) .6s backwards; }
html[data-motion="on"] .hx-float { animation-name: hxPop, hxBob; animation-duration: .5s, 5.5s; animation-timing-function: var(--ease-spring), ease-in-out; animation-delay: 1.1s, 1.6s; animation-iteration-count: 1, infinite; animation-fill-mode: backwards, none; }
html[data-motion="on"] .hx-float.f2 { animation-delay: 1.3s, 1.8s; }
@keyframes hxUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hxCard { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hxRow { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes hxPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
/* 搜尋建議要蓋在後面的內容上：進場動畫結束後 transform 會消失，不會留下新的堆疊層 */
.hx-copy > .hx-search { z-index: 5; }

/* 搜尋建議清單（首頁、公司專區、聯絡表單共用） */
.fd-box { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .35rem; max-height: min(60vh, 420px); overflow-y: auto; text-align: left; }
.fd-box[hidden] { display: none; }
html[data-motion="on"] .fd-box { animation: fdIn .2s var(--ease) backwards; }
@keyframes fdIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fd-opt { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: .7rem; width: 100%; padding: .5rem .6rem; border: 0; background: none; border-radius: 10px; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.fd-opt:hover, .fd-opt.on { background: var(--blue-softer); }
.fd-name { min-width: 0; display: flex; flex-direction: column; }
.fd-name b { font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-name em { font-style: normal; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-side { display: inline-flex; align-items: baseline; gap: .5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fd-side b { font-family: var(--serif); font-size: 1.05rem; }
.fd-rank, .fd-dim { font-style: normal; font-size: .76rem; color: var(--muted); }
.fd-more { display: flex; align-items: center; justify-content: center; gap: .25rem; width: 100%; margin-top: .2rem; padding: .6rem; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: .86rem; font-weight: 700; color: var(--blue); cursor: pointer; border-radius: 0 0 10px 10px; }
.fd-more:hover { background: var(--blue-softer); }
.fd-more .gic { width: 1em; height: 1em; }
.fd-empty { padding: 1rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* 戰況條：排行跑馬燈 */
.lf-rk { font-style: normal; font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: .82rem; min-width: 1.2em; text-align: right; }
.live-track em.lf-score { opacity: 1; font-weight: 800; font-variant-numeric: tabular-nums; filter: brightness(1.35); }

/* ═══════════ 3. 兩種訪客的入口 ═══════════ */
.aud-section { padding-bottom: 1.2rem; }
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.aud-card { position: relative; border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.1rem); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s ease; }
.aud-card:hover { transform: translateY(-5px); }
.aud-card.user { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.aud-card.user:hover { box-shadow: var(--shadow-up); }
.aud-card.user::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.aud-card.user::after { content: ''; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--blue-soft), transparent 70%); pointer-events: none; }
.aud-card.co { color: #fff; background: linear-gradient(140deg, #0b1b33 0%, #12315c 62%, #0b5a8f 130%); box-shadow: 0 14px 40px rgba(11,27,51,.3); }
.aud-card.co:hover { box-shadow: 0 22px 54px rgba(11,27,51,.42); }
.aud-card.co::after { content: ''; position: absolute; right: -80px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(232,162,0,.3), transparent 70%); pointer-events: none; }
.aud-card > * { position: relative; z-index: 1; }
.aud-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; border-radius: 999px; padding: .32em .9em; color: var(--blue-dark); background: var(--blue-soft); }
.aud-card.co .aud-tag { color: #ffe3a0; background: rgba(232,162,0,.18); border: 1px solid rgba(232,162,0,.4); }
.aud-tag .gic { width: 1em; height: 1em; }
.aud-card h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; margin: .9rem 0 1rem; }
.aud-card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.aud-card li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; line-height: 1.65; color: var(--ink-soft); }
.aud-card.co li { color: rgba(255,255,255,.88); }
.aud-card li .gic { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem; padding: .16rem; border-radius: 50%; color: #fff; background: var(--green); }
.aud-card.co li .gic { background: var(--gold); color: #0b1b33; }
.aud-acts { display: flex; flex-wrap: wrap; gap: .7rem; }
.aud-card.co .btn-gold { background: linear-gradient(135deg, #f5b21a, #e8a200); color: #1c1503; box-shadow: 0 8px 22px rgba(232,162,0,.4); }
.aud-card.co .btn-gold:hover { background: linear-gradient(135deg, #ffc23d, #f0aa08); }
.aud-fair { display: flex; align-items: flex-start; gap: .45rem; margin: 1.1rem 0 0; font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.72); }
.aud-fair .gic { flex: none; width: 1em; height: 1em; margin-top: .25em; color: #ffd978; }

/* 本月動態：只有一欄或兩欄時不要撐成三欄的寬度 */
.dyn-cols.n1 { grid-template-columns: minmax(0, 1fr); }
.dyn-cols.n1 .dyn-list { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.dyn-cols.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ═══════════ 4. 三步驟 ═══════════ */
.how-section { background: linear-gradient(180deg, transparent, #fff 18%, #fff 82%, transparent); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; position: relative; counter-reset: none; }
.how-steps::before { content: ''; position: absolute; left: 16.66%; right: 16.66%; top: 75px; border-top: 2px dashed var(--line-strong); z-index: 0; }
.how-step { position: relative; z-index: 1; text-align: center; padding: 0 .6rem; }
.how-art { position: relative; display: grid; place-items: center; width: 190px; height: 150px; margin: 0 auto 1.1rem; border-radius: 28px; background: linear-gradient(160deg, #eef7fe 0%, #fff 72%); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .45s var(--ease-spring), box-shadow .3s ease; }
.how-art .art.lg { width: 150px; height: 120px; }
.how-step:hover .how-art { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-up); }
.how-n { position: absolute; left: -11px; top: -11px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; font-weight: 700; background: linear-gradient(135deg, #ffcf4a, var(--gold)); color: #1c1503; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(232,162,0,.35); z-index: 2; }
html[data-motion="on"] .how-step.mo-seen .how-n { animation: howN .6s var(--ease-spring) .35s backwards; }
@keyframes howN { from { opacity: 0; transform: scale(.2) rotate(-90deg); } to { opacity: 1; transform: none; } }
.how-step h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .4rem; }
.how-step p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: .92rem; line-height: 1.75; }

/* 怎麼算分：長條有圓角、圖例做成卡片 */
.method-section .wbar { height: 46px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), var(--shadow); }
.method-section .wseg { font-size: .9rem; letter-spacing: .02em; }
.wlegend .wl { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; transition: transform .25s var(--ease), box-shadow .25s ease; }
.wlegend .wl:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ═══════════ 5. 產業數據圖表 ═══════════ */
.ins-section { background: linear-gradient(180deg, #eaf3fa 0%, var(--paper) 100%); }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.ins-card { padding: 1.3rem 1.4rem 1.4rem; min-width: 0; }
.ins-wide { grid-column: 1 / -1; }
.ins-card h3 { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: 1.08rem; margin: 0 0 1.1rem; }
.ins-card h3 > .gic { color: var(--blue); width: 1.15em; height: 1.15em; }
.ins-sync { margin-left: auto; font-family: var(--sans); font-size: .74rem; font-weight: 700; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .15em .75em; white-space: nowrap; }
.ins-note { margin: 1rem 0 0; font-size: .86rem; color: var(--muted); line-height: 1.7; }
/* 分數分布：直條 */
.hist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(.4rem, 1.6vw, 1.1rem); align-items: end; }
.hist-col { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 0; }
.hist-n { font-family: var(--serif); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.hist-bar { display: flex; align-items: flex-end; width: 100%; max-width: 92px; height: 150px; border-radius: 10px 10px 4px 4px; background: var(--bg-soft); overflow: hidden; }
.hist-bar i { display: block; width: 100%; border-radius: 10px 10px 0 0; }
.hist-col em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.35; }
/* 橫條清單 */
.hbar-list { display: grid; gap: .72rem; }
.hbar-row { display: grid; grid-template-columns: minmax(4.2em, 5.6em) minmax(0, 1fr) auto; align-items: center; gap: .7rem; font-size: .9rem; }
.hbar-lab { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { display: block; height: 12px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: inherit; }
.hbar-val { display: inline-flex; align-items: baseline; gap: .45rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbar-val b { font-family: var(--serif); font-size: 1rem; min-width: 2.2ch; text-align: right; }
.hbar-val em { font-style: normal; font-size: .74rem; color: var(--muted); }
/* 查核數字 */
.ck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: .8rem; }
.ck { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; background: var(--blue-softer); border: 1px solid #dcedf8; border-radius: 12px; padding: .8rem .9rem; transition: transform .25s var(--ease), box-shadow .25s ease; }
.ck:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ck-ic { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: 0 2px 6px rgba(0,140,214,.14); }
.ck-ic .gic { width: 1.15rem; height: 1.15rem; }
.ck b { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--blue-dark); }
.ck em { font-style: normal; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.ins-src { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); font-size: .82rem; }
.ins-src b { color: var(--muted); font-weight: 700; margin-right: .2rem; }
.ins-src a { display: inline-flex; align-items: center; gap: .3rem; color: var(--blue-dark); background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: .25em .8em; font-weight: 600; transition: .16s; }
.ins-src a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.ins-src a .gic { width: .9em; height: .9em; }

/* ═══════════ 6. 直銷公司專區的入口（首頁橫幅） ═══════════ */
.coz { position: relative; color: #fff; background: linear-gradient(120deg, #0b1b33 0%, #12315c 58%, #0b5a8f 125%); overflow: hidden; isolation: isolate; margin-top: 1rem; }
.coz-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 88% 10%, rgba(232,162,0,.22), transparent 70%), radial-gradient(520px 320px at 6% 100%, rgba(53,196,255,.2), transparent 70%); }
.coz-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; padding: clamp(2.4rem, 6vw, 4rem) 0; }
.coz .eyebrow { color: #ffd978; }
.coz h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.35; margin: .5rem 0 .7rem; }
.coz-copy p { color: rgba(255,255,255,.82); line-height: 1.85; margin: 0 0 1.1rem; max-width: 56ch; }
.coz-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.coz-pills span { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .3em .85em; }
.coz-pills .gic { width: 1em; height: 1em; color: #ffd978; }
.coz-acts { display: flex; flex-wrap: wrap; gap: .8rem; }
.coz .btn-gold { background: linear-gradient(135deg, #f5b21a, #e8a200); color: #1c1503; box-shadow: 0 8px 24px rgba(232,162,0,.42); }
.coz .btn-gold:hover { background: linear-gradient(135deg, #ffc23d, #f0aa08); }
.coz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.coz-steps li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .8rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: .8rem 1rem; backdrop-filter: blur(6px); transition: transform .25s var(--ease), background .2s ease; }
.coz-steps li:hover { transform: translateX(6px); background: rgba(255,255,255,.14); }
.coz-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--gold); color: #1c1503; }
.coz-ic { display: grid; place-items: center; color: #9fdcff; }
.coz-ic .gic { width: 1.2rem; height: 1.2rem; }
.coz-steps b { font-size: .95rem; }

/* ═══════════ 7. 與我們聯繫（卡片） ═══════════ */
.ct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.1rem; }
.ct-card { position: relative; display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.4rem 1.3rem; box-shadow: var(--shadow); overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s ease, border-color .2s ease; }
.ct-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); border-color: #bfe0f4; }
.ct-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: .5rem; transition: transform .45s var(--ease-spring); }
.ct-card:hover .ct-ic { transform: rotate(-8deg) scale(1.08); }
.ct-ic .gic { width: 1.5rem; height: 1.5rem; }
.ct-card b { font-family: var(--serif); font-size: 1.12rem; }
.ct-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; flex: 1; }
.ct-go { display: inline-flex; align-items: center; gap: .25rem; margin-top: .7rem; font-weight: 800; font-size: .92rem; color: var(--blue); }
.ct-go .gic { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.ct-card:hover .ct-go .gic { transform: translateX(4px); }
.ct-card.hot { color: #fff; border-color: transparent; background: linear-gradient(140deg, #b3261e 0%, #e0641b 120%); box-shadow: 0 12px 34px rgba(179,38,30,.28); }
.ct-card.hot p { color: rgba(255,255,255,.88); }
.ct-card.hot .ct-ic { background: rgba(255,255,255,.18); color: #fff; }
.ct-card.hot .ct-go { color: #fff; font-family: var(--serif); font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.cta-section { padding-top: 2.6rem; }
/* 統計數字：少一格時（例如還沒有評價）自動平均分配，不留空欄 */
.stat-strip { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }

/* ═══════════ 8. 手機／平板 ═══════════ */
@media (max-width: 960px) {
  .hx-in { grid-template-columns: minmax(0, 1fr); }
  .hx-visual { max-width: 560px; }
  .hx-float.f1 { left: 10px; top: -14px; } .hx-float.f2 { right: 10px; bottom: -14px; }
  .coz-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hx-stat { flex: 1 1 50%; padding: .85rem .9rem; gap: .6rem; }
  .hx-stat + .hx-stat { border-left: 0; }
  .hx-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .hx-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .hx-stat-ic { width: 36px; height: 36px; border-radius: 10px; }
  .hx-search { padding: .34rem .34rem .34rem .8rem; border-radius: 14px; }
  .hx-search input { font-size: 1rem; }
  .hx-search > .btn { padding: .72em 1.05em; }
  .hx-cta .btn { flex: 1 1 100%; }
  .hx-chips .hero-chip:nth-of-type(n+4) { display: none; }
  .aud-grid { grid-template-columns: minmax(0, 1fr); }
  .aud-acts .btn { flex: 1 1 auto; }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .how-steps::before { left: 54px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .how-step { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 1rem; text-align: left; padding: 0; align-items: start; }
  .how-art { grid-row: 1 / 3; width: 110px; height: 92px; margin: 0; border-radius: 20px; }
  .how-art .art.lg { width: 92px; height: 74px; }
  .how-n { left: -2px; top: -9px; width: 28px; height: 28px; font-size: .86rem; border-width: 2px; }   /* 手機上不往左凸出去：內容離螢幕邊緣只有幾 px */
  .how-step h3 { margin-top: .6rem; }
  .how-step p { margin: 0; max-width: none; }
  .ins-grid { grid-template-columns: minmax(0, 1fr); }
  .hist-bar { height: 120px; }
  .hist-col em { font-size: .7rem; }
  .ins-card h3 { flex-wrap: wrap; }
  .ins-sync { margin-left: 0; }
  .dyn-cols.n2 { grid-template-columns: minmax(0, 1fr); }
  .coz-acts .btn { flex: 1 1 100%; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .hx-search > .btn { padding: .72em .85em; font-size: .94rem; }
  .hx-float { font-size: .72rem; }
  .hbar-row { grid-template-columns: 4.4em minmax(0, 1fr) auto; gap: .5rem; }
  .hbar-val em { display: none; }
}

/* ═══════════ 9. 導覽列與頁尾 ═══════════ */
/* 「聯絡我們」做成膠囊按鈕：直銷公司與民眾最需要找得到的入口 */
.site-nav a.nav-cta { color: #fff; background: var(--blue); padding: .42em 1em; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,140,214,.28); transition: background .16s ease, transform .2s var(--ease), box-shadow .2s ease; }
.site-nav a.nav-cta:hover { color: #fff; background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,140,214,.36); }
.site-nav a.nav-cta.active { color: #fff; background: var(--blue-dark); }
.site-nav a.nav-cta.active::after { display: none; }
.site-nav a.nav-co { color: var(--blue-dark); font-weight: 800; }
/* 底線由左滑出（原本是直接出現） */
.site-nav > a:not(.nav-cta)::before { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left center; transition: transform .28s var(--ease); }
.site-nav > a:not(.nav-cta):not(.active):hover::before { transform: scaleX(1); }
html[data-motion="on"] .nav-group.open .nav-group-menu { animation: navDrop .2s var(--ease) backwards; }
@keyframes navDrop { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%); } }
.nav-group-menu a { transition: background .15s ease, padding-left .2s var(--ease); }
.nav-group-menu a:hover { padding-left: .95rem; }

@media (max-width: 1024px) {
  /* 手機選單：群組攤平成一般項目，前面加小標題分段，看得出哪些是同一類 */
  .site-nav > a:not(.nav-cta)::before { display: none; }
  .site-nav a.nav-cta { margin-top: .9rem; padding: .85rem 1rem; text-align: center; border-bottom: 0; border-radius: 12px; font-size: 1rem; }
  .site-nav a.nav-co { border-bottom: 1px solid var(--line); }
  .nav-group-menu a:hover { padding-left: 0; }
  html[data-motion="on"] .nav-group.open .nav-group-menu { animation: none; }
  html[data-motion="on"] .site-nav.open > * { animation: navItem .34s var(--ease) backwards; }
  html[data-motion="on"] .site-nav.open > :nth-child(2) { animation-delay: .03s; } html[data-motion="on"] .site-nav.open > :nth-child(3) { animation-delay: .06s; }
  html[data-motion="on"] .site-nav.open > :nth-child(4) { animation-delay: .09s; } html[data-motion="on"] .site-nav.open > :nth-child(5) { animation-delay: .12s; }
  html[data-motion="on"] .site-nav.open > :nth-child(6) { animation-delay: .15s; } html[data-motion="on"] .site-nav.open > :nth-child(7) { animation-delay: .18s; }
  html[data-motion="on"] .site-nav.open > :nth-child(8) { animation-delay: .21s; } html[data-motion="on"] .site-nav.open > :nth-child(n+9) { animation-delay: .24s; }
  /* 選單打開時，右下角的專線鈕、回到頂端、比較清單都先讓開，不要蓋在選單上 */
  body.nav-open .hotline-fab, body.nav-open .to-top, body.nav-open .cmp-tray { opacity: 0; pointer-events: none; }
  body.nav-open { overflow: hidden; }
}
@keyframes navItem { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* 中文在 1000–1024 仍是橫向列：這個寬度放不下膠囊的內距，改回一般連結樣式 */
@media (min-width: 1000px) and (max-width: 1100px) {
  html[lang="zh-Hant"] .site-nav a.nav-cta, html[lang="zh-Hans"] .site-nav a.nav-cta { padding: .34em .75em; margin: 0; border-radius: 999px; font-size: .82rem; }
}
/* 漢堡選單：打開時三條線變成叉 */
.nav-toggle { padding: 8px 4px; }
.nav-toggle span { transition: transform .28s var(--ease), opacity .2s ease; transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 頁尾 */
.site-footer { position: relative; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky) 55%, var(--gold)); }
.footer-cols a { position: relative; width: fit-content; transition: color .16s ease, transform .2s var(--ease); }
.footer-cols a:hover { transform: translateX(3px); }
.footer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; }
.footer-spirit { font-size: .82rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; }

/* ═══════════ 10. 關閉動態效果（頁尾開關）═══════════
   全站所有動畫與轉場一次收掉；內容照常顯示（進場動畫的起始狀態都掛在 [data-motion="on"] 底下，關閉時根本不會套用）。 */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}

/* ═══════════ 11. 第二輪微調（實測後） ═══════════ */
/* 媒體卡片的封面：沒有圖片時顯示媒體名稱 */
.pr-thumb > .gic { display: none; }
.pr-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 1rem; text-align: center; color: #fff; }
.pr-cover::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.2), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.pr-cover .gic { position: relative; width: 1.7rem; height: 1.7rem; opacity: .85; }
.pr-cover b { position: relative; font-family: var(--serif); font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.35; letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.3); max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pr-thumb img { transition: transform .6s var(--ease); }
.pr-card:hover .pr-thumb img, .pr-card:hover .pr-cover b { transform: scale(1.04); }
.pr-cover b { transition: transform .5s var(--ease); }

/* 分類戰場：桌機三欄（六張剛好兩排） */
@media (min-width: 980px) { .arena-section .ar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 頁尾：右下角有專線鈕、左下角有回到頂端，最後一排字要留出位置 */
.site-footer { padding-bottom: 5.4rem; }
.footer-tools { justify-content: flex-start; }

@media (max-width: 760px) {
  /* 戰況條：手機也跑馬燈（另起一行） */
  .live-feed { display: block; flex: 1 1 100%; order: 9; }
  .live-inner { row-gap: .35rem; }
  /* 統計數字：三格排一列、四格排兩列 */
  .stat-strip.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .stat-strip.n3 .stat { padding: 1rem .4rem; }
  .stat-strip.n3 .stat .num { font-size: 1.45rem; }
  /* 查核數字：兩欄 */
  .ck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .ck { grid-template-columns: 1fr; row-gap: .3rem; padding: .75rem .8rem; }
  .ck-ic { grid-row: auto; width: 32px; height: 32px; }
  .ck:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* 卡片清單改成可以左右滑的一排（省掉一大段捲動距離） */
  .arena-section .ar-grid, .press-home .pr-grid { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -4vw; padding: .2rem 4vw 1rem; scrollbar-width: none; }
  .arena-section .ar-grid::-webkit-scrollbar, .press-home .pr-grid::-webkit-scrollbar { display: none; }
  .arena-section, .press-home { overflow-x: clip; }
  .arena-section .ar-card { flex: 0 0 74%; scroll-snap-align: center; }
  .press-home .pr-card { flex: 0 0 82%; scroll-snap-align: center; }
  /* 專線浮動鈕：往下讀的時候縮成圓形 */
  .hotline-fab { transition: padding .3s var(--ease), gap .3s var(--ease), transform .18s ease, box-shadow .18s ease; }
  .hf-text { max-width: 12rem; overflow: hidden; white-space: nowrap; transition: max-width .32s var(--ease), opacity .2s ease; }
  body.fab-mini .hotline-fab { padding: .5rem; gap: 0; }
  body.fab-mini .hf-text { max-width: 0; opacity: 0; }
}

/* ═══════════ 12. 內頁共用的深色頁首 ═══════════ */
.ph { position: relative; z-index: 1; color: #fff; background: linear-gradient(135deg, #081528 0%, #0d2444 52%, #0b4f85 140%); isolation: isolate; }
.ph-in { padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(2rem, 4.5vw, 3rem); }
.ph h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4.4vw, 2.8rem); line-height: 1.25; margin: 1rem 0 .6rem; }
.ph-lede { max-width: 62ch; margin: 0; font-size: clamp(.98rem, 1.5vw, 1.08rem); line-height: 1.85; color: rgba(255,255,255,.84); }
html[data-motion="on"] .ph-in > * { animation: hxUp .6s var(--ease) backwards; }
html[data-motion="on"] .ph-in > :nth-child(2) { animation-delay: .08s; }
html[data-motion="on"] .ph-in > :nth-child(3) { animation-delay: .16s; }
html[data-motion="on"] .ph-in > :nth-child(4) { animation-delay: .26s; }

/* ═══════════ 13. 聯絡我們 ═══════════ */
.ct-page { padding-top: 2.2rem; }
.ct-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.ct-form-panel { padding: clamp(1.2rem, 3vw, 1.9rem); }
.ct-form .req { font-style: normal; font-size: .7rem; font-weight: 700; color: #b23b36; background: #fdeceb; border-radius: 999px; padding: .08em .55em; margin-left: .25rem; vertical-align: middle; }
.ct-kinds { border: 0; margin: 0; padding: 0; min-width: 0; }
.ct-kinds legend { padding: 0; font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .5rem; }
.ctk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr)); gap: .6rem; }
.sub-form label.ctk { position: relative; display: block; cursor: pointer; font-weight: 400; }
.ctk input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ctk-box { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .8rem .85rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; transition: border-color .16s ease, background .16s ease, transform .2s var(--ease), box-shadow .2s ease; }
.ctk:hover .ctk-box { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.ctk-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: .2rem; transition: background .16s ease, color .16s ease; }
.ctk-ic .gic { width: 1.05rem; height: 1.05rem; }
.ctk-box b { font-size: .92rem; color: var(--ink); }
.ctk-box em { font-style: normal; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.ctk input:checked + .ctk-box { border-color: var(--blue); background: var(--blue-softer); box-shadow: 0 0 0 3px var(--blue-soft); }
.ctk input:checked + .ctk-box .ctk-ic { background: var(--blue); color: #fff; }
.ctk input:focus-visible + .ctk-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.ct-tip { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid #f0d9a8; border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; color: #6b4a00; }
.ct-tip[hidden] { display: none; }
.ct-tip > .gic { flex: none; color: var(--gold); }
.ct-tip span { flex: 1 1 220px; line-height: 1.6; }
.ct-co { position: relative; }
.ct-co > label { margin-bottom: .3rem; }
.ct-co-find { position: relative; }
.ct-co-find .input { margin-top: 0; }
.ct-co-pick { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: .7rem; border: 1.5px solid var(--blue); background: var(--blue-softer); border-radius: 10px; padding: .5rem .6rem; }
.ct-co-pick[hidden] { display: none; }
.ct-co-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .16s; }
.ct-co-x:hover { background: #fdeceb; color: #b23b36; }
.ct-co-x .gic { width: 1rem; height: 1rem; }
.ct-hint { display: block; margin-top: .35rem; font-size: .78rem; color: var(--muted); font-weight: 400; }
.sub-form textarea.ct-msg { min-height: 150px; }
.ct-count { display: block; text-align: right; font-size: .74rem; font-weight: 400; color: var(--muted); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.ct-count.near { color: #b23b36; font-weight: 700; }
.ct-note { display: flex; gap: .45rem; align-items: flex-start; margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.65; }
.ct-note .gic { flex: none; width: 1em; height: 1em; margin-top: .28em; color: var(--green); }
.ct-form .console-err { font-size: .9rem; background: #fdeceb; border: 1px solid #f3c9c6; border-radius: 10px; padding: .6rem .8rem; }
.ct-form .sub-actions .btn { min-width: 180px; }
.ct-side { display: grid; gap: 1rem; position: sticky; top: 84px; }
.ct-side-panel { padding: 1.2rem; }
.ct-side-panel h2 { margin-bottom: .8rem; }
.ct-way { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .8rem .7rem; border-radius: 12px; transition: background .16s ease, transform .2s var(--ease); }
.ct-way + .ct-way { margin-top: .2rem; }
.ct-way:hover { background: var(--blue-softer); transform: translateX(3px); }
.ct-way-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.ct-way-ic .gic { width: 1.2rem; height: 1.2rem; }
.ct-way b { display: block; font-size: .95rem; }
.ct-way em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.ct-way > .gic { width: 1rem; height: 1rem; color: var(--muted-2); }
.ct-way.hot { background: linear-gradient(135deg, #fff3ee, #ffe6dc); }
.ct-way.hot .ct-way-ic { background: linear-gradient(135deg, #c8221e, #e0641b); color: #fff; }
.ct-way.hot b { color: #a11226; font-variant-numeric: tabular-nums; }
.ct-fair { color: var(--muted); margin: 0; padding: 0 .3rem; }
.ct-fair .gic { color: var(--gold); }
.ct-done { padding: 2.6rem 1.2rem; }
.ct-done-ic { width: 76px; height: 76px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.ct-done-ic .gic { width: 2.4rem; height: 2.4rem; }
html[data-motion="on"] .ct-done-ic { animation: moPop .5s var(--ease-spring) backwards; }
.ct-ref { font-family: var(--serif); font-weight: 700; color: var(--blue-dark) !important; font-variant-numeric: tabular-nums; }

/* ═══════════ 14. 公司專區 ═══════════ */
.fc-nums { display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; margin-top: 1.6rem; }
.fc-nums > div { display: flex; align-items: baseline; gap: .5rem; }
.fc-nums b { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-variant-numeric: tabular-nums; color: #ffd978; }
.fc-nums em { font-style: normal; font-size: .9rem; color: rgba(255,255,255,.78); }
.fc-page { padding-top: 0; }
.fc-find { position: relative; z-index: 2; margin-top: -1.6rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-up); padding: clamp(1.2rem, 3vw, 1.9rem); }
.fc-find h2 { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin: 0 0 .3rem; }
.fc-find h2 .gic { color: var(--blue); }
.fc-find > p { margin: 0 0 1rem; color: var(--muted); font-size: .93rem; }
.fc-find-box { display: flex; align-items: center; gap: .6rem; border: 2px solid var(--line-strong); border-radius: 14px; padding: .2rem .9rem; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.fc-find-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.fc-find-box .hs-ic { color: var(--blue); display: inline-flex; }
.fc-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; padding: .8rem 0; color: var(--ink); }
.fc-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fc-results { margin-top: .8rem; display: grid; gap: .5rem; }
.fc-hint, .fc-none { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: 0; font-size: .86rem; color: var(--muted); }
.fc-hint .gic { color: var(--green); width: 1em; height: 1em; }
.fc-none { background: var(--gold-soft); border: 1px solid #f0d9a8; border-radius: 12px; padding: .8rem .9rem; color: #6b4a00; line-height: 1.65; }
.fc-none > .gic { color: var(--gold); flex: none; }
.fc-none a { color: var(--blue-dark); font-weight: 700; display: inline-flex; align-items: center; gap: .15rem; }
.fc-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .16s ease, box-shadow .2s ease, transform .2s var(--ease); }
.fc-row:hover { border-color: #bfe0f4; box-shadow: var(--shadow); transform: translateX(3px); }
html[data-motion="on"] .fc-row { animation: hxRow .32s var(--ease) backwards; }
html[data-motion="on"] .fc-row:nth-child(2) { animation-delay: .04s; } html[data-motion="on"] .fc-row:nth-child(3) { animation-delay: .08s; }
html[data-motion="on"] .fc-row:nth-child(4) { animation-delay: .12s; } html[data-motion="on"] .fc-row:nth-child(n+5) { animation-delay: .16s; }
.fc-row-acts { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.fc-dim { font-size: .8rem; color: var(--muted); }
.fc-head { margin: 3.4rem auto 1.6rem; }
.fc-cans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fc-can { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.2rem; box-shadow: var(--shadow); transition: transform .28s var(--ease), box-shadow .28s ease; }
.fc-can:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); }
.fc-can-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(140deg, var(--blue), var(--sky)); color: #fff; margin-bottom: .8rem; box-shadow: 0 8px 20px rgba(0,140,214,.26); transition: transform .45s var(--ease-spring); }
.fc-can:hover .fc-can-ic { transform: rotate(-8deg) scale(1.08); }
.fc-can-ic .gic { width: 1.35rem; height: 1.35rem; }
.fc-can h3 { font-family: var(--serif); font-size: 1.06rem; margin: 0 0 .35rem; }
.fc-can p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.75; }
.fc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; position: relative; }
.fc-steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 34px; border-top: 2px dashed var(--line-strong); }
.fc-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; }
.fc-step-n { position: absolute; top: -12px; right: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .84rem; color: #1c1503; background: var(--gold); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(232,162,0,.4); }
.fc-step-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.fc-step-ic .gic { width: 1.25rem; height: 1.25rem; }
.fc-step h3 { font-family: var(--serif); font-size: 1.04rem; margin: 0 0 .25rem; }
.fc-step p { margin: 0; font-size: .87rem; color: var(--muted); line-height: 1.75; }
.fc-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fc-rule { display: flex; gap: .9rem; align-items: flex-start; background: linear-gradient(140deg, #0b1b33, #12315c); color: #fff; border-radius: 16px; padding: 1.3rem 1.2rem; box-shadow: 0 12px 32px rgba(11,27,51,.22); transition: transform .28s var(--ease); }
.fc-rule:hover { transform: translateY(-4px); }
.fc-rule-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(232,162,0,.18); color: #ffd978; }
.fc-rule-ic .gic { width: 1.25rem; height: 1.25rem; }
.fc-rule h3 { font-family: var(--serif); font-size: 1.04rem; margin: .1rem 0 .4rem; }
.fc-rule p { margin: 0; font-size: .87rem; line-height: 1.8; color: rgba(255,255,255,.8); }
.fc-faq { display: grid; gap: .6rem; max-width: 860px; margin: 0 auto; }
.fc-q { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.fc-q[open] { border-color: #bfe0f4; box-shadow: var(--shadow); }
.fc-q summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; list-style: none; }
.fc-q summary::-webkit-details-marker { display: none; }
.fc-q summary .gic { flex: none; width: 1.1rem; height: 1.1rem; color: var(--blue); transition: transform .28s var(--ease); }
.fc-q[open] summary .gic { transform: rotate(180deg); }
.fc-q p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: .93rem; line-height: 1.85; }
html[data-motion="on"] .fc-q[open] p { animation: hxUp .3s var(--ease) backwards; }
.fc-end { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; margin-top: 3.2rem; color: #fff; border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.4rem); background: radial-gradient(520px 260px at 92% 0%, rgba(232,162,0,.26), transparent 70%), linear-gradient(120deg, #0b1b33, #12315c 62%, #0b5a8f 130%); box-shadow: 0 18px 46px rgba(11,27,51,.28); }
.fc-end h2 { font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.7rem); margin: 0 0 .4rem; }
.fc-end p { margin: 0 0 1.2rem; color: rgba(255,255,255,.82); }
.fc-end .btn-gold { background: linear-gradient(135deg, #f5b21a, #e8a200); color: #1c1503; box-shadow: 0 8px 24px rgba(232,162,0,.42); }
.fc-end-side { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; padding-left: 1.4rem; border-left: 1px solid rgba(255,255,255,.18); }
.fc-end-side b { font-size: .95rem; }

/* ═══════════ 15. 公司頁：認領邀請與「資料有誤」 ═══════════ */
.own-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; margin-top: 1.6rem; padding: 1.2rem 1.3rem; border-radius: 18px; color: #fff; background: radial-gradient(420px 200px at 100% 0%, rgba(232,162,0,.26), transparent 70%), linear-gradient(120deg, #0b1b33, #12315c 70%, #0b5a8f 140%); box-shadow: 0 12px 34px rgba(11,27,51,.22); }
.own-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgba(232,162,0,.2); color: #ffd978; }
.own-ic .gic { width: 1.5rem; height: 1.5rem; }
.own-txt b { font-family: var(--serif); font-size: 1.15rem; }
.own-txt p { margin: .25rem 0 0; font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.82); }
.own-acts { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.own-bar .btn-gold { background: linear-gradient(135deg, #f5b21a, #e8a200); color: #1c1503; box-shadow: 0 8px 22px rgba(232,162,0,.4); }
.own-links { display: inline-flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: flex-end; font-size: .82rem; }
.own-links a { display: inline-flex; align-items: center; gap: .2rem; color: rgba(255,255,255,.82); }
.own-links a:hover { color: #fff; text-decoration: underline; }
.own-links .gic { width: .95em; height: .95em; }
.own-min { margin: 1.2rem 0 2rem; text-align: right; font-size: .85rem; }
.own-bar { margin-bottom: 2.4rem; }
.own-min .own-fix { display: inline-flex; align-items: center; gap: .3rem; color: var(--blue-dark); font-weight: 700; }
.own-min .own-fix:hover { text-decoration: underline; }
.own-min .gic { width: 1em; height: 1em; }

@media (max-width: 960px) {
  .ct-layout { grid-template-columns: minmax(0, 1fr); }
  .ct-side { position: static; }
  .fc-cans, .fc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-steps::before { display: none; }
  .fc-rules { grid-template-columns: minmax(0, 1fr); }
  .fc-end { grid-template-columns: minmax(0, 1fr); }
  .fc-end-side { padding: 1.1rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
}
@media (max-width: 760px) {
  .ctk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctk:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ct-form .sub-actions .btn { width: 100%; }
  .fc-find { margin-top: -1.1rem; border-radius: 16px; }
  .fc-row { grid-template-columns: 34px minmax(0, 1fr); }
  .fc-row-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .fc-cans { grid-template-columns: minmax(0, 1fr); }
  .fc-steps { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .fc-step { flex-direction: row; align-items: flex-start; }
  .fc-step-ic { flex: none; }
  .fc-head { margin-top: 2.6rem; }
  .fc-nums { gap: .5rem 1.6rem; }
  .own-bar { grid-template-columns: auto minmax(0, 1fr); }
  .own-acts { grid-column: 1 / -1; align-items: stretch; }
  .own-acts .btn { width: 100%; }
  .own-links { justify-content: space-between; }
}

/* ═══════════ 16. 後台：聯絡訊息 ═══════════ */
.bk-ct + .bk-ct { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.bk-ct-who { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .5rem 0; font-size: .9rem; color: var(--ink-soft); }
.bk-ct-who span { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.bk-ct-who .gic { width: 1em; height: 1em; color: var(--muted); flex: none; }
.bk-ct-who a { color: var(--blue-dark); font-weight: 600; }
.bk-ct-who a:hover { text-decoration: underline; }
.bk-ct-msg { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .8rem .95rem; margin: .4rem 0 .7rem; line-height: 1.8; font-size: .93rem; max-height: 22rem; overflow-y: auto; }
.bk-ct-note { display: flex; align-items: center; gap: .35rem; margin: 0 0 .6rem; }
.bk-ct-note .gic { width: 1em; height: 1em; color: var(--green); }

/* ═══════════ 17. 內頁頁首統一成深色（排行榜、比較、投稿、認領、評分方式、商城、討論區） ═══════════ */
.hero, .store-hero, .community-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #081528 0%, #0d2444 52%, #0b4f85 140%); border-bottom: 0; isolation: isolate; }
.hero::before, .store-hero::before, .community-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 300px at 6% -30%, rgba(0,140,214,.55), transparent 70%), radial-gradient(480px 300px at 98% 0%, rgba(53,196,255,.24), transparent 70%); }
.hero::after, .store-hero::after, .community-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 30%, transparent 80%); }
.hero h1 { color: #fff; max-width: 32ch; }
.hero h1 .accent { color: var(--sky); }
.hero .hero-sub { color: rgba(255,255,255,.84); }
.hero .hero-sub b { color: #fff; }
.hero .eyebrow, .store-hero .eyebrow, .community-hero .eyebrow { color: #9fdcff; }
.hero .cb-lab { color: rgba(255,255,255,.78); }
.hero .cb-lab b { color: #fff; }
.hero .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.34); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.8); color: #fff; }
.hero .cb-flag { box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
html[data-motion="on"] .hero > .container > *, html[data-motion="on"] .store-hero > .container > *, html[data-motion="on"] .community-hero > .container > * { animation: hxUp .55s var(--ease) backwards; }
html[data-motion="on"] .hero > .container > :nth-child(2), html[data-motion="on"] .store-hero > .container > :nth-child(2), html[data-motion="on"] .community-hero > .container > :nth-child(2) { animation-delay: .07s; }
html[data-motion="on"] .hero > .container > :nth-child(3), html[data-motion="on"] .store-hero > .container > :nth-child(3), html[data-motion="on"] .community-hero > .container > :nth-child(3) { animation-delay: .14s; }
html[data-motion="on"] .hero > .container > :nth-child(n+4) { animation-delay: .2s; }

/* 排行榜：分數下面一條長度對應分數的細條，一眼看出差距 */
.score-bar { display: block; width: 56px; height: 4px; margin: .38rem auto 0; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: inherit; }
.board-row { transition: background .15s ease, transform .2s var(--ease); }
.board-row:not(.head):hover { transform: translateX(3px); }
.board-row.head { background: linear-gradient(90deg, #0b1b33, #12315c); }
.board-row.head:hover { background: linear-gradient(90deg, #0b1b33, #12315c); transform: none; }
/* 長清單的列：進場快一點（一整排慢慢淡入會拖住閱讀） */
html[data-motion="on"] .lb-row.mo, html[data-motion="on"] .board-row.mo { transition-duration: .4s; }
.board-toolbar .input, .board-toolbar .select { transition: border-color .16s ease, box-shadow .16s ease; }
.search-wrap .input:focus { box-shadow: 0 0 0 4px var(--blue-soft); outline: 0; }

/* 金直獎頁首：同一套深色，獎盃用金色 */
.awards-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #081528 0%, #0d2444 52%, #0b4f85 140%); border-radius: 20px; box-shadow: 0 16px 44px rgba(11,27,51,.26); }
.awards-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 240px at 50% -10%, rgba(232,162,0,.34), transparent 70%); }
.awards-hero .trophy { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: rgba(232,162,0,.18); color: #ffd978; margin-bottom: .5rem; }
.awards-hero .trophy .gic { width: 2rem; height: 2rem; }
html[data-motion="on"] .awards-hero .trophy { animation: hxBob 4.5s ease-in-out infinite; }
.mvp-hero { border-top: 1px solid rgba(255,255,255,.08); }

/* ═══════════ 18. 空白狀態：加上圖示與底框，不再只是一行灰字 ═══════════ */
div.empty:not(.cmp-chip):not(.cmp-say-card) { color: var(--muted); line-height: 1.8; }
.empty:not(.sm):not(.cmp-chip):not(.cmp-say-card)::before { content: ''; display: block; width: 58px; height: 58px; margin: 0 auto .85rem; border-radius: 18px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008cd6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center / 28px no-repeat; }
html[data-motion="on"] .empty:not(.sm):not(.cmp-chip):not(.cmp-say-card)::before { animation: hxBob 4.5s ease-in-out infinite; }
td .empty::before, .bk-main .empty::before, li.empty::before { display: none !important; }
.container > .empty, .section .container > .empty { background: #fff; border: 1px dashed var(--line-strong); border-radius: 18px; padding: 2.6rem 1.2rem; }

/* ═══════════ 19. 導覽列放不下時自動收成選單（html.nav-collapsed，由 app.js 的 fitNav 量出來） ═══════════
   規則與窄螢幕的手機選單相同；用在「視窗夠寬、但這個語言或登入狀態下橫排仍然放不下」的情況。 */
.brand { flex-shrink: 0; }
.brand-text em { white-space: nowrap; }
/* 精簡版橫排（html.nav-compact）：先拿掉品牌副標、國家與語言只留圖示、字與間距縮小；還是放不下才收成選單 */
html.nav-compact .brand-text em { display: none; }
html.nav-compact .site-nav { gap: .72rem; }
html.nav-compact .site-nav a, html.nav-compact .nav-group-btn { font-size: .88rem; }
html.nav-compact .site-nav a.nav-cta { padding: .38em .85em; }
html.nav-compact .lang-switch { gap: .3rem; }
html.nav-compact .lang-switch .dd-btn .dd-label { display: none; }
html.nav-compact .lang-switch .dd-btn { padding: .35rem .5rem; }
html.nav-compact .auth-slot { gap: .4rem; }
html.nav-compact .auth-slot .btn { padding: .42em .75em; font-size: .84rem; }
html.nav-compact .header-inner { gap: 1rem; }
html.nav-collapsed .nav-toggle { display: flex; }
html.nav-collapsed .brand-text em { display: block; }
html.nav-collapsed .site-nav { position: fixed; inset: 67px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 1rem 6vw 1.6rem; gap: .2rem; margin: 0; border: 0; border-bottom: 1px solid var(--line);
  transform: translateY(-130%); transition: .25s; box-shadow: var(--shadow-lg); max-height: calc(100vh - 67px); overflow-y: auto; }
html.nav-collapsed .site-nav.open { transform: translateY(0); }
html.nav-collapsed .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
html.nav-collapsed .site-nav a.active::after { display: none; }
html.nav-collapsed .site-nav > a:not(.nav-cta)::before { display: none; }
html.nav-collapsed .site-nav a.nav-cta { margin-top: .9rem; padding: .85rem 1rem; text-align: center; border-bottom: 0; border-radius: 12px; font-size: 1rem; }
html.nav-collapsed .lang-switch { padding: .8rem 0 .2rem; gap: .5rem; flex-wrap: wrap; }
html.nav-collapsed .lang-switch .dd { flex: 1; min-width: 130px; }
html.nav-collapsed .lang-switch .dd-btn { width: 100%; justify-content: flex-start; padding: .45rem .7rem; }
html.nav-collapsed .lang-switch .dd-btn .dd-label, html.nav-collapsed .lang-switch #ddCountry .dd-label, html.nav-collapsed .lang-switch #ddLang .dd-label { display: inline; }
html.nav-collapsed .lang-switch .dd-menu { left: 0; right: auto; width: 100%; }
html.nav-collapsed .auth-slot { margin: .6rem 0 0; padding: .6rem 0 0; border-top: 1px solid var(--line); }
html.nav-collapsed .nav-group { display: block; }
html.nav-collapsed .nav-group.active::after { display: none; }
html.nav-collapsed .nav-group-menu, html.nav-collapsed .nav-group.open .nav-group-menu { display: block; position: static; transform: none; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0; animation: none; }
html.nav-collapsed .nav-group-menu a { padding: .8rem 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
html.nav-collapsed .nav-group-menu a:hover { background: none; padding-left: 0; }
html.nav-collapsed body.nav-open .hotline-fab, html.nav-collapsed body.nav-open .to-top, html.nav-collapsed body.nav-open .cmp-tray { opacity: 0; pointer-events: none; }
html.nav-collapsed body.nav-open { overflow: hidden; }
html[data-motion="on"].nav-collapsed .site-nav.open > * { animation: navItem .34s var(--ease) backwards; }

/* 選單裡的群組（榮譽榜／媒體／社群）：按鈕改成小標題，看得出哪幾項是同一類 */
@media (max-width: 1024px) {
  .nav-group-btn { display: flex; pointer-events: none; padding: 1rem 0 .15rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
  .nav-group-btn .nav-caret { display: none; }
}
html.nav-collapsed .nav-group-btn { display: flex; pointer-events: none; padding: 1rem 0 .15rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
html.nav-collapsed .nav-group-btn .nav-caret { display: none; }

/* ═══════════ 20. 英文介面的字級微調（英文句子比中文長） ═══════════ */
html[lang="en"] .hx h1 { font-size: clamp(1.7rem, 3.9vw, 2.75rem); line-height: 1.2; }
html[lang="en"] .hx-sub { font-size: clamp(.96rem, 1.35vw, 1.05rem); line-height: 1.75; }
html[lang="en"] .aud-card h3 { font-size: clamp(1.15rem, 2.1vw, 1.4rem); }
html[lang="en"] .hx-stat em, html[lang="en"] .ck em { font-size: .76rem; }
html[lang="en"] .hbar-row { grid-template-columns: minmax(5.5em, 7.5em) minmax(0, 1fr) auto; }
html[lang="en"] .eyebrow { letter-spacing: .16em; }

/* 「社群 ▾」底下的點數商城有可領取的點數時，群組按鈕也亮一個小點（下拉沒打開也看得到） */
.nav-group-btn.has-dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #e0464e; margin-left: .1rem; align-self: flex-start; }

/* 後台聯絡訊息：勾選與批次處理列 */
.bk-ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 .7rem; padding: .55rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; position: sticky; top: 8px; z-index: 5; box-shadow: var(--shadow); }
.bk-ct-bulk { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.bk-ct-pick { display: inline-flex; align-items: center; cursor: pointer; padding: .2rem; }
.bk-ct-pick input, .bk-ct-bar input[type="checkbox"] { width: 1.05rem; height: 1.05rem; cursor: pointer; }
/* 示範國家的標籤放在深色主視覺上 */
.hx-demo { margin-left: .4rem; vertical-align: middle; }

/* ═══════════ 21. 插圖（art.js 的原創向量圖） ═══════════
   顏色集中在這裡：f＝填色、s＝線條。深色區塊（公司入口卡、公司專區橫幅）換一組較亮的配色。 */
.art { display: block; width: 120px; height: 96px; overflow: visible; }
.art.lg { width: 168px; height: 134px; }
.art.xl { width: 220px; height: 176px; }
.art .f0 { fill: rgba(11,27,51,.08); }
.art .f1 { fill: var(--blue); }
.art .f2 { fill: var(--sky); }
.art .f3 { fill: var(--gold); }
.art .f4 { fill: var(--navy); }
.art .f6 { fill: #d9e3ee; }
.art .fw { fill: #fff; }
.art .s1 { stroke: var(--blue); }
.art .s2 { stroke: var(--sky); }
.art .s3 { stroke: var(--gold); }
.art .s4 { stroke: var(--navy); }
.art .s6 { stroke: #dfe8f1; }
.art .sw { stroke: #fff; }
.art .so { stroke: rgba(255,255,255,.16); stroke-width: 1.2; }
.art .o85 { opacity: .85; } .art .o55 { opacity: .55; }
.art .sh { filter: drop-shadow(0 6px 10px rgba(11,27,51,.14)); }
.art .art-draw { stroke-dasharray: 100; }
/* 深色底：陰影收掉、深藍改成淺藍，才看得見 */
.on-dark .art .f0 { fill: rgba(255,255,255,.1); }
.on-dark .art .f4 { fill: #0b1b33; }
.on-dark .art .s4 { stroke: #cfe9fb; }
.on-dark .art .f6 { fill: #c9d8e8; }
/* 會動的部分 */
.art .art-float, .art .art-pop, .art .art-fly, .art .art-needle, .art .art-stars path { transform-box: fill-box; transform-origin: center; }
.art .art-needle { transform-origin: 8% 92%; }
html[data-motion="on"] .art .art-float { animation: artFloat 4.6s ease-in-out infinite; }
html[data-motion="on"] .art .art-pop { animation: artPop 3.2s var(--ease-spring) infinite; }
html[data-motion="on"] .art .art-fly { animation: artFly 5s ease-in-out infinite; }
html[data-motion="on"] .art .art-dash { animation: artDash 1.4s linear infinite; }
html[data-motion="on"] .art .art-needle { animation: artNeedle 5s var(--ease) infinite; }
html[data-motion="on"] .art .art-stars path { animation: artStar 3.6s var(--ease-spring) infinite; }
html[data-motion="on"] .art .art-stars > g:nth-child(2) path { animation-delay: .12s; }
html[data-motion="on"] .art .art-stars > g:nth-child(3) path { animation-delay: .24s; }
html[data-motion="on"] .art .art-stars > g:nth-child(4) path { animation-delay: .36s; }
html[data-motion="on"] .art.in .art-draw { animation: artDraw 1.6s var(--ease) .2s backwards; }
@keyframes artFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes artPop { 0%, 78%, 100% { transform: scale(1); } 86% { transform: scale(1.16); } }
@keyframes artFly { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(5px, -7px) rotate(-4deg); } }
@keyframes artDash { to { stroke-dashoffset: -17; } }
@keyframes artNeedle { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-38deg); } 62% { transform: rotate(6deg); } }
@keyframes artStar { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.35); } }
@keyframes artDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes artSpin { to { transform: rotate(360deg); } }
/* 天平的橫桿：以支點為中心輕輕擺動（transform-origin 用圖的座標，支點在 60,24） */
.art .art-tilt { transform-origin: 60px 24px; }
html[data-motion="on"] .art .art-tilt { animation: artTilt 5.5s ease-in-out infinite; }
@keyframes artTilt { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
/* 主視覺背景的軌道圖 */
.art-orbit { width: min(620px, 78vw); height: auto; aspect-ratio: 1; }
.art-orbit .art-spin { transform-origin: 200px 200px; }
html[data-motion="on"] .art-orbit .art-spin { animation: artSpin 70s linear infinite; }
html[data-motion="on"] .art-orbit .art-spin.rev { animation-duration: 54s; animation-direction: reverse; }
html[data-motion="on"] .art-orbit .art-spin.slow { animation-duration: 38s; }

/* ═══════════ 22. v91：頒獎台、收錄公司 logo 牆、插圖的擺位 ═══════════ */

/* ── 首頁主視覺背景的軌道圖：放在右側榜單卡片後面，很淡 ── */
.hx-orbit { position: absolute; right: -7%; top: 50%; transform: translateY(-50%); opacity: .9; }
@media (max-width: 960px) { .hx-orbit { right: -36%; top: 4%; transform: none; opacity: .55; } }

/* ── 前三名頒獎台（第 2 名在左、第 1 名在中間最高、第 3 名在右） ──
   class 一律用 pod- 開頭：「pd-」是商品詳情頁的前綴（那邊的 .pd-top 是兩欄格線），撞名會把頒獎台撐寬、在平板寬度出現橫向捲軸 */
.podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr); align-items: end; gap: clamp(.45rem, 2vw, 1.3rem); max-width: 820px; margin: 2.6rem auto 1.5rem; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; color: var(--ink); text-decoration: none; }
.pod.p1 { --pod-ring: #f2b61f; --pod-a: #ffd45a; --pod-b: #e09a00; }
.pod.p2 { --pod-ring: #b3c0cf; --pod-a: #dfe6ee; --pod-b: #9fadbd; }
.pod.p3 { --pod-ring: #d99a66; --pod-a: #efbf95; --pod-b: #c07f48; }
.pod-top { position: relative; display: grid; place-items: center; transition: transform .4s var(--ease-spring); }
.pod:hover .pod-top { transform: translateY(-6px); }
.pod .co-logo2.big { width: clamp(54px, 15vw, 88px); height: clamp(54px, 15vw, 88px); border-radius: 22%; font-size: clamp(1rem, 4vw, 1.6rem); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--pod-ring), 0 12px 26px rgba(11,27,51,.16); }
.pod.p1 .co-logo2.big { width: clamp(64px, 18vw, 108px); height: clamp(64px, 18vw, 108px); }
.pod-crown { position: absolute; left: 50%; top: 0; z-index: 1; transform: translate(-50%, -78%); display: grid; place-items: center; width: clamp(26px, 6vw, 36px); height: clamp(26px, 6vw, 36px); border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ffcf4a, #e09a00); box-shadow: 0 6px 14px rgba(224,154,0,.45); }
.pod-crown .gic { width: 58%; height: 58%; }
.pod-name { display: block; max-width: 100%; margin-top: .7rem; font-size: clamp(.82rem, 2.4vw, 1.08rem); font-weight: 800; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.pod:hover .pod-name { color: var(--blue-dark); }
.pod-score { font-family: var(--serif); font-size: clamp(1.25rem, 4.6vw, 2.1rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pod-meta { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .1rem .5rem; min-height: 1.3rem; font-size: .78rem; color: var(--muted); }
.pod-stars { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; color: var(--ink-soft); }
.pod-base { position: relative; display: grid; place-items: start center; width: 100%; margin-top: .55rem; padding-top: clamp(.35rem, 1.4vw, .7rem); border-radius: 14px 14px 0 0; overflow: hidden; color: #fff; background: linear-gradient(180deg, var(--pod-a), var(--pod-b)); box-shadow: inset 0 2px 0 rgba(255,255,255,.45); transform-origin: center bottom; }
.pod-base i { font-style: normal; font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 4.4vw, 2.2rem); line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,.18); }
.pod.p1 .pod-base { height: clamp(84px, 17vw, 128px); }
.pod.p2 .pod-base { height: clamp(60px, 12.5vw, 94px); }
.pod.p3 .pod-base { height: clamp(44px, 9.5vw, 70px); }
.pod.p1 .pod-base::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-120%); }
/* 進場：台座依第 3、2、1 名的順序升起，接著 logo 與分數落下，最後皇冠彈出來。
   掛在 .mo-seen（motion.js 進場時加上、不會收掉）：這一串比 0.9 秒的收尾長，掛在 .mo-in 會被切斷 */
html[data-motion="on"] .podium.mo-seen .pod-base { animation: podRise .75s var(--ease) backwards; }
html[data-motion="on"] .podium.mo-seen .pod > :not(.pod-base) { animation: podDrop .6s var(--ease-spring) backwards; }
html[data-motion="on"] .podium.mo-seen .pod.p3 .pod-base { animation-delay: .1s; }
html[data-motion="on"] .podium.mo-seen .pod.p3 > :not(.pod-base) { animation-delay: .4s; }
html[data-motion="on"] .podium.mo-seen .pod.p2 .pod-base { animation-delay: .3s; }
html[data-motion="on"] .podium.mo-seen .pod.p2 > :not(.pod-base) { animation-delay: .6s; }
html[data-motion="on"] .podium.mo-seen .pod.p1 .pod-base { animation-delay: .5s; }
html[data-motion="on"] .podium.mo-seen .pod.p1 > :not(.pod-base) { animation-delay: .85s; }
html[data-motion="on"] .podium.mo-seen .pod-crown { animation: podCrownIn .7s var(--ease-spring) 1.4s backwards, podCrownBob 3.6s ease-in-out 2.2s infinite; }
html[data-motion="on"] .pod.p1 .pod-base::after { animation: podShine 4.8s ease-in-out 2s infinite; }
@keyframes podRise { from { transform: scaleY(0); } to { transform: none; } }
@keyframes podDrop { from { opacity: 0; transform: translateY(-16px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes podCrownIn { from { opacity: 0; transform: translate(-50%, -170%) scale(.4) rotate(-30deg); } to { opacity: 1; transform: translate(-50%, -78%); } }
@keyframes podCrownBob { 0%, 100% { transform: translate(-50%, -78%); } 50% { transform: translate(-50%, -94%); } }
@keyframes podShine { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (max-width: 420px) { .pod-meta { font-size: .72rem; gap: 0 .35rem; } .podium { margin-top: 2.3rem; } }

/* ── 收錄公司的 logo 牆：兩排反方向慢慢移動；滑鼠移上去或鍵盤停在上面就暫停 ──
   沒開動態效果（或 motion.js 沒載入）時是一排可以左右滑的清單，重複的那一份不顯示 */
.lw { padding: 1.3rem 0 1.45rem; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.lw-title { margin: 0 0 .85rem; padding: 0 1rem; text-align: center; font-size: .84rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.lw-title b { color: var(--blue-dark); font-size: 1.12em; font-variant-numeric: tabular-nums; }
.lw-row { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lw-row::-webkit-scrollbar { display: none; }
.lw-row + .lw-row { margin-top: .55rem; }
.lw-track { display: flex; width: max-content; padding: .25rem 0 .25rem .65rem; }
.lw-item { display: inline-flex; align-items: center; gap: .5rem; flex: none; margin-right: .65rem; padding: .3rem .9rem .3rem .34rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: .84rem; font-weight: 700; white-space: nowrap; text-decoration: none; transition: border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .25s var(--ease-spring); }
.lw-item .co-logo2.sm { width: 30px; height: 30px; border-radius: 50%; }
.lw-item:hover, .lw-item:focus-visible { border-color: var(--blue); color: var(--blue-dark); box-shadow: 0 6px 16px rgba(0,140,214,.18); transform: translateY(-2px); }
html:not([data-motion="on"]) .lw-dup { display: none; }
html[data-motion="on"] .lw-row { overflow: hidden; }
html[data-motion="on"] .lw-track { padding-left: 0; animation: lwScroll var(--lw-dur, 120s) linear infinite; will-change: transform; }
html[data-motion="on"] .lw-row.b .lw-track { animation-direction: reverse; }
html[data-motion="on"] .lw:hover .lw-track, html[data-motion="on"] .lw:focus-within .lw-track { animation-play-state: paused; }
@keyframes lwScroll { to { transform: translateX(-50%); } }

/* ── 兩種訪客入口卡片的插圖：靠右浮動，標題文字自然繞過 ── */
.aud-art { float: right; margin: -.5rem -.4rem .3rem .8rem; pointer-events: none; transition: transform .5s var(--ease-spring); }
.aud-art .art.lg { width: 150px; height: 120px; }
.aud-card:hover .aud-art { transform: translateY(-5px) rotate(3deg); }
.aud-card ul { clear: right; }
@media (max-width: 480px) { .aud-art { margin: -.3rem -.2rem .2rem .6rem; } .aud-art .art.lg { width: 104px; height: 83px; } }

/* ── 區塊標題上方的小插圖（首頁「與我們聯繫」） ── */
.sh-art { display: block; width: fit-content; margin: 0 auto .35rem; }
.sh-art .art { width: 110px; height: 88px; }

/* ── 內頁頁首的插圖：靠右浮動（放在容器最前面），手機縮小、桌機放大；文字放不下時自然繞過 ── */
.ph-art { float: right; margin: -.4rem 0 .4rem 1.2rem; pointer-events: none; }
.ph-art .art.xl { width: clamp(92px, 21vw, 220px); height: auto; aspect-ratio: 120 / 96; }
.hero.has-art > .container::after, .store-hero.has-art > .container::after, .community-hero.has-art > .container::after, .ph.has-art > .ph-in::after { content: ''; display: block; clear: both; }
html[data-motion="on"] .ph-in > .ph-art, html[data-motion="on"] .hero > .container > .ph-art,
html[data-motion="on"] .store-hero > .container > .ph-art, html[data-motion="on"] .community-hero > .container > .ph-art { animation: artIn .8s var(--ease-spring) .18s backwards; }
@keyframes artIn { from { opacity: 0; transform: translateY(14px) scale(.82) rotate(6deg); } to { opacity: 1; transform: none; } }
/* 頁首裡的插圖一出現就把線畫出來（它不在「捲到才出現」的元件裡） */
html[data-motion="on"] .ph-art .art-draw, html[data-motion="on"] .mo-seen .art .art-draw { animation: artDraw 1.6s var(--ease) .35s backwards; }

/* ── 空白狀態：有插圖時不再顯示原本的方塊圖示 ── */
.empty.has-art:not(.sm):not(.cmp-chip):not(.cmp-say-card)::before { content: none; }
.empty.has-art .art { margin: 0 auto .7rem; }
.empty.has-art .empty-txt > :last-child { margin-bottom: 0; }

/* ═══════════ 23. v91：各種螢幕寬度的修正（scripts/dev/rwd-audit.js 逐頁逐寬度量出來的） ═══════════
   自動排欄的格線已全部改成 minmax(min(Npx, 100%), 1fr)：容器比 N 還窄時（320px 的手機）卡片不再被撐出畫面。 */
/* 手指點得到：頁尾連結、麵包屑、首頁跑馬燈的連結原本只有 21–23px 高 */
.live-track a { padding: .32rem 0; }
.crumbs a, .breadcrumb a { display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 760px) {
  .footer-cols a { padding: .34rem 0; margin-bottom: .1rem; }
  .crumbs a, .breadcrumb a { min-height: 32px; }
}
/* 太小的字：比較頁的「可調整／固定」標籤原本約 10px */
.cmp-tag { font-size: .7rem; padding: .08rem .45rem; }

/* ═══════════ 24. v91：分數級距對照、主視覺跟著滑鼠的光暈 ═══════════ */
/* 五段等寬的色帶＋文字；門檻與 app.js 的 SCORE_BANDS 同一組（55／65／75／85）。
   變化用 .sband-mini／.sband-wide（不能叫 .mini：那是首頁小卡的 class，會把色帶排成三欄）。
   有傳分數：所屬那一段全亮、其餘變淡，圓點標出位置；沒傳分數（.sband-wide 圖例）：五段都亮 */
.sband { width: 100%; }
.sband-bar { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; height: 8px; }
.sband-bar i { border-radius: 2px; opacity: .3; }
.sband-bar i:first-child { border-radius: 999px 2px 2px 999px; }
.sband-bar i:nth-child(5) { border-radius: 2px 999px 999px 2px; }
.sband-bar i.on, .sband.sband-wide .sband-bar i { opacity: 1; }
.sband-pin { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 6px rgba(11,27,51,.3); }
.sband-lab { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin-top: .32rem; }
.sband-lab span { display: flex; flex-direction: column; align-items: center; min-width: 0; font-size: .68rem; line-height: 1.3; color: var(--muted-2); text-align: center; }
.sband-lab b { font-weight: 700; white-space: nowrap; }
.sband-lab em { font-style: normal; font-size: .66rem; font-variant-numeric: tabular-nums; }
.sband-lab span.on { color: var(--ink); }
.sband-lab span.on b { font-weight: 800; }
.sband.sband-mini { width: 236px; max-width: 100%; margin-top: .3rem; padding-top: .6rem; border-top: 1px dashed var(--line-strong); }
.sband.sband-wide { max-width: 600px; }
.sband.sband-wide .sband-bar { height: 12px; gap: 3px; }
.sband.sband-wide .sband-lab { gap: 3px; margin-top: .45rem; }
.sband.sband-wide .sband-lab span { font-size: .86rem; color: var(--ink-soft); }
.sband.sband-wide .sband-lab em { font-size: .76rem; color: var(--muted); }
html[lang="en"] .sband-lab b { white-space: normal; }
html[data-motion="on"] .mo-seen .sband-pin { animation: sbandPin 1s var(--ease) .45s backwards; }
@keyframes sbandPin { from { left: 1.5%; opacity: 0; } }
@media (max-width: 420px) { .sband.sband-wide .sband-lab span { font-size: .76rem; } .sband.sband-wide .sband-lab em { font-size: .68rem; } }
/* 排行榜上方的一行圖例 */
.band-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: 0 0 1rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .8rem; color: var(--ink-soft); }
.bl-t { font-weight: 800; color: var(--ink); }
.bl-i { display: inline-flex; align-items: center; gap: .32rem; white-space: nowrap; }
.bl-i i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bl-i em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.band-legend a { margin-left: auto; display: inline-flex; align-items: center; gap: .15rem; min-height: 30px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.band-legend a:hover { color: var(--blue-dark); }
.band-legend a .gic { width: 1em; height: 1em; }
.band-note { background: #fff; }
.pod-cat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 主視覺：光暈跟著滑鼠（位置由 app.js 的 heroPointer 寫進 --mx／--my）；右側榜單卡片朝滑鼠微微傾斜。
   傾斜只在滑鼠停在主視覺上時才套用 transform——平常不套，卡片就不會自成一層 */
.hx-bg::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; background: radial-gradient(460px circle at var(--mx, 70%) var(--my, 30%), rgba(53,196,255,.2), transparent 62%); }
html[data-motion="on"] .hx.lit .hx-bg::after { opacity: 1; }
.hx-card { transition: transform .35s ease-out; }
html[data-motion="on"] .hx.lit .hx-card { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
/* 分數環下方：評價數少的提示、通往評分方式的連結（方法說明要放在分數旁邊，不是藏在頁尾） */
.sc-few { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .74rem; font-weight: 700; color: #8a5a00; background: var(--gold-soft); border: 1px solid #ecd9a8; border-radius: 999px; padding: .12rem .6rem; }
.sc-few .gic { width: 1em; height: 1em; flex: none; }
.sc-how { display: inline-flex; align-items: center; gap: .1rem; min-height: 28px; margin-top: .1rem; font-size: .78rem; font-weight: 700; color: var(--blue); }
.sc-how:hover { color: var(--blue-dark); }
.sc-how .gic { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.sc-how:hover .gic { transform: translateX(3px); }
/* 登入後才看得到的兩處（測試資料站量出來的）：個人頁分頁上的數字在手機約 9.8px；評價底下的「回覆／檢舉」按鈕高度只有一行字 */
@media (max-width: 768px) { .co-tab .tcount { font-size: .7rem; } }   /* 用 rem：分頁本身的字在 320px 更小，用 em 會跟著縮到 10px 以下 */
.r-act { min-height: 30px; padding: .2rem .15rem; }
/* 很窄的手機＋較長的文字（英文介面）：按鈕的字可以換行，不把按鈕撐出卡片（原本一律不換行，320px 上英文的「登入公司後台」會超出去） */
@media (max-width: 480px) { body:not(.console-mode) #app .btn { max-width: 100%; white-space: normal; text-align: center; } }

/* ═══════════ 25. v92：公司頁最上面的主視覺 ═══════════
   站方的要求：放和這家公司有關的圖片，絕對不要把 logo 拉大當橫幅。
   - 有照片（.has-photo）：照片要看得見——原本上面蓋著 76% 的品牌色，幾乎看不到圖；改成只在下半部加深，讓白字讀得到。
   - 沒有照片（.no-photo）：品牌色漸層＋細格線＋慢慢轉的軌道圖（art.js 的 orbit），是設計過的底圖，不是放大的 logo。 */
/* 有照片時橫幅高一點（跟著寬度變），照片被上下裁掉的部分才不會太多 */
.co-hero-full.has-photo { min-height: clamp(300px, 34vw, 520px); }
.co-hero-full.has-photo::before { background: linear-gradient(180deg, rgba(8,16,28,.28) 0%, rgba(8,16,28,.18) 38%, rgba(8,16,28,.72) 100%); opacity: 1; }
.co-hero-full.has-photo::after { background: radial-gradient(120% 90% at 50% 40%, transparent 46%, rgba(8,16,28,.34)); }
.co-hero-full.has-photo .cohf-inner h1 { text-shadow: 0 3px 26px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.5); }
.co-hero-full.has-photo .cohf-inner p { text-shadow: 0 2px 14px rgba(0,0,0,.75); }
html[data-motion="on"] .co-hero-full.has-photo { animation: cohfZoom 14s ease-out backwards; }
@keyframes cohfZoom { from { background-size: 108% auto, auto; } }
.co-hero-full.no-photo { min-height: clamp(220px, 30vh, 340px); background: radial-gradient(520px 300px at 12% -10%, rgba(255,255,255,.16), transparent 70%), linear-gradient(135deg, var(--bc, var(--blue)), #0d1f38 78%); }
.co-hero-full.no-photo::before { opacity: 1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 30%, transparent 85%); }
.cohf-deco { position: absolute; right: -6%; top: 50%; z-index: 2; transform: translateY(-50%); opacity: .8; pointer-events: none; }
.cohf-deco .art-orbit { width: min(460px, 70vw); }
@media (max-width: 760px) { .cohf-deco { right: -30%; opacity: .55; } }
.cohf-credit { position: absolute; right: .8rem; bottom: .7rem; z-index: 4; display: inline-flex; align-items: center; gap: .3rem; min-height: 28px; padding: .15rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.92); background: rgba(8,16,28,.5); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s ease, color .2s ease; }
.cohf-credit:hover { background: rgba(8,16,28,.72); color: #fff; }
.cohf-credit .gic { width: 1em; height: 1em; }

/* =========================================================
   26. v93：首頁輪播 banner、搜尋區、快捷入口
   ---------------------------------------------------------
   輪播一次只顯示一張（其餘疊在同一個位置、淡入淡出）。自動播放的節奏是目前那顆圓點裡的進度條（hcBar）：
   跑完就換下一張，所以「暫停」只要讓進度條停住——滑鼠移上去、鍵盤焦點在裡面、手指按住、捲出畫面、按了暫停鈕都是同一招。
   動態效果關閉時沒有進度條動畫，也就不會自動換（仍可用箭頭、圓點、左右鍵、手指滑動）。
   ========================================================= */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[data-co-entry][hidden] { display: none !important; }

.hc { --hc-lap: 0px; --hc-dur: 6.5s; position: relative; background: #071a33; color: #fff; isolation: isolate; }
/* 高度跟著寬度走（約 8:3，和建議的 1920×720 圖片同比例），整張 banner 都露出來——搜尋區排在它下面，不疊在上面 */
.hc-stage { position: relative; height: clamp(400px, 37.5vw, 640px); overflow: hidden; }
.hc-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; isolation: isolate; }
.hc-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
html[data-motion="on"] .hc-slide { transition: opacity .8s var(--ease), visibility 0s linear .8s; }
html[data-motion="on"] .hc-slide.is-on { transition: opacity .8s var(--ease), visibility 0s; }
.hc-slide.th-ocean { background: linear-gradient(118deg, #05203f 0%, #0a4a8c 52%, #0f86d6 100%); }
.hc-slide.th-night { background: linear-gradient(118deg, #070b1d 0%, #1a2560 55%, #4a3fb0 100%); }
.hc-slide.th-sunrise { background: linear-gradient(118deg, #4a1d06 0%, #b3560d 52%, #f0a02a 100%); }
.hc-slide.th-forest { background: linear-gradient(118deg, #04281b 0%, #0b6646 55%, #2aa56f 100%); }
.hc-slide.th-rose { background: linear-gradient(118deg, #3d0a26 0%, #9c1c58 55%, #e4588f 100%); }
.hc-slide.th-slate { background: linear-gradient(118deg, #0d1422 0%, #2c3a52 55%, #5f7392 100%); }
.hc-slide.has-pic { background: #071a33; }
.hc-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hc-media picture, .hc-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc-media img { object-fit: cover; object-position: center; }
.hc-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,14,30,.88) 0%, rgba(4,14,30,.64) 38%, rgba(4,14,30,.14) 72%, rgba(4,14,30,0) 100%), linear-gradient(0deg, rgba(4,14,30,.55), rgba(4,14,30,0) 40%); }
.hc-glow { position: absolute; border-radius: 50%; filter: blur(50px); }
.hc-glow.g1 { width: min(46vw, 720px); aspect-ratio: 1; right: -6%; top: -34%; background: radial-gradient(circle, rgba(255,255,255,.34), rgba(255,255,255,0) 66%); }
.hc-glow.g2 { width: min(36vw, 560px); aspect-ratio: 1; left: -10%; bottom: -48%; background: radial-gradient(circle, rgba(255,197,61,.34), rgba(255,197,61,0) 66%); }
.hc-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 42%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 72% 42%, #000 0%, transparent 70%); }
/* 插圖放在一個白色圓盤上（插圖的顏色是照淺色底設計的），像貼在彩色背景上的貼紙 */
.hc-art { position: absolute; top: 0; bottom: var(--hc-lap); margin-block: auto; right: max(4vw, calc((100vw - 1180px) / 2 + 1.2rem)); width: clamp(230px, 31vw, 430px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff 0%, #f1f8fe 58%, #dcecf9 100%); box-shadow: 0 30px 80px rgba(2,10,24,.34), 0 0 0 10px rgba(255,255,255,.12), 0 0 0 22px rgba(255,255,255,.06); }
.hc-art .art { width: 74%; height: auto; aspect-ratio: 120 / 96; }
.hc-hit, .hc-cover { position: absolute; inset: 0; z-index: 1; }
.hc-in { position: relative; z-index: 2; pointer-events: none; }
.hc-copy { max-width: min(700px, 57%); padding: 1.2rem 0 calc(var(--hc-lap) + 3.9rem); }
.hc-copy > * { pointer-events: auto; }
.hc-copy .hc-title, .hc-copy .hc-sub, .hc-copy .hc-tag { pointer-events: none; }      /* 點文字等於點整張 banner（底下那層連結） */
.hc-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3em .95em; border-radius: 999px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); font-size: .82rem; font-weight: 700; letter-spacing: .05em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hc-title { font-family: var(--serif); font-size: clamp(1.75rem, 4.1vw, 3.2rem); line-height: 1.24; margin: .75rem 0 .65rem; color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,.3); }
.hc-title.long { font-size: clamp(1.45rem, 3.2vw, 2.5rem); }
.hc-seg { display: inline-block; max-width: 100%; }
.hc-sub { font-size: clamp(.98rem, 1.45vw, 1.14rem); line-height: 1.78; color: rgba(255,255,255,.9); margin: 0 0 1.35rem; max-width: 33em; text-shadow: 0 1px 14px rgba(0,0,0,.25); }
.hc-copy .hc-cta { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 12px 30px rgba(2,10,24,.28); }
.hc-copy .hc-cta:hover { background: #fff; color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(2,10,24,.36); }
.hc-cta .gic { transition: transform .25s var(--ease); }
.hc-cta:hover .gic { transform: translateX(3px); }
/* ── 有圖的 banner（v95）──
   圖片鋪滿整個 banner。標題與簡述排在中下方、左右置中，下面留一段不貼底（再下面才是控制列）；
   圖的上面四成完全不遮；只有下半部由下往上淡掉的一層深色（最下面最深、到六成高的地方就沒了），白字在任何圖上都讀得清楚。
   （試過只在文字後面放一圈放射狀的深色，淺色的圖上看起來像一塊髒污，所以用整條由下往上的漸層。）
   標題最多兩行、簡述最多兩行、按鈕可有可無——文字這一塊最高也只占 banner 下方三分之一左右。 */
.hc-slide.has-pic { align-items: flex-end; }
.hc-slide.has-pic .hc-shade { background: linear-gradient(0deg, rgba(4,14,30,.78) 0%, rgba(4,14,30,.62) 22%, rgba(4,14,30,.36) 42%, rgba(4,14,30,0) 60%); }
.hc-slide.has-pic .hc-copy { max-width: min(820px, 88%); margin-inline: auto; padding: 0 0 clamp(5.4rem, 6.2vw, 6.6rem); text-align: center; }
.hc-slide.has-pic .hc-tag { margin-bottom: .7rem; }
.hc-slide.has-pic .hc-title { font-size: clamp(1.5rem, 2.85vw, 2.5rem); margin: 0 0 .5rem; text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 2px 26px rgba(0,0,0,.55); text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hc-slide.has-pic .hc-title.long { font-size: clamp(1.35rem, 2.4vw, 2.1rem); }
.hc-slide.has-pic .hc-sub { font-size: clamp(.95rem, 1.22vw, 1.1rem); line-height: 1.7; margin: 0 auto; max-width: 44em; text-wrap: pretty; color: #fff; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 18px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hc-slide.has-pic .hc-cta { margin-top: 1.05rem; padding: .62em 1.35em; font-size: .98rem; }
/* 控制列：上一張／圓點（目前那顆是進度條）／下一張 排在正中間，暫停鈕靠右 */
.hc-ui { position: absolute; left: 0; right: 0; bottom: calc(var(--hc-lap) + .95rem); z-index: 5; pointer-events: none; }
.hc-ui-in { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; column-gap: .45rem; }
.hc-ui-in > [data-hc="prev"] { grid-column: 2; }
.hc-ui-in > .hc-dots { grid-column: 3; }
.hc-ui-in > [data-hc="next"] { grid-column: 4; }
.hc-ui-in > .hc-play { grid-column: 5; justify-self: end; }
.hc-ui button { pointer-events: auto; }
.hc-nav, .hc-play { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.38); background: rgba(8,20,40,.36); color: #fff; display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s ease, border-color .2s ease, transform .2s var(--ease); }
.hc-nav:hover, .hc-play:hover { background: rgba(255,255,255,.24); border-color: #fff; transform: scale(1.06); }
.hc-nav .gic, .hc-play .gic { width: 1.15rem; height: 1.15rem; }
.hc-dots { display: flex; align-items: center; gap: .15rem; margin: 0 .2rem; }
.hc-dot { flex: none; min-width: 28px; height: 40px; padding: 0 5px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hc-dot i { display: block; width: 12px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.5); transition: width .35s var(--ease), background .2s ease; }
.hc-dot:hover i { background: rgba(255,255,255,.85); }
.hc-dot.on i { width: 42px; background: linear-gradient(#fff, #fff) no-repeat 0 0 / 100% 100%, rgba(255,255,255,.32); }
.hc :focus-visible { outline: 3px solid #ffd34d; outline-offset: 3px; }
html[data-motion="on"] .hc:not(.single) .hc-dot.on i { animation: hcBar var(--hc-dur) linear backwards; }
html[data-motion="on"] .hc.is-paused .hc-dot.on i, html[data-motion="on"] .hc.is-held .hc-dot.on i, html[data-motion="on"] .hc.is-off .hc-dot.on i { animation-play-state: paused; }
html[data-motion="on"] .hc:has(:focus-visible) .hc-dot.on i { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { html[data-motion="on"] .hc:hover .hc-dot.on i { animation-play-state: paused; } }
@keyframes hcBar { from { background-size: 0% 100%; } }
/* 每換一張，文字由下往上依序出現、圖片慢慢推近、插圖彈出來 */
html[data-motion="on"] .hc-slide.is-on .hc-copy > * { animation: hcUp .7s var(--ease) backwards; }
html[data-motion="on"] .hc-slide.is-on .hc-copy > :nth-child(2) { animation-delay: .09s; }
html[data-motion="on"] .hc-slide.is-on .hc-copy > :nth-child(3) { animation-delay: .18s; }
html[data-motion="on"] .hc-slide.is-on .hc-copy > :nth-child(4) { animation-delay: .27s; }
html[data-motion="on"] .hc-slide.is-on .hc-media img { animation: hcZoom 7s ease-out backwards; }
html[data-motion="on"] .hc-slide.is-on .hc-art { animation: hcArt .85s var(--ease-spring) .12s backwards; }
@keyframes hcUp { from { opacity: 0; transform: translateY(20px); } }
@keyframes hcZoom { from { transform: scale(1.08); } }
@keyframes hcArt { from { opacity: 0; transform: scale(.84) rotate(-7deg); } }
@media (max-width: 760px) {
  /* 手機（v95）：上面一塊放圖（或插圖），下面一塊放文字與控制列——圖上不疊任何東西，露出來的部分整個看得到。
     --hc-pic＝上面那塊的高度（寬的 62.5%，也就是 16:10）；--hc-cap＝下面文字區的高度，
     由程式量出最高的那一張再填進來（wireCarousel 的 fitCap），所以字再長也不會被切、字少也不留一大塊空白；這裡的值只是量之前的預設。 */
  .hc { --hc-pic: clamp(190px, 62.5vw, 340px); --hc-cap: 17rem; --hc-artw: min(42vw, 180px); }
  .hc-stage { height: calc(var(--hc-pic) + var(--hc-cap)); }
  .hc-slide, .hc-slide.has-pic { display: block; }
  .hc-slide.has-pic { background: linear-gradient(180deg, #0b2647 0%, #071a33 100%); }
  .hc-slide.has-pic:not(.img-only) .hc-media { bottom: auto; height: var(--hc-pic); }
  .hc-slide.has-pic .hc-shade { display: none; }
  .hc-art { top: calc((var(--hc-pic) - var(--hc-artw)) / 2); bottom: auto; left: 0; right: 0; margin: 0 auto; width: var(--hc-artw); box-shadow: 0 18px 44px rgba(2,10,24,.32), 0 0 0 7px rgba(255,255,255,.12); }
  .hc-in { position: absolute; left: 0; right: 0; bottom: 0; height: var(--hc-cap); display: flex; flex-direction: column; justify-content: center; }
  .hc-copy, .hc-slide.has-pic .hc-copy { flex: none; max-width: 100%; margin: 0; padding: .95rem 0 calc(var(--hc-lap) + 3.55rem); text-align: center; }
  .hc-tag, .hc-slide.has-pic .hc-tag { margin-bottom: .55rem; font-size: .78rem; }
  .hc-title, .hc-title.long, .hc-slide.has-pic .hc-title, .hc-slide.has-pic .hc-title.long { font-size: 1.42rem; line-height: 1.3; margin: 0 0 .42rem; text-shadow: none; text-wrap: balance;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  /* 手機一行放不了幾個字：標題照一般的方式折行、每行長度盡量平均（不照標點分段——分段在窄畫面會多折一行，也讓行數限制失效） */
  .hc-seg { display: inline; }
  .hc-sub, .hc-slide.has-pic .hc-sub { font-size: .94rem; line-height: 1.65; margin: 0 auto; max-width: 30em; text-shadow: none;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .hc-copy .hc-cta, .hc-slide.has-pic .hc-cta { margin-top: .9rem; padding: .6em 1.3em; font-size: .96rem; }
  .hc-nav { display: none; }                                              /* 手機用手指滑；留圓點與暫停 */
  /* 控制列在手機只有圓點與暫停鈕：左右各留至少一顆按鈕的寬度（暫停鈕才不會被擠出畫面），圓點縮小一點——放滿 10 張在 320px 的螢幕也排得下 */
  .hc-ui-in { grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr); column-gap: .25rem; }
  .hc-ui-in > .hc-dots { grid-column: 2; margin: 0; gap: 0; }
  .hc-ui-in > .hc-play { grid-column: 3; }
  .hc-dot { min-width: 18px; padding: 0 3px; }
  .hc-dot i { width: 9px; }
  .hc-dot.on i { width: 30px; }
}
@media (max-width: 380px) { .hc-title, .hc-title.long, .hc-slide.has-pic .hc-title, .hc-slide.has-pic .hc-title.long { font-size: 1.3rem; } .hc-sub, .hc-slide.has-pic .hc-sub { font-size: .9rem; } }

/* 搜尋區：一張白色卡片，排在輪播正下方（不疊在 banner 上——banner 的圖和字要整張看得到） */
.sd { position: relative; z-index: 6; margin-top: clamp(1rem, 2.2vw, 1.7rem); padding-bottom: clamp(.6rem, 2vw, 1.4rem); }
.sd-card { box-shadow: 0 14px 40px rgba(11,27,51,.1); }
.sd-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(11,27,51,.16); padding: clamp(1.1rem, 2.4vw, 1.9rem); }
.sd-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1rem, 3vw, 2.6rem); align-items: center; }
.sd-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: var(--blue-dark); background: var(--blue-soft); border-radius: 999px; padding: .32em .9em; }
.sd-eyebrow .gic { width: 1em; height: 1em; }
.sd-head h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2.7vw, 1.95rem); line-height: 1.3; margin: .6rem 0 .3rem; color: var(--navy); }
.sd-head p { margin: 0; color: var(--muted); line-height: 1.75; font-size: .96rem; }
.sd-head p b { color: var(--blue-dark); font-family: var(--serif); font-size: 1.18em; }
.sd-find { min-width: 0; }
.hx-search.sd-search { max-width: none; border: 2px solid var(--blue); box-shadow: 0 10px 30px rgba(0,140,214,.15); }
.hx-search.sd-search:focus-within { box-shadow: 0 0 0 4px rgba(53,196,255,.32), 0 14px 34px rgba(0,140,214,.2); transform: none; }
.hx-chips.sd-chips { margin-top: .8rem; color: var(--muted); }
.sd-chips .hero-chip { color: var(--ink); background: var(--paper); border-color: var(--line-strong); }
.sd-chips .hero-chip:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.sd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(1rem, 2.2vw, 1.5rem); padding-top: clamp(.9rem, 2vw, 1.3rem); border-top: 1px dashed var(--line-strong); }
.sd-stat { display: flex; align-items: center; gap: .75rem; padding: 0 1rem; min-width: 0; }
.sd-stat:first-child { padding-left: 0; }
.sd-stat + .sd-stat { border-left: 1px solid var(--line); }
.sd-stat-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f5fd, #d2ebfb); color: var(--blue-dark); }
.sd-stat-ic .gic { width: 1.25rem; height: 1.25rem; }
.sd-stat > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.sd-stat b { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.sd-stat em { font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.45; }
html[data-motion="on"] .sd-card { animation: hcUp .7s var(--ease) .25s backwards; }
@media (max-width: 880px) { .sd-main { grid-template-columns: 1fr; gap: .9rem; } }
@media (max-width: 760px) { .sd-card { border-radius: 18px; } }
@media (max-width: 640px) {
  .sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .95rem; }
  .sd-stat { padding: 0 .7rem; gap: .6rem; }
  .sd-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .sd-stat-ic { width: 38px; height: 38px; border-radius: 11px; }
}

/* 快捷入口：六張小卡片，一張一件可以做的事 */
.qe-section { padding-top: clamp(1.6rem, 4vw, 2.8rem); }
.qe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.2rem); }
.qe-card { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: inherit; text-decoration: none; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.qe-card::before { content: ''; position: absolute; right: -34px; top: -34px; width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle, rgba(0,140,214,.13), rgba(0,140,214,0) 70%); transition: transform .5s var(--ease); pointer-events: none; }
.qe-card:nth-child(3n+2)::before { background: radial-gradient(circle, rgba(232,162,0,.16), rgba(232,162,0,0) 70%); }
.qe-card:nth-child(3n)::before { background: radial-gradient(circle, rgba(29,156,115,.14), rgba(29,156,115,0) 70%); }
.qe-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,27,51,.12); border-color: rgba(0,140,214,.45); }
.qe-card:hover::before { transform: scale(1.7); }
.qe-art { position: relative; flex: none; width: 92px; }
.qe-art .art { width: 92px; height: 74px; }
.qe-txt { position: relative; display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.qe-txt b { font-size: 1.08rem; color: var(--navy); line-height: 1.35; }
.qe-txt em { font-style: normal; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.qe-go { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--blue-dark); transition: background .3s ease, color .3s ease, transform .3s var(--ease); }
.qe-go .gic { width: 1rem; height: 1rem; }
.qe-card:hover .qe-go { background: var(--blue); color: #fff; transform: translateX(3px); }
@media (max-width: 1020px) { .qe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .qe-grid { grid-template-columns: 1fr; } .qe-card { padding: .9rem 1rem; gap: .85rem; } .qe-art { width: 74px; } .qe-art .art { width: 74px; height: 59px; } }

/* banner 自己的內容頁：封面（圖片，或內建底色＋插圖），其餘沿用站內文章頁的版面 */
.ft-cover { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 21 / 8; margin-bottom: 1.2rem; isolation: isolate; }
.ft-cover.th-ocean { background: linear-gradient(118deg, #05203f 0%, #0a4a8c 52%, #0f86d6 100%); }
.ft-cover.th-night { background: linear-gradient(118deg, #070b1d 0%, #1a2560 55%, #4a3fb0 100%); }
.ft-cover.th-sunrise { background: linear-gradient(118deg, #4a1d06 0%, #b3560d 52%, #f0a02a 100%); }
.ft-cover.th-forest { background: linear-gradient(118deg, #04281b 0%, #0b6646 55%, #2aa56f 100%); }
.ft-cover.th-rose { background: linear-gradient(118deg, #3d0a26 0%, #9c1c58 55%, #e4588f 100%); }
.ft-cover.th-slate { background: linear-gradient(118deg, #0d1422 0%, #2c3a52 55%, #5f7392 100%); }
.ft-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ft-art { position: absolute; inset: 0; margin: auto; width: min(34%, 190px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff 0%, #f1f8fe 58%, #dcecf9 100%); box-shadow: 0 18px 44px rgba(2,10,24,.32), 0 0 0 8px rgba(255,255,255,.12); }
.ft-art .art { width: 74%; height: auto; aspect-ratio: 120 / 96; }
.ft-back { margin-top: 1.6rem; }
.ft-back a { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; color: var(--blue-dark); font-weight: 700; }
@media (max-width: 640px) { .ft-cover { aspect-ratio: 16 / 9; border-radius: 14px; } }

/* 從「公司比一比」進排行榜時的提示 */
.cmp-hint { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.1rem; margin-bottom: 1rem; border-radius: 16px; background: linear-gradient(135deg, var(--blue-softer), #fff); border: 1px solid #cfe6f6; }
.cmp-hint-art { flex: none; width: 70px; } .cmp-hint-art .art { width: 70px; height: 56px; }
.cmp-hint > span:last-child { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cmp-hint b { color: var(--navy); font-size: 1.02rem; }
.cmp-hint em { font-style: normal; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* 後台：輪播 banner 的小預覽、公司入口的開關 */
.bk-slide { display: block; width: 104px; height: 40px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.bk-slide.th-ocean { background-color: #0a4a8c; background-image: linear-gradient(118deg, #05203f, #0f86d6); }
.bk-slide.th-night { background-color: #1a2560; background-image: linear-gradient(118deg, #070b1d, #4a3fb0); }
.bk-slide.th-sunrise { background-color: #b3560d; background-image: linear-gradient(118deg, #4a1d06, #f0a02a); }
.bk-slide.th-forest { background-color: #0b6646; background-image: linear-gradient(118deg, #04281b, #2aa56f); }
.bk-slide.th-rose { background-color: #9c1c58; background-image: linear-gradient(118deg, #3d0a26, #e4588f); }
.bk-slide.th-slate { background-color: #2c3a52; background-image: linear-gradient(118deg, #0d1422, #5f7392); }
.bk-entry { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bk-entry > div { flex: 1 1 320px; min-width: 0; }
.bk-entry p { margin: .3rem 0 0; line-height: 1.7; }
.bk-entry code { background: var(--bg-soft); padding: .05em .4em; border-radius: 5px; font-size: .88em; }

/* 後台輪播 banner 表單（v95）：最上面的位置示意、收合的進階設定 */
.bk-wide { width: min(780px, 100%); max-width: 780px; }     /* 加在後台表單視窗上（比一般的寬，放得下位置示意） */
.bk-adv { margin: .4rem 0 1rem; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fc; }
.bk-adv > summary { cursor: pointer; padding: .75rem 1rem; font-weight: 700; font-size: .92rem; color: var(--ink-2, #44546a); list-style-position: inside; }
.bk-adv[open] > summary { border-bottom: 1px solid var(--line); }
.bk-adv-in { padding: .9rem 1rem .2rem; }
/* 位置示意：照電腦版的比例（8:3）畫的小縮圖，字級跟著縮圖寬度等比例縮（cqw），所以相對位置與大小和前台一樣 */
.bk-hcp { position: relative; container-type: inline-size; aspect-ratio: 8 / 3; border-radius: 12px; overflow: hidden; color: #fff; isolation: isolate; background: linear-gradient(118deg, #05203f 0%, #0a4a8c 52%, #0f86d6 100%); }
.bk-hcp.th-night { background: linear-gradient(118deg, #070b1d 0%, #1a2560 55%, #4a3fb0 100%); }
.bk-hcp.th-sunrise { background: linear-gradient(118deg, #4a1d06 0%, #b3560d 52%, #f0a02a 100%); }
.bk-hcp.th-forest { background: linear-gradient(118deg, #04281b 0%, #0b6646 55%, #2aa56f 100%); }
.bk-hcp.th-rose { background: linear-gradient(118deg, #3d0a26 0%, #9c1c58 55%, #e4588f 100%); }
.bk-hcp.th-slate { background: linear-gradient(118deg, #0d1422 0%, #2c3a52 55%, #5f7392 100%); }
.bk-hcp-pic { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; }
.bk-hcp-shade { position: absolute; inset: 0; z-index: -1; display: none; background: linear-gradient(0deg, rgba(4,14,30,.78) 0%, rgba(4,14,30,.62) 22%, rgba(4,14,30,.36) 42%, rgba(4,14,30,0) 60%); }
.bk-hcp.has-pic:not(.img-only) .bk-hcp-shade { display: block; }
.bk-hcp-copy { position: absolute; left: 9%; right: 44%; top: 0; bottom: 9%; display: grid; align-content: center; justify-items: start; gap: 1cqw; text-align: left; }
.bk-hcp.has-pic .bk-hcp-copy { left: 8%; right: 8%; top: auto; bottom: 14.5%; justify-items: center; text-align: center; gap: .85cqw; }
.bk-hcp.img-only .bk-hcp-copy { display: none; }
.bk-hcp-title { font-family: var(--serif); font-size: 3.5cqw; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bk-hcp.has-pic .bk-hcp-title { font-size: 2.78cqw; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.bk-hcp-sub { font-size: 1.3cqw; line-height: 1.7; opacity: .92; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bk-hcp.has-pic .bk-hcp-sub { font-size: 1.22cqw; max-width: 54cqw; }
.bk-hcp-btn { padding: .62em 1.35em; border-radius: 999px; background: #fff; color: #0b1b33; font-weight: 700; font-size: 1.1cqw; margin-top: .35cqw; }
.bk-hcp-sub[hidden], .bk-hcp-btn[hidden] { display: none; }
.bk-hcp-dots { position: absolute; left: 0; right: 0; bottom: 4.5%; display: flex; justify-content: center; gap: .7cqw; }
.bk-hcp-dots i { width: .9cqw; height: .45cqw; border-radius: 99px; background: rgba(255,255,255,.5); }
.bk-hcp-dots i.on { width: 2.9cqw; background: #fff; }
.bk-hcp-art { position: absolute; right: 10%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%); background: radial-gradient(circle at 32% 26%, #fff 0%, #f1f8fe 58%, #dcecf9 100%); box-shadow: 0 0 0 .7cqw rgba(255,255,255,.12); }
.bk-hcp.has-pic .bk-hcp-art { display: none; }
/* 沒有另外放手機版圖片時：手機只會顯示這張圖中間約六成的寬度，用兩條虛線標出來 */
.bk-hcp-m { position: absolute; top: 0; bottom: 0; left: 20%; right: 20%; display: none; border-inline: 1px dashed rgba(255,255,255,.85); pointer-events: none; }
.bk-hcp.has-pic:not(.has-m) .bk-hcp-m { display: block; }
.bk-hcp-m em { position: absolute; top: .35rem; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .68rem; line-height: 1; white-space: nowrap; padding: .28em .6em; border-radius: 999px; background: rgba(4,14,30,.6); }
.bk-hcp-note { margin: .45rem 0 1rem; font-size: .84rem; line-height: 1.6; color: var(--muted, #5b6b82); }

/* =========================================================
   27. v93：公司頁——產生的主視覺底圖、重點資料列、字母標誌
   ---------------------------------------------------------
   沒有照片的公司，主視覺由三塊疊起來：遠景的樓群（.cv-sky）、登記所在地的地標剪影（.cv-mark）、
   商品類別的圖示方塊（.cv-tile）。都是站方畫的示意圖，不是公司的照片或標誌。
   ========================================================= */
.co-hero-full.no-photo { min-height: clamp(240px, 32vh, 360px);
  background: radial-gradient(560px 320px at 14% -12%, rgba(255,255,255,.2), transparent 70%), linear-gradient(122deg, var(--bc2, #0d1f38) 0%, var(--bc1, var(--bc, var(--blue))) 52%, var(--bc, var(--blue)) 100%); }
.cv { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.cv-glow { position: absolute; width: min(52vw, 620px); aspect-ratio: 1; right: -8%; top: -55%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.26), rgba(255,255,255,0) 66%); }
.cv-k1 .cv-glow { right: auto; left: 22%; top: -62%; }
.cv-k2 .cv-glow { right: 30%; top: -68%; background: radial-gradient(circle, rgba(255,213,102,.26), rgba(255,213,102,0) 66%); }
.cv-sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44%; fill: rgba(255,255,255,.075); }
.cv-mark { position: absolute; left: clamp(1%, 7vw, 12%); bottom: 0; height: 90%; aspect-ratio: 3 / 4; fill: rgba(255,255,255,.2); }
.cv-flip .cv-mark { left: auto; right: clamp(1%, 7vw, 12%); }
.cv-mark .cv-far { fill: rgba(255,255,255,.1); }
.cv-mark .cv-line { stroke: rgba(255,255,255,.2); }
.cv-tile { position: absolute; display: grid; place-items: center; aspect-ratio: 1; border-radius: 26%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 14px 30px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.3); }
.cv-tile .gic { width: 54%; height: 54%; }
.cv-tile.t1 { right: 15%; top: 17%; width: clamp(54px, 7.4vw, 100px); transform: rotate(-8deg); }
.cv-tile.t2 { right: 5%; top: 46%; width: clamp(44px, 5.8vw, 80px); transform: rotate(7deg); }
.cv-tile.t3 { right: 25%; bottom: 13%; width: clamp(38px, 4.8vw, 66px); transform: rotate(5deg); }
.cv-flip .cv-tile.t1 { right: auto; left: 15%; }
.cv-flip .cv-tile.t2 { right: auto; left: 5%; }
.cv-flip .cv-tile.t3 { right: auto; left: 25%; }
html[data-motion="on"] .cv-tile { animation: cvFloat 5.5s ease-in-out infinite alternate; }
html[data-motion="on"] .cv-tile.t2 { animation-duration: 6.8s; animation-delay: -2s; }
html[data-motion="on"] .cv-tile.t3 { animation-duration: 4.9s; animation-delay: -1s; }
html[data-motion="on"] .cv-mark .cv-spin { animation: artSpin 9s linear infinite; }
html[data-motion="on"] .cv-mark { animation: cvRise .9s var(--ease) .1s backwards; }
@keyframes cvFloat { from { translate: 0 5px; } to { translate: 0 -7px; } }
@keyframes cvRise { from { opacity: 0; transform: translateY(26px); } }
@media (max-width: 760px) {
  .cv-mark { left: -4%; height: 78%; fill: rgba(255,255,255,.15); }
  .cv-flip .cv-mark { left: auto; right: -4%; }
  .cv-tile.t1 { right: 5%; top: 9%; width: 46px; }
  .cv-tile.t2 { display: none; }
  .cv-tile.t3 { right: 9%; bottom: 9%; width: 36px; }
  .cv-flip .cv-tile.t1 { left: 5%; } .cv-flip .cv-tile.t3 { left: 9%; }
}

/* 重點資料列：圖示＋一個數字，一眼看完這家公司的基本盤 */
.kf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(158px, 100%), 1fr)); gap: .7rem; margin: 1.1rem 0 .2rem; }
.kf-item { display: flex; align-items: center; gap: .7rem; padding: .78rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; min-width: 0; transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.kf-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,27,51,.08); border-color: #cfe1ee; }
.kf-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f5fd, #d2ebfb); color: var(--blue-dark); }
.kf-item:nth-child(3n+2) .kf-ic { background: linear-gradient(135deg, #fdf3da, #f9e3ad); color: #9a6b00; }
.kf-item:nth-child(3n) .kf-ic { background: linear-gradient(135deg, #e7f6ef, #cdecdc); color: #157355; }
.kf-ic .gic { width: 1.2rem; height: 1.2rem; }
.kf-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.kf-txt em { font-style: normal; font-size: .76rem; color: var(--muted); }
.kf-txt b { font-family: var(--serif); font-size: 1.08rem; color: var(--navy); overflow-wrap: anywhere; }
.kf-txt i { font-style: normal; font-size: .74rem; color: var(--muted-2); display: inline-flex; align-items: center; gap: .2rem; }
.kf-txt i .gic { width: .85em; height: .85em; }
@media (max-width: 560px) { .kf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; } .kf-item { padding: .65rem .7rem; gap: .55rem; } .kf-ic { width: 34px; height: 34px; border-radius: 10px; } .kf-txt b { font-size: 1rem; } }

/* 字母標誌（還沒有取得官方標誌的公司）：公司代表色的深淺漸層＋四種花樣之一 */
.co-logo2 .co-mono { overflow: hidden; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.co-logo2 .co-mono::before { content: ''; position: absolute; pointer-events: none; }
.co-mono.em-k0::before { inset: -40% 30% 45% -40%; border-radius: 50%; background: rgba(255,255,255,.2); }
.co-mono.em-k1::before { inset: 0; background: linear-gradient(135deg, transparent 58%, rgba(255,255,255,.2) 58%); }
.co-mono.em-k2::before { inset: 12%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); }
.co-mono.em-k3::before { left: 0; right: 0; bottom: 0; height: 26%; background: rgba(0,0,0,.2); }
.tcat { display: inline-flex; align-items: center; gap: .35rem; }
.tcat .gic { width: 1em; height: 1em; color: var(--muted-2); flex: none; }

/* 評價的登入提示：這家公司要哪一國的手機門號才能評 */
.gate-rule { display: inline-flex; align-items: flex-start; gap: .4rem; text-align: left; font-size: .88rem; line-height: 1.6; color: var(--ink-soft); background: var(--blue-softer); border: 1px solid #d6eaf7; border-radius: 12px; padding: .5rem .8rem; margin: 0 0 1rem; }
.gate-rule .gic { flex: none; width: 1em; height: 1em; margin-top: .3em; color: var(--blue-dark); }
.bk-order { display: inline-flex; gap: .25rem; }
.bk-order .btn { min-width: 30px; padding: .3em .45em; }
.bk-order .gic { width: .95rem; height: .95rem; }

/* 有官網照片的公司頁：照片上不疊公司名稱（改放在下面的資料列），所以深色遮罩只留底部一點點，讓右下角的來源標示看得清楚 */
.co-hero-full.has-photo::before { background: linear-gradient(180deg, rgba(8,16,28,.05) 0%, rgba(8,16,28,0) 45%, rgba(8,16,28,.34) 100%); opacity: 1; }
.co-hero-full.has-photo::after { background: none; }
.cib-brand { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.2; margin: 0 0 .2rem; color: var(--navy); letter-spacing: .01em; overflow-wrap: anywhere; }

/* =========================================================
   28. v95：各國名單的來源標示
   ========================================================= */
.src-asof { margin-left: .35em; color: var(--muted); font-size: .92em; white-space: nowrap; }
.rk-src { margin: .7rem 0 0; font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.86); }
.rk-src .gic { width: 1em; height: 1em; vertical-align: -.12em; margin-right: .2em; }
.rk-src a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rk-src .src-asof { color: rgba(255,255,255,.7); }
.cc-src { margin-top: .35rem; font-size: .8rem; line-height: 1.5; color: var(--muted); display: flex; gap: .3rem; align-items: flex-start; }
.cc-src .gic { flex: none; width: 1em; height: 1em; margin-top: .2em; }
.src-list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; }
.src-list li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: .8rem; align-items: start; padding: .6rem .8rem; border-radius: 10px; background: rgba(11,27,51,.04); line-height: 1.75; }
.src-list li > span { min-width: 0; overflow-wrap: anywhere; }
.src-list li b { font-weight: 800; }
.src-list li em { font-style: normal; margin-left: .5em; color: var(--muted); font-size: .9em; white-space: nowrap; }
.src-list li i { font-style: normal; margin-left: .35em; color: var(--muted); font-size: .9em; white-space: nowrap; }
.src-foot { margin-top: .8rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .src-list li { grid-template-columns: minmax(0, 1fr); gap: .15rem; } .src-list li em, .src-list li i { white-space: normal; } }
/* 分數拉不開的國家：一段明講「評分資料不足」的說明 */
.flat-note { display: flex; gap: .8rem; align-items: flex-start; margin: 1rem 0; padding: .95rem 1.1rem; border-radius: 14px; background: #fff8e6; border: 1px solid #f1dfa9; color: #5c4a12; line-height: 1.7; }
.flat-note.rk { margin-top: 1.4rem; margin-bottom: 0; }
.flat-note > .gic { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: #b98900; }
.flat-note b { display: block; font-size: 1rem; }
.flat-note p { margin: .15rem 0 0; font-size: .92rem; }

/* =========================================================
   29. v96：國旗
   ---------------------------------------------------------
   旗子一律是 3:2 的小圖（flags.js 的 <svg class="fl">）；白色的旗子（日本、韓國）在白底上要看得出邊界，所以有一圈很淡的框。
   ========================================================= */
.fl { display: inline-block; flex: none; width: 1.5em; height: 1em; border-radius: 2px; vertical-align: -.14em; background: #fff; box-shadow: 0 0 0 1px rgba(11,27,51,.16); overflow: hidden; }
.fl-in { margin-right: .35em; }                                             /* 句子、標籤裡接在國名前面的 */
.fl-keep { white-space: nowrap; }                                           /* 旗子和後面的國名不拆成兩行 */
@media (min-width: 1025px) { html:not(.nav-collapsed) .dd-nw { white-space: nowrap; } }   /* 電腦版的國家選單：「依所在地自動（旗子 國名）」維持一行，選單跟著變寬 */
.vf-ctry { display: inline-flex; align-items: center; gap: .5rem; flex: none; }   /* 手機驗證：國家下拉選單旁的旗子（選單裡只能放文字，旗子放旁邊，跟著選的國家換） */
.vf-flag { display: inline-flex; }
.vf-flag:empty { display: none; }
.fl-dd { width: 27px; height: 18px; border-radius: 3px; }                   /* 右上角的國家選單（按鈕與清單） */
.fl-bar { width: 42px; height: 28px; border-radius: 5px; box-shadow: 0 0 0 2px rgba(255,255,255,.34), 0 6px 16px rgba(0,0,0,.22); }   /* 排行榜上方的國家列（深色底） */
.fl-card { width: 60px; height: 40px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(11,27,51,.14), 0 8px 18px rgba(11,27,51,.16); } /* 各國列表的卡片 */
.fl-h1 { width: 1.35em; height: .9em; border-radius: .09em; margin-right: .38em; vertical-align: -.06em; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.src-note-in { display: inline-block; margin-left: .45em; font-size: .9em; color: var(--muted); }
.src-note-in::before { content: '（'; } .src-note-in::after { content: '）'; }
.rk-src .src-note-in { color: rgba(255,255,255,.72); }

/* ═══════════ 30. 年資從登記日期起算的說明（v97） ═══════════
   泰國的官方名冊沒有公司成立年，站方決定整國改用「取得直銷登記的日期」算年資。用到分數的頁面都寫明：排行榜上方、公司頁的評分組成、評分方式頁。 */
.rk-basis { margin-top: .2rem; font-size: .84rem; color: rgba(255,255,255,.78); }                                   /* 排行榜上方（深色底），接在名單來源那一行下面 */
.bd-note { display: flex; align-items: flex-start; gap: .5rem; margin: -.3rem 0 1rem; padding: .6rem .8rem; border-radius: 10px; background: var(--blue-softer); border: 1px solid var(--blue-soft); color: var(--ink-soft); font-size: .84rem; line-height: 1.7; }
.bd-note .gic, p.wt-extra .gic { flex: none; width: 1.05em; height: 1.05em; margin-top: .33em; color: var(--blue); }
p.wt-extra { display: flex; align-items: flex-start; gap: .5rem; margin: .65rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: .86rem; line-height: 1.7; }
.src-basis { display: inline-flex; align-items: center; gap: .35em; margin-top: .2rem; padding: .05em .65em; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: .84em; font-weight: 700; }
.src-basis .gic { flex: none; width: 1em; height: 1em; }
