/* 連結頁(/links/)與剪輯素材商店(/shop/)專用樣式;只有這兩頁載入,站上其他頁不受影響。
   沿用 style.css 的色票與字型變數;連結頁用站內夜間球場圖,商店用 AI 人像(首屏霓虹主視覺、商品封面、前後對比),不放真人照片。 */

/* ---------- 連結頁 ---------- */
.page-links { min-height: 100vh; }
.page-links::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: url("assets/shop-stadium-wide.webp") center 20% / cover no-repeat;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
}
.lk { width: 100%; max-width: 480px; margin: 0 auto; padding: 56px 16px 32px; text-align: center; }
.lk-head { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lk-avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px rgba(212, 176, 90, 0.16), 0 18px 48px -10px rgba(77, 225, 255, 0.45);
}
.lk-name { margin: 18px 0 0; font: 400 2.9rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.lk-handle { font: 500 1rem/1.4 var(--f-ui); color: var(--gold-hi); text-decoration: none; letter-spacing: 0.02em; }
.lk-handle:hover { text-decoration: underline; }
.lk-bio { margin: 6px 0 0; color: var(--ink2); font-size: 0.95rem; }

.lk-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.lk-item {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px;
  border-radius: var(--r-md); background: var(--glass); color: var(--ink); text-align: left; text-decoration: none;
  box-shadow: 0 0 0 1px var(--hair) inset;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.lk-item:hover, .lk-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.55) inset, 0 14px 32px -14px rgba(77, 225, 255, 0.5);
}
.lk-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.lk-item.is-primary {
  color: #1b1307;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--amber));
  box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.7) inset, 0 14px 36px -12px rgba(212, 176, 90, 0.6);
}
.lk-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.lk-ico img { width: 44px; height: 44px; object-fit: cover; }
.lk-ico svg { width: 22px; height: 22px; fill: currentColor; }
.is-primary .lk-ico { background: rgba(4, 7, 15, 0.85); }
.lk-ico-shop { color: var(--gold-hi); }
.lk-ico-yt { color: #ff4e45; }
.lk-ico-dc { color: #8c9eff; }
.lk-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.lk-text strong { font: 600 1.08rem/1.25 var(--f-ui); letter-spacing: 0.02em; }
.lk-text span { font-size: 0.86rem; line-height: 1.4; color: var(--ink2); }
.is-primary .lk-text span { color: rgba(27, 19, 7, 0.78); }
.lk-go { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; transition: transform 220ms var(--ease-out); }
.lk-item:hover .lk-go { transform: translateX(3px); }

.lk-foot { margin-top: 40px; color: var(--ink3); font-size: 0.78rem; line-height: 1.6; }
.lk-foot nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; }
.lk-foot nav a { color: var(--ink2); }
.lk-foot p { margin: 4px 0 0; }

/* ---------- 商店:首屏 ---------- */
/* 整張主視覺鋪滿首屏(人在右、左側留給標題);標題是網頁文字做的霓虹燈管:接近白的字芯＋青／金光暈,進場時閃兩下才亮穩。 */
.page-shop .sub-main { padding-top: 0; }
.page-shop .sub-main::before { display: none; }
.shop-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(620px, 100svh, 960px); padding: 120px 0 88px; background: var(--bg0);
}
.shop-hero-art { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }  /* 進場放大時不讓圖超出框(手機版框下緣會露一條) */
.shop-hero-art img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 85% 28%;
  animation: hero-in 2.4s var(--ease-out) both;
}
@keyframes hero-in { from { transform: scale(1.06); opacity: 0.35; } to { transform: none; opacity: 1; } }
/* 左邊壓暗給標題、底部收進頁面底色(圖的左半本來就暗,這層是保險) */
.shop-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 7, 15, 0.9) 0%, rgba(4, 7, 15, 0.74) 34%, rgba(4, 7, 15, 0.32) 46%, rgba(4, 7, 15, 0) 58%),
    linear-gradient(180deg, rgba(4, 7, 15, 0.5) 0%, transparent 16%, transparent 80%, var(--bg0) 100%);
}
.shop-hero-in { position: relative; width: 100%; }
.shop-hero-in > * { max-width: 560px; }
.shop-eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font: 600 0.8rem/1.4 var(--f-ui); letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold-hi);
}
.shop-eyebrow::before { content: ""; flex: none; width: 42px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--gold-hi)); box-shadow: 0 0 10px var(--cyan); }
.shop-eyebrow span { color: var(--cyan); }
/* 霓虹燈管字:字芯接近白、光暈三層(貼字、近、遠);不用漸層字、不用描邊重影 */
.shop-title { margin: 18px 0 24px; font: 400 clamp(4rem, 7.6vw, 8.8rem)/0.82 var(--f-display); letter-spacing: 0.02em; text-transform: uppercase; }
.shop-title span { display: block; }
.t-cy { color: #effdff; text-shadow: 0 0 1px #fff, 0 0 8px rgba(77, 225, 255, 0.95), 0 0 22px rgba(77, 225, 255, 0.7), 0 0 56px rgba(47, 160, 255, 0.45); }
.t-au { color: #fff6dc; text-shadow: 0 0 1px #fff, 0 0 8px rgba(255, 196, 77, 0.95), 0 0 22px rgba(255, 170, 40, 0.7), 0 0 56px rgba(255, 140, 20, 0.42); }
.js .shop-title .t-cy { animation: neon-on 1.6s steps(1) 0.5s both; }
.js .shop-title .t-au { animation: neon-on 1.6s steps(1) 0.9s both; }
@keyframes neon-on { 0% { opacity: 0.15; } 8% { opacity: 1; } 12% { opacity: 0.25; } 20% { opacity: 1; } 24% { opacity: 0.5; } 30%, 100% { opacity: 1; } }
.shop-lead { margin: 0; max-width: 470px; color: var(--ink); opacity: 0.88; font-size: 1.1rem; line-height: 1.65; }
.shop-lead a { color: var(--gold-hi); }
.shop-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.shop-cta .btn { min-width: 190px; }
.shop-trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.shop-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink2); }
.shop-trust li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.shop-trust li:nth-child(2)::before { background: var(--gold-hi); box-shadow: 0 0 8px var(--gold-hi); }

/* 跑馬燈:細、低調,同一種字;菱形青金交替 */
.shop-ticker {
  overflow: hidden; margin: 0 0 72px; padding: 15px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.07); background: rgba(4, 7, 15, 0.7);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.shop-ticker-run { display: flex; width: max-content; animation: shop-marquee 40s linear infinite; }
.shop-ticker-run span {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; white-space: nowrap;
  font: 500 0.86rem/1 var(--f-ui); letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink2);
}
.shop-ticker-run span::after { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.shop-ticker-run span:nth-child(even)::after { background: var(--gold-hi); box-shadow: 0 0 8px var(--gold-hi); }
@keyframes shop-marquee { to { transform: translateX(-50%); } }

/* 手機:主視覺換 4:5 直式裁切放上面(臉不被字蓋到),標題接在下面、往上疊一點 */
@media (max-width: 760px) {
  .shop-hero { display: block; min-height: 0; padding: 0 0 36px; }
  .shop-hero::before { display: none; }
  .shop-hero-art { position: relative; inset: auto; aspect-ratio: 4 / 5; background: var(--bg0); }
  .shop-hero-art img { object-position: 50% 0; }
  .shop-hero-art::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 7, 15, 0.45) 0%, transparent 18%, transparent 58%, var(--bg0) 94%);
  }
  .shop-hero-in { margin-top: -96px; }
  .shop-title { margin: 12px 0 16px; font-size: clamp(3.6rem, 18vw, 5.4rem); }
  .shop-lead { font-size: 1rem; }
  .shop-cta { margin-top: 24px; }
  .shop-cta .btn { flex: 1 1 140px; min-width: 0; padding-inline: 14px; white-space: nowrap; font-size: 0.95rem; }
  .shop-ticker { margin-bottom: 40px; }
}

/* ---------- 商店:付款後的感謝區塊 ----------
   平時不顯示;網址帶 #thanks(purchase.js 把沒有訂閱編號的素材包訂單從 /thanks/ 轉來)才蓋在整頁上 */
.shop-thanks { display: none; }
.shop-thanks:target {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 7, 15, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.shop-thanks-card {
  width: 100%; max-width: 520px; padding: 34px 32px 30px; border-radius: 22px;
  background: linear-gradient(180deg, #0c1322, #070b14);
  box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.35) inset, 0 40px 90px -40px #000, 0 0 90px -50px var(--cyan);
}
.shop-thanks-card h2 {
  margin: 14px 0 16px; font: 400 clamp(2.4rem, 8vw, 3.2rem)/0.95 var(--f-display); letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff6dc; text-shadow: 0 0 1px #fff, 0 0 10px rgba(255, 196, 77, 0.8), 0 0 28px rgba(255, 170, 40, 0.45);
}
.shop-thanks-card p { margin: 0 0 12px; color: var(--ink2); line-height: 1.6; }
.shop-thanks-card .shop-thanks-help { font-size: 0.88rem; color: var(--ink3); }
.shop-thanks-card .btn { margin-top: 10px; }
@media (max-width: 420px) { .shop-thanks-card { padding: 28px 20px 24px; } }

/* ---------- 商店:商品海報卡 ---------- */
/* 封面只留真圖、一條細分割線、兩個跟著線走的角標、大標;底部收成卡片底色讓標題站得住,不染色、不加顆粒、不發光字、不傾斜。 */
.shop { padding-bottom: 24px; }
.shop-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.p-wrap.is-featured { grid-column: 1 / -1; }
/* 寬螢幕:合購組橫幅一排,單品三張海報一排;中間寬度兩欄時,最後落單的那張橫跨整排 */
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1099px) {
  .shop-grid > .p-wrap:last-child:nth-child(even) { grid-column: 1 / -1; }
  .shop-grid > .p-wrap:last-child:nth-child(even) .p-cover { aspect-ratio: 16 / 9; }
}
.p-topaz { --c1: #4de1ff; }
.p-cc { --c1: #ffb347; }
.p-bundle { --c1: #f9e590; }
.p-tips { --c1: #ff5ca8; }

.p-card {
  --card: #070b14;
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: var(--card); box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.95);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
/* 細框畫在最上層(畫在卡片底下會被封面圖蓋掉) */
.p-card::after {
  content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset; transition: box-shadow 500ms var(--ease-out);
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 50px 90px -50px #000, 0 0 80px -46px var(--c1); }
.p-card:hover::after { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c1) 42%, transparent) inset; }

/* 封面:四張都是商店的 AI 人像;前後兩張都是真實算圖,不用網頁濾鏡假裝 */
.p-cover { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); }
.p-layer { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform 1600ms var(--ease-out); }
.p-card:hover .p-layer { transform: scale(1.045); }
.fx-upscale .p-after { background-image: url("assets/shop-cover-topaz-after.webp"); }
.fx-upscale .p-before { background-image: url("assets/shop-cover-topaz-before.webp"); }
.fx-grade .p-after { background-image: url("assets/shop-cover-cc-after.webp"); }
.fx-grade .p-before { background-image: url("assets/shop-cover-cc-before.webp"); }
.fx-combo .p-after { background-image: url("assets/shop-cover-bundle-after.webp"); }
.fx-combo .p-before { background-image: url("assets/shop-cover-bundle-before.webp"); }
/* 攻略:人像做成粉紫雙色調海報(圖本身就是,不是前後對比),一條往上衝的流量線一筆畫出來 */
.fx-viral .p-after { background-image: url("assets/shop-cover-tips.webp"); }
.p-graph { position: absolute; left: 0; right: 0; top: 18%; width: 100%; height: 42%; z-index: 1; overflow: visible; }
.p-graph polyline {
  fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  filter: drop-shadow(0 0 6px var(--c1));
  animation: p-draw 4.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes p-draw { 0% { stroke-dashoffset: 160; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* 前後:剪裁、分割線、兩個角標都吃同一個 --x(註冊成百分比才能補間);放大只動 .p-layer,剪裁留在 .p-clip,線才不會跟圖錯開 */
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.p-cover.is-split { --x: 50%; animation: p-x 8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes p-x { 0%, 100% { --x: 34%; } 50% { --x: 66%; } }
.p-clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.p-scan {
  position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 1; width: 1px; margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}
.p-lab {
  position: absolute; top: 18px; z-index: 3; padding: 6px 9px; border-radius: 6px; white-space: nowrap;
  font: 600 0.66rem/1 var(--f-ui); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); background: rgba(4, 7, 15, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.p-lab-a { right: calc(100% - var(--x) + 10px); }
.p-lab-b { left: calc(var(--x) + 10px); color: #0b1222; background: var(--c1); }

/* 只在底部收成卡片底色,讓大標站在乾淨的黑上(不染色、不加顆粒) */
.p-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 5, 10, 0.32) 0%, transparent 14%, transparent 56%, rgba(7, 11, 20, 0.72) 78%, var(--card) 95%);
}
.p-title {
  position: absolute; left: 26px; right: 26px; bottom: 20px; z-index: 3; display: flex; flex-direction: column;
  font: 400 clamp(3rem, 6.2vw, 4.6rem)/0.86 var(--f-display); letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--ink); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.p-title span:first-child { color: var(--c1); }

.p-body { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 6px 26px 26px; }
.p-tag { margin: 0; font: 500 0.7rem/1.2 var(--f-ui); letter-spacing: 0.32em; text-transform: uppercase; color: var(--c1); }
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: -4px; }
.p-name { margin: 0; font: 500 1.28rem/1.2 var(--f-ui); letter-spacing: 0.02em; color: var(--ink); }
.p-price { margin: 0; flex: none; display: flex; align-items: baseline; gap: 4px; font: 700 2.15rem/1 var(--f-num); color: #fff; }
.p-price small { font: 500 0.72rem/1 var(--f-ui); letter-spacing: 0.14em; color: var(--ink3); }
.p-deal { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -4px; }
.p-save {
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  font: 600 0.68rem/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c1) 55%, transparent) inset;
}
.p-was { margin: 0; text-align: right; font-size: 0.82rem; color: var(--ink3); }
.p-sum { margin: 0; color: var(--ink2); font-size: 0.95rem; line-height: 1.6; }
/* 合購組:所含三包的小封面(只放包名) */
.p-incl { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.p-incl li { display: flex; flex-direction: column; gap: 8px; font: 500 0.76rem/1.3 var(--f-ui); letter-spacing: 0.04em; color: var(--ink2); }
.p-incl i {
  display: block; aspect-ratio: 1 / 1; border-radius: 10px; background: #05070d center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 16px 30px -18px #000;
}
.p-incl .fx-upscale i { background-image: url("assets/shop-cover-topaz-after.webp"); }
.p-incl .fx-grade i { background-image: url("assets/shop-cover-cc-after.webp"); }
.p-incl .fx-viral i { background-image: url("assets/shop-cover-tips.webp"); }
/* 卡上只留「You get」「Needs」兩行 */
.p-meta {
  list-style: none; margin: 2px 0 0; padding: 14px 0 0; display: grid; gap: 7px; font-size: 0.88rem; color: var(--ink2);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.p-meta li { display: flex; gap: 12px; align-items: baseline; }
.p-meta b { flex: none; min-width: 66px; font: 500 0.66rem/1.5 var(--f-ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink3); }
.p-buy { margin-top: auto; }
.p-buy.is-disabled {
  opacity: 1; filter: none; font: 500 0.84rem/1.15 var(--f-ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink2);
  background: rgba(255, 255, 255, 0.025); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.p-dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; background: var(--c1);
  animation: p-pulse 1.8s ease-out infinite;
}
@keyframes p-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c1) 70%, transparent); }
  80%, 100% { box-shadow: 0 0 0 10px transparent; }
}

/* 合購組:手機正方形(16:11 時角標會被大標題蓋住),桌機橫放(左封面右內容)、標題更大 */
.is-featured .p-cover { aspect-ratio: 1 / 1; }
@media (min-width: 900px) {
  .p-card.is-featured { flex-direction: row; }
  .is-featured .p-cover { flex: 1.25; aspect-ratio: auto; min-height: 500px; }
  .is-featured .p-cover::after { background: linear-gradient(180deg, rgba(3, 5, 10, 0.32) 0%, transparent 14%, transparent 60%, rgba(7, 11, 20, 0.82) 100%); }
  .is-featured .p-body { flex: 1; justify-content: center; padding: 44px 44px 44px 40px; gap: 16px; }
  .is-featured .p-title { font-size: clamp(4rem, 6.4vw, 6.2rem); bottom: 26px; left: 32px; }
  .is-featured .p-name { font-size: 1.6rem; }
  .is-featured .p-price { font-size: 3rem; }
  .is-featured .p-buy { margin-top: 10px; }
}

/* ---------- 商店:步驟與問答 ---------- */
.shop-how, .shop-faq { max-width: 900px; margin: 88px auto 0; }
.shop-how h2, .shop-faq h2 { margin: 0 0 22px; text-align: center; font: 400 clamp(2.2rem, 5vw, 3rem)/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; }
.shop-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.shop-steps li {
  position: relative; overflow: hidden; display: grid; gap: 6px; padding: 22px 22px 24px; border-radius: var(--r-md);
  background: var(--glass); box-shadow: 0 0 0 1px var(--hair) inset;
}
.shop-steps b {
  font: 400 3.2rem/0.9 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--gold);
  filter: drop-shadow(0 0 10px rgba(212, 176, 90, 0.4));
}
.shop-steps strong { font: 600 1.1rem/1.3 var(--f-ui); }
.shop-steps span { color: var(--ink2); font-size: 0.93rem; line-height: 1.55; }
.shop-faq details {
  margin-top: 10px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--glass); box-shadow: 0 0 0 1px var(--hair) inset;
}
.shop-faq details[open] { box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.4) inset; }
.shop-faq summary { cursor: pointer; font: 600 1.02rem/1.4 var(--f-ui); }
.shop-faq details p { margin: 10px 0 0; color: var(--ink2); }

/* ---------- 商店:前後對比(compare.js) ----------
   整張圖拖中線比較:前圖墊底、後圖放在不跟著放大的 .cmp-clip 裡剪右半邊,放大只動裡面的圖,中線才會停在原處 */
.p-demo { align-self: flex-start; font: 600 0.88rem/1.3 var(--f-ui); color: var(--c1); text-decoration: none; letter-spacing: 0.04em; }
.p-demo::after { content: " \2193"; }
.p-demo:hover, .p-demo:focus-visible { text-decoration: underline; }
.shop-demo { max-width: 1100px; margin: 96px auto 0; text-align: center; scroll-margin-top: 96px; }
.shop-demo h2 { margin: 10px 0 12px; font: 400 clamp(2.4rem, 6vw, 3.6rem)/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; }
.shop-demo-lead { margin: 0 auto 28px; max-width: 620px; color: var(--ink2); }
.cmp-stage {
  --pos: 50%; --z: 1;
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 22px; background: var(--bg1);
  box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.22) inset, 0 50px 110px -50px rgba(0, 0, 0, 0.95), 0 0 90px -40px rgba(77, 225, 255, 0.35);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.cmp-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(var(--z)); transform-origin: 50% 50%; transition: transform 420ms var(--ease-out);
  -webkit-user-drag: none; pointer-events: none;
}
.cmp-clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 var(--pos)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(var(--gold-hi), var(--cyan)); box-shadow: 0 0 18px rgba(249, 229, 144, 0.7); }
.cmp-handle i {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(4, 7, 15, 0.78); box-shadow: 0 0 0 2px var(--gold-hi), 0 10px 30px -8px rgba(0, 0, 0, 0.9); backdrop-filter: blur(6px);
}
.cmp-handle i::before, .cmp-handle i::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent;
}
.cmp-handle i::before { left: 7px; border-right-color: var(--gold-hi); }
.cmp-handle i::after { right: 7px; border-left-color: var(--gold-hi); }
.cmp-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp-stage:has(.cmp-range:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 4px; }
.cmp-tag {
  position: absolute; top: 16px; z-index: 2; padding: 7px 13px; border-radius: 999px; pointer-events: none;
  font: 600 0.74rem/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(4, 7, 15, 0.72); color: var(--ink); box-shadow: 0 0 0 1px var(--hair) inset; backdrop-filter: blur(6px);
}
.cmp-tag-l { left: 16px; }
.cmp-tag-r { right: 16px; color: #0b1222; background: var(--gold-hi); box-shadow: 0 0 24px -6px var(--gold); }
.cmp-zoombar {
  position: absolute; right: 16px; bottom: 16px; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(4, 7, 15, 0.78); box-shadow: 0 0 0 1px var(--hair) inset; backdrop-filter: blur(8px);
}
.cmp-zbtn {
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; font: 600 1.25rem/1 var(--f-ui);
  color: var(--ink); background: rgba(255, 255, 255, 0.08); transition: background 160ms ease, color 160ms ease;
}
.cmp-zbtn[data-zoom="1"] { color: #0b1222; background: var(--gold-hi); }
.cmp-zbtn:hover:not(:disabled) { background: var(--cyan); color: #0b1222; }
.cmp-zbtn:disabled { opacity: 0.35; cursor: default; }
.cmp-zbtn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cmp-zlevel { min-width: 40px; text-align: center; font: 600 0.86rem/1 var(--f-ui); color: var(--ink); }
.cmp-hint { margin: 14px 0 0; color: var(--ink3); font-size: 0.86rem; }
.shop-demo-sub { margin: 56px 0 18px; font: 600 0.8rem/1.4 var(--f-ui); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.cmp-crops { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
.cmp-crop { margin: 0; }
.cmp-crop img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair) inset, 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.cmp-crop figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; color: var(--ink3); font-size: 0.84rem; }
.cmp-crop figcaption b { font: 600 0.78rem/1.3 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.cmp-crop + .cmp-crop figcaption b { color: var(--gold-hi); }
.cmp-note { margin: 22px auto 0; max-width: 640px; color: var(--ink3); font-size: 0.82rem; line-height: 1.6; }

@media (max-width: 760px) {
  .shop-demo { margin-top: 72px; }
  .cmp-stage { border-radius: 16px; }
  .cmp-tag { top: 10px; padding: 6px 10px; font-size: 0.66rem; }
  .cmp-tag-l { left: 10px; }
  .cmp-tag-r { right: 10px; }
  .cmp-handle i { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .cmp-handle i::before, .cmp-handle i::after { margin-top: -5px; border-width: 5px; }
  .cmp-handle i::before { left: 4px; }
  .cmp-handle i::after { right: 4px; }
  .cmp-zoombar { right: 10px; bottom: 10px; padding: 4px; }
  .cmp-zbtn { width: 32px; height: 32px; }
  .cmp-crops { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shop-grid { grid-template-columns: 1fr; gap: 22px; }
  .p-title { font-size: clamp(3rem, 15vw, 4.2rem); }
  .is-featured .p-title { font-size: clamp(3.2rem, 16vw, 4.6rem); }
}
@media (max-width: 420px) {
  .lk { padding-top: 40px; }
  .lk-name { font-size: 2.5rem; }
  .p-body { padding: 6px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lk-item, .lk-go, .p-card { transition: none; }
  .lk-item:hover { transform: none; }
  .shop-hero-art img, .shop-title span, .shop-ticker-run, .p-dot { animation: none; }
  .p-graph polyline { animation: none; stroke-dashoffset: 0; }
  .p-cover.is-split { animation: none; --x: 50%; }
  .p-layer, .p-card::after { transition: none; }
  .p-card:hover { transform: none; }
  .p-card:hover .p-layer { transform: none; }
  .cmp-img, .cmp-zbtn { transition: none; }
}
