/* KK H5 样式 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --blue: #12b7f5;
  --blue-dark: #0a9ad4;
  --bg: #f5f6f8;
  --text: #1f2329;
  --sub: #8a8f99;
  --line: #ebedf0;
  --w: 480px;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #e6e8eb;
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.app {
  max-width: var(--w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}
.app.full { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

/* ---------- 顶栏 ---------- */
.header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--w); height: 52px; z-index: 20;
  background: #fff; display: flex; align-items: center; padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.header.blue { background: var(--blue); border-bottom-color: var(--blue); color: #fff; }
.header .back {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  margin-left: -6px; color: inherit; text-decoration: none; font-size: 20px; flex: 0 0 auto;
}
.header .title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.header .act { min-width: 34px; text-align: right; font-size: 14px; color: inherit; text-decoration: none; flex: 0 0 auto; }
.header .act.blue-txt { color: var(--blue); }
.header .sub-title { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 400; }

.page { padding-top: 52px; padding-bottom: 62px; }
.page-plain { padding-top: 0; padding-bottom: 0; }

/* ---------- 列表 ---------- */
.list { background: #fff; }
.row {
  display: flex; align-items: center; padding: 11px 12px; background: #fff;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.row:active { background: #f2f4f6; }
.row .av { margin-right: 10px; flex: 0 0 auto; }
.row .info { flex: 1; min-width: 0; }
.row .name { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.row .name .nm-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .desc { font-size: 12.5px; color: var(--sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .st-line { display: flex; align-items: center; min-width: 0; margin-top: 3px; font-size: 12.5px; color: var(--sub); overflow: hidden; }
.st-dot { width: 7px; height: 7px; border-radius: 50%; background: #19c37d; box-shadow: 0 0 0 2px rgba(25,195,125,.13); flex: 0 0 auto; margin-right: 5px; }
.st-dot.off { background: #c3c8d0; box-shadow: none; }
.st-label { color: #16a05d; flex: 0 0 auto; }
.st-label.off { color: #9aa0a9; }
.st-sep { color: #d9dde3; margin: 0 6px; flex: 0 0 auto; }
.st-txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-act { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #e8a020; }
.st-act .star { margin-right: 2px; }
.row .meta { flex: 0 0 auto; text-align: right; margin-left: 8px; }
.row .meta .time { font-size: 11.5px; color: #b3b8c0; }
.badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px;
  border-radius: 9px; background: #fa5151; color: #fff; font-size: 11px; text-align: center; margin-top: 5px;
}
.badge.gray { background: #c7ccd4; }
.sec-title { padding: 14px 12px 7px; font-size: 12.5px; color: var(--sub); }
.group-label { padding: 12px 12px 6px; font-size: 12.5px; color: var(--sub); }

/* ---------- 头像 ---------- */
.av {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: #fff; font-weight: 600; overflow: hidden;
  background: #cfd5dd; flex: 0 0 auto; object-fit: cover;
}
.av.round { border-radius: 50%; }
.av img, img.av { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--w); z-index: 20;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; text-align: center; text-decoration: none; color: #7a808a;
  padding: 7px 0 6px; font-size: 11.5px; position: relative;
}
.tabbar a.on { color: var(--blue); }
.tabbar a .ic { display: block; margin: 0 auto 2px; width: 23px; height: 23px; }
.tabbar a .dot {
  position: absolute; top: 5px; left: 50%; margin-left: 8px;
  min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
  border-radius: 8px; background: #fa5151; color: #fff; font-size: 10px;
}

/* ---------- 搜索 ---------- */
.searchbar { padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.searchbar input {
  width: 100%; height: 34px; border: none; border-radius: 17px; background: #f2f3f5;
  padding: 0 14px; font-size: 14px; outline: none;
}
.searchbar input::placeholder { color: #b3b8c0; }

/* ---------- 表单/按钮 ---------- */
.btn {
  display: block; width: 100%; height: 44px; line-height: 44px; text-align: center;
  border: none; border-radius: 22px; background: var(--blue); color: #fff; font-size: 16px;
  font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:active { opacity: .9; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: #ff5b5b; }
.btn.small { width: auto; height: 32px; line-height: 30px; padding: 0 16px; font-size: 13px; border-radius: 16px; }
.btn[disabled] { background: #c9d3dc; color: #fff; }
.field { display: flex; align-items: center; background: #fff; padding: 0 14px; height: 50px; border-bottom: 1px solid var(--line); }
.field label { flex: 0 0 76px; color: #5a616b; font-size: 14.5px; }
.field input, .field select {
  flex: 1; border: none; outline: none; font-size: 15px; background: transparent; color: var(--text);
  min-width: 0;
}
.field .val { flex: 1; text-align: right; color: var(--sub); font-size: 14px; }
.field textarea { flex: 1; border: none; outline: none; font-size: 15px; resize: none; background: transparent; font-family: inherit; }
.card { background: #fff; border-radius: 12px; margin: 12px; padding: 4px 0; overflow: hidden; }
.card-nopad { background: #fff; border-radius: 12px; margin: 12px; padding: 14px; }
.pad { padding: 20px 16px; }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; background: linear-gradient(160deg, #16c0ff 0%, #0a9ad9 55%, #067fb8 100%); display: flex; flex-direction: column; }
.login-top { padding: 64px 28px 28px; color: #fff; }
.login-top .logo { font-size: 40px; font-weight: 700; letter-spacing: 2px; }
.login-top .sub { font-size: 13px; opacity: .85; margin-top: 6px; }
.login-box { background: #fff; border-radius: 18px 18px 0 0; flex: 1; padding: 22px 20px 30px; margin-top: 8px; }
.tabs { display: flex; margin-bottom: 18px; }
.tabs span { padding: 6px 4px; margin-right: 20px; font-size: 16px; color: var(--sub); position: relative; }
.tabs span.on { color: var(--text); font-weight: 600; }
.tabs span.on:after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 2px; background: var(--blue); }
.login-box .field { padding: 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.login-box .field label { flex: 0 0 68px; color: #8a8f99; }
.login-tip { font-size: 12px; color: var(--sub); margin: 14px 0 18px; line-height: 1.6; }

/* ---------- 聊天页 ---------- */
.chat-head {
  height: 52px; display: flex; align-items: center; padding: 0 12px; background: #fff;
  border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.chat-head .back { width: 30px; font-size: 20px; text-decoration: none; color: var(--text); }
.chat-head .who { flex: 1; text-align: center; }
.chat-head .who .n { font-size: 16px; font-weight: 600; }
.chat-head .who .s { font-size: 11px; color: var(--sub); }
.chat-head .act { width: 30px; text-align: right; font-size: 18px; color: var(--sub); text-decoration: none; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 18px; -webkit-overflow-scrolling: touch; }
.msg { display: flex; margin-bottom: 14px; align-items: flex-start; }
.msg.mine { flex-direction: row-reverse; }
.msg .av { margin: 0 8px; }
.bubble-col { max-width: 72%; }
.bubble {
  padding: 9px 12px; border-radius: 8px; background: #fff; font-size: 14.5px; line-height: 1.45;
  word-break: break-word; white-space: pre-wrap; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  display: inline-block; max-width: 100%;
}
.msg.mine .bubble { background: var(--blue); color: #fff; }
.msg.mine .bubble-col { text-align: right; }
.meta-line { font-size: 11px; color: #b3b8c0; margin-top: 4px; }
.msg.mine .meta-line { text-align: right; }
.audit-tip { font-size: 11px; color: #c26a00; background: #fff3e6; border-radius: 8px; padding: 3px 8px; margin-top: 4px; display: inline-block; }
.bubble img { max-width: 180px; max-height: 240px; border-radius: 6px; display: block; cursor: pointer; }
.sys { text-align: center; font-size: 12px; color: #9aa0a9; margin: 10px 0; }
.sys span { background: #e9ebef; padding: 3px 10px; border-radius: 10px; }
.inputbar {
  flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px;
  background: #fff; border-top: 1px solid var(--line); padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.inputbar .plus {
  width: 34px; height: 34px; border-radius: 50%; background: #f2f3f5; color: #5a616b;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto;
}
.inputbar textarea {
  flex: 1; min-height: 36px; max-height: 110px; border: none; outline: none; resize: none;
  background: #f2f3f5; border-radius: 8px; padding: 8px 10px; font-size: 15px; font-family: inherit;
  line-height: 1.4;
}
.inputbar .send {
  flex: 0 0 auto; height: 34px; line-height: 34px; padding: 0 14px; border: none; border-radius: 17px;
  background: var(--blue); color: #fff; font-size: 14px;
}
.inputbar .send[disabled] { background: #c9d3dc; }

/* ---------- 表情 / 更多面板 ---------- */
.panel {
  flex: 0 0 auto; background: #f7f8fa; border-top: 1px solid var(--line);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
}
.emoji-panel .panel-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  max-height: 34vh; overflow-y: auto;
}
.emoji-btn {
  border: none; background: transparent; font-size: 24px; line-height: 1;
  padding: 6px 0; border-radius: 8px; cursor: pointer;
}
.emoji-btn:active { background: #e9ebef; }
.emoji-panel .panel-tabs {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 0 4px;
}
.emoji-panel .emoji-del { font-size: 13px; color: #5a616b; text-decoration: none; }
.emoji-panel .panel-hint { font-size: 11.5px; color: #b3b8c0; }

.more-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 12px; }
.more-panel .mi { text-align: center; cursor: pointer; }
.more-panel .mi .ico {
  width: 52px; height: 52px; margin: 0 auto 6px; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.more-panel .mi div:last-child { font-size: 12.5px; color: #5a616b; }

/* ---------- 文件气泡 ---------- */
.file-bubble {
  display: flex; align-items: center; gap: 10px; min-width: 190px;
  text-decoration: none; color: #1f2329;
}
.file-bubble .fi {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 8px;
  background: #e8f3ff; color: #12b7f5; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; letter-spacing: .5px;
}
.msg.mine .file-bubble .fi { background: rgba(255,255,255,.24); color: #fff; }
.file-bubble .fmain { display: flex; flex-direction: column; text-align: left; }
.file-bubble .fn { font-size: 13.5px; word-break: break-all; max-width: 180px; }
.file-bubble .fs { font-size: 11.5px; color: #9aa0a9; margin-top: 3px; }
.msg.mine .file-bubble .fs { color: rgba(255,255,255,.8); }

/* ---------- 相册 ---------- */.album-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #f5f6f8; }
.album-ops { display: flex; gap: 10px; padding: 12px 14px; }
.album-ops .op {
  flex: 1; height: 40px; border: none; border-radius: 20px; background: var(--blue);
  color: #fff; font-size: 14px;
}
.album-ops .op.ghost { background: #fff; color: #12b7f5; border: 1px solid #cfeafb; }
.book-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 4px 14px 24px; }
.bk { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); cursor: pointer; }
.bk-cover { position: relative; aspect-ratio: 4/3; background: #eef1f5; }
.bk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-cover .bk-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #b8c0cc; }
.bk-cover .bk-num { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 9px; }
.bk-cover .bk-lock { position: absolute; right: 8px; top: 8px; font-size: 14px; background: rgba(0,0,0,.45); border-radius: 50%; width: 24px; height: 24px; line-height: 24px; text-align: center; }
.bk-name { font-size: 14px; color: #1f2329; padding: 9px 10px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-pv { font-size: 11px; color: #9aa1ab; padding: 0 10px 10px; }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px 12px 20px; }
.album-grid .ph { position: relative; border-radius: 6px; overflow: hidden; background: #fff; }
.album-grid .ph img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; display: block; }
.album-grid .ph .ph-note {
  font-size: 11px; color: #5a616b; padding: 4px 5px 5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.album-grid .ph .ph-note:empty { display: none; }
.album-grid .ph .ph-set {
  position: absolute; right: 22px; top: 4px; background: rgba(18,183,245,.85); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 8px; line-height: 1.3;
}
.album-grid .ph .del {

  position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 13px; line-height: 22px; text-align: center;
}
.album-tip { text-align: center; font-size: 11.5px; color: #b3b8c0; padding: 0 0 24px; }
.album-lock { padding: 60px 30px; text-align: center; }
.album-lock .lk-ico { font-size: 40px; }
.album-lock .lk-t { font-size: 15px; color: #1f2329; margin-top: 12px; }
.album-lock .lk-q { font-size: 14px; color: #5a616b; background: #fff; border-radius: 10px; padding: 14px; margin: 16px 0; }
.album-lock .lk-input { width: 100%; height: 44px; border: 1px solid #dfe3e8; border-radius: 10px; padding: 0 12px; font-size: 14px; box-sizing: border-box; }
.album-lock .btn { height: 44px; line-height: 44px; border-radius: 22px; background: var(--blue); color: #fff; font-size: 15px; }
.album-lock .lk-hint { font-size: 11.5px; color: #b3b8c0; margin-top: 12px; }

/* 底部弹层（相册权限等） */
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60; display: flex; align-items: flex-end; }
.sheet { width: 100%; background: #fff; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-t { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 14px; }
.sheet .opt { display: flex; align-items: center; gap: 8px; padding: 10px 2px; font-size: 14px; color: #1f2329; }
.sheet .opt input { width: 16px; height: 16px; }
.sheet-input {
  width: 100%; height: 42px; border: 1px solid #dfe3e8; border-radius: 8px;
  padding: 0 12px; font-size: 14px; margin-top: 8px; box-sizing: border-box;
}
.sheet-hint { font-size: 11.5px; color: #b3b8c0; margin-top: 6px; }
.sheet-btns { display: flex; gap: 10px; margin-top: 18px; }
.sheet-btn { flex: 1; height: 44px; border: none; border-radius: 22px; background: var(--blue); color: #fff; font-size: 15px; }
.sheet-btn.ghost { background: #f2f3f5; color: #5a616b; }
.sheet-del { text-align: center; font-size: 13px; color: #e15b5b; padding: 16px 0 4px; }

.hint-tip { font-size: 11.5px; color: #b3b8c0; text-align: center; padding: 4px 0 8px; }

/* ---------- 动态 ---------- */
.feed-card { background: #fff; border-radius: 12px; margin: 10px 12px; padding: 14px; }
.feed-head { display: flex; align-items: center; }
.feed-head .av { margin-right: 10px; }
.feed-head .nm { font-size: 14.5px; font-weight: 600; }
.feed-head .tm { font-size: 11.5px; color: #b3b8c0; margin-top: 2px; }
.feed-body { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.feed-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.feed-imgs.single { grid-template-columns: 1fr; }
.feed-imgs img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.feed-imgs.single img { aspect-ratio: auto; max-height: 340px; object-fit: contain; background: #f2f3f5; }
.feed-acts { display: flex; gap: 18px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f2f3f5; font-size: 13px; color: #7a808a; }
.feed-acts .like.on { color: #fa5151; }
.feed-cmts { background: #f6f7f9; border-radius: 8px; padding: 8px 10px; margin-top: 10px; font-size: 13px; line-height: 1.6; }
.feed-cmts .c { margin-bottom: 3px; }
.feed-cmts .c b { color: #4a6fa5; font-weight: 500; }
.composer { background: #fff; margin: 10px 12px; border-radius: 12px; padding: 12px; }
.composer textarea { width: 100%; min-height: 66px; border: none; outline: none; resize: none; font-size: 14.5px; font-family: inherit; }
.composer .bar { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.composer .addimg { color: #7a808a; font-size: 13px; }
.composer .preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.composer .preview div { position: relative; aspect-ratio: 1; }
.composer .preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* ---------- 我的 ---------- */
.mine-head { background: linear-gradient(150deg, #17bdfb 0%, #0a9ad9 70%); padding: 26px 18px 42px; color: #fff; }
.mine-head .line { display: flex; align-items: center; }
.mine-head .av { margin-right: 14px; border: 2px solid rgba(255,255,255,.6); }
.mine-head .nm { font-size: 20px; font-weight: 600; }
.mine-head .qq { font-size: 12.5px; opacity: .9; margin-top: 3px; }
.mine-head .sig { font-size: 12.5px; opacity: .85; margin-top: 6px; }
.mine-body { margin-top: -26px; }
.mine-card { background: #fff; border-radius: 12px; margin: 0 12px 12px; overflow: hidden; }
.mine-card .row { border-bottom-color: #f2f3f5; }
.mine-card .row .desc { color: #b3b8c0; }
.stats { display: flex; padding: 14px 0; }
.stats div { flex: 1; text-align: center; }
.stats .n { font-size: 17px; font-weight: 600; }
.stats .l { font-size: 11.5px; color: var(--sub); margin-top: 2px; }

/* ---------- 资料页 ---------- */
.profile-top { background: #fff; padding: 24px 18px 18px; display: flex; align-items: center; }
.profile-top .av { margin-right: 16px; }
.profile-top .nm { font-size: 20px; font-weight: 600; }
.profile-top .id { font-size: 12.5px; color: var(--sub); margin-top: 4px; }
.profile-top .online { font-size: 11.5px; color: #18a058; margin-top: 4px; }
.profile-top .online.off { color: #b3b8c0; }
.profile-btns { display: flex; gap: 10px; padding: 0 16px 14px; }
.profile-btns .btn { flex: 1; height: 40px; line-height: 40px; font-size: 14.5px; }
.info-list .field { border-bottom: 1px solid #f2f3f5; }
.info-list .field label { flex: 0 0 84px; color: #8a8f99; font-size: 14px; }
.info-list .field .val { text-align: right; }

/* ---------- 弹层 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: var(--w); background: #fff; border-radius: 14px 14px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 76vh; overflow-y: auto; }
.sheet h3 { margin: 0 0 12px; font-size: 16px; text-align: center; }
.sheet .field { padding: 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 14px; }
.center-dialog { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; }
.center-dialog .box { background: #fff; border-radius: 12px; padding: 18px; width: 100%; max-width: 320px; }
.center-dialog .box h3 { margin: 0 0 10px; font-size: 16px; text-align: center; }
.center-dialog .box textarea { width: 100%; min-height: 70px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 14px; font-family: inherit; resize: none; outline: none; }
.center-dialog .box .btns { display: flex; gap: 10px; margin-top: 12px; }

/* ---------- 其它 ---------- */
.empty { text-align: center; color: #b3b8c0; font-size: 13px; padding: 44px 20px; }
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.76); color: #fff; font-size: 14px; padding: 10px 18px;
  border-radius: 8px; z-index: 90; max-width: 76%;
}
.loading { text-align: center; color: #b3b8c0; font-size: 12.5px; padding: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 3px 9px; background: #f2f3f5; border-radius: 10px; font-size: 11.5px; color: #6b7280; }
.img-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.img-viewer img { max-width: 96%; max-height: 90%; border-radius: 4px; }

/* ---------- 性别选择 / 系统头像 ---------- */
.gender-row { display: flex; gap: 18px; align-items: center; flex: 1; }
.gender-row .rd { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #1f2329; }
.gender-row .rd input { width: 16px; height: 16px; }
.av-picker { background: #fff; margin: 0 0 10px; padding: 12px 14px 16px; }
.av-picker .pv-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.av-picker .pv-tab { flex: 1; height: 34px; line-height: 34px; text-align: center; border-radius: 17px; background: #f2f3f5; color: #5a616b; font-size: 13.5px; }
.av-picker .pv-tab.on { background: #e8f5fe; color: #12b7f5; font-weight: 600; }
.preset-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.preset-grid .pi { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #f2f3f5; }
.preset-grid .pi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preset-grid .pi.on { box-shadow: 0 0 0 2px #12b7f5 inset; }
.preset-grid .pi.on::after { content: "✓"; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: #12b7f5; color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.av-picker .pv-actions { display: flex; gap: 10px; margin-top: 14px; }
.av-picker .pv-btn { flex: 1; height: 38px; border: none; border-radius: 19px; font-size: 14px; background: #12b7f5; color: #fff; }
.av-picker .pv-btn.ghost { background: #f2f3f5; color: #5a616b; }
/* ---------- 性别/年龄 小标签 ---------- */
.gtag { display: inline-flex; align-items: center; gap: 3px; background: #f2f3f5; border-radius: 4px; padding: 2px 7px; font-size: 11.5px; color: #8a8f99; line-height: 1.5; margin-right: 6px; }
.gtag .gsym { font-size: 12px; font-weight: 600; }
.gtag .gsym.gm { color: #3a9efd; }
.gtag .gsym.gf { color: #ff7fa5; }
.gtag .gage { color: #8a8f99; }
.gtag .gx { color: #8a8f99; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tagrow .tg { background: #f2f3f5; border-radius: 4px; padding: 2px 7px; font-size: 11.5px; color: #8a8f99; }
.cond-gender { display: flex; gap: 10px; padding: 10px 0 4px; }
.cond-gender .gp { flex: 1; height: 40px; line-height: 40px; text-align: center; border-radius: 20px; border: 1px solid #ebedf0; font-size: 14px; color: #5a616b; background: #fff; }
.cond-gender .gp.on { background: #12b7f5; border-color: #12b7f5; color: #fff; }
.cond-block { background: #fff; margin: 10px 12px; border-radius: 12px; padding: 14px 16px; }
.cond-block .ct { font-size: 14px; color: #1f2329; font-weight: 600; margin-bottom: 10px; }
.cond-block .cr { display: flex; align-items: center; justify-content: space-between; height: 46px; border-bottom: 1px solid #f2f3f5; font-size: 14px; color: #1f2329; }
.cond-block .cr:last-child { border-bottom: none; }
.cond-block .cr input { flex: 1; text-align: right; font-size: 13.5px; color: #5a616b; border: none; outline: none; background: transparent; }
.cond-block .cr .hint { color: #b3b8c0; font-size: 13px; }
.age-wrap { padding: 4px 2px 0; }
.age-val { text-align: right; font-size: 14px; color: #12b7f5; font-weight: 600; }
.age-wrap input[type=range] { width: 100%; margin: 6px 0; }
.age-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #12b7f5; margin-top: -7px; }
.age-wrap input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #dfe3e8; border-radius: 2px; }
/* ---------- 全国省份 + 地区 选择 ---------- */
.reg-pick { display: flex; gap: 10px; }
.reg-pick select {
  flex: 1; min-width: 0; height: 40px; border: 1px solid #e6e8eb;
  border-radius: 8px; padding: 0 8px; font-size: 14px; color: #1f2329; background: #fff;
  -webkit-appearance: none; appearance: none;
}
.field input[readonly], .cr input[readonly] { color: #1f2329; }
/* ---------- KK 等级 ---------- */
.lv-badges{display:inline-flex;align-items:center;gap:2px;vertical-align:middle}
.lv-badges .lv-ico{display:inline-block;object-fit:contain;vertical-align:middle}
.lv-line{display:flex;align-items:center;gap:6px;font-size:12px;color:#5b6068;margin-top:4px}
.lv-line .lv-no{color:#f5a623;font-weight:600}
.lv-bar{height:6px;border-radius:3px;background:#e8ecf1;overflow:hidden;margin-top:6px}
.lv-bar i{display:block;height:100%;background:linear-gradient(90deg,#ffd257,#f5a623);border-radius:3px;transition:width .3s}
.lv-tip{font-size:12px;color:#8a8f99;margin-top:4px}
.lv-card .row .lv-badges{margin-left:6px}
.user-lv{display:inline-flex;align-items:center;gap:4px;margin-top:2px}