/* 同城热恋 · 交友盲盒 V2 前端主题
   配色取自参考页：主粉 #ff3b82 / 辅助蓝 #2f7cf6 / 浅灰底 #f5f6f8 */
:root {
  --pink: #ff3b82;
  --pink-deep: #f0256e;
  --pink-soft: #ffe6f0;
  --pink-bg: #fff2f7;
  --blue: #2f7cf6;
  --blue-soft: #eaf2ff;
  --green: #07c160;
  --ali: #1677ff;
  --bg: #f5f6f8;
  --card: #fff;
  --text: #2b2b33;
  --muted: #9a9aa6;
  --line: #eeeef2;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(30, 20, 40, .05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #e9ebf0;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--pink); text-decoration: none; }
img { max-width: 100%; display: block; }

/* 桌面预览时模拟手机 */
#vp-app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 560px) {
  body { padding: 24px 0; }
  #vp-app { min-height: 844px; height: 844px; border-radius: 28px; box-shadow: 0 18px 60px rgba(0,0,0,.22); overflow-y: auto; }
  #vp-app::-webkit-scrollbar { width: 0; }
}

/* ================= 引导页 ================= */
#vp-splash {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ff3d84 0%, #f0256e 100%);
  color: #fff; text-align: center;
  transition: opacity .55s ease, visibility .55s ease;
  max-width: 480px; margin: 0 auto;
}
#vp-splash.hide { opacity: 0; visibility: hidden; }
.splash-heart { font-size: 66px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(120,0,50,.28)); animation: float 2.4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.splash-title { margin-top: 22px; font-size: 34px; font-weight: 700; letter-spacing: 4px; }
.splash-sub { margin-top: 8px; font-size: 14px; opacity: .92; letter-spacing: 1px; }
.splash-dots { margin: 22px 0 14px; display: flex; gap: 8px; }
.splash-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); animation: blink 1.2s infinite; }
.splash-dots i:nth-child(2) { animation-delay: .2s; }
.splash-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .45; transform: scale(.85); } 40% { opacity: 1; transform: scale(1.15); } }
.splash-tip { font-size: 13px; opacity: .85; }
.splash-enter { position: absolute; bottom: 68px; font-size: 12px; opacity: .8; border: 1px solid rgba(255,255,255,.5); border-radius: 100px; padding: 7px 18px; }

/* ================= 顶部导航 ================= */
.vp-header {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(135deg, #ff3b82, #ff5b9b);
  padding: 14px 8px 12px;
}
.vp-tabs { display: flex; align-items: center; }
.vp-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 2px 6px; color: rgba(255,255,255,.9); font-size: 11px; line-height: 1.2;
  border-radius: 14px; transition: all .22s ease;
}
.vp-tab .ico { font-size: 20px; line-height: 1.1; filter: grayscale(.15); }
.vp-tab.active { background: #fff; color: var(--pink); font-weight: 700; box-shadow: 0 4px 12px rgba(150,0,60,.18); }
.vp-tab.active .ico { filter: none; }
.vp-notice {
  display: flex; align-items: center; gap: 8px; margin: 12px 12px 4px;
  background: #fff; border: 1px solid #e6efff; border-radius: 12px; padding: 8px 10px;
  font-size: 11.5px; color: #6b7280; line-height: 1.4;
}
.vp-badge-blue { flex: none; background: var(--blue); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 10px; font-weight: 700; }

/* ================= 通用区块 ================= */
.vp-page { padding: 10px 12px 88px; display: none; }
.vp-page.active { display: block; animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vp-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.vp-card.tight { padding: 12px; }
.vp-sec-title { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; margin: 16px 2px 10px; }
.vp-sec-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--pink); }
.vp-sec-title small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.vp-sec-title .vp-sec-more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.vp-pill { display: inline-block; border-radius: 100px; padding: 1px 7px; font-size: 10px; font-weight: 600; }
.vp-pill.pink { background: var(--pink-soft); color: var(--pink-deep); }
.vp-pill.blue { background: var(--blue-soft); color: var(--blue); }
.vp-pill.hot { background: #fff0e8; color: #ff7a3d; }
.vp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 100px; padding: 10px 18px; font-size: 13px; font-weight: 600;
  background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(255,59,130,.22);
  transition: transform .15s ease, opacity .15s ease;
}
.vp-btn:active { transform: scale(.97); }
.vp-btn.block { width: 100%; }
.vp-btn.blue { background: var(--blue); box-shadow: 0 4px 12px rgba(47,124,246,.22); }
.vp-btn.ghost { background: #fff; color: var(--pink); border: 1px solid #ffc9de; box-shadow: none; }
.vp-btn.ghost.blue { color: var(--blue); border-color: #c8dcff; }
.vp-btn.gray { background: #f3f4f7; color: #8a8a95; box-shadow: none; }
.vp-btn.lg { padding: 14px; font-size: 15px; }
.vp-btn.sm { padding: 7px 14px; font-size: 12px; }
.vp-row { display: flex; align-items: center; gap: 10px; }
.vp-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vp-muted { color: var(--muted); font-size: 12px; }
.vp-center { text-align: center; }
.vp-empty { padding: 46px 10px; color: var(--muted); text-align: center; font-size: 13px; }
.vp-empty .ico { font-size: 46px; display: block; margin-bottom: 10px; filter: grayscale(.2); }

/* 头部横幅 */
.vp-banner {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
  background: linear-gradient(120deg, #ff5f9e, #ff2f78); color: #fff;
  padding: 18px 16px; position: relative; min-height: 112px;
  display: flex; flex-direction: column; justify-content: center;
}
.vp-banner::after { content: "💘"; position: absolute; right: 12px; top: 8px; font-size: 62px; opacity: .2; }
.vp-banner h2 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.vp-banner p { margin: 6px 0 0; font-size: 12px; opacity: .92; }
.vp-banner .vp-banner-tag { position: absolute; right: 14px; bottom: 14px; background: #6a4bff; border-radius: 100px; font-size: 11px; padding: 3px 10px; }

/* 定位条 */
.vp-loc { display: flex; align-items: center; gap: 8px; }
.vp-loc .pin { color: var(--pink); font-size: 18px; }
.vp-loc .city { font-weight: 700; font-size: 15px; }
.vp-loc .vp-loc-sub { font-size: 11px; color: var(--muted); }
.vp-ticker { background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 12px; color: #7a7a86; margin-bottom: 12px; }

/* 盲盒双卡 */
.vp-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vp-box { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.vp-box .cover { border-radius: 12px; height: 116px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; color: #fff; position: relative; overflow: hidden; }
.vp-box.boy .cover { background: linear-gradient(160deg, #8fb8ff, #3f6fd8 70%); }
.vp-box.girl .cover { background: linear-gradient(160deg, #ffb3d1, #f0508f 70%); }
.vp-box .cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.5), transparent 45%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.25), transparent 40%); }
.vp-box.boy .cover::before { content: "💙"; position: absolute; top: 6px; right: 10px; font-size: 30px; opacity: .85; z-index: 1; }
.vp-box.girl .cover::before { content: "💗"; position: absolute; top: 6px; right: 10px; font-size: 30px; opacity: .85; z-index: 1; }
.vp-box .cover span { position: relative; z-index: 1; font-weight: 700; font-size: 15px; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.vp-box .cover small { display: block; font-size: 10px; font-weight: 400; text-align: center; opacity: .9; }
.vp-box .box-tag { text-align: center; margin: 8px 0; }
.vp-box .vp-btn { width: 100%; margin-bottom: 6px; padding: 9px 4px; font-size: 12px; }

/* 纸条卡片 */
.vp-feed-card { border: 1px solid #ffe4ee; }
.vp-feed-card.blue { border-color: #e1ecff; background: linear-gradient(180deg,#fbfdff,#fff); }
.vp-feed-head { display: flex; align-items: center; gap: 9px; }
.vp-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex: none; }
.vp-avatar.pink { background: linear-gradient(135deg,#ff7ab0,#ff3b82); }
.vp-avatar.blue { background: linear-gradient(135deg,#7db1ff,#2f7cf6); }
.vp-avatar.green { background: linear-gradient(135deg,#7fd8b0,#2eb984); }
.vp-feed-name { font-weight: 700; font-size: 14px; }
.vp-feed-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.vp-report { margin-left: auto; font-size: 11px; color: #f5b400; white-space: nowrap; }
/* V14 第 2 项：纸条右上角统一容器，「投递日期」与「举报」同排右对齐 */
.vp-feed-head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.vp-feed-head-right .vp-report { margin-left: 0; }
.vp-feed-date { font-size: 11px; color: #a4abba; white-space: nowrap; }
/* V14 第 4 项：个人中心登录 / 退出按钮 */
.vp-login-btns { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.vp-user-logout { margin-left: auto; flex-shrink: 0; }
.vp-feed-content { margin: 10px 0; font-size: 13px; color: #4b4b56; }
.vp-feed-photo { width: 128px; border-radius: 10px; margin: 4px 0 10px; background: #f0f0f4; }
.vp-feed-foot { display: flex; align-items: center; justify-content: space-between; }
.vp-wechat { font-size: 11.5px; color: #a0a0ab; }

/* 话题 */
.vp-topic-input { width: 100%; border: 0; outline: 0; resize: none; min-height: 76px; font-size: 13px; color: var(--text); background: transparent; }
.vp-topic-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.vp-filter { display: flex; gap: 6px; }
.vp-filter button { border-radius: 100px; padding: 3px 12px; font-size: 11px; background: #f2f3f6; color: #888; }
.vp-filter button.active { background: var(--pink); color: #fff; }
.vp-topic { border-bottom: 1px solid var(--line); padding: 12px 0; }
.vp-topic:last-child { border-bottom: 0; }
.vp-topic .vp-topic-text { margin: 8px 0; font-size: 13.5px; }
.vp-topic-photo { width: 140px; border-radius: 10px; margin-bottom: 10px; background: #f0f0f4; }
.vp-topic-actions { display: flex; gap: 8px; }
.vp-chip { border: 1px solid var(--line); border-radius: 100px; padding: 3px 12px; font-size: 11px; color: #999; background: #fff; }

/* 个人中心 */
.vp-user-card { display: flex; align-items: center; gap: 12px; }
.vp-user-card .vp-avatar { width: 50px; height: 50px; font-size: 20px; }
.vp-user-name { font-weight: 700; font-size: 16px; }
.vp-user-id { font-size: 11px; color: var(--muted); margin-top: 2px; }
.vp-msg-card { border: 1px solid #ffd7e7; background: linear-gradient(180deg,#fff7fb,#fff); }
.vp-msg-title { color: var(--pink-deep); font-weight: 700; }
.vp-switch { display: flex; background: #f5f5f8; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.vp-switch button { flex: 1; border-radius: 9px; padding: 9px 4px; font-size: 13px; color: #888; }
.vp-switch button.active { background: var(--pink); color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(255,59,130,.2); }

.vp-agreement { font-size: 11px; color: var(--muted); text-align: center; margin: 14px 0; }

/* 搭子群 */
.vp-group { border: 1px solid #ffe4ee; }
.vp-group .tag { font-size: 10px; color: var(--pink); background: var(--pink-bg); border-radius: 6px; padding: 2px 7px; }

/* 底部协议 / 客服 */
.vp-footer { text-align: center; color: #b0b0ba; font-size: 11.5px; padding: 18px 0 10px; }
.vp-footer a { color: #b0b0ba; }
.vp-service {
  position: fixed; right: max(12px, calc((100vw - 480px)/2 + 12px)); bottom: 24px; z-index: 25;
  width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg,#ff7a5c,#ff4d4d);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 6px 18px rgba(255,77,77,.4);
}

/* ================= 弹窗 ================= */
.vp-mask { position: fixed; inset: 0; z-index: 100; background: rgba(28,18,30,.5); display: none; align-items: flex-end; justify-content: center; }
.vp-mask.show { display: flex; }
.vp-sheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0;
  padding: 20px 18px 26px; animation: sheetUp .28s ease;
  max-height: 86vh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.vp-sheet-title { text-align: center; font-size: 16px; font-weight: 700; position: relative; margin-bottom: 12px; }
.vp-sheet-close { position: absolute; right: 0; top: -2px; color: #aaa; font-size: 20px; width: 28px; height: 28px; }
.vp-amount { text-align: center; font-size: 34px; font-weight: 700; color: #1c1c22; margin: 6px 0 2px; }
.vp-amount-sub { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.vp-pay-option {
  display: flex; align-items: center; gap: 12px; background: #f8f7fc;
  border-radius: 14px; padding: 14px; margin-bottom: 10px; width: 100%; text-align: left;
  border: 1px solid transparent; transition: all .18s ease;
}
.vp-pay-option:active, .vp-pay-option:hover { border-color: #ffc9de; background: #fff6fa; }
.vp-pay-icon { width: 32px; height: 32px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.vp-pay-icon.wx { background: var(--green); }
.vp-pay-icon.ali { background: var(--ali); }
.vp-pay-name { font-weight: 600; font-size: 14px; }
.vp-pay-arrow { margin-left: auto; color: #c4c4cc; }
.vp-pay-hint { text-align: center; font-size: 11px; color: #a3a3ae; margin-top: 14px; line-height: 1.6; }
.vp-form-item { margin-bottom: 12px; }
.vp-form-item label { display: block; font-size: 12px; color: #777; margin-bottom: 5px; }
.vp-input, .vp-textarea, .vp-select {
  width: 100%; background: #f7f7fa; border: 1px solid #eeeef2; border-radius: 10px;
  padding: 10px 12px; outline: 0; color: var(--text);
}
.vp-input:focus, .vp-textarea:focus { border-color: #ffb3d1; background: #fff; }
.vp-pw-wrap { position: relative; }
.vp-pw-wrap .vp-input { padding-right: 44px; }
.vp-pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; font-size: 16px; cursor: pointer; padding: 6px; color: #b5b5c0; line-height: 1; }
.vp-pw-eye:hover { color: #ff2e7e; }
.vp-textarea { min-height: 76px; resize: none; }
.vp-qr { text-align: center; padding: 8px 0; }
.vp-qr-box { width: 190px; height: 190px; margin: 12px auto; background: #f6f6fa; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #b5b5c0; font-size: 12px; overflow: hidden; }
.vp-qr-box canvas, .vp-qr-box img { max-width: 100%; }
.vp-result-ico { font-size: 48px; text-align: center; margin: 6px 0 8px; }
.vp-toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 300;
  background: rgba(30,25,32,.88); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 80%; text-align: center;
}
.vp-toast.show { opacity: 1; }
.vp-list-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.vp-list-line:last-child { border-bottom: 0; }

/* ---- V3：同城定位两级选择 ---- */
.vp-city-tip { font-size: 12px; color: #8b8b96; padding: 4px 2px 2px; }
.vp-city-tip b { color: var(--pink); }
.vp-city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 6px; max-height: 46vh; overflow-y: auto; }
.vp-city-prov { background: #fff; border: 1px solid #eeeaf0; border-radius: 12px; padding: 12px 4px; text-align: center; color: var(--text); min-height: 58px; }
.vp-city-prov b { display: block; font-size: 14px; font-weight: 600; }
.vp-city-prov small { display: block; font-size: 11px; color: #b3b3be; margin-top: 3px; }
.vp-city-prov.selected { border-color: var(--pink); background: #fff5f9; color: var(--pink); }
.vp-city-prov:active { transform: scale(.97); }
.vp-city-crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; }

.vp-list-line > b { white-space: nowrap; }
.vp-qr-img { max-width: 170px; display: block; margin: 8px auto; border-radius: 8px; }
.vp-banner a { color: inherit; text-decoration: none; display: block; }

/* ---- V3：搭子群已加入态 ---- */
.vp-group-joined { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.vp-group-qr { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }

/* ---- V4：急速恋爱顶部轮播图 ---- */
.vp-slider { position: relative; width: 100%; height: 148px; border-radius: 14px; overflow: hidden; background: #f7e3ec; margin: 0 0 10px; }
.vp-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .5s ease; display: flex; align-items: flex-end; }
.vp-slide.on { opacity: 1; }
.vp-slide-link { position: absolute; inset: 0; }
.vp-slide-title { position: relative; width: 100%; padding: 10px 14px; color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.45); background: linear-gradient(0deg, rgba(0,0,0,.42), transparent); }
.vp-slide-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 5px; z-index: 2; }
.vp-slide-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.vp-slide-dot.on { width: 14px; border-radius: 4px; background: #fff; }

/* ---- V4：轮播图下方固定 20 条滚动播报 ---- */
.vp-ticker20 { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ffe3ee; border-radius: 10px; padding: 0 10px; height: 28px; overflow: hidden; margin: 0 0 10px; }
.vp-ticker-ico { font-size: 14px; flex: none; }
.vp-ticker-viewport { flex: 1; height: 26px; overflow: hidden; }
.vp-ticker-track { transition: transform .45s ease; }
.vp-ticker-line { height: 26px; line-height: 26px; font-size: 12px; color: #6a5a63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- V4：群聊卡片可点 / 详情页 ---- */
.vp-group[data-gdetail] { cursor: pointer; }
.vp-gd-wrap { max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* V11：背景图独立卡片置顶，头像 + 群名称另成一张卡片，三者不再重叠 */
.vp-gd-banner { border-radius: 12px; overflow: hidden; margin-bottom: 8px; background: #fff5f9; border: 1px solid #ffe6ef; box-shadow: 0 4px 14px rgba(214,37,111,.08); }
.vp-gd-banner img { display: block; width: 100%; max-height: 168px; object-fit: cover; }
.vp-gd-top { border-radius: 12px; padding: 14px; background: #fff; border: 1px solid #ffe6ef; box-shadow: 0 4px 14px rgba(214,37,111,.08); display: flex; align-items: center; gap: 12px; min-height: 88px; }
.vp-gd-avatar { width: 58px; height: 58px; border-radius: 50%; flex: none; background: #fff url() center/cover no-repeat; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.vp-gd-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vp-gd-meta b { font-size: 16px; color: #3a2d33; }
.vp-gd-meta span { font-size: 12px; color: #6d5a63; line-height: 1.5; }
.vp-gd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.vp-gd-stats > div { text-align: center; background: #fff5f9; border-radius: 8px; padding: 8px 2px; }
.vp-gd-stats b { display: block; font-size: 14px; color: var(--pink); }
.vp-gd-stats span { font-size: 11px; color: #a08a94; }
.vp-gd-block { background: #fff; border: 1px solid #ffe6ef; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.vp-gd-block h4 { margin: 0 0 6px; font-size: 14px; color: #d6256f; }
.vp-gd-text { font-size: 12px; color: #6a5a63; line-height: 1.9; word-break: break-word; }
.vp-gd-img { width: 100%; border-radius: 8px; display: block; margin: 8px 0; }
.vp-gd-comments { background: #fff; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.vp-gd-comment { font-size: 12px; color: #7a6a72; padding: 5px 0; border-bottom: 1px dashed #f3e6ec; }
.vp-gd-comment:last-child { border-bottom: 0; }
.vp-gd-service { background: #fff8fb; border: 1px solid #ffdce9; border-radius: 10px; padding: 10px; margin: 8px 0; }
.vp-gd-service-row { display: flex; align-items: center; gap: 10px; }
.vp-gd-service-row > div { flex: 1; min-width: 0; }
.vp-gd-service-row b { font-size: 13px; color: #d6256f; }
.vp-gd-service-row p { margin: 3px 0 0; font-size: 11px; color: #9a8790; line-height: 1.5; }
.vp-gd-service-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.vp-gd-service-qr { width: 58px; height: 58px; border-radius: 6px; object-fit: cover; flex: none; }
.vp-gd-paid { background: #f2fff7; border: 1px solid #c9ecd7; border-radius: 10px; padding: 10px; margin: 8px 0; text-align: center; }
.vp-gd-paidqr { width: 150px; height: 150px; display: block; margin: 8px auto; border-radius: 8px; }
.vp-gd-joined { color: #18a86b; font-size: 13px; padding: 8px; }
.vp-gd-foot { padding: 10px 0 2px; }

/* ==================== V5：纸条投放 / 抽取 / 审核 / 举报 ==================== */
.vp-form-tip { font-size: 11px; color: #9a8790; line-height: 1.6; margin: 6px 0 10px; }
.vp-link-btn { border: 0; background: none; color: #d6256f; font-size: 12px; font-weight: 600; padding: 0 0 0 8px; cursor: pointer; }
.vp-form-city-panel { border: 1px solid #ffe3ee; border-radius: 10px; padding: 8px; background: #fffafc; margin-top: 6px; max-height: 40vh; overflow-y: auto; }
.vp-form-city-panel .vp-city-grid { margin: 6px 0 0; max-height: 32vh; }
.vp-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vp-photo-grid .vp-img-field { margin: 0; padding: 6px; }
.vp-photo-grid .vp-img-preview { width: 100%; height: 72px; margin-bottom: 5px; }
.vp-photo-grid .vp-img-ops { flex-wrap: wrap; gap: 4px; }
.vp-photo-grid .vp-img-pick { padding: 4px 8px; font-size: 11px; }
/* V12：旧版把投放纸条多图里的提示整体隐藏，导致「超出限制」等错误
   只写进 DOM 但用户完全看不到。仅错误态显示，并做成醒目红条。 */
.vp-photo-grid .vp-img-tip { display: none; }
.vp-photo-grid .vp-img-field[data-upload-state="error"] .vp-img-tip {
  display: block; width: 100%; color: #c02b4b; font-size: 11px; line-height: 1.35;
  background: #fff1f4; border: 1px solid #ffd0dc; border-radius: 6px;
  padding: 4px 6px; word-break: break-all;
}
.vp-photo-grid .vp-img-field[data-upload-state="error"] .vp-img-preview { border-color: #c02b4b; }
.vp-photo-grid .vp-img-clear { font-size: 11px; padding: 3px 6px; }

.vp-draw-amount { text-align: center; padding: 4px 0 14px; }
.vp-draw-amount b { display: block; font-size: 28px; color: #d6256f; }
.vp-draw-amount span { font-size: 12px; color: #a08a94; }
.vp-draw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid #f3e6ec; font-size: 13px; color: #4a3b42; }
.vp-switchbox { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.vp-switchbox input { opacity: 0; width: 0; height: 0; }
.vp-switchbox i { position: absolute; inset: 0; border-radius: 20px; background: #e3e0e5; transition: background .2s; cursor: pointer; }
.vp-switchbox i::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.vp-switchbox input:checked + i { background: #ff3b82; }
.vp-switchbox input:checked + i::after { transform: translateX(20px); }
.vp-draw-row .vp-link { border: 0; background: none; color: #d6256f; font-size: 14px; font-weight: 700; cursor: pointer; }
.vp-draw-region { border: 1px solid #ffe3ee; border-radius: 10px; padding: 10px; background: #fffafc; margin-bottom: 10px; max-height: 42vh; overflow-y: auto; }
.vp-draw-region .vp-city-grid { margin: 8px 0 0; max-height: 34vh; }
.vp-chip-all { display: block; width: 100%; padding: 9px; color: #d6256f; font-weight: 700; border-color: #ffd0e2; background: #fff5f9; }
.vp-draw-stock { min-height: 20px; padding: 6px 0 2px; }
.vp-stock-warn { background: #fff4f6; border: 1px solid #ffd9e2; color: #d6256f; border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 600; }
.vp-stock-ok { background: #f2fff7; border: 1px solid #c9ecd7; color: #18a86b; border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.vp-stock-sub { font-size: 11px; color: #a08a94; margin: 9px 0 5px; }
.vp-stock-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.vp-stock-chips .vp-chip { cursor: pointer; }

/* 覆盖旧版单图容器：现在 .vp-feed-photo 是网格里的 img */
.vp-feed-photos { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
img.vp-feed-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 9px; margin: 0; background: #f7eef3; cursor: zoom-in; border: 1px solid #ffe6ef; }
.vp-feed-state { display: inline-block; margin-left: 5px; padding: 1px 7px; border-radius: 100px; font-size: 10px; font-weight: 600; vertical-align: middle; }
.vp-feed-state.wait { background: #fff4e0; color: #c98600; }
.vp-feed-state.bad { background: #ffe8ee; color: #d6256f; }
.vp-feed-note { border-radius: 8px; padding: 8px 10px; font-size: 11px; line-height: 1.7; margin: 6px 0; background: #f7f7fb; color: #6a5a63; word-break: break-word; }
.vp-feed-note.warn { background: #fff7e9; color: #b8791a; }
.vp-feed-note.danger { background: #fff0f3; color: #c02a5c; }
.vp-feed-owned { font-size: 11px; color: #18a86b; background: #f0fff6; border-radius: 100px; padding: 4px 9px; white-space: nowrap; }

.vp-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; }
.vp-lightbox.show { display: flex; }
.vp-lb-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vp-lb-inner img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.vp-lb-nav, .vp-lb-close { position: absolute; border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.vp-lb-nav { top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
.vp-lb-nav.prev { left: 3vw; } .vp-lb-nav.next { right: 3vw; }
.vp-lb-close { top: 18px; right: 18px; width: 38px; height: 38px; }
.vp-lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; }

.vp-report-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.vp-report-reason { position: relative; }
.vp-report-reason input { position: absolute; opacity: 0; }
.vp-report-reason span { display: inline-block; border: 1px solid #ffdce9; border-radius: 100px; padding: 6px 13px; font-size: 12px; color: #8a7580; background: #fff; cursor: pointer; }
.vp-report-reason input:checked + span { background: #ff3b82; border-color: #ff3b82; color: #fff; font-weight: 600; }

/* V6 · 原「参数设置」已归类项：引导页 Logo / 客服弹窗公众号与二维码 / 常见问题 */
.splash-logo { width: 78px; height: 78px; object-fit: contain; border-radius: 18px; background: rgba(255,255,255,.9); padding: 8px; margin: 0 0 14px; box-shadow: 0 6px 20px rgba(214,37,111,.16); }
.vp-svc-acct { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 12px; color: #333c52; font-size: 14px; }
.vp-svc-acct img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.vp-svc-qrs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 12px; }
.vp-svc-qr { width: 104px; text-align: center; }
.vp-svc-qr img { width: 104px; height: 104px; object-fit: contain; border: 1px solid #f0e3ea; border-radius: 8px; background: #fff; padding: 4px; box-sizing: border-box; }
.vp-svc-qr span { display: block; margin-top: 4px; font-size: 11px; color: #8a7580; }
.vp-svc-faq { text-align: left; background: #fff7fa; border: 1px solid #ffe0ec; border-radius: 9px; padding: 10px 12px; margin: 10px 0; }
.vp-svc-faq h4 { margin: 0 0 6px; font-size: 13px; color: #d6256f; }
.vp-svc-faq div { white-space: pre-line; font-size: 12px; line-height: 1.8; color: #6b5a63; }
.vp-svc-group { margin: 10px 0; }
.vp-svc-group img { max-width: 100%; border-radius: 9px; }


/* ================= V11 连抽按钮组：恢复改动前排版 ================= */
.vp-draw-em { display: block; font-style: normal; font-size: 10px; font-weight: 400; opacity: .82; margin-top: 2px; }
.vp-box .vp-draw-one { background: #fff; box-shadow: none; border: 1px solid #c8dcff; color: var(--blue); font-size: 13px; padding: 10px 4px; }
.vp-box.girl .vp-draw-one { border-color: #ffc9de; color: var(--pink); }
.vp-box .vp-draw-main { background: #3159c7; color: #fff; box-shadow: 0 4px 12px rgba(47,88,200,.22); font-size: 13px; padding: 11px 4px; }
.vp-box.girl .vp-draw-main { background: #d81b6c; box-shadow: 0 4px 12px rgba(214,27,108,.2); }
.vp-draw-mini { display: flex; gap: 6px; }
.vp-draw-mini .vp-btn { flex: 1; min-width: 0; margin: 0; }
.vp-box.boy .vp-draw-mini-btn { background: #eaf1ff; color: #3159c7; border: 1px solid #dce9ff; box-shadow: none; }
.vp-box.girl .vp-draw-mini-btn { background: #ffeaf3; color: #d6256f; border: 1px solid #ffd9e8; box-shadow: none; }

/* V10 档位卡片样式保留兼容，V11 起前台不再使用 */
.vp-tiers { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.vp-tier { border: 1px solid #ffe4ee; border-radius: 10px; padding: 7px 8px; background: linear-gradient(180deg,#fff,#fff8fb); }
.vp-box.boy .vp-tier { border-color: #dce9ff; background: linear-gradient(180deg,#fff,#f6faff); }
.vp-tier-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vp-tier-title { font-size: 12px; font-weight: 700; color: var(--pink-deep); }
.vp-box.boy .vp-tier-title { color: var(--blue); }
.vp-tier-tag { font-style: normal; font-size: 9px; color: #fff; background: #ff6aa2; border-radius: 5px; padding: 1px 5px; }
.vp-tier-count { font-size: 10px; color: #9a8b95; margin-left: auto; }
.vp-tier-price { font-size: 12px; color: var(--pink); margin-left: 5px; }
.vp-box.boy .vp-tier-price { color: var(--blue); }
.vp-tier-desc { font-size: 10px; color: #9a8b95; line-height: 1.5; margin: 3px 0 5px; }
.vp-tier .vp-tier-btn { width: 100%; margin: 0; padding: 7px 4px; font-size: 11px; }

/* ================= V10 图片点击放大 ================= */
[data-zoom] { cursor: zoom-in; }
.vp-svc-zoom-tip { text-align: center; font-size: 11px; color: #a08b96; margin: -4px 0 10px; }
.vp-lb-tip { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.72); font-size: 12px; }
/* 二维码按原始像素锐利放大，避免插值导致扫码失败 */
.vp-lightbox.zoom-qr .vp-lb-inner img {
  max-width: 86vw; max-height: 74vh; background: #fff; padding: 10px;
  image-rendering: -moz-crisp-edges; image-rendering: pixelated;
}

/* ================= V15 第 7 项：顶部 5 个菜单项卡片化 =================
   只改样式与配色，菜单数量 / 顺序 / 文案 / data-tab 跳转全部由 v2config::nav()
   与 renderTabs() 决定，这里不做任何结构性改动。 */
.vp-header { padding: 12px 8px 14px; }
.vp-tabs { display: flex; align-items: stretch; gap: 5px; }
.vp-tab {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 2px 7px; font-size: 10.5px; line-height: 1.2;
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(150,0,60,.16), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.vp-tab .ico { font-size: 18px; line-height: 1.1; filter: grayscale(.1); }
.vp-tab.active {
  background: #fff; color: var(--pink); font-weight: 700; border-color: #fff;
  box-shadow: 0 7px 18px rgba(150,0,60,.28), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-2px);
}
.vp-tab.active .ico { filter: none; }
.vp-tab:not(.active):active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(150,0,60,.2); }

/* V15 第 3/4 项：标题右侧「全部 / 全部群聊」按钮，与原「换一批」同排 */
.vp-sec-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.vp-sec-all {
  border: 1px solid #ffd0e2; background: #fff5f9; color: var(--pink);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(214,37,111,.1);
}
.vp-sec-actions .vp-sec-more { margin-left: 0; }
.vp-home-group { margin-bottom: 2px; }
.vp-square-more { padding: 10px 0 6px; }
.vp-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* 头像上传框：圆形预览（其它图片上传仍走默认矩形） */
#ac-avatar .vp-img-preview { width: 76px; height: 76px; border-radius: 50%; }
#ac-avatar .vp-img-preview img { object-fit: cover; border-radius: 50%; }
