/* OA 门户统一首页：只影响门户模式；OA 功能菜单和业务工作台原样保留。 */
.app.hub-portal-active{grid-template-columns:minmax(0,1fr);}
.app.hub-portal-active > .sidebar{display:none!important;}
.app.hub-portal-active > .main{min-width:0;padding-left:20px;padding-right:20px;}
.app.hub-portal-active .hero{margin:18px 0 16px;border-radius:13px;min-height:125px;}
.app.hub-portal-active .hero h1{font-size:32px;}
.app.hub-portal-active .oa-home-portal-host{margin-bottom:28px;}
.portal-hub{--hub-line:var(--oa-tone-deebf6, #deebf6);--hub-ink:var(--oa-tone-15344f, #15344f);--hub-light:var(--oa-tone-f4f8fe, #f4f8fe);--hub-feat-w:244px;display:grid;grid-template-columns:250px var(--hub-feat-w) minmax(0,1fr);min-height:660px;border:1px solid var(--hub-line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 10px 28px var(--oa-tone-1a4d8313, rgba(26,77,131,.075));font-size:13px;color:var(--hub-ink);}
.portal-hub button{font:inherit;cursor:pointer;}
.portal-hub button:focus-visible{outline:2px solid var(--oa-tone-1381ef, #1381ef);outline-offset:2px;}
.portal-hub .hub-systems{background:linear-gradient(160deg,var(--oa-tone-2d4263, #2d4263),var(--oa-tone-1d2c48, #1d2c48) 92%);color:#fff;display:flex;flex-direction:column;min-width:0;}
.hub-system-heading{display:flex;align-items:center;gap:12px;padding:20px 18px 19px;border-bottom:1px solid rgba(255,255,255,.1);}
.hub-system-heading b{display:block;font-size:20px;letter-spacing:.2px;}
.hub-system-heading small{display:block;margin-top:5px;color:var(--oa-tone-afc1da, #afc1da);font-size:11px;}
.hub-symbol{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:21px;background:var(--oa-tone-167dea, #167dea);box-shadow:0 5px 14px rgba(0,0,0,.15);}
.hub-system-scroll{display:grid;gap:4px;padding:14px 10px;overflow-y:auto;align-content:start;max-height:760px;}
.hub-system{display:flex;align-items:center;gap:10px;width:100%;min-height:53px;border:0;border-radius:8px;text-align:left;background:transparent;color:var(--oa-tone-eaf1ff, #eaf1ff);padding:7px 11px;transition:background .2s ease;}
.hub-system:hover{background:rgba(255,255,255,.1);}
.hub-system.active{background:linear-gradient(100deg,var(--oa-tone-3696f1, #3696f1),var(--oa-tone-2272d8, #2272d8));color:#fff;box-shadow:0 5px 14px var(--oa-tone-0d387233, rgba(13,56,114,.2));}
.hub-system-icon{width:25px;flex:none;display:grid;place-items:center;font-size:19px}
.hub-system b{font-size:14px;font-weight:750;display:block;}
.hub-system small{display:block;font-size:10px;color:var(--oa-tone-b8cee8, #b8cee8);margin-top:4px;}
.hub-system.active small{color:var(--oa-tone-ecf6ff, #ecf6ff);}
.hub-chevron{margin-left:auto;color:var(--oa-tone-9fc6ec, #9fc6ec);font-size:18px;flex:none;}
.hub-systems-bottom{margin-top:auto;padding:18px 16px;border-top:1px solid rgba(255,255,255,.08);color:var(--oa-tone-acc1dd, #acc1dd);font-size:11px;}
.portal-hub .hub-features{display:flex;flex-direction:column;background:linear-gradient(180deg,var(--oa-tone-f6faff, #f6faff),var(--oa-tone-edf5fd, #edf5fd));border-right:1px solid var(--hub-line);min-width:0;}
.hub-features-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:22px 15px 16px;color:var(--oa-tone-223e5e, #223e5e);font-size:15px;font-weight:800;border-bottom:1px solid var(--oa-tone-dae7f3, #dae7f3);}
.hub-features-heading small{font-size:11px;border-radius:999px;color:var(--oa-tone-4572aa, #4572aa);background:var(--oa-tone-e5f0fb, #e5f0fb);padding:4px 8px;}
.hub-features-list{overflow-y:auto;padding:11px;max-height:740px;display:grid;gap:5px;align-content:start;}
/* 系统功能目录：可收起为竖条，主内容区自动变宽 */
.hub-features-toggle{flex:none;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--oa-tone-cfe0f1, #cfe0f1);background:#fff;color:var(--oa-tone-4572aa, #4572aa);border-radius:7px;font-weight:900;font-size:14px;line-height:1;cursor:pointer;}
.hub-features-toggle:hover{background:var(--oa-tone-e8f3ff, #e8f3ff);color:var(--oa-tone-0868c4, #0868c4);}
.hub-features-rail{display:none;}
.portal-hub.features-collapsed{--hub-feat-w:48px;}
.portal-hub.features-collapsed>.hub-features .hub-features-heading,
.portal-hub.features-collapsed>.hub-features .hub-features-list{display:none;}
.portal-hub.features-collapsed>.hub-features .hub-features-rail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;flex:1;min-height:300px;border:0;background:transparent;color:var(--oa-tone-4572aa, #4572aa);cursor:pointer;}
.portal-hub.features-collapsed>.hub-features .hub-features-rail span{writing-mode:vertical-rl;letter-spacing:3px;font-size:13px;font-weight:800;color:var(--oa-tone-335f96, #335f96);}
.portal-hub.features-collapsed>.hub-features .hub-features-rail b{font-size:19px;line-height:1;}
.portal-hub.features-collapsed>.hub-features .hub-features-rail:hover{background:var(--oa-tone-e8f3ff, #e8f3ff);}
@media(max-width:970px){.portal-hub.features-collapsed>.hub-features .hub-features-rail{flex-direction:row;min-height:0;height:44px;padding:0 14px;gap:8px;}.portal-hub.features-collapsed>.hub-features .hub-features-rail span{writing-mode:horizontal-tb;letter-spacing:1px;font-size:12px;}}
.hub-feature-item{border-bottom:1px solid var(--oa-tone-c6d9e999, rgba(198,217,233,.6));}
.hub-feature-main{display:flex;align-items:center;gap:10px;border:0;border-radius:8px;background:transparent;text-align:left;color:var(--oa-tone-365878, #365878);width:100%;min-height:49px;padding:7px 10px;font-size:13px;font-weight:700;}
.hub-feature-main:hover{background:var(--oa-tone-e8f3ff, #e8f3ff);}
.hub-feature-main.active{background:var(--oa-tone-e0efff, #e0efff);color:var(--oa-tone-0964c9, #0964c9);box-shadow:inset 3px 0 var(--oa-tone-2480eb, #2480eb);}
.hub-feature-icon{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:8px;background:var(--oa-tone-e5eef8, #e5eef8);font-size:11px;color:var(--oa-tone-3678bf, #3678bf);font-weight:900;}
.hub-feature-main.active .hub-feature-icon{background:var(--oa-tone-d1e7ff, #d1e7ff);color:var(--oa-tone-0868c4, #0868c4);}
.hub-children{padding:4px 8px 11px 38px;display:grid;gap:4px;}
.hub-children button{display:flex;justify-content:space-between;align-items:center;gap:7px;text-align:left;padding:8px 7px;color:var(--oa-tone-496781, #496781);border:0;background:transparent;border-radius:6px;font-size:11px;}
.hub-children button:hover{background:var(--oa-tone-e6f3ff, #e6f3ff);color:var(--oa-tone-0665bb, #0665bb);}
.hub-children button span{font-size:12px;color:var(--oa-tone-9cb1c7, #9cb1c7);}
.hub-display{min-width:0;padding:17px 17px 20px;background:linear-gradient(180deg,#fff,#fcfdff);}
.hub-display-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 5px 18px;border-bottom:1px solid var(--hub-line);}
.hub-display-title{min-width:0;display:flex;align-items:center;gap:11px;}
.hub-display-icon{height:35px;width:35px;flex:none;display:grid;place-items:center;font-size:18px;color:var(--oa-tone-0e65ba, #0e65ba);background:var(--oa-tone-eaf4ff, #eaf4ff);border:1px solid var(--oa-tone-d2e9fa, #d2e9fa);border-radius:9px;}
.hub-display-title b{display:block;font-size:22px;color:var(--oa-tone-173956, #173956);}
.hub-display-title small{display:block;font-size:11px;margin-top:5px;color:var(--oa-tone-788da5, #788da5);line-height:1.4;}
.hub-display-back{flex:none;border:1px solid var(--oa-tone-cddff1, #cddff1);background:#f8fbff;color:var(--oa-tone-1a68b1, #1a68b1);border-radius:8px;padding:9px 11px;font-weight:700!important;font-size:11px!important;}
.hub-display-content{padding-top:15px;}
.hub-overview-hero{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(200px,.8fr);min-height:365px;border:1px solid var(--oa-tone-dceaf7, #dceaf7);border-radius:13px;overflow:hidden;background:var(--oa-tone-eaf5ff, #eaf5ff);}
.hub-overview-photo{min-width:0;position:relative;}
.hub-overview-photo img{display:block;width:100%;height:100%;min-height:365px;object-fit:cover;}
.hub-overview-caption{padding:29px 22px;display:flex;flex-direction:column;justify-content:center;color:#fff;background:linear-gradient(145deg,var(--oa-tone-0a71c4, #0a71c4),var(--oa-tone-159fe0, #159fe0) 75%,var(--oa-tone-0780cd, #0780cd));}
.hub-overview-caption>span{font-size:11px;letter-spacing:.7px;color:var(--oa-tone-ccefff, #ccefff);}
.hub-overview-caption h3{font-size:24px;line-height:1.4;margin:13px 0 8px;letter-spacing:1px;}
.hub-overview-caption p{line-height:1.9;font-size:12px;color:var(--oa-tone-e1f3ff, #e1f3ff);}
.hub-overview-caption button{align-self:flex-start;border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.12);color:#fff;border-radius:8px;padding:10px 13px;margin-top:17px;font-weight:700;font-size:11px;}
.hub-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px;}
.hub-action-card{border:1px solid var(--oa-tone-dbe9f6, #dbe9f6);background:#fff;border-radius:12px;padding:15px;box-shadow:0 3px 10px var(--oa-tone-0d4c900b, rgba(13,76,144,.045));min-width:0;}
.hub-action-icon{display:grid;place-items:center;background:var(--oa-tone-e5f3ff, #e5f3ff);color:var(--oa-tone-0679dc, #0679dc);height:37px;width:37px;border-radius:10px;font-size:21px;}
.hub-action-card h4{margin:12px 0 6px;font-size:14px;color:var(--oa-tone-193a58, #193a58);}
.hub-action-card p{margin:0;font-size:11px;line-height:1.65;color:var(--oa-tone-68849f, #68849f);min-height:55px;}
.hub-action-card button{border:0;padding:0;margin-top:8px;background:none;color:var(--oa-tone-086ccf, #086ccf);font-size:11px;font-weight:800;}
.hub-action-card button span{margin-left:5px;}
.hub-empty{padding:18px 12px;text-align:center;color:var(--oa-tone-8094a8, #8094a8);line-height:1.7;}
.hub-sales-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border:1px solid var(--oa-tone-dce9f6, #dce9f6);border-radius:12px;background:linear-gradient(108deg,var(--oa-tone-eff7ff, #eff7ff),#fff);}
.hub-sales-heading span{font-size:11px;color:var(--oa-tone-0871c6, #0871c6);font-weight:750;}
.hub-sales-heading h3{margin:5px 0;font-size:22px;color:var(--oa-tone-123f71, #123f71);}
.hub-sales-heading p{margin:0;color:var(--oa-tone-7a91aa, #7a91aa);font-size:11px;}
.hub-sales-primary{flex:none;border:0;background:var(--oa-tone-147ecf, #147ecf);color:white;border-radius:9px;padding:11px 14px;font-size:12px!important;font-weight:800!important;}
.hub-sales-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:13px;}
.hub-sales-metrics>div{min-width:0;padding:14px 12px;background:linear-gradient(140deg,var(--oa-tone-177eb7, #177eb7),var(--oa-tone-59acd8, #59acd8));border-radius:10px;color:#fff;}
.hub-sales-metrics small{display:block;color:var(--oa-tone-e6f7ff, #e6f7ff);font-size:11px;}
.hub-sales-metrics b{display:block;font-size:25px;margin-top:8px;}
.hub-sales-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:11px;}
.hub-sales-money>div{border:1px solid var(--oa-tone-dce9f6, #dce9f6);background:#fff;border-radius:9px;padding:12px;min-width:0;}
.hub-sales-money span{display:block;font-size:11px;color:var(--oa-tone-7990a5, #7990a5);}
.hub-sales-money b{display:block;color:var(--oa-tone-123f71, #123f71);margin-top:7px;font-size:16px;overflow-wrap:anywhere;}
.hub-sales-table-head{display:flex;align-items:center;justify-content:space-between;padding:18px 1px 9px;gap:10px;}
.hub-sales-table-head h4{margin:0;color:var(--oa-tone-173e62, #173e62);font-size:14px;}
.hub-sales-table-head button{border:0;background:none;color:var(--oa-tone-086dcb, #086dcb);font-size:11px;font-weight:800;}
.hub-sales-table-scroll{overflow-x:auto;border:1px solid var(--oa-tone-dbe9f6, #dbe9f6);border-radius:10px;background:#fff;}
.hub-sales-table{min-width:500px;width:100%;border-collapse:collapse;}
.hub-sales-table th,.hub-sales-table td{padding:11px 10px;white-space:nowrap;border-bottom:1px solid var(--oa-tone-ecf2f8, #ecf2f8);font-size:11px;}
.hub-sales-table th{color:var(--oa-tone-5e7e99, #5e7e99);background:var(--oa-tone-edf5fc, #edf5fc);}
.hub-sales-table td{color:var(--oa-tone-3f5a77, #3f5a77);}
.hub-sales-table td b{color:var(--oa-tone-124a7c, #124a7c);}
.hub-sales-table td button{border:0;background:none;color:var(--oa-tone-0b6ec4, #0b6ec4);font-size:11px;font-weight:800;}
.hub-stage-chip{display:inline-block;border-radius:999px;background:#e9f5ff;color:#126db0;padding:5px 8px;font-size:10px}
.hub-sales-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:13px;}
.hub-sales-steps button{border:1px solid var(--oa-tone-dbe9f6, #dbe9f6);background:var(--oa-tone-f7fbff, #f7fbff);border-radius:9px;color:var(--oa-tone-23649e, #23649e);min-height:42px;font-weight:800;font-size:11px;}
.hub-sales-steps button span{margin-left:4px;}
.hub-generic-intro{padding:25px 24px;border-radius:13px;background:linear-gradient(112deg,var(--oa-tone-125d9d, #125d9d),var(--oa-tone-209ed6, #209ed6));color:#fff;min-height:230px;}
.hub-generic-tag{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.15);font-size:11px;}
.hub-generic-intro h3{font-size:26px;margin:17px 0 8px;}
.hub-generic-intro p{font-size:13px;line-height:1.8;max-width:540px;color:var(--oa-tone-e2f4ff, #e2f4ff);}
.hub-generic-intro button{margin-top:12px;padding:10px 14px;border:1px solid rgba(255,255,255,.5);background:rgba(255,255,255,.15);color:#fff;border-radius:9px;font-size:11px;font-weight:700;}
.hub-generic-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:21px;color:var(--oa-tone-2d4d67, #2d4d67);}
.hub-generic-heading b{font-size:14px;}
.hub-generic-heading small{color:var(--oa-tone-7a91a8, #7a91a8);font-size:11px;}
.hub-related{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--oa-tone-f2f8ff, #f2f8ff);border:1px solid var(--oa-tone-dbe9f6, #dbe9f6);border-radius:10px;margin-top:16px;padding:15px;}
.hub-related b,.hub-related small{display:block;}.hub-related b{font-size:13px;}.hub-related small{margin-top:4px;color:var(--oa-tone-8396a9, #8396a9);font-size:11px;}
.hub-related button{background:#fff;color:var(--oa-tone-136db9, #136db9);border:1px solid var(--oa-tone-cde0f2, #cde0f2);border-radius:9px;padding:9px;font-size:11px;flex:none;}
@media(max-width:1280px){.portal-hub{--hub-feat-w:205px;grid-template-columns:225px var(--hub-feat-w) minmax(0,1fr);}.hub-overview-hero{grid-template-columns:1fr;}.hub-overview-photo img{min-height:260px;max-height:340px;}.hub-overview-caption{padding:19px;}.hub-overview-caption h3{font-size:20px;}.hub-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:970px){.portal-hub{grid-template-columns:190px minmax(0,1fr);}.hub-systems{grid-row:1/3;}.hub-features{grid-column:2;}.hub-display{grid-column:2;}.hub-feature-main{min-height:42px;}.hub-system b{font-size:12px;}.hub-features-list{max-height:275px;}.hub-system-scroll{max-height:none;}}
@media(max-width:700px){.app.hub-portal-active>.main{padding-left:12px;padding-right:12px;}.portal-hub{grid-template-columns:1fr;}.hub-systems{grid-row:auto;}.hub-system-scroll{grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px;}.hub-system b{font-size:11px;}.hub-features{grid-column:1;}.hub-features-list{max-height:280px;}.hub-display{grid-column:1;}.hub-action-grid,.hub-sales-metrics,.hub-sales-money,.hub-sales-steps{grid-template-columns:repeat(2,minmax(0,1fr));}.hub-overview-photo img{min-height:230px;}.hub-display-head{flex-wrap:wrap;}.hub-display-title small{white-space:normal;}.hub-sales-heading{flex-wrap:wrap;}}
@media(max-width:420px){.hub-action-grid,.hub-sales-money,.hub-sales-steps{grid-template-columns:1fr;}.hub-system-scroll{grid-template-columns:1fr;}.hub-system-scroll{max-height:230px;}}

@media(max-width:560px){.app.hub-portal-active #homeBtn{display:none!important;}.app.hub-portal-active .top-actions .search{width:35vw;}.app.hub-portal-active .crumb strong{font-size:13px;}.app.hub-portal-active .hero h1{font-size:24px;}}
/* 小屏保留门户顶栏必要入口，避免长搜索框挤出屏幕。 */
@media(max-width:560px){
 .app.hub-portal-active .topbar .company-fixed,
 .app.hub-portal-active .topbar .user-badge,
 .app.hub-portal-active .topbar .search{display:none!important;}
 .app.hub-portal-active .topbar .top-actions{gap:6px;flex:none;max-width:calc(100% - 120px);}
 .app.hub-portal-active .topbar .crumb{min-width:0;max-width:120px;}
 .app.hub-portal-active .topbar .crumb strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;}
}

/* 十大系统统一仪表台：业务概览和单项功能页采用销售台账同版式。 */
.hub-overview-full{display:block;min-height:0;background:var(--oa-tone-eaf3fc, #eaf3fc);}
.hub-overview-full .hub-overview-photo{height:385px;}
.hub-overview-full .hub-overview-photo img{height:100%;width:100%;min-height:0;max-height:none;object-fit:cover;object-position:center center;}
/* 首页主视觉铺满整个显示区，消除下方留白；其它页面不受影响 */
.hub-display-home{display:flex;flex-direction:column;}
.hub-display-home .hub-display-head{flex:none;}
.hub-display-home .hub-display-content{flex:1;min-height:0;display:flex;flex-direction:column;padding-bottom:0;}
.hub-display-home .hub-overview-full{flex:1;min-height:0;width:100%;display:flex;}
.hub-display-home .hub-overview-full .hub-overview-photo{flex:1;height:auto;min-height:360px;}
.hub-display-home .hub-overview-full .hub-overview-photo img{height:100%;min-height:0;}
.hub-module-dashboard .hub-dash-heading{min-height:100px;gap:15px;}
.hub-module-dashboard .hub-dash-heading p{font-size:12px;line-height:1.65;max-width:650px;}
.hub-module-dashboard .hub-sales-metrics>div{background:linear-gradient(112deg,var(--oa-tone-287fac, #287fac),var(--oa-tone-55add8, #55add8));}
.hub-module-dashboard .hub-sales-metrics>div:nth-child(2){background:linear-gradient(115deg,#1674ad,#4a9bd2)}
.hub-module-dashboard .hub-sales-metrics>div:nth-child(3){background:linear-gradient(115deg,#248eae,#5fb4d1)}
.hub-module-dashboard .hub-sales-metrics>div:nth-child(4){background:linear-gradient(115deg,#1b83b4,#5eafd8)}
.hub-module-dashboard .hub-sales-table-scroll{min-height:190px;}
.hub-module-dashboard .hub-sales-table td:nth-child(2){max-width:260px;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.hub-dashboard-actions-head{display:flex;align-items:center;justify-content:space-between;margin:15px 0 0;padding:0 1px;}
.hub-dashboard-actions-head>b{font-size:13px;color:var(--oa-tone-284a6b, #284a6b);}
.hub-dashboard-actions-head>button{border:0;background:transparent;color:var(--oa-tone-126cb9, #126cb9);font-size:11px;font-weight:700;cursor:pointer;}
.hub-dashboard-note{margin:13px 2px 0;line-height:1.6;font-size:10px;color:var(--oa-tone-8194a5, #8194a5);}
.hub-dashboard-notice{margin:10px 0;padding:9px 12px;border:1px solid #f4dfba;border-radius:9px;color:#866123;background:#fffaf0;font-size:11px;}
@media(max-width:1280px){.hub-overview-full .hub-overview-photo{height:320px;}.hub-overview-full .hub-overview-photo img{min-height:0;max-height:none;height:100%;}}
@media(max-width:700px){.hub-overview-full .hub-overview-photo{height:235px;}.hub-module-dashboard .hub-dash-heading{align-items:flex-start;}.hub-dashboard-actions-head{gap:8px;flex-wrap:wrap;}}
