:root{
  --blue:#1a56db; --blue-d:#1746b0; --gold:#e0a020; --ink:#111827; --muted:#6b7280;
  --line:#e5e7eb; --bg:#f3f4f6; --card:#ffffff; --green:#0f9d6e; --red:#dc2626;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:#e5e7eb;color:var(--ink)}
#app{max-width:430px;margin:0 auto;min-height:100vh;background:var(--bg);position:relative;overflow:hidden}
.view{display:none;min-height:100vh}
.view.active{display:block}

/* 登录 */
#v-login{background:linear-gradient(160deg,#1e3a8a 0%,#1a56db 42%,#2563eb 100%);padding:0 24px;color:#fff}
.hero{text-align:center;padding:64px 0 30px}
.logo-mark{width:72px;height:72px;border-radius:20px;background:#fff;color:var(--blue);font-size:40px;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.hero h1{font-size:34px;letter-spacing:.5px;font-weight:800}
.tagline{margin-top:10px;font-size:14px;line-height:1.7;opacity:.9}
.login-box{background:#fff;color:var(--ink);border-radius:20px;padding:22px 20px;margin-top:6px;box-shadow:0 12px 40px rgba(0,0,0,.2)}
.feature-row{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}
.feature-row .fi{width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:#eff6ff;color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:16px}
.feature-row b{display:block;font-size:14px}
.feature-row small{display:block;color:var(--muted);font-size:11.5px;line-height:1.5;margin-top:2px}
.fineprint{font-size:11px;color:var(--muted);text-align:center;line-height:1.6;margin-top:12px}

/* 按钮 */
.btn{width:100%;border:none;border-radius:12px;padding:14px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:active{background:var(--blue-d)}
.btn-ghost{background:#f3f4f6;color:var(--ink);margin-top:10px}
/* 主应用底色与 ghost 默认底色相同，这里补白底+描边保证按钮可见 */
#p-profile .btn-ghost{background:#fff;border:1px solid var(--line)}
.btn-sm{width:auto;padding:8px 14px;font-size:13px;border-radius:9px;background:var(--blue);color:#fff}

/* 主框架 */
.topbar{height:56px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.brand{font-size:19px;font-weight:800;color:var(--blue)}
.topbar-actions{display:flex;align-items:center;gap:10px}
.me-chip{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);cursor:pointer;max-width:110px;overflow:hidden}
.me-chip #myNameTop{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar-mini{width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.pages{padding:14px 14px 84px}
.page{display:none}.page.active{display:block}
.page-head{display:flex;align-items:center;justify-content:space-between;margin:4px 2px 6px}
.page-head h2{font-size:19px;font-weight:800}
.page-sub{font-size:12px;color:var(--muted);margin:0 2px 14px}

/* 盖章提示条 */
.streak-banner{background:linear-gradient(100deg,#fff7e6,#fff);border:1px solid #fde9b8;border-radius:14px;padding:12px 14px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}
.streak-banner .sb-t{font-size:13.5px;font-weight:600}
.streak-banner .sb-s{font-size:11.5px;color:#a06a00;margin-top:2px}
.streak-banner .sb-n{font-size:26px;font-weight:800;color:var(--gold)}

/* 筛选 */
.filter-bar{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;margin-bottom:4px;scrollbar-width:none}
.filter-bar::-webkit-scrollbar{display:none}
.chip{white-space:nowrap;padding:7px 13px;border-radius:20px;background:#fff;border:1px solid var(--line);font-size:12.5px;color:var(--muted);cursor:pointer}
.chip.on{background:var(--blue);color:#fff;border-color:var(--blue)}

/* 名片卡 */
.card-list{display:flex;flex-direction:column;gap:12px}
.pcard{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:15px;cursor:pointer;position:relative;transition:transform .12s}
.pcard:active{transform:scale(.985)}
.pcard.boosted{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.boost-tag{position:absolute;top:12px;right:12px;font-size:10px;color:#a06a00;background:#fff5da;padding:2px 7px;border-radius:8px}
.pc-head{display:flex;align-items:center;gap:11px}
.pc-avatar{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#1a56db,#60a5fa);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px}
.pc-name{font-size:15px;font-weight:700}
.pc-trust{font-size:11.5px;color:var(--gold);margin-top:2px}
.pc-trust b{font-size:12px}
.pc-headline{font-size:13px;color:#374151;margin:11px 0 9px;line-height:1.5}
.pc-skills{display:flex;flex-wrap:wrap;gap:6px}
.skill{font-size:11px;background:#eff6ff;color:var(--blue);padding:3px 9px;border-radius:7px}
.pc-foot{display:flex;justify-content:space-between;margin-top:12px;padding-top:10px;border-top:1px solid #f3f4f6;font-size:11.5px;color:var(--muted)}
.verified{color:var(--green)}

/* 需求 */
.demand-list{display:flex;flex-direction:column;gap:12px}
.dcard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.dcard h4{font-size:14.5px;font-weight:700}
.dcard .dmeta{font-size:11.5px;color:var(--muted);margin:6px 0}
.dcard .dbudget{color:var(--gold);font-weight:600}
.dcard .row{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.mini-btn{background:#eff6ff;color:var(--blue);border:none;border-radius:8px;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer}

/* 统计 */
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:8px 0 18px}
.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 8px;text-align:center}
.stat .n{font-size:24px;font-weight:800;color:var(--blue)}
.stat .l{font-size:11px;color:var(--muted);margin-top:2px}
.sub-h{font-size:14px;font-weight:700;margin:6px 2px 10px}
.stamp-list{display:flex;flex-direction:column;gap:9px}
.stamp-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}
.stamp-item .st-tag{display:inline-block;font-size:11px;background:#fef3c7;color:#a06a00;padding:2px 8px;border-radius:7px}
.stamp-item .st-comment{font-size:13px;margin-top:7px;line-height:1.5}
.stamp-item .st-from{font-size:11px;color:var(--muted);margin-top:6px}

/* 我的 */
.profile-card{background:linear-gradient(140deg,#1a56db,#2563eb);color:#fff;border-radius:18px;padding:22px 18px;margin-top:4px}
.profile-card .pu-avatar{width:56px;height:56px;border-radius:16px;background:#fff;color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800}
.profile-card h3{font-size:19px;margin-top:12px}
.profile-card .pu-line{font-size:12.5px;opacity:.9;margin-top:4px}
.profile-card .pu-trust{font-size:13px;margin-top:14px;background:rgba(255,255,255,.15);padding:8px 12px;border-radius:10px;display:inline-block}

/* tabbar */
.demo-bar{display:none;background:#fff7e6;border-bottom:1px solid #fde9b8;color:#8a5a00;font-size:11.5px;line-height:1.5;padding:8px 14px;text-align:center;align-items:center;justify-content:center;gap:8px}
.demo-bar.on{display:flex}
.demo-login-btn{border:none;background:var(--blue);color:#fff;border-radius:14px;padding:4px 12px;font-family:inherit;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.tabbar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;height:64px;background:#fff;border-top:1px solid var(--line);display:flex;z-index:10}
.tab{flex:1;border:none;background:none;font-family:inherit;font-size:11px;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer}
.tab .ti{font-size:20px;line-height:1}
.tab .tl{font-size:11px;line-height:1.2}
.tab.active{color:var(--blue);font-weight:600}

/* 弹层 */
.sheet{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:40;display:none;align-items:flex-end;justify-content:center}
.sheet.on{display:flex}
.sheet-inner{width:100%;max-width:430px;background:#fff;border-radius:20px 20px 0 0;padding:22px 20px 28px;max-height:86vh;overflow-y:auto}
.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.sheet-head h3{font-size:17px;font-weight:800}
.x{border:none;background:#f3f4f6;width:30px;height:30px;border-radius:50%;font-size:20px;color:var(--muted);cursor:pointer}
.sheet label{display:block;font-size:12.5px;color:var(--muted);margin:13px 0 6px}
.sheet input,.sheet textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;font-size:14px;font-family:inherit;background:#fff;color:var(--ink)}
.sheet textarea{min-height:88px;resize:vertical;line-height:1.5}
.row2{display:flex;gap:10px}.row2>div{flex:1}
.sd-name{font-size:17px;font-weight:800}
.sd-trust{color:var(--gold);font-size:13px;font-weight:600;margin-top:4px}
.sd-bio{font-size:13.5px;line-height:1.6;margin:14px 0;color:#374151}
.sd-case{font-size:13px;line-height:1.6;background:#f9fafb;border-radius:10px;padding:12px;margin-bottom:14px}
.stamp-box{background:#fffbeb;border:1px solid #fde9b8;border-radius:14px;padding:14px;margin-top:16px}
.stamp-box h4{font-size:14px;margin-bottom:10px}
.tag-pick{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.tag-pick .chip{padding:6px 11px}
.stamp-box textarea{min-height:64px}

.toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%) translateY(20px);background:rgba(17,24,39,.92);color:#fff;padding:11px 18px;border-radius:18px;font-size:13px;line-height:1.45;opacity:0;transition:.25s;z-index:60;pointer-events:none;max-width:86vw;text-align:center;overflow-wrap:anywhere}
.toast.on{opacity:1;transform:translateX(-50%) translateY(0)}
.empty{text-align:center;color:var(--muted);font-size:13px;padding:38px 10px;line-height:1.7}
