:root{
  --text:#111827; --muted:#6b7280; --border:#e5e7eb; --accent:#f43f5e;
  --bg:#ffffff; --light:#f9fafb;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Noto Sans TC','PingFang TC','Microsoft JhengHei',Arial,sans-serif;
  color:var(--text); background:var(--bg); line-height:1.75;
}
.container{max-width:960px;margin:0 auto;padding:24px}
.section{margin:56px 0}
.section h2{font-size:26px;margin:0 0 12px}
.section p.lead{color:var(--muted);margin-top:-6px}

/* 置頂公告欄 */
.notice{position:sticky;top:0;z-index:999;background:#0ea5e9;color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.08)}
.notice .wrap{max-width:960px;margin:0 auto;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:10px}
.notice .msg{font-weight:600;letter-spacing:.3px}
.notice .close{border:1px solid rgba(255,255,255,.4);background:transparent;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;line-height:26px;font-size:18px}
.notice.hide{display:none}

/* Hero */
.hero{text-align:center;padding:40px 0 16px}
.hero h1{font-size:40px;margin:0 0 8px}
.hero .sub{color:var(--muted);margin:0}

/* 商品圖 */
.product-img{margin:18px 0}
.product-img img{width:100%;border-radius:20px;display:block;background:#fafafa;border:1px solid var(--border);box-shadow:0 16px 40px rgba(0,0,0,.08)}

/* 差異表 */
.compare .table{background:#fff;border-radius:16px;overflow:hidden;border:1px solid var(--border);box-shadow:0 10px 30px rgba(0,0,0,.07)}
.compare table{width:100%;border-collapse:collapse}
.compare thead th{background:linear-gradient(#fff,#f6f7f9);padding:14px;font-weight:700}
.compare td{padding:14px;border-top:1px solid var(--border)}
.compare tbody tr:nth-child(even) td{background:#fcfcfd}

/* 特色 */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.feature{border:1px solid var(--border);border-radius:16px;padding:16px;background:#fff;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.feature b{display:block;margin-bottom:6px}

/* FAQ */
.faq .item{border:1px solid var(--border);border-radius:12px;margin:10px 0;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.faq summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:600}
.faq summary::-webkit-details-marker{display:none}
.faq .item[open] summary{border-bottom:1px solid var(--border)}
.faq .ans{padding:14px 16px;color:#6b7280}

/* 立即購買（三方案） */
.buy{text-align:center}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:12px;margin-left:6px}

/* 數量列（大圓鈕） */
.qtybar{display:flex;align-items:center;justify-content:center;gap:14px;margin:12px 0 6px}
.qtybar .qbtn.lg{width:42px;height:42px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:18px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.qtybar .qtyshow{min-width:36px;text-align:center;font-weight:800;font-size:18px}

/* 三個方案 */
.tiers{display:grid;gap:12px;max-width:640px;margin:10px auto 0}
.tier{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#fff;border:2px solid #e5e7eb;border-radius:999px;padding:10px 14px;cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.06); transition:.15s;
}
.tier.active{border-color:#f43f5e;background:#fff6f7}
.tier .pill{background:#111827;color:#fff;padding:6px 10px;border-radius:999px;font-weight:700;margin-right:8px}
.tier .now{font-weight:800;color:#f43f5e;margin:0 6px}
.tier .orig{color:#9ca3af;text-decoration:line-through;margin-right:8px}
.tier .each{color:#6b7280;font-size:13px}
.tier .save{background:#f43f5e;color:#fff;border-radius:999px;padding:6px 10px;box-shadow:0 6px 18px rgba(244,63,94,.35)}

/* 小計 */
.subtotal{text-align:center;margin:14px 0 6px}
.subtotal .cap{color:#6b7280}
.subtotal .money{font-size:34px;font-weight:900;margin:4px 0}
.subtotal .hint{color:#6b7280;font-size:13px}

/* 按鈕 */
.btn.add-btn{position:relative;overflow:hidden;background:linear-gradient(90deg,#f43f5e,#fb7185);color:#fff;border:none;cursor:pointer;padding:14px 28px;border-radius:999px;font-size:16px;font-weight:700;box-shadow:0 12px 28px rgba(244,63,94,.25)}
.btn.add-btn:hover{opacity:.95}
.btn.add-btn .shine{position:absolute;left:-40%;top:0;width:40%;height:100%;background:linear-gradient(120deg,rgba(255,255,255,.0) 0%,rgba(255,255,255,.35) 50%,rgba(255,255,255,.0) 100%);transform:skewX(-20deg);animation:shine 2.6s infinite}
@keyframes shine{0%{left:-40%}100%{left:120%}}

/* 就地購物車（預設隱藏，按鈕後出現） */
.hidden{display:none}
.cart{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px 16px 20px;box-shadow:0 10px 24px rgba(0,0,0,.06);max-width:720px;margin:16px auto 0}
.citem{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;padding:12px;border-bottom:1px solid #eee}
.citem:last-child{border-bottom:none}
.trash{background:#fff;border:1px solid #e5e7eb;border-radius:10px;width:36px;height:36px;cursor:pointer}
.cinfo .ctitle{font-weight:700;margin-bottom:4px}
.cprices .corig{color:#9ca3af;text-decoration:line-through;margin-right:6px}
.cprices .cnow{color:#f43f5e;font-weight:800}
.qtybox.small input{width:48px;padding:6px}
.qtybox.small .qbtn{width:30px;height:30px}
.cline-total{font-weight:800}
.totals{display:flex;justify-content:space-between;align-items:center;font-size:18px;font-weight:800;margin-top:6px}
.checkout-btn{margin-top:14px;width:100%;padding:14px 18px;border:none;border-radius:999px;background:#f43f5e;color:#fff;font-size:16px;box-shadow:0 12px 28px rgba(244,63,94,.25);cursor:pointer}
.checkout-btn:hover{opacity:.92}

/* footer */
.footer{color:var(--muted);border-top:1px solid var(--border);margin-top:40px}

/* 手機 */
@media (max-width:560px){
  .hero h1{font-size:32px}
  .container{padding:20px 16px}
}

/* 立即購買外框（圓角卡） */
.buy-frame{
  background:#fff;
  border:1px solid #ececec;
  border-radius:24px;                 /* 圓角大小 */
  box-shadow:0 14px 36px rgba(0,0,0,.08);
  padding:20px 22px;
  max-width:780px;
  margin:14px auto 0;
}

/* 外框內的間距微調，讓元素更緊湊、好看 */
.buy-frame .qtybar{ margin-top:6px; }
.buy-frame .tiers{ margin-top:12px; }
.buy-frame .subtotal{ margin:18px 0 8px; }
.buy-frame .add-btn{ margin-top:6px; }

/* 外框裡的購物車：改成虛線邊、同色白底、圓角一致 */
.buy-frame .cart{
  background:#fff;
  border:1px dashed #e5e7eb;
  border-radius:18px;
  box-shadow:none;
  margin:14px 0 0;
  padding:14px 16px 18px;
}

/* 方案 pill、節省徽章更柔和的圓角與陰影（可選） */
.tier{ border-radius:16px; }
.tier .save{ border-radius:999px; box-shadow:0 8px 20px rgba(244,63,94,.28); }


/* ===== 懸浮結帳視窗 ===== */
.modal{position:fixed;inset:0;display:none;z-index:1000}
.modal.show{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);backdrop-filter:blur(2px)}
.modal-panel{
  position:relative; max-width:720px; margin:40px auto; background:#fff;
  border-radius:20px; border:1px solid #ececec; box-shadow:0 20px 60px rgba(0,0,0,.2);
  padding:20px 22px;
}
.modal-close{
  position:absolute; right:12px; top:12px; width:36px; height:36px; border-radius:50%;
  border:1px solid #e5e7eb; background:#fff; cursor:pointer; font-size:18px;
}
#checkoutTitle{margin:0 0 6px; font-size:22px}
.m-sub{margin:0 0 14px; color:#6b7280}
.m-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.m-grid .full{grid-column:1/-1}
.m-grid label{display:flex; flex-direction:column; gap:6px; font-size:14px}
.m-grid input{padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px}
.m-block{margin-top:12px}
.m-row{display:flex; gap:12px; flex-wrap:wrap}
.radio{display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #e5e7eb; border-radius:999px; background:#fff}
.m-summary{display:flex; justify-content:space-between; align-items:center; font-size:18px; font-weight:800; margin:14px 0}
.hidden{display:none}
