/* Home overview pass: focus hierarchy with semantic business-entity line icons. */
#home .stats.stats-seven {
  align-items:stretch;
  grid-template-columns:repeat(12,minmax(0,1fr)) ;
  margin-bottom:38px ;
}

#home .stats article {
  background:linear-gradient(142deg,rgb(255 255 255 / .68),rgb(239 249 255 / .24) 58%,rgb(255 255 255 / .42)) ;
  border:1px solid rgb(255 255 255 / .88) ;
  box-shadow:0 12px 26px rgb(42 87 123 / .08),inset 0 1px 0 rgb(255 255 255 / .96),inset 0 -1px 0 rgb(115 184 235 / .13) ;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:136px ;
  overflow:hidden;
  padding:20px 21px ;
}

#home .stats article::before {
  background:radial-gradient(circle at 88% 10%,rgb(177 222 251 / .32),transparent 38%);
  content:"";
  inset:0;
  pointer-events:none;
  position:absolute;
}

#home .stats article > * { position:relative; z-index:1; }
#home .stats .stat-channels { grid-column:span 3; background:linear-gradient(142deg,rgb(237 248 255 / .92),rgb(216 240 255 / .54)) ; }
#home .stats .stat-mdp,#home .stats .stat-dld { grid-column:span 2; }
#home .stats .stat-eu { grid-column:span 5; background:linear-gradient(142deg,rgb(248 252 255 / .92),rgb(229 245 255 / .52)) ; }
#home .stats .stat-free { grid-column:span 3; }
#home .stats .stat-internal { grid-column:span 4; }
#home .stats .stat-terminal { grid-column:span 3; }
#home .stats .stat-mkp { grid-column:span 2; }

#home .stats b {
  color:#1c252e ;
  font-size:clamp(32px,2.75vw,47px) ;
  letter-spacing:-.065em ;
}

#home .stat-meta { align-items:center; display:flex; gap:9px; min-width:0; }
#home .stats .stat-meta .stat-glyph {
  align-items:center;
  color:#2670aa;
  display:inline-flex;
  flex:0 0 34px;
  height:34px;
  justify-content:center;
  margin:0;
  position:relative;
  width:34px;
}

#home .stat-glyph::before,
#home .stat-glyph::after,
#home .stat-glyph i { box-sizing:border-box; content:""; display:block; position:absolute; }

/* 渠道网络：三个相连节点。 */
#home .stat-network::before { border:1.8px solid currentColor; border-radius:50%; box-shadow:-10px 12px 0 -2px #fff,-10px 12px 0 0 currentColor,10px 12px 0 -2px #fff,10px 12px 0 0 currentColor; height:7px; transform:translateY(-5px); width:7px; }
#home .stat-network::after { border-left:1.4px solid currentColor; border-right:1.4px solid currentColor; height:15px; transform:translateY(6px) rotate(45deg); width:21px; }
/* MDP：两个互相连接的合作节点。 */
#home .stat-mdp-glyph::before { border:1.8px solid currentColor; border-radius:50%; height:14px; transform:translate(-5px,1px); width:14px; }
#home .stat-mdp-glyph::after { border:1.8px solid currentColor; border-radius:50%; height:14px; transform:translate(5px,-1px); width:14px; }
#home .stat-mdp-glyph i { background:currentColor; border-radius:2px; height:2px; transform:rotate(-26deg); width:9px; }
/* DLD：代理店门店立面。 */
#home .stat-dld-glyph::before { border:1.8px solid currentColor; border-radius:3px; height:15px; transform:translateY(4px); width:21px; }
#home .stat-dld-glyph::after { border:1.8px solid currentColor; border-bottom:0; border-radius:7px 7px 0 0; height:7px; transform:translateY(-8px); width:24px; }
#home .stat-dld-glyph i { background:currentColor; box-shadow:6px 0 currentColor; height:11px; transform:translateX(-3px); width:1.8px; }
/* MDP 报备 EU：完成登记的报备单。 */
#home .stat-report::before { border:1.8px solid currentColor; border-radius:4px; height:23px; width:18px; }
#home .stat-report::after { border-bottom:1.8px solid currentColor; border-left:1.8px solid currentColor; height:5px; transform:translate(-3px,4px) rotate(-45deg); width:8px; }
#home .stat-report i { background:currentColor; box-shadow:0 5px currentColor; height:1.8px; transform:translate(3px,-6px); width:7px; }
/* 游离客户：脱离归属网络的独立节点。 */
#home .stat-free-glyph::before { border:1.8px solid currentColor; border-radius:50%; border-top-color:transparent; height:22px; transform:rotate(30deg); width:22px; }
#home .stat-free-glyph::after { background:currentColor; height:1.8px; transform:translate(12px,-10px) rotate(30deg); width:8px; }
#home .stat-free-glyph i { background:currentColor; border-radius:50%; height:4px; transform:translate(10px,-13px); width:4px; }
/* 内勤 MKT2：内勤组织楼宇。 */
#home .stat-internal-glyph::before { border:1.8px solid currentColor; border-radius:3px; height:24px; transform:translateY(2px); width:20px; }
#home .stat-internal-glyph::after { background:currentColor; border-radius:1px; box-shadow:6px 0 currentColor,0 6px currentColor,6px 6px currentColor; height:3px; transform:translate(-4px,-4px); width:3px; }
#home .stat-internal-glyph i { border:1.8px solid currentColor; border-bottom:0; height:5px; transform:translate(0,10px); width:7px; }
/* 代理店终端：终端客户头像。 */
#home .stat-terminal-glyph::before { border:1.8px solid currentColor; border-radius:50%; height:17px; transform:translateY(-3px); width:17px; }
#home .stat-terminal-glyph::after { border:1.8px solid currentColor; border-bottom:0; border-radius:12px 12px 0 0; height:10px; transform:translateY(11px); width:23px; }
#home .stat-terminal-glyph i { background:currentColor; border-radius:50%; height:6px; transform:translateY(-3px); width:6px; }
/* MKP 品牌：产品吊牌。 */
#home .stat-brand::before { border:1.8px solid currentColor; border-radius:4px; height:17px; transform:rotate(-39deg); width:22px; }
#home .stat-brand::after { border:1.8px solid currentColor; border-radius:50%; height:5px; transform:translate(-8px,-8px); width:5px; }
#home .stat-brand i { background:currentColor; height:8px; transform:translate(5px,5px) rotate(-39deg); width:1.8px; }

#home .stats .stat-meta .stat-label {
  color:#5c6b79;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  margin:0;
}

#home .rankings-grid { align-items:start; }
#home .ranking-card-external {
  background:linear-gradient(142deg,rgb(255 255 255 / .60),rgb(232 246 255 / .30)) ;
  border:1px solid rgb(255 255 255 / .86);
  border-radius:20px;
  box-shadow:0 12px 28px rgb(37 89 131 / .07),inset 0 1px rgb(255 255 255 / .92);
  grid-column:span 2;
  padding:22px ;
}

.external-ranking-content { margin-top:15px; }
.external-ranking-empty { color:var(--wb-muted); margin:0; }
.external-ranking-layout { display:grid; gap:12px; grid-template-columns:minmax(205px,.78fr) minmax(0,1fr); }
.external-ranking-lead {
  background:linear-gradient(146deg,rgb(239 249 255 / .95),rgb(211 238 255 / .53));
  border:1px solid rgb(189 221 246 / .92);
  border-radius:17px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:252px;
  padding:20px;
}
.external-ranking-lead .ranking-place {
  align-items:center;
  background:#1976c5;
  border-radius:10px;
  color:#fff;
  display:inline-flex;
  font-size:14px;
  font-weight:800;
  height:34px;
  justify-content:center;
  width:34px;
}
.external-ranking-lead h4 { font-size:23px; letter-spacing:-.04em; margin:15px 0 4px; }
.external-ranking-lead b { color:#1d629b; display:block; font-size:27px; letter-spacing:-.06em; }
.external-ranking-lead small { border-top:1px solid rgb(97 164 211 / .28); color:#64819a; font-size:12px; font-weight:700; margin-top:17px; padding-top:12px; }
.external-ranking-grid { display:grid; gap:9px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.external-ranking-item {
  background:rgb(255 255 255 / .50);
  border:1px solid rgb(213 229 241 / .92);
  border-radius:14px;
  min-width:0;
  padding:12px;
}
.external-ranking-item:nth-child(-n+2) { background:linear-gradient(145deg,rgb(247 252 255 / .88),rgb(231 246 255 / .50)); }
.external-ranking-item header { align-items:center; color:#66849e; display:flex; font-size:11px; font-weight:800; justify-content:space-between; }
.external-ranking-item h4 { font-size:13px; margin:10px 0 5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.external-ranking-item b { color:#3a5870; display:block; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }

/* The four non-external rankings use the selected two-column ledger language. */
#home .ranking-card-ledger {
  background:rgb(255 255 255 / .50) ;
  border:1px solid rgb(216 231 242 / .9);
  border-radius:20px;
  box-shadow:inset 0 1px rgb(255 255 255 / .92),0 9px 22px rgb(37 89 131 / .05);
  overflow:hidden;
  padding:0 ;
}

#home .ranking-ledger-head {
  align-items:baseline;
  background:linear-gradient(112deg,rgb(237 248 255 / .82),rgb(255 255 255 / .18));
  display:flex;
  gap:12px;
  justify-content:space-between;
  padding:17px 18px 14px;
}

#home .ranking-ledger-head h3 { margin:0; font-size:16px; letter-spacing:-.025em; }
#home .ranking-ledger-head .ranking-month { color:#698096; font-size:11px; font-weight:700; margin:0; text-align:right; }
#home .ranking-card-ledger .ranking-list { display:grid; grid-template-columns:1fr 1fr; margin:0; padding:0; }
#home .ranking-card-ledger .ranking-list li {
  align-items:center;
  border-bottom:1px solid rgb(216 231 242 / .72);
  display:grid;
  font-size:12px ;
  gap:7px;
  grid-template-columns:minmax(0,1fr) auto;
  margin:0 ;
  min-height:37px;
  padding:0 13px ;
}

#home .ranking-card-ledger .ranking-list li:nth-child(odd) { border-right:1px solid rgb(216 231 242 / .72); }
#home .ranking-card-ledger .ranking-list li:nth-child(n+9) { border-bottom:0; }
#home .ranking-card-ledger .ranking-list li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#home .ranking-card-ledger .ranking-list li b { color:#405c72; font-size:11px; }
#home .ranking-card-ledger .ranking-list li:nth-child(-n+3) span { color:#176db5; font-weight:760; }

/* 渠道榜保留完整纵向阅读路径，避免双列排版在第十项后留下空位。 */
#home .ranking-card-channel .ranking-list { grid-template-columns:1fr; }
#home .ranking-card-channel .ranking-list li {
  min-height:40px;
  padding:0 17px ;
}
#home .ranking-card-channel .ranking-list li:nth-child(odd) { border-right:0; }
#home .ranking-card-channel .ranking-list li:nth-child(n+9) { border-bottom:1px solid rgb(216 231 242 / .72); }
#home .ranking-card-channel .ranking-list li:last-child { border-bottom:0; }
#home .ranking-card-channel .ranking-list li span { font-size:12px; }
#home .ranking-card-channel .ranking-list li b { color:#275e87; font-size:12px; }

/* 内勤榜沿用账本语言，以更浅的冷青色区分人员维度。 */
#home .ranking-card-internal .ranking-ledger-head {
  background:linear-gradient(112deg,rgb(240 250 255 / .92),rgb(255 255 255 / .22));
}
#home .ranking-card-internal .ranking-list li:nth-child(-n+3) span { color:#126a97; }

/* EU 榜保留完整归属信息，用跨两列的紧凑账本展示，便于横向核对。 */
#home .ranking-card-eu { grid-column:span 2; }
#home .eu-ranking-head,
#home .eu-ranking-list li {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(70px,.65fr) 52px 92px;
  gap:12px;
}
#home .eu-ranking-head {
  align-items:center;
  background:rgb(248 252 255 / .62);
  color:#71889b;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
  padding:8px 18px;
}
#home .eu-ranking-head span:last-child { text-align:right; }
#home .eu-ranking-list { list-style:none; margin:0; padding:0; }
#home .eu-ranking-list li {
  align-items:center;
  border-top:1px solid rgb(216 231 242 / .72);
  min-height:45px;
  padding:6px 18px 6px 48px;
  position:relative;
}
#home .eu-rank {
  color:#7f96aa;
  font-size:10px;
  font-weight:800;
  left:18px;
  position:absolute;
  top:17px;
}
#home .eu-identity { min-width:0; }
#home .eu-identity b,
#home .eu-identity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#home .eu-identity b { color:#294c68; font-size:12px; }
#home .eu-identity small { color:#7890a3; font-size:10px; margin-top:2px; }
#home .eu-owner { color:#546c80; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#home .eu-attribute { background:rgb(227 241 252 / .72); border:1px solid rgb(197 223 243 / .9); border-radius:999px; color:#39709a; font-size:10px; font-weight:750; padding:3px 6px; text-align:center; white-space:nowrap; }
#home .eu-amount { color:#1d629b; font-size:12px; font-variant-numeric:tabular-nums; text-align:right; white-space:nowrap; }
#home .eu-ranking-list .eu-ranking-empty { display:block; color:#71889b; min-height:0; padding:18px; }

@media (min-width:1050px) {
  #home .rankings-grid { grid-template-columns:repeat(3,minmax(0,1fr)) ; }
  #home .ranking-card-external { min-height:338px ; }
}

@media (max-width:1049px) {
  #home .stats.stats-seven { grid-template-columns:repeat(4,minmax(0,1fr)) ; }
  #home .stats article { grid-column:span 1 ; }
  #home .ranking-card-external { grid-column:span 1; }
  #home .ranking-card-eu { grid-column:span 1; }
}

@media (min-width:701px) and (max-width:1049px) {
  #home .rankings-grid { grid-template-columns:repeat(2,minmax(0,1fr)) ; }
  #home .ranking-card-external { grid-column:span 2; }
  #home .ranking-card-eu { grid-column:span 2; }
}

@media (max-width:700px) {
  #home .stats.stats-seven { grid-template-columns:repeat(2,minmax(0,1fr)) ; gap:10px ; }
  #home .stats article { min-height:116px ; padding:17px ; }
  #home .stats b { font-size:33px ; }
  #home .stats .stat-meta { gap:7px; }
  #home .stats .stat-meta .stat-glyph { flex-basis:29px; height:29px; transform:scale(.86); transform-origin:left center; width:29px; }
  #home .stats .stat-meta .stat-label { font-size:12px; }
  #home .ranking-card-external { padding:17px ; }
  .external-ranking-layout { grid-template-columns:1fr; }
  .external-ranking-lead { min-height:164px; }
  .external-ranking-lead h4 { margin-top:11px; }
  .external-ranking-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #home .ranking-ledger-head { align-items:flex-start; flex-direction:column; gap:3px; padding:15px 16px 12px; }
  #home .ranking-ledger-head .ranking-month { text-align:left; }
  #home .ranking-card-ledger .ranking-list { grid-template-columns:1fr; }
  #home .ranking-card-ledger .ranking-list li { min-height:36px; padding:0 15px ; }
  #home .ranking-card-ledger .ranking-list li:nth-child(odd) { border-right:0; }
  #home .ranking-card-ledger .ranking-list li:nth-child(n+9) { border-bottom:1px solid rgb(216 231 242 / .72); }
  #home .ranking-card-ledger .ranking-list li:last-child { border-bottom:0; }
  #home .eu-ranking-head { display:none; }
  #home .eu-ranking-list li { grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; min-height:58px; padding:8px 15px 8px 43px; }
  #home .eu-rank { left:15px; top:21px; }
  #home .eu-identity { grid-row:span 2; }
  #home .eu-owner { align-self:end; font-size:10px; }
  #home .eu-attribute { align-self:end; grid-column:2; grid-row:1; }
  #home .eu-amount { align-self:start; grid-column:2; grid-row:2; }
}

@media (prefers-reduced-motion:reduce) { #home .stats article { transition:none ; } }
