

/* ---------- Merch Flagship Select-Shop Tokens ---------- */
.merch-page [hidden] { display: none !important; }

.merch-page {
  --merch-bg: #faf7f2;
  --merch-surface: #ffffff;
  --merch-warm: #f3ece0;
  --merch-ink: #13203b;
  --merch-muted: #5a667d;
  --merch-blue: #1e50c9;
  --merch-blue-soft: #eaf0ff;
  --merch-pink: #d86274;
  --merch-pink-soft: #fdf0f2;
  --merch-gold: #e7a928;
  --merch-gold-soft: #fff5db;
  --merch-border: #e8e1d5;
  --merch-border-cool: #dde4f0;
  --merch-radius: 1.25rem;
  --merch-shadow: 0 12px 32px rgba(24, 34, 58, .055);
  background: var(--merch-bg);
  color: var(--merch-ink);
  padding-bottom: 5rem;
}

.merch-page .site-header {
  border-bottom-color: rgba(20, 32, 59, .08);
}

.merch-page button.text-link {
  border: 0;
  background: transparent;
  padding: .35rem .25rem;
  font: inherit;
  font-weight: 620;
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: .24em;
  cursor: pointer;
}
.merch-page button.text-link:hover { color: var(--merch-ink); }

.merch-page .shop {
  padding-block: clamp(1.3rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem);
}

/* ---------- Editorial Lookbook Hero ---------- */
.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.18fr);
  gap: clamp(1.4rem, 3.2vw, 2.8rem);
  align-items: stretch;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border-radius: 1.65rem;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 252, 245, .95), transparent 46%),
    radial-gradient(circle at 92% 85%, rgba(232, 240, 255, .72), transparent 52%),
    linear-gradient(142deg, #fdfaf4 0%, #f5eee2 58%, #eef3fb 100%);
  border: 1px solid var(--merch-border);
  box-shadow: var(--merch-shadow);
}

.shop-kicker {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--merch-blue);
  text-transform: uppercase;
}

.merch-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .16rem .68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #e3dac8;
  color: #5a4a33;
  font-size: .8rem;
  font-weight: 600;
}

.merch-admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .16rem .75rem;
  border-radius: 999px;
  background: var(--merch-ink);
  color: #fff;
  font-size: .8rem;
  font-weight: 650;
  text-decoration: none;
}
.merch-admin-pill:hover { background: var(--merch-blue); color: #fff; }

.shop-hero h1,
.shop-hero h2 {
  margin: .75rem 0 0;
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -.042em;
  color: var(--merch-ink);
}

.shop-lead {
  max-width: 38rem;
  margin: .9rem 0 0;
  color: var(--merch-muted);
  font-size: .96rem;
  line-height: 1.75;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  align-content: center;
  min-width: 0;
}

.bag-inline-count:empty { display: none; }
.bag-inline-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: .4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--merch-gold);
  color: var(--merch-ink);
  font-size: .78rem;
  font-weight: 800;
}

/* ---------- Sticky Navigation Capsule ---------- */
.collection-bar {
  position: sticky;
  top: .5rem;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem 1rem;
  margin-top: 1.4rem;
  padding: .42rem .9rem;
  border-radius: 1rem;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--merch-border);
  box-shadow: 0 8px 24px rgba(20, 32, 59, .06);
}

.collection-nav {
  display: flex;
  gap: .2rem .9rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 24rem;
}
.collection-nav::-webkit-scrollbar { display: none; }
.collection-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .2rem .12rem;
  white-space: nowrap;
  color: var(--merch-muted);
  font-size: .9rem;
  font-weight: 560;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.collection-nav a:hover { color: var(--merch-blue); }
.collection-nav a.is-current {
  color: var(--merch-ink);
  font-weight: 760;
  border-bottom-color: var(--merch-blue);
}

.role-filter {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: .32rem;
  flex: 0 1 auto;
  max-width: 100%;
}
.role-filter::-webkit-scrollbar { display: none; }

.role-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .22rem .75rem;
  border: 1px solid #dcd5c8;
  border-radius: 999px;
  background: #fff;
  color: var(--merch-ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 620;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.role-chip:hover { border-color: var(--merch-blue); }
.role-chip.is-active {
  background: var(--merch-ink);
  border-color: var(--merch-ink);
  color: #fff;
}
.role-chip--dachui.is-active { background: var(--merch-blue); border-color: var(--merch-blue); }
.role-chip--chuimei.is-active { background: var(--merch-pink); border-color: var(--merch-pink); }

body[data-role-view="dachui"] [data-role-item="chuimei"],
body[data-role-view="chuimei"] [data-role-item="dachui"] {
  opacity: .36;
  filter: saturate(.5);
  transition: opacity .22s ease, filter .22s ease;
}
body[data-role-view="dachui"] [data-role-item="chuimei"]:hover,
body[data-role-view="chuimei"] [data-role-item="dachui"]:hover {
  opacity: .95;
  filter: none;
}

/* ---------- Editorial Section Headers & Shared Controls ---------- */

.section-index {
  margin: 0;
  font-size: .8rem;
  font-weight: 760;
  letter-spacing: .06em;
  color: var(--merch-blue);
}

.section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .55rem 2rem;
}
.section-intro h2 {
  margin: .32rem 0 0;
  font-size: clamp(1.55rem, 2.75vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -.04em;
  color: var(--merch-ink);
}
.section-intro-note {
  margin: 0;
  max-width: 28rem;
  color: var(--merch-muted);
  font-size: .92rem;
  line-height: 1.65;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  margin-bottom: .38rem;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .12rem .62rem;
  border-radius: 999px;
  background: var(--merch-blue-soft);
  color: #193e99;
  font-size: .76rem;
  font-weight: 720;
}
.stage-badge[data-stage="material_sampling"] { background: #fff4d6; color: #8c5a00; }
.stage-badge[data-stage="real_sample"] { background: #e8f7ee; color: #196b3d; }
.stage-badge[data-stage="production_ready"] { background: var(--merch-ink); color: #fff; }

.accent-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: .12rem .62rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 720;
}
.accent-badge--gold { background: var(--merch-gold-soft); color: #8c5a00; }
.accent-badge--pink { background: var(--merch-pink-soft); color: #b1384c; }
.accent-badge--blue { background: #eaf2ff; color: #1a47b8; }
.accent-badge--warm { background: #f3ece0; color: #675234; }

.merch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 42px;
  padding: .45rem 1.08rem;
  border: 1px solid #cfc8ba;
  border-radius: 999px;
  background: #fff;
  color: var(--merch-ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .14s ease, color .16s ease, box-shadow .16s ease;
}
.merch-btn:hover {
  border-color: var(--merch-ink);
  color: var(--merch-ink);
  box-shadow: 0 4px 12px rgba(19, 32, 59, .08);
}
.merch-btn:active { transform: scale(.98); }
.merch-btn--dark,
.merch-btn--primary {
  background: var(--merch-ink);
  border-color: var(--merch-ink);
  color: #fff;
}
.merch-btn--dark:hover,
.merch-btn--primary:hover {
  background: var(--merch-blue);
  border-color: var(--merch-blue);
  color: #fff;
}
.merch-btn.is-added {
  background: #1b7a46;
  border-color: #1b7a46;
  color: #fff;
}

.merch-wish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-height: 42px;
  padding: .4rem .88rem;
  border: 1px solid #e7d5d8;
  border-radius: 999px;
  background: #fff;
  color: #65333d;
  font: inherit;
  font-size: .86rem;
  font-weight: 620;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.merch-wish-btn:hover { border-color: var(--merch-pink); background: var(--merch-pink-soft); }
.merch-wish-btn strong { font-variant-numeric: tabular-nums; }
.merch-wish-btn.is-wished {
  background: var(--merch-pink-soft);
  border-color: var(--merch-pink);
  color: #b4364a;
}

.sku-choice-bar,
.size-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem;
  margin-top: .85rem;
}

.sku-chip,
.size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 38px;
  padding: .22rem .72rem;
  border: 1px solid #d8d1c4;
  border-radius: 999px;
  background: #faf8f4;
  color: var(--merch-ink);
  font: inherit;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
}
.sku-chip.is-active,
.size-pill.is-active {
  background: var(--merch-ink);
  border-color: var(--merch-ink);
  color: #fff;
}

/* ---------- 2x2 & 3-Up Object Gallery Cards ---------- */

/* ---------- Tote Feature Spotlight ---------- */

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.spec-pills li {
  padding: .24rem .68rem;
  border-radius: 999px;
  background: #f6f1e8;
  border: 1px solid #e7decb;
  color: #4f412c;
  font-size: .78rem;
  font-weight: 650;
}

/* ---------- Framed Feature Rows (Thermos / Backpack / Plush) ---------- */

.merch-item > * { min-width: 0; }
.merch-stage img { display: block; max-width: 100%; }

.merch-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-top: .95rem;
  padding: 0;
  border: 0;
}
.merch-picker label { position: relative; display: inline-flex; cursor: pointer; }
.merch-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}
.merch-picker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 44px;
  padding: .3rem .88rem;
  border: 1px solid #d8d1c4;
  border-radius: 999px;
  background: #faf8f4;
  color: var(--merch-ink);
  font-size: .88rem;
  font-weight: 580;
}
.merch-picker input:checked + span {
  border-color: var(--merch-ink);
  background: var(--merch-ink);
  color: #fff;
}
.merch-picker input:focus-visible + span {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.merch-card { position: relative; }

.sample-toggle-bar {
  display: inline-flex;
  gap: .22rem;
  padding: .2rem;
  margin-bottom: .55rem;
  border-radius: 999px;
  background: #eef2f8;
  border: 1px solid #d7e0ef;
}

.sample-tab {
  min-height: 30px;
  padding: .18rem .7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--merch-muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
}
.sample-tab.is-active { background: var(--merch-ink); color: #fff; }

/* ---------- Scene Bundles ---------- */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin-top: 1.35rem;
}

.bundle-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border-radius: var(--merch-radius);
  border: 1px solid var(--merch-border);
  background: var(--merch-surface);
  box-shadow: var(--merch-shadow);
  min-width: 0;
}
.bundle-card--light { background: linear-gradient(168deg, #ffffff 48%, #fdf2f4); }
.bundle-card--outdoor { background: linear-gradient(168deg, #ffffff 48%, #eef4f6); }
.bundle-card--desk { background: linear-gradient(168deg, #ffffff 48%, #eff4ff); }

.bundle-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin-bottom: .95rem;
}
.bundle-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .65rem;
  display: block;
}

.bundle-kicker {
  display: inline-block;
  font-size: .76rem;
  font-weight: 760;
  color: var(--merch-blue);
  letter-spacing: .03em;
}
.bundle-card--light .bundle-kicker { color: var(--merch-pink); }
.bundle-body { display: flex; flex-direction: column; flex: 1; }
.bundle-body h3 { margin: .25rem 0 .35rem; font-size: 1.18rem; line-height: 1.32; }
.bundle-body p {
  margin: 0;
  color: var(--merch-muted);
  font-size: .9rem;
  line-height: 1.65;
  flex: 1;
}
.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .85rem;
  margin-top: 1rem;
}

/* ---------- Apparel Lookbook ---------- */

.wear-pair { scroll-margin-top: 5.5rem; }

.nightwear-banner { background: #f3e6d6; color: #342619; border: 1px solid #e7d8c5; }
.shell-banner { background: #e5ecef; color: #1d343f; border: 1px solid #d5dfe4; }

.wear-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.6vw, 1.8rem);
  margin-top: 1.35rem;
}

.shell-wear {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.35rem 0 0;
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
  border-radius: var(--merch-radius);
  background: #eaf0f2;
  border: 1px solid #d7e2e6;
  color: #283c44;
}
.shell-wear dt { font-weight: 760; }
.shell-wear dd { margin: .25rem 0 0; font-size: .92rem; line-height: 1.65; }

/* ---------- Interactive Desk Studio ---------- */
.desk-studio {
  margin-top: clamp(2.8rem, 6vw, 4.8rem);
  padding: clamp(1.4rem, 3.4vw, 2.6rem);
  border-radius: 1.5rem;
  background: var(--merch-surface);
  border: 1px solid var(--merch-border);
  box-shadow: var(--merch-shadow);
  scroll-margin-top: 5.5rem;
}

.desk-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
  margin-top: 1.45rem;
}

.desk-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(128, 97, 56, .2);
  background: linear-gradient(175deg, #f3e4cd 0%, #e4caa7 65%, #d6b68d 100%);
  box-shadow: inset 0 -18px 40px rgba(99, 64, 24, .12);
  transition: background .25s ease, border-color .25s ease;
}

.desk-stage.desk-surface--slate {
  border-color: rgba(45, 62, 86, .2);
  background: linear-gradient(175deg, #e2e7ef 0%, #ccd5e2 62%, #b9c5d5 100%);
  box-shadow: inset 0 -18px 40px rgba(24, 38, 62, .14);
}

.desk-stage.desk-surface--ivory {
  border-color: rgba(128, 114, 92, .22);
  background: linear-gradient(175deg, #fffdf9 0%, #f5f0e7 65%, #ebe3d6 100%);
  box-shadow: inset 0 -18px 40px rgba(99, 82, 54, .09);
}

.desk-window-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255, 252, 242, .65), transparent 54%),
    linear-gradient(122deg, rgba(255, 255, 255, .24) 0%, transparent 32%, rgba(255, 255, 255, .14) 44%, transparent 62%);
  pointer-events: none;
}

.desk-tray-card {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .22rem .62rem .22rem .24rem;
  border-radius: .65rem;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(24, 38, 70, .12);
  box-shadow: 0 5px 14px rgba(24, 38, 70, .14);
  font-size: .75rem;
  font-weight: 660;
  color: var(--merch-ink);
}
.desk-tray-card img {
  width: 38px;
  height: 28px;
  border-radius: .38rem;
  object-fit: cover;
  display: block;
}

.desk-mat-tag {
  position: absolute;
  left: .85rem;
  top: .7rem;
  z-index: 2;
  padding: .2rem .68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(24, 38, 70, .1);
  font-size: .74rem;
  font-weight: 700;
  color: var(--merch-ink);
  backdrop-filter: blur(4px);
}
.desk-mat-tag:empty { display: none; }

.desk-hero-props {
  position: absolute;
  inset: 9% 6% 22% 6%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3%;
  pointer-events: none;
}

.stage-prop {
  height: 78%;
  width: auto;
  max-width: 34%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(55, 36, 16, .24));
  transition: transform .25s ease, opacity .25s ease;
}
.stage-prop--thermos { height: 82%; max-width: 19%; }

.desk-tray {
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: 2.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}

.desk-tray-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .58rem .22rem .26rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(24, 38, 70, .12);
  box-shadow: 0 4px 12px rgba(24, 38, 70, .12);
  font-size: .76rem;
  font-weight: 650;
  color: var(--merch-ink);
}
.desk-tray-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.desk-stage-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .9rem;
  background: rgba(19, 32, 59, .86);
  color: #f4f7fc;
  font-size: .78rem;
  font-weight: 600;
}

.desk-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.desk-control-label {
  display: block;
  font-size: .85rem;
  font-weight: 740;
  color: var(--merch-ink);
  margin-bottom: .45rem;
}
.desk-pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.desk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .28rem .82rem;
  border: 1px solid #d8d1c4;
  border-radius: 999px;
  background: #faf8f4;
  color: var(--merch-ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}
.desk-pill:hover { border-color: var(--merch-blue); }
.desk-pill.is-active {
  background: var(--merch-ink);
  border-color: var(--merch-ink);
  color: #fff;
}

.desk-studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .85rem;
  padding-top: .35rem;
}
.desk-feedback {
  margin: 0;
  min-height: 1.3em;
  font-size: .88rem;
  color: #1d6b41;
  font-weight: 580;
}

/* ---------- Roadmap & Ranking ---------- */
.merch-roadmap {
  margin-top: clamp(2.8rem, 6vw, 4.8rem);
  scroll-margin-top: 5.5rem;
}

.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}
.roadmap-steps li {
  padding: 1.05rem;
  border-radius: 1rem;
  background: var(--merch-surface);
  border: 1px solid var(--merch-border);
}

.roadmap-steps strong { font-size: 1rem; }
.roadmap-steps p {
  margin: .38rem 0 0;
  color: var(--merch-muted);
  font-size: .86rem;
  line-height: 1.6;
}

.account-sync-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.4rem;
  margin-top: 1.15rem;
  padding: 1rem 1.25rem;
  border-radius: 1.05rem;
  background: #eff4fc;
  border: 1px solid #d5e1f4;
}
.account-sync-banner.is-signed-in {
  background: #edf7f1;
  border-color: #c7e5d2;
}
.account-sync-copy strong { display: block; font-size: .96rem; color: var(--merch-ink); }
.account-sync-copy p { margin: .2rem 0 0; color: var(--merch-muted); font-size: .86rem; }
.account-sync-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .9rem;
}

.roadmap-stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: 1.15rem;
  font-size: .88rem;
  font-weight: 620;
  color: var(--merch-muted);
}

.roadmap-ranking {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: .85rem;
}

.rank-card {
  display: grid;
  grid-template-columns: auto 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .9rem;
  border-radius: 1rem;
  background: var(--merch-surface);
  border: 1px solid var(--merch-border);
  min-width: 0;
}
.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2ede3;
  color: var(--merch-ink);
  font-size: .82rem;
  font-weight: 800;
}
.rank-card.is-top .rank-num {
  background: var(--merch-gold-soft);
  color: #8c5a00;
}
.rank-thumb {
  width: 66px;
  height: 48px;
  border-radius: .55rem;
  object-fit: cover;
  display: block;
}
.rank-body { min-width: 0; }
.rank-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
}
.rank-title {
  font-weight: 720;
  color: var(--merch-ink);
  text-decoration: none;
  font-size: .94rem;
}
.rank-title:hover { color: var(--merch-blue); }
.rank-note {
  margin: .22rem 0 .4rem;
  font-size: .8rem;
  color: var(--merch-muted);
  line-height: 1.45;
}
.rank-meter {
  height: 7px;
  border-radius: 999px;
  background: #f0ece3;
  overflow: hidden;
}
.rank-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--merch-blue), var(--merch-pink));
  min-width: 4px;
  transition: width .3s ease;
}
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin-top: .3rem;
  font-size: .78rem;
  color: var(--merch-muted);
}

/* ---------- Ecosystem & Inquiry ---------- */
.merch-ecosystem { margin-top: clamp(2.4rem, 5vw, 4rem); }
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.eco-card {
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border-radius: 1.35rem;
  border: 1px solid var(--merch-border);
  background: var(--merch-surface);
  box-shadow: var(--merch-shadow);
}
.eco-card--brand { background: linear-gradient(155deg, #f5f8ff, #fffaf2); }
.eco-card--box { background: linear-gradient(155deg, #f4f7f5, #faf6ef); }
.eco-card h3 { margin: .4rem 0 .5rem; font-size: clamp(1.25rem, 2vw, 1.62rem); line-height: 1.3; }
.eco-card p { margin: 0; color: var(--merch-muted); line-height: 1.75; }
.eco-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin-top: 1.1rem;
}

.merch-pass-card {
  display: grid;
  gap: .38rem;
  margin-top: .95rem;
  padding: .82rem .95rem;
  border-radius: .95rem;
  border: 1.5px solid #9aa6bc;
  color: #f4f7fc;
  background: linear-gradient(130deg, #252b36, #434d61 56%, #252b36);
  box-shadow: 0 8px 20px -8px rgba(21, 35, 68, .3);
}
.merch-pass-card[data-pass-tier="bronze"] { border-color: #e6ad82; background: linear-gradient(130deg, #462717, #8c502e); }
.merch-pass-card[data-pass-tier="silver"] { border-color: #d6e2f2; background: linear-gradient(130deg, #334054, #6f84a2); }
.merch-pass-card[data-pass-tier="gold"] { border-color: #ffe080; background: linear-gradient(130deg, #52350c, #a7741f); }
.merch-pass-card[data-pass-tier="platinum"] { border-color: #9bf0f5; background: linear-gradient(130deg, #143a44, #327a88); }
.merch-pass-card[data-pass-tier="diamond"] { border-color: #98ceff; background: linear-gradient(130deg, #152862, #3460c4); }
.merch-pass-card[data-pass-tier="master"] { border-color: #eda0ff; background: linear-gradient(130deg, #3a1552, #7d2c96); }
.merch-pass-card[data-pass-tier="grandmaster"] { border-color: #ffa682; background: linear-gradient(130deg, #4d131b, #9b2630); }
.merch-pass-card[data-pass-tier="king"] { border-color: #ffd866; background: linear-gradient(130deg, #191612, #574118); }
.merch-pass-card[data-pass-tier="radiant"] { border-color: #78f6e1; background: linear-gradient(120deg, #161d47, #482f92 52%, #155c6a); }
.merch-pass-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .72rem; opacity: .9; }
.merch-pass-top code { font-family: ui-monospace, Consolas, monospace; padding: .06rem .42rem; border-radius: 999px; background: rgba(0, 0, 0, .32); color: #fff; }
.merch-pass-mid { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.merch-pass-mid strong { font-size: 1.05rem; color: #fff; }
.merch-pass-mid b { font-size: .92rem; color: #ffe391; font-variant-numeric: tabular-nums; }
.eco-card .merch-pass-perk { margin: 0; color: rgba(255, 255, 255, .9); font-size: .8rem; line-height: 1.48; }

.shop-inquiry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  padding: clamp(1.3rem, 3.8vw, 3rem);
  margin-top: clamp(2.2rem, 5vw, 4rem);
  border-radius: 1.4rem;
  background: linear-gradient(150deg, #eff4fc, #f5f0e7);
  border: 1px solid var(--merch-border-cool);
  scroll-margin-top: 5.5rem;
}
.shop-inquiry h2 { margin: .4rem 0 .65rem; font-size: clamp(1.5rem, 2.7vw, 2.35rem); line-height: 1.24; }
.shop-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; margin-top: 1rem; }
.shop-contact .text-link { margin-top: 0; }

#buy-message-block { margin-top: .9rem; }

#copy-buy-message { margin-top: 0; border: 0; }
#buy-feedback { color: var(--merch-muted); font-size: .9rem; }

/* ---------- Floating Dock & Bag Dialog ---------- */
.merch-float-dock {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: opacity .24s ease, transform .24s ease;
}

body.is-at-runway .merch-float-dock {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.merch-bag-fab {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 44px;
  padding: .42rem .95rem;
  border: 0;
  border-radius: 999px;
  background: var(--merch-ink);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(19, 32, 59, .24);
  transition: transform .16s ease, background .16s ease;
}
.merch-bag-fab:hover { background: var(--merch-blue); }
.merch-bag-fab.is-bump { transform: scale(1.06); }

.merch-bag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--merch-gold);
  color: var(--merch-ink);
  font-size: .8rem;
  font-weight: 800;
}

.merch-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: .4rem .85rem;
  border: 1px solid #d5cebf;
  border-radius: 999px;
  background: rgba(255, 253, 249, .95);
  color: var(--merch-ink);
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(24, 38, 70, .14);
}
.merch-back-top:hover { border-color: var(--merch-blue); color: var(--merch-blue); }

.bag-dialog {
  width: min(46rem, calc(100% - 1.2rem));
  max-height: calc(100dvh - 1.4rem);
  padding: 0;
  border: 1px solid var(--merch-border);
  border-radius: 1.3rem;
  background: #fff;
  color: var(--merch-ink);
  box-shadow: 0 1.4rem 4.2rem rgba(19, 32, 59, .28);
  overflow: auto;
  overscroll-behavior: contain;
}
.bag-dialog::backdrop { background: rgba(19, 32, 59, .54); }
.bag-dialog-inner { padding: clamp(1.1rem, 3vw, 1.9rem); }
.bag-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf0f5;
}
.bag-dialog-head .close-contact { position: static; flex: none; }
.bag-dialog-head h2 { margin: .25rem 0 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.bag-sync-status { margin: .25rem 0 0; font-size: .84rem; color: #1d6b41; font-weight: 600; }
.bag-empty { padding: 2rem .5rem 1rem; text-align: center; color: var(--merch-muted); }
.bag-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1rem; }

.bag-item-list { list-style: none; margin: 0; padding: 0; }
.bag-item-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .85rem 0;
  border-bottom: 1px solid #edf1f7;
}
.bag-item-thumb { width: 60px; height: 45px; border-radius: .5rem; object-fit: cover; display: block; }
.bag-item-info { min-width: 0; }
.bag-item-name { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.bag-item-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .3rem; }
.bag-size-select {
  min-height: 32px;
  padding: .15rem .45rem;
  border: 1px solid #c5d1e4;
  border-radius: .45rem;
  background: #f8fafd;
  color: var(--merch-ink);
  font: inherit;
  font-size: .82rem;
}
.bag-item-controls { display: flex; align-items: center; gap: .35rem; }
.bag-qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #cfd7e6;
  border-radius: 50%;
  background: #fff;
  color: var(--merch-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.bag-qty-num { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.bag-remove-btn {
  margin-left: .25rem;
  min-height: 34px;
  padding: 0 .45rem;
  border: 0;
  background: transparent;
  color: #8a4a55;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}

.bag-prefs {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: .95rem;
  background: #f9f6f0;
}
.bag-pref-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem; }
.bag-pref-label { font-size: .88rem; font-weight: 700; }
.bag-note-label { display: block; margin-top: .85rem; font-size: .84rem; font-weight: 650; color: var(--merch-muted); }
.bag-note-input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: .35rem;
  padding: .5rem .75rem;
  border: 1px solid #cfc8ba;
  border-radius: .6rem;
  background: #fff;
  color: var(--merch-ink);
  font: inherit;
  font-size: .92rem;
}

.bag-output { margin-top: 1rem; }
.bag-output-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.bag-output-head label { font-weight: 700; font-size: .9rem; }
.bag-clear-link { border: 0; background: transparent; color: #9e4351; font: inherit; font-size: .84rem; cursor: pointer; }
.bag-output textarea {
  display: block;
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #b9c7db;
  border-radius: .65rem;
  background: #fbfcfe;
  color: var(--merch-ink);
  font: inherit;
  font-size: .9rem;
  line-height: 1.55;
}
.bag-output-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; margin-top: .75rem; }
.bag-feedback { margin: .5rem 0 0; min-height: 1.3em; font-size: .88rem; color: #1d6b41; font-weight: 600; }

.merch-toast {
  position: fixed;
  left: 50%;
  bottom: 4.8rem;
  transform: translateX(-50%);
  z-index: 25;
  max-width: calc(100vw - 2rem);
  padding: .6rem 1.15rem;
  border-radius: 999px;
  background: var(--merch-ink);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(19, 32, 59, .26);
  text-align: center;
}

/* ---------- Admin Page Styles ---------- */
.merch-admin-main { padding-block: clamp(1.5rem, 3.5vw, 3rem); }
.merch-admin-head h1 { margin: .35rem 0 .45rem; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.04em; }
.merch-admin-sub { margin: 0; color: var(--merch-muted); }
.merch-admin-page .admin-suite-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .22rem;
  margin-bottom: 1rem;
  padding: .22rem;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 999px;
  background: #f1f5fb;
}
.merch-admin-page .admin-suite-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .18rem .78rem;
  border-radius: 999px;
  color: #475569;
  font-size: .8rem;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.merch-admin-page .admin-suite-bar a:is(:hover, :focus-visible) {
  color: #0f172a;
  background: rgba(15, 23, 42, .06);
}
.merch-admin-page .admin-suite-bar a[aria-current="page"] {
  background: #0f172a;
  color: #fff;
}
.merch-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-bottom: .9rem;
}
.merch-admin-stage-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .22rem;
  padding: .22rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  background: #f1f5fb;
}
.merch-admin-stage-pills button {
  min-height: 32px;
  padding: .18rem .72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.merch-admin-stage-pills button:hover { color: #0f172a; }
.merch-admin-stage-pills button[aria-pressed="true"] { background: #0f172a; color: #fff; }
.merch-admin-search { flex: 1 1 12rem; max-width: 19rem; }
.merch-admin-search input {
  width: 100%;
  min-height: 38px;
  padding: .35rem .82rem;
  border: 1px solid #cbd6e8;
  border-radius: 999px;
  background: #fff;
  color: var(--merch-ink);
  font: inherit;
  font-size: .86rem;
}
.merch-admin-gate {
  margin-top: 1.5rem;
  padding: 1.6rem;
  border-radius: 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .09);
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, .12);
  max-width: 40rem;
}
.merch-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }

.merch-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.5rem;
}
.merch-metric-card {
  padding: 1.1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--merch-border);
}
.merch-metric-label { display: block; font-size: .82rem; color: var(--merch-muted); font-weight: 600; }
.merch-metric-card strong { display: block; margin-top: .3rem; font-size: 1.65rem; color: var(--merch-ink); line-height: 1.2; }
.merch-metric-card small { display: block; margin-top: .25rem; color: var(--merch-muted); font-size: .8rem; }

.merch-admin-section { margin-top: 2rem; }
.merch-admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
}
.merch-admin-section-head h2 { margin: 0; font-size: 1.35rem; }
.merch-admin-section-head p { margin: .25rem 0 0; color: var(--merch-muted); font-size: .9rem; }
.merch-admin-status { min-height: 1.3em; margin: 0 0 .75rem; color: #1d6b41; font-weight: 600; font-size: .9rem; }

.merch-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.admin-product-card {
  padding: 1.1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--merch-border);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.admin-product-top {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
}
.admin-product-top img { width: 76px; height: 54px; border-radius: .55rem; object-fit: cover; }
.admin-product-top h3 { margin: 0; font-size: 1.05rem; }
.admin-stat-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.admin-stat-pill {
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #f1f4fa;
  font-size: .78rem;
  color: var(--merch-ink);
  font-weight: 600;
}
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.admin-form-grid label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .8rem;
  font-weight: 650;
  color: var(--merch-muted);
}
.admin-form-grid .full-span { grid-column: 1 / -1; }
.admin-form-grid select,
.admin-form-grid input {
  min-height: 38px;
  padding: .35rem .6rem;
  border: 1px solid #c3d0e3;
  border-radius: .5rem;
  font: inherit;
  font-size: .88rem;
  color: var(--merch-ink);
  background: #fff;
}
.admin-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.admin-card-msg { font-size: .82rem; color: #1d6b41; font-weight: 600; }

.merch-admin-bags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.admin-bag-card { padding: 1rem; border-radius: .95rem; background: #fff; border: 1px solid var(--merch-border); }
.admin-bag-card header { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; font-weight: 700; }
.admin-bag-card ul { margin: .55rem 0 0; padding-left: 1.1rem; color: var(--merch-muted); font-size: .86rem; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .shop-hero,
.desk-studio-grid,
.roadmap-ranking,
.merch-admin-grid,
.merch-admin-bags {
    grid-template-columns: 1fr;
  }
  .bundle-grid,
  .roadmap-steps,
  .merch-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 45rem) {
  .bundle-grid,
.wear-pair,
.shell-wear,
.roadmap-steps,
.ecosystem-grid,
.shop-inquiry,
.merch-admin-metrics,
.admin-form-grid {
    grid-template-columns: 1fr;
  }
  .shop-hero { padding: 1.15rem; border-radius: 1.25rem; }

  .hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .collection-bar {
    top: 0;
    border-radius: 0;
    margin-inline: calc(var(--gutter, 1.25rem) * -0.5);
    padding: .35rem calc(var(--gutter, 1.25rem) * 0.5);
    gap: .3rem;
  }
  .collection-nav { flex-basis: 100%; gap: .15rem .85rem; }
  .role-filter { width: 100%; }
  .desk-studio,
.merch-roadmap,
.shop-inquiry {
    scroll-margin-top: 6.5rem;
  }

  .rank-card { grid-template-columns: auto 52px minmax(0, 1fr); }
  .rank-card .merch-wish-btn { grid-column: 1 / -1; width: 100%; }

  .bag-item-row { grid-template-columns: 50px minmax(0, 1fr); }
  .bag-item-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .desk-stage { aspect-ratio: 4 / 3; }
  .desk-tray { bottom: 2.15rem; gap: .28rem; }
  .desk-tray-chip { font-size: .7rem; padding: .16rem .45rem .16rem .2rem; }
  .desk-tray-chip img { width: 18px; height: 18px; }
  .merch-float-dock { right: .65rem; gap: .38rem; }
  .merch-bag-fab { padding: .38rem .78rem; font-size: .84rem; }
  .merch-back-top { padding: .38rem .7rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .merch-btn,
.stage-prop,
.rank-meter-fill,
.merch-bag-fab {
    transition: none;
  }
}

/* 周边商城：大锤币兑换礼遇区 */
.merch-pass-perks {
  display: grid;
  gap: .5rem;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.merch-pass-perks[hidden] { display: none; }
.merch-perk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .48rem .62rem;
  border-radius: .65rem;
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255, 255, 255, .16);
}
.merch-perk-copy { display: grid; gap: .12rem; min-width: 0; }
.merch-perk-copy strong { font-size: .82rem; font-weight: 700; color: #fff; }
.merch-perk-copy small { font-size: .72rem; color: rgba(255, 255, 255, .78); word-break: break-all; }
.merch-perk-btn {
  flex: none;
  padding: .34rem .68rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 141, .65);
  background: rgba(253, 224, 141, .2);
  color: #fef08a;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.merch-perk-btn:hover:not(:disabled) { background: rgba(253, 224, 141, .32); }
.merch-perk-btn:disabled { opacity: .6; cursor: default; }
.merch-perk-done {
  flex: none;
  padding: .24rem .58rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, .22);
  border: 1px solid rgba(167, 243, 208, .4);
  color: #a7f3d0;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- V4: Slimmed Manifesto, Size Guide, Co-Create Unlock, Bag Coin & Ecosystem Match ---------- */
.shop-hero.shop-manifesto {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
  align-items: center;
  padding: clamp(1.1rem, 2.2vw, 1.65rem) clamp(1.2rem, 2.6vw, 2rem);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.shop-manifesto h2 {
  margin-top: .5rem;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}

.shop-manifesto .shop-lead {
  margin-top: .5rem;
  font-size: .9rem;
  line-height: 1.62;
  max-width: 46rem;
}

.size-guide-link {
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: .2rem .25rem;
  color: var(--merch-blue);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.size-guide-link:hover { color: var(--merch-ink); }

.cocreate-unlock-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.2rem;
  margin-top: .85rem;
  padding: .9rem 1.2rem;
  border-radius: 1rem;
  background: #faf6ee;
  border: 1px solid #e7decb;
  transition: background .25s ease, border-color .25s ease;
}
.cocreate-unlock-banner.is-unlocked {
  background: linear-gradient(130deg, #fff8e2, #f4f8ff);
  border-color: #e4c469;
}
.cocreate-unlock-copy strong { display: block; font-size: .94rem; color: var(--merch-ink); }
.cocreate-unlock-copy p { margin: .2rem 0 0; font-size: .84rem; color: var(--merch-muted); }

.eco-card--match {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #f7f9ff 0%, #fcf8f0 100%);
}
.eco-match-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.eco-match-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}
.eco-match-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding: .68rem .85rem;
  border-radius: .85rem;
  border: 1px solid #d9e1f0;
  background: rgba(255, 255, 255, .92);
  color: var(--merch-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.eco-match-pill strong { font-size: .86rem; font-weight: 760; color: var(--merch-blue); }
.eco-match-pill span { font-size: .78rem; color: var(--merch-muted); }
.eco-match-pill:hover {
  border-color: var(--merch-blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 32, 59, .08);
}

.bag-gift-box-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  margin-top: .8rem;
  padding: .75rem .9rem;
  border-radius: .8rem;
  background: #fff;
  border: 1px dashed #d4b98a;
}
.bag-gift-box-tip strong { display: block; font-size: .86rem; color: var(--merch-ink); }
.bag-gift-box-tip p { margin: .18rem 0 0; font-size: .8rem; color: var(--merch-muted); }

.bag-pass-panel {
  margin-top: 1rem;
  padding: .95rem 1rem;
  border-radius: .95rem;
  background: linear-gradient(145deg, #f4f7ff, #fbf7ee);
  border: 1px solid #d7e1f2;
}
.bag-pass-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .45rem .8rem;
}
.bag-pass-head strong { display: block; font-size: .92rem; color: var(--merch-ink); }
.bag-pass-head p { margin: .2rem 0 0; font-size: .8rem; color: var(--merch-muted); line-height: 1.5; }
.bag-pass-perks {
  display: grid;
  gap: .45rem;
  margin-top: .75rem;
}
.bag-pass-panel .merch-perk-row {
  background: #fff;
  border-color: #dde4f0;
}
.bag-pass-panel .merch-perk-copy strong { color: var(--merch-ink); font-size: .82rem; }
.bag-pass-panel .merch-perk-copy small { color: var(--merch-muted); }
.bag-pass-panel .merch-perk-btn {
  background: var(--merch-ink);
  border-color: var(--merch-ink);
  color: #fff;
  text-decoration: none;
}
.bag-pass-panel .merch-perk-btn:hover:not(:disabled) {
  background: var(--merch-blue);
  border-color: var(--merch-blue);
}
.bag-pass-panel .merch-perk-done {
  background: #e9f8f0;
  border-color: #b7e4cc;
  color: #166534;
}
.bag-earn-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .7rem;
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(20, 32, 59, .08);
  font-size: .78rem;
  color: var(--merch-muted);
}
.bag-earn-strip a {
  color: var(--merch-blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Size Guide Dialog */
.size-guide-dialog { width: min(44rem, calc(100% - 1.2rem)); }
.size-guide-sub { margin: .3rem 0 0; font-size: .86rem; color: var(--merch-muted); }
.size-calc-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: .95rem;
  background: #f8f6f0;
  border: 1px solid var(--merch-border);
}
.size-calc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.size-calc-fields label {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  font-size: .82rem;
  font-weight: 650;
  color: var(--merch-muted);
}
.size-calc-fields input,
.size-calc-fields select {
  min-height: 40px;
  padding: .35rem .65rem;
  border: 1px solid #cfc8ba;
  border-radius: .55rem;
  background: #fff;
  color: var(--merch-ink);
  font: inherit;
  font-size: .92rem;
}
.size-calc-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: .85rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(20, 32, 59, .08);
}
.size-calc-badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .85rem;
  border-radius: 999px;
  background: var(--merch-ink);
  color: #fff;
  font-size: .88rem;
  font-weight: 760;
}
.size-calc-result p { margin: 0; font-size: .86rem; color: var(--merch-ink); line-height: 1.5; flex: 1 1 15rem; }
.size-table-wrap { margin-top: 1rem; overflow-x: auto; }
.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.size-guide-table th,
.size-guide-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid #ebe6dc;
  text-align: left;
  white-space: nowrap;
}
.size-guide-table th {
  font-size: .78rem;
  color: var(--merch-muted);
  background: #faf8f4;
}
.size-guide-footnote {
  margin: .85rem 0 0;
  font-size: .8rem;
  color: var(--merch-muted);
  line-height: 1.55;
}

@media (max-width: 64rem) {
  .shop-hero.shop-manifesto { grid-template-columns: 1fr; }

}

@media (max-width: 45rem) {

  .size-calc-fields { grid-template-columns: 1fr; }
  .desk-tray-card { font-size: .7rem; padding: .16rem .45rem .16rem .18rem; }
  .desk-tray-card img { width: 28px; height: 22px; }
  .bag-pass-panel .merch-perk-row { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   V5 Calm Luxury Flagship Gallery (3-Tab + Unified 15-Tile Grid + Quick-View)
   ========================================================================== */
.shop--calm {
  padding-top: clamp(1rem, 2.4vw, 1.85rem);
}

.shop-toolbar {
  position: sticky;
  top: .5rem;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding: .45rem .55rem .45rem .5rem;
  border-radius: 1.05rem;
  background: rgba(255, 254, 251, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--merch-border);
  box-shadow: 0 8px 24px rgba(19, 32, 59, .055);
  scroll-margin-top: 4.5rem;
}

.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem;
  border-radius: .8rem;
  background: #f2ede3;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 36px;
  padding: .28rem .92rem;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  color: var(--merch-muted);
  font: inherit;
  font-size: .88rem;
  font-weight: 660;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.view-tab:hover { color: var(--merch-ink); }
.view-tab.is-active {
  background: var(--merch-ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(19, 32, 59, .18);
}
.tab-count {
  font-size: .74rem;
  opacity: .78;
  font-variant-numeric: tabular-nums;
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.toolbar-bag-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 36px;
  padding: .25rem .85rem;
  border: 1px solid #d9d1c3;
  border-radius: 999px;
  background: #fff;
  color: var(--merch-ink);
  font: inherit;
  font-size: .84rem;
  font-weight: 680;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.toolbar-bag-btn:hover {
  border-color: var(--merch-ink);
  background: #faf8f4;
}

.shop-view {
  margin-top: 1.25rem;
}

/* Calm Category & Role Filter Row */
.catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1rem;
  margin-bottom: 1.15rem;
}

.cat-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: .35rem;
  max-width: 100%;
}
.cat-pills::-webkit-scrollbar { display: none; }

.cat-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .22rem .82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--merch-muted);
  font: inherit;
  font-size: .86rem;
  font-weight: 620;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.cat-pill:hover {
  color: var(--merch-ink);
  background: rgba(19, 32, 59, .045);
}
.cat-pill.is-active {
  background: #fff;
  border-color: #d6cec0;
  color: var(--merch-ink);
  font-weight: 740;
  box-shadow: 0 2px 8px rgba(19, 32, 59, .05);
}

/* Unified 3-Column Museum-Grade Gallery Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.95rem, 1.8vw, 1.35rem);
}

.merch-tile {
  display: flex;
  flex-direction: column;
  border-radius: 1.05rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ebe5da;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  scroll-margin-top: 5.5rem;
}
.merch-tile:hover {
  transform: translateY(-2px);
  border-color: #d7cfc0;
  box-shadow: 0 14px 30px rgba(24, 34, 58, .07);
}
.merch-tile.is-flash {
  border-color: var(--merch-blue);
  box-shadow: 0 0 0 3px rgba(30, 80, 201, .16);
}

.tile-media-wrap {
  position: relative;
  background: #f5f2ec;
  overflow: hidden;
}

.tile-media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  background: #f5f2ec;
  cursor: pointer;
  overflow: hidden;
}
.tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.merch-tile:hover .tile-media img { transform: scale(1.03); }

.tile-tag {
  position: absolute;
  left: .65rem;
  top: .65rem;
  padding: .16rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(19, 32, 59, .08);
  color: #46536b;
  font-size: .7rem;
  font-weight: 660;
  pointer-events: none;
}

.tile-wish {
  position: absolute;
  right: .6rem;
  top: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .24rem;
  min-height: 30px;
  padding: 0 .62rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 32, 59, .1);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  color: var(--merch-ink);
  font: inherit;
  font-size: .76rem;
  font-weight: 680;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.tile-wish:hover { border-color: var(--merch-pink); color: var(--merch-pink); }
.tile-wish.is-wished {
  background: #fdf0f2;
  border-color: #ebb6c0;
  color: #b43c50;
}

.tile-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: .9rem 1rem 1rem;
  gap: .3rem;
}
.tile-body h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.tile-title-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--merch-ink);
  font: inherit;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}
.tile-title-btn:hover { color: var(--merch-blue); }

.tile-sub {
  margin: 0;
  color: var(--merch-muted);
  font-size: .82rem;
  line-height: 1.48;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: .58rem;
  border-top: 1px solid #f2ede4;
}
.tile-meta {
  font-size: .74rem;
  color: #7c8596;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 .82rem;
  border: 1px solid var(--merch-ink);
  border-radius: 999px;
  background: var(--merch-ink);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 660;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease;
}
.tile-cta:hover { background: var(--merch-blue); border-color: var(--merch-blue); }

/* Tab 2: Clean Roadmap View */
.merch-roadmap.shop-view { margin-top: 1.25rem; }
.view-head-clean {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .8rem 1.5rem;
}
.view-head-clean h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.view-head-sub { margin: .3rem 0 0; font-size: .88rem; color: var(--merch-muted); }

.roadmap-mini-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roadmap-mini-steps li {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .68rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--merch-border);
  font-size: .78rem;
  font-weight: 640;
  color: var(--merch-ink);
}
.roadmap-mini-steps span {
  font-size: .7rem;
  font-weight: 800;
  color: var(--merch-blue);
}

.roadmap-banners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.roadmap-banners-grid .account-sync-banner,
.roadmap-banners-grid .cocreate-unlock-banner {
  margin-top: 0;
}

.rank-title--btn {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

/* Tab 3: Play & Ecosystem View */
.play-view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.play-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}
.play-block-head h2 { margin: .2rem 0 0; font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
.play-view .desk-studio { margin-top: 0; }
.play-view .merch-ecosystem { margin-top: 0; }

/* Minimal Bottom Atelier Service Strip */
.shop-foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1rem 1.35rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid var(--merch-border);
}
.shop-foot-copy { display: flex; flex-direction: column; gap: .2rem; }
.shop-foot-copy strong { font-size: .92rem; color: var(--merch-ink); }
.shop-foot-copy span { font-size: .82rem; color: var(--merch-muted); }
.shop-foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .85rem;
}

/* Quick-View Product Modal */
.product-modal {
  width: min(54rem, calc(100% - 1.2rem));
}
.product-modal-inner {
  position: relative;
  padding: clamp(1.1rem, 2.6vw, 1.85rem);
}
.pm-close-btn {
  position: absolute;
  right: clamp(.9rem, 2vw, 1.4rem);
  top: clamp(.9rem, 2vw, 1.4rem);
  z-index: 4;
}
.pm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.8vw, 2rem);
  align-items: start;
}
.pm-gallery {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
}
.pm-stage {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f5f2ec;
  border: 1px solid #ebe5da;
}
.pm-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-stage.is-contain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6%;
}
.pm-stage.is-contain img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.pm-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.pm-thumb-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .55rem .22rem .22rem;
  border-radius: .6rem;
  border: 1px solid #dfd8cb;
  background: #faf8f4;
  color: var(--merch-ink);
  font: inherit;
  font-size: .76rem;
  font-weight: 620;
  cursor: pointer;
}
.pm-thumb-btn img {
  width: 38px;
  height: 26px;
  border-radius: .35rem;
  object-fit: cover;
  display: block;
}
.pm-thumb-btn.is-active {
  border-color: var(--merch-ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(19, 32, 59, .08);
}

.pm-info {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding-top: .2rem;
  min-width: 0;
}
.pm-info h2 {
  margin: 0;
  padding-right: 3.5rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}
.pm-desc {
  margin: 0;
  color: var(--merch-muted);
  font-size: .9rem;
  line-height: 1.65;
}
.pm-option-block {
  display: flex;
  flex-direction: column;
  gap: .42rem;
}
.pm-opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.pm-opt-label {
  font-size: .8rem;
  font-weight: 720;
  color: var(--merch-ink);
}
.pm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  padding-top: .25rem;
}
.pm-actions .merch-btn--dark { flex: 1 1 11rem; }
.pm-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  padding-top: .4rem;
  border-top: 1px solid #f0ebe2;
  font-size: .84rem;
}

@media (max-width: 62rem) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-banners-grid { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-info h2 { padding-right: 0; }
}

@media (max-width: 45rem) {
  .shop-toolbar {
    top: 0;
    border-radius: 0;
    margin-inline: calc(var(--gutter, 1.25rem) * -0.5);
    padding: .35rem calc(var(--gutter, 1.25rem) * 0.5);
    gap: .35rem;
  }
  .view-tabs { width: 100%; justify-content: space-between; }
  .view-tab { flex: 1 1 0; justify-content: center; padding: .26rem .35rem; font-size: .82rem; }
  .shop-toolbar-right { display: none; }
  .catalog-filter-row { gap: .4rem; margin-bottom: .85rem; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .tile-body { padding: .68rem .72rem .75rem; gap: .22rem; }
  .tile-body h3 { font-size: .86rem; }
  .tile-sub { font-size: .74rem; }
  .tile-meta { display: none; }
  .tile-foot { padding-top: .42rem; }
  .tile-cta { width: 100%; min-height: 30px; font-size: .74rem; }
  .tile-tag { left: .42rem; top: .42rem; font-size: .64rem; padding: .12rem .42rem; }
  .tile-wish { right: .4rem; top: .4rem; min-height: 26px; padding: 0 .45rem; font-size: .7rem; }
  .shop-foot-bar { padding: .9rem 1rem; }
}

@media (max-width: 21.5rem) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   V6 Luminous Flagship Merch — 官网 × 大锤清单介绍页 × 大锤妙记 3.0 同源美学
   浅色珠光柔雾 (#f5f7fb) ⇄ 深色星夜曜石 (#0b0f19) 1:1 双色体系
   ========================================================================== */
body.merch-page {
  --merch-bg: #f5f7fb;
  --merch-surface: #ffffff;
  --merch-warm: #eef2f9;
  --merch-ink: #0f172a;
  --merch-muted: #525e75;
  --merch-blue: #2350dc;
  --merch-blue-soft: #eef2ff;
  --merch-pink: #d86274;
  --merch-pink-soft: #fdf2f4;
  --merch-gold: #d97706;
  --merch-gold-soft: #fff7e6;
  --merch-border: rgba(15, 23, 42, .075);
  --merch-border-cool: rgba(15, 23, 42, .11);
  --merch-radius: 1.25rem;
  --merch-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 12px 30px -14px rgba(15, 23, 42, .08);
  --merch-shadow-hover: 0 4px 12px rgba(15, 23, 42, .05), 0 20px 42px -16px rgba(15, 23, 42, .14);
  background: var(--merch-bg);
  color: var(--merch-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 1. 60px 官网同源毛玻璃通栏顶栏 ---------- */
body.merch-page > .site-header.studio-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(clamp(1rem, 3.6vw, 2.5rem), calc((100% - 76rem) / 2));
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, .075);
}
body.merch-page > .site-header .identity .brand-name {
  display: inline-block;
  font: 860 clamp(1.14rem, .98rem + .34vw, 1.3rem)/1.06 "XinHammer Logo CN", var(--sans);
  letter-spacing: .018em;
  background: linear-gradient(102deg, #0f172a 16%, #1c3a94 62%, #2554e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.merch-page > .site-header .identity .wordmark {
  display: inline-block;
  width: fit-content;
  font-family: "XinHammer Logo EN", var(--sans);
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .032em;
  background: linear-gradient(100deg, #1e293b 16%, #224dd6 60%, #3b6ef5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.merch-page > .site-header nav a {
  color: #334155;
  font-weight: 500;
}
body.merch-page > .site-header nav a:hover,
body.merch-page > .site-header nav a[aria-current="page"] {
  color: #0f172a;
  font-weight: 600;
}
body.merch-page > .site-header nav a::after {
  background: linear-gradient(90deg, #2554e6, #6d4aff);
  height: 2px;
  border-radius: 2px;
}

/* ---------- 2. 大锤妙记 3.0 同源「悬浮毛玻璃指令坞」+ GPU 弹簧滑块 ---------- */
body.merch-page .shop--calm {
  padding-top: clamp(1.15rem, 2.5vw, 2rem);
}

body.merch-page .shop-toolbar {
  top: 4.25rem;
  padding: .46rem .56rem;
  border-radius: 1.12rem;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(15, 23, 42, .075);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .03), 0 14px 32px -18px rgba(15, 23, 42, .14);
}

body.merch-page .view-tabs {
  position: relative;
  padding: .22rem;
  border-radius: 9999px;
  background: #edf1f8;
  border: 1px solid rgba(15, 23, 42, .05);
}

.view-tab-slider {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 9999px;
  background: #111827;
  box-shadow: 0 6px 16px -6px rgba(17, 24, 39, .36);
  pointer-events: none;
  opacity: 0;
  transition: transform .26s cubic-bezier(.34, 1.28, .64, 1), width .24s cubic-bezier(.34, 1.28, .64, 1), opacity .16s ease;
  will-change: transform, width;
}
.view-tab-slider.is-ready { opacity: 1; }

body.merch-page .view-tab {
  position: relative;
  z-index: 1;
  border-radius: 9999px;
  color: #475569;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}
body.merch-page .view-tab:hover { color: #0f172a; }
body.merch-page .view-tab.is-active {
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}
body.merch-page .view-tabs:not(:has(.view-tab-slider.is-ready)) .view-tab.is-active {
  background: #111827;
}

body.merch-page .merch-live-pill {
  background: rgba(245, 247, 251, .92);
  border: 1px solid rgba(15, 23, 42, .08);
  color: #475569;
}

.merch-theme-btn,
.merch-theme-fab {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .9);
  color: #334155;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .14s ease;
}
.merch-theme-btn:hover,
.merch-theme-fab:hover {
  border-color: #2350dc;
  color: #2350dc;
  transform: translateY(-1px);
}
.merch-ico-sun { display: none; }
html[data-theme="dark"] .merch-ico-moon { display: none; }
html[data-theme="dark"] .merch-ico-sun { display: block; }

body.merch-page .toolbar-bag-btn {
  border: 1px solid rgba(15, 23, 42, .11);
  background: #ffffff;
  color: #0f172a;
}
body.merch-page .toolbar-bag-btn:hover {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

/* ---------- 3. 品类筛选 + 妙记同款「/」胶囊搜索 ---------- */
.catalog-filter-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.catalog-search {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 34px;
  padding: 0 .6rem 0 .72rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .92);
  color: #64748b;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.catalog-search:focus-within {
  border-color: #2350dc;
  box-shadow: 0 0 0 3px rgba(35, 80, 220, .12);
  background: #ffffff;
  color: #2350dc;
}
.catalog-search input {
  width: 9.8rem;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--merch-ink);
  font: inherit;
  font-size: .82rem;
  outline: none;
}
.catalog-search input::placeholder { color: #8490a6; }
.catalog-search kbd {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #f5f7fb;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  line-height: 1;
}

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.6rem 1.2rem;
  border-radius: 1.25rem;
  border: 1px dashed rgba(15, 23, 42, .14);
  background: rgba(255, 255, 255, .75);
  color: var(--merch-muted);
  text-align: center;
}
.catalog-empty p { margin: 0; font-size: .92rem; }

body.merch-page .cat-pill.is-active {
  background: #ffffff;
  border-color: rgba(15, 23, 42, .11);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
body.merch-page .role-chip.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}
body.merch-page .role-chip--dachui.is-active {
  background: #2350dc;
  border-color: #2350dc;
  color: #ffffff;
}
body.merch-page .role-chip--chuimei.is-active {
  background: #d86274;
  border-color: #d86274;
  color: #ffffff;
}

/* ---------- 4. 20px 液态白瓷 15 款画廊卡 + 黑曜⇄珠白胶囊按钮 ---------- */
body.merch-page .merch-tile {
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .065);
  box-shadow: var(--merch-shadow);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s cubic-bezier(.22, 1, .36, 1), border-color .22s ease;
}
body.merch-page .merch-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(35, 80, 220, .2);
  box-shadow: var(--merch-shadow-hover);
}
body.merch-page .tile-media-wrap,
body.merch-page .tile-media {
  background: #f1f4fa;
}

body.merch-page .tile-foot {
  border-top-color: rgba(15, 23, 42, .06);
}
body.merch-page .tile-cta,
body.merch-page .merch-btn--dark {
  border-radius: 9999px;
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  transition: background-color .18s ease, border-color .18s ease, transform .14s ease, box-shadow .18s ease;
}
body.merch-page .tile-cta:hover,
body.merch-page .merch-btn--dark:hover {
  background: #2350dc;
  border-color: #2350dc;
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(35, 80, 220, .42);
}
body.merch-page .merch-btn {
  border-radius: 9999px;
  border-color: rgba(15, 23, 42, .12);
}
body.merch-page .merch-btn--soft {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(35, 80, 220, .18);
  color: #2350dc;
}
body.merch-page .merch-btn--soft:hover {
  background: #2350dc;
  border-color: #2350dc;
  color: #ffffff;
}

/* ---------- 5. 官网招牌「曜石黑坐标网格重点卡」+「莫兰迪柔光三彩卡」 ---------- */
body.merch-page #account-sync-banner.account-sync-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, .18);
  background:
    radial-gradient(ellipse 68% 82% at 10% 8%, rgba(37, 99, 235, .28), transparent 62%),
    radial-gradient(ellipse 56% 74% at 92% 94%, rgba(217, 119, 6, .20), transparent 62%),
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px),
    #090d16;
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  color: #f8fafc;
  box-shadow: 0 18px 40px -22px rgba(9, 13, 22, .55);
}
body.merch-page #account-sync-banner strong { color: #f8fafc; }
body.merch-page #account-sync-banner p { color: #9aa7bd; }
body.merch-page #account-sync-banner .merch-btn {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0b0f19;
}
body.merch-page #account-sync-banner .merch-btn:hover {
  background: #93c5fd;
  border-color: #93c5fd;
  color: #0b0f19;
}
body.merch-page #account-sync-banner button.text-link {
  color: #93c5fd;
}

body.merch-page #roadmap-cocreate-banner.cocreate-unlock-banner {
  border-radius: 1.35rem;
  border: 1px solid rgba(217, 119, 6, .16);
  background: linear-gradient(142deg, #fff6ec 0%, #fde8d3 100%);
  box-shadow: var(--merch-shadow);
}
body.merch-page .roadmap-mini-steps li {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(15, 23, 42, .08);
}
body.merch-page .rank-card {
  border-radius: 1.15rem;
  border-color: rgba(15, 23, 42, .065);
  box-shadow: var(--merch-shadow);
}

/* Tab 3 · 莫兰迪柔光三彩卡（靛蓝 / 天青 / 暖杏） */
body.merch-page .bundle-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(15, 23, 42, .065);
  box-shadow: var(--merch-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.merch-page .bundle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--merch-shadow-hover);
}
body.merch-page .bundle-card--light {
  background: linear-gradient(150deg, #eef2ff 0%, #dde6ff 100%);
}
body.merch-page .bundle-card--outdoor {
  background: linear-gradient(150deg, #eef9ff 0%, #d8efff 100%);
}
body.merch-page .bundle-card--desk {
  background: linear-gradient(150deg, #fff6ec 0%, #fde8d3 100%);
}

body.merch-page .desk-studio {
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .065);
  box-shadow: var(--merch-shadow);
}
body.merch-page .desk-pill.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

/* Tab 3 · 大锤币 4 档实体礼遇升级为曜石黑坐标网格通用积分舱 */
body.merch-page .eco-card {
  border-radius: 1.4rem;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: var(--merch-shadow);
}
body.merch-page .eco-card--brand {
  border-color: rgba(148, 163, 184, .18);
  background:
    radial-gradient(ellipse 68% 78% at 10% 8%, rgba(37, 99, 235, .28), transparent 62%),
    radial-gradient(ellipse 56% 70% at 92% 92%, rgba(217, 119, 6, .20), transparent 62%),
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px),
    #090d16;
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  color: #f8fafc;
}
body.merch-page .eco-card--brand .section-index { color: #93c5fd; }
body.merch-page .eco-card--brand h3 { color: #f8fafc; }
body.merch-page .eco-card--brand > p { color: #9aa7bd; }
body.merch-page .eco-card--brand .merch-btn--dark {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0b0f19;
}
body.merch-page .eco-card--brand .merch-btn--dark:hover {
  background: #93c5fd;
  border-color: #93c5fd;
}
body.merch-page .eco-card--brand .text-link { color: #cbd5e1; }
body.merch-page .eco-card--brand .text-link:hover { color: #ffffff; }
body.merch-page .eco-card--box {
  background: linear-gradient(150deg, #eef2ff 0%, #f5f7fb 100%);
}

/* ---------- 6. Band 3 · 晴空冰蓝毛玻璃收口带 ---------- */
.merch-sky-band {
  margin-top: clamp(2.2rem, 4.2vw, 3.4rem);
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  border-radius: 1.65rem;
  border: 1px solid rgba(35, 80, 220, .12);
  background:
    radial-gradient(ellipse 58% 72% at 88% 12%, rgba(59, 130, 246, .14), transparent 68%),
    radial-gradient(ellipse 46% 64% at 10% 90%, rgba(251, 191, 36, .11), transparent 68%),
    linear-gradient(135deg, #eef6ff 0%, #e4effe 52%, #f6f8fc 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.merch-sky-band .shop-foot-bar {
  margin-top: 0;
  padding: 1.15rem 1.4rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .16);
}
.shop-foot-eyebrow {
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .1em;
  color: #2350dc;
  text-transform: uppercase;
}

.sky-eco-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.sky-eco-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .72rem .92rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, .07);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--merch-ink);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.sky-eco-card:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 80, 220, .25);
  background: #ffffff;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .18);
}
.sky-eco-card img {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: .5rem;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.sky-eco-card span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sky-eco-card strong { font-size: .88rem; line-height: 1.25; color: var(--merch-ink); }
.sky-eco-card small {
  font-size: .76rem;
  color: var(--merch-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 7. 磨砂浮岛与 24px 大圆角弹窗 ---------- */
body.merch-page .merch-bag-fab {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .34);
}
body.merch-page .merch-bag-fab:hover { background: #2350dc; }
body.merch-page .merch-back-top {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-color: rgba(15, 23, 42, .1);
  color: #0f172a;
}
body.merch-page .bag-dialog {
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 28px 64px -20px rgba(15, 23, 42, .32);
}

/* ==========================================================================
   1:1 #0b0f19 星夜曜石深色模式（全站 0 亮白残留）
   ========================================================================== */
html[data-theme="dark"] body.merch-page {
  --merch-bg: #0b0f19;
  --merch-surface: #141c2e;
  --merch-warm: #0f1523;
  --merch-ink: #f8fafc;
  --merch-muted: #9aa7bd;
  --merch-blue: #7aa2ff;
  --merch-blue-soft: rgba(122, 162, 255, .14);
  --merch-pink: #f48b9c;
  --merch-pink-soft: rgba(244, 139, 156, .14);
  --merch-gold: #fbbf24;
  --merch-gold-soft: rgba(251, 191, 36, .14);
  --merch-border: rgba(148, 163, 184, .16);
  --merch-border-cool: rgba(148, 163, 184, .22);
  --merch-shadow: 0 2px 6px rgba(0, 0, 0, .28), 0 16px 34px -16px rgba(0, 0, 0, .55);
  --merch-shadow-hover: 0 8px 20px rgba(0, 0, 0, .4), 0 24px 48px -18px rgba(0, 0, 0, .68);
  background: #0b0f19;
  color: #f8fafc;
}

/* 深色顶栏与官方亮蓝白渐变字标 */
html[data-theme="dark"] body.merch-page > .site-header.studio-nav {
  background: rgba(11, 15, 25, .86);
  border-bottom-color: rgba(148, 163, 184, .14);
}
html[data-theme="dark"] body.merch-page > .site-header .identity .brand-name {
  background: linear-gradient(102deg, #f8fafc 16%, #bfdbfe 62%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] body.merch-page > .site-header .identity .wordmark {
  background: linear-gradient(100deg, #e2e8f0 16%, #93c5fd 62%, #7aa2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] body.merch-page > .site-header nav a { color: #9aa7bd; }
html[data-theme="dark"] body.merch-page > .site-header nav a:hover,
html[data-theme="dark"] body.merch-page > .site-header nav a[aria-current="page"] { color: #f8fafc; }

/* 深色悬浮指令坞 + 珠白滑块 */
html[data-theme="dark"] body.merch-page .shop-toolbar {
  background: rgba(17, 24, 39, .88);
  border-color: rgba(148, 163, 184, .18);
  box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .65);
}
html[data-theme="dark"] body.merch-page .view-tabs {
  background: #0b0f19;
  border-color: rgba(148, 163, 184, .14);
}
html[data-theme="dark"] body.merch-page .view-tab-slider {
  background: #f8fafc;
  box-shadow: 0 6px 16px -6px rgba(248, 250, 252, .24);
}
html[data-theme="dark"] body.merch-page .view-tab { color: #9aa7bd; }
html[data-theme="dark"] body.merch-page .view-tab:hover { color: #f8fafc; }
html[data-theme="dark"] body.merch-page .view-tab.is-active { color: #0b0f19; }
html[data-theme="dark"] body.merch-page .view-tabs:not(:has(.view-tab-slider.is-ready)) .view-tab.is-active {
  background: #f8fafc;
  color: #0b0f19;
}

html[data-theme="dark"] body.merch-page .merch-live-pill,
html[data-theme="dark"] body.merch-page .toolbar-bag-btn,
html[data-theme="dark"] body.merch-page .merch-theme-btn,
html[data-theme="dark"] body.merch-page .merch-theme-fab,
html[data-theme="dark"] body.merch-page .merch-back-top {
  background: #141c2e;
  border-color: rgba(148, 163, 184, .22);
  color: #e2e8f0;
}
html[data-theme="dark"] body.merch-page .toolbar-bag-btn:hover,
html[data-theme="dark"] body.merch-page .merch-theme-btn:hover,
html[data-theme="dark"] body.merch-page .merch-theme-fab:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  color: #0b0f19;
}

/* 深色筛选、搜索与卡片 */
html[data-theme="dark"] body.merch-page .catalog-search {
  background: #141c2e;
  border-color: rgba(148, 163, 184, .2);
  color: #9aa7bd;
}
html[data-theme="dark"] body.merch-page .catalog-search:focus-within {
  border-color: #7aa2ff;
  background: #192338;
  color: #7aa2ff;
}
html[data-theme="dark"] body.merch-page .catalog-search input { color: #f8fafc; }
html[data-theme="dark"] body.merch-page .catalog-search kbd {
  background: #0b0f19;
  border-color: rgba(148, 163, 184, .24);
  color: #9aa7bd;
}
html[data-theme="dark"] body.merch-page .catalog-empty {
  background: rgba(20, 28, 46, .75);
  border-color: rgba(148, 163, 184, .22);
}
html[data-theme="dark"] body.merch-page .cat-pill { color: #9aa7bd; }
html[data-theme="dark"] body.merch-page .cat-pill:hover { color: #f8fafc; background: rgba(148, 163, 184, .1); }
html[data-theme="dark"] body.merch-page .cat-pill.is-active {
  background: #1d2842;
  border-color: rgba(122, 162, 255, .34);
  color: #f8fafc;
}
html[data-theme="dark"] body.merch-page .role-chip {
  background: #141c2e;
  border-color: rgba(148, 163, 184, .2);
  color: #cbd5e1;
}
html[data-theme="dark"] body.merch-page .role-chip.is-active {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .role-chip--dachui.is-active {
  background: #5b86ff;
  border-color: #5b86ff;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .role-chip--chuimei.is-active {
  background: #f48b9c;
  border-color: #f48b9c;
  color: #0b0f19;
}

html[data-theme="dark"] body.merch-page .merch-tile {
  background: #141c2e;
  border-color: rgba(148, 163, 184, .16);
}
html[data-theme="dark"] body.merch-page .merch-tile:hover {
  border-color: rgba(122, 162, 255, .36);
}
html[data-theme="dark"] body.merch-page .tile-media-wrap,
html[data-theme="dark"] body.merch-page .tile-media {
  background: #1b253a;
}

html[data-theme="dark"] body.merch-page .tile-tag {
  background: rgba(15, 21, 35, .86);
  border-color: rgba(148, 163, 184, .22);
  color: #cbd5e1;
}
body.merch-page .tile-tag--p2 {
  background: rgba(238, 244, 255, .94);
  border-color: rgba(35, 80, 220, .24);
  color: #1d4ed8;
}
html[data-theme="dark"] body.merch-page .tile-tag--p2 {
  background: rgba(15, 25, 56, .88);
  border-color: rgba(147, 197, 253, .44);
  color: #dbeafe;
}
body.merch-page .tile-tag--flagship {
  background: linear-gradient(135deg, rgba(255, 248, 230, .97) 0%, rgba(254, 237, 200, .96) 100%);
  border-color: rgba(217, 119, 6, .42);
  color: #9a3412;
  font-weight: 760;
  box-shadow: 0 4px 12px rgba(217, 119, 6, .16);
}
html[data-theme="dark"] body.merch-page .tile-tag--flagship {
  background: linear-gradient(135deg, rgba(120, 53, 15, .92) 0%, rgba(154, 52, 18, .88) 100%);
  border-color: rgba(251, 191, 36, .58);
  color: #fef3c7;
  box-shadow: 0 4px 14px rgba(245, 158, 11, .24);
}
body.merch-page .merch-tile--flagship {
  border-color: rgba(217, 119, 6, .34);
  box-shadow: 0 12px 32px rgba(217, 119, 6, .08), var(--merch-shadow);
}
html[data-theme="dark"] body.merch-page .merch-tile--flagship {
  border-color: rgba(251, 191, 36, .36);
  box-shadow: 0 14px 36px rgba(245, 158, 11, .12);
}
body.merch-page .bundle-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 52rem) {
  body.merch-page .bundle-grid--4 {
    grid-template-columns: 1fr;
  }
}
body.merch-page .bundle-card--flagship {
  background: linear-gradient(168deg, #ffffff 42%, #fff6e5);
  border-color: rgba(217, 119, 6, .28);
}
body.merch-page .bundle-card--flagship .bundle-kicker {
  color: #b45309;
}
html[data-theme="dark"] body.merch-page .bundle-card--flagship {
  background: linear-gradient(150deg, #2a1f12 0%, #1d1610 100%);
  border-color: rgba(251, 191, 36, .34);
}
html[data-theme="dark"] body.merch-page .bundle-card--flagship .bundle-kicker {
  color: #fcd34d;
}
body.merch-page .cat-pill--p2:not(.is-active) {
  border-color: rgba(35, 80, 220, .24);
  background: rgba(238, 244, 255, .85);
  color: #1d4ed8;
}
html[data-theme="dark"] body.merch-page .cat-pill--p2:not(.is-active) {
  border-color: rgba(147, 197, 253, .34);
  background: rgba(37, 84, 230, .2);
  color: #bfdbfe;
}
html[data-theme="dark"] body.merch-page .tile-wish {
  background: rgba(15, 21, 35, .88);
  border-color: rgba(148, 163, 184, .24);
  color: #f8fafc;
}
html[data-theme="dark"] body.merch-page .tile-wish.is-wished {
  background: rgba(244, 139, 156, .22);
  border-color: rgba(244, 139, 156, .5);
  color: #fda4af;
}
html[data-theme="dark"] body.merch-page .tile-title-btn { color: #f8fafc; }
html[data-theme="dark"] body.merch-page .tile-title-btn:hover { color: #93c5fd; }
html[data-theme="dark"] body.merch-page .tile-meta { color: #8c9ab2; }
html[data-theme="dark"] body.merch-page .tile-foot { border-top-color: rgba(148, 163, 184, .12); }

/* 深色珠白主按钮（先定义次按钮，再让主按钮覆盖） */
html[data-theme="dark"] body.merch-page .merch-btn {
  background: #141c2e;
  border-color: rgba(148, 163, 184, .24);
  color: #e2e8f0;
}
html[data-theme="dark"] body.merch-page .merch-btn:hover {
  border-color: #93c5fd;
  color: #ffffff;
}
html[data-theme="dark"] body.merch-page .merch-btn--soft {
  background: rgba(96, 165, 250, .14);
  border-color: rgba(147, 197, 253, .3);
  color: #bfdbfe;
}
html[data-theme="dark"] body.merch-page .merch-btn--soft:hover {
  background: rgba(96, 165, 250, .24);
  border-color: #93c5fd;
  color: #ffffff;
}
html[data-theme="dark"] body.merch-page .tile-cta,
html[data-theme="dark"] body.merch-page .merch-btn.merch-btn--dark,
html[data-theme="dark"] body.merch-page .merch-btn--dark,
html[data-theme="dark"] body.merch-page .merch-bag-fab {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .tile-cta:hover,
html[data-theme="dark"] body.merch-page .merch-btn.merch-btn--dark:hover,
html[data-theme="dark"] body.merch-page .merch-btn--dark:hover,
html[data-theme="dark"] body.merch-page .merch-bag-fab:hover {
  background: #93c5fd;
  border-color: #93c5fd;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .merch-bag-badge {
  background: #0b0f19;
  color: #f8fafc;
}
html[data-theme="dark"] body.merch-page .text-link,
html[data-theme="dark"] body.merch-page button.text-link,
html[data-theme="dark"] body.merch-page .size-guide-link,
html[data-theme="dark"] body.merch-page .bag-earn-strip a {
  color: #93c5fd;
}
html[data-theme="dark"] body.merch-page .text-link:hover,
html[data-theme="dark"] body.merch-page button.text-link:hover,
html[data-theme="dark"] body.merch-page .size-guide-link:hover,
html[data-theme="dark"] body.merch-page .bag-earn-strip a:hover {
  color: #dbeafe;
}
html[data-theme="dark"] body.merch-page .bag-sync-status { color: #4ade80; }
html[data-theme="dark"] body.merch-page .bag-remove-btn { color: #fda4af; }

/* 深色 Tab 2 & Tab 3 莫兰迪压暗卡 + 书桌 + 排产榜 */
html[data-theme="dark"] body.merch-page .roadmap-mini-steps li,
html[data-theme="dark"] body.merch-page .rank-card,
html[data-theme="dark"] body.merch-page .desk-studio,
html[data-theme="dark"] body.merch-page .eco-card--match,
html[data-theme="dark"] body.merch-page .eco-match-pill {
  background: #141c2e;
  border-color: rgba(148, 163, 184, .16);
  color: #f8fafc;
}
html[data-theme="dark"] body.merch-page .rank-title--btn,
html[data-theme="dark"] body.merch-page .eco-match-pill strong { color: #f8fafc; }
html[data-theme="dark"] body.merch-page .eco-match-pill span { color: #9aa7bd; }
html[data-theme="dark"] body.merch-page .eco-match-pill:hover {
  border-color: rgba(122, 162, 255, .45);
  background: #1a253d;
}

html[data-theme="dark"] body.merch-page .rank-num {
  background: #1b263d;
  border-color: rgba(148, 163, 184, .22);
  color: #cbd5e1;
}
html[data-theme="dark"] body.merch-page .rank-card.is-top .rank-num {
  background: #f8fafc;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .accent-badge--blue {
  background: rgba(96, 165, 250, .18);
  color: #bfdbfe;
}
html[data-theme="dark"] body.merch-page .accent-badge--gold {
  background: rgba(251, 191, 36, .18);
  color: #fde68a;
}
html[data-theme="dark"] body.merch-page .accent-badge--pink {
  background: rgba(244, 139, 156, .2);
  color: #fecdd3;
}
html[data-theme="dark"] body.merch-page .accent-badge--warm {
  background: rgba(148, 163, 184, .16);
  color: #e2e8f0;
}
html[data-theme="dark"] body.merch-page #roadmap-cocreate-banner.cocreate-unlock-banner {
  background: linear-gradient(142deg, #271d14 0%, #1d1610 100%);
  border-color: rgba(251, 191, 36, .22);
}
html[data-theme="dark"] body.merch-page #roadmap-cocreate-banner strong { color: #fef3c7; }
html[data-theme="dark"] body.merch-page #roadmap-cocreate-banner p { color: #d6c5ae; }

html[data-theme="dark"] body.merch-page .bundle-card--light {
  background: linear-gradient(150deg, #161d38 0%, #11172d 100%);
  border-color: rgba(122, 162, 255, .2);
}
html[data-theme="dark"] body.merch-page .bundle-card--outdoor {
  background: linear-gradient(150deg, #112233 0%, #0d1a28 100%);
  border-color: rgba(125, 211, 252, .2);
}
html[data-theme="dark"] body.merch-page .bundle-card--desk {
  background: linear-gradient(150deg, #271d14 0%, #1d150f 100%);
  border-color: rgba(251, 191, 36, .2);
}
html[data-theme="dark"] body.merch-page .bundle-body h3,
html[data-theme="dark"] body.merch-page .bundle-kicker { color: #f8fafc; }
html[data-theme="dark"] body.merch-page .bundle-body p { color: #b5c1d6; }
html[data-theme="dark"] body.merch-page .eco-card--box {
  background: linear-gradient(150deg, #161d38 0%, #141c2e 100%);
  border-color: rgba(122, 162, 255, .2);
}
html[data-theme="dark"] body.merch-page .desk-pill {
  background: #0f1523;
  border-color: rgba(148, 163, 184, .2);
  color: #cbd5e1;
}
html[data-theme="dark"] body.merch-page .desk-pill.is-active {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .desk-mat-tag,
html[data-theme="dark"] body.merch-page .desk-tray-card,
html[data-theme="dark"] body.merch-page .desk-tray-chip {
  background: rgba(15, 21, 35, .86);
  border-color: rgba(148, 163, 184, .26);
  color: #f8fafc;
}
html[data-theme="dark"] body.merch-page .desk-stage-foot {
  background: rgba(15, 21, 35, .82);
  color: #cbd5e1;
}

/* 深色 Band 3 晴空收口带 + 页脚 */
html[data-theme="dark"] body.merch-page .merch-sky-band {
  border-color: rgba(122, 162, 255, .2);
  background:
    radial-gradient(ellipse 58% 72% at 88% 12%, rgba(59, 130, 246, .2), transparent 68%),
    radial-gradient(ellipse 46% 64% at 10% 90%, rgba(251, 191, 36, .12), transparent 68%),
    linear-gradient(135deg, #0f182c 0%, #131d36 55%, #0c1220 100%);
}
html[data-theme="dark"] body.merch-page .merch-sky-band .shop-foot-bar,
html[data-theme="dark"] body.merch-page .sky-eco-card {
  background: rgba(20, 28, 46, .88);
  border-color: rgba(148, 163, 184, .18);
  color: #f8fafc;
}
html[data-theme="dark"] body.merch-page .sky-eco-card:hover {
  background: #1a263f;
  border-color: rgba(122, 162, 255, .42);
}
html[data-theme="dark"] body.merch-page .shop-foot-eyebrow { color: #93c5fd; }
html[data-theme="dark"] body.merch-page > .site-footer {
  border-top-color: rgba(148, 163, 184, .14);
  color: #9aa7bd;
}
html[data-theme="dark"] body.merch-page > .site-footer a { color: #cbd5e1; }

/* 深色三大弹窗（商品快览 / 选款心愿袋 / 尺码速算）—— 彻底清零亮白残留 */
body.merch-page .merch-float-dock { z-index: 50; }
html[data-theme="dark"] body.merch-page .bag-dialog {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, .22);
}
html[data-theme="dark"] body.merch-page .bag-dialog::backdrop {
  background: rgba(4, 7, 15, .74);
}
html[data-theme="dark"] body.merch-page .bag-dialog .close-contact,
html[data-theme="dark"] body.merch-page .sku-chip,
html[data-theme="dark"] body.merch-page .sku-choice-btn,
html[data-theme="dark"] body.merch-page .size-pill,
html[data-theme="dark"] body.merch-page .pm-thumb-btn,
html[data-theme="dark"] body.merch-page .merch-wish-btn,
html[data-theme="dark"] body.merch-page .sample-tab,
html[data-theme="dark"] body.merch-page .bag-qty-btn,
html[data-theme="dark"] body.merch-page .bag-size-select {
  background: #192338;
  border-color: rgba(148, 163, 184, .26);
  color: #e2e8f0;
}
html[data-theme="dark"] body.merch-page .sku-chip:hover,
html[data-theme="dark"] body.merch-page .bag-qty-btn:hover {
  border-color: #93c5fd;
  color: #ffffff;
}
html[data-theme="dark"] body.merch-page .sku-chip.is-active,
html[data-theme="dark"] body.merch-page .sku-choice-btn.is-active,
html[data-theme="dark"] body.merch-page .size-pill.is-active,
html[data-theme="dark"] body.merch-page .sample-tab.is-active {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .merch-wish-btn.is-wished {
  background: rgba(244, 139, 156, .22);
  border-color: rgba(244, 139, 156, .5);
  color: #fda4af;
}
html[data-theme="dark"] body.merch-page .bag-pass-panel .merch-perk-btn {
  background: rgba(96, 165, 250, .14);
  border-color: rgba(147, 197, 253, .32);
  color: #dbeafe;
}
html[data-theme="dark"] body.merch-page .bag-pass-panel .merch-perk-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .bag-pass-panel .merch-perk-done {
  background: rgba(74, 222, 128, .14);
  border-color: rgba(74, 222, 128, .35);
  color: #86efac;
}
html[data-theme="dark"] body.merch-page .bag-pass-head strong,
html[data-theme="dark"] body.merch-page .bag-pass-panel .merch-perk-copy strong { color: #f8fafc; }
html[data-theme="dark"] body.merch-page .bag-pass-head p,
html[data-theme="dark"] body.merch-page .bag-pass-panel .merch-perk-copy small { color: #9aa7bd; }
html[data-theme="dark"] body.merch-page .pm-stage,
html[data-theme="dark"] body.merch-page .bag-item-row,
html[data-theme="dark"] body.merch-page .bag-prefs,
html[data-theme="dark"] body.merch-page .bag-pass-panel,
html[data-theme="dark"] body.merch-page .bag-gift-box-tip,
html[data-theme="dark"] body.merch-page .size-calc-box,
html[data-theme="dark"] body.merch-page .merch-perk-row {
  background: #141c2e;
  border-color: rgba(148, 163, 184, .18);
  color: #f8fafc;
}
html[data-theme="dark"] body.merch-page .bag-item-row {
  background: transparent;
  border-bottom-color: rgba(148, 163, 184, .14);
}
html[data-theme="dark"] body.merch-page .bag-note-input,
html[data-theme="dark"] body.merch-page .bag-output textarea,
html[data-theme="dark"] body.merch-page .size-calc-fields input,
html[data-theme="dark"] body.merch-page .size-calc-fields select {
  background: #0b0f19;
  border-color: rgba(148, 163, 184, .26);
  color: #f8fafc;
}
html[data-theme="dark"] body.merch-page .size-guide-table th {
  background: #141c2e;
  color: #9aa7bd;
  border-bottom-color: rgba(148, 163, 184, .18);
}
html[data-theme="dark"] body.merch-page .size-guide-table td {
  border-bottom-color: rgba(148, 163, 184, .12);
  color: #e2e8f0;
}
html[data-theme="dark"] body.merch-page .size-calc-badge {
  background: #f8fafc;
  color: #0b0f19;
}
html[data-theme="dark"] body.merch-page .pm-links,
html[data-theme="dark"] body.merch-page .bag-dialog-head {
  border-color: rgba(148, 163, 184, .14);
}
html[data-theme="dark"] body.merch-page .stage-badge,
html[data-theme="dark"] body.merch-page .spec-pills li {
  background: #1b263d;
  border-color: rgba(148, 163, 184, .2);
  color: #cbd5e1;
}
html[data-theme="dark"] body.merch-page .merch-toast {
  background: #f8fafc;
  color: #0b0f19;
}

/* ---------- 8. 移动端与减弱动态适配 (320px–768px 零溢出/零孤字) ---------- */
@media (max-width: 62rem) {
  .sky-eco-strip { grid-template-columns: 1fr; }
}

@media (max-width: 45rem) {
  body.merch-page > .site-header.studio-nav {
    position: static;
  }
  body.merch-page .shop-toolbar {
    top: .45rem;
    border-radius: 1rem;
    z-index: 40;
  }
  .catalog-filter-right {
    width: 100%;
    justify-content: space-between;
  }
  .catalog-search {
    flex: 1 1 8.5rem;
  }
  .catalog-search input {
    width: 100%;
    font-size: 16px;
  }
  .catalog-search kbd { display: none; }
  .merch-sky-band {
    padding: .9rem;
    border-radius: 1.25rem;
  }
  .merch-sky-band .shop-foot-bar {
    padding: .95rem 1rem;
  }
  .merch-admin-search { max-width: none; width: 100%; }
  .shop-foot-actions {
    width: 100%;
  }
  .shop-foot-actions .merch-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-color-scheme: dark) {
  body.merch-page.merch-admin-page {
    color-scheme: dark;
    background:
      radial-gradient(ellipse 68% 36% at 84% 0%, rgba(59, 130, 246, .14), transparent 66%),
      #0b0f19;
    color: #f1f5f9;
    --merch-ink: #f8fafc;
    --merch-muted: #9aa7bd;
    --merch-border: rgba(255, 255, 255, .1);
    --merch-surface: #131b2c;
  }
  body.merch-admin-page > .site-header.studio-nav {
    background: rgba(11, 15, 25, .88);
    border-bottom-color: rgba(255, 255, 255, .09);
  }
  body.merch-admin-page > .site-header.studio-nav .identity .brand-name {
    border-left-color: rgba(255, 255, 255, .14);
    background: linear-gradient(102deg, #f8fafc 18%, #bfd4ff 64%, #7aa2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  body.merch-admin-page > .site-header.studio-nav .identity .wordmark {
    background: linear-gradient(100deg, #e2e8f0 16%, #94b6ff 62%, #6d9bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  body.merch-admin-page > .site-header.studio-nav nav a { color: #cbd5e1; }
  body.merch-admin-page > .site-header.studio-nav nav a:hover { color: #fff; }
  body.merch-admin-page .admin-suite-bar,
  body.merch-admin-page .merch-admin-stage-pills {
    border-color: rgba(255, 255, 255, .1);
    background: #121a2d;
  }
  body.merch-admin-page .admin-suite-bar a,
  body.merch-admin-page .merch-admin-stage-pills button { color: #9aa7bd; }
  body.merch-admin-page .admin-suite-bar a:is(:hover, :focus-visible),
  body.merch-admin-page .merch-admin-stage-pills button:hover { color: #f8fafc; background: rgba(255, 255, 255, .07); }
  body.merch-admin-page .admin-suite-bar a[aria-current="page"],
  body.merch-admin-page .merch-admin-stage-pills button[aria-pressed="true"] { background: #f8fafc; color: #0b0f19; }
  body.merch-admin-page .merch-admin-search input,
  body.merch-admin-page .admin-form-grid select,
  body.merch-admin-page .admin-form-grid input {
    border-color: rgba(255, 255, 255, .15);
    background: #0d1424;
    color: #f8fafc;
  }
  body.merch-admin-page .merch-admin-gate,
  body.merch-admin-page .merch-metric-card,
  body.merch-admin-page .admin-product-card,
  body.merch-admin-page .admin-bag-card {
    background: #131b2c;
    border-color: rgba(255, 255, 255, .1);
    color: #f8fafc;
    box-shadow: 0 14px 36px -18px rgba(0, 0, 0, .6);
  }
  body.merch-admin-page .admin-stat-pill {
    background: rgba(122, 162, 255, .14);
    color: #dbeafe;
  }
  body.merch-admin-page .merch-admin-status,
  body.merch-admin-page .admin-card-msg { color: #6ee7b7; }
  body.merch-admin-page .entry-link {
    background: #1a243b;
    border-color: rgba(255, 255, 255, .16);
    color: #f8fafc;
  }
  body.merch-admin-page .entry-link--primary {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #0b0f19;
  }
  body.merch-admin-page > .site-footer {
    border-top-color: rgba(255, 255, 255, .09);
    color: #9aa7bd;
  }
  body.merch-admin-page > .site-footer a { color: #cbd5e1; }
}

@media (prefers-reduced-motion: reduce) {
  .view-tab-slider { transition: none !important; }
  body.merch-page .merch-tile,
  body.merch-page .bundle-card,
  .sky-eco-card { transition: none !important; }
}

/* NFC Pass Remote Redirect Admin Section */
.admin-nfc-add-bar {
  display: grid;
  grid-template-columns: minmax(10rem, .85fr) minmax(11rem, 1fr) minmax(13rem, 1.35fr) auto;
  gap: .6rem;
  margin-bottom: .9rem;
  padding: .85rem;
  border-radius: .95rem;
  background: #fff;
  border: 1px solid var(--merch-border);
}
.admin-nfc-add-bar input {
  min-height: 38px;
  padding: .35rem .65rem;
  border: 1px solid #c3d0e3;
  border-radius: .5rem;
  font: inherit;
  font-size: .86rem;
  color: var(--merch-ink);
  background: #fff;
}
.admin-nfc-head {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.admin-nfc-head h3 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.admin-nfc-head code {
  font-size: .78rem;
  padding: .12rem .45rem;
  border-radius: .4rem;
  background: #eff4ff;
  color: #1d4ed8;
}
.admin-nfc-url {
  margin: .18rem 0 0;
  font-size: .78rem;
  color: var(--merch-muted);
  word-break: break-all;
}
.admin-nfc-mini-btn {
  display: inline-flex;
  align-items: center;
  padding: .16rem .56rem;
  border-radius: 999px;
  border: 1px solid #cbd6e8;
  background: #fff;
  color: var(--merch-ink);
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.admin-nfc-mini-btn:hover { border-color: #2563eb; color: #2563eb; }
.admin-nfc-btn-group { display: flex; align-items: center; gap: .5rem; }
.admin-nfc-del-btn {
  min-height: 34px;
  padding: .25rem .72rem;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b91c1c;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-nfc-del-btn:hover { background: #fee2e2; }
@media (max-width: 56rem) {
  .admin-nfc-add-bar { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  body.merch-admin-page .admin-nfc-add-bar {
    background: #131b2c;
    border-color: rgba(255, 255, 255, .1);
  }
  body.merch-admin-page .admin-nfc-add-bar input {
    border-color: rgba(255, 255, 255, .15);
    background: #0d1424;
    color: #f8fafc;
  }
  body.merch-admin-page .admin-nfc-head code {
    background: rgba(59, 130, 246, .18);
    color: #93c5fd;
  }
  body.merch-admin-page .admin-nfc-mini-btn {
    background: #1a243b;
    border-color: rgba(255, 255, 255, .16);
    color: #e2e8f0;
  }
  body.merch-admin-page .admin-nfc-del-btn {
    background: rgba(239, 68, 68, .14);
    border-color: rgba(248, 113, 113, .3);
    color: #fca5a5;
  }
}

