:root {
  --bg: #f5f5f7; --card: #fff; --text: #1d1d1f; --muted: #86868b; --border: #e5e5ea;
  --accent: #ff6b3d; --accent-soft: #fff0ea; --ok: #1a9e5a; --danger: #e5484d; --mine: #ff6b3d; --mine-text: #fff; --other: #fff;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --card: #1c1c1e; --text: #f5f5f7; --muted: #98989d; --border: #2c2c2e; --accent-soft: #3a2118; --other: #2c2c2e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand b { font-size: 20px; color: var(--accent); letter-spacing: 1px; }
.brand span { font-size: 12px; color: var(--muted); }
.back { border: 0; background: none; font-size: 28px; line-height: 1; padding: 0 6px 4px 0; cursor: pointer; color: var(--accent); }
.top-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sub .brand { display: none; }
.top-contact { margin-left: auto; flex: none; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.top-login { flex: none; color: var(--accent); font-size: 14px; font-weight: 600; }
@media (max-width: 420px) { .brand span { display: none; } }   /* 手机上顶栏放不下:去掉「精神小伙小妹 · 同城互助交友」小字 */
.modal-box .ct-field { margin-bottom: 10px; }
.modal-box .ct-mail { font-size: 12px; color: var(--muted); margin: 0 0 12px; }

main { max-width: 640px; margin: 0 auto; padding: 12px 16px 24px; }

/* 底部导航 */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--card); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 0 6px; font-size: 11px; color: var(--muted); position: relative; }
.tabs a i { font-style: normal; font-size: 20px; line-height: 24px; }
.tabs a.on { color: var(--accent); }
.badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }

/* 通用 */
.card { display: block; background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.err { color: var(--danger); }
h2 { font-size: 17px; margin: 18px 0 8px; }
h2:first-child { margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 8px 18px; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.danger { color: var(--danger); }
.btn.block { display: flex; width: 100%; padding: 12px; font-size: 16px; }
.btn.sm { padding: 4px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* 表单 */
.form label { display: block; margin-bottom: 14px; }
.form label > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  width: 100%; border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 10px 12px; font-size: 16px; outline: none; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { min-height: 110px; resize: vertical; }
.form .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.form .three .street { grid-column: 1 / -1; }   /* 乡镇 / 街道单独一行 */
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.form .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.form .agree input { margin-top: 3px; }
.form-msg { min-height: 20px; font-size: 13px; margin: 6px 0; color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { margin: 0; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 14px; color: var(--text) !important; margin: 0 !important; }
.pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; }
/* 编辑资料(2026-11-01 站长要求):必填红 *、每项下面一行小字说明、性别两个大按钮、身高体重带单位 */
.pf-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.req { color: #ef4444; font-style: normal; font-weight: 700; margin-left: 2px; }
.pf label, .pf .fld { margin-bottom: 18px; }
.pf label > span, .pf .fld > span { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pf-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.pf-need { font-style: normal; font-weight: 500; font-size: 12px; color: #ef4444; margin-left: 8px; }
.pick.big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick.big label, .pf .pick label { display: block; margin: 0; }
.pick.big span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0; border-radius: 12px; font-size: 16px; border-width: 1.5px; }
.pick.big span b { font-size: 18px; line-height: 1; }
.pick.big span { font-weight: 500; }
.pick.big input:checked + span { font-weight: 700; }
.pf .agree > span { display: inline; font-size: 13px; font-weight: 400; color: var(--muted); margin: 0; }
.pick.big .g-m { color: #3b82f6; }
.pick.big .g-f { color: #ec4899; }
.unit { position: relative; }
.form .unit input { padding-right: 40px; }
.unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--muted); pointer-events: none; }

/* 广场 */
.where { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 8px; }
.where b { font-size: 16px; }
/* 放不下就换行,手机上不用往右拉(站长 2026-10-31 要求) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips button { flex: none; border: 0; background: var(--card); border-radius: 999px; padding: 5px 13px; font-size: 14px; cursor: pointer; color: var(--muted); }
.chips button.on { background: var(--text); color: var(--card); font-weight: 600; }
.chips.cat button.on { background: var(--accent); color: #fff; }
.chips a.chip { flex: none; background: var(--card); border-radius: 999px; padding: 5px 13px; font-size: 14px; color: var(--muted); text-decoration: none; }
.chips a.chip.on { background: var(--text); color: var(--card); font-weight: 600; }
/* 我的:访客 / 我感兴趣 / 被关注 三个数字;列表每行一个人 */
.soc { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 0; }
.soc a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: inherit; text-decoration: none; }
.soc a + a { border-left: 1px solid var(--border); }
.soc b { font-size: 20px; }
.soc span { font-size: 13px; color: var(--muted); }
.soc-new { position: absolute; top: -4px; left: calc(50% + 14px); font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #ef4444; border-radius: 999px; padding: 1px 6px; }
.person { display: flex; align-items: center; gap: 12px; }
.person .mid { flex: 1; min-width: 0; }
.person .pn { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.person .pn b { cursor: pointer; }
.person .acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.tag.new { background: #ef4444; color: #fff; }
.tag.mutual { background: #fdf2f8; color: #db2777; }
.btn.liked { color: #ff3d6e; border-color: #ff3d6e; }
.tip { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 6px 0 10px; }
.post h3 { margin: 6px 0 6px; font-size: 16px; line-height: 1.4; word-break: break-word; }
.post-top { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.tag.demo { background: var(--bg); color: var(--muted); font-weight: 500; border: 1px solid var(--border); }
.dist { margin-left: auto; color: var(--accent); font-weight: 600; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.who { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; }
.av.lg { width: 64px; height: 64px; font-size: 26px; }
.av.md { width: 42px; height: 42px; font-size: 17px; }
.g-m { color: #2f80ed; } .g-f { color: #eb5a8c; }
.more { display: block; margin: 8px auto; }

/* 帖子详情 / 主页 */
.detail h1 { font-size: 20px; margin: 8px 0 12px; line-height: 1.4; word-break: break-word; }
.kv { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; font-size: 14px; margin-bottom: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
/* 站长管理里的访客表 */
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 500; }
/* 服务器直接出的首页 / 帖子页内容(给搜索引擎,前端加载完会换掉) */
.seo h1 { font-size: 20px; margin: 0 0 6px; }
.seo h2 { font-size: 16px; margin: 0 0 6px; }
.seo ul { padding-left: 18px; margin: 6px 0; }
.seo li { margin: 4px 0; }
.body { white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.actions .btn.primary { flex: 1; }
.profile { text-align: center; padding: 22px 16px; }
.profile .name { font-size: 20px; font-weight: 700; margin-top: 8px; }
.profile .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.profile .bio { margin-top: 10px; white-space: pre-wrap; word-break: break-word; }
.profile .actions { justify-content: center; }

/* 消息列表 */
.chat-item { display: flex; gap: 12px; align-items: center; }
.chat-item .mid { flex: 1; min-width: 0; }
.chat-item .last { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .right { text-align: right; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-item .right .badge { position: static; }

/* 聊天 */
body.chat main { padding-bottom: 90px; }
body.chat .tabs { display: none; }
body.chat { padding-bottom: 0; }
.msgs { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 16px; background: var(--other); white-space: pre-wrap; word-break: break-word; align-self: flex-start; border-bottom-left-radius: 4px; cursor: default; }
.msg.mine { align-self: flex-end; background: var(--mine); color: var(--mine-text); border-radius: 16px; border-bottom-right-radius: 4px; }
.msg-time { align-self: center; font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.msg-rep { align-self: flex-start; font-size: 12px; margin: -4px 0 0 6px; }
.msg-rep.mine { align-self: flex-end; margin: -4px 6px 0 0; }
/* 撤回(2026-11-01 站长说网页上找不到):做成明显的小按钮;自己的消息鼠标放上去是手形,提示能点 */
.msg-rep.mine.recall { margin-top: 2px; padding: 4px 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--card); color: var(--accent); font-weight: 600; }
.msg.mine { cursor: pointer; }
.msg.pic { padding: 4px; background: none !important; }
.msg-img { display: block; max-width: 200px; max-height: 260px; border-radius: 12px; cursor: zoom-in; background: var(--bg); margin-bottom: 4px; }
.msg.pic .msg-img { margin-bottom: 0; }
/* 私信视频(2026-11-01):竖的横的都限制在气泡里;下面一行「🎬 视频 · 2:31」(点它出撤回 / 举报) */
.msg.vid { padding: 4px 4px 6px; }
.msg-video { display: block; width: 240px; max-width: 100%; max-height: 360px; border-radius: 12px; background: #000; }
.vid-cap { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 6px 0; }
.vid-cap span { opacity: .85; flex: 1; }
.vid-recall { flex: none; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.vid-exp { padding: 6px 8px; font-size: 13px; opacity: .8; }
.msg.vid-up { width: 240px; max-width: 78%; cursor: default; }
.vu-t { font-size: 14px; }
.vu-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); margin: 6px 0 4px; overflow: hidden; }
.vu-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .3s; }
.msg.vid-up.working .vu-bar i { animation: vuPulse 1.2s ease-in-out infinite alternate; }
@keyframes vuPulse { from { opacity: .4; } to { opacity: 1; } }
.vu-sub { color: rgba(255,255,255,.85) !important; line-height: 1.4; }
.msg.vid-up.fail { background: #fee2e2; color: #b91c1c; }
.msg.vid-up.fail .vu-bar, .msg.vid-up.fail .vu-sub { display: none; }
.vu-x { color: inherit !important; text-decoration: underline; margin-top: 4px; }
.composer .pic-btn + .pic-btn { margin-left: -6px; }
.composer .pic-btn { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; border-radius: 50%; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--border); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.composer form { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 18px; padding: 8px 14px; font-size: 16px; max-height: 120px; background: var(--bg); outline: none; }
.notice { text-align: center; font-size: 13px; color: var(--muted); background: var(--card); border-radius: 10px; padding: 8px; margin-bottom: 10px; }

/* 我的 */
.menu a, .menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 13px 16px; border: 0; background: none; border-bottom: 1px solid var(--border); cursor: pointer; text-align: left; font-size: 15px; }
.menu > :last-child { border-bottom: 0; }
.menu .card { padding: 0; overflow: hidden; }
details.card > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.card > summary::after { content: '›'; color: var(--muted); transition: transform .2s; }
details.card[open] > summary::after { transform: rotate(90deg); }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 12px; }

/* 管理 */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.stats div { background: var(--card); border-radius: 12px; padding: 10px; text-align: center; }
.stats b { display: block; font-size: 20px; }
.stats span { font-size: 12px; color: var(--muted); }
.quote.reply { background: var(--accent-soft); }
/* 头像照片、相册 */
img.av { object-fit: cover; background: var(--bg); }
.who-u { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.album { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.al-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); border: 2px solid transparent; }
/* 「我的」页头像:点了弹出修改头像;右下角小圆标提示能换 */
.av-edit { position: relative; display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.av-edit i { position: absolute; right: -4px; bottom: -2px; font-style: normal; font-size: 11px; line-height: 1; padding: 4px 5px; border-radius: 10px; background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
/* 修改头像弹窗里的相册:现在的头像打个勾 */
.av-pick { margin-top: 0; }
.av-pick .al-item { position: relative; }
.av-pick .al-item.on::after { content: '当前'; position: absolute; left: 4px; top: 4px; font-size: 11px; padding: 1px 5px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.choose label.btn { text-align: center; }

/* 广场:一行两个动态,每格一样大(封面 3:4 + 固定高度的文字区) */
.av.xs { width: 20px; height: 20px; font-size: 10px; }
.cur-filter { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: var(--card); border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; cursor: pointer; text-align: left; }
.cur-filter b { font-size: 15px; }
.cur-filter span { color: var(--muted); }
.cur-filter .cf-cat { color: var(--accent); font-weight: 600; }
.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .pt-grid { gap: 12px; } }
.pt { display: flex; flex-direction: column; background: var(--card); border-radius: 12px; overflow: hidden; }
.pt-cover { position: relative; aspect-ratio: 3 / 4; background: #ddd center / cover no-repeat; }
.pt-textc { display: flex; align-items: flex-end; }
.pt-text { color: #fff; padding: 14px 12px 16px; width: 100%; }
.pt-text svg { opacity: .9; margin-bottom: 8px; }
.pt-text p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pt-cat, .pt-demo, .pt-n { position: absolute; top: 8px; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 8px; color: #fff; background: rgba(0,0,0,.38); backdrop-filter: blur(4px); }
.pt-cat { left: 8px; }
.pt-demo { left: auto; right: 8px; }
.pt-n { top: auto; bottom: 8px; right: 8px; }
.pt-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.pt-body h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pt-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-who { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; }
.pt-who .who-u { display: flex; align-items: center; gap: 5px; min-width: 0; }
.pt-who .who-u > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-who .muted { flex: none; font-size: 11px; }
/* 悬浮筛选按钮:半透明、毛玻璃,在底部导航上面 */
.fab-filter { position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 9; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); background: color-mix(in srgb, var(--card) 62%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 4px 18px rgba(0,0,0,.15); cursor: pointer; }
@media (min-width: 700px) { .fab-filter { right: calc(50% - 320px + 16px); } }
.modal-box .chips button:not(.on) { background: var(--bg); }
.fs-label { font-size: 13px; color: var(--muted); margin: 10px 0 8px; display: flex; gap: 8px; align-items: center; }
.fs-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-height: 52vh; overflow-y: auto; }
.fs-cats .cat-tile { padding: 10px 4px 8px; background: var(--bg); cursor: pointer; border: 2px solid transparent; }
.fs-cats .cat-tile.on { border-color: var(--accent); }
.fs-cats .cat-tile b { font-size: 12px; }
.fs-cats .cat-ic { width: 38px; height: 38px; border-radius: 12px; }

/* 广场:分类方块 */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border-radius: var(--radius); padding: 14px 6px 12px; text-align: center; }
.cat-tile:active { transform: scale(.97); }
.cat-tile b { font-size: 15px; }
.cat-tile small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.cat-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 2px; }
/* 发布页的标签:点一下选上,再点取消 */
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag-pick button { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tag-pick .cat-ic { width: 22px; height: 22px; border-radius: 50%; margin: 0; }   /* 发布页标签前的小图标(和筛选里同一套) */
.tag-pick button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* 举报:证据格子、处理区 */
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.ev-grid img, .ev-grid video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #000; display: block; }
.ev-grid video { grid-column: 1 / -1; aspect-ratio: 16 / 9; object-fit: contain; }
.rep-cat { background: #fdecec; color: #c62828; }
.rep-do { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); display: grid; gap: 8px; }
.rep-res { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13px; }
#ev .up-add { font-size: 14px; }
.up-item video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.ev-v { position: absolute; left: 4px; bottom: 4px; font-size: 10px; color: #fff; background: rgba(0,0,0,.55); padding: 1px 5px; border-radius: 6px; }
.up-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; background: rgba(0,0,0,.45); }
.adm-tile { position: relative; }
.adm-badge { position: absolute; top: 8px; right: 10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 20px; }
.tip.warn { background: #fff4e5; color: #8a4b00; line-height: 1.6; }
@media (prefers-color-scheme: dark) { .tip.warn { background: #3a2a10; color: #ffcf8a; } }

/* 遇见(首页):一叠卡片,左右滑 */
.meet-head { display: flex; align-items: baseline; gap: 8px; margin: 2px 2px 10px; }
.meet-head b { font-size: 20px; }
.meet-stack { position: relative; height: calc(100vh - 290px); height: calc(100dvh - 290px); min-height: 360px; max-height: 640px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.meet-stack .empty { padding-top: 30%; }
.mc { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: 0 6px 24px rgba(0,0,0,.12); will-change: transform; }
.mc-next { transform: scale(.95) translateY(10px); filter: brightness(.96); }
.mc-top { cursor: grab; touch-action: none; }   /* 别用 .top,那是顶栏的类名;touch-action: none:卡片上的滑动不让浏览器拿去滚页面 */
.mc-ph { position: absolute; inset: 0; background: #ddd center / cover no-repeat; }
.mc-letter { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.92); font-size: 120px; font-weight: 700; }
.mc-dots { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.mc-dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.45); }
.mc-dots i.on { background: #fff; }
.mc-stamp { position: absolute; top: 34px; z-index: 3; padding: 4px 12px; border: 3px solid; border-radius: 10px; font-size: 22px; font-weight: 800; letter-spacing: 2px; opacity: 0; background: rgba(255,255,255,.75); pointer-events: none; }
.mc-stamp.s-like { left: 18px; color: #ff3d6e; transform: rotate(-12deg); }     /* 往右拖时出现在左上角 */
.mc-stamp.s-nope { right: 18px; color: #6b7280; transform: rotate(12deg); }
.mc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 56px 16px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.mc-name { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.mc-name span { font-size: 18px; font-weight: 500; }
.mc-name em { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 8px; }
.mc-on { background: #1fbf75; color: #fff; }
.install-steps p { margin: 8px 0; line-height: 1.7; }
/* 下载 APP 弹窗(2026-11-01):图标、版本、直接下载按钮、二维码 */
.app-dl { text-align: center; }
.app-dl h3 { margin: 10px 0 4px; }
.app-ic { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 4px 14px rgba(255,107,61,.35); }
.app-dl .btn.block { margin-top: 14px; text-decoration: none; }
.app-qr { margin-top: 14px; }
.app-qr img { width: 150px; height: 150px; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: #fff; }
.app-ios { font-size: 14px; margin: 12px 0 0; }
#topApp { white-space: nowrap; }
/* 服务器监控(2026-11-01):进度条 70% 黄、90% 红;告警条挂在管理首页和监控页最上面 */
.mon-row + .mon-row { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.mon-bar { height: 8px; border-radius: 4px; background: var(--bg); margin: 6px 0 4px; overflow: hidden; }
.mon-bar i { display: block; height: 100%; background: #10b981; border-radius: 4px; }
.mon-bar.warn i { background: #f59e0b; } .mon-bar.crit i { background: #ef4444; }
.mon-p.warn { color: #d97706; } .mon-p.crit { color: #dc2626; }
.mon-alert { display: block; background: #fee2e2; color: #b91c1c; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
/* 认证标签(2026-11-01):真人 蓝、精神 橙红;vb-dot 是只带图标的小圆(广场卡片) */
.vb { display: inline-flex; align-items: center; gap: 3px; flex: none; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1; padding: 2px 7px 2px 2px; border-radius: 999px; color: #fff; vertical-align: middle; white-space: nowrap; }
.vb svg { flex: none; display: block; }
.vb + .vb { margin-left: 4px; }
.vb-real { background: #1d8cf0; color: #fff; }
.vb-spirit { background: linear-gradient(135deg, #ff6b3d, #e11d48); color: #fff; }
.mc-name em.vb { padding: 2px 7px 2px 2px; border-radius: 999px; font-size: 11px; }
.vb.sm { font-size: 10px; padding: 1px 5px 1px 1px; gap: 2px; }
.vb.sm svg { width: 12px; height: 12px; }
.pt-who .who-u .vb + .vb { margin-left: 0; }
.vb-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 15px; height: 15px; border-radius: 50%; font-style: normal; }
.vb-dot svg { width: 100%; height: 100%; }
.vb-line { margin-top: 6px; }
.verify-entry { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.ve-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #0ea5e9; color: #fff; }
.ve-ic svg { width: 18px; height: 18px; }
.vf p { margin: 8px 0; }
.vf-t { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.vf-t .vb-dot { width: 22px; height: 22px; }
.vf-t .vb-dot svg { width: 13px; height: 13px; }
.vs { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.vs.ok { background: #dcfce7; color: #15803d; }
.vs.wait { background: #fef3c7; color: #b45309; }
.vs.no { background: #fee2e2; color: #b91c1c; }
.vf-demo { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.vf-demo img { flex: none; width: 120px; height: 130px; border-radius: 14px; }
.vf-demo p { margin: 4px 0; }
.vf-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0; text-align: center; }
.vf-cats span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vf-cats .cat-ic { width: 38px; height: 38px; border-radius: 12px; margin: 0; }
.vf-cats small { font-size: 12px; color: var(--muted); }
.vf-done { font-size: 14px; color: #15803d; background: #f0fdf4; border-radius: 10px; padding: 10px 12px; }
.vf-done.wait { color: #b45309; background: #fffbeb; }
.vf-err { font-size: 13px; color: #b91c1c; background: #fef2f2; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.thumbs.wrap { flex-wrap: wrap; }
/* 在线:昵称后的小绿点、「● 在线」 */
.on-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1fbf75; box-shadow: 0 0 0 2px rgba(31,191,117,.18); margin: 0 4px; vertical-align: middle; font-style: normal; }
.on-txt { color: #1fbf75; font-size: 12px; font-weight: 600; white-space: nowrap; }
.on-txt .on-dot, .who-u .on-dot { margin-left: 0; }
.on-line { margin-top: 4px; }
.mc-sub { font-size: 13px; opacity: .92; margin-top: 2px; }
.mc-bio { font-size: 13px; opacity: .9; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-more { position: absolute; right: 12px; bottom: 16px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: #333; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; }
.mc-info { cursor: pointer; }
.mc-info { padding-right: 96px; }   /* 给右下角「看资料」按钮留位置 */
.meet-btns { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 16px 0 6px; }
.mb { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--card); color: var(--muted); box-shadow: 0 3px 12px rgba(0,0,0,.1); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mb.big { width: 64px; height: 64px; }
.mb.like { color: #ff3d6e; }
.mb.nope { color: #8e8e93; }
.mb.chat { color: var(--accent); }
@media (max-width: 400px) { .meet-btns { gap: 14px; } }   /* 加了私信按钮,一排 5 个,窄屏缩小间距 */
.mb:active { transform: scale(.92); }
.meet-hint { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.6; }
.match { text-align: center; }
.match-ic { color: #ff3d6e; margin: 4px 0 6px; }
.match-ic svg { width: 56px; height: 56px; }
.meet-f label > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.meet-f > label { display: block; margin-bottom: 14px; }
.al-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.al-add { aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--muted); cursor: pointer; }
.choose { display: grid; gap: 8px; }
.req-row { padding: 6px 0; }
.audit-row { padding: 8px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.audit-row:last-child { border-bottom: 0; }
.audit-msgs { margin-top: 10px; }
.fb-in { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 16px; background: var(--bg); }
.quote { background: var(--bg); border-radius: 8px; padding: 8px 10px; margin: 6px 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; }

/* 图片 */
.thumbs { display: flex; gap: 6px; margin-top: 10px; position: relative; }
.th { width: calc((100% - 12px) / 3); aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--bg); cursor: zoom-in; }
.th-more { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 999px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--bg); cursor: zoom-in; }
.grid.one { grid-template-columns: 1fr; }
.grid.one img { aspect-ratio: auto; max-height: 70vh; object-fit: contain; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-n { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; opacity: .8; }
.up-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.uploader { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.form .up-add, .up-item { position: relative; aspect-ratio: 1; margin: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.form .up-add { border: 1.5px dashed var(--border); color: var(--muted); font-size: 28px; cursor: pointer; background: var(--card); }
.up-item { background: var(--bg); font-size: 12px; color: var(--muted); overflow: hidden; }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item.fail { color: var(--danger); }
.up-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; }
.adm-imgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.adm-imgs .th { width: 100%; }

/* 协议 */
.terms h2 { font-size: 16px; }
.terms p, .terms li { font-size: 14px; color: var(--text); }
.terms ul { padding-left: 20px; }

/* 弹窗 / 提示 */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.modal-box { width: 100%; max-width: 480px; background: var(--card); border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .modal { align-items: center; } .modal-box { border-radius: 18px; } }
.modal-box h3 { margin: 0 0 10px; font-size: 17px; }
.modal-box p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.modal-box textarea, .modal-box input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 16px; background: var(--bg); margin-bottom: 12px; }
.modal-box .row { justify-content: flex-end; }
.ptr { position: fixed; top: -30px; left: 50%; transform: translateX(-50%); z-index: 80; padding: 6px 16px; border-radius: 999px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.ptr.show { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60; background: rgba(0,0,0,.8); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 14px; max-width: 86vw; text-align: center; }

/* 登录页 */
.hero { text-align: center; padding: 28px 0 18px; }
.hero h1 { font-size: 26px; margin: 0 0 6px; }
.hero p { margin: 0; color: var(--muted); }
.hero .cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
