.customer-count{color:var(--muted);font-size:11px}.view-switch{display:flex;border:1px solid var(--line);background:#fff;padding:3px;border-radius:9px}.view-switch button{border:0;background:transparent;color:#7b887f;border-radius:6px;padding:6px 10px;cursor:pointer;font-size:11px}.view-switch button.active{background:var(--pale);color:var(--green);font-weight:bold}.customer{transition:transform .15s,box-shadow .15s}.customer:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(35,64,48,.1)}.customer-top{position:relative}.customer-identity{min-width:0}.customer-identity h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-phone{color:#98a29c;font-size:10px;margin-top:5px}.customer-type{margin-left:auto;align-self:flex-start;background:var(--pale);color:var(--green);font-size:10px;padding:5px 8px;border-radius:12px}.customer-balance{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:10px 12px;background:#f8faf8;border-radius:8px;font-size:11px;color:var(--muted)}.customer-balance b{color:#72599b}.customer-list-view>.card{margin-bottom:0}.customer-table td{padding-top:13px;padding-bottom:13px}.table-person{display:flex;align-items:center;gap:10px}.table-person>span{width:30px;height:30px;border-radius:50%;background:var(--pale);color:var(--green);display:grid;place-items:center;font-weight:bold}.table-person b,.table-person small{display:block}.table-person small{color:var(--muted);font-size:10px;margin-top:4px}.money.prepaid{color:#72599b}.money.out{color:#c47724}@media(max-width:650px){.view-switch span{display:none}.customer-count{display:none}}
.customers-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding:25px 30px;border-radius:18px;color:#fff;background:linear-gradient(118deg,#123f2d 0%,#176b49 58%,#2c8b65 100%);box-shadow:0 16px 38px rgba(20,79,55,.18)}.customers-hero:before,.customers-hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}.customers-hero:before{width:220px;height:220px;right:80px;top:-150px}.customers-hero:after{width:150px;height:150px;right:-45px;bottom:-90px}.customers-hero-copy{position:relative;z-index:1}.customers-hero-copy>span{font-size:9px;letter-spacing:2px;color:#a9d6c3}.customers-hero h2{font-size:23px;margin:7px 0 6px}.customers-hero p{color:#c4ded2}.customers-hero-mark{position:relative;z-index:1;width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);font-size:28px;font-weight:700;box-shadow:inset 0 1px rgba(255,255,255,.2)}.customers-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:19px}.customers-metrics article{display:flex;align-items:center;gap:13px;padding:17px 18px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 8px 25px rgba(35,64,48,.05)}.customers-metric-icon{flex:0 0 38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:17px;font-weight:700}.customers-metric-icon.total{background:#f1edfb;color:#765da7}.customers-metric-icon.spent{background:#e7f5ed;color:#1f8159}.customers-metric-icon.due{background:#fff0e7;color:#c56f35}.customers-metric-icon.prepaid{background:#eaf0ff;color:#506ea7}.customers-metrics span{display:block;color:var(--muted);font-size:10px}.customers-metrics strong{display:block;margin:4px 0 2px;font-size:18px;letter-spacing:-.4px}.customers-metrics small{color:#a0aaa4;font-size:9px}.customers-toolbar{padding:2px 2px 0}@media(max-width:1100px){.customers-metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.customers-hero{padding:21px}.customers-hero-mark{display:none}.customers-metrics{grid-template-columns:1fr 1fr}.customers-metrics article{padding:14px}.customers-metrics small{display:none}}
/* ===== 玻璃拟态升级 ===== */
.customers-metrics article{background:rgba(255,255,255,.62);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.75);border-radius:14px;box-shadow:0 10px 28px rgba(31,83,59,.06);transition:transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s}
.customers-metrics article:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(31,83,59,.12)}
.customers-metric-icon{flex:0 0 40px;height:40px;border-radius:12px;color:#fff;font-size:18px;background:linear-gradient(135deg,#1d7a55,#2e9e6b);box-shadow:0 4px 10px rgba(29,122,85,.25)}
.customers-metric-icon.total{background:linear-gradient(135deg,#2e9e6b,#5bb98c)}
.customers-metric-icon.spent{background:linear-gradient(135deg,#1d7a55,#3aa37c)}
.customers-metric-icon.due{background:linear-gradient(135deg,#d98324,#e8a04a)}
.customers-metric-icon.prepaid{background:linear-gradient(135deg,#2e9e6b,#4fb39a)}
.customers-metrics article:nth-child(3){border-left:3px solid #e8a04a}
.customers-metrics strong{font-variant-numeric:tabular-nums}
/* 搜索区毛玻璃 */
.customers-toolbar{background:rgba(255,255,255,.62);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.75);border-radius:14px;padding:14px 18px;box-shadow:0 10px 28px rgba(31,83,59,.06)}
/* 客户卡片玻璃拟态 */
.customer-grid .customer{background:rgba(255,255,255,.62);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.75);border-radius:14px;box-shadow:0 10px 28px rgba(31,83,59,.06);transition:transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s,border-color .3s}
.customer-grid .customer:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(31,83,59,.12);border-color:#cde8da}
.customer-list-view>.card{background:rgba(255,255,255,.62);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.75);border-radius:14px;box-shadow:0 10px 28px rgba(31,83,59,.06)}
.customer-list-view tbody tr:hover td{background:rgba(46,158,107,.05)}
.customer-list-view tbody tr:hover td:first-child{box-shadow:inset 3px 0 0 #2e9e6b}

/* 空状态插画 */
.customer-empty{display:grid;place-content:center;justify-items:center;gap:12px;text-align:center;padding:60px 20px;border:2px dashed #dce7e0;border-radius:16px;background:rgba(255,255,255,.4)}
.customer-empty-icon{width:88px;height:88px;color:#a9c9b8;animation:floaty 3s ease-in-out infinite}
.customer-empty h3{font-size:17px;color:#466354;margin:0}
.customer-empty p{color:#9aa8a0;font-size:13px;margin:0 0 8px}
.customer-empty .btn{margin-top:4px}
.customer-empty .customer-clear-filter{margin-left:8px}

/* ===== 字体统一 ===== */
.customers-metrics span{font-size:13px;font-weight:600}
.customers-metrics strong{font-size:24px}
.customers-metrics small{font-size:11px}
.customer h3{font-size:16px;font-weight:700}
.customer-meta{font-size:12px}
.customer-phone{font-size:12px}
.customer-stats span{font-size:11px}
.customer-stats b{font-size:14px}
.customer-balance{font-size:12px}
.customer-balance b{font-size:15px}
.customer-table th{font-size:12px;font-weight:600}
.customer-table td{font-size:13px}
.table-person b{font-size:13px}
.table-person small{font-size:11px}
.customer-type{font-size:11px}
.customer-count{font-size:12px}

/* ===== 指标卡片三层结构 ===== */
.customers-metrics article.customer-metric-card{display:flex;flex-direction:column;align-items:stretch;padding:18px 20px;min-height:132px}
.customer-metric-card .metric-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.customer-metric-card .metric-name{font-size:13px;color:#7b8a82;font-weight:600}
.customer-metric-card .metric-icon{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#1d7a55,#2e9e6b);color:#fff;display:grid;place-items:center;flex:none;box-shadow:0 4px 10px rgba(29,122,85,.25)}
.customer-metric-card .metric-icon svg{width:18px;height:18px}
.customer-metric-card .metric-main{display:flex;align-items:baseline;gap:8px}
.customer-metric-card .metric-value{font-size:28px;font-weight:800;font-variant-numeric:tabular-nums;color:#1a2f24}
.customer-metric-card .metric-delta{font-size:12px;font-weight:600}
.customer-metric-card .metric-delta.up{color:#1d7a55}
.customer-metric-card .metric-delta.down{color:#c0392b}
.customer-metric-card .metric-foot{margin-top:auto;padding-top:8px}
.customer-metric-card .metric-foot small{color:#9aa8a0;font-size:11px}
.metric-spark{width:100%;height:28px;display:block}
.customer-metric-card.due{border-left:3px solid #e8a04a}
.customer-metric-card.due .metric-value{color:#c47724}
.merge-hint{padding:10px 12px;background:#fff7ed;border:1px solid #fde8d7;border-radius:8px;color:#b45309;font-size:12px;line-height:1.6;margin:4px 0 12px}
