/* =============================================================
 * 霓核 - tech
 * 深空暗色 × 霓虹青 × 電光紫。玻璃擬態卡片、微光按鈕、
 * 等寬數字，精密如儀器的購物體驗。手機優先、老人友善
 * （大字、高對比、觸控目標 ≥ 48px）。
 * ============================================================= */
:root {
  --bg: #05070d;            /* 深空 */
  --bg2: #0a0f1a;           /* 深空・次 */
  --card: rgba(17, 24, 39, .72);  /* 玻璃卡 */
  --card-solid: #0d1420;
  --ink: #eaf2fb;           /* 主文字 */
  --ink-soft: #b8c4d4;
  --muted: #6b7a90;         /* 次文字 */
  --line: rgba(120, 160, 200, .14);  /* 髮絲線 */
  --cyan: #00e5ff;          /* 霓虹青・主色 */
  --cyan-dim: rgba(0, 229, 255, .12);
  --violet: #8b5cf6;        /* 電光紫・輔 */
  --violet-dim: rgba(139, 92, 246, .12);
  --danger: #ff5d6c;
  --ok: #00e676;
  --radius: 14px;
  --glow: 0 0 24px rgba(0, 229, 255, .25);
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, .08), transparent 60%),
    radial-gradient(1000px 500px at 10% 0%, rgba(0, 229, 255, .06), transparent 60%),
    var(--bg);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
               -apple-system, "Segoe UI", sans-serif;
  line-height: 1.9; letter-spacing: .02em;
  min-height: 100vh;
}
/* 細網格底紋 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 200, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 200, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}
.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }
::selection { background: var(--cyan); color: #031318; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, .82);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
}
.logo {
  color: var(--ink); font-size: 1.2rem; font-weight: 800;
  text-decoration: none; letter-spacing: .28em;
  background: linear-gradient(100deg, #fff 20%, var(--cyan) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo img { max-height: 46px; width: auto; vertical-align: middle; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  color: var(--ink-soft); text-decoration: none;
  padding: 12px 10px; font-size: .95rem; letter-spacing: .08em;
  border-radius: 10px; transition: color .2s, background .2s;
}
.main-nav a:active { color: var(--cyan); background: var(--cyan-dim); }
.cart-link {
  border: 1px solid rgba(0, 229, 255, .4); border-radius: 12px;
  color: var(--cyan) !important; padding: 10px 16px !important;
  margin-left: 6px; background: var(--cyan-dim);
}

/* ---------- 主視覺 ---------- */
.hero {
  text-align: center;
  padding: 92px 20px 80px;
  margin-bottom: 52px;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.35), transparent);
}
.hero-kicker {
  margin: 0 0 22px; color: var(--cyan);
  font-size: .92rem; letter-spacing: .5em; text-indent: .5em; font-weight: 600;
}
.hero h1 {
  margin: 0 0 18px; font-weight: 800;
  font-size: 2.7rem; letter-spacing: .18em; text-indent: .18em;
  background: linear-gradient(180deg, #fff, #9fb3c8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 0 0 44px; color: var(--muted);
  font-size: 1.02rem; letter-spacing: .32em; text-indent: .32em;
}
.hero .btn { max-width: 340px; margin: 0 auto; }

/* ---------- 分類 ---------- */
.cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 2px 14px; margin-bottom: 44px;
}
.cat-btn {
  flex: 0 0 auto; padding: 12px 20px;
  color: var(--muted); font-size: 1rem; text-decoration: none;
  letter-spacing: .12em; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card);
  transition: all .2s;
}
.cat-btn.on {
  color: #031318; border-color: var(--cyan); font-weight: 700;
  background: var(--cyan); box-shadow: var(--glow);
}

/* ---------- 商品 ---------- */
.products {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px;
  padding-bottom: 64px;
}
.product-card {
  text-decoration: none; color: inherit; display: block;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:active { transform: scale(.98); border-color: rgba(0,229,255,.4); }
.product-img {
  aspect-ratio: 1/1; background: linear-gradient(135deg, #0d1626, #111c30);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #2a3a52;
  border-bottom: 1px solid var(--line);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-body { padding: 18px 18px 20px; }
.product-body h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; letter-spacing: .06em; }
.product-body .summary {
  margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price {
  color: var(--cyan); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.soldout-tag {
  display: inline-block; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 16px; font-size: .88rem; letter-spacing: .2em;
}

/* ---------- 表單 ---------- */
.field { margin-bottom: 26px; }
.field label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 1rem; letter-spacing: .08em; color: var(--ink-soft); }
.field input[type=text], .field input[type=tel], .field input[type=email],
.field input[type=password], .field input[type=number], .field input[type=date],
.field select, .field textarea {
  width: 100%; padding: 16px; font-size: 1.1rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(5, 8, 15, .6); color: var(--ink); font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); outline: none;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .15);
}
.field input::placeholder, .field textarea::placeholder { color: #3d4a5e; }
.hint { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------- 會員表單（登入／註冊） ---------- */
.auth-wrap { max-width: 560px; margin: 0 auto; }
.auth-sub { text-align: center; color: var(--muted); font-size: .95rem; letter-spacing: .08em; margin: -6px 0 10px; }
.auth-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 40px 34px; margin: 22px 0 14px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.auth-card .field { margin-bottom: 24px; }
.auth-card .field:last-of-type { margin-bottom: 8px; }
.auth-card .field label {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .24em;
  color: var(--cyan); margin-bottom: 10px;
}
.auth-card .field input:focus, .auth-card .field select:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.14); outline: none;
}
.auth-card .field input[readonly] { background: rgba(5,8,15,.9); color: var(--muted); }
.auth-section {
  font-size: .85rem; font-weight: 700; letter-spacing: .3em; text-indent: .3em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px; margin: 38px 0 26px;
  display: flex; align-items: center; gap: 12px;
}
.auth-section::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 2px; }
.auth-section:first-child { margin-top: 4px; }
.form-errors {
  background: rgba(255, 93, 108, .08); border: 1px solid rgba(255,93,108,.35);
  border-radius: 12px; padding: 14px 20px; margin: 0 0 26px;
  color: #ff8f9a; font-size: .93rem;
}
.form-errors p { margin: 6px 0; }
.auth-foot { text-align: center; color: var(--muted); font-size: .95rem; margin: 20px 0 8px; }
.auth-foot a { color: var(--cyan); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(0,229,255,.4); }
@media (max-width: 560px) {
  .auth-card { padding: 32px 22px; border-radius: 16px; }
}
.err { color: #ff8f9a; font-weight: 700; margin: 8px 0; }
.ok { color: var(--ok); font-weight: 700; margin: 8px 0; }

/* ---------- 按鈕 ---------- */
.btn {
  display: block; width: 100%; padding: 18px; font-size: 1.18rem; font-weight: 800;
  letter-spacing: .22em; text-indent: .22em;
  border: none; border-radius: 14px; cursor: pointer; text-align: center;
  text-decoration: none; margin: 14px 0; font-family: inherit;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.985); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00b8d4);
  color: #031318; box-shadow: var(--glow);
}
.btn-primary:active { filter: brightness(1.1); }
.btn-accent {
  background: linear-gradient(135deg, var(--violet), #6d3ff0);
  color: #fff; box-shadow: 0 0 24px rgba(139, 92, 246, .35);
}
.btn-accent:active { filter: brightness(1.12); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(140, 170, 200, .3);
}
.btn-ghost:active { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; gap: 12px; }
.btn-row .btn { margin: 14px 0; }

/* 付款方式大按鈕 */
.pay-methods { display: grid; gap: 14px; }
.pay-method, .invoice-type {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 20px; font-size: 1.12rem; font-weight: 700; text-align: left;
  letter-spacing: .06em;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; cursor: pointer;
  font-family: inherit; color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.pay-method.on, .invoice-type.on {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 20px rgba(0,229,255,.15);
  background: rgba(0, 229, 255, .06);
}
.pay-method small, .invoice-type small { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }

/* ---------- 購物車／訂單 ---------- */
.cart-item {
  display: flex; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px; align-items: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cart-item .thumb {
  width: 74px; height: 74px; flex: 0 0 74px; border-radius: 12px;
  background: linear-gradient(135deg, #0d1626, #16233a); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #2a3a52;
}
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.cart-item .info { flex: 1; }
.cart-item .info h4 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.qty-ctrl { display: flex; align-items: center; gap: 12px; }
.qty-ctrl button {
  width: 48px; height: 48px; font-size: 1.35rem; border-radius: 12px;
  border: 1px solid rgba(0,229,255,.35); background: var(--cyan-dim);
  color: var(--cyan); cursor: pointer; font-weight: 700;
}
.qty-ctrl button:active { background: rgba(0,229,255,.25); }
.qty-ctrl span { min-width: 2em; text-align: center; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.totals {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 20px 0;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.totals .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 1.05rem; }
.totals .row.grand {
  font-size: 1.4rem; font-weight: 800; color: var(--cyan);
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px;
  font-variant-numeric: tabular-nums;
}

/* 免運進度條 */
.ship-progress {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin: 16px 0;
}
.ship-progress .bar {
  height: 8px; background: rgba(120,160,200,.12); border-radius: 6px;
  overflow: hidden; margin-top: 12px;
}
.ship-progress .bar i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(0,229,255,.5);
  transition: width .5s ease;
}

/* 步驟指示 */
.steps { display: flex; margin: 26px 0 34px; gap: 8px; }
.steps div {
  flex: 1; text-align: center; padding: 14px 4px; font-size: .92rem;
  letter-spacing: .12em; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.steps div.on {
  color: var(--cyan); font-weight: 700;
  border-color: rgba(0,229,255,.45); background: var(--cyan-dim);
  box-shadow: inset 0 0 18px rgba(0,229,255,.08);
}

.flash {
  background: var(--cyan-dim); border: 1px solid rgba(0,229,255,.35);
  border-radius: 12px; padding: 15px 20px; margin: 16px 0; color: var(--ink);
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin: 20px 0;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.order-no {
  font-size: 1.5rem; font-weight: 800; color: var(--cyan); letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 商品詳情：購買區 ---------- */
.pd-hero { margin: 4px 0 22px; }
.pd-name {
  font-size: 1.9rem; letter-spacing: .04em; margin: 20px 0 12px; line-height: 1.4;
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #a8bdd4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pd-summary { color: var(--ink-soft); font-size: 1rem; line-height: 1.9; margin: 0; }
.pd-buy {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 28px; margin: 0 0 30px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  position: relative; overflow: hidden;
}
.pd-buy::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.5), transparent);
}
.pd-buy.pd-flash { animation: pdFlash 1s ease; }
@keyframes pdFlash {
  0%, 100% { box-shadow: 0 24px 60px rgba(0,0,0,.4); }
  30% { box-shadow: 0 0 0 4px rgba(0,229,255,.3), 0 24px 60px rgba(0,0,0,.4); }
}
.pd-price-row {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.pd-price-label { font-size: .82rem; letter-spacing: .28em; color: var(--muted); white-space: nowrap; font-weight: 600; }
.pd-price {
  font-size: 2rem; font-weight: 800; color: var(--cyan); letter-spacing: .01em;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(0,229,255,.35);
}
.pd-price .hint { font-size: 1.05rem; }
.pd-price .sale-tag {
  font-size: .78rem; vertical-align: middle; font-weight: 700;
  background: linear-gradient(135deg, var(--violet), #6d3ff0); color: #fff;
  border-radius: 8px; padding: 5px 12px; letter-spacing: .14em;
  box-shadow: 0 0 16px rgba(139,92,246,.4);
}
.pd-spec-label { font-size: .88rem; color: var(--muted); font-weight: 400; }
.pd-stock { margin: -6px 0 20px; font-size: .95rem; color: var(--muted); }
.pd-stock.urgent {
  color: #ff8f9a; font-weight: 700;
  background: rgba(255,93,108,.08); border: 1px solid rgba(255,93,108,.35);
  border-radius: 12px; padding: 12px 18px; display: inline-block;
}
.pd-spec { margin-bottom: 24px; }
.pd-spec > label { font-size: .9rem; letter-spacing: .2em; color: var(--ink-soft); font-weight: 600; display: block; margin-bottom: 12px; }
.pd-qty { margin: 6px 0 22px; }
.pd-bag {
  border: 1px dashed rgba(0,229,255,.3); border-radius: 14px;
  padding: 20px; margin-bottom: 24px; background: rgba(0,229,255,.03);
}
.pd-bag label { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; cursor: pointer; }
.pd-bag input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--cyan); }
.pd-cta { margin-top: 8px; font-size: 1.28rem; padding: 20px; }
.pd-ship-hint { text-align: center; color: var(--muted); font-size: .88rem; margin: 14px 0 0; }
.pd-trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-soft);
}
.pd-trust span::before { content: "◆ "; color: var(--cyan); font-size: .7em; }
.pd-h2 { font-size: 1.25rem; letter-spacing: .18em; margin: 40px 0 18px; font-weight: 800; }
.pd-h2::before { content: ""; display: inline-block; width: 26px; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 3px; margin-right: 12px; vertical-align: middle; }
.pd-upsell h3 { margin: 0 0 8px; font-size: 1.1rem; }

/* 手機吸底購買列 */
.pd-sticky { display: none; }
@media (max-width: 699px) {
  .pd-sticky {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(8, 12, 20, .92);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .5);
  }
  .pd-sticky-price { flex: 1; font-size: 1.3rem; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
  .pd-sticky .btn { width: auto; flex: 1.5; margin: 0; padding: 16px 10px; font-size: 1.05rem; }
  body:has(.pd-sticky) { padding-bottom: 84px; }
}

/* 商品圖片畫廊 */
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb {
  width: 76px; height: 76px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.on { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 14px rgba(0,229,255,.3); }

/* 商品詳情 */
.detail-img {
  border-radius: 18px; background: linear-gradient(135deg, #0d1626, #14213a);
  border: 1px solid var(--line);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: #22314a; margin: 16px 0 34px; overflow: hidden;
}
.detail-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.spec-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.spec-opt {
  padding: 15px 26px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(10, 15, 26, .6); font-size: 1.1rem; cursor: pointer; font-family: inherit;
  letter-spacing: .08em; color: var(--ink); font-weight: 600;
  touch-action: manipulation;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
/* 選中：霓虹外框，一眼可辨；只換顏色不改尺寸，避免點按位移 */
.spec-opt.on {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan), 0 0 18px rgba(0,229,255,.35);
  background: var(--cyan-dim); color: #fff;
}
.spec-opt.soldout::after { content: '（售完）'; opacity: .7; }
.spec-opt:disabled { opacity: .35; cursor: not-allowed; }

/* 頁尾 */
.site-footer {
  margin-top: 72px; padding: 44px 0;
  border-top: 1px solid var(--line); color: var(--muted);
  text-align: center; font-size: .92rem; letter-spacing: .12em;
  background: rgba(5, 7, 13, .5);
}
.site-footer .tiny { font-size: .8rem; }
@media (max-width: 699px) {
  .site-footer .f-item { display: block; margin: 8px 0; }
  .site-footer .f-sep { display: none; }
}

/* 桌機 */
@media (min-width: 700px) {
  .products { grid-template-columns: 1fr 1fr 1fr; gap: 26px; }
  .wrap { max-width: 980px; }
  .hero h1 { font-size: 3.4rem; }
  .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,229,255,.35);
    box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px rgba(0,229,255,.08);
  }
}

/* 商品詳細介紹（富文字） */
.desc-body { color: var(--ink-soft); }
.desc-body p { margin: 0 0 1.2em; }
.desc-body p:last-child { margin-bottom: 0; }
.desc-body ul, .desc-body ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.desc-body h3, .desc-body h4 { margin: 1.4em 0 .8em; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.desc-body blockquote {
  margin: 0 0 1.2em; padding: 4px 0 4px 18px;
  border-left: 2px solid var(--cyan); color: var(--ink-soft);
}
.desc-body img { max-width: 100%; height: auto; border-radius: 12px; }
.desc-body a { color: var(--cyan); }

/* 社群分享 */
.share-box h3 { font-size: 1.1rem; letter-spacing: .16em; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.share-btn {
  flex: 1 1 0; min-width: 100px; padding: 15px 8px; text-align: center;
  font-size: 1rem; letter-spacing: .08em; text-decoration: none;
  color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; font-family: inherit;
  transition: border-color .2s, color .2s;
}
.share-btn:active { border-color: var(--cyan); color: var(--cyan); }

/* 特價商品區 */
.sale-section { margin: 36px 0; }
.sale-title {
  font-size: 1.35rem; letter-spacing: .26em; margin: 0 0 18px; font-weight: 800;
  display: flex; align-items: center; gap: 12px;
}
.sale-title::before { content: ""; width: 26px; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 3px; }
.product-img { position: relative; }
.sale-tag {
  position: absolute; top: 10px; left: 10px;
  display: inline-block;
  background: linear-gradient(135deg, var(--violet), #6d3ff0); color: #fff;
  border-radius: 8px; padding: 6px 14px;
  font-size: .88rem; letter-spacing: .18em; font-weight: 700;
  box-shadow: 0 0 18px rgba(139,92,246,.5);
}
.orig-price { color: var(--muted); font-size: .95rem; margin-right: 10px; text-decoration: line-through; }

/* 特價跑馬燈 */
.sale-track-wrap { position: relative; }
.sale-track {
  display: flex; gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.sale-track::-webkit-scrollbar { display: none; }
.sale-track .sale-card { flex: 0 0 clamp(220px, 62vw, 270px); scroll-snap-align: start; }
.sale-nav {
  position: absolute; top: 38%; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,15,26,.9);
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--cyan);
  display: flex; align-items: center; justify-content: center; padding: 0;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sale-nav.prev { left: -8px; }
.sale-nav.next { right: -8px; }
@media (max-width: 640px) {
  .sale-nav { display: none; }
}

/* ---------- ATM 轉帳回報 ---------- */
.rp-wrap { max-width: 620px; margin: 0 auto; padding: 12px 0 8px; }
.rp-kicker { text-align: center; letter-spacing: .45em; text-indent: .45em; color: var(--cyan); font-size: .9rem; margin: 6px 0; font-weight: 600; }
.rp-title { text-align: center; font-size: 1.7rem; letter-spacing: .1em; margin: 0 0 24px; font-weight: 800; }
.rp-steps { display: flex; list-style: none; padding: 0; margin: 0 0 32px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.rp-steps li { flex: 1; text-align: center; padding: 14px 4px; color: var(--muted); font-size: .9rem; letter-spacing: .1em; }
.rp-steps li + li { border-left: 1px solid var(--line); }
.rp-steps .n { display: inline-block; width: 1.7em; height: 1.7em; line-height: 1.7em; text-align: center; border: 1px solid var(--line); border-radius: 50%; margin-right: 8px; font-size: .82em; }
.rp-steps li.done .n { background: var(--cyan); border-color: var(--cyan); color: #031318; font-weight: 700; }
.rp-steps li.now { color: var(--ink); font-weight: 700; }
.rp-steps li.now .n { border-color: var(--cyan); color: var(--cyan); }
.rp-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 30px; background: var(--card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.rp-panel h2 { font-size: 1rem; letter-spacing: .28em; margin: 0 0 10px; color: var(--cyan); }
.rp-note { white-space: pre-line; margin: 6px 0 0; line-height: 2; color: var(--ink-soft); }
.rp-dl { margin: 0; }
.rp-dl > div { display: flex; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.rp-dl > div:first-child { border-top: none; }
.rp-dl dt { width: 4.5em; flex-shrink: 0; color: var(--muted); letter-spacing: .22em; font-size: .9rem; }
.rp-dl dd { margin: 0; font-size: 1.12rem; }
.rp-dl dd.acct { font-size: 1.45rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--cyan); font-weight: 700; }
.rp-sec-title { font-size: 1rem; letter-spacing: .28em; margin: 0 0 18px; color: var(--ink-soft); }
.rp-order { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-align: center; letter-spacing: .06em; }
.rp-order strong { color: var(--ink); }
.rp-order .sep { margin: 0 10px; }
.rp-privacy { color: var(--muted); font-size: .9rem; margin-top: 14px; letter-spacing: .04em; }
.rp-done { text-align: center; padding: 28px 12px 32px; margin-bottom: 8px; border: 1px solid rgba(0,230,118,.3); border-radius: var(--radius); background: rgba(0,230,118,.05); }
.rp-done .tick { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #031308; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 12px; font-weight: 800; box-shadow: 0 0 24px rgba(0,230,118,.4); }
.rp-done h2 { font-size: 1.25rem; letter-spacing: .1em; margin: 0 0 8px; }
.rp-done p { margin: 4px 0; color: var(--ink-soft); }
.req { color: var(--danger); }
input.acct5 { letter-spacing: .4em; font-size: 1.45rem !important; font-variant-numeric: tabular-nums; }

/* ---------- 手機版排版修正（2026-10-20） ---------- */
/* 數量輸入框：原為瀏覽器預設白底，與暗色版型不搭，改為同色系 */
.qty-ctrl input[type=number] {
  width: 76px; height: 48px; text-align: center;
  font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--ink); background: rgba(10, 15, 26, .6);
  border: 1px solid var(--line); border-radius: 12px; font-family: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-ctrl input[type=number]::-webkit-outer-spin-button,
.qty-ctrl input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-bag .qty-ctrl .hint { font-size: .95rem; color: var(--muted); letter-spacing: .12em; white-space: nowrap; }

@media (max-width: 699px) {
  /* 頁首：logo 一列、導覽一列平均分配，不再擠成兩排半 */
  .header-inner { flex-wrap: wrap; padding: 12px 16px; row-gap: 12px; }
  .logo img { max-height: 40px; border-radius: 6px; }
  .main-nav { order: 3; width: 100%; flex-wrap: nowrap; justify-content: space-between; }
  .main-nav a { padding: 9px 7px; font-size: .92rem; letter-spacing: .03em; white-space: nowrap; }
  .cart-link { margin-left: 0; padding: 8px 13px !important; }
  .wrap { padding: 0 16px; }

  /* 主視覺收斂 */
  .hero { padding: 54px 16px 44px; margin-bottom: 36px; }
  .hero h1 { font-size: 2.05rem; }
  .hero-sub { letter-spacing: .22em; text-indent: .22em; }

  /* 購買區：間距與字級收斂 */
  .pd-buy { padding: 24px 20px; border-radius: 18px; }
  .pd-name { font-size: 1.55rem; }
  .pd-price { font-size: 1.65rem; }
  .pd-cta { font-size: 1.12rem; padding: 17px; }
  .pd-bag { padding: 16px; }
  .pd-bag label { font-size: 1rem; }
  .qty-ctrl { gap: 10px; }
  .qty-ctrl button { width: 46px; height: 46px; }
  .qty-ctrl input[type=number] { width: 68px; height: 46px; }
  .pd-ship-hint { font-size: .84rem; line-height: 1.7; }
  .pd-trust { gap: 8px 14px; font-size: .84rem; }
  .pd-trust span { white-space: nowrap; }

  /* 吸底購買列收斂 */
  .pd-sticky { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 12px; }
  .pd-sticky-price { font-size: 1.15rem; }
  .pd-sticky .btn { padding: 14px 10px; font-size: 1rem; }
  body:has(.pd-sticky) { padding-bottom: 76px; }

  /* 規格鈕收斂 */
  .spec-opt { padding: 13px 18px; font-size: 1.02rem; }
}
