* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% 0%, #101a2b 0%, #06080c 55%, #04060a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #edf1f7;
}

.stage {
  display: flex;
  align-items: center;
  gap: 56px;
}

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  background: #0b0e14;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 8px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transform: translateZ(0); /* 让内部 fixed 元素相对手机框定位 */
}

.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #05070a;
  border-radius: 16px;
  z-index: 30;
  pointer-events: none;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 46px;
  padding-bottom: 60px;
  display: none;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view.on { display: block; }

/* 预览里 tabbar 相对手机框定位 */
.phone .tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.view .action-bar {
  position: absolute;
  bottom: 0;
}

.tips {
  width: 260px;
  font-size: 13px;
  line-height: 2;
  color: #59627a;
}
.tips-t {
  font-size: 15px;
  color: #8b96a8;
  margin-bottom: 10px;
  font-weight: 600;
}

/* 预览专用小修补 */
.view .mask { position: absolute; }
.view .sheet { position: absolute; }

/* 小程序 input 默认无边框透明底，浏览器需要重置 */
.view input {
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font: inherit;
  padding: 0;
  min-width: 0;
}
.view .qty-input {
  background: rgba(0, 0, 0, 0.25);
}

/* 浏览器 range 模拟小程序 slider */
.ct-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #1f2836;
  margin: 0 10px;
  outline: none;
}
.ct-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.ct-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.9);
}
.view .sym-list { max-height: 310px; overflow-y: auto; }
