:root {
  --bg: #fdf6f1;
  --ink: #3a2e39;
  --muted: #8f8290;
  --line: rgba(58, 46, 57, .08);
  --coral: #ff6f7d;
  --violet: #8f7cff;
  --peach: #ffb38a;
  --mint: #6fd0b9;
  --card: rgba(255, 255, 255, .78);
  --grad: linear-gradient(135deg, #ff7f8e 0%, #ff9c76 50%, #ffb36b 100%);
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(120, 60, 90, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }

/* ---------- 背景流动光斑 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 18s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: #ffc2d1; top: -120px; left: -100px; }
.b2 { width: 380px; height: 380px; background: #d6ccff; top: 30%; right: -140px; animation-delay: -6s; }
.b3 { width: 340px; height: 340px; background: #ffe0c2; bottom: -120px; left: 20%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}

/* ---------- 头部 ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 36px 20px 8px; animation: rise .8s var(--ease) both; }
.brand { display: flex; align-items: center; gap: 14px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(160deg, #fff, #ffeee6); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 10px; animation: wiggle 6s ease-in-out infinite; flex-shrink: 0; }
.logo i { border-radius: 50%; position: relative; box-shadow: inset -2px -2px 3px rgba(0,0,0,.12); }
.logo i::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: rgba(0,0,0,.18); }
.logo i:nth-child(1) { background: #ff8a8a; } .logo i:nth-child(2) { background: #ffd23f; }
.logo i:nth-child(3) { background: #9fd77b; } .logo i:nth-child(4) { background: #ffb867; }
.logo i { border-radius: 50%; position: relative; }
.logo i::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: rgba(255,255,255,.75); }
.logo i:nth-child(1) { background: var(--coral); }
.logo i:nth-child(2) { background: #ffcb47; }
.logo i:nth-child(3) { background: var(--mint); }
.logo i:nth-child(4) { background: var(--violet); }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-8deg); } 96% { transform: rotate(6deg); } }
.hero h1 { margin: 0; font-size: 26px; letter-spacing: .5px; display: flex; align-items: center; gap: 4px; }
.hero h1 .grad { background: linear-gradient(135deg, #ff6f7d, #ff9c5e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .emo { font-size: .95em; }
.lang-switch { position: relative; display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px -10px rgba(120,60,90,.4); flex-shrink: 0; }
.lang-switch button { position: relative; z-index: 1; width: 52px; height: 32px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); transition: color .3s; }
.lang-switch button.on { color: #fff; }
.lang-thumb { position: absolute; top: 4px; left: 4px; width: 52px; height: 32px; border-radius: 999px; background: var(--grad); box-shadow: 0 4px 12px -4px rgba(255,111,125,.6); transition: transform .45s var(--spring); }
.lang-switch[data-active="en"] .lang-thumb { transform: translateX(52px); }
.hero .brand p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.hero-tip { margin: 18px 0 0; display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.7); backdrop-filter: blur(8px); font-size: 13px; color: #7a6a78; box-shadow: 0 4px 14px -8px rgba(120,60,90,.3); }

/* ---------- Tab ---------- */
.tabs {
  position: sticky; top: 10px; z-index: 20;
  margin: 18px auto 0; width: max-content; max-width: calc(100% - 32px);
  display: flex; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow); animation: rise .8s .1s var(--ease) both;
}
.tab { position: relative; z-index: 1; padding: 11px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .35s var(--ease); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tab.active { color: #fff; }
.tab-emoji { font-size: 17px; transition: transform .5s var(--spring); }
.tab.active .tab-emoji { transform: scale(1.18) rotate(-8deg); }
.tab-indicator { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 8px 20px -6px rgba(255,111,125,.6); transition: transform .5s var(--spring), width .5s var(--spring); }
.tab-badge { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; background: var(--coral); color: #fff; transform: scale(0); transition: transform .35s var(--spring); }
.tab-badge.show { transform: scale(1); }
.tab.active .tab-badge { background: #fff; color: var(--coral); }

/* ---------- 网格 & 卡片 ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid.leaving .card { animation: leave .25s ease forwards; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; animation: pop .6s calc(var(--i) * 60ms) var(--ease) both;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card.selected { box-shadow: 0 0 0 2px var(--coral), var(--shadow); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(120,60,90,.4); }
  .card:hover .card-media img { transform: scale(1.08) rotate(-3deg); }
}
.card-media { position: relative; aspect-ratio: 1 / .82; display: grid; place-items: center; overflow: hidden; }
.card-media.beads { background: radial-gradient(120% 90% at 30% 20%, #fffaf5 0%, #f6ece3 70%, #efe2d6 100%); }
.card-media.stickers { background: radial-gradient(120% 90% at 30% 20%, #f7fbff 0%, #e9f0f8 70%, #e1e8f3 100%); }
.card-media img { width: 86%; height: 94%; object-fit: contain; transition: transform .6s var(--spring), opacity .18s ease; }
.card-media img.swap { opacity: 0; transform: scale(.85) rotate(-6deg); }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 4px 10px -4px rgba(255,111,125,.6); }
.tag.t-new { background: linear-gradient(135deg, #5fd3b5, #5aa9e6); }
.tag.t-limited { background: linear-gradient(135deg, #a58bff, #6c7cff); }
.tag.t-custom { background: linear-gradient(135deg, #f7b733, #fc8a4a); }
.qty-pill { position: absolute; top: 12px; right: 12px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: #fff; color: var(--coral); font-weight: 800; font-size: 13px; line-height: 26px; text-align: center; box-shadow: 0 4px 12px -4px rgba(0,0,0,.2); transform: scale(0); transition: transform .35s var(--spring); }
.qty-pill.show { transform: scale(1); }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 17px; }
.card-body .desc { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; border-radius: 999px; font-size: 12px; background: rgba(58,46,57,.05); color: #6d606b; transition: all .3s var(--ease); position: relative; }
.chip.on { background: #fff0f4; color: var(--coral); box-shadow: inset 0 0 0 1.5px var(--coral); font-weight: 600; }
.chip .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-left: 4px; vertical-align: 1px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--coral); font-weight: 800; font-size: 14px; }
.price b { font-size: 22px; display: inline-block; }
.price .cur { font-size: 14px; margin-right: 1px; }
.price b.bump { animation: bump .45s var(--spring); }

/* 步进器 */
.stepper { display: flex; align-items: center; height: 38px; border-radius: 19px; background: rgba(58,46,57,.05); transition: background .3s; }
.stepper .s-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 600; transition: transform .2s var(--spring), background .3s; }
.stepper .s-btn:active { transform: scale(.85); }
.stepper .plus { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(255,111,125,.7); }
.stepper .minus, .stepper .num { display: none; }
.stepper.has .minus, .stepper.has .num { display: grid; }
.stepper .num { min-width: 24px; text-align: center; font-weight: 700; place-items: center; }
.stepper.has { animation: grow .35s var(--spring); }

/* ---------- 结算栏 ---------- */
.cartbar {
  position: fixed; z-index: 30; left: 0; right: 0; margin: 0 auto; bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(720px, calc(100% - 24px));
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 12px; border-radius: 26px;
  background: rgba(46, 34, 48, .9); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -14px rgba(46,34,48,.6); animation: rise .8s .2s var(--ease) both;
}
.cart-btn { position: relative; width: 50px; height: 50px; border-radius: 18px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: transform .3s; }
.cart-btn.shake { animation: shake .5s var(--spring); }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--coral); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; border: 2px solid #2e2230; }
.cart-total { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cart-total small { font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-total strong { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.cart-total .cur { font-size: 15px; margin-right: 2px; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  padding: 0 24px; height: 50px; border-radius: 18px; font-weight: 700; font-size: 15px; color: #fff;
  background: var(--grad); background-size: 160% 160%; box-shadow: 0 10px 24px -10px rgba(255,111,125,.8);
  transition: transform .25s var(--spring), opacity .3s, background-position .6s; animation: shine 6s ease-in-out infinite;
}
.primary:active { transform: scale(.95); }
.primary:disabled { opacity: .45; cursor: not-allowed; }
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ghost { height: 50px; padding: 0 22px; border-radius: 18px; font-weight: 600; background: rgba(58,46,57,.06); }
.ghost.small { height: 32px; padding: 0 12px; border-radius: 12px; font-size: 13px; color: var(--muted); }

/* 飞入动画 */
.fly-x { position: fixed; z-index: 60; pointer-events: none; left: 0; top: 0; }
.fly-y { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(255,111,125,.6); }

/* ---------- 弹层 ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(40, 28, 40, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .35s var(--ease); }
.overlay.open { opacity: 1; }
.overlay[hidden] { display: none; }
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
  background: #fffaf7; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.35);
  transform: translateY(100%); transition: transform .5s var(--ease); padding-bottom: env(safe-area-inset-bottom);
}
.overlay.open .sheet { transform: translateY(0); }
@media (min-width: 720px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 28px; transform: translateY(40px) scale(.96); opacity: 0; transition: transform .5s var(--spring), opacity .35s; }
  .overlay.open .sheet { transform: none; opacity: 1; }
  .sheet-handle { display: none; }
}
.sheet-handle { width: 42px; height: 5px; border-radius: 3px; background: rgba(58,46,57,.15); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 8px; }
.sheet-head h2 { margin: 0; font-size: 19px; flex: 1; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(58,46,57,.06); font-size: 14px; color: var(--muted); }
.sheet-body { flex: 1; overflow-y: auto; padding: 4px 20px 12px; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.sheet-foot .cart-total strong { color: var(--coral); }
.sheet-foot .cart-total small { color: var(--muted); opacity: 1; }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); animation: slideIn .4s var(--ease) both; }
.cart-list li.removing { animation: slideOut .3s ease forwards; }
.cart-list .thumb-s { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.cart-list .thumb-s.beads { background: #fff0e8; }
.cart-list .thumb-s.stickers { background: #eef4ff; }
.cart-list .thumb-s img { width: 78%; height: 78%; object-fit: contain; }
.cart-list .info { flex: 1; min-width: 0; }
.cart-list .info b { display: block; font-size: 15px; }
.cart-list .info span { font-size: 12px; color: var(--muted); }
.cart-list .sub { font-weight: 800; color: var(--coral); min-width: 52px; text-align: right; }
.cart-list .stepper { height: 32px; }
.cart-list .stepper .s-btn { width: 32px; height: 32px; font-size: 17px; }
.cart-list li.empty { display: block; border: 0; }
.empty { text-align: center; padding: 34px 0 20px; color: var(--muted); }
.empty div { font-size: 46px; animation: bob 2.4s ease-in-out infinite; }

.form { display: grid; gap: 10px; margin-top: 16px; }
.form label { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 4px 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.form label:focus-within { box-shadow: inset 0 0 0 2px var(--coral); }
.form span { font-size: 13px; color: var(--muted); width: 64px; flex-shrink: 0; }
.form input, .form textarea { flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 15px; resize: none; min-width: 0; }

.result .sheet-body { padding-top: 8px; }
.result-img-wrap { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #fff; animation: pop .6s .15s var(--spring) both; }
.result-img-wrap img { display: block; width: 100%; height: auto; -webkit-touch-callout: default; user-select: auto; }
.result-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.actions { justify-content: center; }
.actions > * { flex: 1; max-width: 240px; }

/* ---------- 卡片：详情入口 / 方式切换 ---------- */
.card-media { cursor: pointer; }
.media-hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #6d606b; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 10px -6px rgba(0,0,0,.3); transition: transform .3s var(--spring); }
.media-hint b { color: #fff; background: var(--grad); border-radius: 6px; padding: 1px 5px; margin-right: 3px; }
@media (hover: hover) { .card:hover .media-hint { transform: translateY(-2px); } }
.chooser { display: flex; flex-direction: column; gap: 8px; }
.chooser:empty { display: none; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(58,46,57,.06); gap: 2px; }
.seg-btn { flex: 1; padding: 6px 4px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); transition: all .3s var(--ease); white-space: nowrap; }
.seg-btn.on { background: #fff; color: var(--coral); box-shadow: 0 3px 8px -4px rgba(120,60,90,.4); }
.spec-note { margin: -2px 0 0; font-size: 12px; color: var(--muted); }
.spec-note:empty { display: none; }

/* ---------- 商品详情 ---------- */
.sheet.detail { position: relative; max-width: 560px; }
.close-float { position: absolute; top: 12px; right: 12px; z-index: 6; background: rgba(255,255,255,.92); box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); }
.detail-body { display: grid; gap: 16px; padding: 18px 18px 8px; align-content: start; }
.gallery { min-width: 0; }
.stage-wrap { position: relative; }
.stage { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #fffaf5 0%, #f6ece3 70%, #efe2d6 100%); box-shadow: inset 0 0 0 1px var(--line); touch-action: pan-y; }
.sheet.detail.is-stickers .stage { background: radial-gradient(120% 90% at 30% 20%, #f7fbff 0%, #e9f0f8 70%, #e1e8f3 100%); }
.slide { position: absolute; inset: 0; display: grid; place-items: center; }
.slide > img { width: 86%; height: 86%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.slide.photo > img { position: relative; width: 100%; height: 100%; }
.slide .blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1); opacity: .9; }
.slide.in-r { animation: slideR .5s var(--ease) both; }
.slide.in-l { animation: slideL .5s var(--ease) both; }
@keyframes slideR { from { opacity: 0; transform: translateX(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideL { from { opacity: 0; transform: translateX(-40px) scale(.98); } to { opacity: 1; transform: none; } }
.nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 24px; line-height: 1; padding-bottom: 3px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); transition: transform .25s var(--spring), opacity .3s; }
.nav:active { transform: translateY(-50%) scale(.88); }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px 0; font-size: 13px; color: var(--muted); }
.slide-label { font-weight: 700; color: var(--ink); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 4px 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { position: relative; flex: 0 0 62px; height: 62px; border-radius: 14px; overflow: hidden; background: #f3ece7; box-shadow: inset 0 0 0 1px var(--line); opacity: .7; transition: all .3s var(--ease); scroll-snap-align: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--coral); transform: translateY(-2px); }
.thumb em { position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: 10px; font-weight: 800; background: rgba(255,255,255,.92); border-radius: 6px; padding: 0 4px; line-height: 15px; }
.info { min-width: 0; padding-bottom: 8px; }
.info-head h2 { margin: 8px 0 6px; font-size: 24px; }
.info-head .tag { position: static; display: inline-block; }
.d-desc { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
#dChoose .specs { margin-top: 8px; }
#dChoose .seg-btn { font-size: 13px; padding: 8px 6px; }
#dChoose .chip { font-size: 13px; padding: 7px 12px; }
.facts { margin: 14px 0 0; padding-left: 18px; color: #5a4a57; font-size: 14px; line-height: 1.65; }
.facts li::marker { color: var(--coral); }
.colors small { display: block; color: var(--muted); font-size: 12px; margin: 14px 0 6px; }
.colors[hidden] { display: none; }
.cdot { display: inline-flex; align-items: center; gap: 5px; margin: 0 12px 6px 0; font-size: 13px; font-weight: 700; }
.cdot i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset -2px -2px 3px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.08); }
.credit { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.credit[hidden] { display: none; }
.d-stepper .stepper { height: 46px; border-radius: 23px; }
.d-stepper .s-btn { width: 46px; height: 46px; font-size: 24px; }
.d-stepper .stepper .num { min-width: 30px; font-size: 17px; }
#dPrice.bump { animation: bump .45s var(--spring); display: inline-block; }
.sheet.detail .sheet-foot .cart-total strong { color: var(--coral); }
@media (min-width: 860px) {
  .sheet.detail { max-width: 1000px; }
  .detail-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; padding: 26px 30px 12px; }
  .info { padding-top: 6px; }
  .info-head h2 { font-size: 28px; }
}

/* ---------- 3D 查看器 ---------- */
.slide.is3d { display: block; }
.v3d { position: absolute; inset: 0; display: flex; flex-direction: column; }
.v3d-stage { position: relative; flex: 1; min-height: 0; perspective: 900px; perspective-origin: 50% 40%; cursor: grab; touch-action: none; display: grid; place-items: center; user-select: none; }
.v3d-stage.grabbing { cursor: grabbing; }
.v3d-scene { position: relative; width: 74%; aspect-ratio: 1 / 1; transform-style: preserve-3d; will-change: transform; margin-top: 2%; }
.v3d-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.v3d-layer.l1, .v3d-layer.l2 { filter: drop-shadow(0 4px 3px rgba(60,35,25,.28)); }
.v3d-floor { position: absolute; left: 50%; bottom: 8%; width: 58%; height: 8%; margin-left: -29%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,35,25,.38), rgba(60,35,25,0)); filter: blur(3px); pointer-events: none; }
.v3d-ui { display: flex; align-items: center; gap: 12px; padding: 4px 14px 12px; position: relative; z-index: 2; }
.v3d-ui label { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 12px; font-weight: 700; color: var(--muted); }
.v3d-ui input[type=range] { flex: 1; accent-color: var(--coral); min-width: 0; }
.v3d-reset { padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px -6px rgba(0,0,0,.35); }
.v3d-hint { position: absolute; top: 12px; left: 14px; right: 60px; margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); pointer-events: none; z-index: 2; }

/* ---------- 收货表单 ---------- */
.form-title { margin: 22px 0 8px; font-size: 15px; font-weight: 800; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.form label { min-width: 0; }
.form input, .form textarea { min-width: 0; width: 100%; }
.sheet-body { overflow-x: hidden; }
.row2 label span { width: auto; white-space: nowrap; }
.form-hint { margin: 10px 4px 4px; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 70; left: 50%; top: 24px; transform: translate(-50%, -20px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: rgba(46,34,48,.92); color: #fff; font-size: 14px; pointer-events: none; transition: all .4s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 动画关键帧 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes grow { from { transform: scale(.85); } to { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-10deg); } 60% { transform: scale(.95) rotate(6deg); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { to { opacity: 0; transform: translateX(30px); height: 0; padding: 0; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 移动端 ---------- */
@media (max-width: 600px) {
  .hero { padding: 24px 16px 4px; }
  .hero h1 { font-size: 20px; }
  .hero .brand p { font-size: 12px; }
  .logo { width: 46px; height: 46px; border-radius: 15px; padding: 8px; gap: 4px; }
  .brand { gap: 10px; }
  .lang-switch button, .lang-thumb { width: 44px; height: 30px; font-size: 12px; }
  .lang-switch[data-active="en"] .lang-thumb { transform: translateX(44px); }
  .price b { font-size: 18px; }
  .hero-tip { font-size: 12px; margin-top: 14px; }
  .tabs { width: calc(100% - 16px); max-width: 480px; }
  .tab { flex: 1 1 auto; justify-content: center; padding: 10px 4px; font-size: 13px; gap: 3px; }
  .tab-emoji { display: none; }
  .steps { gap: 14px; }
  .step { grid-template-columns: 1fr; }
  .banner span { font-size: 11px; }
  main { padding: 0 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 18px; }
  .card-body { padding: 10px 11px 12px; gap: 8px; }
  .card-body h3 { font-size: 15px; }
  .card-body .desc { font-size: 11.5px; }
  .chip { padding: 4px 8px; font-size: 11px; }
  .stepper { height: 32px; }
  .stepper .s-btn { width: 32px; height: 32px; font-size: 18px; }
  .stepper .num { min-width: 18px; font-size: 14px; }
  .tag { top: 8px; left: 8px; font-size: 10px; padding: 3px 8px; }
  .qty-pill { top: 8px; right: 8px; }
  .cartbar { gap: 10px; }
  .primary { padding: 0 18px; }
}
@media (max-width: 360px) {
  .card-foot { flex-wrap: wrap; gap: 6px; }
}

/* ---------- 真实图片卡片 ---------- */
.card-media.supplies { background: radial-gradient(120% 90% at 30% 20%, #f6fffb 0%, #e6f6ef 70%, #d9eee4 100%); }
.card-media.real img { width: 94%; height: 94%; border-radius: 12px; }
.card:hover .card-media.real img { transform: scale(1.04); }
.price .tbc { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: #b7a4c4; border-radius: 8px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.price.quote .cur { display: none; }
.price.quote b { font-size: 16px; }
.cart-list .thumb-s.supplies { background: #e9f9f3; }
.banner { grid-column: 1 / -1; position: relative; border-radius: 22px; overflow: hidden; height: 200px; box-shadow: var(--shadow); }
.banner { background: #f3ebe0; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner img.bg { object-fit: cover; filter: blur(22px) saturate(1.1); transform: scale(1.2); opacity: .85; }
.banner img.fg { object-fit: contain; }
.banner span { position: absolute; left: 12px; bottom: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); font-size: 12px; color: var(--ink); font-weight: 600; }
.steps-link { grid-column: 1 / -1; justify-self: center; padding: 8px 18px; border-radius: 999px; background: #fff; color: var(--coral); font-weight: 700; font-size: 13px; box-shadow: var(--shadow); transition: transform .3s var(--spring); }
.steps-link:hover { transform: translateY(-2px) scale(1.03); }

/* ---------- 3D 倾斜卡片 ---------- */
.tilt { position: absolute; inset: 0; display: grid; place-items: center; perspective: 900px; touch-action: none; cursor: grab; }
.tilt-card { position: relative; width: 78%; height: 78%; transform-style: preserve-3d; will-change: transform; display: grid; place-items: center; }
.tilt-card img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 50px -18px rgba(40,50,90,.45), 0 8px 18px -8px rgba(40,50,90,.3); user-select: none; -webkit-user-drag: none; }
.tilt-glare { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; mix-blend-mode: soft-light; }
.tilt .v3d-hint { top: 12px; }

/* ---------- 步骤 ---------- */
.grid.steps-mode { display: block; max-width: 860px; margin: 0 auto; }
.steps-title { text-align: center; font-size: 22px; margin: 4px 0 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: center; background: rgba(255,255,255,.85); border-radius: 26px; padding: 14px; box-shadow: var(--shadow); animation: rise .7s calc(var(--i) * 90ms) var(--ease) both; }
.step:nth-child(even) .step-img { order: 2; }
.step-img { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #fbf3ec; }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-no { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 6px 14px -4px rgba(255,111,125,.6); }
.step-txt small { color: var(--coral); font-weight: 700; letter-spacing: .04em; }
.step-txt h3 { margin: 2px 0 6px; font-size: 18px; }
.step-txt p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- 筛选 / 页脚 / 其他 ---------- */
.toolbar { max-width: 1180px; margin: 0 auto 14px; padding: 0 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.toolbar[hidden] { display: none; }
.toolbar input { flex: 1 1 200px; max-width: 280px; height: 38px; border-radius: 999px; border: 1px solid var(--line); padding: 0 16px; background: rgba(255,255,255,.85); font-size: 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fchip { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); transition: all .25s var(--ease); }
.fchip.on { background: var(--grad); color: #fff; border-color: transparent; }
.no-match { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.hint-li { list-style: none; background: #fff7e6; color: #b8741a; border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-hint.fee { margin-top: 2px; }
.result-contacts { text-align: center; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; margin-top: 8px; }
.result-contacts a, .foot-contacts a { color: var(--coral); font-weight: 700; text-decoration: none; }
.sheet-foot.actions { gap: 8px; flex-wrap: wrap; }
.foot { max-width: 1000px; margin: 40px auto 110px; padding: 0 20px; text-align: center; color: var(--muted); font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; margin-bottom: 14px; }
.foot-grid > div { background: rgba(255,255,255,.7); border-radius: 18px; padding: 14px 16px; }
.foot-grid b { color: var(--ink); }
.foot-grid p { margin: 4px 0 0; line-height: 1.55; }
.foot-contacts { display: flex; gap: 6px 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

.pager { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0 4px; }
.pg { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; background: rgba(255,255,255,.9); font-weight: 700; color: var(--muted); border: 1px solid var(--line); transition: all .25s var(--ease); }
.pg:hover:not(:disabled) { transform: translateY(-2px); }
.pg.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(255,111,125,.6); }
.pg:disabled { opacity: .4; cursor: default; }

.ship-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.ship-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--line); transition: all .25s var(--ease); }
.ship-opt.on { border-color: var(--coral); background: #fff4f2; box-shadow: 0 8px 18px -10px rgba(255,111,125,.6); }
.ship-opt .se { font-size: 24px; }
.ship-opt .st { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ship-opt small { color: var(--muted); font-size: 12px; }
.ship-opt .sf { font-weight: 800; color: var(--coral); }

.px { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.px-cv { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 26px 22px rgba(40,50,90,.38)); will-change: transform; }
.px .v3d-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.px .v3d-hint { top: 12px; }

.more { justify-self: start; padding: 6px 4px; font-size: 13px; font-weight: 700; color: var(--coral); }
.more[hidden], .form label[hidden] { display: none; }
.zip-note { margin: -4px 4px 0; font-size: 12px; color: #2fb58a; font-weight: 600; }
.row2.single { grid-template-columns: minmax(0, 1fr); }
.form label[hidden] { display: none !important; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.submit-status { text-align: center; font-size: 13px; font-weight: 700; border-radius: 12px; padding: 8px 12px; margin: 10px 0 0; }
.submit-status.ok { background: #e9f9f3; color: #1f8f6c; }
.submit-status.fail { background: #fff3e6; color: #b8741a; }

.tag.t-sold { background: #8d8791; }
.card.sold .card-media img { filter: grayscale(.7); opacity: .75; }
.card.sold .stepper { opacity: .45; }

.tag[hidden] { display: none !important; }

.cny { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.cart-total .cny { display: block; margin: 0; }
.price .cny:empty, .cart-total .cny:empty { display: none; }

.px-ph { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; filter: blur(2px); opacity: .85; }

/* 关闭动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
