/* 寻伴成团 H5 — 复刻小程序视觉 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body { background: #fffdf5; color: #1c1e1d; font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; line-height: 1.6; }
#app { max-width: 560px; margin: 0 auto; padding: 12px 14px 84px; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 15px; border: 1px solid #eae7db; border-radius: 12px; padding: 12px 14px; background: #fff; outline: none; width: 100%; }
input:focus, textarea:focus { border-color: #2a827e; }
textarea { min-height: 88px; resize: vertical; }
input[type="date"], input[type="datetime-local"] { color: #1a1a1a; color-scheme: light; }

/* 头部 */
.topbar { display: flex; align-items: center; margin: -12px -14px 12px; padding: 12px 14px; background: #032625; color: #d3fffe; position: sticky; top: 0; z-index: 20; }
.topbar .back { font-size: 18px; padding: 2px 12px 2px 0; }
.topbar .tt { font-size: 17px; font-weight: 600; }

/* 底部导航 */
#tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #eae7db; display: flex; z-index: 30; }
#tabbar .tab { flex: 1; text-align: center; padding: 8px 0 6px; color: #9aa19d; font-size: 12px; }
#tabbar .tab .ic { font-size: 20px; display: block; line-height: 1.2; }
#tabbar .tab.on { color: #165451; font-weight: 600; }

/* 首页头 */
.h1 { font-size: 24px; font-weight: 700; color: #032625; }
.loc { font-size: 13px; color: rgba(28,30,29,.55); margin: 2px 0 12px; }

/* 分段切换 */
.board { display: flex; background: #fff; border-radius: 12px; padding: 4px; margin-bottom: 14px; box-shadow: 0 1px 6px rgba(3,38,37,.06); }
.board-item { flex: 1; text-align: center; padding: 8px 0; font-size: 14px; color: rgba(28,30,29,.6); border-radius: 9px; cursor: pointer; }
.board-item.on { background: #165451; color: #fff; }

/* 筛选条 */
.chips { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font-size: 13px; color: rgba(28,30,29,.6); background: #fff; border: 1px solid #eae7db; border-radius: 100px; padding: 5px 14px; margin: 0 8px 8px 0; cursor: pointer; }
.chip.on { background: #165451; color: #d3fffe; border-color: #165451; }

/* 卡片 */
.card { background: #fff; border: 1px solid #eae7db; border-radius: 14px; padding: 14px; margin-bottom: 12px; cursor: pointer; }
.cpost.cp-want { border-left: 4px solid #b06a1b; }
.cpost.cp-offer { border-left: 4px solid #165451; }
.card .row1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.card .ttl { font-weight: 600; font-size: 15px; margin: 6px 0 2px; }
.card .sub { font-size: 12px; color: rgba(28,30,29,.5); }
.card .foot { display: flex; align-items: center; margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.reward { color: #b06a1b; font-size: 13px; font-weight: 600; margin-right: auto; }

.tag { display: inline-block; font-size: 11px; border-radius: 6px; padding: 1px 8px; }
.tag.dir-want { background: #b06a1b; color: #fff; }
.tag.dir-offer { background: #165451; color: #d3fffe; }
.tag.kind { background: #eef0ee; color: rgba(28,30,29,.6); }
.tag.st { background: rgba(42,130,126,.12); color: #2a827e; margin-left: auto; }
.tag.st.done { background: rgba(28,30,29,.06); color: #9aa19d; }
.hcount { font-size: 11px; color: #b06a1b; background: rgba(176,106,27,.1); border-radius: 6px; padding: 1px 8px; }
.hcount.qa { color: #2a827e; background: rgba(42,130,126,.12); }
.badge { font-size: 11px; color: #2a827e; border: 1px solid rgba(42,130,126,.4); border-radius: 6px; padding: 0 6px; margin-left: 4px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 100px; font-size: 14px; font-weight: 600; padding: 11px 20px; text-align: center; }
.btn.primary { background: #165451; color: #d3fffe; }
.btn.primary:disabled { opacity: .5; }
.btn.ghost { background: #fff; color: #165451; border: 1px solid #165451; }
.btn.danger { background: #fdecec; color: #c6483c; }
.btn.amber { background: #fdf3e3; color: #b06a1b; }
.btn.mini { font-size: 12px; font-weight: 400; padding: 5px 14px; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* 表单 */
.field { margin-bottom: 14px; }
.ph { font-size: 13px; color: rgba(28,30,29,.55); margin-bottom: 6px; }
.faint { font-size: 12px; color: rgba(28,30,29,.45); }
.tip { background: rgba(211,255,254,.3); border: 1px solid #d3fffe; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.tip .tt { font-size: 14px; font-weight: 600; color: #032625; }
.tip .sb { font-size: 12px; color: rgba(28,30,29,.55); margin-top: 2px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: rgba(28,30,29,.6); margin: 10px 0 4px; cursor: pointer; }
.agree .box { flex: none; width: 18px; height: 18px; border: 1px solid #c9cfc9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; margin-top: 1px; }
.agree .box.on { background: #165451; border-color: #165451; }
.agree-link { font-size: 12px; color: #2a827e; margin: 2px 0 10px 26px; cursor: pointer; }

/* 详情页 */
.hero { background: #032625; color: #d3fffe; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.hero .htitle { font-size: 18px; font-weight: 700; margin: 8px 0 2px; }
.hero .hsub { font-size: 12px; opacity: .75; }
.hero .tag.dir-want { background: rgba(255,213,138,.2); color: #ffd58a; }
.hero .tag.dir-offer { background: rgba(211,255,254,.2); color: #d3fffe; }
.hero .tag.st { margin-left: 8px; background: rgba(211,255,254,.15); color: #d3fffe; }
.hero .tag.st.done { background: rgba(255,255,255,.12); color: rgba(255,255,255,.55); }
.panel { background: #fff; border: 1px solid #eae7db; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.kv { display: flex; font-size: 14px; margin-bottom: 6px; }
.kv .k { width: 64px; color: rgba(28,30,29,.45); flex: none; }
.progress { height: 8px; background: #eef0ee; border-radius: 100px; overflow: hidden; margin: 8px 0 4px; }
.progress .fill { height: 100%; background: #165451; border-radius: 100px; }
.desc { font-size: 14px; margin-top: 8px; white-space: pre-wrap; }
.winbox { background: rgba(211,255,254,.3); border-color: #d3fffe; }
.winbox .wt { font-size: 15px; font-weight: 700; color: #032625; margin-bottom: 4px; }

/* 问答 / 出价 */
.qa-item { padding: 8px 0; border-bottom: 1px dashed #eae7db; font-size: 14px; }
.qa-item:last-child { border-bottom: none; }
.qa-item .qwho { color: #2a827e; font-weight: 600; margin-right: 6px; font-size: 12px; }
.qa-item .a { margin-top: 4px; color: rgba(28,30,29,.65); background: #f7f6ef; border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.qrow { display: flex; gap: 8px; margin-top: 10px; }
.qrow input { flex: 1; }
.bidrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eae7db; }
.bidrow:last-child { border-bottom: none; }
.bidwho { font-weight: 600; font-size: 14px; }
.bidnote { display: block; font-size: 12px; color: rgba(28,30,29,.5); }

/* 列表页 */
.fbar { display: flex; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.mgrbtn { margin-left: auto; font-size: 13px; color: #2a827e; cursor: pointer; padding: 5px 4px; }
.batchbar { display: flex; align-items: center; background: rgba(211,255,254,.35); border: 1px solid #d3fffe; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.batchbar .main { color: #165451; font-weight: 600; margin-left: auto; margin-right: 16px; cursor: pointer; }
.batchbar .del { color: #c6483c; cursor: pointer; }
.li { display: flex; align-items: center; background: #fff; border: 1px solid #eae7db; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.li .ck { flex: none; width: 20px; height: 20px; border: 1px solid #c9cfc9; border-radius: 50%; margin-right: 12px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.li .ck.on { background: #165451; border-color: #165451; }
.li .body { flex: 1; min-width: 0; }
.li .ttl { font-weight: 600; font-size: 14px; }
.btag { display: inline-block; font-size: 10px; border-radius: 5px; padding: 0 6px; margin-right: 6px; font-weight: 400; vertical-align: middle; }
.b-act { background: #032625; color: #d3fffe; }
.b-carry { background: #165451; color: #d3fffe; }
.b-idle { background: #b06a1b; color: #fff; }
.quickops { flex: none; display: flex; gap: 6px; margin-left: 8px; }
.arrow { color: rgba(28,30,29,.35); margin-left: 8px; }

/* 我的页 */
.mecard { display: flex; align-items: center; background: #fff; border: 1px solid #eae7db; border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.meavatar-wrap { position: relative; flex: none; cursor: pointer; }
.meavatar { width: 52px; height: 52px; border-radius: 50%; background: #165451; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.avatar-pen { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid #eae7db; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.nick-edit { cursor: pointer; margin-left: 2px; }
.invite-code { font-size: 22px; font-weight: 700; letter-spacing: 3px; color: #165451; margin-top: 8px; }
.meinfo { margin-left: 12px; flex: 1; }
.mename { font-size: 17px; font-weight: 700; }
.medept { font-size: 12px; color: rgba(28,30,29,.5); }
.mestat { text-align: center; }
.mestat .n { font-size: 20px; font-weight: 700; color: #165451; }
.mestat .l { font-size: 11px; color: rgba(28,30,29,.45); }
.lvrow { display: flex; justify-content: space-between; align-items: baseline; }
.lv { font-weight: 700; color: #032625; }
.xpbar { height: 8px; background: #eef0ee; border-radius: 100px; overflow: hidden; margin: 8px 0 4px; }
.xpbar .fill { height: 100%; background: #b06a1b; border-radius: 100px; }
.menu { background: #fff; border: 1px solid #eae7db; border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.mi { display: flex; align-items: center; padding: 14px 16px; font-size: 14px; border-bottom: 1px solid #f2f0e8; cursor: pointer; }
.mi:last-child { border-bottom: none; }
.mi .arrow { margin-left: auto; }

/* 登录 */
.loginbox { max-width: 360px; margin: 12vh auto 0; background: #fff; border: 1px solid #eae7db; border-radius: 16px; padding: 28px 24px; }
.loginbox h1 { font-size: 22px; color: #032625; text-align: center; margin-bottom: 4px; }
.loginbox .sb { text-align: center; font-size: 12px; color: rgba(28,30,29,.5); margin-bottom: 20px; }

/* 弹窗 / 提示 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal { width: 82%; max-width: 380px; background: #fff; border-radius: 16px; overflow: hidden; }
.modal .mt { font-size: 16px; font-weight: 700; text-align: center; padding: 18px 18px 6px; }
.modal .mc { font-size: 13px; color: rgba(28,30,29,.7); padding: 6px 20px 16px; max-height: 46vh; overflow: auto; white-space: pre-wrap; }
.modal .mrow { display: flex; border-top: 1px solid #f2f0e8; }
.modal .mb { flex: 1; text-align: center; padding: 12px 0; font-size: 15px; cursor: pointer; }
.modal .mb.c { color: #165451; font-weight: 600; border-left: 1px solid #f2f0e8; }
.modal .mb.x { color: #9aa19d; }
.modal-form { width: 92%; max-width: 420px; background: #fff; border-radius: 16px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-form .mf-head { padding: 18px 18px 6px; font-size: 16px; font-weight: 700; }
.modal-form .mf-body { padding: 6px 18px 12px; overflow: auto; }
.modal-form .mf-row { display: flex; gap: 10px; }
.modal-form .mf-row .field { flex: 1; }
.modal-form .field { margin-bottom: 12px; }
.modal-form .chips { margin-bottom: 12px; }
.modal-form input, .modal-form textarea { margin-bottom: 0; }
.modal-form .mrow { display: flex; border-top: 1px solid #f2f0e8; flex: none; }
.modal-form .mb { flex: 1; text-align: center; padding: 13px 0; font-size: 15px; cursor: pointer; }
.modal-form .mb.c { color: #165451; font-weight: 600; }
.modal-form .mb.x { color: #9aa19d; }
.share-item { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid #f2f0e8; cursor: pointer; font-size: 15px; }
.share-item:last-child { border-bottom: none; }
.si-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; background: #f0f4f3; color: #165451; flex: none; }
.si-ic.wa { background: #e7f6ec; color: #1fa855; }
.si-ic.wx { background: #e7f4e8; color: #07c160; }
.actionsheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; z-index: 100; border-radius: 16px 16px 0 0; overflow: hidden; max-width: 560px; margin: 0 auto; }
.actionsheet .it { text-align: center; padding: 14px 0; font-size: 15px; border-bottom: 1px solid #f2f0e8; cursor: pointer; }
.actionsheet .cancel { text-align: center; padding: 14px 0; font-size: 15px; color: #9aa19d; cursor: pointer; }
.toast { position: fixed; top: 45%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.75); color: #fff; font-size: 14px; padding: 10px 20px; border-radius: 10px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; }

.reportrow { text-align: center; padding: 14px 0 4px; }
.reportlink { font-size: 12px; color: #9aa19d; cursor: pointer; }
.empty { text-align: center; color: #9aa19d; font-size: 13px; padding: 40px 0; }
.para { font-size: 13px; color: rgba(28,30,29,.75); line-height: 1.8; margin-bottom: 8px; white-space: pre-wrap; }
.msg-item { display: flex; gap: 10px; background: #fff; border: 1px solid #eae7db; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.msg-ic { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-size: 15px; }
.msg-tt { font-size: 14px; font-weight: 600; }
.msg-bd { font-size: 12px; color: rgba(28,30,29,.55); }
.msg-tm { margin-left: auto; font-size: 11px; color: #b8bdb8; flex: none; }
.fab { position: fixed; right: 18px; bottom: 76px; z-index: 25; }
@media (min-width: 561px) { .fab { right: calc(50% - 262px); } }

/* 群二维码 / 群链接 */
.qr-img { width: 200px; height: 200px; object-fit: contain; border-radius: 12px; margin: 6px auto; display: block; border: 1px solid #eae7db; }
.qr-link { display: block; color: #2a827e; font-size: 13px; word-break: break-all; margin-top: 6px; }

/* 联系方式授权 */
.contact-panel .contact-card { background: #f6faf9; border-radius: 12px; padding: 12px; margin-top: 6px; }
.contact-card .kv .k { width: 84px; }
.contact-val { font-weight: 600; color: #165451; word-break: break-all; }
.policy-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f0e8; }
.policy-row:last-child { border-bottom: none; }
.rad { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfd4cf; flex: none; position: relative; }
.rad.on { border-color: #165451; }
.rad.on::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #165451; }
.req-item { margin-bottom: 12px; }
.st-approved { color: #2a827e; font-weight: 600; }
.st-rejected { color: #9aa19d; }
.st-pending { color: #b06a1b; font-weight: 600; }
