/* ============================================================
   萬物城 — Shared inner-page styles (pricing / reviews / shop)
   ============================================================ */

/* ---------- PAGE HERO (compact, consistent across inner pages) ---------- */
.page-hero {
  position: relative; padding-top: calc(var(--nav-h) + 64px); padding-bottom: 48px;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 360px at 22% 0%, rgba(245,183,32,0.14), transparent 62%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.ph-title { font-family: var(--f-cn); font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }
.ph-title .hl { color: var(--gold); }
.ph-sub { margin-top: 14px; color: var(--text-dim); font-size: clamp(15px,1.5vw,18px); max-width: 620px; line-height: 1.7; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* breadcrumb */
.crumb { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.crumb a { color: var(--text-dim); transition: color .2s; }
.crumb a:hover { color: var(--gold); }
.crumb span { opacity: .5; }

/* ---------- STICKY CHIP SUBNAV ---------- */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(8,11,17,0.82); backdrop-filter: blur(14px);
  border-block: 1px solid var(--line-soft);
  margin-bottom: var(--s-7);
}
.subnav-inner { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-chip {
  flex: none; font-family: var(--f-body); font-weight: 600; font-size: 13.5px;
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-soft); color: var(--text-soft);
  transition: all .2s var(--ease); white-space: nowrap;
}
.subnav-chip:hover { border-color: var(--line-strong); color: var(--text); }
.subnav-chip.active { background: var(--grad-gold); color: #1a1206; border-color: transparent; font-weight: 700; }

/* ============================================================
   PRICING
   ============================================================ */
.price-block { margin-bottom: var(--s-8); scroll-margin-top: calc(var(--nav-h) + 80px); }
.price-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.price-thumb {
  width: 56px; height: 56px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 18px; color: #1a1206;
  background: var(--g, var(--grad-gold)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.price-titles { flex: 1; min-width: 180px; }
.price-titles h2 { font-family: var(--f-cn); font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.price-titles p { color: var(--text-dim); font-size: 13.5px; margin-top: 3px; }
.price-head .btn { margin-left: auto; }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.price-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line-soft); background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer; position: relative;
}
.price-row:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 0 28px -16px rgba(245,183,32,0.6); }
.price-amt { font-family: var(--f-cn); font-weight: 700; font-size: 15px; color: var(--text); }
.price-amt small { font-family: var(--f-body); font-weight: 500; color: var(--text-dim); font-size: 12px; margin-left: 4px; }
.price-val { font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--gold); margin-top: 2px; }
.price-val span { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.price-row .price-buy {
  margin-top: 8px; font-family: var(--f-display); font-weight: 700; font-size: 12.5px;
  color: var(--text-dim); display: inline-flex; align-items: center; gap: 5px; transition: color .2s, gap .2s var(--ease);
}
.price-row:hover .price-buy { color: var(--gold); gap: 9px; }
.price-row .pop { position: absolute; top: 12px; right: 12px; }

.price-note {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: rgba(245,183,32,0.04);
  color: var(--text-soft); font-size: 14.5px; line-height: 1.7;
}
.price-note b { color: var(--gold); }
.price-note .pn-ic { font-size: 20px; line-height: 1; }

/* ============================================================
   REVIEWS PAGE
   ============================================================ */
.rev-summary {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-7); align-items: center;
  padding: 36px; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  margin-bottom: var(--s-7);
}
.rs-score { text-align: center; padding-right: var(--s-7); border-right: 1px solid var(--line-soft); }
.rs-score b { font-family: var(--f-display); font-weight: 800; font-size: 64px; color: var(--gold); line-height: 1; }
.rs-score .rs-stars { color: var(--gold); letter-spacing: 3px; font-size: 17px; margin-top: 10px; }
.rs-score .rs-count { color: var(--text-dim); font-size: 13px; margin-top: 8px; }
.rs-bars { display: flex; flex-direction: column; gap: 10px; }
.rs-bar { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-dim); }
.rs-bar .rs-lab { width: 32px; font-family: var(--f-display); font-weight: 600; color: var(--text-soft); }
.rs-track { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.rs-fill { height: 100%; border-radius: var(--r-pill); background: var(--grad-gold); }
.rs-bar .rs-pct { width: 40px; text-align: right; }

.rev-filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-6); }
.rev-masonry { columns: 3; column-gap: 18px; }
.rev-masonry .rev-card { break-inside: avoid; margin-bottom: 18px; display: inline-block; width: 100%; }
.rev-card .rev-game { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--f-display); font-weight: 600; font-size: 11.5px; color: var(--text-muted); padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); }
.rev-verified { margin-left: auto; font-size: 11px; color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
.shop-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-6); }
.shop-search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-soft); background: var(--surface);
}
.shop-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: var(--f-body); font-size: 14.5px; }
.shop-search input::placeholder { color: var(--text-muted); }
.shop-search svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-card { overflow: hidden; display: flex; flex-direction: column; }
.prod-media {
  aspect-ratio: 4/3; position: relative; display: grid; place-items: center;
  background: var(--g, linear-gradient(135deg,#1a2435,#0e1622));
  overflow: hidden;
}
.prod-media .prod-mono {
  font-family: var(--f-display); font-weight: 800; font-size: 40px; color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5); opacity: .96;
}
.prod-media .prod-tag { position: absolute; top: 12px; left: 12px; }
.prod-media .prod-cat { position: absolute; bottom: 12px; left: 12px; font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.prod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-name { font-family: var(--f-cn); font-weight: 700; font-size: 15.5px; line-height: 1.4; }
.prod-en { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.prod-price b { font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--gold); }
.prod-price small { display: block; font-size: 11px; color: var(--text-muted); }
.prod-add {
  width: 40px; height: 40px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; background: var(--grad-gold); color: #1a1206;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.prod-add:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(245,183,32,0.7); }
.prod-add svg { width: 20px; height: 20px; }

/* cart drawer */
.cart-fab {
  position: fixed; right: 22px; bottom: 86px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--gold);
  box-shadow: var(--shadow); transition: transform .2s var(--ease);
}
.cart-fab:hover { transform: translateY(-3px); }
.cart-fab svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--ruby); color: #fff;
  font-family: var(--f-display); font-weight: 700; font-size: 12px;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 120;
  background: var(--bg-2); border-left: 1px solid var(--line-soft);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity .35s; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-top { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line-soft); }
.cart-top h3 { font-family: var(--f-cn); font-weight: 800; font-size: 18px; }
.cart-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--text-soft); font-size: 18px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { text-align: center; color: var(--text-muted); margin-top: 40px; font-size: 14px; }
.cart-item { display: flex; align-items: center; gap: 12px; }
.cart-item .ci-mono { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #fff; background: var(--g,#2a3447); flex: none; font-size: 15px; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { font-family: var(--f-cn); font-weight: 700; font-size: 14px; }
.cart-item .ci-price { font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--gold); margin-top: 2px; }
.cart-item .ci-rm { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-soft); color: var(--text-muted); flex: none; font-size: 14px; }
.cart-item .ci-rm:hover { border-color: var(--ruby); color: var(--ruby); }
.cart-foot { padding: 20px 22px; border-top: 1px solid var(--line-soft); }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cart-total span { color: var(--text-dim); font-size: 14px; }
.cart-total b { font-family: var(--f-display); font-weight: 800; font-size: 24px; color: var(--gold); }
.cart-foot .btn { width: 100%; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .rev-masonry { columns: 2; }
}
@media (max-width: 780px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-summary { grid-template-columns: 1fr; gap: var(--s-5); text-align: center; }
  .rs-score { padding-right: 0; border-right: none; padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
  .rev-masonry { columns: 1; }
  .price-head .btn { margin-left: 0; width: 100%; }
}
