/* ============ 页面级样式 ============ */

/* ---- 模块级二级 Tab（页面顶部） ---- */
.page-module-tabs { animation: none; }
.module-tabs { display: flex; gap: 2px; margin-bottom: 12px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.module-tabs::-webkit-scrollbar { display: none; }
.module-tab {
  padding: 9px 14px; font-size: 13px; color: var(--text-2); position: relative;
  white-space: nowrap; flex-shrink: 0; transition: color .13s;
}
.module-tab:hover { color: var(--primary); }
.module-tab.active { color: var(--primary); font-weight: 600; }
.module-tab.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2.5px; background: var(--primary); border-radius: 2px 2px 0 0;
}

/* ---- 工作台 ---- */
/* 首页标题区压缩：减少上下留白，让业务信息进入首屏 */
.home-head .page-head { margin-bottom: 8px; }
.home-head .page-title { font-size: 17px; }
.home-head .page-sub { font-size: 12px; }
.wb-section-label { display:flex; align-items:center; gap:9px; font-size:14px; font-weight:650; margin:20px 0 10px; color:var(--text-1); }
.wb-section-label::before { content:''; width:3px; height:14px; background:var(--primary); border-radius:2px; }
.wb-section-label .sl-sub { font-size:11.5px; color:var(--text-3); font-weight:400; }
.wb-focus-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:0 14px; }
.wb-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) 340px; gap: 16px; margin-bottom: 16px; align-items:start; }
.wb-main-col, .wb-side-col { display:flex; flex-direction:column; gap:16px; min-width:0; }
.mgmt-item { display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:9px; cursor:pointer; transition:background .13s; }
.mgmt-item:hover { background:var(--bg); }
.mgmt-icon { width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mgmt-icon svg { width:15px; height:15px; }
.mgmt-icon.red { background:var(--red-bg); color:var(--red); }
.mgmt-icon.blue { background:var(--blue-bg); color:var(--blue); }
.mgmt-icon.orange { background:var(--orange-bg); color:var(--orange); }
.mgmt-icon.green { background:var(--green-bg); color:var(--green); }
.mgmt-body { flex:1; min-width:0; }
.mgmt-name { font-size:13px; color:var(--text-1); font-weight:500; }
.mgmt-desc { font-size:11.5px; color:var(--text-4); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mgmt-num { font-size:16px; font-weight:700; color:var(--text-1); font-family:var(--font-num); }
.mgmt-num.hot { color:var(--red); }
.mgmt-num.warn { color:var(--orange); }
.mgmt-arrow { color:var(--text-4); }
.mgmt-arrow svg { width:13px; height:13px; }
.mgmt-sep { height:1px; background:var(--border); margin:6px 8px; }
.anom-item { display:flex; align-items:center; gap:8px; padding:7px 12px; border-radius:8px; cursor:pointer; transition:background .13s; }
.anom-item:hover { background:var(--bg); }
.anom-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.anom-dot.red { background:var(--red); }
.anom-dot.orange { background:var(--orange); }
.anom-label { font-size:12.5px; color:var(--text-2); flex:1; }
.anom-num { font-size:13px; font-weight:650; color:var(--text-1); font-family:var(--font-num); }
.anom-num.hot { color:var(--red); }
.key-cust-list { padding:4px 8px 0; }
.key-cust-item { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:9px; cursor:pointer; transition:background .13s; }
.key-cust-item:hover { background:var(--bg); }
.kc-avatar { width:32px; height:32px; border-radius:8px; color:#fff; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.kc-info { flex:1; min-width:0; }
.kc-name { font-size:13px; font-weight:550; color:var(--text-1); }
.kc-meta { font-size:11px; color:var(--text-3); margin-top:1px; }

/* 经营提醒（轻量异常区） */
.home-alerts { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:7px 14px; margin-bottom:12px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.ha-icon { display:flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:6px; background:var(--orange-bg); color:var(--orange); flex-shrink:0; }
.ha-label { font-size:12px; color:var(--text-3); flex-shrink:0; }
.ha-item { font-size:12.5px; color:var(--text-2); padding:2px 4px; border-radius:5px; transition:color .13s; }
.ha-item:hover { color:var(--primary); }
.ha-sep { width:1px; height:12px; background:var(--border-strong); }

/* 漏斗（横向条形 + 阶段转化率） */
.funnel-list { display: flex; flex-direction: column; gap: 2px; }
.funnel-row {
  display: grid; grid-template-columns: 92px minmax(0,1fr) 44px 76px 118px; gap: 10px; align-items: center;
  padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: background .13s;
}
.funnel-row:hover { background: var(--bg); }
.funnel-row .f-name { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.funnel-row .f-bar-wrap { display: flex; align-items: center; gap: 8px; }
.funnel-row .f-bar { height: 14px; border-radius: 4px; min-width: 2px; transition: width .4s ease; }
.funnel-row .f-num { font-size: 12.5px; color: var(--text-1); font-weight: 550; font-family: var(--font-num); text-align: right; white-space:nowrap; }
.funnel-row .f-num em { font-style:normal; font-size:10.5px; color:var(--text-4); font-weight:400; margin-left:1px; }
.funnel-row .f-amt { font-size: 12px; color: var(--text-3); font-family: var(--font-num); text-align: right; white-space: nowrap; }
.funnel-row .f-amt.na { color: var(--text-4); font-size: 11px; }
/* 转化率：默认隐藏，Hover 时显示（详细转化率在数据分析页） */
.funnel-row .f-conv { font-size: 10.5px; color: var(--text-4); text-align: right; white-space: nowrap; opacity: 0; transition: opacity .13s; }
.funnel-row:hover .f-conv { opacity: 1; color: var(--text-3); }
.funnel-row .f-conv.always { opacity: 1; }
.funnel-total { display: flex; justify-content: space-between; padding: 4px 12px 2px; color: var(--text-3); font-size: 12px; }
.funnel-legend { display: flex; align-items: center; gap: 6px; }

/* 今日重点 */
.tf-list { padding: 2px 8px 8px; }
.today-focus-item {
  display: flex; align-items: center; gap: 11px; padding: 7px 12px; border-radius: 9px; cursor: pointer;
  transition: background .13s;
}
.today-focus-item:hover { background: var(--bg); }
.tf-icon { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tf-icon svg { width: 14px; height: 14px; }
.tf-icon.blue { background: var(--blue-bg); color: var(--blue); }
.tf-icon.orange { background: var(--orange-bg); color: var(--orange); }
.tf-icon.red { background: var(--red-bg); color: var(--red); }
.tf-icon.green { background: var(--green-bg); color: var(--green); }
.tf-icon.purple { background: var(--purple-bg); color: var(--purple); }
.tf-icon.gray { background: var(--gray-bg); color: var(--gray); }
.tf-body { flex: 1; min-width: 0; }
.tf-name { font-size: 13px; color: var(--text-1); font-weight: 500; }
.tf-desc { font-size: 11.5px; color: var(--text-4); margin-top: 1px; }
.tf-num { margin-left: auto; font-size: 17px; font-weight: 700; color: var(--text-1); font-family: var(--font-num); }
.tf-num.hot { color: var(--red); }
.tf-num.warn { color: var(--orange); }
.tf-num.ok { color: var(--green); }
.tf-arrow { color: var(--text-4); margin-left: 2px; }
.tf-arrow svg { width: 13px; height: 13px; }

/* 下一步行动 */
.na-list { padding: 2px 8px 10px; }
.na-item { display:flex; align-items:center; gap:11px; padding:7px 12px; border-radius:9px; cursor:pointer; transition:background .13s; }
.na-item:hover { background:var(--bg); }
.na-date { width:64px; flex-shrink:0; font-family:var(--font-num); font-size:12px; color:var(--text-3); font-weight:550; white-space:nowrap; }
.na-date.urgent { color:var(--orange); }
.na-date.today { color:var(--primary); }
.na-date.overdue { color:var(--red); }
.na-main { flex:1; min-width:0; }
.na-cust { font-size:11.5px; color:var(--primary); font-weight:550; }
.na-title { font-size:13px; color:var(--text-1); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px; }
.na-owner { font-size:11.5px; color:var(--text-4); margin-top:2px; }
.na-meta { font-size:11.5px; color:var(--text-4); margin-top:2px; }
.na-arrow { color:var(--text-4); display:flex; }
.na-item:hover .na-arrow { color:var(--primary); }

/* 经营概览：标题下的阶段结构与近 7 日跟进，使用独立网格避免与 KPI 重合 */
.operation-pulse { margin:0 0 12px; padding:11px 18px 13px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.op-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.op-title { display:flex; align-items:center; gap:8px; color:var(--text-1); font-size:13px; font-weight:650; }
.op-title::before { content:''; width:3px; height:14px; border-radius:2px; background:var(--primary); }
.op-source { color:var(--text-4); font-size:11px; }
.op-body { display:grid; grid-template-columns:minmax(0, 1.08fr) 1px minmax(230px, .92fr); gap:20px; align-items:center; min-width:0; }
.op-stage-summary { display:grid; grid-template-columns:78px minmax(0, 1fr); gap:15px; align-items:center; min-width:0; }
.op-donut { position:relative; width:76px; height:76px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; transition:transform .15s ease; }
.op-donut:hover { transform:scale(1.04); }
.op-donut-inner { width:52px; height:52px; border-radius:50%; background:var(--card); display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; }
.op-donut-inner b { font-family:var(--font-num); font-size:19px; letter-spacing:-.4px; color:var(--text-1); }
.op-donut-inner small { margin-top:4px; color:var(--text-4); font-size:9.5px; white-space:nowrap; }
.op-stage-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:3px 14px; min-width:0; }
.op-stage-row { display:grid; grid-template-columns:7px minmax(0, 1fr) auto; gap:6px; align-items:center; padding:3px 2px; color:var(--text-3); font-size:11.5px; text-align:left; border-radius:5px; min-width:0; transition:background .14s, color .14s; }
.op-stage-row:hover { background:var(--bg); color:var(--primary); }
.op-stage-row i { display:block; width:6px; height:6px; border-radius:50%; }
.op-stage-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.op-stage-row b { color:var(--text-2); font-family:var(--font-num); font-size:11.5px; font-weight:650; }
.op-divider { width:1px; height:70px; background:var(--border); }
.op-activity-summary { min-width:0; }
.op-activity-head { display:flex; align-items:baseline; justify-content:space-between; color:var(--text-2); font-size:12px; font-weight:550; }
.op-activity-head b { color:var(--primary); font-family:var(--font-num); font-size:11.5px; font-weight:650; }
.op-mini-bars { height:59px; display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:5px; align-items:end; margin-top:3px; }
.op-mini-bar { height:100%; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:3px; padding:1px 0; border-radius:5px; color:var(--text-4); font-size:9.5px; transition:background .14s, color .14s; }
.op-mini-bar:hover { color:var(--primary); background:var(--bg); }
.op-mini-bar b { min-height:10px; color:var(--text-3); font-family:var(--font-num); font-size:10px; font-weight:600; line-height:1; }
.op-mini-bar i { display:block; width:100%; max-width:17px; min-height:3px; border-radius:4px 4px 1px 1px; background:#b8d0ff; transition:height .24s ease, background .14s; }
.op-mini-bar:hover i, .op-mini-bar.today i { background:var(--primary); }.op-mini-bar.today span { color:var(--primary); font-weight:650; }

/* 最近客户动态 */
.feed-item { display: flex; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #f0f3f8; cursor: pointer; border-radius: 8px; }
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #fafbfd; }
.feed-time { font-family: var(--font-num); font-size: 11.5px; color: var(--text-4); width: 62px; flex-shrink: 0; text-align: right; padding-top: 2px; }
.feed-content { flex: 1; min-width: 0; }
.feed-text { font-size: 13px; color: var(--text-1); line-height: 1.5; }
.feed-text b { font-weight: 550; }
.feed-text .f-link { color: var(--primary); cursor: pointer; }
.feed-text .f-link:hover { text-decoration: underline; }
.feed-tags { display: flex; gap: 6px; margin-top: 4px; }
/* 动态新层级：客户(主色) > 事件 > 描述 > 时间/人员/Tag(弱化) */
.feed-actor { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.feed-day { font-size: 10.5px; color: var(--text-4); margin-top: 3px; }
.feed-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.feed-cust { font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.feed-cust:hover { text-decoration: underline; }
.feed-title { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.55; }
.feed-foot { display: flex; gap: 6px; margin-top: 6px; }
.feed-foot .tag { transform: scale(.9); transform-origin: left; opacity: .85; font-size: 10.5px; padding: 1px 7px; }
.feed-foot { display: flex; gap: 6px; margin-top: 6px; }
.feed-foot .tag { transform: scale(.9); transform-origin: left; opacity: .85; font-size: 10.5px; padding: 1px 7px; }

/* ---- 漏斗页面专用（横向条形） ---- */
.stage-bar { display: flex; align-items: center; gap: 10px; }

/* ---- 客户360° ---- */
.cust-header { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px 26px; margin-bottom: 16px; }
.cust-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cust-identity { display: flex; gap: 15px; min-width: 0; }
.cust-logo {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0; font-size: 18px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.cust-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cust-name { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.cust-meta { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; color: var(--text-2); font-size: 12.5px; }
.cust-meta .meta-item { display: flex; align-items: center; gap: 5px; }
.cust-meta .meta-item svg { width: 13px; height: 13px; color: var(--text-4); }
.cust-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

.cust-kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.kpi-item { padding: 0 18px; border-right: 1px solid var(--border); }
.kpi-item:first-child { padding-left: 0; }
.kpi-item:last-child { border-right: none; }
.kpi-label { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.kpi-value { font-size: 19px; font-weight: 700; margin-top: 5px; font-family: var(--font-num); }
.kpi-value.small { font-size: 15px; margin-top: 7px; }
.kpi-value .kpi-unit { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 2px; }

.cust-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 4px; }
.cust-tab {
  padding: 12px 16px; font-size: 13.5px; color: var(--text-2); cursor: pointer; position: relative; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.cust-tab:hover { color: var(--primary); }
.cust-tab.active { color: var(--primary); font-weight: 600; }
.cust-tab.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; background: var(--primary); border-radius: 2px; }
.cust-tab .tab-num { background: var(--bg); border-radius: 8px; font-size: 10.5px; padding: 0 6px; color: var(--text-3); }
.cust-tab.active .tab-num { background: var(--blue-bg); color: var(--blue); }
.cust-tab-wrap { position: sticky; top: 0; background: var(--card); z-index: 10; border-bottom: 1px solid var(--border); }

/* 阶段进度条 */
.stage-flow { display: flex; align-items: flex-start; padding: 6px 0 2px; overflow-x: auto; }
.stage-node { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 82px; cursor: pointer; position: relative; }
.stage-node .st-dot {
  width: 13px; height: 13px; border-radius: 50%; border: 3px solid #d9e0ea; background: #fff;
  transition: all .2s; z-index: 2;
}
.stage-node .st-line { position: absolute; top: 5px; left: calc(50% + 8px); width: calc(100% - 10px); height: 3px; background: #e5eaf2; z-index: 1; }
.stage-node:last-child .st-line { display: none; }
.stage-node .st-label { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.stage-node .st-info { font-size: 10.5px; color: var(--text-4); white-space: nowrap; }
.stage-node.done .st-dot { border-color: var(--green); background: var(--green); }
.stage-node.done .st-line { background: var(--green); }
.stage-node.done .st-label { color: var(--text-1); }
.stage-node.current .st-dot { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.stage-node.current .st-label { color: var(--primary); font-weight: 600; }
.stage-node.current .st-line { background: linear-gradient(90deg, var(--green), #cfe0ff); }
.stage-node.skipped .st-dot { border-color: #c9d2de; border-style: dashed; }
.stage-node.skipped .st-label { color: var(--text-4); }

/* 概览布局 */
.ov-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.ov-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov-side { display: flex; flex-direction: column; gap: 16px; }

.req-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fafbfd; margin-top: 14px; }
.req-summary .rs-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.req-summary .rs-meta { display: flex; gap: 20px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.req-summary .rs-meta b { color: var(--text-1); font-weight: 600; }
.req-summary .rs-desc { margin-top: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

.contact-mini { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px solid #f0f3f8; cursor: pointer; border-radius: 8px; }
.contact-mini:hover { background: #fafbfd; }
.contact-mini:last-child { border-bottom: none; }
.cm-info { flex: 1; min-width: 0; }
.cm-name { font-size: 13px; font-weight: 550; display: flex; align-items: center; gap: 7px; }
.cm-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.influence-dots { display: flex; gap: 2px; }
.influence-dots i { width: 4px; height: 10px; border-radius: 2px; background: #d9e0ea; }
.influence-dots i.on { background: var(--primary); }
.influence-dots i.on.hot { background: var(--orange); }

.next-action-item { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #f0f3f8; }
.next-action-item:last-child { border-bottom: none; }
.next-action-item .na-date {
  width: 64px; flex-shrink: 0; text-align: center; background: var(--bg); border-radius: 8px; padding: 6px 2px;
  display: flex; flex-direction: column; justify-content: center;
}
.next-action-item .na-date .d { font-size: 15px; font-weight: 700; font-family: var(--font-num); color: var(--text-1); }
.next-action-item .na-date .m { font-size: 10.5px; color: var(--text-3); }
.next-action-item .na-body { flex: 1; }
.next-action-item .na-text { font-size: 13px; color: var(--text-1); font-weight: 500; line-height: 1.5; }
.next-action-item .na-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

.info-kv { display: flex; justify-content: space-between; padding: 8.5px 2px; border-bottom: 1px solid #f4f6fa; font-size: 12.5px; }
.info-kv:last-child { border-bottom: none; }
.info-kv .k { color: var(--text-3); flex-shrink: 0; }
.info-kv .v { color: var(--text-1); font-weight: 500; text-align: right; }
.info-btn { margin-top: 14px; }
.score-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }.score-num { font-size:27px; color:var(--primary); font-weight:750; font-family:var(--font-num); }.score-unit { color:var(--text-3); font-size:11px; }.score-row { display:grid; grid-template-columns:78px 1fr 22px; gap:8px; align-items:center; padding:5px 0; color:var(--text-3); font-size:11.5px; }.score-row b { color:var(--text-2); font-family:var(--font-num); text-align:right; }.score-track { height:5px; border-radius:4px; background:var(--bg-deep); overflow:hidden; }.score-track i { display:block; height:100%; border-radius:4px; background:var(--primary); }.score-tip { margin-top:9px; padding:8px 9px; background:var(--orange-bg); color:#8a5a05; border-radius:7px; font-size:11px; line-height:1.55; }

/* 风险信号 */
.risk-signal { display:flex; gap:9px; padding:10px 6px; border-bottom:1px solid #f0f3f8; cursor:pointer; border-radius:8px; transition:background .13s; }
.risk-signal:hover { background:#fafbfd; }
.risk-signal:last-child { border-bottom:none; }
.risk-signal .rs-icon { width:24px; height:24px; border-radius:7px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.risk-signal .rs-icon svg { width:13px; height:13px; }
.risk-signal.high .rs-icon { background:var(--red-bg); color:var(--red); }
.risk-signal.medium .rs-icon { background:var(--orange-bg); color:var(--orange); }
.risk-signal.low .rs-icon { background:var(--blue-bg); color:var(--blue); }
.risk-signal .rs-body { flex:1; min-width:0; }
.risk-signal .rs-text { font-size:12.5px; color:var(--text-1); line-height:1.55; }
.risk-signal .rs-action { display:inline-flex; align-items:center; gap:3px; font-size:11px; color:var(--primary); margin-top:4px; font-weight:500; }
.risk-signal .rs-action svg { width:10px; height:10px; }
.risk-clean { display:flex; align-items:center; gap:7px; padding:8px 4px; color:var(--green); font-size:12.5px; font-weight:550; }

/* ---- 全过程回放 ---- */
.replay-header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.replay-header .rh-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.replay-wrap { padding: 22px 26px 8px; }
.replay-timeline { position: relative; padding-left: 30px; }
.replay-timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: #e8edf4; }
.rp-node { position: relative; padding: 0 0 26px 6px; }
.rp-node .rp-dot {
  position: absolute; left: -25px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid #cbd5e1; background: #fff; display: flex; align-items: center; justify-content: center;
}
.rp-node.milestone .rp-dot { border-color: var(--primary); background: var(--primary); }
.rp-node.win .rp-dot { border-color: var(--green); background: var(--green); }
.rp-node.win .rp-dot::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 700; }
.rp-node.critical .rp-dot { border-color: var(--orange); background: var(--orange); }
.rp-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: #fff;
  cursor: pointer; transition: all .15s; box-shadow: var(--shadow-card);
}
.rp-card:hover { border-color: var(--primary-ghost); box-shadow: 0 4px 14px rgba(16,24,40,.08); }
.rp-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.rp-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-time { font-family: var(--font-num); font-size: 11.5px; color: var(--text-4); }
.rp-title { font-size: 13.5px; font-weight: 600; }
.rp-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin-top: 8px; }
.rp-meta { display: flex; gap: 16px; margin-top: 9px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.rp-files { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.rp-links { display:flex; align-items:center; gap:6px; }
.rp-links > svg { width:12px; height:12px; flex-shrink:0; }
.rp-link {
  display:inline-flex; align-items:center; gap:3px; border:1px solid var(--border); border-radius:6px;
  padding:2px 8px; font-size:11.5px; color:var(--text-2); background:#fafbfd; cursor:pointer; transition:all .13s;
}
.rp-link:hover { border-color:var(--primary-ghost); color:var(--primary); background:var(--primary-light); }
.file-chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 9px; font-size: 11.5px; color: var(--text-2); background: #fafbfd; cursor: pointer;
}
.file-chip:hover { border-color: var(--primary-ghost); color: var(--primary); }
.file-chip svg { width: 12px; height: 12px; color: var(--text-4); }
.rp-next { color: var(--primary); }

/* ---- 业务时间轴：分类筛选 ---- */
.tl-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tl-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 13px;
  font-size: 12px; color: var(--text-2); cursor: pointer; transition: all .13s; line-height: 1.3;
}
.tl-chip:hover { border-color: var(--primary-ghost); color: var(--primary); }
.tl-chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* ---- 联系人 ---- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-card); cursor: pointer; transition: all .15s; }
.contact-card:hover { box-shadow: 0 6px 18px rgba(16,24,40,.09); border-color: var(--border-strong); transform: translateY(-1px); }
.cc-head { display: flex; gap: 12px; align-items: center; }
.cc-name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cc-title { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.cc-company { display: flex; align-items: center; gap: 6px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #f0f3f8; font-size: 12.5px; color: var(--text-2); }
.cc-company svg { width: 13px; height: 13px; color: var(--text-4); }
.cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; font-size: 11.5px; color: var(--text-3); }

/* ---- 跟进日志 ---- */
.fu-item { display: flex; gap: 14px; padding: 18px 20px; border-bottom: 1px solid #f0f3f8; cursor: pointer; transition: background .13s; }
.fu-item:hover { background: #fafbfd; }
.fu-date { width: 72px; flex-shrink: 0; text-align: center; padding-top:1px; }
.fu-date .fd-day { display:block; font-size: 20px; font-weight: 700; font-family: var(--font-num); color: var(--text-1); line-height: 1.1; white-space:nowrap; letter-spacing:.1px; }
.fu-date .fd-month { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.fu-main { flex: 1; min-width: 0; }
.fu-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fu-sales { font-weight: 600; font-size: 13.5px; }
.fu-company { color: var(--text-2); }
.fu-contacts { color: var(--text-3); font-size: 12px; }
.fu-summary { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin-top: 8px; }
.fu-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.fu-foot { display: flex; gap: 14px; margin-top: 9px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.fu-foot .fu-link { color: var(--primary); cursor: pointer; }
.fu-foot .fu-link:hover { text-decoration: underline; }
.fu-type-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fu-type-icon svg { width: 15px; height: 15px; }
.fu-time { font-size: 11px; color: var(--text-4); margin-left: auto; flex-shrink: 0; }
.fu-next { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }

/* ---- 需求 ---- */
.req-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.req-block .rb-title { font-size: 13.5px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.req-block .rb-title::before { content: ''; width: 3px; height: 13px; background: var(--primary); border-radius: 2px; }
.req-original { background: #fafbfd; border: 1px solid var(--border); border-radius: 8px; padding: 13px 15px; font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin-top: 10px; }
.param-table { width: 100%; border-collapse: collapse; }
.param-table td { padding: 8px 12px; border: 1px solid var(--border); font-size: 12.5px; }
.param-table td:first-child { background: #fafbfd; color: var(--text-2); width: 150px; white-space: nowrap; }

.version-item { display: flex; gap: 13px; padding: 13px 6px; border-bottom: 1px solid #f0f3f8; cursor: pointer; border-radius: 8px; }
.version-item:hover { background: #fafbfd; }
.version-item:last-child { border-bottom: none; }
.v-badge { flex-shrink: 0; width: 46px; height: 26px; border-radius: 6px; background: var(--blue-bg); color: var(--blue); font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); }
.v-badge.latest { background: var(--blue); color: #fff; }
.v-info { flex: 1; min-width: 0; }
.v-title { font-size: 13px; font-weight: 550; }
.v-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.55; }
.v-meta { font-size: 11.5px; color: var(--text-4); margin-top: 5px; }

/* ---- 商机看板 ---- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kb-col { flex-shrink: 0; width: 248px; background: var(--bg-deep); border-radius: var(--radius-lg); padding: 10px; }
.kb-col-head { display: flex; align-items: center; gap: 7px; padding: 6px 8px 12px; }
.kb-col-head .kb-name { font-size: 13px; font-weight: 600; }
.kb-count { font-size: 11px; color: var(--text-3); background: #fff; border-radius: 8px; padding: 1px 7px; border: 1px solid var(--border); }
.kb-col-amt { font-size: 11px; color: var(--text-3); margin-left: auto; }
.kb-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 13px; margin-bottom: 9px;
  cursor: grab; box-shadow: var(--shadow-card); transition: all .15s; position: relative;
}
.kb-card:hover { box-shadow: 0 5px 16px rgba(16,24,40,.10); border-color: var(--border-strong); }
.kb-card:active { cursor: grabbing; }
.kb-card.dragging { opacity: .45; transform: rotate(1.5deg); }
.kb-col.drag-over { outline: 2px dashed var(--primary-ghost); outline-offset: -4px; background: var(--primary-light); }
.kb-cust { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.kb-cust svg { width: 11px; height: 11px; }
.kb-project { font-size: 13px; font-weight: 600; margin-top: 4px; line-height: 1.45; cursor: pointer; }
.kb-project:hover { color: var(--primary); }
.kb-amount { font-family: var(--font-num); font-size: 15.5px; font-weight: 700; margin-top: 9px; color: var(--primary-strong); }
.kb-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 11.5px; color: var(--text-3); }
.kb-owner { display: flex; align-items: center; gap: 6px; }
.kb-prob { font-family: var(--font-num); font-weight: 600; color: var(--text-2); }
.kb-progress { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.kb-next { margin-top: 9px; font-size: 11.5px; color: var(--text-3); background: var(--bg); border-radius: 6px; padding: 6px 9px; line-height: 1.5; display: flex; gap: 6px; align-items: flex-start; }
.kb-next svg { width: 11px; height: 11px; margin-top: 2px; flex-shrink: 0; color: var(--orange); }

/* ---- 招投标 ---- */
.bid-status-flow { display: flex; align-items: center; padding: 8px 0 14px; overflow-x: auto; }
.bid-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 78px; position: relative; }
.bid-step .bs-dot { width: 11px; height: 11px; border-radius: 50%; border: 3px solid #d9e0ea; background: #fff; z-index: 2; }
.bid-step .bs-line { position: absolute; top: 4.5px; left: calc(50% + 6px); width: calc(100% - 10px); height: 3px; background: #e5eaf2; }
.bid-step:last-child .bs-line { display: none; }
.bid-step.done .bs-dot { border-color: var(--green); background: var(--green); }
.bid-step.done .bs-line { background: var(--green); }
.bid-step.current .bs-dot { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.bid-step .bs-label { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.bid-step.current .bs-label { color: var(--primary); font-weight: 600; }
.bid-step .bs-date { font-size: 10px; color: var(--text-4); font-family: var(--font-num); }

.comp-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.comp-card.self { border-color: var(--primary-ghost); background: var(--primary-light); }
.comp-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; font-size: 12px; color: var(--text-2); }

/* ---- 数据分析 ---- */
.ana-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 60px; gap: 12px; align-items: center; padding: 8px 0; font-size: 12.5px; }
.bar-row .br-name { color: var(--text-2); white-space: nowrap; }
.bar-row .br-val { text-align: right; font-family: var(--font-num); color: var(--text-1); font-weight: 550; }
.bar-row .br-bar { height: 9px; background: var(--bg-deep); border-radius: 5px; overflow: hidden; }
.bar-row .br-bar i { display: block; height: 100%; border-radius: 5px; background: var(--primary); }
.donut-wrap { display: flex; align-items: center; gap: 26px; }
.donut { width: 128px; height: 128px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center .dc-num { font-size: 20px; font-weight: 700; font-family: var(--font-num); }
.donut-center .dc-label { font-size: 11px; color: var(--text-3); }
.donut-legend { display: flex; flex-direction: column; gap: 9px; }
.dl-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.dl-item i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.dl-item .dl-val { margin-left: auto; font-family: var(--font-num); font-weight: 600; color: var(--text-1); }

/* ---- 商机健康矩阵：以客户为粒度，帮助确定优先推进对象 ---- */
.health-chart { display:flex; gap:8px; height:218px; padding:2px 2px 0; }
.health-axis-y { width:52px; display:flex; flex-direction:column; justify-content:space-between; padding:3px 0 19px; color:var(--text-4); font-size:10.5px; line-height:1.3; }
.health-plot { position:relative; flex:1; min-width:0; border-left:1px solid var(--border-strong); border-bottom:1px solid var(--border-strong); background-image:linear-gradient(to right, transparent 49.7%, #edf1f6 49.7%, #edf1f6 50.3%, transparent 50.3%),linear-gradient(to top, transparent 49.7%, #edf1f6 49.7%, #edf1f6 50.3%, transparent 50.3%); }
.health-zone { position:absolute; color:var(--text-4); font-size:10.5px; pointer-events:none; }.health-zone-priority { top:8px; right:8px; color:#6e9a7b; }.health-zone-nurture { bottom:25px; left:8px; }
.health-dot { position:absolute; transform:translate(-50%, 50%); display:flex; flex-direction:column; align-items:center; gap:3px; color:var(--text-2); font-size:10.5px; white-space:nowrap; z-index:1; }
.health-dot i { display:block; width:13px; height:13px; border:3px solid #fff; border-radius:50%; box-shadow:0 1px 4px rgba(15,23,42,.18); transition:transform .15s, box-shadow .15s; }.health-dot:hover i { transform:scale(1.25); box-shadow:0 2px 8px rgba(15,23,42,.24); }.health-dot:hover span { color:var(--primary); font-weight:600; }.health-dot.good i,.health-legend i.good { background:var(--green); }.health-dot.steady i,.health-legend i.steady { background:var(--primary); }.health-dot.risk i,.health-legend i.risk { background:var(--orange); }
.health-axis-x { position:absolute; left:0; right:0; bottom:-19px; display:flex; justify-content:space-between; color:var(--text-4); font-size:10.5px; }.health-legend { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:13px 0 0 60px; color:var(--text-3); font-size:11px; }.health-legend span { display:flex; align-items:center; gap:4px; }.health-legend span:last-child { margin-left:auto; color:var(--text-4); }.health-legend i { width:7px; height:7px; border-radius:50%; }

/* ---- 详情抽屉内通用 ---- */
.detail-grid { display: grid; grid-template-columns: 110px 1fr; gap: 9px 14px; }
.detail-grid .dg-k { color: var(--text-3); font-size: 12.5px; padding-top: 1px; }
.detail-grid .dg-v { color: var(--text-1); font-size: 13px; font-weight: 500; line-height: 1.55; }
.section-title { font-size: 13.5px; font-weight: 600; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 0; }
.section-title::before { content: ''; width: 3px; height: 13px; background: var(--primary); border-radius: 2px; }
.file-list-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: all .13s; }
.file-list-item:hover { border-color: var(--primary-ghost); background: var(--primary-light); }
.file-list-item .fl-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--blue-bg); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-list-item .fl-icon svg { width: 14px; height: 14px; }
.file-list-item .fl-name { font-size: 12.5px; font-weight: 500; }
.file-list-item .fl-meta { font-size: 11px; color: var(--text-4); margin-top: 1px; }
.file-list-item .fl-dl { margin-left: auto; color: var(--text-3); }
.file-list-item .fl-dl svg { width: 14px; height: 14px; }

/* ---- 快速新建下拉 ---- */
.qc-panel { position: absolute; top: 42px; right: 0; width: 210px; }
.qc-panel .dd-item { padding: 10px 12px; }
.qc-panel .dd-item svg { width: 16px; height: 16px; }

/* ---- 设置/帮助占位 ---- */
.placeholder-card { text-align: center; padding: 80px 40px; }
.placeholder-card .pc-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.placeholder-card .pc-icon svg { width: 32px; height: 32px; }
.placeholder-card h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.placeholder-card p { color: var(--text-3); font-size: 13px; line-height: 1.7; }

/* ---- PCS 项目执行 ---- */
.pcs-page { padding-bottom: 18px; }
.pcs-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin:2px 0 16px; }
.pcs-now { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:10px 16px; margin-bottom:12px; border:1px solid rgba(37,99,235,.22); border-radius:var(--radius-lg); background:#f4f8ff; }
.pcs-now-main { display:flex; align-items:center; gap:9px; min-width:0; }
.pcs-now-icon { display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:8px; background:var(--primary); color:#fff; flex-shrink:0; }
.pcs-now-label { color:var(--text-3); font-size:11.5px; flex-shrink:0; }
.pcs-now-name { font-size:14.5px; font-weight:700; color:var(--primary); }
.pcs-now-sep { width:1px; height:16px; background:var(--border-strong); margin:0 3px; }
.pcs-now-meta { color:var(--text-3); font-size:12px; }.pcs-now-meta b { color:var(--text-1); font-weight:600; }
.pcs-now-side { display:flex; align-items:center; gap:10px; }
.pcs-next-list { padding:2px 14px 10px; }
.pcs-next-item { display:grid; grid-template-columns:20px 26px minmax(0,1fr) auto auto; align-items:center; gap:9px; padding:11px 6px; border-bottom:1px solid #f0f3f8; }
.pcs-next-item:last-child { border-bottom:none; }
.pcs-next-item.clickable { cursor:pointer; }
.pcs-next-item.clickable:hover { background:var(--bg-hover); }
.pcs-next-index { color:var(--text-4); font-size:11.5px; font-family:var(--font-num); text-align:center; }
.pcs-next-icon { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:7px; flex-shrink:0; }
.pcs-next-icon.blue { color:var(--primary); background:var(--primary-light); }.pcs-next-icon.red { color:var(--red); background:var(--red-bg); }.pcs-next-icon.orange { color:var(--orange); background:var(--orange-bg); }.pcs-next-icon.green { color:var(--green); background:var(--green-bg); }
.pcs-next-main { min-width:0; }.pcs-next-title { font-size:12.5px; font-weight:600; line-height:1.4; }.pcs-next-meta { color:var(--text-3); font-size:11.5px; line-height:1.5; margin-top:2px; }
.pcs-next-arrow { color:var(--text-4); display:flex; }
.pcs-next-item.clickable:hover .pcs-next-arrow { color:var(--primary); }
.pcs-node-date { font-family:var(--font-num); font-size:11.5px; color:var(--text-3); white-space:nowrap; }
.pcs-node-date.warn { color:var(--orange); font-weight:600; }
.pcs-node.is-current { margin:4px -14px; padding:10px 14px; border-radius:9px; background:var(--primary-light); }
.pcs-node.is-current .pcs-node-main .pcs-node-name { color:var(--primary); }
.pcs-eyebrow { display:flex; align-items:center; gap:8px; color:var(--text-3); font-size:12px; }
.pcs-title-row { display:flex; align-items:center; gap:10px; margin-top:8px; }
.pcs-title-row h1 { font-size:21px; line-height:1.3; font-weight:700; letter-spacing:.1px; }
.pcs-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; margin-top:8px; color:var(--text-3); font-size:12.5px; }
.pcs-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.pcs-project-select { width:240px; height:34px; }
.pcs-control-strip { display:grid; grid-template-columns:1.2fr 1fr 1fr; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); margin-bottom:16px; }
.pcs-control { position:relative; display:flex; align-items:center; gap:11px; min-height:94px; padding:18px 20px; border-right:1px solid var(--border); }
.pcs-control:last-child { border-right:none; }
.pcs-control-icon { width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:9px; color:var(--primary); background:var(--primary-light); flex-shrink:0; }
.pcs-control.cost .pcs-control-icon { color:var(--orange); background:var(--orange-bg); }
.pcs-control.quality .pcs-control-icon { color:var(--green); background:var(--green-bg); }
.pcs-control-label { color:var(--text-3); font-size:11.5px; }
.pcs-control-value { font-size:16px; font-weight:700; font-family:var(--font-num); margin-top:4px; white-space:nowrap; }
.pcs-control-value span { font-size:11.5px; color:var(--text-3); font-family:inherit; font-weight:400; margin-left:5px; }
.pcs-meter { position:absolute; right:18px; bottom:16px; width:92px; height:5px; border-radius:4px; overflow:hidden; background:var(--bg-deep); }
.pcs-meter i { display:block; height:100%; border-radius:4px; background:var(--primary); }
.pcs-control-note { margin-left:auto; color:var(--green); font-size:11.5px; white-space:nowrap; }
.pcs-control-note.warn { color:var(--orange); }
.pcs-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(330px,.8fr); gap:16px; align-items:start; }
.pcs-main,.pcs-side { display:flex; flex-direction:column; gap:16px; min-width:0; }
.pcs-node-list { padding:4px 20px 0; }
.pcs-node { display:grid; grid-template-columns:30px minmax(0,1fr) 58px auto auto; align-items:center; gap:12px; min-height:63px; position:relative; }
.pcs-node:not(:last-child)::before { content:''; position:absolute; left:14px; top:43px; bottom:-2px; width:1px; background:#dfe6ef; }
.pcs-node-index { width:29px; height:29px; border:2px solid #d5dde8; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--text-3); font-size:11px; background:#fff; z-index:1; }
.pcs-node.done .pcs-node-index { border-color:var(--green); background:var(--green); color:#fff; }
.pcs-node.current .pcs-node-index { border-color:var(--primary); color:var(--primary); box-shadow:0 0 0 4px rgba(37,99,235,.1); }
.pcs-node.skipped .pcs-node-index { border-style:dashed; background:var(--gray-bg); }
.pcs-node-name { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; }
.pcs-node-name .tag { transform:scale(.88); transform-origin:left; }
.pcs-node-sub { color:var(--text-3); font-size:11.5px; margin-top:3px; }
.pcs-node-foot { margin:13px 20px 18px; padding:10px 12px; border-radius:8px; background:var(--blue-bg); color:var(--text-2); font-size:12px; line-height:1.6; }
.pcs-risk-list { padding:4px 20px 12px; }
.pcs-risk { display:grid; grid-template-columns:28px minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:12px 0; border-bottom:1px solid #f0f3f8; }
.pcs-risk:last-child { border-bottom:none; }
.pcs-risk-level { width:24px; height:24px; display:flex; align-items:center; justify-content:center; border-radius:6px; font-size:11px; font-weight:700; }
.pcs-risk-level.high { color:var(--red); background:var(--red-bg); }.pcs-risk-level.medium { color:var(--orange); background:var(--orange-bg); }
.pcs-risk-main { font-size:12.5px; font-weight:550; }.pcs-risk-main small,.pcs-quality small,.pcs-feedback-item small { display:block; color:var(--text-3); font-weight:400; line-height:1.55; margin-top:3px; }
.pcs-quality-list { padding:2px 18px 12px; }.pcs-quality { display:flex; gap:12px; align-items:center; padding:12px 2px; border-bottom:1px solid #f0f3f8; font-size:12.5px; }.pcs-quality:last-child { border-bottom:none; }
.pcs-quality-value { width:62px; flex-shrink:0; color:var(--primary); font-family:var(--font-num); font-weight:700; font-size:15px; }
.pcs-quality .tag { margin-left:4px; transform:scale(.9); transform-origin:left; }
.pcs-knowledge { display:flex; gap:7px; align-items:flex-start; margin:0 18px 16px; padding:10px; border-radius:8px; background:var(--orange-bg); color:#8a5a05; font-size:11.5px; line-height:1.55; }.pcs-knowledge svg { flex-shrink:0; margin-top:2px; }
.pcs-feedback-intro { margin:0 18px 4px; padding:9px 10px; border-left:3px solid var(--primary); background:#fafcff; color:var(--text-2); font-size:11.5px; line-height:1.6; }
.pcs-feedback-item { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:8px; padding:13px 18px; border-bottom:1px solid #f0f3f8; font-size:12.5px; }.pcs-feedback-item:last-child { border-bottom:none; }
.template-options { display:flex; flex-direction:column; gap:9px; }.template-option { display:flex; gap:10px; padding:12px; border:1px solid var(--border); border-radius:8px; cursor:pointer; }.template-option:has(input:checked) { border-color:var(--primary); background:var(--primary-light); }.template-option input { margin-top:3px; }.template-option b,.template-option small,.template-option em { display:block; }.template-option small { color:var(--text-3); font-size:12px; line-height:1.55; margin-top:4px; }.template-option em { color:var(--text-4); font-size:11px; margin-top:5px; font-style:normal; }
@media (max-width:1100px) { .pcs-grid { grid-template-columns:1fr; }.pcs-control-strip { grid-template-columns:1fr; }.pcs-control { border-right:none; border-bottom:1px solid var(--border); }.pcs-control:last-child { border-bottom:none; }.pcs-header { flex-direction:column; }.pcs-actions { width:100%; }.pcs-project-select { flex:1; } }

@media (max-width:760px) {
  .wb-grid, .ov-grid, .ana-grid { grid-template-columns:1fr; gap:12px; }
  .wb-grid-home { display:flex; flex-direction:column; }
  .wb-grid-home .wb-main-col { order:2; gap:12px; }
  .wb-grid-home .wb-side-col { order:1; }
  .wb-section-label { margin:16px 0 8px; font-size:13.5px; }
  .wb-focus-grid { grid-template-columns:1fr; gap:0; }
  .wb-side-col { gap:12px; }
  .funnel-row { grid-template-columns:92px 1fr 28px; gap:8px; padding:8px 4px; }.funnel-row .f-amt { display:none; }.funnel-row .f-conv { display:none; }
  .funnel-total { padding:8px 4px 3px; }
  .home-alerts { gap:6px 9px; padding:8px 12px; margin-bottom:12px; }.ha-label { font-size:11.5px; }.ha-item { font-size:12px; }.ha-sep { display:none; }
  .operation-pulse { padding:11px 14px 12px; margin-bottom:12px; }
  .op-body { grid-template-columns:1fr; gap:11px; }
  .op-stage-summary { grid-template-columns:72px minmax(0, 1fr); gap:12px; }
  .op-donut { width:70px; height:70px; }.op-donut-inner { width:48px; height:48px; }.op-donut-inner b { font-size:17px; }
  .op-stage-list { gap:3px 10px; }.op-stage-row { font-size:11px; }
  .op-divider { width:100%; height:1px; }
  .op-mini-bars { height:55px; }.op-mini-bar { font-size:9px; }.op-mini-bar i { max-width:16px; }
  .na-list { padding:2px 4px 8px; }.na-item { padding:9px 4px; gap:9px; }.na-date { width:56px; font-size:11.5px; }.na-cust { font-size:11px; }.na-owner { font-size:10.5px; }
  .today-focus-item { padding:10px 4px; }.tf-desc { display:none; }
  .feed-item { gap:9px; padding:11px 0; }.feed-time { width:44px; font-size:10.5px; }.feed-head { flex-wrap:wrap; gap:3px 8px; }.feed-cust { font-size:12.5px; }.feed-title { font-size:12px; }.feed-desc { font-size:11.5px; }.feed-actor { font-size:10.5px; }.feed-day { display:none; }
  .cust-header { padding:16px; margin-bottom:12px; }.cust-header-top { flex-direction:column; }.cust-header-actions { width:100%; overflow-x:auto; padding-bottom:2px; }.cust-header-actions .btn { white-space:nowrap; flex-shrink:0; }
  .cust-logo { width:42px; height:42px; border-radius:10px; }.cust-name { font-size:17px; }.cust-meta { gap:6px 12px; font-size:11.5px; }.cust-meta .meta-item:nth-child(n+4) { display:none; }
  .cust-kpi-row { display:flex; overflow-x:auto; margin:15px -2px 0; padding-top:13px; }.kpi-item { min-width:128px; padding:0 14px; }.kpi-value { font-size:17px; }
  .cust-tab-wrap { margin:0 -12px; }.cust-tabs { overflow-x:auto; padding:0 8px; }.cust-tab { padding:11px 12px; font-size:12.5px; }
  .ov-grid { padding-top:12px !important; }.ov-main, .ov-side { gap:12px; }.ov-side { display:grid; grid-template-columns:1fr; }
  .stage-node { min-width:74px; }.stage-node .st-label { font-size:10.5px; }.stage-node .st-info { font-size:9.5px; }
  .req-summary { margin-top:8px; padding:13px; }.req-summary .rs-meta { gap:6px 12px; }.req-summary .rs-desc { font-size:12px; }
  .contact-grid { grid-template-columns:1fr; }
    /* 移动端跟进卡片：去除图标列、日期左置、内容纵向堆叠 */
    .fu-item { gap: 12px; padding: 14px 16px; align-items: flex-start; }
    .fu-item .fu-type-icon { display: none; }
    .fu-item-mobile .fu-date { width: 54px; padding-top: 2px; }
    .fu-item-mobile .fu-date .fd-day { font-size: 15px; }
    .fu-item-mobile .fu-date .fd-month { display: none; }
    .fu-item-mobile .fu-head { gap: 6px; }
    .fu-item-mobile .fu-sales { font-size: 13px; }
    .fu-item-mobile .fu-company { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
    .fu-item-mobile .fu-contacts { font-size: 11.5px; color: var(--text-4); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
    .fu-item-mobile .fu-contacts svg { width: 11px; height: 11px; flex-shrink: 0; }
    .fu-item-mobile .fu-summary { font-size: 12.5px; line-height: 1.6; margin-top: 7px; }
    .fu-item-mobile .fu-foot { margin-top: 7px; gap: 8px; }
    .fu-item-mobile .fu-tags { margin-top: 6px; gap: 5px; }
    .fu-item-mobile .fu-tags .tag { font-size: 11px; }
  .replay-wrap { padding:16px 14px 4px; }.replay-timeline { padding-left:22px; }.rp-node { padding-left:2px; padding-bottom:16px; }.rp-node .rp-dot { left:-20px; width:14px; height:14px; }.rp-card { padding:12px; }.rp-desc { font-size:12px; }
  .kanban { margin:0 -12px; padding:0 12px 10px; }.kb-col { width:278px; }
  .bid-status-flow { margin:0 -2px; }.comp-grid { grid-template-columns:1fr; gap:6px; }
  .health-chart { height:205px; }.health-axis-y { width:44px; font-size:10px; }.health-dot span { max-width:56px; overflow:hidden; text-overflow:ellipsis; }.health-legend { padding-left:52px; gap:7px; }.health-legend span:last-child { display:none; }
  .pcs-header { gap:12px; margin:0 0 12px; }.pcs-title-row h1 { font-size:18px; }.pcs-meta { gap:5px 12px; font-size:11.5px; }.pcs-actions { display:grid; grid-template-columns:1fr auto; }.pcs-project-select { grid-column:1 / -1; width:100%; }
  .pcs-now { padding:9px 12px; }.pcs-now-main { flex-wrap:wrap; gap:6px 8px; }.pcs-now-sep { display:none; }.pcs-now-side { width:100%; justify-content:space-between; }.pcs-now-side .pcs-now-meta { font-size:11px; }
  .pcs-next-list { padding:2px 10px 8px; }.pcs-next-item { grid-template-columns:18px 24px minmax(0,1fr) auto; gap:7px; padding:10px 2px; }.pcs-next-arrow { display:none; }.pcs-next-item .tag { transform:scale(.88); transform-origin:right; }.pcs-next-meta { font-size:10.5px; }
  .pcs-node.is-current { margin:4px -10px; padding:10px; }
  .pcs-control { min-height:82px; padding:14px; }.pcs-control-value { font-size:15px; }.pcs-control-value span { display:block; margin:2px 0 0; }.pcs-control-note { font-size:10.5px; }.pcs-meter { right:14px; bottom:13px; width:68px; }
  .pcs-grid { gap:12px; }.pcs-node-list { padding:2px 14px 0; }.pcs-node { grid-template-columns:28px minmax(0,1fr) auto; gap:8px; padding:7px 0; min-height:58px; }.pcs-node:not(:last-child)::before { left:13px; top:39px; }.pcs-node > .btn { grid-column:2 / -1; justify-self:start; }.pcs-node-name { font-size:12.5px; }.pcs-node-sub { font-size:10.5px; }.pcs-node-date { display:none; }.pcs-node-foot { margin:10px 14px 14px; font-size:11px; }
  .pcs-risk-list { padding:2px 14px 8px; }.pcs-risk { grid-template-columns:26px minmax(0,1fr) auto; padding:10px 0; }.pcs-risk > .btn { grid-column:2 / -1; justify-self:start; }.pcs-risk-main { font-size:12px; }
  .pcs-quality-list { padding:2px 14px 8px; }.pcs-quality { padding:10px 0; }.pcs-quality-value { width:52px; font-size:14px; }.pcs-knowledge { margin:0 14px 14px; }.pcs-feedback-item { grid-template-columns:minmax(0,1fr) auto; padding:12px 14px; }.pcs-feedback-item > .btn { grid-column:1 / -1; justify-self:start; }

  /* ---- 移动端首页重排 ---- */
  .m-home { display:flex; flex-direction:column; gap:12px; }
  .m-home .page-head { padding:0 2px 2px; margin-bottom:4px; }
  .m-kpi-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; padding:2px 14px 14px; }
  .m-kpi-grid .stat-card { padding:13px 14px; }
  .m-kpi-grid .stat-label { font-size:11.5px; }
  .m-kpi-grid .stat-value { font-size:20px; }
  .m-kpi-grid .unit { font-size:11px; }
  .stage-scroll { display:flex; gap:8px; overflow-x:auto; padding:2px 4px 10px; scrollbar-width:none; }
  .stage-scroll::-webkit-scrollbar { display:none; }
  .stage-chip {
    flex-shrink:0; display:flex; align-items:center; gap:7px; padding:8px 13px;
    border:1px solid var(--border); border-radius:20px; background:var(--card);
    font-size:12.5px; color:var(--text-2); white-space:nowrap; -webkit-tap-highlight-color:transparent;
  }
  .stage-chip:active { border-color:var(--primary); }
  .stage-chip .sc-num { font-family:var(--font-num); font-weight:700; color:var(--primary); background:var(--blue-bg); border-radius:10px; padding:1px 7px; font-size:11.5px; }

  /* ---- 移动端客户卡片列表 ---- */
  .cust-card-list { display:flex; flex-direction:column; gap:12px; }
  .cust-card {
    background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow-card); padding:13px 15px; cursor:pointer; -webkit-tap-highlight-color:transparent;
  }
  .cust-card:active { background:#f8fafd; }
  .cc-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .cc-name { font-size:15px; font-weight:600; color:var(--text-1); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cc-arrow { color:var(--text-4); flex-shrink:0; display:flex; }
  .cc-meta { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
  .cc-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:11px; padding-top:10px; border-top:1px dashed var(--border); }
  .cc-cell { min-width:0; }
  .cc-cell-label { font-size:11px; color:var(--text-4); }
  .cc-cell-value { font-size:12.5px; color:var(--text-2); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .cc-next { display:flex; align-items:center; gap:8px; margin-top:10px; background:var(--blue-bg); border-radius:7px; padding:7px 10px; min-width:0; }
  .cc-next-label { font-size:11px; color:var(--blue); flex-shrink:0; }
  .cc-next-text { font-size:12px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* ---- 移动端客户360° ---- */
  .cust-header-mobile { padding:14px 15px; }
  .chm-name-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
  .chm-name { font-size:16.5px; font-weight:700; letter-spacing:.2px; }
  .chm-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px 12px; margin-top:13px; padding-top:12px; border-top:1px solid var(--border); }
  .chm-cell { min-width:0; }
  .chm-cell .k { display:block; font-size:11px; color:var(--text-4); }
  .chm-cell .v { display:block; font-size:12.5px; color:var(--text-1); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .chm-cell .v.num { font-family:var(--font-num); font-weight:600; }
  .chm-actions { display:flex; gap:8px; margin-top:13px; padding-top:12px; border-top:1px solid var(--border); }
  .chm-actions .btn { flex:1; justify-content:center; }
  .cust-tab-mobile .cust-tabs { overflow-x:auto; scrollbar-width:none; padding:0 10px; }
  .cust-tab-mobile .cust-tabs::-webkit-scrollbar { display:none; }
  .cust-tab-mobile .cust-tab { padding:11px 13px; }
  .ov-grid-mobile .ov-main { gap:12px; }

  /* ---- 技术业务摘要 ---- */
  .tech-summary { display:flex; flex-direction:column; gap:10px; }
  .ts-item { display:flex; gap:10px; }
  .ts-label { font-size:11.5px; color:var(--primary); font-weight:600; white-space:nowrap; min-width:56px; }
  .ts-val { font-size:12.5px; color:var(--text-2); line-height:1.6; }
}
