/* 導購 A（盒組頁「現在買划算嗎」）與 B（卡冊到價亮燈）。深藍預設、淺色看 html.theme-light。
 * 不用紅字價格、不用膠囊標籤列、不用愛心；酷澎按鈕用本站自己的樣子，不仿酷澎標誌與字體。 */
:root { --shop-good: #5fd38d; --shop-wait: #8fb6ff; --shop-soon: #f2b84b; --shop-plain: #9db0cc; --shop-panel: rgba(255,255,255,.035); --shop-line: rgba(176,208,255,.14); }
html.theme-light { --shop-good: #1d8a4b; --shop-wait: #2f6fd0; --shop-soon: #a76a00; --shop-plain: #5a6a84; --shop-panel: #ffffff; --shop-line: rgba(24,48,96,.13); }

/* ── A ── */
.shop-a { --tone: var(--shop-plain); margin-top: 22px; padding: 20px 22px 16px; border-radius: 18px; background: var(--shop-panel); border: 1px solid var(--shop-line); position: relative; }
html.theme-light .shop-a { box-shadow: 0 4px 14px rgba(24,48,96,.06); }
.shop-a.tone-good { --tone: var(--shop-good); } .shop-a.tone-wait { --tone: var(--shop-wait); } .shop-a.tone-soon { --tone: var(--shop-soon); }
.shop-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.shop-head h3 { margin: 0; font-size: 19px; letter-spacing: .02em; }
.shop-mocknote { font-size: 12px; color: var(--muted); border-left: 3px solid var(--shop-soon); padding-left: 8px; }
.shop-reftag { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 5px; border: 1.5px solid var(--muted); color: var(--muted); font-size: 12.5px; font-weight: 800; vertical-align: 2px; letter-spacing: .08em; }
.shop-ref { display: flex; gap: 8px; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--shop-wait) 9%, transparent); border: 1px dashed color-mix(in srgb, var(--shop-wait) 45%, transparent); font-size: 13px; line-height: 1.6; color: var(--ink); }
.shop-ref i { font-style: normal; color: var(--shop-wait); font-weight: 900; }
.shop-ref b { font-weight: 800; }
.shop-ref a { color: var(--shop-wait); font-weight: 700; white-space: nowrap; margin-left: 4px; }

/* 生命週期站牌：一條軌道，現在那一站亮燈 */
.shop-rail { list-style: none; margin: 18px 0 6px; padding: 0; display: flex; position: relative; }
.shop-rail::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 11px; height: 4px; border-radius: 2px; background: var(--shop-line); }
.shop-st { flex: 1 1 0; min-width: 0; position: relative; text-align: center; padding-top: 30px; }
.shop-st i { position: absolute; left: 50%; top: 4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--bg, #0a1222); border: 3px solid var(--shop-line); box-sizing: border-box; }
.shop-st.past i { background: var(--muted); border-color: var(--muted); opacity: .55; }
.shop-st.past::after { content: ""; position: absolute; left: 50%; right: -50%; top: 11px; height: 4px; background: var(--muted); opacity: .4; }
.shop-st.here i { width: 26px; height: 26px; margin-left: -13px; top: 0; background: var(--tone); border-color: var(--tone); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 22%, transparent), 0 0 18px color-mix(in srgb, var(--tone) 55%, transparent); }
.shop-st.here i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--tone); opacity: 0; animation: shop-ping 2.6s ease-out infinite; }
.shop-st b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.shop-st.here b { color: var(--ink); font-size: 15.5px; font-weight: 800; }
.shop-st em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; min-height: 1.4em; }
.shop-st.here em { color: var(--tone); font-weight: 700; }
.shop-now { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: var(--tone); letter-spacing: .1em; }
.shop-st.pre { flex: .8 1 0; }
.shop-rail:has(.pre)::before { left: 10%; }
@keyframes shop-ping { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

.shop-body { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
/* 三個讀數直排：左邊名稱、右邊數字 */
.shop-meters { display: grid; grid-template-rows: repeat(3, 1fr); border-radius: 12px; border: 1px solid var(--shop-line); background: rgba(255,255,255,.025); overflow: hidden; }
html.theme-light .shop-meters { background: #f5f8fc; }
.shop-m { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 12px; padding: 10px 16px; min-width: 0; }
.shop-m + .shop-m { border-top: 1px dashed var(--shop-line); }
.shop-m small { grid-column: 1; grid-row: 1; font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.shop-mock { font-style: normal; font-size: 11px; color: var(--shop-soon); font-weight: 700; margin-left: 6px; }
.shop-m b { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font: 900 24px/1.15 var(--font, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-m b.is-low { color: var(--shop-good); }
.shop-m p { grid-column: 1; grid-row: 2; margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }

.shop-verdict { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); background: color-mix(in srgb, var(--tone) 9%, transparent); }
.shop-lamp { flex: none; width: 12px; border-radius: 6px; background: var(--tone); box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 60%, transparent); }
.shop-verdict h4 { margin: 0 0 6px; font-size: 21px; color: var(--tone); letter-spacing: .02em; }
html.theme-light .shop-verdict h4 { color: color-mix(in srgb, var(--tone) 85%, #000); }
.shop-verdict p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ink); }

.shop-go { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 16px; }
.shop-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 12px; font-weight: 800; font-size: 15.5px; text-decoration: none;
  color: #06131f; background: linear-gradient(180deg, #8fe3d3, #5fc7b5); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.shop-btn:hover { filter: brightness(1.06); }
html.theme-light .shop-btn { color: #fff; background: linear-gradient(180deg, #1d6f8f, #155a76); }
.shop-disclose { font-size: 12.5px; color: var(--muted); padding: 3px 0 3px 10px; border-left: 2px solid var(--shop-line); }
.shop-wishwrap { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.shop-wish { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--shop-line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.shop-wish:hover { border-color: var(--shop-good); }
.shop-wish.hit { border-color: var(--shop-good); color: var(--shop-good); }
.shop-wishwrap small { font-size: 11.5px; color: var(--muted); }
.shop-toast, .shop-warn { flex-basis: 100%; font-size: 12px; color: var(--shop-soon); }
.shop-fine { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) { .shop-body { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .shop-a { padding: 16px 14px 14px; border-radius: 14px; }
  .shop-rail { margin-top: 30px; }
  .shop-st b { font-size: 12.5px; } .shop-st.here b { font-size: 13.5px; }
  .shop-st em { font-size: 11px; }
  .shop-m { padding: 9px 12px; } .shop-m b { font-size: 20px; } .shop-m small { font-size: 12.5px; } .shop-m p { font-size: 11.5px; }
  .shop-verdict h4 { font-size: 18px; } .shop-verdict p { font-size: 13px; }
  .shop-go { gap: 10px; } .shop-btn { flex: 1 1 100%; }
  .shop-wishwrap { margin-left: 0; align-items: flex-start; flex-basis: 100%; } .shop-wish { width: 100%; }
}

/* ── 卡冊卡袋：兩大分類框（全部卡）＋願望到價（願望清單） ──
 * 亮的是「卡袋」（塑膠套）本身，不貼著卡片畫框，免得和卡片自己的評價五星（藍）、貼紙五星（金）、彩虹框搞混。
 * 未上市＝紫色虛線卡袋＋斜紋＋上緣「預計 2027/01 上市」（使用者 11/18「新增兩大分類的框」）
 * 快退市＝琥珀色卡袋＋上緣「預計 2026/12 退市」
 * 到價（願望）＝綠色卡袋、慢慢呼吸＋下緣燈牌；又快退市時上緣標籤仍是琥珀色。 */
.pocket.shop-lit { container-type: inline-size; }
/* 分類框：卡袋染色＋邊線（未上市虛線、斜紋） */
.pocket.shop-cat-ret { --cat: #ffb547; } .pocket.shop-cat-pre { --cat: #b49cff; }
.pocket.shop-cat-ret { background: linear-gradient(180deg, color-mix(in srgb, var(--cat) 28%, transparent), color-mix(in srgb, var(--cat) 10%, transparent) 55%, color-mix(in srgb, var(--cat) 20%, transparent)); border-color: var(--cat); }
.pocket.shop-cat-pre { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--cat) 26%, transparent) 0 7px, color-mix(in srgb, var(--cat) 8%, transparent) 7px 14px); border-color: var(--cat); }
.pocket .shop-catring { position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px var(--cat), inset 0 0 18px color-mix(in srgb, var(--cat) 45%, transparent); }
.pocket.shop-cat-pre .shop-catring { box-shadow: inset 0 0 14px color-mix(in srgb, var(--cat) 40%, transparent); border: 2px dashed var(--cat); }
/* 到價燈（願望清單）：綠色內框，慢慢呼吸 */
.pocket.shop-lit-price { --lit: #4fe08a; }
.pocket .shop-ring { position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 3px var(--lit), inset 0 0 22px color-mix(in srgb, var(--lit) 55%, transparent); }
.pocket .shop-ring::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--lit), inset 0 0 26px 4px var(--lit); opacity: .25; animation: shop-breathe 2.8s ease-in-out infinite; }
/* 上緣分類標籤：從卡袋上緣垂下來的一片 */
.pocket .shop-tag { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 6; max-width: calc(100% - 16px); box-sizing: border-box; padding: 3px 10px 4px; border-radius: 0 0 9px 9px;
  background: var(--cat); color: #1a1206; font-size: 11.5px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.pocket.shop-cat-pre .shop-tag { color: #160c33; }
.pocket .shop-plate { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 5; padding: 4px 8px; border-radius: 7px; font-size: 11.5px; line-height: 1.35; color: #eafff2; background: rgba(6,20,14,.9); box-shadow: 0 0 0 1.5px var(--lit);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; transition: opacity .2s ease; }
.pocket .shop-plate b { color: var(--lit); font-weight: 800; }
.pocket .shop-tag .S, .al-row .shop-rowtag .S { display: none; }
@container (max-width: 132px) { .pocket .shop-plate .d, .pocket .shop-tag .L { display: none; } .pocket .shop-tag .S { display: inline; } .pocket .shop-plate { text-align: center; } .pocket .shop-tag { padding: 2px 6px 3px; font-size: 10.5px; } }
.pocket.shop-lit:hover .shop-plate, .pocket.shop-lit:focus-visible .shop-plate { opacity: 0; }
html.theme-light .pocket.shop-cat-ret { --cat: #e39a12; } html.theme-light .pocket.shop-cat-pre { --cat: #8d6ee6; }
html.theme-light .pocket.shop-cat-pre .shop-tag { background: #d7c9ff; } html.theme-light .pocket.shop-cat-ret .shop-tag { background: #ffc35a; }
html.theme-light .pocket.shop-lit-price { --lit: #19a85a; }
html.theme-light .pocket .shop-plate { background: rgba(255,255,255,.95); color: #15233d; }
html.theme-light .pocket .shop-plate b { color: color-mix(in srgb, var(--lit) 80%, #000); }
@keyframes shop-breathe { 0%, 100% { opacity: .15; } 50% { opacity: .6; } }
body.m-phone .pocket .shop-plate, body.m-slim .pocket .shop-plate { left: 4px; right: 4px; bottom: 4px; padding: 3px 5px; font-size: 10.5px; }

/* 和漲價紅框（price-frame.js 的「漲 +N%」在右上角）同時出現時，日期標籤改從卡袋下緣往上 */
.pocket.px-up .shop-tag { top: auto; bottom: 0; border-radius: 9px 9px 0 0; }
.pocket.px-up.shop-lit-price .shop-plate { bottom: 26px; }

/* 清單模式：左邊一條色帶＋名字後面的小字 */
.al-row.shop-cat-pre { box-shadow: inset 4px 0 0 #b49cff; } .al-row.shop-cat-ret { box-shadow: inset 4px 0 0 #ffb547; } .al-row.shop-lit-price { box-shadow: inset 4px 0 0 #4fe08a; }
.al-row .shop-rowtag { margin-left: 8px; font-size: 11.5px; font-weight: 700; color: #ffb547; }
.al-row.shop-cat-pre .shop-rowtag { color: #b49cff; }
html.theme-light .al-row .shop-rowtag { color: #a76a00; } html.theme-light .al-row.shop-cat-pre .shop-rowtag { color: #6a48c9; }

/* 右緣索引「願望」：綠色，亮燈數寫在下面；手機直排時改看左上角的數字 */
.al-tabs .tab[data-tab=wish] { --tc: #2b7a52; }
.al-tabs .tab .shop-count { position: absolute; left: -7px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: #4fe08a; color: #06210f; font-size: 11.5px; font-weight: 900; line-height: 20px; text-align: center; writing-mode: horizontal-tb; letter-spacing: 0; box-shadow: 0 0 0 2px var(--bg, #0a1222), 0 0 10px rgba(79,224,138,.7); }
body.m-slim .al-tabs .tab[data-tab=wish], body.m-slim .al-tabs .tab[data-tab=pre] { display: block; }
/* 索引顏色改看是哪一個索引（不看第幾個），中間插進「未上市」後其他索引的顏色不會跑掉 */
.al-tabs .tab[data-tab=all] { --tc: #2a4777; } .al-tabs .tab[data-tab=retiring] { --tc: #b1513f; } .al-tabs .tab[data-tab=new] { --tc: #2e8a7c; }
.al-tabs .tab[data-tab=top] { --tc: #6a4fb0; } .al-tabs .tab[data-tab=ultimate] { --tc: #2f6fae; } .al-tabs .tab[data-tab=mine] { --tc: #8a6a2c; }
/* 「未上市」索引（使用者 11/18「要，加索引」）：和卡袋的未上市框一樣是紫色斜紋 */
.al-tabs .tab[data-tab=pre] { --tc: #5a43b0; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 30%), repeating-linear-gradient(135deg, #6f56cc 0 6px, #4f3a9e 6px 12px); }
html.theme-light .al-tabs .tab[data-tab=pre] { background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 30%), repeating-linear-gradient(135deg, #7a60d8 0 6px, #6249c2 6px 12px); }

/* 動畫關、減少動態：燈照亮，但不閃、不呼吸 */
.shop-still .shop-st.here i::after, html.shop-still .pocket .shop-ring::after { animation: none; opacity: 0; }
html.shop-still .pocket .shop-ring::after { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .shop-st.here i::after { animation: none; opacity: 0; } .pocket .shop-ring::after { animation: none; opacity: .45; } }

/* ── 網頁提醒：頁首燈號＋進站提示卡 ── */
.shop-bell { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; margin-left: 10px; border-radius: 10px; border: 1px solid var(--shop-line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 700; white-space: nowrap; flex: none; }
.shop-bell i { width: 10px; height: 10px; border-radius: 50%; background: #ffc24d; box-shadow: 0 0 8px 1px #ffc24d; }
.shop-bell i.g { background: #4fe08a; box-shadow: 0 0 8px 1px #4fe08a; }
.shop-bell b { font-size: 15px; font-variant-numeric: tabular-nums; }
.shop-bell:hover { border-color: #4fe08a; }
@media (max-width: 760px) { .shop-bell { padding: 0 9px; margin-left: auto; } .shop-bell .lbl { display: none; } }
.shop-toast-card { position: fixed; z-index: 120; right: 18px; top: 66px; width: min(380px, calc(100vw - 24px)); box-sizing: border-box; padding: 14px 16px 12px; border-radius: 14px;
  background: #0f1f3d; color: #e9eff9; border: 1px solid rgba(176,208,255,.22); box-shadow: 0 18px 48px rgba(0,0,0,.5); font-size: 13.5px; }
.shop-toast-card.in { animation: shop-toast-in .35s ease-out; }
@keyframes shop-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.shop-toast-card .h { margin: 0 0 8px; font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.shop-toast-card .h i { width: 10px; height: 10px; border-radius: 50%; background: #4fe08a; box-shadow: 0 0 8px #4fe08a; }
.shop-toast-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shop-toast-card li { padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.05); border-left: 4px solid #4fe08a; }
.shop-toast-card li.y { border-left-color: #ffc24d; }
.shop-toast-card li a { color: inherit; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-toast-card li a b { color: #6fd6c4; }
.shop-toast-card li span { display: block; font-size: 12.5px; color: #9db0cc; margin-top: 2px; }
.shop-toast-card .more { margin: 6px 0 0; font-size: 12px; color: #9db0cc; }
.shop-toast-card .act { display: flex; gap: 10px; margin-top: 10px; }
.shop-toast-card .act a, .shop-toast-card .act button { flex: 1; height: 38px; border-radius: 10px; font: inherit; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.shop-toast-card .act a { background: #6fd6c4; color: #06131f; }
.shop-toast-card .act button { background: transparent; color: #e9eff9; border: 1px solid rgba(176,208,255,.3); }
.shop-toast-card .fine { margin: 8px 0 0; font-size: 11.5px; color: #8696b2; }
html.theme-light .shop-toast-card { background: #fff; color: #15233d; border-color: rgba(24,48,96,.14); box-shadow: 0 18px 48px rgba(24,48,96,.2); }
html.theme-light .shop-toast-card li { background: #f3f6fb; } html.theme-light .shop-toast-card li a b { color: #138f80; }
html.theme-light .shop-toast-card li span, html.theme-light .shop-toast-card .more, html.theme-light .shop-toast-card .fine { color: #5a6a84; }
html.theme-light .shop-toast-card .act a { background: #155a76; color: #fff; } html.theme-light .shop-toast-card .act button { color: #15233d; border-color: rgba(24,48,96,.2); }
@media (max-width: 600px) { .shop-toast-card { right: 12px; top: 60px; } }
@media (prefers-reduced-motion: reduce) { .shop-toast-card.in { animation: none; } }
