:root {
  /* 单一主色体系：粉色为主色，次强调取主色深一档，不再有「粉+紫」双色渐变 */
  --pink: #ff5f9e;
  --pink-l: #ff87b7;
  --purple: #d63384;
  --purple-d: #b52a6b;
  --gold: #f0a63a;
  --bg: #f5f5f7;
  --card: #fff;
  --txt: #232329;
  --txt-2: #86868f;
  --line: #ececf0;
  --grad: #ff5f9e;          /* 原粉紫渐变 → 实色（遗留引用自动降级为纯色） */
  --grad-deep: #e63f7f;
  --shadow: 0 1px 2px rgba(17, 12, 29, .06);
  --shadow-sm: 0 1px 2px rgba(17, 12, 29, .05);
}

/* ---------- Commercial polish（商业化质感层） ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.phone { box-shadow: 0 0 0 10px #221c33, 0 34px 80px rgba(0, 0, 0, .55); }
.tabs { background: var(--grad-deep); }
.card, .box, .group-card, .vip-card, .panel-c {
  box-shadow: var(--shadow) !important;
  border: 1px solid rgba(17, 12, 29, .06);
}
.box:active, .group-card:active { transform: scale(.985); transition: transform .12s; }
.btn-put, .btn-get, .btn-pack, .btn-mini, .confirm-btn, .join {
  transition: transform .12s, box-shadow .2s, opacity .2s;
}
.btn-put:active, .btn-get:active, .btn-pack:active, .btn-mini:active,
.confirm-btn:active, .join:active { transform: scale(.96); opacity: .9; }
.confirm-btn, .join, .btn-pack { box-shadow: none; }   /* 去 AI 味：按钮不再带彩色发光 */
.scroll::-webkit-scrollbar { width: 3px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(17, 12, 29, .25); border-radius: 2px; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #17131f;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--txt);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* ---------- 手机外壳 ---------- */
.phone {
  width: 375px;
  height: 812px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 10px #241d31, 0 30px 60px rgba(0, 0, 0, .5);
  border-radius: 36px;
}
@media (max-width: 500px) {
  body { background: var(--bg); }
  .phone { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
}

/* ---------- Tab（图标+胶囊选中态） ---------- */
.tabs {
  flex: 0 0 62px;
  background: var(--grad-deep);
  display: flex;
  align-items: stretch;
  gap: 3px;
  padding: 7px 10px 9px;
}
.tabs .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 14px;
  color: rgba(255, 255, 255, .72);
  position: relative;
  cursor: pointer;
  transition: background .22s, color .22s, transform .22s;
}
.tabs .tab i { font-style: normal; font-size: 19px; line-height: 1; transition: transform .22s; }
.tabs .tab span { font-size: 10.5px; font-weight: 600; letter-spacing: .3px; white-space: nowrap; }
.tabs .tab:active { transform: scale(.94); }
.tabs .tab.on {
  background: rgba(255, 255, 255, .96);
  color: #d63384;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.tabs .tab .tab-dot {
  position: absolute;
  top: 5px; right: 12%;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: #ff3b5c; color: #fff;
  font-size: 9.5px; font-weight: 800; line-height: 16px;
  border-radius: 8px;
  border: 1.5px solid #fff;
  box-sizing: content-box;
}

/* ---------- 滚动区 ---------- */
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 20px; }
.scroll::-webkit-scrollbar { width: 0; }
.page { display: none; }
.page.on { display: block; }

/* ---------- 警方提示 ---------- */
.notice {
  margin: 10px 12px 0;
  background: #f4f6f9;
  border: 1px solid #dbe6ff;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #4a5a86;
  line-height: 1.5;
}
.notice .badge {
  flex: 0 0 auto;
  background: #2f6bff;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}

/* ---------- 首页轮播图 ---------- */
.swiper {
  margin: 12px;
  height: 132px;
  position: relative;
  overflow: hidden;
}
.swiper .slides {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
}
.slide {
  min-width: 100%;
  position: relative;
  padding: 20px 18px;
  color: #fff;
  cursor: pointer;
}
.slide h2 { margin: 0; font-size: 21px; letter-spacing: 1px;  }
.slide .sub { margin: 7px 0 0; font-size: 12.5px; opacity: .95; }
.slide .deco { position: absolute; font-size: 72px; right: 10px; top: -10px; opacity: .3; }
/* 轮播背景图片：图片铺满 */
.slide .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide h2, .slide .sub { position: relative; z-index: 2; }
.slide .deco { z-index: 2; }
.swiper .dots {
  position: absolute;
  bottom: 7px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.swiper .dots i {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .55);
  transition: .3s;
}
.swiper .dots i.on { width: 16px; background: #fff; }

/* ---------- 同城开关 / 城市筛选 ---------- */
.tg { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.tg input { opacity: 0; width: 0; height: 0; }
.tg i { position: absolute; inset: 0; background: #e3e0ea; border-radius: 13px; transition: .25s; }
.tg i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.tg input:checked + i { background: var(--pink); }
.tg input:checked + i::after { transform: translateX(20px); }
.city-panel { display: none; padding: 10px 2px 2px; }
.city-panel.on { display: block; }
/* 全国省市分步选择器：省列表 -> 市列表 */
.rg-view { width: 100%; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rg-all {
  border: none; border-radius: 12px; padding: 10px;
  background: #f4f4f7; color: var(--purple); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.rg-back {
  border: none; border-radius: 12px; padding: 10px;
  background: #f5f5f7; color: #6b5f80; font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: left; font-family: inherit;
}
.rg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rg-cell {
  border: 1px solid #eaebef; border-radius: 12px; padding: 9px 4px;
  background: #fff; color: var(--txt-1); font-size: 12.5px;
  cursor: pointer; font-family: inherit; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.rg-cell i { font-style: normal; font-size: 10px; color: #b9b9c0; }
.rg-cell.on { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 700; }
.rg-cell.on i { color: rgba(255,255,255,.8); }

/* ---------- 纸条图片：上传格 / 展示九宫格 / 放大层 ---------- */
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.img-grid .img-add {
  width: 64px; height: 64px; border-radius: 10px; border: 1.5px dashed #dcdde2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #b3a6c9; font-size: 22px; line-height: 1; cursor: pointer; background: #faf8fd;
}
.img-grid .img-add span { font-size: 10px; margin-top: 4px; }
.img-grid .img-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.img-grid .img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-grid .img-thumb .del {
  position: absolute; top: 0; right: 0; width: 18px; height: 18px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; line-height: 18px;
  text-align: center; border-radius: 0 10px 0 8px; cursor: pointer;
}
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.pgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; display: block; }
.lightbox {
  position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 94%; max-height: 88vh; border-radius: 8px; }

/* ---------- 重新定位按钮 ---------- */
.reloc {
  float: right; border: none; background: none; color: var(--pink);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0;
}

/* ---------- 用户登录卡片 ---------- */
.me-card {
  margin: 12px; padding: 12px 14px; border-radius: 12px;
  background: #fff;
  border: 1px solid #ffe3f0;
  display: flex; align-items: center; gap: 10px;
}
.me-card.me-in { background: #fff; border-color: #ececf0; }
.me-ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 22px; background: #ffeef5; }
.me-ava.me-gray { background: #f0ecf6; }
.me-ava img { width: 100%; height: 100%; object-fit: cover; }
.me-info { flex: 1; min-width: 0; }
.me-info b { font-size: 14px; display: block; }
.me-info span { font-size: 11px; color: #9a9aa4; display: block; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-btn { border: none; border-radius: 18px; padding: 8px 14px; font-size: 12px;
  font-weight: 700; cursor: pointer; flex: none; background: #f0ecf6; color: #86868f; }
.me-btn.wx { background: #07c160; color: #fff; }

/* ---------- 纸条留言 ---------- */
.msg-btn {
  border: none; border-radius: 14px; padding: 6px 12px; font-size: 11.5px;
  background: #f4f4f7; color: #8b5cf6; font-weight: 700; cursor: pointer; font-family: inherit;
}
.msg-list { max-height: 260px; overflow-y: auto; margin: 4px 0 12px; }
.msg-item { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #f0e6f6; }
.msg-item .ma { width: 30px; height: 30px; border-radius: 50%; flex: none; overflow: hidden;
  background: #ffeef5; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.msg-item .ma img { width: 100%; height: 100%; object-fit: cover; }
.msg-item .mb { flex: 1; min-width: 0; }
.msg-item .mb b { font-size: 12.5px; }
.msg-item .mb span { font-size: 10.5px; color: #b3a6c9; margin-left: 6px; }
.msg-item .mb p { margin: 3px 0 0; font-size: 13px; word-break: break-all; }
.msg-empty { text-align: center; color: #b3a6c9; font-size: 12.5px; padding: 22px 0; }
.msg-input-row { display: flex; gap: 8px; }
.msg-input-row input { flex: 1; padding: 11px 13px; border: 1px solid #eaebef; border-radius: 20px; font-size: 13px; outline: none; }
.msg-input-row button { border: none; border-radius: 20px; padding: 0 20px; background: var(--grad);
  color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }

/* ---------- 区块标题 ---------- */
.sec-title {
  margin: 18px 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #3a2c4d;
}
.sec-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--grad);
}
.sec-title small { font-size: 11px; font-weight: 400; color: var(--txt-2); }

/* ---------- 盲盒卡片 ---------- */
.boxes { padding: 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.box {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(17, 12, 29, .1);
}
.box .box-head {
  background: #eef3fb;
  padding: 12px 8px 10px;
  text-align: center;
}
/* 盒子封面图：铺满头部，文字压在半透明渐变上保证可读 */
.box-head { position: relative; }
.box-head .box-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.box-head.has-img { padding-top: 56px; }
.box-head.has-img::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.82) 78%); }
.box-head.has-img .emoji, .box-head.has-img .t1, .box-head.has-img .t2 { position: relative; z-index: 2; }
.box-head.has-img .emoji { display: none; }
.box.girl .box-head { background: #fdf0f5; }
.box .box-head .emoji { font-size: 40px; line-height: 1;  }
.box .box-head .t1 { margin-top: 6px; font-size: 13px; font-weight: 800; color: #4a3a63; }
.box .box-head .t2 { font-size: 10.5px; color: #9a90ad; margin-top: 2px; }
.box .box-body { padding: 10px 8px 12px; }
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 4px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 7px;
  cursor: pointer;
  font-family: inherit;
}
.btn-put { background: var(--pink); color: #fff; }
.btn-get { background: #fff; color: var(--pink); border: 1.5px solid #ffb9d4; }
.btn-pack { background: #d63384; color: #fff; font-size: 12.5px; }
.btn:active { transform: scale(.96); }
.pack-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn-mini { background: #f0a63a; color: #7a4a00; }

/* ---------- 我的纸条 ---------- */
.subtabs {
  display: flex; gap: 4px; margin: 12px 12px 0; padding: 4px;
  background: #f4f4f7; border-radius: 14px;
}
.subtabs .st {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 0;
  font-size: 12.5px;
  border-radius: 10px;
  background: transparent;
  color: #8a8a94;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.subtabs .st .cnt {
  font-size: 10px; font-weight: 800;
  background: rgba(17, 12, 29, .14); color: #d63384;
  padding: 1px 7px; border-radius: 9px;
}
.subtabs .st.on {
  background: var(--pink);
  color: #fff; font-weight: 700;
  
}
.subtabs .st.on .cnt { background: rgba(255, 255, 255, .25); color: #fff; }
.msg-tip {
  margin: 12px;
  background: #fff8e8;
  border: 1px solid #ffe4a8;
  color: #a9761b;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 10px;
}
.note-item {
  margin: 10px 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 3px 12px rgba(17, 12, 29, .08);
}
.note-item .r1 { display: flex; align-items: center; gap: 8px; }
.note-item .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 40px; }
.note-item .tag { font-size: 10px; background: #f4f4f7; color: var(--purple); padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.note-item .meta { font-size: 12px; color: var(--txt-2); margin-top: 8px; line-height: 1.6; }
.note-item .contact { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; background: #fafafb; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; color: #4a3a63; }
.note-item .contact .copy { background: var(--grad); color: #fff; border: none; border-radius: 14px; padding: 5px 12px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.empty { text-align: center; padding: 60px 0; color: var(--txt-2); font-size: 13px; }
.empty .e { font-size: 52px; display: block; margin-bottom: 12px; opacity: .6; }

/* ---------- 红娘 / 搭子群 ---------- */
.vip-card {
  margin: 12px;
  border-radius: 12px;
  padding: 18px;
  background: var(--pink);
  color: #fff;
  box-shadow: none;
}
.vip-card h3 { margin: 0 0 4px; font-size: 19px; }
.vip-card .price { font-size: 30px; font-weight: 800; margin: 10px 0; }
.vip-list { margin: 12px; background: #fff; border-radius: 12px; padding: 6px 14px; }
.vip-list li { font-size: 13px; color: #5c5170; padding: 9px 0; border-bottom: 1px solid var(--line); list-style: none; }
.vip-list li:last-child { border-bottom: none; }

.group-card {
  margin: 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(17, 12, 29, .1);
}
.group-card .gh { display: flex; gap: 12px; padding: 14px; }
.group-card .gicon { width: 52px; height: 52px; border-radius: 14px; background: #fdf0f5; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: 0 0 52px; }
.group-card h4 { margin: 0 0 4px; font-size: 15px; }
.group-card .intro { font-size: 11.5px; color: var(--txt-2); line-height: 1.5; }
.members { display: flex; padding: 0 14px 10px; gap: 6px; align-items: center; }
.members .m { width: 30px; height: 30px; border-radius: 50%; background: #f3f3f6; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.members .more { font-size: 11px; color: var(--txt-2); margin-left: 4px; }
.gfoot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); }
.gfoot .pr { color: var(--pink); font-weight: 800; font-size: 17px; }
.gfoot .pr s { color: var(--txt-2); font-size: 11px; font-weight: 400; margin-left: 4px; }
.gfoot .join { background: var(--grad); color: #fff; border: none; border-radius: 18px; padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* 滚动成交条（多条时上下翻动轮播） */
.ticker { margin: 12px; background: rgba(255, 255, 255, .75); border-radius: 12px; padding: 0 12px; font-size: 11.5px; color: #7a6a90; height: 32px; overflow: hidden; position: relative; }
.ticker .tk-list { transition: transform .45s ease; will-change: transform; }
.ticker .tk { height: 32px; display: flex; align-items: center; text-align: left; line-height: 1.25; }

/* ---------- 客服悬浮按钮 ---------- */
.kf-fab {
  position: absolute; right: 12px; bottom: 112px; z-index: 20;   /* 112px：初始视图避开「换一批」按钮行 */
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 2px 8px rgba(17, 12, 29, .28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; user-select: none;
}
.kf-fab .kf-ico { font-size: 17px; line-height: 1; }
.kf-fab .kf-txt { font-size: 8.5px; margin-top: 2px; letter-spacing: 2px; margin-left: 2px; }
.kf-fab:active { transform: scale(.9); }
.kf-fab.custom { background: none; box-shadow: none; }   /* 自定义图标态：图片铺满整个圆钮 */
.kf-fab.custom .kf-ico img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }
.kf-fab.custom .kf-txt { display: none; }
#kfQrBox img { width: 220px; height: 220px; object-fit: contain; border: 1px solid #eaebef; border-radius: 12px; background: #fff; }

/* ---------- 弹层 ---------- */
.mask { position: absolute; inset: 0; background: rgba(30, 20, 45, .55); display: none; z-index: 40; }
.mask.on { display: block; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 18px 16px 22px;
  z-index: 41;
  display: none;
  animation: up .25s ease;
}
.sheet.on { display: block; }
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet h3 { margin: 0 0 12px; font-size: 17px; text-align: center; }
.sheet .close { position: absolute; right: 14px; top: 14px; font-size: 20px; color: var(--txt-2); cursor: pointer; line-height: 1; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--txt-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #eaebef;
  background: #fafafb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--txt);
  font-family: inherit;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 抽取确认 */
.draw-info { text-align: center; padding: 6px 0 14px; }
.draw-info .big { font-size: 20px; font-weight: 800; }
.draw-info .unit { font-size: 13px; color: var(--txt-2); margin-top: 6px; }
.draw-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.draw-line .rv { color: var(--purple); font-weight: 700; }
.confirm-btn { width: 100%; border: none; border-radius: 24px; padding: 13px; font-size: 15px; font-weight: 800; color: #fff; background: var(--grad); cursor: pointer; margin-top: 16px; font-family: inherit; }

/* 用户须知 */
.know-body { max-height: 320px; overflow-y: auto; font-size: 12.5px; line-height: 1.9; color: #5c5170; background: #fafafb; border-radius: 12px; padding: 12px 14px; }
.know-body .hl { color: var(--pink); font-weight: 700; text-align: center; display: block; margin: 6px 0; }
.agree { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--txt-2); margin: 14px 0 4px; }
.agree input { width: 16px; height: 16px; accent-color: var(--pink); }

/* ---------- 收银台 ---------- */
.cashier { position: absolute; inset: 0; background: #f2f2f7; z-index: 60; display: none; flex-direction: column; }
.cashier.on { display: flex; }
.cashier .ch-top { background: #ededf2; padding: 40px 0 18px; text-align: center; font-size: 16px; color: #333; position: relative; border-bottom: 1px solid #e0e0e5; }
.cashier .ch-top .bk { position: absolute; left: 14px; top: 42px; color: #576b95; font-size: 14px; cursor: pointer; }
.cashier .ch-body { text-align: center; padding: 26px 0 10px; }
.cashier .merchant { font-size: 14px; color: #888; }
.cashier .amt { font-size: 34px; font-weight: 700; margin-top: 10px; }
.cashier .pwd-tip { font-size: 13px; color: #999; margin-top: 26px; }
.pwd-box { display: flex; margin: 14px 22px 0; border: 1px solid #d5d5da; border-radius: 6px; overflow: hidden; background: #fff; }
.pwd-box .p { flex: 1; height: 46px; border-right: 1px solid #d5d5da; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.pwd-box .p:last-child { border-right: none; }
.keys { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); background: #d1d4db; gap: 1px; padding: 1px 0 0; }
.keys .k { background: #fff; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 21px; cursor: pointer; }
.keys .k:active { background: #e5e5ea; }
.keys .k.fn { background: #e9e9ee; font-size: 15px; }

/* ---------- 抽到结果 ---------- */
.result { position: absolute; inset: 0; background: rgba(40, 25, 60, .72); z-index: 70; display: none; align-items: center; justify-content: center; padding: 22px; }
.result.on { display: flex; }
.result .card {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 18px;
  text-align: center;
  animation: pop .22s ease;
  max-height: 92%;
  overflow-y: auto;
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.result .yay { font-size: 13px; color: var(--pink); }
.result h3 { margin: 4px 0 2px; font-size: 22px; }
.result .sub { font-size: 12px; color: var(--txt-2); }
.result .tagline { display: inline-block; margin: 12px 0 6px; background: var(--grad); color: #fff; font-size: 11.5px; padding: 4px 10px; border-radius: 8px; font-weight: 700; }
.result .who { font-size: 15px; font-weight: 700; line-height: 1.7; }
.result .ct { margin: 12px 0 6px; display: flex; align-items: center; justify-content: space-between; background: #f7f7f9; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.result .ct .copy { background: var(--grad); color: #fff; border: none; border-radius: 14px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.result .disclaimer { font-size: 10.5px; color: #a0a0aa; line-height: 1.7; margin-top: 12px; text-align: left; }
.result .actions { display: flex; gap: 10px; margin-top: 14px; }
.result .actions button { flex: 1; border: none; border-radius: 22px; padding: 11px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.result .actions .b1 { background: #f4f4f7; color: var(--purple); }
.result .actions .b2 { background: var(--grad); color: #fff; }
.multi-list { max-height: 240px; overflow-y: auto; margin-top: 10px; }
.multi-list .mi { background: #fafafb; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: rgba(30, 20, 45, .88);
  color: #fff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 20px;
  z-index: 99;
  display: none;
  max-width: 80%;
  text-align: center;
}
.toast.on { display: block; }

/* ---------- 纸条广场 ---------- */
#plazaList { margin: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.plaza-card {
  background: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 12, 29, .06);
}
/* 按性别区分卡片底色：男生蓝、女生粉（与头像 g1/g2 渐变同色系） */
.plaza-card.g1 { background: #f2f6fd; border-color: rgba(91, 141, 239, .16); }
.plaza-card.g2 { background: #fdf2f7; border-color: rgba(255, 107, 157, .16); }
.pz-head { display: flex; align-items: center; gap: 10px; }
.pz-ava {
  width: 42px; height: 42px; border-radius: 50%;
  flex: 0 0 42px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 700;
}
.pz-ava img { width: 100%; height: 100%; object-fit: cover; }
.pz-ava.g1 { background: #5b8def; }
.pz-ava.g2 { background: #ff6b9d; }
.pz-who { min-width: 0; flex: 1; }   /* flex:1 让举报按钮被顶到最右端 */
.pz-who b { font-size: 14.5px; color: #3d3350; display: flex; align-items: center; gap: 5px; }
.pz-sex {
  font-style: normal; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 8px; color: #fff;
}
.pz-sex.m { background: #5b8def; }
.pz-sex.f { background: #ff6b9d; }
.pz-who span { display: block; font-size: 11px; color: #9a9aa4; margin-top: 3px; }
.pz-sign {
  margin-top: 9px; font-size: 13px; color: #5a5168; line-height: 1.6;
  background: #fafafb; border-radius: 9px; padding: 8px 10px;
}
.pz-foot {
  margin-top: 10px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.pz-ct { font-size: 12px; color: #9a9aa4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-btn {
  flex: 0 0 auto; border: none; cursor: pointer;
  background: var(--pink);
  color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 16px;
  box-shadow: none;
}
.pz-btn:active { transform: scale(.96); }

.pz-btn.mine { background: #e9eaee; color: #8a8a94; box-shadow: none; }
.pz-btn.owned { background: #2eb872; }

.plaza-title { display: flex; align-items: center; justify-content: flex-start; }   /* space-between 会把 ::before 竖条当子项均分，标题被挤到中间 */
.plaza-shuffle {
  flex: 0 0 auto; cursor: pointer; user-select: none; margin-left: auto;
  font-size: 11.5px; font-weight: 700; color: #9a9aa4;
  background: #f6f2fb; border: 1px solid #e5e6ea;
  padding: 5px 12px; border-radius: 14px;
}
.plaza-shuffle:active { transform: scale(.95); }


/* ---------- 首页质感优化 ---------- */
.box-head.has-img { overflow: hidden; }
.box-hot {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: #fff; border: 1px solid rgba(17, 12, 29, .06);
  color: #ff5f9e; font-size: 10px; font-weight: 800;
  padding: 3px 9px; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(17, 12, 29, .18);
}
.home-disclaimer {
  margin: 18px 12px 14px; padding-top: 11px;
  border-top: 1px dashed #e5e6ea;
  font-size: 11px; color: #9a9aa4; line-height: 1.8; text-align: center;
}


/* ---------- 账号密码登录 ---------- */
.me-btns { display: flex; flex-direction: column; gap: 6px; }
.me-btn.acc { background: #fff; color: #d63384; border: 1px solid #e5e6ea; margin-right: 0; }
.acc-ava {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 2px auto 10px;
  border: 1.5px dashed #dcdde2; border-radius: 50%;
  background: #fafafb; cursor: pointer; overflow: hidden; position: relative;
}
.acc-ava img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.acc-ava span { font-size: 22px; color: #c4c4cc; line-height: 1; }
.acc-switch { text-align: center; font-size: 12px; color: #9a9aa4; margin-top: 10px; cursor: pointer; }
.acc-switch b { color: #ff5f9e; }

/* ---------- 红娘中心（分销裂变） ---------- */
.mm-entry { display:none; align-items:center; justify-content:space-between; margin:10px 12px 6px; padding:12px 14px; border-radius:12px; background:#fff5f8; border:1px solid #ffd0e0; cursor:pointer; }
.mm-entry .mm-e-l { display:flex; flex-direction:column; gap:3px; font-size:13px; color:#e0447c; }
.mm-entry .mm-e-l span { font-size:11px; color:#b3799b; font-weight:400; }
.mm-entry .arrow, .mm-banner .arrow { font-style:normal; font-size:22px; color:#e08cb0; font-weight:300; }
.mm-banner { position:relative; display:flex; align-items:center; justify-content:space-between; margin:12px; padding:14px 16px; border-radius:12px; background:#d63384; color:#fff; cursor:pointer; overflow:hidden; }
.mm-banner b { font-size:14.5px; display:block; margin-bottom:3px; }
.mm-banner span { font-size:11.5px; opacity:.92; }
.mm-banner em { font-style:normal; font-weight:800; color:#ffe066; }
.mm-stats { display:flex; gap:8px; margin:12px 0; }
.mm-stat { flex:1; text-align:center; padding:12px 4px; border-radius:12px; background:#f7f7f9; }
.mm-stat b { display:block; font-size:17px; color:#5c4a7d; }
.mm-stat.pink { background:#fff0f5; }
.mm-stat.pink b { color:#ff5f9e; }
.mm-stat span { font-size:10.5px; color:#9a9aa4; }
.mm-qrcode-box { text-align:center; padding:10px 0 4px; }
.mm-link { font-size:11px; color:#8a8a94; word-break:break-all; margin:8px 12px; padding:8px 10px; background:#f7f7f9; border-radius:8px; }
.mm-copy { border:none; background:var(--pink); color:#fff; font-size:13px; font-weight:600; padding:10px 26px; border-radius:20px; cursor:pointer; }
.mm-sec-title { font-size:13px; font-weight:700; color:#5c4a7d; margin:14px 0 8px; text-align:left; }
.mm-list { max-height:180px; overflow-y:auto; }
.mm-item { display:flex; align-items:center; justify-content:space-between; padding:9px 2px; border-bottom:1px dashed #eaebef; font-size:12.5px; }
.mm-item b { color:#ff5f9e; display:block; }
.mm-item span { font-size:10.5px; color:#9a9aa4; }
.mm-item em { font-style:normal; font-size:11px; }

/* ---------- 举报纸条（P0 合规） ---------- */
.pz-report { background:none; border:none; font-size:14px; opacity:.45; cursor:pointer; padding:2px 4px; flex-shrink:0; margin-left:auto; display:flex; flex-direction:column; align-items:center; gap:0; line-height:1; }
.pz-report .pz-rp-txt { font-size:9.5px; color:#9a9aa4; margin-top:1px; letter-spacing:.5px; }
.pz-report:active { opacity:1; transform:scale(1.08); }
.pz-report:active .pz-rp-txt { color:#f43b5c; }
.report-link { text-align:center; font-size:11.5px; color:#c2557a; padding:10px 0 4px; cursor:pointer; }
.report-link:active { color:#f43b5c; }
.report-reasons { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:14px; }
.report-reasons .rr { font-size:12.5px; color:#7a6a90; background:#f7f7f9; border:1.5px solid transparent; padding:8px 14px; border-radius:18px; cursor:pointer; }
.report-reasons .rr.on { color:#f43b5c; background:#fff0f3; border-color:#f43b5c; font-weight:600; }

/* ---------- 手机号实名验证 ---------- */
.me-phone { margin:8px 12px 0; padding:9px 12px; border-radius:10px; background:#f7f7f9; font-size:11.5px; color:#8a8a94; }
.me-phone b { color:#ff5f9e; cursor:pointer; }
.ph-sendbtn { border:none; background:#fff0f5; color:#ff5f9e; font-size:12px; font-weight:600; padding:11px 14px; border-radius:10px; cursor:pointer; white-space:nowrap; }
.ph-sendbtn:disabled { color:#c2c2ca; background:#f3eef9; }

/* ---------- 分享海报 ---------- */
.mm-poster-btn { margin-top:8px; background:#fff; color:#ff5f9e; border:1.5px solid #ffc9dd; }
.poster-box { margin-top:6px; text-align:center; }
.poster-box img { width:100%; max-width:320px; border-radius:14px; box-shadow:0 6px 22px rgba(17,12,29,.22); display:inline-block; }

/* ---------- 话题广场 ---------- */
.topic-composer { margin:12px; padding:12px; background:#fff; border-radius:12px; box-shadow:0 3px 14px rgba(17,12,29,.08); }
.topic-composer textarea { width:100%; min-height:74px; border:none; resize:none; font-size:13.5px; line-height:1.7; color:#3d2b4f; font-family:inherit; outline:none; }
.topic-composer-foot { display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.topic-composer-foot span { font-size:11px; color:#c2c2ca; }
.topic-card { margin:0 12px 12px; padding:14px; background:#fff; border-radius:12px; box-shadow:0 3px 14px rgba(17,12,29,.08); animation:fadeUp .4s both; }
.tc-head { display:flex; align-items:center; gap:10px; }
.tc-head img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.tc-ava { width:40px; height:40px; border-radius:50%; background:#ffe6f1; display:flex; align-items:center; justify-content:center; font-size:20px; flex:none; }
.tc-info { flex:1; min-width:0; }
.tc-info b { font-size:13.5px; color:#3d2b4f; display:block; }
.tc-info span { font-size:11px; color:#9a9aa4; }
.tc-del { border:none; background:#fff0f5; color:#e0447f; font-size:11px; padding:5px 10px; border-radius:12px; cursor:pointer; }
.tc-content { font-size:13.5px; line-height:1.8; color:#4a3b5c; margin:10px 0 8px; word-break:break-word; white-space:pre-wrap; }
.tc-foot { display:flex; align-items:center; }
.tc-like { border:1px solid #ffd6e5; background:#fff; color:#8a8a94; font-size:12px; padding:6px 14px; border-radius:16px; cursor:pointer; transition:all .2s; }
.tc-like.on { background:#fff0f5; color:#ff5f9e; border-color:#ff9fc3; }

/* ---------- 话题评论楼层 ---------- */
.tc-cbtn { border:none; background:#f7f7f9; color:#8a8a94; font-size:12px; padding:6px 14px; border-radius:16px; cursor:pointer; margin-left:8px; }
.tc-comments { margin-top:10px; border-top:1px solid #f3eef9; padding-top:8px; }
.tcm-item { display:flex; gap:8px; padding:7px 0; }
.tcm-item img { width:26px; height:26px; border-radius:50%; object-fit:cover; flex:none; }
.tcm-body { flex:1; min-width:0; }
.tcm-body b { font-size:12px; color:#3d2b4f; }
.tcm-body b em { font-style:normal; color:#ff5f9e; font-size:10px; }
.tcm-text { font-size:12.5px; line-height:1.7; color:#4a3b5c; word-break:break-word; }
.tcm-time { font-size:10.5px; color:#c2c2ca; }
.tcm-time a { color:#e0447f; text-decoration:none; }
.tcm-inputrow { display:flex; gap:8px; margin-top:6px; }
.tcm-inputrow input { flex:1; border:1px solid #eaebef; border-radius:14px; padding:8px 12px; font-size:12.5px; outline:none; color:#3d2b4f; }
.tcm-inputrow button { border:none; background:var(--pink); color:#fff; font-size:12px; font-weight:600; padding:8px 16px; border-radius:14px; cursor:pointer; }

/* ---------- 消息通知中心 ---------- */
.notif-item { display:flex; gap:10px; padding:11px 0; border-bottom:1px solid #f7f7f9; }
.notif-item:last-child { border-bottom:none; }
.notif-item.un .nf-body b { color:#ff5f9e; }
.nf-icon { font-size:22px; width:34px; text-align:center; flex:none; }
.nf-body { flex:1; min-width:0; }
.nf-body b { font-size:13px; color:#3d2b4f; display:flex; align-items:center; gap:6px; }
.nf-body b em { font-style:normal; background:#ff5f9e; color:#fff; font-size:9px; padding:1px 5px; border-radius:7px; font-weight:700; }
.nf-text { font-size:12px; color:#8a8a94; margin:3px 0; line-height:1.6; word-break:break-word; }
.nf-time { font-size:10.5px; color:#c2c2ca; }
.tab-dot { position:absolute; top:4px; right:calc(50% - 30px); background:#ff3b5c; color:#fff; font-size:9px; font-weight:700; padding:1px 5px; border-radius:9px; font-style:normal; }
.tab { position:relative; }

/* ---------- 话题配图 ---------- */
.tp-imgs { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.tp-imgs:empty { display:none; }
.tp-imgitem { position:relative; width:64px; height:64px; }
.tp-imgitem img { width:100%; height:100%; object-fit:cover; border-radius:10px; cursor:pointer; }
.tp-imgitem b { position:absolute; top:-6px; right:-6px; width:18px; height:18px; background:#ff3b5c; color:#fff; font-size:10px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.tp-imgadd { font-size:12px; color:#ff5f9e; background:#fff0f5; padding:6px 12px; border-radius:12px; cursor:pointer; }
.tp-addmore { width:64px; height:64px; padding:0; display:flex; align-items:center; justify-content:center; font-size:22px; color:#c2c2ca; background:#f7f7f9; border-radius:10px; }
.topic-card .pgrid { margin:8px 0 4px; }

/* ---------- 通知 deep link：可点击 + 话题定位高亮 ---------- */
.notif-item { cursor: pointer; }
.notif-item:active { opacity: .6; }
.topic-card.nf-flash { animation: nfFlash 1.8s ease; }
@keyframes nfFlash {
  0%, 60% { box-shadow: 0 0 0 3px rgba(17, 12, 29, .45); background: #fff5f9; }
  100% { box-shadow: none; background: #fff; }
}

/* ---------- 评论回复 @ ---------- */
.tcm-reply { font-style: normal; color: #ff5f9e; font-size: 11px; margin-right: 4px; font-weight: 600; }
.tcm-time a { color: #8a8a94; margin: 0 1px; }
.tcm-replyhint { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #ff5f9e; background: #fff0f6; border-radius: 8px; padding: 4px 10px; margin-bottom: 6px; }
.tcm-replyhint a { color: #9a9aa4; margin-left: auto; }

/* ---------- 话题排序切换 ---------- */
.tp-sort { float: right; display: inline-flex; background: #f4f4f7; border-radius: 12px; padding: 2px; }
.tp-sort b { font-size: 11px; color: #8a8a94; padding: 2px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.tp-sort b.on { background: #ff5f9e; color: #fff; }

/* ---------- 启动过场（加载中） ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: var(--grad-deep);
  transition: opacity .35s ease; 
}
#splash.off { opacity: 0; pointer-events: none; }
#splash .sp-heart {
  font-size: 64px; line-height: 1;
  animation: spBeat 1.1s ease-in-out infinite;
  
}
#splash .sp-name {
  margin-top: 18px; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: 2px;
  
}
#splash .sp-tag { margin-top: 6px; color: rgba(255,255,255,.85); font-size: 12.5px; letter-spacing: 1px; }
#splash .sp-dots { display: flex; gap: 7px; margin-top: 26px; height: 8px; }
#splash .sp-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.9);
  animation: spDot 1s ease-in-out infinite;
}
#splash .sp-dots i:nth-child(2) { animation-delay: .18s; }
#splash .sp-dots i:nth-child(3) { animation-delay: .36s; }
#splash .sp-loading { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 12px; }
@keyframes spBeat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.08); }
  40% { transform: scale(1); }
}
@keyframes spDot {
  0%, 100% { transform: translateY(0); opacity: .55; }
  40% { transform: translateY(-7px); opacity: 1; }
}

/* ---------- 轮播手势滑动 ---------- */
.swiper { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.swiper .slide-img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

/* ---------- 支付方式选择弹窗 ---------- */
.payway-amt { text-align: center; font-size: 34px; font-weight: 800; color: var(--txt); margin: 2px 0; }
.payway-title { text-align: center; font-size: 12.5px; color: var(--txt-2); margin-bottom: 14px; }
.payway-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 14px; border: none; border-radius: 12px; background: #f7f4fc;
  margin-bottom: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--txt);
  transition: transform .12s, opacity .2s;
}
.payway-btn:active { transform: scale(.97); }
.payway-btn .pw-ico {
  width: 30px; height: 30px; border-radius: 8px; color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.payway-btn.wx .pw-ico { background: #07c160; }
.payway-btn.ali .pw-ico { background: #1677ff; }
.payway-btn .pw-txt { flex: 1; text-align: left; }
.payway-btn .pw-arrow { color: #b8b8c0; font-size: 18px; }
.payway-btn.disabled { opacity: .5; }
.payway-tip { text-align: center; font-size: 11px; color: #9a9aa4; margin-top: 4px; line-height: 1.7; }

/* ---------- 抽取库存提示 ---------- */
.stock-hint { text-align: center; font-size: 12px; color: var(--txt-2); margin: 2px 0 10px; min-height: 16px; line-height: 1.6; }
.stock-hint.warn { color: #f43b5c; font-weight: 600; }
.stock-hint.ok { color: #2fbf71; }
