/* Benny Shop 視覺稿 — 品牌色取自 logo:深藍 #0021A4、紫 #6220EA、薰衣草紫 */
:root {
  --blue: #0021A4; --purple: #6220EA; --lav: #ECE8FD; --lav2: #D9D2FB;
  --bg: #FAF9FE; --card: #FFFFFF; --fg: #1C1B2E; --mut: #6B6880; --line: #E7E4F2;
  --ok: #16865A; --warn: #B45309; --bad: #C2263C;
  --radius: 16px; --shadow: 0 4px 18px rgba(40, 20, 120, .08); --shadow2: 0 10px 28px rgba(40, 20, 120, .14);
  --fs: 16px; --on: #fff;
}
:root[data-theme="dark"] {
  --blue: #8EA2FF; --purple: #A98BFF; --lav: #26223F; --lav2: #332D55;
  --bg: #121120; --card: #1B1930; --fg: #ECEAF7; --mut: #A6A2BF; --line: #2E2A48;
  --shadow: 0 4px 18px rgba(0, 0, 0, .35); --shadow2: 0 10px 28px rgba(0, 0, 0, .5); --on: #15122B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #8EA2FF; --purple: #A98BFF; --lav: #26223F; --lav2: #332D55;
    --bg: #121120; --card: #1B1930; --fg: #ECEAF7; --mut: #A6A2BF; --line: #2E2A48;
    --shadow: 0 4px 18px rgba(0, 0, 0, .35); --shadow2: 0 10px 28px rgba(0, 0, 0, .5); --on: #15122B;
  }
}
* { box-sizing: border-box; }
html { font-size: var(--fs); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.65 "Noto Sans TC", -apple-system, "Segoe UI", "Microsoft JhengHei", sans-serif; }
a { color: var(--blue); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 50; }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* ---------- 頁首 ---------- */
.util { background: var(--blue); color: #fff; font-size: .82rem; }
:root[data-theme="dark"] .util { background: #1E1A3A; }
.util .wrap { display: flex; gap: 10px; align-items: center; justify-content: flex-end; min-height: 34px; flex-wrap: wrap; }
.util .slogan { margin-right: auto; opacity: .9; }
.util button, .util select { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; padding: 1px 8px; cursor: pointer; }
.util select option { color: #111; }
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand img { height: 42px; display: block; }
:root[data-theme="dark"] .brand img { background: #fff; border-radius: 10px; padding: 3px 6px; }
.search { flex: 1; max-width: 460px; display: flex; background: var(--lav); border-radius: 999px; padding: 4px 6px 4px 16px; }
.search input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; }
.search button { border: 0; background: var(--purple); color: var(--on); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.icons { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; }
.icon-btn:hover { background: var(--lav); }
.logout-f { margin: 0; display: inline-flex; }
.logout-f .icon-btn { background: none; border: 0; font: inherit; cursor: pointer; }
.badge { background: var(--purple); color: var(--on); border-radius: 999px; font-size: .75rem; padding: 0 7px; }
.menu-btn { display: none; border: 0; background: var(--lav); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
nav.cats { border-top: 1px solid var(--line); }
nav.cats ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 6px 0; flex-wrap: wrap; }
nav.cats a { display: block; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--fg); font-weight: 600; }
nav.cats a:hover, nav.cats a.on { background: var(--lav); color: var(--purple); }
nav.cats li.has-sub { position: relative; }
nav.cats .sub { display: none; position: absolute; top: 100%; left: 0; background: var(--card); border-radius: 12px; box-shadow: var(--shadow2); padding: 6px; min-width: 170px; }
nav.cats li.has-sub:hover .sub, nav.cats li.has-sub:focus-within .sub { display: block; }

/* ---------- 共用元件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--purple); color: var(--on); border: 0; border-radius: 12px; padding: 12px 22px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn.ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn.light { background: #fff; color: #0021A4; }
.btn.block { width: 100%; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--purple); background: var(--lav); border-radius: 999px; padding: 2px 10px; }
.tag.digital { color: var(--on); background: var(--blue); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
h1, h2, h3 { line-height: 1.3; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 1.5rem; }
.muted { color: var(--mut); }
.small { font-size: .85rem; }
.price { color: var(--purple); font-weight: 800; }
.crumbs { font-size: .85rem; color: var(--mut); padding: 14px 0 0; }
.crumbs a { color: var(--mut); }

/* ---------- 首頁 ---------- */
.hero { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-top: 22px; }
.hero .copy { background: var(--blue); color: #fff; padding: 48px 44px; text-align: center; }
.hero .cta { display: flex; justify-content: center; align-items: center; gap: 40px; }
.hero .cta img { width: 72px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }
:root[data-theme="dark"] .hero .copy { background: #22206A; }
.hero h1 { font-size: 2.6rem; margin: 6px 0 12px; }
.hero p { opacity: .92; margin: 0 0 22px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { display: block; text-decoration: none; color: var(--fg); padding: 0 0 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow2); }
.cat-card .pic { height: 150px; display: grid; place-items: center; }
.cat-card h3 { margin: 14px 18px 4px; font-size: 1.15rem; }
.cat-card p { margin: 0 18px; color: var(--mut); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-card { display: flex; flex-direction: column; text-decoration: none; color: var(--fg); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow2); }
.p-card .pic { aspect-ratio: 4/3; display: grid; place-items: center; }
.p-card .pic img { width: 46%; }
.p-card .info { padding: 14px 16px 18px; }
.p-card h3 { font-size: 1rem; margin: 8px 0 6px; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise .panel h3 { margin: 4px 0 6px; font-size: 1.05rem; }

/* ---------- 分類頁 ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding-top: 18px; }
.filters h3 { font-size: 1rem; margin: 0 0 8px; }
.filters label { display: block; padding: 4px 0; cursor: pointer; }
.filters .sub-opt { padding-left: 22px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.toolbar select { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 10px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- 商品頁 ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; padding-top: 18px; }
.gallery .main { aspect-ratio: 4/3; border-radius: 20px; display: grid; place-items: center; overflow: hidden; }
.gallery .main img { width: 92%; border-radius: 12px; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 72px; height: 72px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; padding: 0; overflow: hidden; }
.thumbs button.on { border-color: var(--purple); }
.buybox h1 { font-size: 1.8rem; margin: 10px 0 6px; }
.buybox .price { font-size: 1.7rem; }
.stock { color: var(--ok); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--lav); cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 44px; text-align: center; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.opts button { border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 14px; cursor: pointer; }
.opts button.on { border-color: var(--purple); color: var(--purple); font-weight: 700; }
.plans { display: grid; gap: 10px; margin: 10px 0 16px; }
.plan { display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; }
.plan.on { border-color: var(--purple); background: var(--lav); }
.note-box { background: var(--lav); border-radius: 14px; padding: 12px 16px; font-size: .9rem; margin: 12px 0; }
.mail-alert { background: #FFF3CD; color: #5c3b00; border: 2px solid #E0A800; border-radius: 14px; padding: 14px 16px; margin: 14px 0; font-size: 1.05rem; font-weight: 700; line-height: 1.6; text-align: center; }
.mail-alert b { color: #B00020; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mail-alert { background: #3A2E00; color: #FFE08A; border-color: #E0A800; } :root:not([data-theme="light"]) .mail-alert b { color: #FF8A80; } }
:root[data-theme="dark"] .mail-alert { background: #3A2E00; color: #FFE08A; border-color: #E0A800; }
:root[data-theme="dark"] .mail-alert b { color: #FF8A80; }
.spec { width: 100%; border-collapse: collapse; }
.spec td { border-bottom: 1px solid var(--line); padding: 8px 4px; vertical-align: top; }
.spec td:first-child { color: var(--mut); width: 34%; }
.tabs { display: flex; gap: 6px; margin: 26px 0 10px; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--mut); }
.tabs button.on { background: var(--lav); color: var(--purple); }
.sticky-buy { display: none; }

/* ---------- 購物車 / 結帳 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding-top: 18px; align-items: start; }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item .pic { width: 84px; height: 84px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.line-item .pic img { width: 60%; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--purple); background: var(--lav); }
.choice.disabled { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; background: var(--lav); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 16px; cursor: pointer; font-weight: 700; }
.seg button.on { background: var(--card); color: var(--purple); box-shadow: var(--shadow); }
.bank { background: var(--lav); border-radius: 14px; padding: 14px 16px; }
.bank b { font-size: 1.15rem; letter-spacing: .5px; }

/* ---------- 會員 / 後台 ---------- */
.auth { max-width: 440px; margin: 34px auto; }
.status { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.s-wait { background: #FEF3C7; color: #92400E; } .s-paid { background: #DBEAFE; color: #1E40AF; }
.s-ship { background: #EDE9FE; color: #5B21B6; } .s-done { background: #DCFCE7; color: #166534; } .s-cancel { background: #FEE2E2; color: #991B1B; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { color: var(--mut); font-size: .85rem; font-weight: 600; }
table.list input { width: 90px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 4px 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi b { display: block; font-size: 1.5rem; color: var(--purple); }
.side-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.license { font-family: Consolas, monospace; background: var(--lav); border-radius: 8px; padding: 2px 8px; }
.scroll-x { overflow-x: auto; }

/* ---------- 頁尾 ---------- */
footer.site { background: #15123A; color: #D9D6F0; margin-top: 50px; padding: 40px 0 26px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
footer.site a { color: #D9D6F0; text-decoration: none; display: block; padding: 2px 0; }
footer.site a:hover { color: #fff; }
footer.site h4 { color: #fff; margin: 0 0 8px; }
footer.site .logo-chip { display: inline-block; background: #fff; border-radius: 12px; padding: 6px 10px; }
footer.site .logo-chip img { height: 38px; display: block; }
footer.site .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 14px; font-size: .82rem; opacity: .75; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 12px; transition: transform .25s; z-index: 60; }
.toast.show { transform: translateX(-50%) translateY(0); }
.policy h2 { margin-top: 1.8em; font-size: 1.2rem; }

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
  .grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .pdp, .two-col, .layout { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .util .slogan { flex-basis: 100%; text-align: center; font-size: .78rem; padding-top: 4px; }
  .util .wrap { justify-content: center; }
  .wrap { padding: 0 20px; }
  .bar { flex-wrap: wrap; gap: 10px; padding: 10px 20px; }
  .brand img { height: 34px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .icons .label { display: none; }
  .menu-btn { display: inline-block; }
  nav.cats { display: none; }
  nav.cats.open { display: block; }
  nav.cats ul { flex-direction: column; }
  nav.cats .sub { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; }
  .hero .copy { padding: 30px 22px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .cta { gap: 24px; }
  .hero .cta img { width: 56px; }
  .grid, .grid.three { gap: 12px; }
  .p-card .info { padding: 10px 12px 14px; }
  .row2 { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); box-shadow: 0 -6px 18px rgba(0,0,0,.12); padding: 10px 16px; gap: 10px; align-items: center; justify-content: space-between; }
  body.has-sticky { padding-bottom: 76px; }
  footer.site .cols { grid-template-columns: 1fr; }
}

/* 開站標語(每次開啟網站顯示一次,點一下或 5 秒後淡出) */
.splash { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: linear-gradient(135deg, #0021A4, #6220EA); color: #fff; text-align: center; padding: 16px; cursor: pointer; transition: opacity .5s, visibility .5s; }
.splash.hide { opacity: 0; visibility: hidden; }
.splash .chip { display: inline-block; background: #fff; border-radius: 16px; padding: 8px 14px; margin-bottom: 18px; }
.splash .chip img { height: 54px; display: block; }
.splash h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); font-size: clamp(1.8rem, 6vw, 3.4rem); margin: 0 0 10px; letter-spacing: .02em; animation: pop .6s cubic-bezier(.2,1.4,.4,1) both .15s; }
.splash p { margin: 0; opacity: .85; font-size: .9rem; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash h1 { animation: none; } }

/* 商品插圖(SVG)依容器縮放 */
.p-card .pic svg { width: 46%; height: auto; }
.cat-card .pic svg, .cat-card .pic img { height: 78%; width: auto; }
.gallery .main svg { width: 52%; height: auto; }
.thumbs svg, .thumbs img, .line-item .pic svg { width: 78%; height: auto; }
.plan small, .price small { font-size: .72em; font-weight: 500; }

/* 分類卡片短片 */
.cat-card .pic.vid { height: auto; aspect-ratio: 16 / 9; display: block; overflow: hidden; }
.cat-card .pic.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== 正式版新增(2026-10-03) ===== */
.p-card .pic img.photo, .gallery .main img.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.gallery .main img.photo { border-radius: 0; }
.noimg { font-size: 3rem; opacity: .5; }
.soon { text-align: center; padding: 34px 20px; }
.soon h3 { margin: 6px 0; }
.filters .filter-link { display: block; padding: 6px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.filters .filter-link.on, .filters .filter-link:hover { background: var(--lav); color: var(--purple); font-weight: 700; }
.filters .filter-link.sub-opt { padding-left: 26px; font-size: .92rem; }
.seg a, .seg-opt { border: 0; background: transparent; border-radius: 999px; padding: 6px 16px; cursor: pointer; font-weight: 700; color: var(--fg); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.seg a.on, .seg-opt:has(input:checked) { background: var(--card); color: var(--purple); box-shadow: var(--shadow); }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.err-box { border: 2px solid var(--bad); }
.err-box ul { margin: 6px 0 0; }
.err-text, .warn-text { color: var(--bad); font-size: .9rem; margin: 6px 0; }
.callout { background: #FFF4E5; color: #8A4B00; border: 1px solid #F5C77E; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-weight: 700; }
:root[data-theme="dark"] .callout { background: #3A2A10; color: #FFD9A0; border-color: #6B4E1E; }

/* 2026-10-11 修:系統是深色模式(沒手動切換)時,上面 [data-theme="dark"] 的元件覆寫沒套到,
   --blue 變淺色但字還是白色 → 頁首列/首頁橫幅對比不足、LOGO 沒白底。補上與手動深色相同的覆寫。 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .util { background: #1E1A3A; }
  :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 10px; padding: 3px 6px; }
  :root:not([data-theme="light"]) .hero .copy { background: #22206A; }
  :root:not([data-theme="light"]) .callout { background: #3A2A10; color: #FFD9A0; border-color: #6B4E1E; }
}
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-end { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ship-opt { align-items: center; }
.store-link { white-space: nowrap; font-size: .9rem; }
.store-box, .addr-box { padding: 4px 2px 6px; }
.qty input { width: 48px; text-align: center; border: 0; background: transparent; font-size: 1rem; color: var(--fg); }
.mini-line { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-pic { position: relative; width: 56px; height: 56px; flex: none; border-radius: 12px; background: var(--lav); display: grid; place-items: center; overflow: visible; }
.mini-pic img { width: 70%; max-height: 70%; object-fit: contain; border-radius: 8px; }
.mini-pic img.photo { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.mini-pic .noimg { font-size: 1.4rem; }
.mini-pic b { position: absolute; top: -6px; right: -6px; background: var(--fg); color: var(--bg); border-radius: 999px; font-size: .72rem; min-width: 20px; height: 20px; display: grid; place-items: center; }
.sum-side { position: sticky; top: 140px; align-self: start; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.filter-row .tag { text-decoration: none; }
.img-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.img-pick { display: grid; gap: 4px; font-size: .85rem; }
.img-pick img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.line-item .pic img.photo { width: 100%; height: 100%; object-fit: cover; }
.plan { text-decoration: none; color: var(--fg); }
.plan:hover { border-color: var(--purple); }
@media (max-width: 960px) { .sum-side { position: static; } }

[hidden] { display: none !important; }
@media (max-width: 640px) { .ship-opt { flex-wrap: wrap; } .store-link { margin-left: 28px; } }

/* 首頁輪播(2026-10-14):每 5 秒自動換、滑過暫停、可點圓點/左右鍵/滑動;減少動態偏好時不自動換 */
.hero-carousel { position: relative; background: var(--blue); }
:root[data-theme="dark"] .hero-carousel { background: #22206A; }
.hero-carousel .slides { display: grid; }
.hero-carousel .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.hero-carousel .slide.on { opacity: 1; visibility: visible; }
.hero-carousel .copy.ad { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; text-align: left; height: 100%; }
.hero-carousel .ad-text h2 { font-size: 2.1rem; margin: 8px 0 10px; line-height: 1.25; }
.hero-carousel .ad-text p { margin: 0 0 20px; }
.hero-carousel .ad-pic { display: flex; justify-content: center; }
.hero-carousel .ad-pic img { max-height: 260px; width: auto; max-width: 100%; border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); background: #fff; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.car-btn:hover, .car-btn:focus-visible { background: rgba(255, 255, 255, .42); }
.car-btn.prev { left: 10px; } .car-btn.next { right: 10px; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.car-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.car-dots button.on { background: #fff; width: 22px; border-radius: 6px; }
@media (max-width: 640px) {
  .hero-carousel .copy.ad { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .hero-carousel .ad-text h2 { font-size: 1.5rem; }
  .hero-carousel .ad-pic img { max-height: 170px; }
  .hero-carousel .copy { padding-bottom: 46px; }
  .car-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-carousel .slide { transition: none; } }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-carousel { background: #22206A; } }
.hero-carousel .copy { padding-bottom: 52px; }

/* LINE Pay Money 轉帳教學(2026-10-14) */
.lp-guide{margin:10px 0;border:1px solid var(--line,#e6ddd2);border-radius:14px;background:var(--card,#fff)}
.lp-guide>summary{cursor:pointer;padding:12px 14px;font-weight:700;list-style:none}
.lp-guide>summary::-webkit-details-marker{display:none}
.lp-guide>summary::after{content:'＋';float:right;opacity:.6}
.lp-guide[open]>summary::after{content:'－'}
.lp-body{padding:0 14px 14px}
.lp-lead{margin:0 0 8px}
.lp-acct{background:var(--soft,#f4f1fd);border-radius:10px;padding:8px 12px;margin-bottom:6px}
.lp-body h4{margin:16px 0 8px}
.lp-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.lp-steps li{min-width:0}
.lp-steps li{border:1px solid var(--line,#e6ddd2);border-radius:12px;padding:8px;background:var(--bg,#fff)}
.lp-img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--line,#e6ddd2);background:#fff}
.lp-svg svg{display:block;width:100%;height:auto}
.lp-steps p{margin:8px 0 0;font-size:.92rem;line-height:1.5}
.lp-steps p b{display:inline-block;min-width:1.5em;height:1.5em;line-height:1.5em;text-align:center;border-radius:50%;background:#06c755;color:#fff;margin-right:4px}
.lp-note{font-size:.95rem}
.lp-acct2{background:var(--soft,#f4f1fd);border-radius:8px;padding:6px 10px;word-break:break-all;font-size:.88rem}
.lp-after{margin:14px 0 4px;font-weight:700}
@media (max-width:480px){.lp-steps{grid-template-columns:repeat(2,1fr)}}
.lp-qrbox{display:block;margin-top:10px;text-align:center}
.lp-qr{display:block;margin:0 auto 6px;width:180px;max-width:70%;height:auto;border:1px solid var(--line,#e6ddd2);border-radius:10px;background:#fff;padding:6px}

/* 特殊客製第 2 張上傳欄:hidden 屬性要能蓋過 .slot/.scan 的 display(2026-10-16) */
.cp [hidden] { display: none !important; }
/* Email 網域打錯提醒(2026-10-16) */
.email-hint { margin: 4px 0 0; padding: 6px 10px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: .92rem; border: 1px solid #f0c78a; }
.email-hint button { margin-left: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid #c97b00; background: #fff; color: #8a4b00; cursor: pointer; font: inherit; }
.email-hint[hidden] { display: none; }
