:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;color:#202424;background:#f3f5f4;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #202424;--muted: #69716f;--line: #dce1df;--surface: #ffffff;--soft: #f7f8f8;--accent: #117a5b;--accent-dark: #0c5c44;--blue: #1769aa;--amber: #a15b09;--red: #b33a3a;--sidebar: #1e2423;--sidebar-muted: #9ca9a5}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-width:320px}button,input,select,textarea{font:inherit;letter-spacing:0}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}.sidebar{position:sticky;top:0;z-index:30;height:100vh;padding:18px 14px;display:flex;flex-direction:column;color:#f2f5f4;background:var(--sidebar);border-right:1px solid #323a38}.brand{min-height:54px;padding:2px 8px 15px;display:flex;gap:11px;align-items:center;border-bottom:1px solid #353d3b}.brand-icon{width:34px;height:34px;flex:0 0 34px;display:inline-grid;place-items:center;color:#d9fff3;background:var(--accent);border-radius:7px}.brand strong,.brand small{display:block;letter-spacing:0}.brand strong{font-size:14px}.brand small{margin-top:3px;font-size:11px;color:var(--sidebar-muted)}.sidebar nav{display:grid;gap:3px;padding:18px 0}.sidebar nav a{min-height:40px;padding:0 10px;display:grid;grid-template-columns:22px minmax(0,1fr) 14px;align-items:center;gap:8px;border-radius:6px;color:#bdc7c4;font-size:13px;font-weight:550}.sidebar nav a:hover{color:#fff;background:#29312f}.sidebar nav a.active{color:#fff;background:#33413d;box-shadow:inset 3px 0 var(--accent)}.sidebar-footer{margin-top:auto;padding:14px 4px 0;border-top:1px solid #353d3b}.operator{padding:0 4px 12px;display:flex;align-items:center;gap:9px}.operator>span{width:30px;height:30px;display:grid;place-items:center;border:1px solid #59635f;border-radius:50%;font-size:12px}.operator strong,.operator small{display:block}.operator strong{font-size:12px}.operator small{margin-top:2px;color:var(--sidebar-muted);font-size:10px}.sidebar-footer .button{width:100%;justify-content:flex-start;color:#bdc7c4}.nav-scrim{display:none}.workspace{min-width:0}.topbar{position:sticky;top:0;z-index:20;height:60px;padding:0 28px;display:flex;justify-content:space-between;align-items:center;background:#fffffff5;border-bottom:1px solid var(--line)}.topbar>div{display:flex;align-items:center;gap:10px}.topbar>div>span{font-size:13px;font-weight:650}.topbar .icon-button:first-child{display:none}.topbar-actions{display:flex;align-items:center;gap:8px}.service-state{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.service-state i{width:7px;height:7px;border-radius:50%;background:#1d9b71;box-shadow:0 0 0 3px #def2eb}.service-state.bad i{background:var(--red);box-shadow:0 0 0 3px #f6dede}.content{width:min(1480px,100%);margin:0 auto;padding:28px}.page-header{min-height:66px;margin-bottom:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.page-header h1{margin:0;font-size:22px;line-height:1.25;letter-spacing:0}.page-header p{max-width:720px;margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.updated{color:var(--muted);font-size:12px}.button{min-height:36px;padding:0 13px;display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:650;white-space:nowrap}.button:hover:not(:disabled){border-color:#aab4b0;background:var(--soft)}.button:disabled{cursor:not-allowed;opacity:.55}.button-primary{color:#fff;border-color:var(--accent);background:var(--accent)}.button-primary:hover:not(:disabled){border-color:var(--accent-dark);background:var(--accent-dark)}.button-danger{color:#fff;border-color:var(--red);background:var(--red)}.button-ghost{border-color:transparent;background:transparent}.icon-button{width:34px;height:34px;padding:0;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:#5f6966}.icon-button:hover:not(:disabled){color:var(--ink);border-color:var(--line);background:var(--soft)}.icon-button:disabled{opacity:.45;cursor:not-allowed}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric{min-height:126px;padding:18px;display:flex;justify-content:space-between;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.metric span,.metric small{display:block;color:var(--muted);font-size:11px}.metric strong{display:block;margin:12px 0 8px;font-size:25px;line-height:1;letter-spacing:0}.metric>svg{padding:8px;width:38px;height:38px;color:var(--accent);background:#e5f2ed;border-radius:6px}.overview-grid,.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.panel{margin-bottom:16px;border:1px solid var(--line);border-radius:7px;background:var(--surface);overflow:hidden}.panel-header{min-height:65px;padding:14px 17px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line)}.panel-header h2{margin:0;font-size:14px;letter-spacing:0}.panel-header p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.4}.panel-body{min-width:0}.panel:not(:has(.panel-header)) .panel-body{min-height:80px}.toolbar{margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.toolbar>span{color:var(--muted);font-size:12px;white-space:nowrap}.search{width:min(360px,100%);height:38px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.search svg{color:#8b9491}.search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;min-width:760px;border-collapse:collapse}th{height:40px;padding:0 16px;color:var(--muted);background:#fafbfb;border-bottom:1px solid var(--line);text-align:left;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}td{height:62px;padding:9px 16px;border-bottom:1px solid #edf0ef;color:#343a38;font-size:12px;vertical-align:middle}tr:last-child td{border-bottom:0}td strong,td small{display:block}td strong{font-size:12px;font-weight:650}td small{margin-top:4px;color:var(--muted);font-size:10px}.actions-col{width:118px;text-align:right}.row-actions{display:flex;justify-content:flex-end;gap:2px}.entity-link:hover strong{color:var(--accent)}.status{width:fit-content;min-height:24px;padding:0 8px;display:inline-flex;align-items:center;gap:6px;border-radius:99px;font-size:10px;font-weight:700;white-space:nowrap}.status i{width:6px;height:6px;border-radius:50%;background:currentColor}.status-success{color:#126b50;background:#e4f3ed}.status-info{color:#145d91;background:#e6f0f8}.status-warning{color:#8c5209;background:#f8eddc}.status-danger{color:#9b2e2e;background:#f8e3e3}.status-neutral{color:#5d6663;background:#edf0ef}.issue-list,.audit-list{display:grid}.issue-list a{min-height:64px;padding:12px 16px;display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:8px;border-bottom:1px solid #edf0ef}.issue-list a:last-child{border-bottom:0}.issue-list a:hover{background:var(--soft)}.issue-list svg:first-child{color:var(--amber)}.issue-list strong,.issue-list span{display:block}.issue-list strong{font-size:12px}.issue-list span{margin-top:4px;color:var(--muted);font-size:11px}.audit-list>div{min-height:58px;padding:10px 16px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid #edf0ef}.audit-list>div:last-child{border-bottom:0}.audit-icon{width:30px;height:30px;display:grid;place-items:center;color:var(--blue);background:#e7f0f7;border-radius:6px}.audit-list strong,.audit-list span{display:block}.audit-list strong{font-size:11px}.audit-list span,.audit-list time{margin-top:3px;color:var(--muted);font-size:10px}.audit-list time{white-space:nowrap}.all-clear{min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#376b59;font-size:12px}.all-clear svg{padding:9px;width:42px;height:42px;background:#e4f3ed;border-radius:50%}.empty{min-height:220px;padding:34px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:var(--muted)}.empty svg{color:#89928f}.empty strong{color:#3e4543;font-size:13px}.empty span{max-width:440px;font-size:11px;line-height:1.5}.error-state{min-height:110px;padding:18px;display:flex;align-items:center;gap:12px;border:1px solid #ebc8c8;border-radius:7px;background:#fff7f7}.error-state>svg{color:var(--red)}.error-state div{flex:1}.error-state strong,.error-state span{display:block}.error-state strong{font-size:13px}.error-state span{margin-top:4px;color:#795858;font-size:11px}.skeleton-table{min-height:310px;padding:18px;display:grid;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:7px}.panel .skeleton-table{border:0;border-radius:0}.skeleton-table div{height:42px;background:#edf0ef;border-radius:5px;animation:pulse 1.4s ease-in-out infinite}.skeleton-table div:first-child{width:42%}.skeleton-table div:nth-child(2){width:100%}@keyframes pulse{50%{opacity:.48}}.modal-backdrop{position:fixed;inset:0;z-index:80;padding:24px;display:grid;place-items:center;background:#151b1994}.modal{width:min(680px,100%);max-height:calc(100vh - 48px);overflow:auto;border:1px solid #cbd2cf;border-radius:8px;background:var(--surface);box-shadow:0 18px 60px #1218163d}.modal-header{min-height:58px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-header h2{margin:0;font-size:15px}.form-grid{padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.modal-form{padding:18px;display:grid;gap:14px}.field{min-width:0;display:grid;gap:6px;color:#404744;font-size:11px;font-weight:650}.field small{color:var(--muted);font-size:10px;font-weight:400;line-height:1.4}.field input,.field select,.field textarea,.settings-form input,.settings-form textarea{width:100%;min-height:38px;padding:8px 10px;border:1px solid #cfd6d3;border-radius:5px;background:#fff;color:var(--ink);outline:0;font-size:12px}.field textarea,.settings-form textarea{resize:vertical;line-height:1.45}.field input:focus,.field select:focus,.field textarea:focus,.settings-form input:focus,.settings-form textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #e1f0eb}.field:has(.full-input){grid-column:1 / -1}.full{grid-column:1 / -1}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.inline-error{padding:10px 12px;color:#8f2929;background:#faeaea;border-radius:5px;font-size:11px}.warning-box{padding:11px;display:flex;gap:9px;color:#764809;background:#f8eddc;border-radius:5px;font-size:11px;line-height:1.5}.back-link{margin:-4px 0 15px;padding:0;display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);font-size:11px}.back-link:hover{color:var(--accent)}.detail-list{margin:0;padding:8px 16px}.detail-list>div{min-height:46px;display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;border-bottom:1px solid #edf0ef}.detail-list>div:last-child{border:0}.detail-list dt{color:var(--muted);font-size:11px}.detail-list dd{margin:0;font-size:12px;font-weight:650}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-all}.subscription-list{display:grid}.subscription-list>div{min-height:76px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #edf0ef}.subscription-list>div:last-child{border:0}.subscription-list>div>div{min-width:0}.subscription-list strong,.subscription-list code{display:block}.subscription-list strong{margin-bottom:7px;font-size:11px}.subscription-list code{max-width:760px;overflow:hidden;color:#53605c;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.principles{padding:12px 16px;display:grid;gap:11px}.principles p{margin:0;display:flex;align-items:center;gap:8px;color:#4f5956;font-size:11px}.principles svg{color:var(--accent)}.settings-form{padding:17px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-form .field:has(textarea),.toggle-row,.form-footer{grid-column:1 / -1}.toggle-row{min-height:44px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}.toggle-row label,.protocol-checks label{display:inline-flex;align-items:center;gap:7px;color:#4b5351;font-size:11px}.toggle-row input,.protocol-checks input{accent-color:var(--accent)}.form-footer{display:flex;justify-content:flex-end}.usage-list>div{padding:16px;border-bottom:1px solid #edf0ef}.usage-list>div:last-child{border:0}.usage-main{display:flex;justify-content:space-between;gap:18px}.usage-main>div:last-child{text-align:right}.usage-main strong,.usage-main span{display:block}.usage-main strong{font-size:12px}.usage-main span{margin-top:4px;color:var(--muted);font-size:10px}.progress{height:6px;margin-top:12px;overflow:hidden;background:#edf0ef;border-radius:99px}.progress span{display:block;height:100%;background:var(--accent)}.progress span.warning{background:#c78324}.progress span.danger{background:var(--red)}.protocol-checks{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.protocol-checks>span{width:100%;color:#404744;font-size:11px;font-weight:650}.health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.health-grid>div{min-height:76px;padding:13px 16px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;border-right:1px solid #edf0ef;border-bottom:1px solid #edf0ef}.health-grid>div:nth-child(2n){border-right:0}.health-icon{width:36px;height:36px;display:grid;place-items:center;color:var(--blue);background:#e7f0f7;border-radius:6px}.health-grid strong,.health-grid span{display:block}.health-grid strong{font-size:11px}.health-grid span{margin-top:3px;color:var(--muted);font-size:9px;overflow-wrap:anywhere}.security-note{min-height:88px;padding:16px;display:flex;align-items:center;gap:12px}.security-note>svg{padding:9px;width:40px;height:40px;color:var(--accent);background:#e4f3ed;border-radius:6px}.security-note strong,.security-note span{display:block}.security-note strong{font-size:12px}.security-note span{margin-top:5px;color:var(--muted);font-size:11px}.binding-add{display:flex;align-items:center;gap:8px}.binding-add select{min-width:180px;height:36px;padding:0 9px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font-size:11px}.binding-list{display:grid}.binding-list article{min-height:86px;padding:13px 16px;display:grid;grid-template-columns:minmax(160px,1fr) auto auto;align-items:center;gap:14px;border-bottom:1px solid #edf0ef}.binding-list article:last-child{border-bottom:0}.binding-list article strong,.binding-list article span,.binding-list article small{display:block}.binding-list article strong{font-size:12px}.binding-list article span,.binding-list article small{margin-top:4px;color:var(--muted);font-size:10px}.binding-list article>small{grid-column:1 / -1;margin-top:-6px}.binding-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.panel-error{margin:12px 16px 16px}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#edf1ef}.login-panel{width:min(420px,100%);padding:28px;border:1px solid #d0d7d4;border-radius:8px;background:#fff;box-shadow:0 14px 42px #1a211f1a}.product-mark{display:flex;align-items:center;gap:9px;color:var(--accent-dark);font-size:12px;font-weight:750}.login-copy{margin:30px 0 22px}.login-copy h1{margin:0;font-size:23px;letter-spacing:0}.login-copy p{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.login-panel form{display:grid;gap:14px}.login-panel form .button{width:100%;margin-top:2px}.demo-note{margin:18px 0 0;color:var(--muted);text-align:center;font-size:10px}.boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;color:var(--muted);font-size:12px}@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:22px}.health-grid{grid-template-columns:1fr}.health-grid>div{border-right:0}}@media(max-width:820px){.app-shell{display:block}.sidebar{position:fixed;left:0;transform:translate(-102%);width:250px;transition:transform .2s ease;box-shadow:12px 0 38px #0c121033}.sidebar-open{transform:translate(0)}.nav-scrim{position:fixed;inset:0;z-index:25;display:block;border:0;background:#0f151373}.topbar{padding:0 16px}.topbar .icon-button:first-child{display:inline-grid}.content{padding:18px 16px 28px}.overview-grid,.detail-grid,.form-grid,.settings-form{grid-template-columns:1fr}.settings-form .field:has(textarea),.toggle-row,.form-footer{grid-column:auto}.table-wrap{overflow:visible}table.responsive-table{min-width:0;display:block;background:var(--soft)}.responsive-table thead{display:none}.responsive-table tbody{padding:10px;display:grid;gap:10px}.responsive-table tr{padding:6px 13px;display:grid;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.responsive-table td{min-width:0;height:auto;min-height:43px;padding:9px 0;display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;gap:12px;border-bottom:1px solid #edf0ef;overflow-wrap:anywhere}.responsive-table td:before{color:var(--muted);font-size:10px;font-weight:650}.responsive-table td>:where(a,div,span,strong,small){grid-column:2}.responsive-table td>small{margin-top:-7px}.responsive-table td:last-child{border-bottom:0}.responsive-table .row-actions{justify-content:flex-start}.upstreams-table td:nth-child(1):before{content:"供应商"}.upstreams-table td:nth-child(2):before{content:"地区与出口"}.upstreams-table td:nth-child(3):before{content:"状态"}.upstreams-table td:nth-child(4):before{content:"最近测试"}.upstreams-table td:nth-child(5):before,.customers-table td:nth-child(6):before,.nodes-table td:nth-child(6):before,.plans-table td:nth-child(6):before{content:"操作"}.customers-table td:nth-child(1):before{content:"客户"}.customers-table td:nth-child(2):before{content:"固定住宅出口"}.customers-table td:nth-child(3):before{content:"线路状态"}.customers-table td:nth-child(4):before{content:"配额"}.customers-table td:nth-child(5):before{content:"到期时间"}.nodes-table td:nth-child(1):before{content:"节点"}.nodes-table td:nth-child(2):before{content:"协议与用途"}.nodes-table td:nth-child(3):before{content:"地区"}.nodes-table td:nth-child(4):before{content:"健康状态"}.nodes-table td:nth-child(5):before{content:"最近测试"}.plans-table td:nth-child(1):before{content:"套餐"}.plans-table td:nth-child(2):before{content:"月流量"}.plans-table td:nth-child(3):before{content:"最大并发"}.plans-table td:nth-child(4):before{content:"协议权限"}.plans-table td:nth-child(5):before{content:"状态"}.vps-table td:nth-child(1):before{content:"VPS"}.vps-table td:nth-child(2):before{content:"连接方式"}.vps-table td:nth-child(3):before{content:"桥接地址"}.vps-table td:nth-child(4):before{content:"状态"}.vps-table td:nth-child(5):before{content:"线路"}.vps-table td:nth-child(6):before{content:"操作"}.binding-list article{grid-template-columns:minmax(0,1fr) auto}.binding-actions{grid-column:1 / -1;justify-content:flex-start}}@media(max-width:560px){.page-header{min-height:auto;flex-direction:column;gap:14px}.page-header h1{font-size:20px}.page-actions{width:100%}.page-actions .button{flex:1}.metric-grid{grid-template-columns:1fr 1fr;gap:8px}.metric{min-height:112px;padding:14px}.metric strong{font-size:20px}.metric>svg{display:none}.toolbar{align-items:stretch;flex-direction:column}.toolbar>span{align-self:flex-end}.search{width:100%}.panel-header{align-items:flex-start;flex-direction:column}.panel-header>.button{width:100%}.modal-backdrop{padding:0;place-items:end center}.modal{width:100%;max-height:92vh;border-radius:8px 8px 0 0}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.subscription-list>div{align-items:stretch;flex-direction:column}.subscription-list .button{align-self:flex-end}.subscription-list code{white-space:normal;overflow-wrap:anywhere}.detail-list>div{grid-template-columns:108px minmax(0,1fr)}.usage-main{flex-direction:column;gap:8px}.usage-main>div:last-child{text-align:left}.audit-list>div{grid-template-columns:32px minmax(0,1fr)}.audit-list time{grid-column:2;margin-top:-5px}.health-grid>div{grid-template-columns:36px minmax(0,1fr)}.health-grid .status{grid-column:2}.service-state{display:none}.responsive-table tbody{padding:8px}.responsive-table td{grid-template-columns:96px minmax(0,1fr)}.binding-add{width:100%;align-items:stretch;flex-direction:column}.binding-add select{width:100%}.binding-list article{grid-template-columns:1fr;align-items:start}.binding-list article>.status,.binding-actions,.binding-list article>small{grid-column:1}.binding-actions .button{width:100%}}
