/* NI 城市更新项目经营小程序 — 可视化原型样式
   视觉规范（需求 9.3）：浅色 / 设计师感 / 克制而有活力
   主色蓝、成功绿、提醒橙、风险红；红色只用于需要行动的异常 */

:root{
  --blue:#2563EB;      --blue-soft:#EFF5FF;   --blue-line:#BFDBFE;
  --green:#16A34A;     --green-soft:#ECFDF5;
  --orange:#F59E0B;    --orange-soft:#FFFBEB;
  --red:#DC2626;       --red-soft:#FEF2F2;
  --bg:#F4F6F9;
  --card:#FFFFFF;
  --text:#0F172A;      --text-2:#475569;      --text-3:#94A3B8;
  --line:#E8EDF3;
  --radius:16px;
  --shadow:0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}

/* ============ 舞台（桌面外壳） ============ */
.stage{
  min-height:100vh;
  background:
    radial-gradient(1000px 520px at 12% -8%, #E8F0FE 0%, rgba(232,240,254,0) 60%),
    radial-gradient(880px 480px at 92% 6%, #F1F5F9 0%, rgba(241,245,249,0) 62%),
    #F7F9FC;
  display:flex; flex-direction:column; align-items:center;
  padding:28px 20px 56px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--text);
}
.stage-head{width:100%;max-width:1180px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.stage-title{font-size:20px;font-weight:650;letter-spacing:.2px}
.stage-sub{font-size:13px;color:var(--text-2);margin-top:6px;line-height:1.6}
.stage-actions{display:flex;gap:10px}
.btn{
  height:38px;padding:0 16px;border-radius:10px;border:1px solid var(--line);
  background:#fff;color:var(--text-2);font-size:13px;cursor:pointer;
  display:inline-flex;align-items:center;gap:6px;transition:.18s;font-family:inherit;
}
.btn:hover{border-color:var(--blue-line);color:var(--blue);background:var(--blue-soft)}
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.primary:hover{background:#1D4FD7;color:#fff}

.stage-body{display:flex;gap:34px;align-items:flex-start;flex-wrap:wrap;justify-content:center}
.phone-notes{width:250px;display:flex;flex-direction:column;gap:14px;padding-top:44px}
.note-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow)}
.note-title{font-size:13px;font-weight:600;margin-bottom:8px;display:flex;align-items:center;gap:7px}
.note-dot{width:6px;height:6px;border-radius:50%;background:var(--blue)}
.note-list{margin:0;padding-left:16px;font-size:12px;color:var(--text-2);line-height:1.85}

/* ============ 手机外壳 ============ */
.phone{
  width:390px;height:844px;background:var(--bg);
  border-radius:46px;position:relative;flex-shrink:0;
  box-shadow:0 0 0 11px #0F172A, 0 0 0 13px #334155, 0 34px 70px rgba(15,23,42,.28);
  overflow:hidden;display:flex;flex-direction:column;
}
.notch{
  position:absolute;top:9px;left:50%;transform:translateX(-50%);
  width:112px;height:30px;background:#0F172A;border-radius:20px;z-index:60;
}
.statusbar{
  height:50px;flex-shrink:0;display:flex;align-items:flex-end;justify-content:space-between;
  padding:0 26px 6px;font-size:13px;font-weight:600;color:var(--text);position:relative;z-index:50;
  background:var(--card);
}
.status-right{display:flex;align-items:center;gap:5px;font-size:11px}
.bars{display:flex;align-items:flex-end;gap:2px;height:10px}
.bars i{width:3px;background:var(--text);border-radius:1px;display:block}
.bars i:nth-child(1){height:4px}.bars i:nth-child(2){height:6px}
.bars i:nth-child(3){height:8px}.bars i:nth-child(4){height:10px}
.battery{width:22px;height:11px;border:1.2px solid var(--text);border-radius:3px;position:relative;padding:1.4px}
.battery::after{content:'';position:absolute;right:-3.4px;top:3px;width:2px;height:5px;background:var(--text);border-radius:0 2px 2px 0}
.battery span{display:block;height:100%;width:76%;background:var(--text);border-radius:1.4px}

/* 小程序导航栏 */
.navbar{
  height:44px;flex-shrink:0;background:var(--card);display:flex;align-items:center;justify-content:center;
  position:relative;border-bottom:.5px solid var(--line);
}
.navbar-title{font-size:15px;font-weight:600;letter-spacing:.2px}
.capsule{
  position:absolute;right:10px;top:8px;height:28px;width:80px;border-radius:14px;
  border:1px solid rgba(15,23,42,.09);background:rgba(247,248,250,.92);
  display:flex;align-items:center;justify-content:space-around;padding:0 8px;
}
.capsule .dot{width:15px;height:15px;border:1.2px solid var(--text-2);border-radius:50%;position:relative}
.capsule .dot::before{content:'';position:absolute;left:3.4px;top:3.4px;width:5px;height:5px;background:var(--text-2);border-radius:50%}
.capsule .circ{width:4px;height:4px;background:var(--text-2);border-radius:50%}

/* 滚动区 */
.screen{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;background:var(--bg);scrollbar-width:none}
.screen::-webkit-scrollbar{display:none}
.page{padding:14px 14px 22px;display:none;animation:fadeUp .3s ease}
.page.active{display:block}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ============ 底部 TabBar ============ */
.tabbar{
  height:58px;flex-shrink:0;background:#fff;border-top:.5px solid var(--line);
  display:flex;align-items:stretch;padding-bottom:6px;
}
.tab{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  cursor:pointer;color:var(--text-3);transition:.18s;position:relative;
}
.tab svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tab span{font-size:10px;letter-spacing:.2px}
.tab.active{color:var(--blue)}
.tab.active svg{stroke-width:2}
.tab .badge{
  position:absolute;top:5px;left:50%;margin-left:6px;min-width:15px;height:15px;padding:0 4px;
  background:var(--red);color:#fff;font-size:9px;border-radius:8px;display:flex;align-items:center;justify-content:center;
  border:1.5px solid #fff;
}

/* ============ 通用元件 ============ */
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.sec{margin-bottom:14px}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin:2px 2px 10px}
.sec-title{font-size:14px;font-weight:650;display:flex;align-items:center;gap:7px}
.sec-title::before{content:'';width:3px;height:13px;border-radius:2px;background:var(--blue)}
.sec-more{font-size:11px;color:var(--text-3)}

.pill{display:inline-flex;align-items:center;height:19px;padding:0 7px;border-radius:6px;font-size:10.5px;font-weight:600;letter-spacing:.2px}
.pill.blue{background:var(--blue-soft);color:var(--blue)}
.pill.green{background:var(--green-soft);color:var(--green)}
.pill.orange{background:var(--orange-soft);color:#B45309}
.pill.red{background:var(--red-soft);color:var(--red)}
.pill.gray{background:#F1F5F9;color:var(--text-2)}

/* 人话文案 */
.insight{
  display:flex;gap:9px;padding:10px 12px;border-radius:11px;background:#F8FAFC;
  border-left:3px solid var(--blue);
}
.insight.warn{background:var(--orange-soft);border-left-color:var(--orange)}
.insight.danger{background:var(--red-soft);border-left-color:var(--red)}
.insight-text{font-size:12.5px;line-height:1.65;color:var(--text-2)}
.insight-text b{color:var(--text);font-weight:600}

/* 成员头像 */
.member-stack{display:flex;align-items:center}
.avatar{
  width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:11px;font-weight:600;border:2px solid #fff;margin-left:-7px;flex-shrink:0;
}
.avatar:first-child{margin-left:0}
.avatar.sm{width:22px;height:22px;font-size:10px;border-width:1.5px}
.avatar.lg{width:38px;height:38px;font-size:15px;border-width:2.5px;margin-left:0}
.avatar-wrap{position:relative}
.avatar-wrap .crown{
  position:absolute;top:-4px;left:-4px;width:13px;height:13px;border-radius:50%;
  background:var(--blue);border:2px solid #fff;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:7px;font-weight:700;z-index:2;
}

/* 资金双轨 */
.track{margin-bottom:8px}
.track:last-child{margin-bottom:0}
.track-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.track-label{font-size:11px;color:var(--text-3);display:flex;align-items:center;gap:5px}
.track-value{font-size:11.5px;color:var(--text-2);font-variant-numeric:tabular-nums}
.track-value b{font-size:13px;color:var(--text);font-weight:650}
.track-bar{height:6px;border-radius:4px;background:#EFF3F8;overflow:hidden;position:relative}
.track-fill{height:100%;border-radius:4px;width:0;transition:width .9s cubic-bezier(.22,1,.36,1)}
.track-fill.in{background:linear-gradient(90deg,#3B82F6,#2563EB)}
.track-fill.out{background:linear-gradient(90deg,#FBBF24,#F59E0B)}
.track-fill.over{background:linear-gradient(90deg,#F87171,#DC2626)}
.track-mark{position:absolute;top:-3px;width:2px;height:12px;background:var(--text);opacity:.32;border-radius:1px}

/* 七阶段任务条 */
.stage-rail{display:flex;align-items:flex-start;position:relative;padding:2px 0}
.stage-node{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;position:relative;cursor:pointer}
.stage-node .ring{
  width:15px;height:15px;border-radius:50%;border:2px solid var(--line);background:#fff;
  display:flex;align-items:center;justify-content:center;transition:.25s;position:relative;z-index:2;
}
.stage-node .ring::after{content:'';width:6px;height:6px;border-radius:50%;background:transparent;transition:.25s}
.stage-node .name{font-size:9.5px;color:var(--text-3);letter-spacing:.2px;white-space:nowrap}
.stage-node.done .ring{border-color:var(--blue);background:var(--blue)}
.stage-node.done .ring::after{background:#fff}
.stage-node.done .name{color:var(--text-2)}
.stage-node.partial .ring{border-color:var(--blue)}
.stage-node.partial .ring::after{width:8px;height:8px;border-radius:50%;background:var(--blue);opacity:.55}
.stage-node.current .ring{border-color:var(--blue);background:#fff;box-shadow:0 0 0 4px var(--blue-soft)}
.stage-node.current .ring::after{background:var(--blue);animation:breathe 2.2s ease-in-out infinite}
.stage-node.current .name{color:var(--blue);font-weight:650}
@keyframes breathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.72)}}
.stage-line{position:absolute;top:9.5px;height:2px;background:var(--line);z-index:1;border-radius:2px}
.stage-line.fill{background:var(--blue)}

/* ============ 首页 ============ */
.hero{padding:4px 2px 14px}
.hero-date{font-size:11.5px;color:var(--text-3);letter-spacing:.4px}
.hero-title{font-size:21px;font-weight:700;letter-spacing:.2px;margin:7px 0 10px;line-height:1.35}
.hero-summary{
  display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);
  border-radius:22px;padding:7px 13px;font-size:12.5px;color:var(--text-2);box-shadow:var(--shadow);
}
.hero-summary b{color:var(--text);font-weight:650}
.hero-summary .flag{width:6px;height:6px;border-radius:50%;background:var(--red);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}

/* 阶段筛选 */
.filter-bar{display:flex;gap:7px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none}
.filter-bar::-webkit-scrollbar{display:none}
.chip{
  flex-shrink:0;height:30px;padding:0 14px;border-radius:15px;background:#fff;border:1px solid var(--line);
  font-size:12px;color:var(--text-2);display:flex;align-items:center;gap:5px;cursor:pointer;transition:.2s;
  font-family:inherit;
}
.chip .n{font-size:10px;color:var(--text-3);font-variant-numeric:tabular-nums}
.chip.active{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:600}
.chip.active .n{color:rgba(255,255,255,.75)}

/* 项目卡 */
.proj-card{margin-bottom:12px;transition:.28s cubic-bezier(.22,1,.36,1);border:1px solid transparent}
.proj-card.open{border-color:var(--blue-line);box-shadow:0 2px 6px rgba(37,99,235,.08),0 12px 30px rgba(15,23,42,.07)}
.proj-head{padding:13px 14px 11px;cursor:pointer}
.proj-row1{display:flex;align-items:center;gap:7px;margin-bottom:7px}
.proj-no{
  width:19px;height:19px;border-radius:6px;background:#F1F5F9;color:var(--text-3);
  font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.proj-name{font-size:15.5px;font-weight:650;letter-spacing:.2px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-meta{font-size:11px;color:var(--text-3);margin-bottom:11px;display:flex;align-items:center;gap:6px}
.proj-collapse-hint{font-size:10.5px;color:var(--text-3);display:flex;align-items:center;gap:3px}
.proj-collapse-hint svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2;transition:transform .28s}
.proj-card.open .proj-collapse-hint svg{transform:rotate(180deg)}

.proj-footer{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;border-top:.5px solid var(--line);background:#FCFDFE}
.proj-actions{display:flex;gap:7px}
.mini-btn{
  height:27px;padding:0 11px;border-radius:8px;border:1px solid var(--line);background:#fff;
  font-size:11.5px;color:var(--text-2);display:inline-flex;align-items:center;gap:4px;cursor:pointer;font-family:inherit;transition:.18s;
}
.mini-btn:hover{border-color:var(--blue-line);color:var(--blue)}
.mini-btn.solid{background:var(--blue);border-color:var(--blue);color:#fff}
.mini-btn.warn{background:var(--red-soft);border-color:#FECACA;color:var(--red)}

/* 展开区 */
.proj-detail{padding:0 14px 14px;border-top:.5px dashed var(--line);margin-top:0;animation:expand .34s cubic-bezier(.22,1,.36,1)}
@keyframes expand{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.next-action{
  background:var(--blue-soft);border-radius:12px;padding:11px 12px;margin-top:12px;
  display:flex;gap:9px;align-items:flex-start;
}
.next-action .icon{
  width:20px;height:20px;border-radius:6px;background:var(--blue);color:#fff;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;margin-top:1px;
}
.next-action .label{font-size:10.5px;color:var(--blue);font-weight:600;letter-spacing:.3px;margin-bottom:3px}
.next-action .text{font-size:13px;color:var(--text);line-height:1.55;font-weight:550}
.next-action .due{font-size:11px;color:var(--text-2);margin-top:5px;display:flex;align-items:center;gap:4px}

.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.metric{background:#F8FAFC;border-radius:11px;padding:9px 10px;text-align:center}
.metric .k{font-size:10px;color:var(--text-3);margin-bottom:4px}
.metric .v{font-size:16px;font-weight:680;font-variant-numeric:tabular-nums;letter-spacing:.2px}
.metric .v.red{color:var(--red)} .metric .v.orange{color:#B45309} .metric .v.green{color:var(--green)} .metric .v.blue{color:var(--blue)}

.kv-list{margin-top:11px;display:flex;flex-direction:column;gap:7px}
.kv{display:flex;gap:8px;font-size:12px;line-height:1.6}
.kv .k{color:var(--text-3);flex-shrink:0;width:52px}
.kv .v{color:var(--text-2);flex:1}
.kv .v.strong{color:var(--red);font-weight:550}

/* 商机条 */
.opp-row{display:flex;align-items:center;gap:11px;padding:12px 14px;border-bottom:.5px solid var(--line);cursor:pointer;transition:.16s}
.opp-row:last-child{border-bottom:none}
.opp-row:hover{background:#FAFBFC}
.opp-main{flex:1;min-width:0}
.opp-name{font-size:13.5px;font-weight:600;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.opp-sub{font-size:11px;color:var(--text-3);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.opp-amount{text-align:right;flex-shrink:0}
.opp-amount .v{font-size:14px;font-weight:680;color:var(--text);font-variant-numeric:tabular-nums}
.opp-amount .l{font-size:10px;color:var(--text-3);margin-top:2px}

/* 热度环 */
.heat-ring{width:40px;height:40px;flex-shrink:0;position:relative;cursor:pointer}
.heat-ring svg{transform:rotate(-90deg)}
.heat-ring .txt{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums;
}

/* 动态 */
.act-item{display:flex;gap:10px;padding:11px 14px;border-bottom:.5px solid var(--line)}
.act-item:last-child{border-bottom:none}
.act-body{flex:1;min-width:0}
.act-text{font-size:12.5px;line-height:1.6;color:var(--text-2)}
.act-text b{color:var(--text);font-weight:600}
.act-time{font-size:10.5px;color:var(--text-3);margin-top:3px}

/* ============ 全局数据区 ============ */
.global-ring-wrap{display:flex;align-items:center;gap:16px;padding:16px 14px}
.global-ring{width:112px;height:112px;flex-shrink:0;position:relative}
.global-ring svg{transform:rotate(-90deg)}
.ring-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-center .v{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.2px}
.ring-center .l{font-size:10px;color:var(--text-3);margin-top:2px}
.ring-side{flex:1;display:flex;flex-direction:column;gap:9px}
.ring-line{display:flex;align-items:center;justify-content:space-between;font-size:12px}
.ring-line .l{color:var(--text-3);display:flex;align-items:center;gap:6px}
.ring-line .d{width:7px;height:7px;border-radius:2px}
.ring-line .v{font-weight:650;font-variant-numeric:tabular-nums}

.seg{display:inline-flex;background:#F1F5F9;border-radius:9px;padding:2.5px;gap:2px}
.seg button{
  height:24px;padding:0 11px;border:none;background:transparent;border-radius:7px;
  font-size:11.5px;color:var(--text-2);cursor:pointer;transition:.2s;font-family:inherit;
}
.seg button.on{background:#fff;color:var(--blue);font-weight:600;box-shadow:0 1px 3px rgba(15,23,42,.09)}

.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.stat{background:#fff;border-radius:13px;padding:12px 13px;box-shadow:var(--shadow);cursor:pointer;transition:.18s;border:1px solid transparent}
.stat:hover{border-color:var(--blue-line);transform:translateY(-1px)}
.stat .l{font-size:10.5px;color:var(--text-3);display:flex;align-items:center;gap:5px;margin-bottom:6px}
.stat .v{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.3px}
.stat .v small{font-size:11px;font-weight:500;color:var(--text-3);margin-left:2px}
.stat .d{font-size:10.5px;color:var(--green);margin-top:4px}
.stat .d.down{color:var(--red)}

.dist{display:flex;height:12px;border-radius:6px;overflow:hidden;margin:4px 0 12px;background:#F1F5F9}
.dist i{height:100%;transition:width .8s cubic-bezier(.22,1,.36,1);cursor:pointer;position:relative}
.dist i:hover{filter:brightness(1.08)}
.dist-legend{display:flex;flex-wrap:wrap;gap:9px 14px}
.dist-legend .item{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--text-2);cursor:pointer}
.dist-legend .d{width:7px;height:7px;border-radius:2px}
.dist-legend .n{color:var(--text-3);font-variant-numeric:tabular-nums}

/* ============ 项目列表页 ============ */
.search-box{display:flex;align-items:center;gap:8px;background:#fff;border-radius:11px;padding:0 12px;height:38px;box-shadow:var(--shadow);margin-bottom:11px}
.search-box svg{width:15px;height:15px;stroke:var(--text-3);fill:none;stroke-width:2;flex-shrink:0}
.search-box input{border:none;outline:none;flex:1;font-size:13px;font-family:inherit;color:var(--text);background:transparent}
.search-box input::placeholder{color:var(--text-3)}
.filter-row{display:flex;gap:7px;overflow-x:auto;padding-bottom:12px;scrollbar-width:none}
.filter-row::-webkit-scrollbar{display:none}
.fchip{
  flex-shrink:0;height:27px;padding:0 11px;border-radius:8px;background:#fff;border:1px solid var(--line);
  font-size:11.5px;color:var(--text-2);display:flex;align-items:center;cursor:pointer;font-family:inherit;transition:.18s;
}
.fchip.on{background:var(--text);border-color:var(--text);color:#fff}

.plist{display:flex;flex-direction:column;gap:9px}
.prow{background:#fff;border-radius:13px;padding:12px 13px;box-shadow:var(--shadow);cursor:pointer;transition:.18s;border:1px solid transparent}
.prow:hover{border-color:var(--blue-line)}
.prow-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.prow-name{font-size:14px;font-weight:620;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prow-bars{display:flex;gap:12px}
.pbar{flex:1}
.pbar .h{display:flex;justify-content:space-between;font-size:10px;color:var(--text-3);margin-bottom:4px}
.pbar .h b{color:var(--text-2);font-weight:600;font-variant-numeric:tabular-nums}
.pbar .bar{height:5px;border-radius:3px;background:#EFF3F8;overflow:hidden}
.pbar .bar i{display:block;height:100%;border-radius:3px;width:0;transition:width .9s cubic-bezier(.22,1,.36,1)}
.prow-foot{display:flex;align-items:center;justify-content:space-between;margin-top:9px;font-size:10.5px;color:var(--text-3)}

/* ============ 团队页 ============ */
.member-card{background:#fff;border-radius:13px;padding:13px;box-shadow:var(--shadow);display:flex;gap:12px;align-items:center;margin-bottom:9px}
.member-info{flex:1;min-width:0}
.member-name{font-size:14px;font-weight:620;display:flex;align-items:center;gap:7px}
.member-role{font-size:11px;color:var(--text-3);margin-top:3px}
.member-main{font-size:10.5px;color:var(--text-2);margin-top:5px}
.load-bar{width:74px;height:5px;border-radius:3px;background:#EFF3F8;overflow:hidden;margin-top:7px;flex-shrink:0}
.load-bar i{display:block;height:100%;border-radius:3px;transition:width .9s cubic-bezier(.22,1,.36,1)}
.load-num{font-size:11px;color:var(--text-2);font-variant-numeric:tabular-nums;text-align:right;margin-top:5px}

/* ============ 我的 ============ */
.me-head{background:linear-gradient(135deg,#2563EB,#3B82F6);border-radius:18px;padding:18px 16px;color:#fff;margin-bottom:14px;box-shadow:0 10px 24px rgba(37,99,235,.22)}
.me-head .row{display:flex;align-items:center;gap:13px}
.me-avatar{width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:700;border:2px solid rgba(255,255,255,.5)}
.me-name{font-size:18px;font-weight:680}
.me-role{font-size:11.5px;opacity:.82;margin-top:3px}
.me-stats{display:flex;gap:20px;margin-top:15px;padding-top:14px;border-top:1px solid rgba(255,255,255,.2)}
.me-stat .v{font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}
.me-stat .l{font-size:10.5px;opacity:.8;margin-top:2px}

.task-item{display:flex;gap:11px;padding:12px 14px;border-bottom:.5px solid var(--line);align-items:flex-start}
.task-item:last-child{border-bottom:none}
.task-check{
  width:18px;height:18px;border-radius:50%;border:2px solid var(--line);flex-shrink:0;margin-top:2px;
  cursor:pointer;transition:.2s;display:flex;align-items:center;justify-content:center;
}
.task-check:hover{border-color:var(--blue)}
.task-check.on{background:var(--green);border-color:var(--green)}
.task-check.on::after{content:'';width:5px;height:9px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(42deg) translate(-1px,-1px)}
.task-body{flex:1;min-width:0}
.task-text{font-size:13px;line-height:1.55;color:var(--text)}
.task-item.done .task-text{text-decoration:line-through;color:var(--text-3)}
.task-meta{font-size:10.5px;color:var(--text-3);margin-top:5px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}

.setting-row{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:.5px solid var(--line);font-size:13px;cursor:pointer}
.setting-row:last-child{border-bottom:none}
.setting-row .l{display:flex;align-items:center;gap:10px;color:var(--text)}
.setting-row .l .ico{width:26px;height:26px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:12px}
.setting-row .r{color:var(--text-3);font-size:11.5px;display:flex;align-items:center;gap:5px}

/* ============ 弹层 / Toast ============ */
.sheet-mask{
  position:absolute;inset:0;background:rgba(15,23,42,.42);z-index:80;opacity:0;pointer-events:none;transition:.28s;
  backdrop-filter:blur(2px);
}
.sheet-mask.on{opacity:1;pointer-events:auto}
.sheet{
  position:absolute;left:0;right:0;bottom:0;z-index:90;background:#fff;border-radius:20px 20px 0 0;
  transform:translateY(100%);transition:transform .34s cubic-bezier(.22,1,.36,1);
  max-height:74%;display:flex;flex-direction:column;
}
.sheet.on{transform:none}
.sheet-head{padding:16px 18px 12px;border-bottom:.5px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.sheet-title{font-size:16px;font-weight:660}
.sheet-sub{font-size:11.5px;color:var(--text-3);margin-top:4px}
.sheet-close{width:26px;height:26px;border-radius:50%;background:#F1F5F9;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;color:var(--text-2);font-size:14px}
.sheet-body{padding:14px 18px 26px;overflow-y:auto}

.toast{
  position:absolute;left:50%;bottom:96px;transform:translate(-50%,14px);z-index:120;
  background:rgba(15,23,42,.9);color:#fff;font-size:12.5px;padding:9px 16px;border-radius:10px;
  opacity:0;pointer-events:none;transition:.28s;white-space:nowrap;
}
.toast.on{opacity:1;transform:translate(-50%,0)}

.empty{padding:34px 20px;text-align:center;color:var(--text-3);font-size:12.5px}

/* 嵌入模式（总览页 iframe 内） */
body.embed{overflow:hidden}
body.embed .stage{padding:0;background:none;min-height:0}
body.embed .stage-head,
body.embed .phone-notes{display:none}
body.embed .stage-body{display:block}
body.embed .phone{box-shadow:none;border-radius:0;height:844px}

/* 嵌入模式（总览页 iframe 内） */
.overview{padding:10px 0 40px;width:100%;max-width:1240px}
.ov-grid{display:flex;flex-wrap:wrap;gap:26px;justify-content:center}
.ov-item{display:flex;flex-direction:column;align-items:center;gap:10px}
.ov-label{font-size:12.5px;color:var(--text-2);font-weight:600;letter-spacing:.3px}
.ov-phone{width:390px;height:844px;transform:scale(.62);transform-origin:top center;margin-bottom:-320px}
.ov-phone .phone{box-shadow:0 0 0 9px #0F172A, 0 0 0 11px #334155, 0 20px 44px rgba(15,23,42,.22)}
.ov-phone .screen{pointer-events:none}

/* ============ 真机浏览器模式：同一套代码，手机全屏运行 ============ */
@media (max-width: 820px){
  html,body{margin:0;padding:0;overscroll-behavior:none;background:var(--bg)}
  .stage{padding:0;background:var(--bg);min-height:100vh;display:block}
  .stage-head{display:none}
  .phone-notes{display:none}
  .stage-body{display:block}
  .phone{width:100%;height:100vh;border-radius:0;box-shadow:none;background:var(--bg)}
  .notch{display:none}
  .statusbar{display:none}
  .navbar{height:auto;padding-top:env(safe-area-inset-top);background:var(--card)}
  .navbar-title{height:44px;display:flex;align-items:center;justify-content:center}
  .capsule{display:none}
  .tabbar{height:auto;padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
  .tab{padding:4px 0 2px}
  .toast{bottom:calc(96px + env(safe-area-inset-bottom))}
  .overview{padding:0}
  .ov-grid{flex-direction:column;gap:20px}
  .ov-phone{width:100%;height:844px;transform:none;margin:0}
}

/* ============ 登录 / 权限 / 编辑 ============ */
.ni-bar{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 14px;background:#fff;border-bottom:1px solid var(--line);flex-shrink:0;
}
.ni-bar.guest{background:#FFFBEB}
.ni-bar-l{display:flex;align-items:center;gap:7px}
.ni-dot{width:6px;height:6px;border-radius:50%;background:#CBD5E1}
.ni-dot.on{background:#16A34A}
.ni-who{font-size:12px;font-weight:600;color:var(--text)}
.ni-role{font-size:10.5px;color:var(--text-3);background:#F1F5F9;padding:2px 7px;border-radius:5px}
.ni-bar-r{display:flex;align-items:center;gap:10px}
.ni-perm{font-size:10px;color:var(--text-3)}
.ni-out{border:1px solid var(--line);background:#fff;border-radius:7px;padding:4px 10px;font-size:11px;color:var(--text-2);cursor:pointer;font-family:inherit}
.ni-out.login{background:#2563EB;border-color:#2563EB;color:#fff}

.ni-auth{position:fixed;inset:0;z-index:300;background:linear-gradient(160deg,#F8FAFC 0%,#EFF5FF 100%);display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;pointer-events:none;transition:.3s}
.ni-auth.on{opacity:1;pointer-events:auto}
.ni-auth-box{width:100%;max-width:360px;background:#fff;border-radius:20px;padding:32px 26px 24px;box-shadow:0 20px 60px rgba(15,23,42,.12);text-align:center}
.ni-logo{width:56px;height:56px;border-radius:16px;background:#2563EB;color:#fff;font-size:22px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.ni-t{font-size:17px;font-weight:650}
.ni-s{font-size:12.5px;color:#64748B;margin:6px 0 22px}
.ni-field{text-align:left;margin-bottom:12px}
.ni-field label{display:block;font-size:11.5px;color:#475569;margin-bottom:6px;font-weight:550}
.ni-field input{width:100%;height:44px;border:1px solid #E2E8F0;border-radius:10px;padding:0 14px;font-size:14px;outline:none;font-family:inherit;color:#0F172A;background:#fff}
.ni-field input:focus{border-color:#2563EB;box-shadow:0 0 0 3px #EFF5FF}
.ni-btn{width:100%;height:46px;border:none;border-radius:12px;background:#2563EB;color:#fff;font-size:15px;font-weight:600;cursor:pointer;margin-top:6px;font-family:inherit}
.ni-btn:hover{background:#1D4FD7}
.ni-err{color:#DC2626;font-size:12px;min-height:18px;text-align:left}
.ni-guest{margin-top:14px;font-size:12.5px;color:#64748B;cursor:pointer}
.ni-guest:hover{color:#2563EB}
.ni-note{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:10.5px;color:#94A3B8;line-height:1.6}

.ni-edit{position:fixed;inset:0;z-index:260;background:rgba(15,23,42,.45);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:.28s}
.ni-edit.on{opacity:1;pointer-events:auto}
.ni-edit-box{width:100%;max-width:520px;background:#fff;border-radius:18px 18px 0 0;max-height:88vh;display:flex;flex-direction:column;transform:translateY(20px);transition:.3s}
.ni-edit.on .ni-edit-box{transform:none}
.ni-edit-head{padding:16px 18px 12px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ni-edit-title{font-size:16px;font-weight:650}
.ni-edit-sub{font-size:11px;color:var(--text-3);margin-top:4px}
.ni-x{width:26px;height:26px;border-radius:50%;background:#F1F5F9;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-2);font-size:15px;flex-shrink:0}
.ni-edit-body{padding:16px 18px;overflow-y:auto;flex:1}
.ni-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ni-row{display:flex;flex-direction:column;gap:6px}
.ni-row.full{grid-column:1/-1}
.ni-row label{font-size:11.5px;color:#475569;font-weight:550;display:flex;align-items:center;gap:4px}
.ni-row .u{color:#94A3B8;font-weight:400}
.ni-row input,.ni-row select{height:40px;border:1px solid #E2E8F0;border-radius:9px;padding:0 12px;font-size:13px;outline:none;font-family:inherit;color:#0F172A;background:#fff;width:100%}
.ni-row input:focus,.ni-row select:focus{border-color:#2563EB;box-shadow:0 0 0 3px #EFF5FF}
.ni-row.locked{opacity:.6}
.ni-row.locked input,.ni-row.locked select{background:#F8FAFC}
.ni-row .lock{font-size:10px;color:#94A3B8}
.ni-log-title{font-size:12px;font-weight:600;margin:18px 0 10px;color:var(--text-2)}
.ni-log{display:flex;gap:10px;font-size:11px;color:var(--text-2);padding:7px 0;border-bottom:1px solid var(--line);line-height:1.6}
.ni-log:last-child{border-bottom:none}
.ni-log .lt{color:var(--text-3);flex-shrink:0}
.ni-log .lw{flex-shrink:0;color:var(--text);font-weight:550}
.ni-log .lx{flex:1}
.ni-log.empty{color:var(--text-3);border:none}
.ni-edit-foot{padding:12px 18px;border-top:1px solid var(--line);display:flex;gap:10px}
.ni-btn2{flex:1;height:44px;border-radius:11px;font-size:14px;cursor:pointer;font-family:inherit;border:1px solid var(--line);background:#fff;color:var(--text-2)}
.ni-btn2.primary{background:#2563EB;border-color:#2563EB;color:#fff;font-weight:600}
.ni-btn2.primary:hover{background:#1D4FD7}

/* ============ 设计/施工双进度 ============ */
.dual{display:flex;gap:14px;margin-top:14px}
.dual-item{flex:1}
.dual-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.dual-label{font-size:11px;color:var(--text-3);font-weight:600}
.dual-val{font-size:12px;font-weight:650;color:var(--text);font-variant-numeric:tabular-nums}
.dual-bar{height:8px;border-radius:4px;background:#EFF3F8;overflow:hidden}
.dual-bar i{display:block;height:100%;border-radius:4px;width:0;transition:width .9s cubic-bezier(.22,1,.36,1)}
.dual-amt{font-size:10px;color:var(--text-3);margin-top:5px}

/* ============ 供应商与利润 ============ */
.sup-block{margin-top:16px;background:#F8FAFC;border-radius:12px;padding:12px 13px}
.sup-title{font-size:12px;font-weight:650;color:var(--text);margin-bottom:9px}
.sup-row{display:flex;align-items:center;gap:8px;font-size:11.5px;padding:6px 0;border-bottom:1px solid #E8EDF3}
.sup-row:last-of-type{border-bottom:none}
.sup-name{flex:1;color:var(--text);font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-cat{font-size:10px;color:var(--text-3);background:#fff;border:1px solid var(--line);padding:1px 6px;border-radius:5px}
.sup-amt{font-variant-numeric:tabular-nums;color:var(--text-2);font-weight:600}
.sup-paid{font-size:10.5px;color:var(--orange)}
.sup-paid.ok{color:var(--green)}
.sup-empty{font-size:11.5px;color:var(--text-3);padding:6px 0}
.sup-sum{display:flex;justify-content:space-between;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.sup-sum div{display:flex;flex-direction:column;gap:3px}
.sup-sum span{font-size:10px;color:var(--text-3)}
.sup-sum b{font-size:12.5px;font-variant-numeric:tabular-nums;color:var(--text)}

/* ============ 新建入口 ============ */
.ni-create-bar{margin-bottom:14px}
.ni-create{
  width:100%;height:76px;border:2px dashed var(--blue-line);border-radius:16px;
  background:var(--blue-soft);color:var(--blue);font-size:15px;font-weight:600;
  display:flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit;
}
.ni-create:hover{background:#E0ECFF}
.ni-create.disabled{
  border-color:var(--line);background:#F8FAFC;color:var(--text-3);cursor:not-allowed;
}

/* ============ 编辑弹层补充 ============ */
.ni-section{
  font-size:12px;font-weight:650;color:var(--text-2);
  margin:16px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line);
}
.ni-section:first-child{margin-top:0}
.ni-tip{
  margin-top:14px;padding:10px 12px;background:#F8FAFC;border-radius:10px;
  font-size:11px;color:var(--text-3);line-height:1.7;
}
.ni-row .hint{font-size:10px;color:var(--text-3);margin-top:2px}

.ni-sup{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.ni-sup-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ni-sup-title{font-size:12.5px;font-weight:650;color:var(--text)}
.ni-add{
  height:32px;padding:0 12px;border:1px solid var(--blue-line);background:var(--blue-soft);
  color:var(--blue);border-radius:8px;font-size:11.5px;cursor:pointer;font-family:inherit;
}
.ni-sup-row{display:grid;grid-template-columns:1.4fr .8fr .7fr .7fr 32px;gap:8px;margin-bottom:8px;align-items:center}
.ni-sup-row input,.ni-sup-row select{
  height:36px;border:1px solid #E2E8F0;border-radius:8px;padding:0 8px;
  font-size:12px;outline:none;font-family:inherit;background:#fff;color:#0F172A;width:100%;
}
.ni-sup-row input:focus,.ni-sup-row select:focus{border-color:#2563EB}
.s-del{
  width:32px;height:32px;border-radius:8px;border:1px solid #FECACA;
  background:var(--red-soft);color:var(--red);font-size:15px;cursor:pointer;line-height:1;
}
.ni-sup-empty{font-size:11.5px;color:var(--text-3);padding:8px 0}
.ni-sup-sum{
  display:flex;gap:16px;flex-wrap:wrap;margin-top:10px;padding-top:10px;
  border-top:1px dashed var(--line);font-size:11.5px;color:var(--text-3);
}
.ni-sup-sum b{font-size:13px;color:var(--text);font-variant-numeric:tabular-nums;margin-left:4px}
.ni-sup-sum .profit b{color:var(--green)}

@media (max-width:820px){
  .ni-sup-row{grid-template-columns:1fr 1fr;gap:6px}
  .ni-sup-row .s-del{width:100%}
}

/* 收款节点编辑器 */
.ni-plan-row{display:grid;grid-template-columns:1.2fr .7fr .7fr .95fr .85fr 30px;gap:6px;margin-bottom:8px;align-items:center}
.ni-plan-row input,.ni-plan-row select{
  height:34px;border:1px solid #E2E8F0;border-radius:8px;padding:0 6px;
  font-size:11px;outline:none;font-family:inherit;background:#fff;color:#0F172A;width:100%;
}
.ni-plan-row input:focus,.ni-plan-row select:focus{border-color:#2563EB}
.ni-plans{margin-top:16px}

@media (max-width:820px){
  .ni-plan-row{grid-template-columns:1fr 1fr;gap:6px;padding-bottom:6px;border-bottom:1px dashed var(--line)}
  .ni-plan-row .s-del{width:100%}
}

/* ============ 卡片右上角删除按钮 ============ */
.ni-del-x{
  position:absolute;top:10px;right:10px;z-index:5;
  height:24px;padding:0 10px;border-radius:12px;
  background:rgba(220,38,38,.08);color:#DC2626;
  border:none;cursor:pointer;font-size:11.5px;font-family:inherit;font-weight:600;
  opacity:0;transition:.18s;letter-spacing:.5px;
}
.proj-card:hover .ni-del-x, .card:hover .ni-del-x { opacity:1; }
.ni-del-x:hover{ background:#DC2626;color:#fff;transform:scale(1.05); }
.ni-del-x.sm{ height:22px;padding:0 8px;font-size:12px;line-height:22px; }
.ni-del-x.sm[data-ni="delAct"],.ni-del-x.sm[data-ni="delTask"]{
  width:22px;padding:0;border-radius:50%;font-size:14px;line-height:20px;
}
/* 移动端 hover 不可用，常显并放大可点区域 */
@media (max-width:820px){
  .ni-del-x{ opacity:.95; height:30px;padding:0 14px;font-size:12.5px;top:8px;right:8px; }
  .ni-del-x.sm[data-ni="delAct"],.ni-del-x.sm[data-ni="delTask"]{ width:28px;height:28px;padding:0;font-size:15px;line-height:26px; }
}

/* ============ 通用确认弹窗（iOS 风格） ============ */
.ni-confirm{
  position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:300;
  display:none;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(2px);
}
.ni-confirm.on{ display:flex;animation:fadeIn .15s ease; }
@keyframes fadeIn{ from{opacity:0}to{opacity:1} }
.ni-confirm-box{
  background:#fff;border-radius:16px;padding:22px 22px 16px;width:100%;max-width:340px;
  box-shadow:0 24px 60px rgba(15,23,42,.25);animation:fadeUp .2s ease;
}
.ni-confirm-title{ font-size:16px;font-weight:650;margin-bottom:10px;color:#0F172A;display:flex;align-items:center;gap:8px; }
.ni-confirm-title::before{ content:'⚠';color:#DC2626;font-size:18px; }
.ni-confirm-msg{ font-size:13.5px;color:#475569;line-height:1.7;margin-bottom:18px; }
.ni-confirm-foot{ display:flex;gap:8px;justify-content:flex-end; }
.ni-btn2.danger{ background:#DC2626;color:#fff;border:1px solid #DC2626;margin-right:auto; }
.ni-btn2.danger:hover{ background:#B91C1C;border-color:#B91C1C; }

/* ============ 回收站 ============ */
.ni-trash-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line, #E8ECF1)}
.ni-trash-row:last-child{border-bottom:none}
.ni-trash-info{flex:1;min-width:0}
.ni-trash-name{font-weight:600;font-size:14px;color:var(--ink, #0F172A);word-break:break-all}
.ni-trash-meta{font-size:12px;color:#94A3B8;margin-top:3px}
.ni-trash-btns{display:flex;gap:8px;flex-shrink:0}
.ni-btn2.mini{padding:6px 12px;font-size:12px;border-radius:8px}
@media (max-width:820px){
  .ni-trash-row{flex-wrap:wrap}
  .ni-trash-btns{width:100%;justify-content:flex-end}
}
