/* 良缘 H5（浅色，移动端优先） */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f7fb; color: #22262e; font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

.topbar { background: #fff; padding: 12px 16px; border-bottom: 1px solid #eef0f4; position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-weight: 700; font-size: 18px; color: #e0526b; }
.topbar .sub { margin-left: 10px; font-size: 11px; color: #b3b8c2; }

main { flex: 1; padding: 12px 12px calc(64px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; display: flex; background: #fff;
  border-top: 1px solid #eef0f4; padding-bottom: env(safe-area-inset-bottom); z-index: 10;
}
.tabbar a { flex: 1; text-align: center; padding: 12px 0; color: #9aa0ab; font-size: 14px; position: relative; text-decoration: none; }
.tabbar a.on { color: #e0526b; font-weight: 600; }
.dot { position: absolute; top: 6px; right: 26%; background: #e0526b; color: #fff; font-size: 10px; border-radius: 10px; padding: 0 6px; line-height: 16px; }

/* 卡片与通用 */
.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(30,35,45,.04); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; background: #fdeef1; color: #e0526b; margin: 0 6px 6px 0; }
.tag-gray { background: #f2f3f7; color: #5b6270; }
.badge-v { font-size: 10px; color: #3a7afe; background: #eaf3ff; border-radius: 4px; padding: 1px 6px; }
.badge-p { font-size: 10px; color: #a8721d; background: #fdf3e4; border-radius: 4px; padding: 1px 6px; }
.btn { display: block; width: 100%; border: none; border-radius: 22px; padding: 11px; font-size: 15px; background: linear-gradient(90deg, #e0526b, #f0788c); color: #fff; cursor: pointer; }
.btn.ghost { background: #fff; color: #e0526b; border: 1px solid #f3b6c2; }
.btn.gold { background: #fdf3e4; color: #a8721d; border: 1px solid #ecd3a4; }
.btn[disabled] { opacity: .5; }
.locked { display: flex; justify-content: space-between; align-items: center; background: #f7f8fa; border-radius: 8px; padding: 10px 12px; margin-top: 10px; color: #9aa0ab; font-size: 13px; }
.locked .go { color: #e0526b; cursor: pointer; }
.muted { color: #9aa0ab; font-size: 13px; }
.sec { font-weight: 600; margin-bottom: 8px; }
input, textarea, select {
  width: 100%; border: 1px solid #e3e5ea; border-radius: 8px; padding: 10px 12px; font-size: 15px; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #5b6270; margin-bottom: 6px; }
.err-toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); background: rgba(30,35,45,.85); color: #fff; padding: 8px 18px; border-radius: 18px; font-size: 13px; z-index: 99; }

/* 优质推荐横滑 */
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail-card { min-width: 118px; background: #fff; border-radius: 10px; padding: 10px; cursor: pointer; }
.rail-card img { width: 100%; height: 118px; border-radius: 8px; object-fit: cover; background: #f2f3f7; }
.rail-card .n { font-size: 14px; font-weight: 600; margin-top: 6px; }
.rail-card .l { font-size: 11px; color: #9aa0ab; margin-top: 2px; }
.rail-card .b { font-size: 10px; color: #a8721d; background: #fdf3e4; border-radius: 4px; padding: 1px 6px; display: inline-block; margin-top: 6px; }

/* 用户卡片 */
.uc { display: block; cursor: pointer; }
.uc .top { display: flex; }
.uc img.av { width: 66px; height: 66px; border-radius: 8px; object-fit: cover; background: #f2f3f7; }
img.blur { filter: blur(8px); }
.uc .info { flex: 1; margin-left: 10px; min-width: 0; }
.uc .name { font-weight: 600; }
.uc .line { color: #5b6270; font-size: 13px; margin-top: 3px; }
.uc .req { margin-top: 8px; background: #f7f8fa; border-radius: 6px; padding: 7px 10px; font-size: 12px; color: #5b6270; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc .bottom { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; }
.uc .more { color: #e0526b; }

/* 详情 */
.head-card { display: flex; }
.head-card img.av { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
.head-card .info { flex: 1; margin-left: 12px; }
.head-card .name { font-size: 19px; font-weight: 700; }
.kv { display: flex; padding: 7px 0; font-size: 14px; }
.kv .k { width: 72px; color: #9aa0ab; flex-shrink: 0; }
.intro { line-height: 1.7; font-size: 14px; white-space: pre-wrap; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 104px; height: 104px; border-radius: 8px; object-fit: cover; }
.privacy { background: #f0f6ff; font-size: 12px; color: #5b6270; line-height: 1.8; }
.privacy .sec { color: #3a7afe; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 130px; padding: 10px; font-size: 14px; }
.status-line { color: #3a7afe; font-size: 12px; text-align: center; margin-bottom: 8px; }

/* 表单页 */
.submit-note { font-size: 12px; color: #b3b8c2; text-align: center; margin-top: 10px; line-height: 1.7; }
.notice { background: #fdf3e4; color: #a8721d; border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.7; margin-bottom: 12px; }

/* 列表行 */
.row { display: flex; align-items: center; }
.row img.av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.row .info { flex: 1; margin-left: 10px; min-width: 0; }
.row .name { font-weight: 600; font-size: 14px; }
.row .sub { color: #9aa0ab; font-size: 12px; margin-top: 2px; }
.msg-bubble { background: #f7f8fa; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-top: 8px; line-height: 1.6; }
.ops { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.ops button { border: none; border-radius: 16px; padding: 6px 18px; font-size: 13px; cursor: pointer; background: linear-gradient(90deg,#e0526b,#f0788c); color: #fff; }
.ops button.ghost { background: #fff; color: #5b6270; border: 1px solid #e3e5ea; }

/* 聊天 */
.chat-page { display: flex; flex-direction: column; height: calc(100vh - 120px); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 4px 2px; }
.chat-row { margin-bottom: 12px; }
.chat-row.self { text-align: right; }
.chat-row .bubble { display: inline-block; max-width: 78%; background: #fff; border-radius: 3px 12px 12px 12px; padding: 9px 13px; font-size: 14px; line-height: 1.6; text-align: left; word-break: break-all; }
.chat-row.self .bubble { background: linear-gradient(90deg,#e0526b,#f0788c); color: #fff; border-radius: 12px 3px 12px 12px; }
.chat-input { display: flex; gap: 8px; padding-top: 10px; }
.chat-input input { flex: 1; }
.chat-input button { width: 74px; flex-shrink: 0; padding: 10px 0; }
.safety { background: #f0f6ff; color: #3a7afe; font-size: 11px; padding: 7px 10px; border-radius: 8px; margin-bottom: 8px; }

/* 会员页 */
.prod { display: flex; justify-content: space-between; align-items: center; }
.prod .price { color: #e0526b; font-size: 22px; font-weight: 700; }
.benefit li { list-style: none; font-size: 13px; color: #5b6270; line-height: 2; }
.empty { text-align: center; color: #9aa0ab; padding: 60px 0; }
.loading { text-align: center; color: #b3b8c2; padding: 16px 0; font-size: 13px; }
