*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;background:#F0F2F5;display:flex;height:100vh;overflow:hidden}
a{text-decoration:none;color:inherit}

.sidebar{width:200px;min-width:200px;background:#2a394b;color:#fff;display:flex;flex-direction:column;height:100vh;overflow-y:auto}
.sidebar::-webkit-scrollbar{width:4px}
.sidebar::-webkit-scrollbar-thumb{background:#ffffff22;border-radius:2px}
.sidebar-logo{display:flex;align-items:center;gap:10px;padding:16px;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar-logo span{font-size:15px;font-weight:600;color:#00aaff}
.sidebar-nav{flex:1;padding:4px 0;overflow-y:auto;min-height:0}
.nav-item{display:flex;align-items:center;gap:10px;padding:12px 16px;cursor:pointer;font-size:13px;color:rgba(255,255,255,.65);transition:all .2s;position:relative;text-decoration:none;border-left:3px solid transparent}
.nav-item:hover{color:#fff;background:rgba(255,255,255,.06)}
.nav-item.active{color:#fff;background:#1f2d3d;border-left-color:#00aaff}
.nav-item .arrow{margin-left:auto;font-size:10px;color:rgba(255,255,255,.3);transition:transform .2s}
.nav-parent{cursor:pointer}
.nav-sub{display:none;background:rgba(0,0,0,.15)}
.nav-sub.open{display:block}
.nav-sub .nav-item{padding-left:44px;font-size:12px;color:rgba(255,255,255,.5);border-left-color:transparent}
.nav-sub .nav-item:hover{color:#fff;background:rgba(255,255,255,.06)}
.nav-sub .nav-item.active{color:#fff;background:#1f2d3d}

.main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:50px;background:#fff;border-bottom:1px solid #E8E8E8;flex-shrink:0}
.topbar-left{display:flex;align-items:center;gap:12px}
.topbar-right{display:flex;align-items:center;gap:12px}
.breadcrumb{font-size:13px;color:rgba(0,0,0,.45);display:flex;align-items:center;gap:6px}
.breadcrumb a{color:#00aaff}
.breadcrumb .current{color:rgba(0,0,0,.85);font-weight:500}
.topbar-right .user-info{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(0,0,0,.65)}
.topbar-right .avatar{width:30px;height:30px;border-radius:50%;background:#00aaff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;cursor:pointer}
.topbar-right .icon-btn{width:30px;height:30px;border:none;background:transparent;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:rgba(0,0,0,.45);font-size:16px}
.topbar-right .icon-btn:hover{background:#F5F5F5}

.content{flex:1;padding:16px 20px;overflow-y:auto;background:#F0F2F5}
.page-tabs{display:flex;align-items:center;gap:4px;margin-bottom:12px;background:#fff;border-radius:4px;padding:4px}
.page-tab,.tab-btn{padding:6px 12px;font-size:13px;border-radius:4px;cursor:pointer;color:rgba(0,0,0,.65);border:none;background:none;transition:all .2s}
.page-tab.active,.tab-btn.active{background:#00aaff;color:#fff}
.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.toolbar .left{display:flex;gap:8px}
.toolbar .right{display:flex;gap:8px}
.btn{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 12px;border:none;border-radius:4px;cursor:pointer;font-size:12px;transition:all .2s;white-space:nowrap}
.btn-primary{background:#00aaff;color:#fff}
.btn-primary:hover{background:#33bbff}
.btn-default{background:#fff;color:rgba(0,0,0,.65);border:1px solid #D9D9D9}
.btn-default:hover{color:#00aaff;border-color:#00aaff}
.btn-text{background:none;border:none;color:#00aaff;cursor:pointer;font-size:12px;padding:4px 6px}
.btn-text:hover{background:#e6f7ff;border-radius:4px}
.btn-success{background:#52C41A;color:#fff}
.btn-danger{background:#FF4D4F;color:#fff}

.table-wrap{background:#fff;border-radius:4px;overflow:hidden}
table{width:100%;border-collapse:collapse}
thead th{padding:10px 12px;text-align:left;font-size:12px;font-weight:600;color:rgba(0,0,0,.65);background:#FAFAFA;border-bottom:1px solid #F0F0F0;white-space:nowrap}
tbody td{padding:8px 12px;font-size:13px;color:rgba(0,0,0,.65);border-bottom:1px solid #F0F0F0}
tbody tr:hover{background:#FAFAFA}

.tag{display:inline-block;padding:2px 8px;border-radius:3px;font-size:11px;font-weight:500}
.tag-blue{background:#E6F7FF;color:#00aaff}
.tag-green{background:#F6FFED;color:#52C41A}
.tag-orange{background:#FFF7E6;color:#FA8C16}
.tag-red{background:#FFF2F0;color:#FF4D4F}
.tag-gray{background:#FAFAFA;color:rgba(0,0,0,.45)}
.tag-cyan{background:#E6FFFB;color:#13C2C2}

.pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px;border-top:1px solid #F0F0F0;font-size:12px;color:rgba(0,0,0,.45)}
.pagination .total{flex:1}
.pagination .page-btn{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;border:1px solid #D9D9D9;border-radius:4px;background:#fff;cursor:pointer;font-size:12px;color:rgba(0,0,0,.65)}
.pagination .page-btn:hover{border-color:#00aaff;color:#00aaff}
.pagination .page-btn.active{background:#00aaff;border-color:#00aaff;color:#fff}

/* ─── 弹窗 ─── */
.dialog-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;display:none;align-items:center;justify-content:center}
.dialog-overlay.show{display:flex}
.dialog{background:#fff;border-radius:4px;width:960px;max-height:90vh;overflow-y:auto;box-shadow:0 4px 24px rgba(0,0,0,.15)}
.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #F0F0F0;position:sticky;top:0;background:#fff;z-index:1}
.dialog-header h3{font-size:16px;font-weight:600;color:rgba(0,0,0,.85)}
.dialog-header .close-btn{border:none;background:none;font-size:20px;color:rgba(0,0,0,.45);cursor:pointer;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:4px}
.dialog-header .close-btn:hover{background:#F5F5F5}
.dialog-body{padding:20px}
.section-title{font-size:14px;font-weight:600;color:rgba(0,0,0,.85);margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #F0F0F0}
.info-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0;margin-bottom:20px}
.info-item{display:flex;padding:8px 12px;border-bottom:1px solid #F5F5F5}
.info-item:nth-child(odd){background:#FAFAFA}
.info-item .label{width:100px;font-size:12px;color:rgba(0,0,0,.45);flex-shrink:0}
.info-item .value{font-size:13px;color:rgba(0,0,0,.85)}
.info-item .value.link{color:#00aaff;cursor:pointer}
.info-item .value.link:hover{text-decoration:underline}
.dialog-footer{display:flex;justify-content:center;gap:12px;padding:16px 20px;border-top:1px solid #F0F0F0}
.dialog-footer .btn{height:34px;padding:0 20px;font-size:13px}
.history-table{width:100%;border-collapse:collapse;margin-top:8px}
.history-table th{padding:8px 12px;text-align:left;font-size:12px;font-weight:600;color:rgba(0,0,0,.65);background:#FAFAFA;border-bottom:1px solid #F0F0F0}
.history-table td{padding:8px 12px;font-size:12px;color:rgba(0,0,0,.65);border-bottom:1px solid #F0F0F0}
.history-table .reject-note{font-size:11px;color:rgba(0,0,0,.45);max-width:400px}

/* ─── 角色切换器 ─── */
.role-switcher{margin:8px 12px;padding:8px 10px;background:rgba(255,255,255,.06);border-radius:6px;display:flex;flex-direction:column;gap:4px}
.role-switcher label{font-size:10px;color:rgba(255,255,255,.4)}
.role-select{background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.1);border-radius:4px;color:rgba(255,255,255,.8);padding:6px 8px;font-size:12px;outline:none;width:100%}
.role-select option{background:#2a394b;color:#fff}

/* ─── 驿站筛选器（顶部栏） ─── */
.station-filter{display:flex;align-items:center;gap:8px;margin-bottom:16px;background:#fff;border-radius:8px;padding:12px 16px}
.station-filter label{font-size:12px;color:rgba(0,0,0,.45);white-space:nowrap}
.station-select{height:32px;border:1px solid #D9D9D9;border-radius:6px;padding:0 11px;font-size:13px;outline:none;min-width:160px}

/* ─── KPI卡片（带趋势） ─── */
.kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.kpi-card{background:#fff;border-radius:8px;padding:18px}
.kpi-card .kpi-top{display:flex;justify-content:space-between;align-items:flex-start}
.kpi-card .kpi-num{font-size:28px;font-weight:700;color:rgba(0,0,0,.85);line-height:1.2}
.kpi-card .kpi-label{font-size:12px;color:rgba(0,0,0,.45);margin-top:4px}
.kpi-card .kpi-trend{font-size:11px;padding:1px 6px;border-radius:4px;font-weight:500}
.kpi-trend.up{background:#F6FFED;color:#52C41A}
.kpi-trend.down{background:#FFF2F0;color:#FF4D4F}
.kpi-trend.flat{background:#FAFAFA;color:rgba(0,0,0,.45)}
.kpi-card .kpi-sub{font-size:11px;color:rgba(0,0,0,.35);margin-top:2px}

/* ─── 实时动态 ─── */
.live-feed{background:#fff;border-radius:8px;padding:16px;margin-bottom:20px}
.live-feed h4{font-size:14px;font-weight:600;color:rgba(0,0,0,.85);margin-bottom:10px}
.live-item{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #F5F5F5;font-size:13px}
.live-item:last-child{border:none}
.live-item .dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.live-item .dot.green{background:#52C41A}
.live-item .dot.blue{background:#00aaff}
.live-item .dot.orange{background:#FA8C16}
.live-item .time{font-size:11px;color:rgba(0,0,0,.35);margin-left:auto;white-space:nowrap}

/* ─── 页面标题 ─── */
.page-title{font-size:18px;font-weight:600;color:rgba(0,0,0,.85);margin-bottom:16px}

/* ─── 筛选栏 ─── */
.filter-bar{display:flex;align-items:center;gap:12px;margin-bottom:16px;background:#fff;border-radius:8px;padding:12px 16px;flex-wrap:wrap}
.filter-group{display:flex;align-items:center;gap:8px}
.filter-group label{font-size:12px;color:rgba(0,0,0,.45);white-space:nowrap}
.filter-group input,.filter-group select{height:32px;border:1px solid #D9D9D9;border-radius:6px;padding:0 11px;font-size:13px;outline:none;min-width:160px;background:#fff;color:rgba(0,0,0,.85)}
.filter-group select{cursor:pointer}
.filter-actions{display:flex;gap:8px;align-items:center}
