/* ==========================================================================
   宝石商 · 场景 1 2景轻样张样式表
   严格遵守 ui-taste：
   - 画廊玻璃 2.0：10~14px 毛玻璃 + 58%~72% 深暖底 + 双层晶边 + 低频浮光
   - 现代无衬线字体，零细宋体、零黑粗描边
   - 每屏主按钮 ≤ 1 颗祖母绿/琉璃流光（轻盈边，无厚重底唇）
   - 成交卡：92% 不透明深酒红丝绒 + 古铜金边 + 斜向浮光（禁用透明玻璃）
   - 手机竖屏砍价抽屉 ≤ 32% 屏高；电脑横屏全宽延展 + 右侧 30% 独立谈价台
   ========================================================================== */

:root {
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Segoe UI", "PingFang SC", sans-serif;

  /* 画廊玻璃 2.0 令牌 */
  --glass-bg: rgba(24, 18, 13, 0.66);
  --glass-bg-dense: rgba(22, 16, 12, 0.84);
  --glass-border: rgba(255, 236, 206, 0.24);
  --glass-border-inner: rgba(255, 248, 234, 0.12);
  --glass-blur: blur(12px);
  --glass-blur-dense: blur(14px);

  /* 主调与琉璃绿流光 */
  --ink-main: #f9f2e4;
  --ink-soft: rgba(246, 233, 210, 0.78);
  --ink-dim: rgba(236, 220, 194, 0.56);
  --gold-accent: #e6be74;
  --gold-bright: #f7d996;
  --emerald-top: #38a981;
  --emerald-bot: #17694f;
  --emerald-glow: rgba(52, 194, 144, 0.38);
  --water-glow: rgba(88, 198, 245, 0.42);
  --danger-tint: rgba(234, 114, 96, 0.26);

  /* 布局尺寸 */
  --top-h: 54px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #140f0b;
  color: var(--ink-main);
  font-family: var(--font-sans);
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button, input {
  font-family: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #18120d;
}

/* ---------- 画廊玻璃 2.0 通用材质 ---------- */
.glass-panel {
  position: relative;
  background: linear-gradient(155deg, rgba(44, 32, 22, 0.72), var(--glass-bg));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-border-inner),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.34);
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 244, 220, 0.09) 0%, rgba(255, 244, 220, 0) 42%, rgba(255, 232, 184, 0.05) 100%);
  pointer-events: none;
}

.glass-chip {
  background: linear-gradient(180deg, rgba(50, 38, 28, 0.76), rgba(26, 19, 14, 0.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 238, 208, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.14);
}

/* ---------- 唯一流光主钮（轻盈边缘、无厚底唇） ---------- */
.btn-primary-glow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(154, 244, 206, 0.52);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(58, 178, 136, 0.92) 0%, rgba(24, 114, 86, 0.94) 100%);
  color: #f8fffb;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 44px;
  padding: 0 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 18px var(--emerald-glow),
    0 6px 16px rgba(8, 44, 32, 0.36);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn-primary-glow::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 14%;
  right: 14%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  pointer-events: none;
}

.btn-primary-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.24) 48%, transparent 72%);
  transform: translateX(-110%);
  animation: btnShimmer 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0%, 62% { transform: translateX(-115%); }
  100% { transform: translateX(125%); }
}

.btn-primary-glow:active {
  transform: scale(0.97);
  filter: brightness(1.06);
}

.btn-primary-glow:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.btn-secondary {
  border: 1px solid rgba(255, 238, 210, 0.24);
  border-radius: 999px;
  background: rgba(34, 26, 20, 0.72);
  color: var(--ink-main);
  font-weight: 500;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 248, 234, 0.12);
  transition: transform 0.14s ease, background 0.14s ease;
}

.btn-secondary:active {
  transform: scale(0.97);
  background: rgba(58, 44, 32, 0.84);
}

.btn-solid-mid {
  border: 1px solid rgba(238, 198, 128, 0.38);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(66, 51, 36, 0.9), rgba(40, 30, 22, 0.94));
  color: var(--gold-bright);
  font-weight: 600;
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 238, 198, 0.2);
  transition: transform 0.14s ease;
}

.btn-solid-mid:active {
  transform: scale(0.97);
}

/* ---------- 顶部 HUD ---------- */
.top-bar {
  position: fixed;
  top: calc(8px + var(--safe-top));
  left: 8px;
  right: 8px;
  height: var(--top-h);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 6px;
  z-index: 80;
  transition: opacity 0.22s ease;
}

body[data-phase="inspect"] .top-bar {
  opacity: 0;
  pointer-events: none;
}

.stall-switcher {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: rgba(12, 9, 6, 0.45);
  border: 1px solid rgba(255, 238, 210, 0.16);
  border-radius: 999px;
  padding: 3px;
  height: 38px;
  min-width: 152px;
  flex-shrink: 1;
}

.switcher-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.95), rgba(237, 222, 196, 0.92));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

body[data-stall="pickup"] .switcher-thumb {
  transform: translateX(100%);
}

.switcher-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
  padding: 0 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(246, 234, 214, 0.82);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.switcher-btn.is-active {
  color: #21160c;
}

.stall-badge {
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.72;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.stat-pill {
  height: 34px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-main);
  white-space: nowrap;
}

.money-pill {
  color: var(--gold-bright);
  padding: 0 9px;
}

.gem-icon {
  fill: #5bd4a8;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0;
  flex-shrink: 0;
}

.icon-btn:active {
  transform: scale(0.94);
}

/* 泼水 2 枚水滴胶囊 */
.water-pill {
  height: 34px;
  min-width: 44px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.water-pill.is-armed {
  border-color: rgba(124, 220, 255, 0.85);
  background: linear-gradient(180deg, rgba(36, 134, 182, 0.88), rgba(18, 82, 122, 0.9));
  box-shadow: 0 0 18px var(--water-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: waterPulse 1.6s ease-in-out infinite;
}

@keyframes waterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.water-drops {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.drop-icon {
  fill: #69d2ff;
  stroke: rgba(235, 250, 255, 0.72);
  stroke-width: 1.2;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.drop-icon.is-spent {
  fill: rgba(170, 198, 214, 0.22);
  stroke: rgba(200, 220, 232, 0.3);
  transform: scale(0.84);
}

/* ---------- 5 层舞台与 0.32s 推近 ---------- */
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a140f;
}

.stage-zoom-rig {
  position: absolute;
  inset: 0;
  transform-origin: 50% 65%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
  will-change: transform, filter;
}

body[data-phase="inspect"] .stage-zoom-rig {
  filter: blur(8px) brightness(0.62);
}

.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.24s ease-out;
}

.layer-l0 {
  z-index: 10;
  inset: -2.5%;
}

.layer-l0 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.layer-l1 {
  z-index: 15;
  inset: -2%;
}

.layer-l1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}

/* 核心舞台坐标系：竖屏 100%，横屏固定左 70%，砍价滑入零位移 */
.core-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

/* 交互夹层 A：摊主 */
.layer-vendor {
  z-index: 22;
}

.vendor-wrap {
  position: absolute;
  transform-origin: center bottom;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.vendor-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38));
}

/* 陈掌柜（公盘大棚：坐于雕花高案后沿之后偏右，左留气泡走廊，excited 撑桌） */
body[data-stall="pavilion"] .vendor-wrap {
  left: 66%;
  top: 19%;
  height: 59%;
  aspect-ratio: 720 / 960;
  transform: translateX(-50%);
}

/* 大敦（矿口皮卡：探身/坐于车斗右后方，整张脸完整露在驾驶室右上方，绝不蹭车顶或撞顶栏） */
body[data-stall="pickup"] .vendor-wrap {
  left: 82%;
  top: 11.5%;
  height: 55%;
  aspect-ratio: 720 / 960;
  transform: translateX(-50%);
}

/* 摊主三态动效：excited 上跳放大 4% 回弹 / ignore 后退压暗 8% */
.vendor-wrap.mood-excited {
  animation: vendorExcited 0.26s cubic-bezier(0.2, 1.35, 0.45, 1) forwards;
}

@keyframes vendorExcited {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  55%  { transform: translateX(-50%) translateY(-10px) scale(1.045); }
  100% { transform: translateX(-50%) translateY(-4px) scale(1.025); }
}

.vendor-wrap.mood-ignore {
  transform: translateX(-50%) translateY(5px) scale(0.955);
  filter: brightness(0.9) saturate(0.84);
}

/* 摊主说话气泡（画廊玻璃 2.0，严格避顶栏与人脸） */
.vendor-bubble {
  position: absolute;
  left: 10px;
  top: calc(var(--top-h) + var(--safe-top) + 18px);
  max-width: min(41%, 196px);
  border-radius: 16px 16px 16px 6px;
  padding: 8px 10px;
  z-index: 26;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body[data-stall="pickup"] .vendor-bubble {
  left: 10px;
  max-width: min(48%, 214px);
}

.vendor-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.bubble-text {
  font-size: 13px;
  line-height: 1.38;
  color: var(--ink-main);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bubble-text.is-thinking {
  letter-spacing: 0.25em;
  color: var(--gold-bright);
  animation: thinkDots 0.7s ease-in-out infinite alternate;
}

@keyframes thinkDots {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

/* L3 严格正 0° 空载具 */
.layer-l3 {
  z-index: 30;
}

/* 公盘雕花红木高案 + 青石板台面（精确覆盖 v=0.49..0.81） */
body[data-stall="pavilion"] .layer-l3 img {
  position: absolute;
  left: 0;
  top: 47.5%;
  width: 100%;
  height: 53.5%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 矿口皮卡车斗 + 放平尾板（精确承接 B1~B3 v=0.60, F1~F2 v=0.77） */
body[data-stall="pickup"] .layer-l3 img {
  position: absolute;
  left: 50%;
  top: 25%;
  width: 134%;
  height: 69%;
  transform: translateX(-50%);
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.42));
}

/* 矿口皮卡左尾板水桶可点击热区 */
.bucket-hotspot {
  position: absolute;
  left: 6%;
  top: 61%;
  width: 66px;
  height: 82px;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  z-index: 38;
  border-radius: 50%;
}

.bucket-ripple {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 34px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(132, 224, 255, 0.78);
  box-shadow: 0 0 12px rgba(102, 212, 255, 0.55);
  animation: bucketGlow 2.4s ease-in-out infinite;
}

@keyframes bucketGlow {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.12); }
}

.bucket-hotspot.is-spent .bucket-ripple {
  display: none;
}

/* 交互夹层 B：动态原石与三重接地 */
.layer-stones {
  z-index: 40;
  pointer-events: none;
}

.stone-slot {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.stone-cast-shadow {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(16, 10, 5, 0.85) 0%, rgba(16, 10, 5, 0.42) 55%, transparent 80%);
  filter: blur(5px);
  pointer-events: none;
}

.stone-ao-shadow {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(24, 13, 6, 0.98) 0%, rgba(24, 13, 6, 0.72) 56%, transparent 86%);
  filter: blur(2.2px);
  pointer-events: none;
}

.stone-body-wrap {
  position: absolute;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}

.stone-img {
  position: absolute;
  display: block;
  pointer-events: none;
}

/* 底边 10% 环境反色微染（按石头轮廓 mask 精准染色） */
.stone-bounce-tint {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: soft-light;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* 湿水光效与水花动画 */
.stone-splash-fx {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 118%;
  height: 118%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.stone-slot.is-splashing .stone-splash-fx {
  animation: splashBurst 0.56s cubic-bezier(0.16, 0.9, 0.3, 1) forwards;
}

@keyframes splashBurst {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.32);
    box-shadow: 0 0 0 3px rgba(132, 224, 255, 0.92), inset 0 0 22px rgba(178, 240, 255, 0.78);
  }
  65% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 10px rgba(132, 224, 255, 0.32), inset 0 0 8px rgba(178, 240, 255, 0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 18px rgba(132, 224, 255, 0);
  }
}

.stone-slot.is-wet .stone-body-wrap::after {
  content: "";
  position: absolute;
  inset: 6% 12% 22% 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(220, 246, 255, 0.24), transparent 58%);
  pointer-events: none;
}

/* 触控热区（严格 ≥ 52×52 px，由 placement.hitBox 给定） */
.stone-hitbox {
  position: absolute;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 16px;
}

.stone-hitbox:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

body.is-water-armed .stone-hitbox {
  cursor: crosshair;
}

body.is-water-armed .stone-slot:not(.is-wet):not(.is-sold) .stone-body-wrap {
  filter: drop-shadow(0 0 10px rgba(108, 214, 255, 0.55));
}

.stone-slot.is-active .stone-body-wrap {
  filter: drop-shadow(0 0 18px rgba(247, 214, 138, 0.72));
}

.stone-slot.is-dimmed {
  opacity: 0.46;
  filter: brightness(0.76);
}

/* 高 20px 深毛玻璃迷你底边价签（严禁压前排石） */
.stone-price-tag {
  position: absolute;
  height: 20px;
  min-width: 58px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(18, 13, 9, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 232, 192, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #f9ebd0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  white-space: nowrap;
}

.stone-clue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px rgba(247, 217, 150, 0.9);
  flex-shrink: 0;
}

.stone-wet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #67d6ff;
  box-shadow: 0 0 6px rgba(103, 214, 255, 0.95);
  flex-shrink: 0;
}

/* 买走后的真实物理空印（绝不留占位方框） */
.empty-mark-img {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0.86;
  pointer-events: none;
  mix-blend-mode: multiply;
}

body[data-stall="pavilion"] .empty-mark-img {
  opacity: 0.64;
  mix-blend-mode: screen;
  filter: brightness(0.88);
}

/* 桌面已拍筹码签落位区 */
.table-slap-zone {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  z-index: 48;
  pointer-events: none;
  max-width: 82%;
}

.slapped-chip-tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(114, 34, 36, 0.94), rgba(74, 18, 22, 0.96));
  border: 1px solid rgba(244, 206, 134, 0.76);
  color: #fff2d6;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(232, 182, 92, 0.32);
  animation: chipSlapLand 0.26s cubic-bezier(0.18, 1.38, 0.42, 1) forwards;
}

@keyframes chipSlapLand {
  0% { opacity: 0; transform: translateY(42px) scale(1.28) rotate(-6deg); }
  70% { opacity: 1; transform: translateY(-2px) scale(0.96) rotate(1.5deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-1deg); }
}

/* L4 轻前景与 L5 实时光效 */
.layer-l4 {
  z-index: 50;
}

.layer-l4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.layer-l5 {
  z-index: 55;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 轻提示条（避开左上摊主气泡，置于下方安全带） */
.toast-bar {
  position: fixed;
  left: 50%;
  bottom: calc(80px + var(--safe-bot));
  transform: translateX(-50%);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff5df;
  z-index: 95;
  white-space: nowrap;
  pointer-events: none;
}

body[data-phase="inspect"] .toast-bar {
  bottom: auto;
  top: calc(76px + var(--safe-top));
}

body[data-phase="bargain"] .toast-bar {
  bottom: calc(34dvh + 10px);
}

/* ---------- 逛摊底栏 ---------- */
.browse-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bot));
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  gap: 8px;
  z-index: 70;
}

.nav-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-main);
  padding: 0;
  flex-shrink: 0;
}

.browse-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px;
}

.stall-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.stall-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 240, 212, 0.34);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.stall-dots .dot.is-active {
  width: 22px;
  background: var(--gold-bright);
}

.stall-dots .dot.is-locked {
  width: 6px;
  height: 6px;
  background: rgba(255, 240, 212, 0.18);
  cursor: default;
}

.mini-ghost-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 194, 0.22);
  background: rgba(24, 18, 13, 0.56);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.mini-ghost-btn:active {
  background: rgba(56, 42, 30, 0.8);
}

/* ---------- 简版打灯看料覆层 ---------- */
.inspect-overlay {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(10px + var(--safe-top)) 12px calc(12px + var(--safe-bot));
  animation: fadeSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.inspect-top {
  height: 54px;
  border-radius: 16px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inspect-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inspect-skin {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-main);
}

.inspect-meta {
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--font-num);
}

.flip-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-bright);
  cursor: pointer;
}

.inspect-canvas-area {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.inspect-stone-stage {
  position: relative;
  width: min(82vw, 310px);
  aspect-ratio: 384 / 320;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inspect-stone-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: grab;
}

.inspect-stone-card[data-face="back"] img {
  transform: scaleX(-1);
  filter: brightness(0.86) contrast(1.08) saturate(0.9);
}

.inspect-stone-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.56));
  transition: transform 0.24s ease, filter 0.24s ease;
}

.inspect-hotspot-glow {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(132, 255, 198, 0.72) 0%, rgba(246, 214, 128, 0.36) 45%, transparent 72%);
  pointer-events: none;
  animation: clueSpark 0.8s ease-out infinite alternate;
}

@keyframes clueSpark {
  from { transform: translate(-50%, -50%) scale(0.86); opacity: 0.65; }
  to { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
}

.inspect-torch-beam {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 252, 224, 0.84) 0%, rgba(124, 245, 186, 0.44) 36%, rgba(80, 198, 146, 0.12) 64%, transparent 76%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.inspect-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.torch-btn {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-bright);
  cursor: pointer;
}

.torch-btn.is-on {
  border-color: rgba(136, 248, 198, 0.85);
  background: linear-gradient(180deg, rgba(46, 154, 114, 0.86), rgba(20, 88, 66, 0.92));
  color: #ffffff;
  box-shadow: 0 0 22px rgba(74, 226, 166, 0.55);
}

.inspect-bottom {
  border-radius: 18px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inspect-clues-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}

.clue-empty-note {
  font-size: 12px;
  color: var(--ink-dim);
}

.clue-pill-found {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(230, 190, 116, 0.18);
  border: 1px solid rgba(242, 206, 134, 0.52);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
}

.inspect-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}

/* ---------- 32% 极简「线索筹码拍桌 + 滑轨快砍」砍价抽屉 ---------- */
.bargain-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 82;
  background: linear-gradient(180deg, rgba(30, 22, 16, 0.88), var(--glass-bg-dense));
  backdrop-filter: var(--glass-blur-dense);
  -webkit-backdrop-filter: var(--glass-blur-dense);
  border-top: 1px solid rgba(255, 232, 194, 0.28);
  border-radius: 20px 20px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.16),
    0 -10px 30px rgba(0, 0, 0, 0.45);
  padding: 8px 12px calc(8px + var(--safe-bot));
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 32vh;
  max-height: 32dvh;
  animation: drawerUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes drawerUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.bargain-row {
  display: flex;
  align-items: center;
}

/* 第 1 行：3 颗轮次点 + 筹码胶囊 */
.bargain-row-top {
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
}

.round-meter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.round-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 238, 210, 0.22);
  border: 1px solid rgba(255, 238, 210, 0.34);
}

.round-dot.is-filled {
  background: var(--gold-bright);
  border-color: #fff2ce;
  box-shadow: 0 0 8px rgba(247, 217, 150, 0.65);
}

.round-label {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--ink-soft);
  margin-left: 2px;
}

.chips-tray {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.chips-tray::-webkit-scrollbar {
  display: none;
}

.clue-chip-btn {
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(242, 204, 132, 0.44);
  background: rgba(54, 38, 24, 0.72);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.clue-chip-btn.is-selected {
  background: linear-gradient(180deg, rgba(162, 52, 48, 0.92), rgba(112, 28, 30, 0.96));
  border-color: #ffd894;
  color: #fff5dc;
  box-shadow: 0 0 12px rgba(232, 174, 88, 0.44);
  transform: translateY(-1px);
}

.clue-chip-btn.is-used {
  opacity: 0.36;
  text-decoration: line-through;
  cursor: not-allowed;
}

.clue-blind-hint {
  font-size: 11px;
  color: rgba(244, 178, 152, 0.86);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px dashed rgba(244, 178, 152, 0.34);
  background: rgba(88, 34, 24, 0.34);
  white-space: nowrap;
}

/* 第 2 行：价格对照 + 三档快砍 + 滑轨 + 按需微调气泡 */
.bargain-row-price {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.price-ask-box {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.price-caption {
  font-size: 11px;
  color: var(--ink-dim);
}

.price-ask-val {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-main);
}

.quick-cuts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cut-chip {
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 206, 0.24);
  background: rgba(46, 35, 26, 0.72);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cut-chip.is-danger {
  border-color: rgba(238, 134, 114, 0.38);
  color: #f7c2b6;
}

.cut-chip.is-active {
  background: rgba(230, 190, 116, 0.24);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.price-offer-wrap {
  position: relative;
}

.price-offer-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  height: 30px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid rgba(114, 224, 182, 0.44);
  background: rgba(24, 72, 56, 0.52);
  cursor: pointer;
  white-space: nowrap;
}

.price-offer-val {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  color: #7df2c4;
}

.nudge-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  border-radius: 14px;
  z-index: 95;
  background: rgba(22, 16, 12, 0.94);
}

.nudge-btn {
  min-width: 44px;
  height: 34px;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 236, 206, 0.24);
  background: rgba(54, 42, 30, 0.82);
  color: var(--ink-main);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nudge-btn:active {
  background: rgba(86, 66, 44, 0.95);
}

/* 带阻尼刻度直觉滑轨（绝不画底价红线） */
.slider-wrap {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
}

.offer-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 232, 194, 0.22), rgba(74, 204, 156, 0.56));
  outline: none;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.offer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d9f6ea 52%, #3ca982 100%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(68, 212, 158, 0.46);
  cursor: pointer;
}

.offer-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d9f6ea 52%, #3ca982 100%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.slider-ticks {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}

.slider-ticks span {
  width: 1px;
  height: 11px;
  background: rgba(255, 238, 208, 0.24);
}

/* 第 3 行：极简 3 钮（全 ≥ 44px） */
.bargain-row-actions {
  display: grid;
  grid-template-columns: 0.78fr 1.15fr 1.32fr;
  gap: 8px;
}

.bargain-row-actions button {
  font-size: 13px;
  padding: 0 8px;
  white-space: nowrap;
}

/* ---------- 翻脸锁摊横条 ---------- */
.ignored-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-bot));
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 84;
}

.ignored-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ignored-copy strong {
  font-size: 14px;
  color: #ffcfc2;
}

.ignored-copy span {
  font-size: 12px;
  color: var(--ink-soft);
}

.ignored-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- 92% 不透明深酒红丝绒 + 古铜金边 + 斜向浮光典藏成交卡 ---------- */
.deal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 6, 4, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.deal-card {
  position: relative;
  width: min(90vw, 356px);
  border-radius: 24px;
  padding: 22px 20px 20px;
  /* 92% 不透明深酒红丝绒质感，禁用透明玻璃 */
  background:
    radial-gradient(ellipse at 50% 18%, rgba(124, 34, 42, 0.94) 0%, rgba(74, 16, 24, 0.94) 52%, rgba(44, 10, 16, 0.96) 100%);
  border: 2px solid #cfa058;
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 158, 0.34),
    inset 0 22px 44px rgba(255, 198, 122, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.68),
    0 0 32px rgba(207, 160, 88, 0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: dealPop 0.3s cubic-bezier(0.2, 1.25, 0.4, 1);
}

@keyframes dealPop {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.deal-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(122deg, transparent 28%, rgba(255, 226, 158, 0.2) 48%, transparent 68%);
  transform: translateX(-110%);
  animation: dealSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dealSweep {
  0%, 55% { transform: translateX(-115%); }
  100% { transform: translateX(120%); }
}

.deal-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(242, 206, 132, 0.72);
  border-style: solid;
  pointer-events: none;
}

.deal-corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.deal-corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.deal-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.deal-corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

.deal-header {
  text-align: center;
}

.deal-seal {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 206, 134, 0.65);
  background: rgba(164, 114, 48, 0.26);
  color: #f9db98;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.deal-title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff6e4;
}

.deal-stone-showcase {
  position: relative;
  width: 176px;
  height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-stone-halo {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 212, 136, 0.34), transparent 72%);
}

.deal-stone-showcase img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.56));
}

.deal-ledger {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(28, 6, 10, 0.52);
  border: 1px solid rgba(224, 178, 104, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.deal-label {
  font-size: 12px;
  color: rgba(245, 224, 192, 0.78);
}

.deal-price-val {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  color: #ffe39e;
}

.deal-saved {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 178, 134, 0.26);
  border: 1px solid rgba(114, 232, 188, 0.48);
  color: #9df5d4;
  font-size: 12px;
  font-weight: 700;
}

.deal-clues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.deal-collect-btn {
  width: 100%;
  height: 46px;
  font-size: 15px;
}

/* ---------- 极矮屏微调（360×640 保守稳控 ≤32%） ---------- */
@media (max-height: 680px) and (max-width: 600px) {
  :root {
    --top-h: 48px;
  }

  .stall-switcher {
    height: 36px;
    min-width: 144px;
  }

  .switcher-btn {
    height: 30px;
    font-size: 12px;
    padding: 0 7px;
  }

  .stat-pill {
    height: 32px;
    font-size: 12.5px;
    padding: 0 7px;
  }

  .water-pill, .icon-btn {
    height: 32px;
  }

  .browse-bar {
    height: 52px;
  }

  .bargain-panel {
    padding: 6px 10px 6px;
    gap: 5px;
    max-height: 32.5dvh;
  }

  .bargain-row-top {
    min-height: 26px;
  }

  .clue-chip-btn {
    height: 25px;
    font-size: 11px;
    padding: 0 8px;
  }

  .price-offer-btn {
    height: 27px;
  }

  .price-offer-val {
    font-size: 15px;
  }

  .slider-wrap {
    height: 22px;
  }

  .cut-chip {
    height: 24px;
    font-size: 10.5px;
    padding: 0 6px;
  }
}

/* ---------- 极窄屏微调（≤375px 宽保证顶栏 5 控件零溢出） ---------- */
@media (max-width: 375px) {
  .top-bar {
    left: 6px;
    right: 6px;
    padding: 4px 5px;
    gap: 4px;
  }

  .stall-switcher {
    min-width: 118px;
  }

  .stall-badge {
    display: none;
  }

  .switcher-btn {
    font-size: 11.5px;
    padding: 0 5px;
  }

  .hud-right {
    gap: 3px;
  }

  .water-pill {
    min-width: 36px;
    padding: 0 5px;
  }

  .water-drops {
    gap: 1px;
  }

  .drop-icon {
    width: 13px;
    height: 16px;
  }

  .stat-pill {
    font-size: 12px;
    padding: 0 6px;
    gap: 3px;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
  }
}

/* ---------- 电脑横屏（1280×720 等宽画幅）：全宽延展 + 右侧 30% 独立谈价台 ---------- */
@media (min-width: 900px) and (min-aspect-ratio: 115 / 100) {
  .top-bar {
    left: 16px;
    right: auto;
    width: min(67.5%, 860px);
    top: 14px;
  }

  .core-stage {
    width: 70%;
    left: 0;
  }

  /* 横屏下公盘红木长案全宽延展满整屏，绝不出现左右黑边或截断 */
  body[data-stall="pavilion"] .layer-l3 {
    width: 142.86%; /* 100 / 70，让高案铺满 100vw */
  }

  body[data-stall="pavilion"] .layer-l3 img {
    top: 47.5%;
    height: 55.5%;
    width: 100%;
    object-fit: fill;
  }

  /* 横屏下皮卡自然停在左 70% 主舞台正中，完整兜住 5 块原石，右侧完整露矿山远景 */
  body[data-stall="pickup"] .layer-l3 img {
    left: 50%;
    top: 24%;
    width: 112%;
    height: 70%;
    object-fit: fill;
  }

  body[data-stall="pickup"] .bucket-hotspot {
    left: 11%;
    top: 62%;
    width: 72px;
    height: 86px;
  }

  body[data-stall="pavilion"] .vendor-wrap {
    left: 56%;
    top: 15.5%;
    height: 67%;
  }

  body[data-stall="pickup"] .vendor-wrap {
    left: 78%;
    top: 12.5%;
    height: 57%;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
  }

  .vendor-bubble {
    left: 20px;
    top: 86px;
    max-width: 270px;
  }

  .browse-bar {
    left: 16px;
    right: auto;
    width: min(67.5%, 860px);
    bottom: 14px;
  }

  .toast-bar {
    left: 35%;
    bottom: 84px;
  }

  body[data-phase="bargain"] .toast-bar {
    bottom: 24px;
  }

  /* 右侧 30% 独立谈价台：滑入时主舞台零上挪、零位移 */
  .bargain-panel {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30%;
    min-width: 340px;
    max-height: none;
    height: 100%;
    border-top: 0;
    border-left: 1px solid rgba(255, 234, 196, 0.28);
    border-radius: 22px 0 0 22px;
    padding: 24px 20px;
    justify-content: space-between;
    gap: 18px;
    animation: drawerRight 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes drawerRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .bargain-row-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .chips-tray {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    width: 100%;
    gap: 8px;
  }

  .clue-chip-btn {
    height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  .bargain-row-price {
    gap: 14px;
    margin: auto 0;
  }

  .price-head {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .quick-cuts {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cut-chip {
    height: 36px;
    font-size: 12.5px;
  }

  .bargain-row-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .bargain-row-actions .btn-slap {
    grid-column: 1 / -1;
    order: -1;
    height: 50px;
    font-size: 15px;
  }

  .ignored-banner {
    left: 16px;
    right: auto;
    width: min(67.5%, 860px);
    bottom: 16px;
  }

  .inspect-overlay {
    padding: 18px 24px;
  }

  .inspect-top, .inspect-bottom {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }
}
