/* =========================================================================
 * style.css — 会员制交友平台 · 前台共享样式（零依赖）
 * 移动优先；桌面端内容最大宽度 720px 居中；主色粉色→橙红渐变。
 * ========================================================================= */

:root {
  --brand-1: #ff2d6f;
  --brand-2: #ff6a3d;
  --grad: linear-gradient(135deg, #ff2d6f, #ff6a3d);
  --text: #1f2329;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #eceef1;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(20, 24, 40, .06);
  --shadow-lg: 0 8px 32px rgba(20, 24, 40, .12);
  --ok: #18b96b;
  --ok-bg: #e8f8f0;
  --err: #ff2d6f;
  --warn: #f5a623;
  --warn-bg: #fff7e6;
  --link: #2f80ff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: none; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
}

/* 顶部固定栏占位 */
.container,
.content {
  padding-top: calc(56px + 12px);
}

.hidden { display: none !important; }

/* ------------------------------------------------------------------ */
/* 禁止复制 / 右键 / 长按下载（后台「设置 → 水印与防复制」可开关）      */
/* 注意：这只能挡住普通用户的右键、长按、框选、Ctrl+C/S/U/P，          */
/*       挡不住开发者工具、抓包和截图，不要当成真正的防护。            */
/* ------------------------------------------------------------------ */
body.no-copy {
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
body.no-copy img, body.no-copy video { -webkit-user-drag: none; user-drag: none; }
/* 输入框/文本域必须保留可选可编辑，否则聊天、支付页没法用 */
body.no-copy input, body.no-copy textarea, body.no-copy select { -webkit-user-select: text; user-select: text; }
/* 客服聊天的文字也允许选中复制：客服要发链接、地址、账号，不能复制等于没法用 */
body.no-copy .chat-messages, body.no-copy .chat-msg, body.no-copy .chat-bubble,
body.no-copy .chat-msgs, body.no-copy .contact-info-row { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* 聊天里的「会员充值」入口 */
.chat-recharge { padding: 10px 12px 0; }
.chat-recharge-btn {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: var(--glow);
}
.chat-recharge-btn:active { opacity: .88; }
.chat-recharge-note { margin-top: 6px; font-size: 12px; color: var(--text-3); text-align: center; }

/* 联系方式弹窗（会员点「在线联系」时出现） */
.contact-info-tip { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.contact-info-list { display: flex; flex-direction: column; gap: 8px; }
.contact-info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
}
.contact-info-row .ci-label { flex: 0 0 4.5em; font-size: 13px; color: var(--text-2); }
.contact-info-row .ci-value { flex: 1; font-weight: 600; word-break: break-all; }
.contact-info-row .ci-copy { flex: 0 0 auto; }

/* 聊天里的链接 */
.chat-link { color: var(--link); text-decoration: underline; word-break: break-all; }
/* 大图预览：图片不吃指针事件 → 长按不会弹"保存图片"，点空白处仍然关闭 */
.lightbox .lb-stage,
.lightbox .lb-stage img,
.lightbox .lb-stage video { pointer-events: none; }
.muted { color: var(--text-3); font-size: 13px; }

/* ------------------------------------------------------------------ */
/* 顶部栏                                                              */
/* ------------------------------------------------------------------ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(20, 24, 40, .05);
}
.topbar-left, .topbar-right { flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px; }
.topbar-center { flex: 1 1 auto; text-align: center; min-width: 0; }
.topbar-title { font-size: 16px; font-weight: 700; line-height: 1.2; }
.topbar-sub { font-size: 11px; color: var(--text-3); line-height: 1.2; }
.topbar-right { flex-direction: column; align-items: flex-end; line-height: 1.2; }
.topbar-id { font-size: 12px; color: var(--brand-1); font-weight: 600; white-space: nowrap; }
.topbar-balance { font-size: 11px; color: var(--text-2); white-space: nowrap; }

.icon-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 22px; line-height: 1;
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active { background: var(--bg); }

/* ------------------------------------------------------------------ */
/* 按钮                                                                */
/* ------------------------------------------------------------------ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 16px;
  border: none;
  transition: opacity .15s, transform .05s;
}
.btn-primary:active { transform: scale(.98); opacity: .92; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary.loading { opacity: .7; pointer-events: none; }

.btn-block { width: 100%; display: flex; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f2f3f5; color: var(--text-2);
  font-weight: 600; font-size: 15px;
  border-radius: 12px; padding: 12px 16px; border: none;
}
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--err); color: #fff;
  font-weight: 600; font-size: 15px;
  border-radius: 12px; padding: 12px 16px; border: none;
}
.btn-blue {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--link); color: #fff;
  font-weight: 600; font-size: 14px;
  border-radius: 10px; padding: 8px 14px; border: none;
}
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* ------------------------------------------------------------------ */
/* 卡片                                                                */
/* ------------------------------------------------------------------ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 16px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}

/* ------------------------------------------------------------------ */
/* 轻提示 toast                                                        */
/* ------------------------------------------------------------------ */
.toasts {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px) + 8px);
  left: 0; right: 0;
  z-index: 999;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; pointer-events: none;
}
.toast {
  max-width: 88%;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(30, 32, 40, .92);
  color: #fff; font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-10px);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-ok { background: var(--ok); }
.toast-err { background: var(--err); }
.toast-info { background: rgba(30, 32, 40, .92); }

/* ------------------------------------------------------------------ */
/* 弹层（sheet / modal）                                               */
/* ------------------------------------------------------------------ */
.dsh-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.dsh-overlay.show { opacity: 1; }
.dsh-sheet {
  width: 100%; max-width: 720px;
  max-height: 84vh; overflow-y: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(16px + var(--safe-bottom));
  transform: translateY(100%); transition: transform .24s ease;
}
.dsh-overlay.show .dsh-sheet { transform: translateY(0); }
.dsh-modal {
  width: calc(100% - 40px); max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  transform: translateY(16px) scale(.98);
  transition: transform .18s ease;
  margin: auto;
}
.dsh-overlay.show .dsh-modal { transform: none; }
.dsh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dsh-title { font-size: 17px; font-weight: 700; }
.dsh-x { font-size: 22px; color: var(--text-3); width: 30px; height: 30px; line-height: 1; }
.dsh-body { font-size: 15px; color: var(--text); }
.dsh-actions { display: flex; gap: 10px; margin-top: 16px; }
.dsh-actions .dsh-btn { flex: 1; }

/* 会员引导弹窗 */
.needvip-tip { color: var(--text-2); margin-bottom: 12px; }
.vip-plan-list { display: flex; flex-direction: column; gap: 8px; }
.vip-plan-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px; background: #fafbfc; border: 1px solid var(--line);
}
.vip-plan-name { font-weight: 600; }
.vip-plan-price { color: var(--brand-1); font-weight: 700; }
.vip-plan-note { color: var(--text-3); font-size: 12px; margin-left: 6px; font-weight: 400; }
.unit { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* 首次建号弹窗 */
.cred-tip { color: var(--err); font-size: 13px; margin-bottom: 12px; }
.cred-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cred-label { color: var(--text-2); }
.cred-value { font-weight: 700; letter-spacing: .5px; }

/* 菜单 */
.menu-link { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.menu-link:last-child { border-bottom: none; }
.menu-link:active { color: var(--brand-1); }

/* 服务不可用 */
.boot-error {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.boot-error-box { text-align: center; max-width: 320px; }
.boot-error-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.boot-error-desc { color: var(--text-2); margin-bottom: 20px; }

/* ------------------------------------------------------------------ */
/* 骨架屏 / 空状态 / 加载                                             */
/* ------------------------------------------------------------------ */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton {
  background: linear-gradient(90deg, #eef0f2 25%, #f7f8fa 50%, #eef0f2 75%);
  background-size: 800px 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: 8px;
}
.sk-card { padding: 14px; margin-bottom: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.sk-imgs { display: flex; gap: 8px; }
.sk-img-big { width: 66%; height: 150px; }
.sk-img-small { flex: 1; height: 150px; }
.sk-line { height: 14px; margin-top: 12px; }
.sk-btn { height: 40px; margin-top: 12px; }

.empty {
  text-align: center; padding: 48px 20px; color: var(--text-3);
}
.empty .empty-icon { font-size: 44px; margin-bottom: 10px; }
.empty-title { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }

.retry-box { text-align: center; padding: 32px 16px; color: var(--text-2); }
.retry-box button { margin-top: 12px; }

/* ------------------------------------------------------------------ */
/* 列表页筛选                                                          */
/* ------------------------------------------------------------------ */
.filters { position: relative; }
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.filter-row > label { flex: 0 0 auto; font-size: 13px; color: var(--text-2); min-width: 46px; }
.field { flex: 1 1 0; min-width: 0; }
.select, .input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text); font-size: 14px;
}
.input::placeholder { color: var(--text-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.range-item { display: flex; align-items: center; gap: 6px; }
.range-item .dash { color: var(--text-3); flex: 0 0 auto; }
.range-item .input { flex: 1; }

.more-toggle {
  width: 100%; text-align: center; color: var(--text-2); font-size: 13px;
  padding: 8px 0; margin-top: 2px;
}
.more-panel { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.check-line input { width: 18px; height: 18px; accent-color: var(--brand-1); }

.filter-actions { display: flex; gap: 10px; margin-top: 6px; }
.filter-actions .btn-primary { flex: 1; }
.filter-actions .btn-ghost { flex: 0 0 84px; }

.fav-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-2);
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
}
.fav-toggle.on { color: var(--brand-1); border-color: var(--brand-1); background: #fff0f4; }

/* 按 IP 自动筛选本省资料时的提示条 */
.geo-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
  font-size: 13px; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--line);
}
.geo-bar b { color: var(--text); }
.geo-bar button {
  margin-left: auto; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; color: var(--brand-1);
  border: 1px solid var(--brand-1); background: #fff;
}

/* 翻页：只有「上一页 / 下一页」两个按钮，不显示页码和总页数 */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 14px 0 6px;
}
.pager button { min-width: 104px; }
.pager button:disabled { opacity: .5; cursor: not-allowed; }
/* 缺按钮的那一侧由脚本放一个空 span 占位：第 1 页只有「下一页」（靠右），
   最后一页只有「上一页」（靠左）。 */
.pager > span { flex: 0 0 auto; }

/* 搜索的"会员"角标 */
.lock-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 11px; line-height: 16px; border-radius: 999px;
  color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  vertical-align: middle;
}

/* 电脑端守卫：整站只在手机端显示（后台 /admin 不受影响） */
.mobile-only-guard {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 32px; text-align: center;
}
.mobile-only-guard .mog-box { max-width: 360px; }
.mobile-only-guard .mog-icon { font-size: 54px; line-height: 1; margin-bottom: 14px; }
.mobile-only-guard .mog-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.mobile-only-guard .mog-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.mobile-only-guard .mog-hint { font-size: 13px; color: var(--text-3); line-height: 1.7; margin-top: 10px; }
.mobile-only-guard .mog-link {
  display: inline-block; margin-top: 18px; font-size: 13px;
  color: var(--brand-1); border-bottom: 1px dashed var(--brand-1);
}
body.mobile-guard-on > *:not(.mobile-only-guard) { display: none !important; }

/* ------------------------------------------------------------------ */
/* 资料卡片（列表页）                                                  */
/* ------------------------------------------------------------------ */
.profile-card { overflow: hidden; padding: 0; }
.pc-imgs { position: relative; display: flex; gap: 4px; padding: 4px 4px 0; }
/* 首页两张预览图等宽均分（各占一半） */
.pc-img-main { flex: 1 1 0; width: 50%; min-width: 0; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px 0 0 10px; background: #eef0f2; }
.pc-img-side { flex: 1 1 0; width: 50%; min-width: 0; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0 10px 10px 0; background: #eef0f2; }
.pc-img-ph {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; letter-spacing: 1px;
}
.pc-img-ph-main { background: linear-gradient(160deg, #ffd3df, #ffb6a5); }
.pc-img-ph-side { background: linear-gradient(160deg, #ffd9c2, #ffb6c1); }
.pc-video-badge {
  position: absolute; left: 12px; bottom: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.pc-more {
  position: absolute; right: 10px; bottom: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; padding: 3px 8px; border-radius: 999px;
}
.pc-fav {
  position: absolute; top: 12px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.pc-fav.on { color: var(--brand-1); }

/* 首页卡片里"卡片字段"（自评、相处方式这类长文字）占满整行、最多三行，超出省略 */
.pc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 0; }
.pc-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); min-width: 0; }
.pc-row .ico { flex: 0 0 auto; }
.pc-row .lbl { color: var(--text-3); flex: 0 0 auto; }
.pc-row .val { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-row.pc-row-note { grid-column: 1 / -1; align-items: flex-start; }
.pc-row.pc-row-note .lbl { color: var(--brand-1); }
.pc-row.pc-row-note .val {
  white-space: normal; font-weight: 500; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 卡片上的勾选项：红勾 + 绿色 ✓ 前缀，一眼能看出"是" */
.pc-row.pc-row-check .val { color: #e53935; font-weight: 900; font-size: 18px; line-height: 1; }

.pc-votes { display: flex; gap: 10px; padding: 12px; }
.vote-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: #f2f3f5; color: var(--text-2);
}
.vote-btn.like.on { background: #ffe9ef; color: var(--brand-1); }
.vote-btn.dislike.on { background: #ffecec; color: #e5484d; }

.pc-btn {
  width: 100%; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 16px; font-weight: 700;
}
.pc-btn:active { opacity: .92; }

/* ------------------------------------------------------------------ */
/* 详情页                                                              */
/* ------------------------------------------------------------------ */
.profile-head { display: flex; align-items: flex-start; gap: 10px; }
.profile-head .ph-info { flex: 1; min-width: 0; }
.ph-name { font-size: 20px; font-weight: 700; }
.ph-region { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.ph-fav {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  flex: 0 0 auto;
}
.ph-fav.on { color: var(--brand-1); }

/* 图集：全部图片一次铺开（按数量自适应列数），不再横向滑动 */
.gallery { display: grid; gap: 6px; }
.gallery.cols-1 { grid-template-columns: 1fr; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  background: #eef0f2; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 视频：单独一行，有才显示 */
.video-list { display: flex; flex-direction: column; gap: 10px; }
.video-item { border-radius: 12px; overflow: hidden; background: #000; }
.video-item video { width: 100%; display: block; max-height: 70vh; }

.section-card .sec-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sec-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border-bottom: none; }
.sec-row .l { color: var(--text-2); flex: 0 0 6em; max-width: 45%; }
.sec-row .v { flex: 1; text-align: left; font-weight: 600; white-space: pre-wrap; word-break: break-word; }

/* 勾选表格（check 类型字段）：每行三组「项目 / 选择」，打勾画显眼的红勾 */
.ck-wrap { margin-top: 8px; overflow-x: auto; }
.ck-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.ck-table th, .ck-table td { border: 1px solid var(--line); padding: 8px 6px; text-align: center; vertical-align: middle; }
.ck-table thead th {
  background: var(--brand-1); color: #fff; font-weight: 700;
  font-size: 13px; letter-spacing: 1px; white-space: nowrap;
}
.ck-table thead th.ck-th { width: 12%; }
.ck-table tbody td.ck-item { color: var(--text-2); word-break: break-word; }
.ck-table tbody td.ck-box { width: 12%; }
.ck-table tbody tr:nth-child(even) td { background: var(--bg); }
/* 红勾：加粗放大 + 手写体感，保证在任何主题下都醒目 */
.ck-mark {
  display: inline-block; color: #e53935; font-weight: 900; font-size: 26px; line-height: 1;
  transform: rotate(-8deg) scale(1.15);
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", system-ui, cursive;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
/* 深色主题下红勾要更亮一点才看得清 */
body[data-theme="midnight"] .ck-mark,
body[data-theme="neon"] .ck-mark,
body[data-theme="cyber"] .ck-mark { color: #ff6b6b; text-shadow: none; }

/* 底部固定操作区 */
.contact-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(20,24,40,.06);
}
.contact-dock-inner { max-width: 720px; margin: 0 auto; }
.contact-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.contact-rows { margin-bottom: 10px; }
.contact-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 2px 0; }
.contact-row .v { font-weight: 600; color: var(--text); }
.contact-locked-tip { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* 大图预览 */
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-close { position: absolute; top: 14px; right: 16px; color: #fff; font-size: 28px; z-index: 2; }
.lb-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; }

/* ------------------------------------------------------------------ */
/* 开通会员 vip                                                        */
/* ------------------------------------------------------------------ */
.vip-head { text-align: center; padding: 10px 0 4px; }
.vip-head h1 { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.vip-head .sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.vip-banner {
  background: var(--warn-bg); color: #8a5b00;
  font-size: 13px; padding: 10px 12px; border-radius: 10px;
  margin-bottom: 12px;
}
.vip-banner-title { font-weight: 600; }
.vip-banner-text { margin-top: 2px; opacity: .92; }
.vip-membership {
  background: #e8f8f0; color: var(--ok);
  font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
}

.step-label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.step-label b { color: var(--brand-1); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-card {
  position: relative; border: 2px solid var(--line); border-radius: 14px;
  padding: 14px; background: #fff; transition: border-color .15s;
}
.plan-card.selected { border-color: var(--brand-1); }
.plan-check {
  position: absolute; top: -1px; right: -1px;
  width: 26px; height: 26px;
  background: var(--grad); color: #fff;
  border-radius: 0 12px 0 12px;
  display: none; align-items: center; justify-content: center; font-size: 14px;
}
.plan-card.selected .plan-check { display: flex; }
.plan-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--grad); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
}
.plan-name { font-weight: 700; font-size: 15px; }
.plan-price { font-size: 20px; font-weight: 800; color: var(--brand-1); margin-top: 4px; }
.plan-note { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--line); border-radius: 14px; padding: 12px;
}
.pay-method.selected { border-color: var(--brand-1); }
.pay-method .pm-radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfd3d8;
  flex: 0 0 auto; position: relative;
}
.pay-method.selected .pm-radio { border-color: var(--brand-1); }
.pay-method.selected .pm-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--grad);
}
.pay-method .pm-info { flex: 1; min-width: 0; }
.pay-method .pm-name { font-weight: 600; }
.pay-method .pm-desc { font-size: 12px; color: var(--text-2); }
.pay-method.disabled { opacity: .5; }
.pay-method .pm-side { flex: 0 0 auto; }

.vip-submit { margin-top: 14px; }
.vip-footer-tip { text-align: center; font-size: 12px; color: var(--text-3); margin: 10px 0 20px; }

/* ------------------------------------------------------------------ */
/* 充值 recharge                                                       */
/* ------------------------------------------------------------------ */
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preset {
  border: 2px solid var(--line); border-radius: 12px; padding: 12px;
  text-align: center; font-weight: 700; font-size: 18px; background: #fff;
}
.preset.selected { border-color: var(--brand-1); color: var(--brand-1); background: #fff5f7; }

/* ------------------------------------------------------------------ */
/* 支付 pay                                                            */
/* ------------------------------------------------------------------ */
.pay-countdown {
  background: #ffecef; color: var(--err); text-align: center;
  font-size: 13px; padding: 8px; border-radius: 10px; margin-bottom: 12px;
}
.pay-countdown b { font-size: 15px; font-variant-numeric: tabular-nums; }
.pay-amount { text-align: center; padding: 18px 0 6px; }
.pay-amount .amount { font-size: 40px; font-weight: 800; line-height: 1; }
.pay-amount .currency { font-size: 16px; color: var(--text-2); margin-left: 4px; }
.pay-copy-amt {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  background: #f2f3f5; color: var(--text-2); font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
}
.pay-hint { color: var(--err); font-size: 13px; text-align: center; margin: 8px 0; }

.pay-qr { display: flex; flex-direction: column; align-items: center; padding: 8px 0; }
.pay-qr canvas { border-radius: 12px; }
.qr-fallback {
  text-align: center; color: var(--text-2); font-size: 13px;
  padding: 16px; border: 1px dashed var(--line); border-radius: 12px; margin: 8px 0;
}

.pay-addr { margin-top: 12px; }
.pay-addr .addr-label { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.addr-row { display: flex; gap: 8px; }
.addr-row input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fafbfc;
  color: var(--text); font-size: 13px;
}

.pay-status { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 14px 0 4px; }
.pay-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.pay-status.pending .dot { background: var(--ok); animation: pulse 1.4s infinite; }
.pay-status .txt { font-size: 14px; color: var(--text-2); }
.pay-status.paid .txt { color: var(--ok); font-weight: 700; }
.pay-status.expired .dot { background: var(--text-3); }
.pay-result { text-align: center; font-size: 13px; color: var(--ok); margin-bottom: 6px; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.pay-note { }
.pay-note ol { padding-left: 18px; color: var(--text-2); font-size: 13px; }
.pay-note li { margin: 4px 0; }

.service-card { text-align: center; padding: 18px 10px; }
.service-card .sc-ico { font-size: 40px; margin-bottom: 8px; }

/* ------------------------------------------------------------------ */
/* 聊天 chat                                                           */
/* ------------------------------------------------------------------ */
.chat-main {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: 0; right: 0; bottom: 0;
  max-width: 720px; margin: 0 auto;
  background: var(--bg);
}
.chat-session { display: flex; flex-direction: column; height: 100%; }
.chat-session .chat-messages { flex: 1; overflow-y: auto; padding: 12px; }
.chat-session .chat-inputbar { flex: 0 0 auto; }
.chat-messages { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.chat-msg { display: flex; gap: 8px; max-width: 86%; }
.chat-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--grad); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.chat-bubble {
  padding: 9px 12px; border-radius: 14px; font-size: 15px;
  background: #fff; box-shadow: var(--shadow); word-break: break-word;
  border-top-left-radius: 4px;
}
.chat-msg.me .chat-bubble { background: var(--grad); color: #fff; border-radius: 14px; border-top-right-radius: 4px; }
.chat-time { font-size: 11px; color: var(--text-3); margin-top: 4px; text-align: right; }
.chat-msg.me .chat-time { color: rgba(255,255,255,.75); }
.chat-img { border-radius: 10px; max-width: 200px; cursor: pointer; }

.chat-locked { text-align: center; padding: 48px 20px; }
.chat-locked .ico { font-size: 46px; margin-bottom: 10px; }
.chat-locked .txt { color: var(--text-2); margin-bottom: 16px; }

.chat-inputbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.chat-inputbar-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 8px; width: 100%; }
.chat-img-btn {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: #f2f3f5; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.chat-text {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 20px; background: #f7f8fa;
}
.chat-send-btn {
  flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 20px;
  background: var(--grad); color: #fff; font-weight: 600;
}

/* 客服浮窗 */
.chat-float-overlay {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.chat-float-overlay.open { opacity: 1; pointer-events: auto; }
.chat-float-panel {
  width: 100%; max-width: 720px; height: 72vh;
  background: var(--bg); border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .24s ease;
  overflow: hidden;
}
.chat-float-overlay.open .chat-float-panel { transform: translateY(0); }
.chat-float-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.chat-float-title { font-weight: 700; }
.chat-float-close { font-size: 24px; color: var(--text-3); width: 30px; height: 30px; }
.chat-float-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.chat-float-body .chat-messages { flex: 1; }

/* 图片大图预览（聊天） */
.img-view {
  position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center;
}
.img-view img { max-width: 100%; max-height: 100%; }
