/* 「飞问城市FDE服务中心」H5 前台样式 —— 移动端优先，桌面居中显示 */
:root{
  --brand:#1e5eff; --brand-dark:#1547cc; --brand-bg:#eef3ff;
  --ink:#1f2733; --sub:#6b7686; --line:#e6eaf0; --bg:#f5f7fa; --card:#fff;
  --ok:#0a8f56; --ok-bg:#eaf7f1; --warn:#b9770e; --warn-bg:#fdf5e6; --bad:#c0392b;
  --nav-h:48px; --tab-h:56px; --max-w:480px;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink);line-height:1.6;font-size:14px}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea{font-family:inherit;font-size:14px}

.app{width:100%;max-width:none;margin:0;background:var(--card);min-height:100vh;position:relative;display:flex;flex-direction:column}
@media(min-width:520px){body{background:var(--bg)}}

/* ---------- 导航 ---------- */
.navbar{height:var(--nav-h);display:flex;align-items:center;justify-content:center;position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);z-index:30;flex-shrink:0}
.navbar .title{font-size:16.5px;font-weight:700;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.navbar .back{position:absolute;left:6px;top:0;height:var(--nav-h);width:38px;font-size:24px;color:var(--ink);display:flex;align-items:center;justify-content:center}

.screens{flex:1;position:relative}
.screen{display:none;padding-bottom:calc(var(--tab-h) + 12px)}
.screen.on{display:block;animation:fade .16s ease}
@keyframes fade{from{opacity:.4}to{opacity:1}}

/* ---------- tabbar ---------- */
.tabbar{position:fixed;bottom:0;left:0;right:0;width:100%;max-width:none;margin:0;height:var(--tab-h);background:#fff;border-top:1px solid var(--line);display:flex;z-index:40}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10.5px;color:#8a93a2}
.tab .ico{font-size:18px;line-height:1}
.tab.on{color:var(--brand);font-weight:600}

/* ---------- 通用块 ---------- */
.locbar{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#fff}
.locbtn{border:1px solid var(--line);border-radius:20px;padding:5px 12px;font-size:13.5px;font-weight:600;background:#fff}
.switch{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#5a6474;margin-left:auto}
.switch i{width:34px;height:20px;border-radius:10px;background:#dfe4ea;position:relative;transition:.18s}
.switch i::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.18s}
.switch.on i{background:var(--brand)}
.switch.on i::after{left:16px}
.nearby-tip{padding:2px 14px 10px;font-size:11.5px;color:var(--sub);background:#fff}
.searchbox{font-size:12px;color:var(--sub);background:#f1f4f8;border-radius:16px;padding:5px 12px;flex:1}
.chips{display:flex;gap:7px;overflow-x:auto;padding:2px 14px 10px;background:#fff;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex-shrink:0;border:1px solid var(--line);background:#fff;border-radius:16px;padding:5px 13px;font-size:12.5px;color:#4a5568}
.chip.on{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}

/* ---------- 需求卡片 ---------- */
.req-list{padding:10px 12px 0;background:var(--bg)}
.req{background:#fff;border-radius:12px;padding:13px 14px;margin-bottom:10px;box-shadow:0 1px 3px rgba(20,30,50,.05);transition:.15s}
.req:active{transform:scale(.995);background:#fbfcfe}
.r1{display:flex;gap:10px;align-items:flex-start}
.rtitle{font-size:15px;font-weight:700;line-height:1.45;flex:1}
.badge-hot{display:inline-block;background:#fff1e8;color:#d9600f;font-size:10.5px;font-weight:700;border-radius:4px;padding:1px 5px;margin-right:5px;vertical-align:2px}
.pay{color:#e0620d;font-weight:700;font-size:13.5px;white-space:nowrap}
.rmeta{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 7px}
.tag{background:#f1f4f8;color:#5a6474;font-size:11px;border-radius:4px;padding:2px 7px}
.tag.city{background:var(--brand-bg);color:var(--brand)}
.rfoot{display:flex;justify-content:space-between;font-size:11.5px;color:#98a1af;border-top:1px dashed var(--line);padding-top:7px}
.empty{text-align:center;color:#98a1af;font-size:13px;padding:50px 20px;line-height:2}
.empty-small{font-size:12.5px;color:#98a1af;padding:8px 2px}

/* ---------- 详情页 ---------- */
.d-wrap{padding:12px}
.d-card{background:#fff;border-radius:12px;padding:15px;box-shadow:0 1px 3px rgba(20,30,50,.05);margin-bottom:12px}
.d-status{display:inline-block;background:var(--ok-bg);color:var(--ok);font-size:11px;font-weight:700;border-radius:5px;padding:2px 8px;margin-bottom:8px}
.d-title{font-size:18px;font-weight:800;line-height:1.4;margin-bottom:10px}
.kv{display:flex;gap:10px;font-size:13px;padding:4px 0;border-bottom:1px dashed #f0f2f6}
.kv:last-of-type{border-bottom:none}
.kv .k{color:#98a1af;width:52px;flex-shrink:0}
.kv .v{flex:1}
.kv .v.price{color:#e0620d;font-weight:700}
.ok{color:var(--ok)}
.warn{color:var(--warn)}
.d-sec{margin-top:14px}
.d-sec h4{font-size:13.5px;margin-bottom:5px;padding-left:9px;border-left:3px solid var(--brand);line-height:1.3}
.d-sec p{font-size:13.5px;color:#3a4452;line-height:1.85}
.flow-mini{margin-top:14px;background:var(--brand-bg);color:#2b4ea8;font-size:12px;border-radius:8px;padding:10px 12px;line-height:1.7}
.d-bottom-space{height:8px}
.cmt-head{display:flex;justify-content:space-between;align-items:baseline;padding:4px 2px 8px;font-size:13.5px}
.cmt-head span{font-size:11px;color:#98a1af}
.cmt{background:#fff;border-radius:10px;padding:11px 13px;margin-bottom:8px}
.c1{display:flex;align-items:center;gap:6px;margin-bottom:5px}
.ava{width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;font-size:12.5px;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}
.ava.big{width:48px;height:48px;font-size:20px}
.ava.gray{background:#dfe4ea;color:#8a93a2}
.nick{font-weight:700;font-size:13.5px}
.vtag{background:var(--brand-bg);color:var(--brand);font-size:10.5px;border-radius:4px;padding:1px 6px;font-weight:600}
.vtag.gray{background:#f1f4f8;color:#8a93a2}
.vtag.ok{background:var(--ok-bg);color:var(--ok)}
.vtag.warn{background:var(--warn-bg);color:var(--warn)}
.vtag.bad{background:#fdecea;color:var(--bad)}
.time{margin-left:auto;font-size:11px;color:#b3bac5}
.c2{font-size:13.5px;color:#3a4452;line-height:1.7}

/* ---------- 人才卡 ---------- */
.talent{background:#fff;border-radius:12px;padding:13px 14px;margin-bottom:10px;box-shadow:0 1px 3px rgba(20,30,50,.05)}
.talent:active{background:#fbfcfe}
.t1{display:flex;gap:10px;align-items:flex-start}
.tava{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#1e5eff,#4d8bff);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex-shrink:0}
.tava.big{width:48px;height:48px;font-size:20px}
.tinfo{flex:1;min-width:0}
.tnick{font-size:14.5px;font-weight:700;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.tnick.big{font-size:16.5px}
.tbg{font-size:11.5px;color:var(--sub);margin-top:2px}
.tsub{font-size:11.5px;color:#98a1af;margin-top:3px}
.tcity{font-size:11px;color:#98a1af;white-space:nowrap}
.vbadge{background:var(--ok-bg);color:var(--ok);font-size:10.5px;font-weight:700;border-radius:4px;padding:1px 6px}
.pbadge{background:var(--warn-bg);color:var(--warn);font-size:10.5px;font-weight:700;border-radius:4px;padding:1px 6px}
.roletag{font-size:10.5px;font-weight:700;border-radius:4px;padding:1px 6px}
.roletag.rf{background:#e8f1ff;color:#1e5eff}
.roletag.ro{background:#f3ecff;color:#6b46c1}
.ttags{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0 7px}
.twork{font-size:12.5px;color:#3a4452;border-top:1px dashed var(--line);padding-top:7px;line-height:1.65}
.t-head{display:flex;gap:12px;align-items:center;margin-bottom:10px}

/* ---------- 表单 ---------- */
.form{padding:12px 14px 30px}
.frow{margin-bottom:14px}
.frow.two{display:flex;gap:10px}
.frow.two>div{flex:1}
.frow label{display:block;font-size:13px;font-weight:600;margin-bottom:5px}
.frow label i{color:#e0620d;font-style:normal}
.frow input,.frow select,.frow textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fff;outline:none;color:var(--ink)}
.frow input:focus,.frow textarea:focus,.frow select:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-bg)}
.frow textarea{min-height:84px;resize:vertical;line-height:1.7}
.chk{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;margin:0 0 8px}
.chk input{width:auto;padding:0;border:none;box-shadow:none;flex:none}
.sms-row{display:flex;gap:8px}
.sms-row input{flex:1}
.sms-row .btn{flex:none;white-space:nowrap;padding:10px 12px}
.region-row{display:flex;gap:8px;margin-bottom:8px}
.region-row select{flex:1;min-width:0;border:1px solid var(--line);border-radius:9px;padding:10px 6px;background:#fff}
.frow .anon{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--sub);margin-top:8px;font-weight:400}
.hint{font-size:11.5px;color:#98a1af;margin-top:6px;line-height:1.7}
.hint.center{text-align:center}
.hint.act{color:var(--brand);cursor:pointer}
.notice{background:var(--brand-bg);color:#2b4ea8;font-size:12.5px;border-radius:9px;padding:10px 12px;margin-bottom:14px;line-height:1.7}
.notice.warn-note{background:var(--warn-bg);color:#8a5a09}
.sec{background:#fff;border-radius:12px;padding:14px;margin:12px;box-shadow:0 1px 3px rgba(20,30,50,.05)}
.sec h3{font-size:14px;margin-bottom:10px}
.sec .s{font-size:13px;color:#3a4452;line-height:1.8}
.sec-t{font-size:12.5px;color:#98a1af;margin:14px 0 8px}

/* ---------- 按钮 ---------- */
.btn{border-radius:9px;padding:11px 16px;font-size:14.5px;font-weight:600;transition:.15s}
.btn.full{width:100%}
.btn-main{background:var(--brand);color:#fff}
.btn-main:active{background:var(--brand-dark)}
.btn-main[disabled]{opacity:.6}
.btn-ghost{background:#f1f4f8;color:#3a4452}
.row-gap{display:flex;gap:10px;margin-top:12px}
.row-gap .btn{flex:1}

/* ---------- 详情底部操作条 ---------- */
.actionbar{position:fixed;bottom:0;left:0;right:0;width:100%;max-width:none;margin:0;background:#fff;border-top:1px solid var(--line);padding:9px 14px;display:flex;gap:10px;z-index:45;align-items:center}
.actionbar .btn{flex:1}
.actionbar .btn-share{width:44px;height:42px;border:1px solid var(--line);border-radius:9px;font-size:18px;background:#fff}

/* ---------- 弹层 ---------- */
.mask{position:fixed;inset:0;background:rgba(15,22,35,.45);display:none;align-items:flex-end;justify-content:center;z-index:60}
.mask.on{display:flex}
.sheet{background:#fff;width:100%;max-width:none;border-radius:16px 16px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));max-height:88vh;overflow-y:auto;position:relative;animation:up .2s ease}
@keyframes up{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
.sheet h3{font-size:16px;margin-bottom:4px}
.sheet .s-sub{font-size:11.5px;color:#98a1af;margin-bottom:12px}
.sheet .cancel-x{position:absolute;right:12px;top:12px;width:30px;height:30px;font-size:16px;color:#98a1af}
.sheet textarea{width:100%;min-height:96px;border:1px solid var(--line);border-radius:9px;padding:11px 12px;outline:none;line-height:1.7;margin-bottom:12px}
.sheet textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-bg)}
.sheet .warn-note{background:var(--warn-bg);color:#8a5a09;font-size:11.5px;border-radius:8px;padding:8px 10px;margin-bottom:10px;line-height:1.7}
.sheet.center-sheet{text-align:center}
.contact-tip{font-size:12.5px;line-height:1.9;color:#2b4ea8;margin-bottom:14px}
.citygrid{display:flex;flex-wrap:wrap;gap:8px}
.citygrid.big .copt{padding:8px 18px;font-size:14px}
.copt{padding:6px 14px;border-radius:9px;background:#f1f4f8;font-size:13px;border:none}
.copt.on{background:var(--brand);color:#fff;font-weight:700}
.copt.dis{color:#a8b0bc;background:#f7f9fc}

/* ---------- 我的 / 登录 ---------- */
.mine-wrap{padding:12px}
.login-wrap{padding:14px}
.d-card.center{text-align:center}
.seg{display:flex;background:#f1f4f8;border-radius:9px;padding:3px;margin-bottom:16px}
.seg button{flex:1;padding:8px;border-radius:7px;font-size:14px;font-weight:600;color:#6b7686}
.seg button.on{background:#fff;color:var(--brand);box-shadow:0 1px 3px rgba(20,30,50,.08)}
.mrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px dashed var(--line);width:100%}
.mrow:last-child{border-bottom:none}
.mrow .t{font-size:13.5px;font-weight:600}
.mrow .s{font-size:11.5px;color:#98a1af;margin-top:2px}
.mrow .st{font-size:11px;color:var(--brand);background:var(--brand-bg);border-radius:5px;padding:3px 8px;white-space:nowrap;font-weight:600}
.mrow .btn{flex:none;padding:6px 10px;font-size:12px;white-space:nowrap}

/* ---------- 城市中心 ---------- */
.city-wrap{padding:12px}
.city-other{background:#fff;border-radius:12px;padding:14px;box-shadow:0 1px 3px rgba(20,30,50,.05)}
.city-other h3{font-size:14px;margin-bottom:3px}
.city-other .sub{font-size:11.5px;color:#98a1af;margin-bottom:10px}
.city-other .citygrid span{padding:6px 12px;border-radius:9px;background:#f1f4f8;font-size:12.5px}
.city-other .citygrid span.open{background:var(--brand-bg);color:var(--brand);font-weight:600}

/* ---------- toast ---------- */
.toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%) translateY(10px);background:rgba(25,32,45,.92);color:#fff;font-size:13px;padding:10px 18px;border-radius:10px;opacity:0;pointer-events:none;transition:.2s;z-index:99;max-width:80vw;text-align:center;line-height:1.6}
.toast.on{opacity:1;transform:translateX(-50%)}
