/* TBUY KSHOP 官網 — 沿用 BVSHOP 版面:粉色頂欄、兩欄商品格、粉色分類摺疊、灰色頁尾 */
:root { --rad: 12px;
  color-scheme: light dark;
  --pink: #f2c4c4;
  --pink-deep: #e7a9a9;
  --ink: #2b2b2b;
  --ink-2: #555;
  --muted: #8a8f98;
  --line: #ececec;
  --bg: #ffffff; --page: #f7f7f8; --ftr: #ededef;
  --bg-soft: #f6f6f6;
  --line-2: #d9d9d9;
  --on-ink: #fff;
  --btn: var(--pink); --btn-ink: var(--ink);   /* 主按鈕：跟頂欄 banner 同一個粉；淺底配深字（白字對比不夠） */
  --sale: #d9534f;
  --radius: 6px;
  --maxw: 1000px;
  --hdr-h: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: "jf-openhuninn", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px; line-height: 1.7; padding-top: var(--hdr-h); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── 頂欄 ── */
.hdr {
  position: fixed; inset: 0 0 auto 0; height: var(--hdr-h); z-index: 50;
  background: var(--pink); color: #fff; display: flex; align-items: center; padding: 0 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.hdr .logo img { height: 44px; width: auto; border-radius: 3px; }
.hdr-right { margin-left: auto; display: flex; }
/* 電腦版:頂欄中間放搜尋框(手機版用放大鏡圖示)，左右對齊內容寬度 */
.hdr-search { display: none; }
@media (min-width: 860px) {
  .hdr { padding: 0 max(8px, calc((100% - var(--maxw)) / 2)); }
  .hdr-search { display: flex; align-items: center; gap: 8px; flex: 0 1 440px; margin: 0 auto; height: 38px; padding: 0 14px; border-radius: 19px; background: rgba(255,255,255,.92); color: #8a7a7c; }
  .hdr-search svg { width: 18px; height: 18px; flex: none; }
  .hdr-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: #333; }
  .hdr .hdr-search-ic { display: none; }
  #sf { display: none; }   /* 搜尋頁:頂欄已有搜尋框，不重複 */
  #sf + .hot-tags { margin-top: 20px; }
  .hdr-search + .hdr-right { margin-left: 0; }
}
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; }
/* 深淺色切換:小圖示，淺色時顯示月亮、深色時顯示太陽 */
.theme-btn { width: 30px; opacity: .85; }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .ic-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }
:root[data-theme="dark"] .theme-btn .ic-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ic-moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .ic-sun { display: block; }
}
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font-size: 11px; line-height: 18px; text-align: center; }

/* ── 側邊選單 ── */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(320px, 86vw); background: var(--bg); overflow-y: auto; transform: translateX(-100%); transition: transform .25s; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; background: var(--pink); color: #fff; font-weight: 700; }
.nav-item > a, .nav-item > button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 15px; }
.nav-sub { display: none; background: var(--bg-soft); }
.nav-item.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: 10px 16px 10px 32px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.nav-item .chev { width: 18px; height: 18px; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }

/* ── 版面 ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 12px; }
.loading { height: 50vh; display: grid; place-items: center; }
.loading::after { content: ""; width: 40px; height: 40px; border: 3px solid var(--line); border-top-color: var(--pink-deep); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.section-title { text-align: center; font-size: 18px; font-weight: 700; margin: 28px 0 14px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ── 分類分頁(首頁)── */
.tabs { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); margin: 16px 0 12px; }
.tabs-track { display: flex; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.tabs-track::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; padding: 10px 18px; border: 0; background: none; font-size: 15px; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.tabs-arrow { flex: 0 0 32px; height: 40px; border: 0; background: var(--bg); display: grid; place-items: center; }
.tabs-arrow svg { width: 18px; height: 18px; }

/* ── 商品格 ── */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; text-align: center; }
.card-img { aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; border-radius: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-name { margin: 10px 4px 4px; font-size: 15px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { margin: 0 4px; font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: 6px; font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.card-price del { color: var(--muted); font-weight: 400; font-size: 13px; margin-right: 6px; }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 3px; background: var(--pink); color: #fff; vertical-align: middle; margin-right: 4px; }
.more-btn { display: block; width: fit-content; margin: 24px auto 8px; padding: 10px 40px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--rad); }

/* ── 首頁輪播、介紹、分類摺疊 ── */
.banner { position: relative; margin-top: 28px; overflow: hidden; border-radius: 2px; aspect-ratio: 16/9; background: var(--bg-soft); }
.banner-track { display: flex; height: 100%; transition: transform .5s ease; }
.banner-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 22px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.55); padding: 0; }
.dots button.on { background: #fff; }
.intro { text-align: center; padding: 20px 8px 8px; color: var(--ink-2); }
.intro p { margin: 0 0 12px; }
.intro strong { color: var(--ink); }
.acc { margin: 12px auto 32px; max-width: 560px; }
.artist-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px auto 32px; max-width: 720px; }
.artist-chips a { padding: 6px 14px; border: 1px solid var(--pink); border-radius: 999px; font-size: 14px; color: var(--ink); background: var(--bg); }
.artist-chips a:hover { background: var(--pink); color: #fff; }
.acc-item { margin-bottom: 4px; background: var(--pink); color: #fff; }
.acc-item > button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 0; background: none; color: #fff; font-weight: 700; font-size: 15px; text-align: left; }
.acc-item .chev { width: 26px; height: 26px; padding: 4px; background: rgba(0,0,0,.45); border-radius: 50%; transition: transform .2s; }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-body { display: none; background: var(--bg); color: var(--ink); padding: 6px 0; border: 1px solid var(--pink); border-top: 0; }
.acc-item.open .acc-body { display: block; }
.acc-body a { display: block; padding: 8px 18px; font-size: 14px; }
.acc-body a:hover { background: var(--bg-soft); }

/* ── 分類頁 ── */
.crumbs { font-size: 13px; color: var(--muted); padding: 12px 0; }
.crumbs a:hover { color: var(--ink); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.cat-head h1 { font-size: 20px; margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; scrollbar-width: none; }
.chip { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; background: var(--bg); }
.chip.on { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; } }
.sort-sel { border: 1px solid var(--line); border-radius: 3px; padding: 6px 8px; background: var(--bg); font: inherit; font-size: 13px; }

/* ── 商品頁 ── */
.pd { display: grid; gap: 20px; padding-bottom: 90px; }
.pd > * { min-width: 0; }   /* 縮圖多(6 張以上)時不要把手機版撐寬 */
@media (min-width: 860px) { .pd { grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 12px; } }
/* 電腦版:商品描述放兩欄下面、置中(放右欄時，長圖一捲左邊整片空白) */
@media (min-width: 860px) {
  .pd-desc { grid-column: 1 / -1; width: 100%; max-width: 800px; margin: 12px auto 0; }
}
.gallery { position: relative; }
.g-main { aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; border-radius: 12px; }
.g-main img { width: 100%; height: 100%; object-fit: contain; }
.g-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.g-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; background: var(--bg-soft); border-radius: 8px; overflow: hidden; }
.g-thumbs button.on { border-color: var(--ink); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-name { font-size: 20px; line-height: 1.5; margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.pd-sub { color: var(--ink-2); margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pd-summary h3 { font-size: 15px; margin: 0 0 6px; }
.pd-summary p { margin: 0 0 16px; white-space: pre-line; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.pd-summary h3 .deadline { margin-top: -2px; }
.dl-bell { margin-left: 8px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--muted); font-size: 12px; font-weight: 400; vertical-align: middle; cursor: pointer; }
.dl-bell:hover { color: var(--ink); border-color: var(--ink); }
.dl-bell.on { color: #15803d; border-color: currentColor; }
.dl-form { display: flex; gap: 8px; margin: 4px 0 12px; }
.dl-form input { flex: 1; min-width: 0; }
.dl-form .btn { flex: none; padding: 0 16px; }
.pd-summary h3 + .batch { margin-top: 0; }
.pd-note { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.pd-price { font-size: 22px; font-weight: 700; margin: 4px 0 14px; }
/* 商品頁:價格緊接在商品名/副標下，分隔線改畫在價格下面 */
.pd-sub:has(+ .pd-top) { margin-bottom: 6px; padding-bottom: 0; border-bottom: 0; }
.pd-price.pd-top { margin: 4px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pd-price del { font-size: 15px; color: var(--muted); font-weight: 400; margin-right: 8px; }
.btn { display: block; width: 100%; padding: 11px; border: 0; border-radius: var(--rad); background: var(--btn); color: var(--btn-ink); font-size: 15px; text-align: center; }
.btn.light { background: var(--bg); color: var(--ink); border: 1px solid var(--pink-deep); }
.btn:disabled { background: #bbb; cursor: not-allowed; }
.fav { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--ink-2); font-size: 15px; }
.ptabs { display: flex; border-bottom: 1px solid var(--line); margin: 12px 0 0; }
.ptabs button { padding: 10px 0; margin-right: 24px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.ptabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.rich { padding: 16px 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; }
.rich img { height: auto; margin: 0 auto; }
.rich p { margin: 0 0 10px; }
.buybar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transition: transform .25s ease; }
.buybar .btn { flex: 1; }
.buybar .fav-ic { flex: 0 0 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink-2); font-size: 22px; line-height: 1; }
.buybar .fav-ic.on { color: #e05a6b; }
@media (max-width: 859px) { .pd [data-open-sheet], .pd .fav { display: none; } }
.buybar.hide { transform: translateY(110%); }
.fab-cart { transition: bottom .25s ease; }
body.bar-hidden .fab-cart { bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 860px) { .buybar { display: none; } }

/* ── 規格選擇面板 ── */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.4); display: none; }
.sheet.open { display: block; }
.sheet-panel { position: absolute; inset: auto 0 0 0; max-height: 86vh; overflow-y: auto; background: var(--bg); border-radius: 12px 12px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 860px) { .sheet-panel { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 480px; border-radius: 10px; } }
@media (min-width: 860px) { .sheet-panel.wide { width: 720px; max-height: 80vh; } }
.sheet-top { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet-top img { width: 84px; height: 84px; object-fit: cover; background: var(--bg-soft); border-radius: 8px; }
.sheet-top .pd-price { font-size: 18px; margin: 4px 0 0; }
.sheet-close { margin-left: auto; align-self: flex-start; border: 0; background: none; }
.opt-group h4 { margin: 14px 0 8px; font-size: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--rad); background: var(--bg); font-size: 14px; }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:disabled { color: #bbb; cursor: not-allowed; }   /* 售完、下架的規格：灰色就好，不劃線 */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; }
.qty input { width: 48px; height: 36px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* ── 購物車 ── */
.cart-row { display: grid; grid-template-columns: 20px 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-row img { width: 72px; height: 72px; object-fit: cover; background: var(--bg-soft); border-radius: 8px; }
.cart-row .nm { font-size: 14px; line-height: 1.45; }
.cart-row .cart-sel { width: 18px; height: 18px; margin-top: 27px; accent-color: var(--pink); }
.cart-row.off > :not(.cart-sel) { opacity: .45; }   /* 沒勾 = 這次不結帳 */
.cart-all { display: flex; gap: 8px; align-items: center; padding: 6px 0 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-all input { width: 18px; height: 18px; accent-color: var(--pink); }
.cart-all .muted { font-size: 12.5px; }
.cart-row .sp { font-size: 13px; color: var(--muted); }
.cart-row .rm { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 4px 0; }
.cart-sum { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; padding: 16px 0; }

/* ── 頁尾 ── */
.ftr { margin-top: 56px; background: var(--ftr); text-align: center; padding: 28px 16px 90px; color: var(--ink-2); font-size: 14px; }
.ftr-col { margin-bottom: 20px; }
.ftr-col h4 { margin: 0 0 8px; color: var(--ink); font-size: 16px; }
.ftr-col a { display: block; width: fit-content; margin: 0 auto; line-height: 2; }   /* 只有字可以點，空白處不是連結 */
.ftr-small { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
/* 電腦版:兩欄並排靠左，統編/版權放底線下一列(左右分開) */
@media (min-width: 860px) {
  .ftr { display: grid; grid-template-columns: max-content max-content 1fr; column-gap: 96px; text-align: left; padding: 36px max(24px, calc((100% - var(--maxw)) / 2 + 12px)) 28px; }
  .ftr-col { margin: 0; }
  .ftr-col a { margin: 0; }
  .ftr-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
  .ftr-bottom .ftr-small { margin: 0; }
}

/* ── 浮動購物車、提示 ── */
.fab-cart { position: fixed; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 45; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.15); display: grid; place-items: center; color: var(--ink); }
.fab-cart .badge { top: -2px; right: -2px; }
/* 回到最上方:購物車正上方，捲超過一個畫面才出現 */
.fab-top { position: fixed; right: 14px; bottom: calc(138px + env(safe-area-inset-bottom)); z-index: 45; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.15); display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: bottom .25s ease; }
.fab-top[hidden] { display: none; }
.fab-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.bar-hidden .fab-top { bottom: calc(78px + env(safe-area-inset-bottom)); }
body:has(.ship-compare[open]) .fab-top { display: none; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: rgba(40,40,40,.92); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ── 靜態頁、搜尋 ── */
.page { padding-top: 20px; padding-bottom: 40px; }
.page h1 { font-size: 20px; }
.search-box { display: flex; gap: 8px; margin: 16px 0; }
.search-box input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--rad); font: inherit; }
#app { min-height: calc(100vh - var(--hdr-h)); }   /* 內容少時頁尾不會浮在半空，底下留白 */
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ── 會員 / 結帳 / 訂單 ── */
.narrow { max-width: 640px; }
.page h2 { font-size: 16px; margin: 24px 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
.hint { font-size: 13px; color: var(--ink-2); background: var(--bg-soft); padding: 10px 12px; border-radius: 4px; }
.center { text-align: center; }
.link { color: #2f6fb3; text-decoration: underline; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: var(--rad); overflow: hidden; margin-bottom: 14px; }
.seg a { text-align: center; padding: 9px; }
.seg a.on { background: var(--btn); color: var(--btn-ink); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--rad); font: inherit; color: var(--ink); background: var(--bg); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--pink-deep); outline-offset: 0; border-color: transparent; }
.form .check, label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.form .check input { margin-top: 4px; }
.form.inline { grid-template-columns: 1fr auto; align-items: end; margin-top: 12px; }
.form-err { color: var(--sale); font-size: 14px; margin: 0; }
.form-err .old-mem { display: block; color: var(--ink, inherit); margin-top: 6px; line-height: 1.6; }
.btn.small { width: auto; padding: 8px 16px; font-size: 14px; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; background: var(--bg-soft); border-radius: 6px; }
.credit { margin-top: 4px; }
.member-links { display: grid; margin: 14px 0; border-top: 1px solid var(--line); }
.member-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.order-row { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.or-top, .or-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.or-items { font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; }
.st { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: var(--bg-soft); margin-right: 4px; color: var(--ink-2); }
.st.ok { background: #e6f4ea; color: #1e7b3a; }
.st.warn { background: #fdecea; color: #b3261e; }
.st.bad { background: #b3261e; color: #fff; }
.st.todo { background: #c0392b; color: #fff; font-weight: 600; }   /* 要客人動手的事 */
.todo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0245e; margin-left: 4px; vertical-align: middle; }
.icon-btn .todo-dot { position: absolute; top: 6px; right: 4px; margin: 0; }
.todo-dot[hidden] { display: none; }
/* 訂單頁:付款、商品兩條狀態＋進度條 */
.o-state { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 12px 0 16px; }
.o-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 4px 0; }
.o-k { width: 36px; flex: none; font-size: 13px; color: var(--muted); }
.o-v { font-weight: 700; font-size: 15px; }
.o-sub { flex-basis: 100%; padding-left: 46px; font-size: 13px; color: var(--muted); }
.o-steps { display: flex; list-style: none; margin: 12px 0 2px; padding: 0; counter-reset: s; }
.o-steps li { flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--muted); padding-top: 18px; }
.o-steps li::before { content: ''; position: absolute; top: 4px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--line); z-index: 1; }
.o-steps li + li::after { content: ''; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.o-steps li.done, .o-steps li.on { color: var(--ink); }
.o-steps li.on { font-weight: 700; }
.o-steps li.done::before, .o-steps li.on::before, .o-steps li.done + li::after, .o-steps li.on::after { background: var(--pink-deep); }
.o-cancel { background: var(--bg-soft); border-radius: 8px; padding: 12px 14px; margin: 12px 0; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.o-cancel p { margin: 4px 0 0; color: var(--muted); }
.s2-lines { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.s2choose .form { margin-top: 10px; }
.o-batch { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.s2calc { display: grid; gap: 6px; flex-basis: 100%; }
.s2x { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form .s2x label.chk { display: flex; align-items: center; gap: 6px; width: 96px; flex: none; min-width: 0; }
.form .s2x input:not([type=checkbox]) { width: 120px; flex: none; padding: 6px 10px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 14px; margin: 12px 0; }
.kv > span:nth-child(odd) { color: var(--muted); }
.li-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.li-row .r { text-align: right; white-space: nowrap; }
.li-row .li-img { width: 56px; height: 56px; object-fit: cover; flex: none; border-radius: 8px; background: var(--bg-soft); }
.li-row .li-main { flex: 1; min-width: 0; }
.li-row a.li-name { color: inherit; text-decoration: none; }
.li-row a.li-name:hover { text-decoration: underline; }
.multi-note { font-size: 13px; line-height: 1.7; background: #fff8e6; border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.sum { margin: 14px 0; display: grid; gap: 6px; font-size: 14px; }
.sum > div { display: flex; justify-content: space-between; }
.sum .total { font-size: 17px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); }
.done-box { text-align: center; padding: 16px; background: #fff7f7; border: 1px solid var(--pink); border-radius: 6px; margin-bottom: 12px; }
.done-box h1 { margin: 4px 0 8px; }
.o-done { background: #fff7f7; border: 1px solid var(--pink); border-radius: 8px; padding: 10px 14px; text-align: center; font-weight: 600; margin: 0 0 12px; }
.o-head { display: flex; align-items: center; gap: 10px; }
.o-head h1 { margin: 0; }
.o-copy { border: 1px solid var(--line); background: none; border-radius: 6px; font-size: 12px; padding: 2px 8px; color: var(--ink-2); cursor: pointer; }
.o-meta { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.o-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }   /* 訂單頁:商品／配送／付款 */
.o-card h2 { font-size: 15px; margin: 0 0 4px; }
.o-card .kv { margin: 6px 0 0; grid-template-columns: 72px 1fr; }
.o-card .sum { margin: 10px 0 0; }
.li-row .r .muted { font-size: 12px; }
.o-bank { margin-top: 10px; font-size: 14px; }
.o-bank summary { cursor: pointer; color: var(--ink-2); }
.bank { margin: 8px 0; }
.bank .ms-row { margin: 2px 0; }
.bank .ms-row .btn, .ms-row .btn.small { padding: 4px 12px; min-height: 0; height: auto; font-size: 13px; line-height: 1.4; }
.box { background: var(--bg-soft); padding: 12px 14px; border-radius: 4px; }
.rich.small { font-size: 13px; }
.radios { display: grid; gap: 8px; }
.radio { display: flex !important; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio span { flex: 1; display: flex; justify-content: space-between; color: var(--ink); }
.radio em { font-style: normal; color: var(--ink-2); }
.rich h3 { font-size: 15px; margin: 18px 0 6px; }

/* ── 管理後台 ── */
.admin { max-width: 980px; }
.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.adm-tabs a { padding: 10px 16px; border-bottom: 3px solid transparent; white-space: nowrap; }
.adm-tabs a.on { border-bottom-color: var(--ink); font-weight: 700; }
.adm-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.adm-filter input, .adm-filter select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--rad); font: inherit; font-size: 14px; background: var(--bg); }
.adm-filter input { flex: 1 1 200px; }
.adm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.adm-row .r { text-align: right; }
.adm-row.prod img { width: 52px; height: 52px; object-fit: cover; background: var(--bg-soft); flex: 0 0 52px; }
.adm-row.prod .nm { flex: 1; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.adm-form { padding: 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.row-btns { display: flex; gap: 8px; justify-content: flex-end; }
.adm-form textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.adm-form details summary { cursor: pointer; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.var-tbl { display: grid; gap: 6px; }
.var-tbl .vh, .var-tbl .vr { display: grid; grid-template-columns: 44px minmax(0, 2fr) repeat(4, minmax(0, 1fr)) 40px; gap: 6px; align-items: center; font-size: 13px; }
.var-tbl .vimg { width: 40px; height: 40px; padding: 0; border: 1px dashed var(--line); background: var(--bg-soft); border-radius: 4px; color: var(--muted); overflow: hidden; }
.var-tbl .vimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vimg-pick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--bg-soft); border-radius: 6px; }
.vimg-pick button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--bg); font-size: 12px; }
.vimg-pick button.on { border-color: var(--ink); }
.vimg-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.var-tbl .vh { color: var(--muted); }
.var-tbl input:not([type=checkbox]) { padding: 7px 8px !important; }
.switch { position: relative; width: 44px; height: 24px; flex: 0 0 44px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #ccc; border-radius: 12px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: #3aa856; }
.switch input:checked + span::before { transform: translateX(20px); }

/* 售完標籤、測試站提示 */
.card-img { position: relative; }
.soldout { position: absolute; z-index: 1; top: 8px; left: 8px; background: rgba(43,43,43,.85); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.test-bar { position: fixed; z-index: 55; top: var(--hdr-h); left: 0; right: 0; background: #fff3cd; color: #7a5b00; text-align: center; font-size: 12px; padding: 4px 8px; }
body.has-test-bar { padding-top: calc(var(--hdr-h) + 24px); }

/* 圖片放大檢視 */
.g-main img, .rich img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; padding: 16px; }
.lb.open { display: flex; }
.lb-box { position: relative; width: min(100%, 600px, calc(80vh - 36px));   /* 圖區正方形(商品圖多為正方形)；長圖在圖區內上下滑 */
  background: var(--bg); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.lb-box .lb-track { flex: none; aspect-ratio: 1; }
.lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pinch-zoom; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: center; overflow: auto; display: flex; align-items: center; justify-content: center; touch-action: pan-x pan-y pinch-zoom; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-slide.tall { align-items: flex-start; }
.lb-slide.tall img { max-height: none; width: 100%; }
.lb-close { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.lb-count { height: 36px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }   /* 頁數放在圖下方的白條，不壓到圖上的品名 */
.lb-count:empty { display: none; }
.lb-count b { color: var(--text, #222); font-weight: 600; font-size: 14px; }
.lb-count small { margin-left: 8px; font-size: 11px; color: var(--muted); }
.lb-nav { position: absolute; top: calc(50% - 18px); transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; display: none; place-items: center; z-index: 2; }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
@media (hover: hover) { .lb-nav { display: grid; } }

/* 銷售狀態 */
.tag.in { background: #8cc9a3; }
.tag.s2 { background: #c9a35c; }
.tag.bd { background: #7aa7c7; }
.chips.sub { margin-top: -4px; padding-left: 12px; border-left: 2px solid var(--line); }
.chips.sub .chip { font-size: 13px; padding-top: 5px; padding-bottom: 5px; }
.bd-note .tag { margin-right: 6px; }
.s2-note { font-size: 13px; line-height: 1.6; background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; margin: 10px 0; color: var(--ink-2); }
.corner { position: absolute; z-index: 1; top: 6px; left: 6px; }
.corner .tag { margin: 0; font-size: 11px; padding: 2px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.card-img.off img { opacity: .45; filter: grayscale(.4); }
.state-txt { display: inline-block; color: var(--muted); font-weight: 500; font-size: 14px; letter-spacing: 1px; }
.pd-price .state-txt { font-size: 18px; }
.deadline { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 400; color: #b0607a; background: #fdf0f3; padding: 1px 8px; border-radius: 10px; vertical-align: middle; }
.opt small { margin-left: 6px; font-size: 11px; color: var(--muted); }
.opt:disabled small { text-decoration: none; }
.split-note { margin: 10px 0 0; font-size: 13px; color: #8a5a00; background: #fff6e0; padding: 8px 10px; border-radius: 4px; }
.li-tag { margin-left: 6px; }
.sale-box { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: grid; gap: 10px; }
.sale-box legend { font-size: 14px; padding: 0 6px; }
.card-img .ov { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(60,60,60,.45); color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.card-img.off img { opacity: 1; filter: none; }
.sale-notice { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--ink-2); background: #faf7fb; border-radius: 6px; padding: 10px 12px; display: grid; gap: 6px; }
.pre-confirm { border: 1px solid #e6c9d6; background: #fdf6f9; border-radius: 6px; padding: 12px 14px; font-size: 14px; }
.pre-confirm ul { margin: 8px 0; padding-left: 20px; }
.pre-confirm p { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.sale-notice, .pre-confirm p { white-space: pre-line; }
.notice-head { font-size: 14px; color: var(--ink); }
.notice-ul { margin: 2px 0 0; padding-left: 18px; }
.notice-ul li { margin: 2px 0; }
.pre-confirm .notice-ul { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.batch { margin: -6px 0 14px; font-size: 15px; color: #6b4e8a; }
.batch-sm { font-size: 12px; color: #6b4e8a; margin-top: 2px; }
.batch-list { display: grid; gap: 6px; }
.batch-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.batch-row span:first-child { flex: 1; }
.batch-edit { display: flex; gap: 8px; flex-wrap: wrap; }
.batch-edit { align-items: center; }
.batch-edit input:not([type=checkbox]) { flex: 1 1 200px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; }
.batch-edit #bDate { flex: 0 0 170px; }
.batch-edit .check { flex: none; white-space: nowrap; font-size: 13px; }
.batch-edit > .btn { flex: none; width: auto; }
.batch-edit .b-steps { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.batch-edit .b-steps .btn { width: auto; }
.batch-edit .b-steps .link { background: none; border: 0; padding: 4px 6px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.batch-edit.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; border-top: 1px solid var(--line); }
.adm-row.prod input[type=checkbox] { flex: 0 0 auto; width: 18px; height: 18px; }
.batch .upd, .batch-sm .upd { font-size: 12px; color: var(--muted); margin-left: 4px; }

/* 轉帳浮窗 / 訂單頁付款提醒 */
.pay-panel { display: flex; flex-direction: column; gap: 10px; }
.pay-l5 { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pay-l5 input { font-size: 20px; letter-spacing: 6px; padding: 10px 12px; text-align: center; }
.pay-later { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 6px; }
.pay-alert { background: #fff4e5; border: 1px solid #f5c98a; border-radius: 8px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.pay-alert p { margin: 6px 0; }
.myship-box { background: #fff4e5; border: 1px solid #f5c98a; border-radius: 8px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }   /* 賣貨便下單提示，跟付款提示同一種醒目樣式 */
.myship-box p { margin: 6px 0; }
.myship-box .btn:not(.small) { display: block; text-align: center; margin-top: 10px; }
.myship-box .btn.ms-done { width: 100%; margin-top: 8px; }   /* 我已在賣貨便下單 */
.myship-box details.o-bank { margin-top: 6px; }
.ms-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.ms-row span { width: 72px; flex: none; color: var(--muted); font-size: 13px; }
.ms-row b { flex: 1; }
.pay-ok { background: #eef8f1; border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 14px; color: #15803d; }

/* 結帳:物流卡片＋比較表 */
.ship-cards { display: grid; gap: 8px; }
.ship-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; }
.ship-notes { margin: 10px 0 12px; padding-left: 1.2em; line-height: 1.7; }
.ship-notes li { margin-bottom: 4px; }
.ship-card.on { border-color: var(--pink-deep); background: #fff8f8; }
.ship-card input { margin-top: 4px; }
.sc-main { flex: 1; min-width: 0; }
.sc-top { display: flex; justify-content: space-between; gap: 8px; }
.sc-price { color: var(--muted); white-space: nowrap; font-size: 14px; }
.sc-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ship-cards:not(.picked) .sc-sub, .ship-card:not(.on) .sc-sub { display: none; }
.ship-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.ship-card:not(.on) .sc-tier { display: none; }
.sc-tier { margin-top: 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.sc-tier select { padding: 6px 8px; font-size: 14px; }
.sc-tier span { color: #15803d; }
.ship-compare { margin: -4px 0 10px; font-size: 14px; }
.ship-compare summary { cursor: pointer; color: #2563eb; font-size: 13px; padding: 4px 0; }
.ship-compare table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0; table-layout: fixed; }
.ship-compare tr > :first-child { width: 4.2em; }
.ship-compare td { overflow-wrap: anywhere; }
.rate-pop table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 8px; }
.rate-pop th, .rate-pop td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.rate-pop th { color: var(--muted); font-weight: normal; white-space: nowrap; }
.rate-pop td:not(:first-child) { white-space: nowrap; }
.ship-compare th, .ship-compare td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.ship-compare tr th:first-child { color: var(--muted); font-weight: normal; white-space: nowrap; }
.ship-compare small { color: var(--muted); }
body:has(.ship-compare[open]) .fab-cart { display: none; }
.form .ship-card { display: flex; flex-direction: row; }
.form .sc-tier select { width: auto; flex: 1; min-width: 180px; }
.form .ship-card > input { width: auto; flex: none; margin: 3px 0 0; }
/* 單選／勾選框改用品牌粉色(取代預設藍色) */
input[type=radio], input[type=checkbox] { accent-color: var(--pink); }   /* 全站(含浮窗)統一粉色，不用瀏覽器預設藍 */

.ins-box { margin: 8px 0 0; padding: 10px 12px; background: #fff8f8; border-radius: 8px; font-size: 14px; }
.ins-box .hint { margin: 4px 0 0 26px; color: #b45309; }
.ins-box .hint:empty { display: none; }

.ship-refund { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; }
.ship-refund label { flex: 1; min-width: 160px; }
/* 後台訂單表單:狀態上色、物流待辦醒目、退款／取消收合 */
.adm-form .st-sel { font-weight: 600; }
.adm-form .st-sel.ok { background: #e6f4ea; border-color: #9ccfaa; color: #1e7b3a; }
.adm-form .st-sel.warn { background: #fdecea; border-color: #f0a8a1; color: #b3261e; }
.ship-refund.act { display: grid; gap: 8px; justify-items: start; background: #fff8e6; border: 1px solid #f3d38a; border-left: 4px solid #e0a526; margin: 12px 0; }
.ship-refund.act.hot { background: #fdecea; border-color: #f0a8a1; border-left-color: #c0392b; }
.ship-refund.act label { width: 100%; }
.act-h { font-weight: 700; font-size: 15px; }
.act-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.act-chips .st { font-size: 13px; padding: 2px 10px; margin: 0; }
.osf-more { margin: 4px 0 8px; }
/* 客訂單暫存 */
#kdf .row-btns .btn { width: auto; padding: 11px 24px; }
.kd-drafts { display: grid; gap: 6px; background: var(--bg-soft); }
.kd-draft { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kd-draft.on { font-weight: 600; }
.kd-draft > span:last-child { display: flex; gap: 6px; }

/* 後台:商品圖片管理、分類勾選 */
.img-mgr { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.img-mgr .im { position: relative; width: 96px; }
.img-mgr .im img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--bg-soft); display: block; }
.adm-row.prod > img, .img-mgr .im img, .li-row .li-img { cursor: zoom-in; }
.pd-promo { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.pd-promo h3 { font-size: 15px; margin: 0 0 6px; }
.pd-promo p { margin: 4px 0; white-space: pre-line; font-size: 14px; line-height: 1.6; }
.pd-promo .promo-end { color: var(--muted); font-size: 13px; }
.pd-promo.ended h3 { color: var(--muted); }
.promo-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 130px)); gap: 8px; margin: 8px 0 4px; align-items: start; }   /* 特典圖縮成小圖，點了看大圖 */
#catPromo .pd-promo { margin: 0 0 16px; }
.promo-img { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); cursor: zoom-in; }
.promo-img img { display: block; width: 100%; height: auto; }
.pr-img .lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pr-cands { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.pr-cands button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg); }
.pr-cands button.on { border-color: var(--pink-deep); }
.pr-cands img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pr-prev { max-width: 360px; margin: 6px 0 8px; cursor: default; }
/* 宅配地址 */
.addr-row { display: flex; gap: 8px; margin-bottom: 8px; }
.addr-row select { flex: 1; min-width: 0; }
#homeFields textarea[name=intlAddr] { width: 100%; }
.dlv-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 10px 0 4px; }
.dlv-opts .small { width: 100%; }
.dlv-opts .check { margin: 0; }
/* 7-11 選店 */
#cvsFields > label { margin-bottom: 6px; }
.cvs-pick { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg-soft); line-height: 1.6; }
.cvs-pick span { display: block; font-size: 13px; color: var(--muted); }
#cvsMap { width: 100%; margin-bottom: 4px; }
/* 後台商品總表 */
.ptop { padding-bottom: 4px; }
.ptop .adm-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ptop .adm-filter input { flex: 1 1 55%; min-width: 0; }
.ptop .adm-filter select { flex: 1 1 30%; min-width: 0; }
.ptop .newp { float: right; font-size: 13px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px; }
.pchip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.pchip b { font-weight: 700; margin-left: 2px; }
.pchip.on { background: var(--pink); border-color: var(--pink-deep); color: var(--ink); }
.pgrp { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; overflow: hidden; }
.pgrp summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; cursor: pointer; background: var(--bg-soft); }
.pgrp summary::-webkit-details-marker { display: none; }
.pgrp summary .gname { font-weight: 700; flex: 1 1 auto; min-width: 0; }
.pgrp summary .gcnt { color: var(--muted); font-size: 13px; }
.pgrp summary .gsum { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px; padding-left: 26px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.prow img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex: 0 0 48px; cursor: zoom-in; }
.prow .pnm { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; }
.prow .psub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ps { display: inline-block; font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.ps.open { background: #e3f4e6; color: #2f7a3c; border-color: #bfe3c6; }
.ps.always { background: #e6f4f1; color: #23756a; border-color: #bfe2db; }
.ps.closed { background: var(--bg-soft); color: var(--muted); border-color: var(--line); }
.ps.instock { background: #efe8f7; color: #6b4e8a; border-color: #dccdee; }
.ps.soldout, .ps.off { color: var(--muted); }
.ps.promo { background: #fdecef; color: #a3485a; border-color: #f4ccd4; }
/* 特典批次設定視窗(商品總表) */
.promo-dlg { box-sizing: border-box; width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 48px); overflow: hidden auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
/* 視窗裡所有東西都不准把寬度撐開(特典圖那排在框內左右滑) */
.promo-dlg .form, .promo-dlg .form > *, .promo-dlg .pr-img, .promo-dlg .pk-notes, .promo-dlg .g3 > * { min-width: 0; }
.promo-dlg .pr-cands { max-width: 100%; }
.promo-dlg .lbl { display: block; white-space: normal; font-size: 14px; color: var(--ink-2); }
.promo-dlg .hint { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.promo-dlg::backdrop { background: rgba(0,0,0,.4); }
.promo-dlg .pk-notes { display: grid; gap: 4px; margin: 8px 0; }
.promo-dlg .pk-tiers { display: grid; gap: 6px; margin: 4px 0 8px; }
.promo-dlg .pk-tier { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); }
.promo-dlg .pk-tier-top { display: flex; gap: 6px; align-items: center; }
.promo-dlg .pk-tier-top .tAmt { flex: 1; min-width: 0; }
.promo-dlg .pk-tier-top .tCcy { flex: 0 0 auto; width: auto; }
.promo-dlg .pk-tier-opts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.promo-dlg .pk-tier-opts .check { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.promo-dlg .pkTX { flex: none; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.promo-dlg #pkTAdd { justify-self: start; }
.promo-dlg .pk-note { display: flex; gap: 6px; align-items: flex-start; }
.promo-dlg .pk-note .pkN { margin-top: 8px; }
.promo-dlg .pk-note .pkNX { margin-top: 2px; }
.promo-dlg .pk-note .pkN { flex: none; width: 18px; height: 18px; }
.promo-dlg .pk-note .pkNT { flex: 1; min-width: 0; padding: 6px 8px; font-size: 14px; line-height: 1.5; resize: none; field-sizing: content; }   /* 長句自動換行、高度跟著字 */
.promo-dlg .pk-note .pkNX { flex: none; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.promo-dlg #pkNAdd { justify-self: start; margin-top: 4px; }
.promo-dlg .pk-prev { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.promo-dlg .pk-prev .pd-promo { margin: 6px 0 0; }
.promo-dlg .promo-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ps.need, .pneed { color: #c0392b; }
.ps.need { background: #fdecea; border-color: #f5c6c0; }
.pwait { color: #b45309; }
.pbatch { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; align-items: center; padding: 10px 0; background: var(--bg); border-top: 1px solid var(--line); }
.pbatch #pbN { font-weight: 700; margin-right: 4px; white-space: nowrap; }
.pbatch .btn { flex: 0 0 auto; white-space: nowrap; }
.promo-form label { display: block; margin: 8px 0; }
.promo-form input, .promo-form select, .promo-form textarea { width: 100%; }
.promo-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sz-btn { margin: 12px 0 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 13px; }
.sz-box { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.sz-box summary { cursor: pointer; }
.sz-txt { white-space: pre-line; margin-top: 6px; line-height: 1.7; color: var(--ink-2); }
.sku-in { width: 100%; margin: 4px 0 8px; font-size: 13px; }
.sz-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 12px; }
.sz-pick button { padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.sz-pick img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.related { margin-top: 36px; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.related .more-btn { text-align: center; }
@media (max-width: 859px) { .related { padding-bottom: 96px; } }   /* 手機:底部購買列會蓋住 */
.rel-title { font-size: 17px; margin: 0 0 16px; }
/* 後台商品描述編輯器 */
.rte-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rte-bar button, .rte-bar label { font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); cursor: pointer; line-height: 1.2; }
.rte-bar button.on { background: var(--ink); color: var(--on-ink); }
.rte { min-height: 180px; max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--bg); color: var(--ink); line-height: 1.7; outline: none; }
.rte:focus { border-color: var(--ink); }
.rte img { max-width: 100%; height: auto; display: block; margin: 6px 0; cursor: pointer; }
.rte img.sel { outline: 3px solid #e05a6b; outline-offset: 2px; }
.rte:empty::before { content: '在這裡輸入描述，或按「＋ 圖片」加描述長圖'; color: var(--muted); }
.rte-img-bar { display: flex; gap: 6px; margin: 8px 0; padding: 8px; border-radius: 8px; background: var(--bg-soft); align-items: center; font-size: 13px; }
.rte-img-bar[hidden] { display: none; }
.rte-img-bar button { font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.rte-html { width: 100%; min-height: 220px; font-family: ui-monospace, monospace; font-size: 12px; }
.img-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.img-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.img-mgr .cover { position: absolute; top: 4px; left: 4px; font-size: 11px; background: #111; color: #fff; border-radius: 3px; padding: 0 5px; }
.img-mgr .im-btns { display: flex; justify-content: space-between; margin-top: 4px; }
.img-mgr .im-btns button { flex: 1; border: 1px solid var(--line); background: var(--bg); font-size: 12px; padding: 2px 0; }
.img-mgr .im-btns button:disabled { opacity: .3; }
.upl { display: inline-block; cursor: pointer; }
.cat-pick { max-height: 360px; overflow-y: auto; margin: 8px 0; display: grid; gap: 6px; }
.cat-grp { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.cat-pick .check.sub { margin-left: 22px; font-size: 13px; }

/* 補貨登記 */
.opt.oos { color: var(--muted); background: var(--bg-soft); }
.opt.oos.on { color: var(--ink); }
.restock-box { background: #fff8f8; border-radius: 8px; padding: 12px; margin-top: 12px; font-size: 14px; }
.restock-box p { margin: 0 0 8px; }
#rsForm { display: flex; gap: 8px; }
#rsForm input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--rad); font: inherit; }
#rsForm .btn { width: auto; padding: 0 14px; white-space: nowrap; }
.rs-done { color: #15803d; margin: 0; }

/* hidden 屬性一律優先(有些元件設了 display:flex/grid 會蓋掉 hidden) */
[hidden] { display: none !important; }

.rs-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.li-links { font-size: 13px; margin-top: 2px; }
.arr { font-size: 13px; color: var(--muted); margin-top: 2px; }
.arr.ok { color: #15803d; font-weight: 600; }
.arr-sum { background: #f0f9f2; border-radius: 6px; padding: 8px 12px; font-size: 14px; margin: 0 0 8px; }
.pk-row { display: flex; gap: 8px; align-items: baseline; font-size: 14px; padding: 3px 0; }
.pk-ok { width: 18px; text-align: center; color: var(--muted); font-weight: 700; flex: none; }
.pk-ok.on { color: #15803d; }
.stk-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stk-row:last-of-type { border-bottom: 0; }
.stk-n { display: flex; align-items: center; gap: 6px; }
.stk-in { width: 110px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 4px; font: inherit; font-size: 13px; }

/* ── 後台商品編輯頁(2026-11 改版):左表單、右預覽;單一儲存鈕固定底部 ── */
.admin:has(.pe-wrap) { max-width: 1240px; }
.pe-wrap { display: grid; gap: 20px; }
@media (min-width: 1100px) { .pe-wrap { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .pe-side { position: sticky; top: calc(var(--hdr-h) + 56px); } .pe-prev-wrap { max-height: calc(100vh - var(--hdr-h) - 76px); overflow: auto; } }
@media (max-width: 1099px) { .pe-side { order: -1; } .pe-prev-wrap #pePrev { display: grid; grid-template-columns: 96px 1fr; gap: 0 12px; } .pe-prev-wrap .pp-img { grid-row: span 4; } .pe-prev-wrap .pd-promo { grid-column: 1 / -1; } }
.pe-prev-wrap { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--bg); }
.pe-prev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.pp-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--bg-soft); }
.pp-name { font-weight: 700; margin-top: 8px; line-height: 1.5; }
.pp-sub { color: var(--ink-2); font-size: 13px; }
.pp-price { font-size: 18px; font-weight: 700; margin: 6px 0; }
.pp-price del { font-size: 13px; color: var(--muted); font-weight: 400; }
.pp-desc { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.pp-desc img { max-width: 100%; height: auto; }
@media (max-width: 1099px) { .pe-prev-wrap .pp-desc { grid-column: 1 / -1; } .pe-prev-wrap { max-height: 45vh; overflow: auto; } }
.pp-sum p { margin: 2px 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.pe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.pe-row > .lbl { font-size: 14px; color: var(--ink-2); min-width: 2.5em; }
.seg-pick { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg-pick label { display: block; cursor: pointer; }
.seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pick span { display: block; padding: 7px 14px; font-size: 14px; color: var(--ink-2); background: var(--bg); }
.seg-pick label + label span { border-left: 1px solid var(--line-2); }
.seg-pick input:checked + span { background: var(--btn); color: var(--btn-ink); }
/* 商品前台狀態:上架中＝綠、隱藏／下架＝灰(一眼分得出有沒有在賣) */
.seg-pick input[name="vis"][value="on"]:checked + span { background: #3f9d63; color: #fff; }
.seg-pick input[name="vis"][value="hidden"]:checked + span, .seg-pick input[name="vis"][value="off"]:checked + span { background: #8a8f98; color: #fff; }
.tip-wrap { display: inline; }
.tip { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--muted); font-size: 12px; cursor: pointer; vertical-align: middle; }
.tip-txt { display: block; margin: 4px 0; padding: 8px 10px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); font-size: 12.5px; line-height: 1.6; font-weight: 400; }
.tip-txt[hidden] { display: none; }
.src-line { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.desc-box > summary, .adv-box > summary { cursor: pointer; list-style: revert; padding: 2px 0; }
.desc-thumbs { display: flex; gap: 4px; margin-top: 8px; overflow: hidden; }
.desc-thumbs img { width: 44px; height: 44px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.desc-box[open] .desc-thumbs { display: none; }
.desc-box .rte { max-height: 70vh; overflow: auto; }
.adv-box .adv-sec { margin: 10px 0 14px; }
.adv-box .adv-sec > .lbl { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.pe-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.pe-save .btn { width: auto; padding: 10px 36px; }
.pe-save .dirty { color: #c0392b; font-weight: 700; }
.ship-pick .ship-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.ship-pick .ship-row input[type=date] { width: auto; }
.ship-pick input[name=ship_time] { margin-top: 6px; }
.ship-pick .small { font-size: 12px; margin: 4px 0 0; }
.ship-pick > .lbl { font-weight: 400; font-size: 14px; }

/* 編輯頁第二版(2026-11):欄位標題、價格/庫存、批次、上一個/下一個 */
.form label > .lt { display: block; }
.form .lt .tip-wrap { margin-left: 2px; }
.g-num { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 150px)); gap: 10px; align-items: end; }
.g-num .by-var { grid-column: span 2; } .g-num .by-var .muted { padding: 10px 0; font-size: 13px; }
textarea.autoh { field-sizing: content; min-height: 3.2em; max-height: 50vh; }
.dl-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 8px; }
.dl-wrap[hidden] { display: none; }
.form .dl-wrap input[name=preorder_deadline] { width: 210px; flex: none; padding: 6px 8px !important; }
.dl-wrap > * { flex: none; }
.form .dl-wrap .btn { width: auto; margin: 0; }
.stk-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.stk-row > label:not(.check) { width: 140px; }
.stk-row .check { padding-bottom: 10px; }
.var-batch { border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: var(--bg-soft); }
.vb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.vb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.vb-chip span { display: inline-block; padding: 3px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--bg); }
.vb-chip input:checked + span { background: var(--btn); border-color: var(--pink-deep); color: var(--btn-ink); }
.vb-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; gap: 6px; align-items: center; }
.vb-in input, .vb-in select { padding: 7px 8px !important; min-width: 0; }
.vb-in .btn { width: auto; white-space: nowrap; }
@media (max-width: 700px) { .vb-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vb-in .btn { grid-column: 1 / -1; } }
.var-batch .small { margin: 6px 0 0; font-size: 12px; }
.var-tbl .vgrp { margin-top: 6px; padding: 2px 0 2px 50px; font-size: 13px; font-weight: 700; color: var(--ink-2); border-top: 1px solid var(--line); }
.var-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.var-acts .btn { width: auto; }
.pe-crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.pe-nav { display: inline-flex; gap: 12px; font-size: 14px; }
/* 商品編輯「儲存」:沒修改＝灰、有修改＝綠(跟「上架中」同色) */
.pe-save .btn { background: #3f9d63; color: #fff; border-color: #3f9d63; }
.pe-save .btn.idle { background: #e4e5e8; color: #8a8f98; border-color: #e4e5e8; opacity: 1; }
.pe-save .kbd { font-size: 12px; }
@media (max-width: 700px) { .pe-save .kbd { display: none; } }
/* 商品總表：單一商品特典開關(🎁 亮 = 有特典；灰 = 這個商品關掉了) */
.prow .ppromo { flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg); font-size: 16px; line-height: 1; filter: grayscale(1); opacity: .45; }
.prow .ppromo.on { filter: none; opacity: 1; border-color: var(--pink-deep); background: color-mix(in srgb, var(--pink) 35%, var(--bg)); }
.prow .pview { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); font-size: 16px; text-decoration: none; }
.prow .pview:hover { border-color: var(--pink-deep); color: var(--ink); }
/* 不計入特典 */
.pd-promo.off { padding: 10px 14px; color: var(--ink-2); font-size: 13px; background: var(--bg-soft); border-style: dashed; }
.pd-promo.off p { margin: 0; }
.promo-link { margin: -4px 0 12px; font-size: 13px; text-align: right; }
.card-img .no-promo { position: absolute; left: 6px; bottom: 6px; z-index: 2; padding: 1px 6px; border-radius: 3px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); }
.no-promo-h { margin: 28px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.no-promo-t { color: var(--muted); font-size: 12px; }
.ps.promo.off { background: var(--bg-soft); color: var(--muted); border-color: var(--line-2); }
.ps.warn { background: #fff4d6; color: #8a5a00; border-color: #f0d68a; }
:root[data-theme="dark"] .ps.warn { background: #3a2f12; color: #f0c96a; border-color: #5c4a1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ps.warn { background: #3a2f12; color: #f0c96a; border-color: #5c4a1c; } }
/* 商品頁價格旁:單一商品特典終了/不計入 */
.pd-nopromo { display: inline-block; margin-left: 12px; padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 500; vertical-align: middle; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); }

.pd-left { margin: -6px 0 16px; font-size: 14px; font-weight: 500; color: #c0392b; }
/* 通路特典小圖 */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.ch { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); cursor: zoom-in; color: var(--ink-2); }
.ch img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.ch { position: relative; }
.ch.off img { opacity: .4; }
.ch-off { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 1; font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--ink-2); color: var(--bg); white-space: nowrap; }
.ch span { padding: 4px 1px; font-size: 12px; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 一行;太長由 fitCh 縮字 */
.ch-tip { margin: 0; font-size: 12px; color: var(--muted); }
.sheet-ch { margin: 16px 0 12px; }
.ch-one { display: flex; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); text-align: left; cursor: zoom-in; color: var(--ink); }
.ch-one img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 6px; }
.ch-one span { font-size: 14px; display: flex; flex-direction: column; }
.ch-one small { font-size: 12px; color: var(--muted); }
.rich + .ptabs { margin-top: 12px; }

/* 後台新增客訂單 */
.kd-hits { display: flex; flex-direction: column; gap: 4px; }
.kd-hits:empty { display: none; }
.kd-hit { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; color: inherit; cursor: pointer; }
.kd-hit:hover { border-color: var(--ink-2); }
.kd-row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kd-row .kd-del { justify-self: start; }
.kd-sum { margin: 4px 0; }
.adm-form label.chk { display: flex; align-items: center; gap: 6px; }
.adm-form label.chk input { width: auto; }

.kd-terms.in-ship { border: 1px solid #e6c9d6; background: #fdf6f9; border-radius: 6px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.kd-terms.in-ship .notice-ul { font-size: 13px; color: var(--ink-2); margin: 8px 0 10px; padding-left: 20px; }
.kd-terms.in-ship p { font-size: 13px; margin: 0 0 10px; }
.kd-tn { font-size: 12px; color: var(--muted); margin: 8px 0 6px; line-height: 1.6; }
#l5 .kd-tn, #l5 .kd-ag { grid-column: 1 / -1; margin: 0; }
#kdAgree { margin: 8px 0 10px; }

/* 會員資料(一列一列變更)＋收件地址簿 */
.info-rows { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-bottom: 8px; }
.ir { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ir:last-child { border-bottom: 0; }
.ir-main { flex: 1; min-width: 0; }
.ir-l { font-size: 13px; color: var(--muted); }
.ir-l span { margin-left: 6px; font-size: 12px; }
.ir-v { margin-top: 2px; word-break: break-all; }
.ir-ch { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 6px 0; flex-shrink: 0; }
.ir-ch:hover { color: var(--ink); }
.ir-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ir-form input { flex: 1; min-width: 140px; }
.ir-form select { padding: 9px 10px; border: 1px solid var(--line-2); border-radius: var(--rad); font: inherit; color: var(--ink); background: var(--bg); min-width: 84px; }
.ab-box { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.ab-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.ab-main { flex: 1; min-width: 0; word-break: break-all; }
.ab-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ab-tag { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; color: var(--muted); }
.ab-tag.on { border-color: var(--pink-deep); background: var(--pink); color: var(--ink); }
.ab-act { display: flex; gap: 6px; align-items: flex-start; flex-shrink: 0; }
.ab-main .link { padding: 0; background: none; border: 0; cursor: pointer; margin-top: 2px; }
.ab-empty { padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.ab-form { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ab-btns { display: flex; gap: 8px; }
.ab-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
#abPick { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
#abPick .ab-sel { flex: 1; min-width: 0; }
#abPick .ab-manage { flex-shrink: 0; white-space: nowrap; font-size: 13px; }
@media (max-width: 520px) { .ab-item { flex-direction: column; gap: 6px; } }
/* 地址簿按鈕：編輯／刪除改輕量文字鈕，新增改虛線膠囊並排 */
.ab-act .btn.small { padding: 4px 10px; font-size: 13px; border: 0; border-radius: 999px; background: none; color: var(--muted); }
.ab-act .btn.small:hover { background: var(--bg-soft); color: var(--ink); }
.ab-act [data-abdel]:hover { color: var(--sale); }
.ab-foot > span:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
.ab-foot [data-abnew] { padding: 6px 14px; font-size: 13px; border: 1px dashed var(--pink-deep); border-radius: 999px; white-space: nowrap; }
.ab-foot [data-abnew]:hover { background: var(--pink); }
/* 我的訂單：一單一卡(v46) */
.oc-tabs { margin-top: 4px; }
.oc { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; color: var(--ink); }
.oc:hover { border-color: var(--line-2); }
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.oc-go { font-size: 22px; line-height: 1; color: var(--muted); }
.oc-st { margin: 10px 0 4px; }
.oc-item { display: flex; gap: 12px; padding: 8px 0; line-height: 1.5; }
.oc-item img { width: 56px; height: 56px; object-fit: cover; flex: none; border-radius: 8px; background: var(--bg-soft); }
.oc-main { flex: 1; min-width: 0; }
.oc-name { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-main .arr { display: inline; margin-left: 10px; font-size: 12px; }
.oc-more { padding: 2px 0 4px 68px; }
.oc-foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.oc-foot b { font-size: 17px; }
.oc-head + .oc-item { margin-top: 6px; }
.oc .oc-cta { margin-top: 10px; padding: 9px; font-size: 14px; font-weight: 600; border: 0; background: #c0392b; color: #fff; }

/* 優惠碼 */
.cp-box { display: grid; gap: 6px; }
.cp-in { display: flex; gap: 8px; }
.cp-in input { flex: 1; min-width: 0; text-transform: uppercase; }
.cp-in .btn { flex-shrink: 0; }
#cpMsg { margin: 0; color: #2e7d32; }
#cpMsg.err { color: var(--sale); }
.cp-bday { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg-soft); border: 1px dashed var(--pink-deep); font-size: 14px; line-height: 1.6; }
.gift-row span:first-child { font-weight: 500; }
.cp-list { display: grid; gap: 10px; margin-bottom: 6px; }
.cp-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--pink-deep); border-radius: 10px; padding: 12px 14px; line-height: 1.6; }
.cp-main { flex: 1; min-width: 0; }
.cp-code { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* 後台:客訂建好後的按鈕列 */
.kd-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kd-acts .btn { width: auto; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding-left: 18px; padding-right: 18px; }

/* 品項進度:已出庫・運送中 */
.arr.go { color: #6d28d9; font-weight: 600; }
.arr.buy { color: #b45309; font-weight: 600; }
/* 後台:取消訂單 */
.btn.danger { color: var(--sale); border-color: var(--sale); }
.cancel-note { background: #fdecec; color: #991b1b; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }

/* 訂單頁:客人自行取消 */
.o-selfcancel { text-align: center; margin: 36px 0 28px; }
.o-selfcancel .link { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13px; }
.cx-rs { display: grid; gap: 6px; margin: 4px 0 6px; }
.cx-tip { margin: 2px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--bg-soft); font-size: 13px; line-height: 1.6; }
.cx-tip .link { display: block; margin-top: 4px; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: 13px; }
.cx-rs input#cxOther { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--rad); font: inherit; color: var(--ink); background: var(--bg); }

/* 離島門市標籤、訂單頁修改收件資料 */
.isl-tag { display: inline-block; font-size: 12px; font-weight: 600; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 0 6px; }
.cvs-pick .isl-tag { display: inline-block; margin-left: 6px; }
.rcv-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rcv-form #rcvFee { margin: -4px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--bg-soft); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.o-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.o-card-h h2 { margin: 0; }
/* 卡片標題右側的小按鈕(修改收件資料)：跟「加回購物車」同樣的小圓角 */
.o-card-h .btn.small { width: auto; flex: none; margin: 0; padding: 6px 14px; min-height: 0; height: auto; font-size: 13px; line-height: 1.4; border-radius: 999px; }
#rcvEdit { width: auto; font-size: 13px; padding: 5px 12px; }

/* 會員資料:生日禮說明(點 ⓘ 展開) */
.ir-info { display: inline-flex; vertical-align: -3px; margin-left: 4px; padding: 0; width: 16px; height: 16px; background: none; border: 0; cursor: pointer; color: var(--muted); }
.ir-info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ir-info[aria-expanded="true"] { color: var(--ink); }
.ir-tip { margin: 6px 0 2px; padding: 8px 10px; border-radius: 6px; background: var(--bg-soft); font-size: 12px; line-height: 1.6; color: var(--ink-2); }

/* 訂單頁:剛下單提示、付款期限、查件連結;登入頁結帳提示 */
.o-placed { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: #effaf2; border: 1px solid #c6ebd1; }
.o-placed b { color: #15803d; }
.o-cancel .o-recart { width: auto; flex: none; margin: 0; padding: 6px 14px; min-height: 0; height: auto; font-size: 13px; line-height: 1.4; border-radius: 999px; }
.o-placed p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.pay-dl { color: #b45309; margin: 6px 0; }
.trk-acts { display: flex; gap: 14px; margin-top: 2px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; }
.co-hint { background: var(--bg-soft); border-radius: 6px; padding: 10px 12px; }
.cp-gap { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.cart-bad { color: var(--sale) !important; font-weight: 600; }

/* ── 商品總表(2026-11-16 改版):平鋪列表、待處理、即時搜尋 ── */
.phead { display: flex; gap: 8px; align-items: center; }
.phead #apQ { flex: 1; min-width: 0; }
.phead .pnew { flex: none; width: auto; white-space: nowrap; }
.ptodos { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 10px 0 4px; }
.ptodo-h { align-self: center; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.ptodo { display: flex; align-items: baseline; gap: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.ptodo b { font-size: 16px; }
.ptodo.hot { border-color: color-mix(in srgb, #c0392b 35%, var(--bg)); background: color-mix(in srgb, #c0392b 7%, var(--bg)); }
.ptodo.hot b { color: #c0392b; }
.ptodo.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.pbar { display: flex; gap: 8px; margin: 2px 0 6px; }
.pbar select { flex: 1 1 0; min-width: 0; }
.pser { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 6px; }
.pser:empty { display: none; }
.pser .pchip.on { background: #eceae8; border-color: #9a9590; color: var(--ink); }
.pcount { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); padding: 4px 2px; }
.pcount .check { margin: 0; color: var(--ink-2); }
.pcount #apClr { margin-left: auto; }
.pitems { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pitems .prow:first-child { border-top: 0; }
.prow .pname { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prow .psub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.prow .pprice { color: var(--ink); font-weight: 700; margin-right: 2px; }
.pitems .pmore { display: block; width: calc(100% - 24px); margin: 10px 12px; }
.prow .switch { flex: none; }
@media (max-width: 560px) { .prow .pview { display: none; } .phead .pnew { padding-left: 10px; padding-right: 10px; } }

.pe-warn { margin: 4px 0 0; color: #a0620a; }

.otodos { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }

/* 會員訂單頁的篩選:選中用灰色(不跟粉色按鈕搶) */
.oc-tabs .chip.on { background: color-mix(in srgb, var(--ink) 12%, var(--bg)); border-color: color-mix(in srgb, var(--ink) 30%, var(--bg)); color: var(--ink); font-weight: 600; }

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 商品篩選列(分類頁、搜尋頁):選中用深色字＋灰底，不跟粉色按鈕搶 */
.sfilt { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.sf { border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.sf b { font-weight: 600; color: var(--muted); margin-left: 2px; }
.sf.on { background: color-mix(in srgb, var(--ink) 10%, var(--bg)); border-color: color-mix(in srgb, var(--ink) 35%, var(--bg)); color: var(--ink); font-weight: 600; }
.sf.on b { color: var(--ink); }

/* ── 客服訊息 ── */
.o-ask { margin-left: auto; font-size: 14px; color: var(--pink-deep); font-weight: 600; white-space: nowrap; }
.chat-hint { margin: 0 0 10px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 8px; min-height: 40vh; }
.chat-day { align-self: center; font-size: 12px; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 2px 10px; margin: 6px 0; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 16px; line-height: 1.55; word-break: break-word; }
.msg.me { align-self: flex-end; background: var(--pink); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-who { font-size: 12px; font-weight: 700; color: var(--pink-deep); margin-bottom: 2px; }
.msg-ord { display: inline-block; font-size: 13px; font-weight: 600; color: var(--pink-deep); margin-bottom: 4px; }
.msg-img { display: block; max-width: 220px; max-height: 260px; border-radius: 10px; margin: 2px 0 4px; object-fit: cover; }
.msg-t { font-size: 11px; color: var(--muted); text-align: right; margin-top: 2px; }
.chat-box { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row textarea { flex: 1; min-width: 0; resize: none; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--ink); max-height: 140px; }
.chat-row .btn.small { border-radius: 18px; }
.chat-att { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; cursor: pointer; color: var(--muted); }
.chat-att svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-ord, .chat-pic { display: flex; align-items: center; gap: 8px; font-size: 14px; background: var(--bg-soft); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.chat-ord button, .chat-pic button { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.chat-pic img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }

/* ===== 深色模式(自動產生:node store/build-dark.js，別手改這段) ===== */
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink: #4a2f33; --pink-deep: #6b4248; --ink: #ece6e6; --ink-2: #c9c1c1; --muted: #9b9499;
    --line: #332d2e; --line-2: #4a4344; --bg: #161314; --page: #161314; --ftr: #211d1e; --bg-soft: #211d1e; --btn: #b8606a; --btn-ink: #fff; --sale: #ef6b66; --on-ink: #161314;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .btn:disabled { background: #4a4344; color: #9b9499; }
  :root:not([data-theme="light"]) .switch span { background: #4a4344; }
  :root:not([data-theme="light"]) .fab-cart, :root:not([data-theme="light"]) .fab-top { box-shadow: 0 2px 10px rgba(0,0,0,.6); }
  :root:not([data-theme="light"]) .toast { background: rgba(236,230,230,.94); color: #161314; }
  /* 商品描述是 BV 搬來的 HTML,常寫死黑字白底 → 深色時改回主題色 */
  :root:not([data-theme="light"]) .rich [style*="color: rgb(0, 0, 0)"], :root:not([data-theme="light"]) .rich [style*="color:#000"], :root:not([data-theme="light"]) .rich [style*="color: #000"], :root:not([data-theme="light"]) .rich [style*="color: black"], :root:not([data-theme="light"]) .rich font[color="#000000"] { color: var(--ink) !important; }
  :root:not([data-theme="light"]) .rich [style*="background-color: rgb(255, 255, 255)"], :root:not([data-theme="light"]) .rich [style*="background-color: #fff"], :root:not([data-theme="light"]) .rich [style*="background: #fff"] { background-color: transparent !important; }
  :root:not([data-theme="light"]) .dl-bell.on { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root:not([data-theme="light"]) .st.ok { background: color-mix(in srgb, #e6f4ea 12%, var(--bg)); color: color-mix(in srgb, #1e7b3a 45%, #fff); }
  :root:not([data-theme="light"]) .st.warn { background: color-mix(in srgb, #fdecea 12%, var(--bg)); color: color-mix(in srgb, #b3261e 45%, #fff); }
  :root:not([data-theme="light"]) .multi-note { background: color-mix(in srgb, #fff8e6 12%, var(--bg)); }
  :root:not([data-theme="light"]) .done-box { background: color-mix(in srgb, #fff7f7 12%, var(--bg)); }
  :root:not([data-theme="light"]) .o-done { background: color-mix(in srgb, #fff7f7 12%, var(--bg)); }
  :root:not([data-theme="light"]) .test-bar { background: color-mix(in srgb, #fff3cd 12%, var(--bg)); color: color-mix(in srgb, #7a5b00 45%, #fff); }
  :root:not([data-theme="light"]) .deadline { background: color-mix(in srgb, #fdf0f3 12%, var(--bg)); }
  :root:not([data-theme="light"]) .split-note { background: color-mix(in srgb, #fff6e0 12%, var(--bg)); color: color-mix(in srgb, #8a5a00 45%, #fff); }
  :root:not([data-theme="light"]) .sale-notice { background: color-mix(in srgb, #faf7fb 12%, var(--bg)); }
  :root:not([data-theme="light"]) .pre-confirm { background: color-mix(in srgb, #fdf6f9 12%, var(--bg)); }
  :root:not([data-theme="light"]) .batch { color: color-mix(in srgb, #6b4e8a 45%, #fff); }
  :root:not([data-theme="light"]) .batch-sm { color: color-mix(in srgb, #6b4e8a 45%, #fff); }
  :root:not([data-theme="light"]) .pay-alert { background: color-mix(in srgb, #fff4e5 12%, var(--bg)); }
  :root:not([data-theme="light"]) .myship-box { background: color-mix(in srgb, #fff4e5 12%, var(--bg)); }
  :root:not([data-theme="light"]) .pay-ok { background: color-mix(in srgb, #eef8f1 12%, var(--bg)); color: color-mix(in srgb, #15803d 45%, #fff); }
  :root:not([data-theme="light"]) .ship-card.on { background: color-mix(in srgb, #fff8f8 12%, var(--bg)); }
  :root:not([data-theme="light"]) .sc-tier span { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root:not([data-theme="light"]) .ship-compare summary { color: color-mix(in srgb, #2563eb 45%, #fff); }
  :root:not([data-theme="light"]) /* 全站(含浮窗)統一粉色，不用瀏覽器預設藍 */

.ins-box { background: color-mix(in srgb, #fff8f8 12%, var(--bg)); }
  :root:not([data-theme="light"]) .ins-box .hint { color: color-mix(in srgb, #b45309 45%, #fff); }
  :root:not([data-theme="light"]) .adm-form .st-sel.ok { background: color-mix(in srgb, #e6f4ea 12%, var(--bg)); color: color-mix(in srgb, #1e7b3a 45%, #fff); }
  :root:not([data-theme="light"]) .adm-form .st-sel.warn { background: color-mix(in srgb, #fdecea 12%, var(--bg)); color: color-mix(in srgb, #b3261e 45%, #fff); }
  :root:not([data-theme="light"]) .ship-refund.act { background: color-mix(in srgb, #fff8e6 12%, var(--bg)); }
  :root:not([data-theme="light"]) .ship-refund.act.hot { background: color-mix(in srgb, #fdecea 12%, var(--bg)); }
  :root:not([data-theme="light"]) .ps.open { background: color-mix(in srgb, #e3f4e6 12%, var(--bg)); color: color-mix(in srgb, #2f7a3c 45%, #fff); }
  :root:not([data-theme="light"]) .ps.always { background: color-mix(in srgb, #e6f4f1 12%, var(--bg)); color: color-mix(in srgb, #23756a 45%, #fff); }
  :root:not([data-theme="light"]) .ps.instock { background: color-mix(in srgb, #efe8f7 12%, var(--bg)); color: color-mix(in srgb, #6b4e8a 45%, #fff); }
  :root:not([data-theme="light"]) .ps.promo { background: color-mix(in srgb, #fdecef 12%, var(--bg)); color: color-mix(in srgb, #a3485a 45%, #fff); }
  :root:not([data-theme="light"]) .ps.need, :root:not([data-theme="light"]) .pneed { color: color-mix(in srgb, #c0392b 45%, #fff); }
  :root:not([data-theme="light"]) .ps.need { background: color-mix(in srgb, #fdecea 12%, var(--bg)); }
  :root:not([data-theme="light"]) .pwait { color: color-mix(in srgb, #b45309 45%, #fff); }
  :root:not([data-theme="light"]) .restock-box { background: color-mix(in srgb, #fff8f8 12%, var(--bg)); }
  :root:not([data-theme="light"]) .rs-done { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root:not([data-theme="light"]) .arr.ok { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root:not([data-theme="light"]) .arr-sum { background: color-mix(in srgb, #f0f9f2 12%, var(--bg)); }
  :root:not([data-theme="light"]) .pk-ok.on { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root:not([data-theme="light"]) .pe-save .dirty { color: color-mix(in srgb, #c0392b 45%, #fff); }
  :root:not([data-theme="light"]) .pe-save .btn.idle { background: color-mix(in srgb, #e4e5e8 12%, var(--bg)); }
  :root:not([data-theme="light"]) .ps.warn { background: color-mix(in srgb, #fff4d6 12%, var(--bg)); color: color-mix(in srgb, #8a5a00 45%, #fff); }
  :root:not([data-theme="light"]) .pd-left { color: color-mix(in srgb, #c0392b 45%, #fff); }
  :root:not([data-theme="light"]) .kd-terms.in-ship { background: color-mix(in srgb, #fdf6f9 12%, var(--bg)); }
  :root:not([data-theme="light"]) /* 品項進度:已出庫・運送中 */
.arr.go { color: color-mix(in srgb, #6d28d9 45%, #fff); }
  :root:not([data-theme="light"]) .arr.buy { color: color-mix(in srgb, #b45309 45%, #fff); }
  :root:not([data-theme="light"]) .cancel-note { background: color-mix(in srgb, #fdecec 12%, var(--bg)); color: color-mix(in srgb, #991b1b 45%, #fff); }
  :root:not([data-theme="light"]) /* 離島門市標籤、訂單頁修改收件資料 */
.isl-tag { background: color-mix(in srgb, #fef3c7 12%, var(--bg)); color: color-mix(in srgb, #b45309 45%, #fff); }
  :root:not([data-theme="light"]) /* 訂單頁:剛下單提示、付款期限、查件連結;登入頁結帳提示 */
.o-placed { background: color-mix(in srgb, #effaf2 12%, var(--bg)); }
  :root:not([data-theme="light"]) .o-placed b { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root:not([data-theme="light"]) .pay-dl { color: color-mix(in srgb, #b45309 45%, #fff); }
  :root:not([data-theme="light"]) .ptodo.hot b { color: color-mix(in srgb, #c0392b 45%, #fff); }
  :root:not([data-theme="light"]) .pser .pchip.on { background: color-mix(in srgb, #eceae8 12%, var(--bg)); }
}
  :root[data-theme="dark"] {
    --pink: #4a2f33; --pink-deep: #6b4248; --ink: #ece6e6; --ink-2: #c9c1c1; --muted: #9b9499;
    --line: #332d2e; --line-2: #4a4344; --bg: #161314; --page: #161314; --ftr: #211d1e; --bg-soft: #211d1e; --btn: #b8606a; --btn-ink: #fff; --sale: #ef6b66; --on-ink: #161314;
    color-scheme: dark;
  }
  :root[data-theme="dark"] .btn:disabled { background: #4a4344; color: #9b9499; }
  :root[data-theme="dark"] .switch span { background: #4a4344; }
  :root[data-theme="dark"] .fab-cart, :root[data-theme="dark"] .fab-top { box-shadow: 0 2px 10px rgba(0,0,0,.6); }
  :root[data-theme="dark"] .toast { background: rgba(236,230,230,.94); color: #161314; }
  /* 商品描述是 BV 搬來的 HTML,常寫死黑字白底 → 深色時改回主題色 */
  :root[data-theme="dark"] .rich [style*="color: rgb(0, 0, 0)"], :root[data-theme="dark"] .rich [style*="color:#000"], :root[data-theme="dark"] .rich [style*="color: #000"], :root[data-theme="dark"] .rich [style*="color: black"], :root[data-theme="dark"] .rich font[color="#000000"] { color: var(--ink) !important; }
  :root[data-theme="dark"] .rich [style*="background-color: rgb(255, 255, 255)"], :root[data-theme="dark"] .rich [style*="background-color: #fff"], :root[data-theme="dark"] .rich [style*="background: #fff"] { background-color: transparent !important; }
  :root[data-theme="dark"] .dl-bell.on { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root[data-theme="dark"] .st.ok { background: color-mix(in srgb, #e6f4ea 12%, var(--bg)); color: color-mix(in srgb, #1e7b3a 45%, #fff); }
  :root[data-theme="dark"] .st.warn { background: color-mix(in srgb, #fdecea 12%, var(--bg)); color: color-mix(in srgb, #b3261e 45%, #fff); }
  :root[data-theme="dark"] .multi-note { background: color-mix(in srgb, #fff8e6 12%, var(--bg)); }
  :root[data-theme="dark"] .done-box { background: color-mix(in srgb, #fff7f7 12%, var(--bg)); }
  :root[data-theme="dark"] .o-done { background: color-mix(in srgb, #fff7f7 12%, var(--bg)); }
  :root[data-theme="dark"] .test-bar { background: color-mix(in srgb, #fff3cd 12%, var(--bg)); color: color-mix(in srgb, #7a5b00 45%, #fff); }
  :root[data-theme="dark"] .deadline { background: color-mix(in srgb, #fdf0f3 12%, var(--bg)); }
  :root[data-theme="dark"] .split-note { background: color-mix(in srgb, #fff6e0 12%, var(--bg)); color: color-mix(in srgb, #8a5a00 45%, #fff); }
  :root[data-theme="dark"] .sale-notice { background: color-mix(in srgb, #faf7fb 12%, var(--bg)); }
  :root[data-theme="dark"] .pre-confirm { background: color-mix(in srgb, #fdf6f9 12%, var(--bg)); }
  :root[data-theme="dark"] .batch { color: color-mix(in srgb, #6b4e8a 45%, #fff); }
  :root[data-theme="dark"] .batch-sm { color: color-mix(in srgb, #6b4e8a 45%, #fff); }
  :root[data-theme="dark"] .pay-alert { background: color-mix(in srgb, #fff4e5 12%, var(--bg)); }
  :root[data-theme="dark"] .myship-box { background: color-mix(in srgb, #fff4e5 12%, var(--bg)); }
  :root[data-theme="dark"] .pay-ok { background: color-mix(in srgb, #eef8f1 12%, var(--bg)); color: color-mix(in srgb, #15803d 45%, #fff); }
  :root[data-theme="dark"] .ship-card.on { background: color-mix(in srgb, #fff8f8 12%, var(--bg)); }
  :root[data-theme="dark"] .sc-tier span { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root[data-theme="dark"] .ship-compare summary { color: color-mix(in srgb, #2563eb 45%, #fff); }
  :root[data-theme="dark"] /* 全站(含浮窗)統一粉色，不用瀏覽器預設藍 */

.ins-box { background: color-mix(in srgb, #fff8f8 12%, var(--bg)); }
  :root[data-theme="dark"] .ins-box .hint { color: color-mix(in srgb, #b45309 45%, #fff); }
  :root[data-theme="dark"] .adm-form .st-sel.ok { background: color-mix(in srgb, #e6f4ea 12%, var(--bg)); color: color-mix(in srgb, #1e7b3a 45%, #fff); }
  :root[data-theme="dark"] .adm-form .st-sel.warn { background: color-mix(in srgb, #fdecea 12%, var(--bg)); color: color-mix(in srgb, #b3261e 45%, #fff); }
  :root[data-theme="dark"] .ship-refund.act { background: color-mix(in srgb, #fff8e6 12%, var(--bg)); }
  :root[data-theme="dark"] .ship-refund.act.hot { background: color-mix(in srgb, #fdecea 12%, var(--bg)); }
  :root[data-theme="dark"] .ps.open { background: color-mix(in srgb, #e3f4e6 12%, var(--bg)); color: color-mix(in srgb, #2f7a3c 45%, #fff); }
  :root[data-theme="dark"] .ps.always { background: color-mix(in srgb, #e6f4f1 12%, var(--bg)); color: color-mix(in srgb, #23756a 45%, #fff); }
  :root[data-theme="dark"] .ps.instock { background: color-mix(in srgb, #efe8f7 12%, var(--bg)); color: color-mix(in srgb, #6b4e8a 45%, #fff); }
  :root[data-theme="dark"] .ps.promo { background: color-mix(in srgb, #fdecef 12%, var(--bg)); color: color-mix(in srgb, #a3485a 45%, #fff); }
  :root[data-theme="dark"] .ps.need, :root[data-theme="dark"] .pneed { color: color-mix(in srgb, #c0392b 45%, #fff); }
  :root[data-theme="dark"] .ps.need { background: color-mix(in srgb, #fdecea 12%, var(--bg)); }
  :root[data-theme="dark"] .pwait { color: color-mix(in srgb, #b45309 45%, #fff); }
  :root[data-theme="dark"] .restock-box { background: color-mix(in srgb, #fff8f8 12%, var(--bg)); }
  :root[data-theme="dark"] .rs-done { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root[data-theme="dark"] .arr.ok { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root[data-theme="dark"] .arr-sum { background: color-mix(in srgb, #f0f9f2 12%, var(--bg)); }
  :root[data-theme="dark"] .pk-ok.on { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root[data-theme="dark"] .pe-save .dirty { color: color-mix(in srgb, #c0392b 45%, #fff); }
  :root[data-theme="dark"] .pe-save .btn.idle { background: color-mix(in srgb, #e4e5e8 12%, var(--bg)); }
  :root[data-theme="dark"] .ps.warn { background: color-mix(in srgb, #fff4d6 12%, var(--bg)); color: color-mix(in srgb, #8a5a00 45%, #fff); }
  :root[data-theme="dark"] .pd-left { color: color-mix(in srgb, #c0392b 45%, #fff); }
  :root[data-theme="dark"] .kd-terms.in-ship { background: color-mix(in srgb, #fdf6f9 12%, var(--bg)); }
  :root[data-theme="dark"] /* 品項進度:已出庫・運送中 */
.arr.go { color: color-mix(in srgb, #6d28d9 45%, #fff); }
  :root[data-theme="dark"] .arr.buy { color: color-mix(in srgb, #b45309 45%, #fff); }
  :root[data-theme="dark"] .cancel-note { background: color-mix(in srgb, #fdecec 12%, var(--bg)); color: color-mix(in srgb, #991b1b 45%, #fff); }
  :root[data-theme="dark"] /* 離島門市標籤、訂單頁修改收件資料 */
.isl-tag { background: color-mix(in srgb, #fef3c7 12%, var(--bg)); color: color-mix(in srgb, #b45309 45%, #fff); }
  :root[data-theme="dark"] /* 訂單頁:剛下單提示、付款期限、查件連結;登入頁結帳提示 */
.o-placed { background: color-mix(in srgb, #effaf2 12%, var(--bg)); }
  :root[data-theme="dark"] .o-placed b { color: color-mix(in srgb, #15803d 45%, #fff); }
  :root[data-theme="dark"] .pay-dl { color: color-mix(in srgb, #b45309 45%, #fff); }
  :root[data-theme="dark"] .ptodo.hot b { color: color-mix(in srgb, #c0392b 45%, #fff); }
  :root[data-theme="dark"] .pser .pchip.on { background: color-mix(in srgb, #eceae8 12%, var(--bg)); }

/* 登入 Email 輔助 */
.em-sug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: -4px; font-size: 13px; color: var(--ink-2); }
.em-sug .chip { cursor: pointer; font: inherit; color: var(--ink); }
.em-fix { border: 0; background: none; padding: 0; font: inherit; color: #c2546d; text-decoration: underline; cursor: pointer; }
.em-sug[hidden] { display: none; }

/* 缺貨退款的品項 */
.arr.off { color: var(--muted); font-weight: 600; }
.li-row.off .li-img, .li-row.off .li-main > a, .li-row.off .r { opacity: .5; }
.li-row.off .r { text-decoration: line-through; }

/* 客服訊息：附上訂單 */
button.chat-att { border: 0; background: none; padding: 0; }
.chat-pick { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin-bottom: 8px; max-height: 260px; overflow-y: auto; }
.chat-pick-h { display: flex; align-items: center; font-size: 14px; font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.chat-pick-h button { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.chat-pick-o { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.chat-pick-o:last-child { border-bottom: 0; }
.chat-pick-o:hover { background: var(--bg-soft); }
.chat-pick { max-height: 340px; }
.chat-pick-o { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.cpo-imgs { display: flex; }
.cpo-imgs img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 2px solid var(--bg); background: var(--bg-soft); }
.cpo-imgs img + img { margin-left: -22px; }
.cpo-main { display: grid; gap: 2px; min-width: 0; }
.cpo-top { display: flex; align-items: center; gap: 6px; }
.cpo-st { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); }
.cpo-st.off { color: var(--muted); }
.cpo-names { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpo-imgs { width: 70px; flex: none; }
/* 附上訂單：點開看完整品項 */
.chat-pick-o { display: block; padding: 0; cursor: default; }
.chat-pick-o:hover { background: none; }
.cpo-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.cpo-head:hover, .cpo-head.on { background: var(--bg-soft); }
.cpo-arr { color: var(--muted); font-size: 18px; transition: transform .15s; }
.cpo-head.on .cpo-arr { transform: rotate(90deg); }
.cpo-detail { padding: 4px 12px 12px; background: var(--bg-soft); display: grid; gap: 8px; }
.cpo-it { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 14px; line-height: 1.5; }
.cpo-it img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.cpo-pick { justify-self: end; margin-top: 4px; }
body:has(.chat-page) .fab-cart, body:has(.chat-page) .fab-top { display: none; }   /* 客服頁不放浮動購物車，免得蓋住送出／詢問按鈕 */
/* 結帳確認框：標題、清單、同意區分三段；連結不用瀏覽器藍 */
.pre-confirm { padding: 14px 16px; }
.pre-confirm .pc-h { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.pre-confirm .notice-ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.pre-confirm .pc-agree { border-top: 1px solid #ecd3de; margin-top: 12px; padding-top: 12px; }
.pre-confirm .pc-terms { font-size: 13px; line-height: 1.7; color: var(--ink-2); margin: 0 0 10px; }
.pre-confirm .pc-terms b { color: var(--ink); }
.pre-confirm .link { color: inherit; text-decoration: underline; text-decoration-color: var(--pink-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pre-confirm .check { font-size: 14px; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pre-confirm .pc-agree { border-top-color: var(--line); } }
:root[data-theme="dark"] .pre-confirm .pc-agree { border-top-color: var(--line); }
/* 打勾框：全站圓形，勾了變綠色白勾 */
input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; flex: 0 0 18px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--bg) center / 12px 12px no-repeat; cursor: pointer; vertical-align: middle; transition: background-color .15s, border-color .15s; }
input[type=checkbox]:hover { border-color: #8cc9a3; }
input[type=checkbox]:checked { background-color: #8cc9a3; border-color: #8cc9a3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type=checkbox]:focus-visible { outline: 2px solid #8cc9a3; outline-offset: 2px; }
input[type=checkbox]:disabled { opacity: .45; cursor: not-allowed; }
/* 電腦版：選購面板直接嵌在商品頁右欄 */
@media (min-width: 860px) {
  .sheet-panel.inline { position: static; inset: auto; transform: none; width: auto; max-height: none; overflow: visible; padding: 4px 0 0; border-radius: 0; background: none; }
  .sheet-panel.inline .sheet-top { display: none; }
  .sheet-panel.inline .opt-group:first-of-type { margin-top: 0; }
}
/* 特典區塊可收合（點標題收起／展開） */
details.pd-promo > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.pd-promo > summary::-webkit-details-marker { display: none; }
details.pd-promo > summary h3 { margin: 0; }
details.pd-promo > summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-135deg); margin: 4px 4px 0; transition: transform .2s; flex: none; }
details.pd-promo:not([open]) > summary::after { transform: rotate(45deg); margin-top: -4px; }
details.pd-promo[open] > summary { margin-bottom: 6px; }
.opt.oos:disabled { cursor: not-allowed; opacity: .55; }
/* 特典框跟「本商品為預購商品」框同一個樣式（底色、字級），可收合 */
details.pd-promo { margin: 14px 0 0; padding: 10px 12px; border: 0; border-radius: 6px; background: #faf7fb; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
details.pd-promo > summary h3 { font-size: 14px; font-weight: 400; color: var(--ink); }
details.pd-promo p { font-size: 13px; line-height: 1.7; }
details.pd-promo[open] > summary { margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) details.pd-promo { background: color-mix(in srgb, #faf7fb 12%, var(--bg)); } }
:root[data-theme="dark"] details.pd-promo { background: color-mix(in srgb, #faf7fb 12%, var(--bg)); }
/* 電腦版:商品圖大一點、右邊文字區窄一點 */
@media (min-width: 860px) { .pd { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; } }
.pd-promos:empty { display: none; }
.sheet-panel.inline .pd-promos details.pd-promo { margin-top: 18px; }
.sheet-panel.inline .pd-promos:not(:has(details)) + .sale-notice { margin-top: 18px; }
.sheet-panel.inline .pd-promos .promo-link { margin: 6px 0 0; }
details.pd-promo .promo-link { margin: 6px 0 0; text-align: right; }
.sheet-panel.inline #buyActs { margin-top: 16px; }
.pd-promos:has(details) + .sale-notice { margin-top: 4px; }
.sheet-panel.inline #qtyGrp h4 { display: none; }
.sheet-panel.inline #qtyGrp { margin-top: 18px; }
/* 1 搜尋:按鈕不換行、選取時不要瀏覽器藍框 */
.search-box .s-go { width: auto; flex: none; padding: 0 18px; white-space: nowrap; }
.search-box input { font-size: 16px; }
.search-box input:focus, #hdrSearch input:focus { outline: none; border-color: var(--line); box-shadow: none; }
.search-box input, .search-box .s-go { border-radius: 999px; }
.search-box input { padding-left: 18px; }
/* 2 最近搜尋 */
.s-lbl { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.s-clear { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0; cursor: pointer; }
/* 3 補貨登記 */
#rsForm.me .btn { width: 100%; padding: 11px 14px; }
.rs-tip { margin: 8px 0 0 !important; font-size: 12.5px; color: var(--muted); }
/* 6 Size:商品描述區的一段 */
.pd-size { display: block; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
details.pd-size > summary { cursor: pointer; }
details.pd-size .sz-txt { margin-top: 6px; font-size: 13px; white-space: pre-line; }
.pd-size-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }
.pd-size-btn::before { content: '\25B8\00A0'; }
.sz-btn, .sz-box { border: 0 !important; padding: 0 !important; background: none !important; }
.sheet-panel.inline .sz-btn, .sheet-panel.inline .sz-box { display: none; }
/* 6 商品描述籤頁(同一頁):籤頁黏在頁首下面，點了捲到該段 */
#pTabs { position: sticky; top: var(--hdr-h); z-index: 5; background: var(--bg); }
#pTabs button { cursor: pointer; }
.pd-sec { scroll-margin-top: calc(var(--hdr-h) + 56px); }
section.pd-sec { padding: 8px 0 16px; border-top: 1px solid var(--line); }
.pd-sec-h { font-size: 15px; margin: 14px 0 10px; }
.pd-sec .sz-txt { white-space: pre-line; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.pd-sec .sz-img { display: block; max-width: 100%; height: auto; margin: 0 auto; cursor: zoom-in; }
/* 3 內文超連結統一顏色(頁首、頁尾、選單不套):淺色玫瑰粉、深色淡粉 */
:root { --a-link: #b4536c; }
.link, .rich a, .pd-summary a, .sale-notice a, .notice-ul a, .pd-promo a, .rs-tip a, .rs-done a, .sheet a.link { color: var(--a-link); text-decoration: underline; text-underline-offset: 2px; }
.link:visited, .rich a:visited { color: var(--a-link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --a-link: #f2a9ba; } }
:root[data-theme="dark"] { --a-link: #f2a9ba; }
body.has-test-bar #pTabs { top: calc(var(--hdr-h) + 28px); }
body.has-test-bar .pd-sec { scroll-margin-top: calc(var(--hdr-h) + 28px + 56px); }
/* 搜尋框:膠囊，左放大鏡、右清除 */
.search-box { align-items: center; }
.s-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.s-field .s-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-box .s-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; border-radius: 0; background: none; box-shadow: none !important; outline: none; font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.s-field input::-webkit-search-cancel-button { display: none; }
.s-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 16px; line-height: 26px; padding: 0; cursor: pointer; }
.s-x[hidden] { display: none; }
.s-cancel { display: none; flex: none; border: 0; background: none; padding: 0 2px 0 4px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.search-box .s-go { height: 44px; }
@media (max-width: 859px) {
  .search-box { margin: 8px 0 12px; gap: 12px; }
  .search-box .s-go { display: none; }
  .s-cancel { display: block; }
}
/* 數量框:數字置中(拿掉瀏覽器數字輸入框右邊的上下箭頭空間) */
.qty input { padding: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* 深色模式:登入/註冊切換框不要用亮白框線，改柔和的線色 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg { border-color: var(--line-2); } }
:root[data-theme="dark"] .seg { border-color: var(--line-2); }
/* 商品描述太長:收起來＋漸層＋展開更多 */
.desc-box.clamp { max-height: 720px; overflow: hidden; position: relative; }
.desc-box.clamp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.desc-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 4px 0 8px; padding: 13px; border: 1px solid var(--line-2); border-radius: var(--rad); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.desc-more[hidden] { display: none; }
.desc-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.desc-more.open svg { transform: rotate(180deg); }
section.pd-sec.first { border-top: 0; padding-top: 0; }
.spec-rich { padding: 4px 0 8px; }
/* 手機版:深淺色切換放到會員(人頭)右邊，不夾在搜尋旁 */
@media (max-width: 859px) { .hdr-right .theme-btn { order: 9; width: 44px; opacity: 1; } .hdr-right .theme-btn svg { width: 22px; height: 22px; } }
#sFuzzy { margin-top: 8px; }

.pd-promo .promo-notes { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pd-promo .promo-notes li { margin: 2px 0; }

/* 加購品提示、封入特典 */
.pd-addon { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft, #fff4f0); color: var(--ink); font-size: 14px; line-height: 1.6; }
.pd-addon .link { margin: 0 2px; }
.pd-promo.inbox p { margin: 0; }
.pd-promo.inbox.off span { text-decoration: line-through; color: var(--muted); }

/* 搜尋「你可能也在找」(AI 語意推薦):細分隔線＋小標，商品卡沿用 .grid */
#sSem { margin-top: 20px; }
#sSem[hidden] { display: none; }
.sem-lbl { margin: 0 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.sem-wait { height: 120px; }
.empty.sem-hint { padding: 20px 0 4px; }

/* ── 首頁(v2 改版):本週主打、藝人頭像列、現在要買、新上架 ── */
.home .hero { position: relative; margin: 12px 0 0; border-radius: var(--rad); overflow: hidden; background: var(--bg-soft); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; height: 184px; padding: 16px 16px 22px; color: var(--ink); }
.hero-slide.sk { background: var(--bg-soft); }
.hero-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.3); opacity: .5; }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 78%, transparent) 30%, color-mix(in srgb, var(--bg) 20%, transparent)); }
.hero-txt { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hero-txt small { padding: 1px 9px; border-radius: 999px; background: #2a2628; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.hero-txt b { margin-top: 4px; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-txt span { font-size: 13px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-txt em { margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; }
.hero-img { position: relative; z-index: 2; flex: 0 0 auto; width: 146px; height: 146px; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.15); background: var(--bg); }
.hero .dots { bottom: 8px; z-index: 3; }
.hero .dots button { width: 16px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.hero .dots button.on { background: var(--ink); }
@media (min-width: 720px) {
  .hero-slide { height: 300px; padding: 28px 56px 34px; gap: 32px; }
  .hero-txt b { font-size: 30px; }
  .hero-txt span { font-size: 15px; }
  .hero-txt em { font-size: 15px; margin-top: 12px; }
  .hero-img { width: 236px; height: 236px; }
}

.hm-sec { margin-top: 22px; }
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.hm-head h2 { margin: 0; font-size: 18px; }
.hm-head a { font-size: 14px; color: var(--muted); white-space: nowrap; }
.scroller { position: relative; }
.sc-track { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 -12px; padding: 2px 12px; scroll-padding: 0 12px; }
.sc-track::-webkit-scrollbar { display: none; }
.sc-arrow { display: none; }
@media (hover: hover) and (min-width: 720px) {
  .sc-arrow { display: grid; place-items: center; position: absolute; z-index: 3; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
  .sc-arrow[hidden] { display: none; }
  .sc-arrow svg { width: 18px; height: 18px; }
  .sc-arrow.prev { left: -8px; } .sc-arrow.next { right: -8px; }
  .av-row .sc-arrow { top: 22px; }
  .hot-row .sc-arrow { top: calc(25% - 18px); }
}
.av { flex: 0 0 72px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.av-img { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--pink); border: 2px solid var(--page); box-shadow: 0 0 0 1.5px var(--line-2); transition: transform .2s; }
.av:hover .av-img { transform: scale(1.05); }
.av-img img { width: 100%; height: 100%; object-fit: cover; }
.av-img b { font-size: 24px; line-height: 1; color: var(--ink); }
.av-n { max-width: 72px; font-size: 12px; line-height: 1.3; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 720px) { .av { flex-basis: 88px; } .av-img { width: 76px; height: 76px; } .av-n { max-width: 88px; font-size: 13px; } }
.hot-row .card { flex: 0 0 42%; scroll-snap-align: start; }
@media (min-width: 720px) { .hot-row .card { flex-basis: calc((100% - 24px - 36px) / 3); } }
@media (min-width: 1000px) { .hot-row .card { flex-basis: calc((100% - 24px - 48px) / 4.3); } }
.hm-badge { position: absolute; top: 6px; right: 6px; z-index: 2; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #a48ad8; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hm-badge.hurry { background: var(--sale); color: #fff; }
.home .more-btn { margin-top: 36px; }
.gift-tag { position: relative; display: inline-flex; align-items: center; gap: 3px; height: 20px; margin-left: 6px; padding: 0 7px 0 13px; vertical-align: 2px; background: #a48ad8; color: #fff; border-radius: 0 4px 4px 0; clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); }
.gift-tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--page); }
.gift-tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gift-tag b { font-size: 10px; line-height: 1; letter-spacing: .5px; }
.hm-head h2 .gift-tag { height: 22px; margin: 0 8px 0 0; vertical-align: 3px; }
.card-kick { margin: 10px 4px -6px; font-size: 10px; font-weight: 700; letter-spacing: 1px; line-height: 1.4; color: #b4536c; }
.card-kick.in { color: #4f9a6c; }
.corner .gift-tag { margin: 0; box-shadow: none; }
.corner .cd { display: inline-block; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #c8344d; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-kick:not(.in) { color: #e59aac; } }
:root[data-theme="dark"] .card-kick:not(.in) { color: #e59aac; }
.cd-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 5px 4px; background: rgba(40,28,34,.5); color: #fff; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.35); font-weight: 500; text-align: center; letter-spacing: .5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-txt small { background: #f2eef0; color: #2a2628; } }
:root[data-theme="dark"] .hero-txt small { background: #f2eef0; color: #2a2628; }
/* 新上架：每個系列一塊(藝人｜系列 + 看全部) */
.hm-head h3 { margin: 0; font-size: 16px; }
.hm-series + .hm-series { margin-top: 28px; }
/* 商品頁：圖＋資訊＋描述放白底卡片，跟淺灰頁面分開 */
.pd { margin-top: 4px; padding: 16px 12px 90px; background: var(--bg); border-radius: var(--rad); box-shadow: 0 2px 10px rgba(0, 0, 0, .018); }
@media (min-width: 860px) { .pd { padding: 28px 32px 36px; } }
/* 手機選單改版：搜尋框＋藝人頭像格＋底部連結 */
.dr-search { display: flex; align-items: center; gap: 8px; margin: 14px 16px 6px; padding: 0 12px; height: 40px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.dr-search svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.dr-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.dr-search input::-webkit-search-cancel-button { display: none; }
.dr-all, .dr-links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); }
.dr-all { font-weight: 700; }
.dr-go { width: 16px; height: 16px; fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dr-av { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding: 18px 12px 20px; border-bottom: 1px solid var(--line); }
.dr-av .av { flex: none; min-width: 0; }
.dr-av .av[hidden] { display: none; }
.dr-av .av-img { width: 64px; height: 64px; }
.dr-av .av-n { max-width: 100%; font-size: 12px; }
.dr-none { margin: 0; padding: 16px; font-size: 13px; color: var(--ink-2); text-align: center; border-bottom: 1px solid var(--line); }
.dr-links { padding-bottom: 24px; }
.dr-links a { font-size: 14px; }
/* 前台卡片統一：白底＋極淡陰影(跟商品頁 .pd 同一套)；深色模式用稍亮的底＋細框 */
:root { --card: #fff; --card-bd: transparent; --card-sh: 0 2px 10px rgba(0, 0, 0, .035); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --card: #1f1b1c; --card-bd: var(--line); --card-sh: none; } }
:root[data-theme="dark"] { --card: #1f1b1c; --card-bd: var(--line); --card-sh: none; }
.o-state, .o-cancel, .o-card, .oc, .member-head, .info-rows, .ab-box, .cp-card { background: var(--card); border: 1px solid var(--card-bd); box-shadow: var(--card-sh); border-radius: 12px; }
.cp-card { border-left: 4px solid var(--pink-deep); }
.oc:hover { border-color: var(--card-bd); box-shadow: 0 3px 14px rgba(0, 0, 0, .07); }
.o-cancel { padding: 14px 16px; }
.o-card, .o-state { padding: 14px 16px; }
.cat-rec { margin-top: 8px; }

/* 客服訊息：說明、對話、輸入列都放白底卡片(同訂單頁那套) */
.chat-page .chat-hint { background: var(--card); border: 1px solid var(--card-bd); box-shadow: var(--card-sh); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.chat-page .chat-list { background: var(--card); border: 1px solid var(--card-bd); box-shadow: var(--card-sh); border-radius: 12px; padding: 16px; }
.chat-page .chat-box { margin-top: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--card); border: 1px solid var(--card-bd); border-top-color: var(--card-bd); box-shadow: 0 -2px 12px rgba(0, 0, 0, .04); border-radius: 12px; }
.chat-pick { overflow-x: hidden; }
.chat-row .btn.small:disabled { opacity: .55; }
/* 客服訊息：對話框自己捲(固定高度)，標題和說明不會被推上去，送出／收到回覆只捲對話框 */
.chat-page .chat-list { height: clamp(300px, calc(100dvh - 400px), 760px); min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat-page .chat-box { position: static; }
/* 客服訊息：附的訂單做成白色小膠囊、看得清楚；深色模式下「TBUY KSHOP」改亮粉 */
.msg-ord { padding: 3px 10px; margin-bottom: 6px; border-radius: 999px; background: rgba(255, 255, 255, .75); color: #8a2f45; font-size: 12.5px; }
.msg.them .msg-ord { background: var(--card); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg-ord { background: rgba(0, 0, 0, .28); color: #f6c9d4; } :root:not([data-theme="light"]) .msg-who { color: #e59aac; } }
:root[data-theme="dark"] .msg-ord { background: rgba(0, 0, 0, .28); color: #f6c9d4; }
:root[data-theme="dark"] .msg-who { color: #e59aac; }
/* 訂單頁「詢問這張訂單」：白底膠囊按鈕＋對話圖示 */
.o-ask { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-sh); color: var(--ink); font-weight: 600; font-size: 14px; }
.o-ask svg { width: 17px; height: 17px; fill: none; stroke: var(--pink-deep); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.o-ask:hover { border-color: var(--pink-deep); }
@media (max-width: 560px) { .o-head { flex-wrap: wrap; } .o-ask { padding: 6px 12px; font-size: 13px; } }

/* 附訂單選單：手機上不要高過半個畫面，輸入框才放得下 */
.chat-page .chat-pick { max-height: min(340px, 45dvh); overscroll-behavior: contain; }
.chat-page .chat-pick.wait { height: min(340px, 45dvh); }   /* 載入中先佔好高度，載完不會再跳一次 */
.cpo-arr { transition: none; }

/* 客服輸入列與「詢問這張訂單」改成扁橢圓（11/21） */
.chat-page .chat-row { align-items: center; }
.chat-page .chat-row textarea { min-height: 38px; padding: 8px 16px; line-height: 20px; border-radius: 19px; }
.chat-page .chat-row .btn.small { height: 38px; min-height: 0; padding: 0 18px; border-radius: 999px; line-height: 1; flex: none; }
.cpo-detail .cpo-pick { justify-self: end; margin: 6px 0 2px; height: 32px; min-height: 0; padding: 0 16px; font-size: 13px; line-height: 1; border-radius: 999px; }
.cpo-head:focus:not(:focus-visible) { outline: none; }
.cpo-imgs { width: 88px; }   /* 3 張縮圖疊起來要 88px，不然會壓到訂單編號 */
/* 11/21 選訂單改成點一下就選：整行是按鈕，不再展開明細 */
.cpo-head { cursor: pointer; padding: 10px 12px; }
.cpo-head:active { background: var(--bg-soft); }
.cpo-names { display: flex; min-width: 0; white-space: nowrap; }
.cpo-names > :first-child, .cpo-names { overflow: hidden; text-overflow: ellipsis; }
.cpo-names .muted { flex: none; }
.cpo-nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cpo-head .cpo-imgs { justify-content: flex-start; }
.cpo-names .muted { margin-left: 4px; }
/* 輸入框點下去不要黑框 */
.chat-page .chat-row textarea:focus { outline: none; border-color: var(--pink-deep); }
/* 時間放在泡泡外面，不多佔一行 */
.msg-line { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; }
.msg-line.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-line.them { align-self: flex-start; }
.msg-line .msg { max-width: none; min-width: 0; }
.msg-line .msg-t { flex: none; margin: 0 0 2px; text-align: left; white-space: nowrap; }
/* 11/21c 選訂單：一張一行，點了在輸入框上方確認 */
.cpo-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cpo-row:last-child { border-bottom: 0; }
.cpo-row:hover, .cpo-row:active { background: var(--bg-soft); }
.cpo-row:focus:not(:focus-visible) { outline: none; }
.cpo-row > img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.cpo-row .cpo-names { font-size: 14px; color: var(--ink); }
.cpo-sub { font-size: 12px; margin-top: 2px; }
.cpo-sub .cpo-st { padding: 0; background: none; font-size: 12px; color: var(--ink-2); }
.cpo-sub .cpo-st.off { color: var(--muted); }
.chat-page .chat-ord { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; }
.chat-page .chat-ord .co-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.chat-page .chat-ord .co-h button { margin-left: auto; }
.co-imgs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.co-imgs img { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 8px; background: var(--bg); }
.co-more { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 600; }
/* 11/21d 確認卡列出訂單明細 */
.chat-page .chat-ord { gap: 6px; }
.co-meta { font-size: 12px; margin-top: -2px; }
.co-list { display: grid; gap: 6px; }
.co-list.clip { max-height: 138px; overflow: hidden; }
.co-list.clip.open { max-height: min(260px, 35dvh); overflow-y: auto; overscroll-behavior: contain; }
.co-it { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; font-size: 13px; line-height: 1.4; }
.co-it img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.co-itn { display: grid; min-width: 0; }
.co-itn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-itn .muted { font-size: 12px; }
.co-tog { justify-self: start; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--pink-deep); cursor: pointer; }
.chat-page .chat-ord .co-tog { margin-left: 0; color: var(--pink-deep); font-size: 13px; }
/* 11/21 結束對話：舊對話收合按鈕、結束分隔線、過期圖片 */
.chat-page .chat-old { align-self: center; font-size: 13px; color: var(--pink-deep); background: var(--bg-soft); border: 0; border-radius: 999px; padding: 6px 14px; margin: 2px 0 8px; cursor: pointer; }
.chat-page .chat-old:disabled { color: var(--muted); cursor: default; }
.chat-page .chat-end { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin: 10px 0; }
.chat-page .chat-end::before, .chat-page .chat-end::after { content: ""; flex: 1; border-top: 1px dashed var(--line, #e3e3e3); }
.chat-page .msg-gone { font-size: 12.5px; color: var(--muted); }
