body.admin-grid-mode #main{width:100%;max-width:none;padding:0 14px 18px}body.admin-grid-mode #header{padding:10px 0}body.admin-grid-mode .navwrap{width:calc(100% - 28px);max-width:none}body.admin-grid-mode #footer,body.admin-grid-mode #main-nav,body.admin-grid-mode .mobile-toggle,body.admin-grid-mode .account-links{display:none}body.admin-grid-mode .navwrap::after{content:'内容管理 · 本机';font-size:13px;color:#7b7395;margin-left:auto}
#resource-editor{--rg-line:#dce0ee;--rg-muted:#737b96;width:100%;font-size:13px}#resource-editor *{box-sizing:border-box}#resource-editor [hidden]{display:none!important}#resource-editor button{font-size:12px;padding:7px 11px}#resource-editor button:disabled{opacity:.5;cursor:not-allowed}#resource-editor h1,#resource-editor h2,#resource-editor h3{font-family:inherit;font-weight:750;letter-spacing:0}#resource-editor input,#resource-editor textarea,#resource-editor select{font-family:inherit;font-size:12px;color:#303951;border:1px solid #ccd2e6;border-radius:4px;background:#fff;padding:7px 8px;min-width:0;max-width:100%}#resource-editor input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:#dd579a;padding:0;flex-shrink:0}#resource-editor textarea{resize:vertical;line-height:1.6}#resource-editor :is(input,select,textarea):focus{outline:2px solid #efb2d6;outline-offset:1px;border-color:#d15d9e}
.rg-layout{display:grid;grid-template-columns:155px minmax(0,1fr);gap:16px;align-items:start}.rg-sidebar{background:linear-gradient(135deg,#fffaff,#f4f7ff);border:1px solid #ccd0e5;border-radius:5px;padding:12px 9px;display:flex;flex-direction:column;gap:5px;position:sticky;top:10px}.rg-sidebar h2{font-size:14px;margin:0 0 8px;padding:0 6px}.rg-sidebar button{text-align:left;border-color:transparent;background:transparent;box-shadow:none}.rg-sidebar button.active{background:linear-gradient(110deg,#ffe3f3,#f8d3ec);border:1px solid #edafd2;color:#8c396b}.rg-sidebar a{font-size:11px;margin-top:12px;text-align:center}.rg-main{min-width:0}.rg-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 0 10px}.rg-heading h1{font-size:25px;margin:0 0 4px}.rg-heading p{font-size:12px;color:var(--rg-muted);margin:0}.rg-actions{display:flex;gap:8px;flex-shrink:0}.rg-mode{background:#f1f5ff;border:1px solid #d8dfee;border-radius:4px;font-size:11px;color:#66738e;padding:8px 10px;margin-bottom:12px;line-height:1.7}.rg-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:10px}.rg-tools>input{min-width:190px;flex:1;max-width:430px!important}.rg-tools select{width:160px}.rg-tools label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}.rg-batch{display:flex;align-items:center;gap:12px;background:#f8eefa;border:1px solid #dec5e6;border-radius:4px;padding:8px 12px;margin-bottom:8px;flex-wrap:wrap}.rg-batch strong{color:#96537d}.rg-batch span{font-size:11px;color:#79718e}.rg-message{font-size:11px;color:#777c96;min-height:24px;padding-bottom:6px}.rg-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}.rg-workspace.drawer-open{grid-template-columns:minmax(0,1fr) 390px}.rg-table-area{min-width:0}.rg-scroll{width:100%;overflow:auto;border:1px solid #ced4e6;border-radius:4px;background:#fff;max-height:calc(100dvh - 300px);min-height:300px;overscroll-behavior:contain}.rg-table{border-collapse:separate;border-spacing:0;table-layout:fixed;text-align:left}.rg-table th{position:sticky;top:0;z-index:5;background:linear-gradient(110deg,#f1edff,#edf4ff);padding:11px 9px;font-size:12px;line-height:1.5;height:44px;border-right:1px solid #e1e4f0;border-bottom:1px solid #c8cfe3;font-weight:700;color:#3e486c;white-space:nowrap}.rg-table td{border-right:1px solid #e6e9f2;border-bottom:1px solid #e3e7f1;padding:6px 8px;background:#fff;vertical-align:middle;height:74px;overflow-wrap:anywhere}.rg-table tr.is-dirty td{background:#fffbee}.rg-table tr:hover td{background:#f9faff}.rg-table tr.is-dirty:hover td{background:#fff8e1}.rg-table .rg-col-check,.rg-table .rg-col-name{position:sticky;z-index:3;box-shadow:1px 0 0 #cdd2e5}.rg-table .rg-col-check{left:0;text-align:center}.rg-table .rg-col-name{left:44px}.rg-table .rg-col-actions{position:sticky;right:0;z-index:3;box-shadow:-2px 0 3px #c7cde536}.rg-table th.rg-col-check,.rg-table th.rg-col-name,.rg-table th.rg-col-actions{z-index:8}.rg-table td :is(input:not([type=checkbox]),select,textarea){width:100%;background:transparent;border-color:transparent;border-radius:3px;padding:5px}.rg-table td :is(input,select,textarea):hover{border-color:#d4d9e9}.rg-table td :is(input,select,textarea):focus{background:#fff}.rg-table td textarea{font-weight:600;height:49px;min-height:49px;max-height:49px;resize:none;overflow:auto}.rg-table small{font-size:10px;line-height:1.5;color:#868aa0;display:block}.rg-resizer{position:absolute;right:-1px;top:0;height:100%;width:8px;cursor:col-resize;touch-action:none;z-index:10}.rg-resizer:hover,.rg-resizer:focus{background:#b38ed78c}.rg-url{display:flex;align-items:center;gap:4px}.rg-url input{flex:1;min-width:0}.rg-url a{flex-shrink:0;padding:4px 5px;color:#7777af;border:1px solid #dce0ed;border-radius:3px;background:#f1f3ff}.rg-url button{flex-shrink:0;padding:2px 7px!important}.rg-thumb{width:57px;height:57px;display:grid;place-items:center;padding:0!important;border:1px solid #dddfea;background:#f4f4fb;overflow:hidden;font-size:10px!important}.rg-thumb img{width:100%;height:100%;object-fit:cover}.rg-cell-button{width:100%;text-align:left;box-shadow:none!important;background:transparent!important;white-space:normal;line-height:1.7;max-height:56px;overflow:auto;padding:3px!important;border-color:transparent!important;font-weight:400!important}.rg-tags{display:flex;flex-wrap:wrap;gap:3px;align-items:center}.rg-tags span{padding:1px 5px;background:#eee5fc;color:#745c96;border-radius:3px;font-size:10px}.rg-tags span:nth-child(even){background:#dfeeff;color:#5e78a7}.rg-state{font-size:11px;display:block;font-weight:600;color:#6d8a7a}.rg-state::before{content:'●';font-size:9px;margin-right:5px}.rg-state.unsaved{color:#b48731}.rg-state.saving{color:#7774bd}.rg-state.failed,.rg-error{color:#be5d73!important}.rg-row-actions{display:flex;gap:6px}.rg-row-actions button{padding:5px 8px!important;white-space:nowrap}.rg-pagination{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--rg-muted);gap:10px;padding:10px 2px}.rg-pagination button{padding:5px 9px!important}.rg-empty{padding:50px 20px;text-align:center;color:#858ca3;font-size:12px}.rg-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;bottom:0;background:#fffffff0;border:1px solid #d8dbea;border-radius:4px;padding:10px 12px;margin-top:5px;z-index:9;box-shadow:0 -2px 8px #aaa2c116}.rg-bottom>span{font-size:11px;color:#746b8b}.rg-bottom>div{display:flex;gap:8px}
.rg-table .rg-name-state{font-size:10px;color:#ae853b;padding-left:5px}
.rg-drawer{border:1px solid #c5c9e1;border-radius:5px;background:#fff;min-width:0;max-height:calc(100dvh - 180px);display:flex;flex-direction:column;position:sticky;top:10px}.rg-drawer-head{display:flex;align-items:center;justify-content:space-between;background:var(--bar);padding:10px 14px;border-bottom:1px solid #cfd2e6}.rg-drawer-head h2{font-size:17px;margin:0}.rg-drawer-head button{border:0;background:transparent;box-shadow:none;font-size:23px!important;line-height:1;padding:0 4px!important}.rg-drawer-content{padding:15px;overflow:auto;min-height:0;flex:1}.rg-drawer-content label{display:block;font-size:12px;color:#565e7e;margin:13px 0 8px}.rg-drawer-content label :is(input:not([type=checkbox]),select,textarea){width:100%;display:block;margin-top:6px}.rg-drawer-content>small{font-size:10px;color:#8c829c}.rg-readonly{font-size:10px;color:#9795a9;overflow-wrap:anywhere;margin:8px 0}.rg-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.rg-drawer-content label.rg-check,.rg-pop-body label.rg-check{display:flex;gap:7px;align-items:center}.rg-drawer-content details{font-size:12px;margin:14px 0}.rg-drawer-content summary{cursor:pointer;color:#8a739c}.rg-detail-buttons{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.rg-drawer-content h3{font-size:14px;margin:19px 0 8px}.rg-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rg-gallery>div{min-width:0;display:flex;flex-direction:column;gap:4px;font-size:10px;color:#8b829d}.rg-gallery img{width:100%;height:90px;object-fit:cover;border:1px solid #dee0eb;border-radius:4px;background:#f6f5fb}.rg-gallery button{font-size:10px!important;padding:3px 4px!important}.rg-hint{font-size:10px;color:#8d859b;line-height:1.8}.rg-drawer-bottom{padding:10px 13px;border-top:1px solid #dddfea;background:#fffafd;display:flex;gap:8px;flex-wrap:wrap}.rg-drawer-bottom small{width:100%;font-size:10px;color:#8d849b}.rg-upload-state{font-size:10px;margin-top:4px;color:#8a789a;line-height:1.6}
.rg-dialog{width:min(780px,94vw);max-width:94vw;max-height:90dvh;padding:0;background:#fff;border:1px solid #bfc3dc;border-radius:5px;color:#3d4665;box-shadow:5px 7px 0 #8b7d9c30;overflow:auto}.rg-dialog::backdrop{background:#34304870}.rg-pop-head{display:flex;align-items:center;justify-content:space-between;padding:12px 17px;background:var(--bar);position:sticky;top:0;z-index:2;border-bottom:1px solid #c7cce0}.rg-pop-head h2{font-size:18px;margin:0}.rg-pop-head button{font-size:21px!important;padding:0 6px!important;background:transparent;border:0;box-shadow:none}.rg-pop-body{padding:18px;font-size:12px}.rg-pop-body>p{margin-top:0;color:#7a7c95;line-height:1.8}.rg-pop-body>label{display:block;margin:12px 0;color:#626887}.rg-pop-body>label>select,.rg-pop-body>label>input:not([type=checkbox]),.rg-pop-body>input,.rg-pop-body>select{width:100%;display:block;margin:7px 0}.rg-pop-bottom{padding:10px 18px;border-top:1px solid #e0e1ee;display:flex;gap:8px;justify-content:flex-end;position:sticky;bottom:0;background:#fff9fd}.rg-pop-error{color:#bc5972!important;white-space:pre-line;margin:10px 0 0!important}.rg-inline{display:flex;gap:8px;margin:12px 0}.rg-inline input{flex:1}.rg-tag-choices{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0;max-height:260px;overflow:auto}.rg-tag-choices label{display:flex;gap:5px;align-items:center;background:#f5f0fc;border:1px solid #e2d9ee;padding:5px 8px;border-radius:4px}.rg-channel{display:grid;grid-template-columns:120px minmax(130px,1fr) 100px auto;gap:7px;margin-bottom:10px}.rg-column-setting{display:flex!important;align-items:center;gap:8px}.rg-column-setting input[type=number]{width:110px!important;margin-left:auto!important}.rg-dep-list>div{padding:8px;background:#f5f4fb;border:1px solid #e4e2ef;display:flex;align-items:center;gap:8px;margin-bottom:7px}.rg-dep-list button{margin-left:auto}.rg-paste-scroll,.rg-conflict{overflow:auto;max-height:45dvh;margin:14px 0}.rg-paste-scroll table,.rg-conflict table{border-collapse:collapse;font-size:11px;min-width:100%;table-layout:auto}.rg-paste-scroll th,.rg-conflict th{padding:8px;background:#f0effb;border:1px solid #d9ddeb;white-space:nowrap}.rg-paste-scroll td,.rg-conflict td{padding:8px;border:1px solid #e0e2ee;min-width:130px;max-width:280px;white-space:pre-wrap;overflow-wrap:anywhere}.rg-image-preview{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:auto}.rg-image-options{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:1200px){.rg-workspace.drawer-open{grid-template-columns:minmax(0,1fr) 350px}.rg-layout{grid-template-columns:130px minmax(0,1fr);gap:12px}}
@media(max-width:1050px){.rg-workspace.drawer-open{grid-template-columns:minmax(0,1fr)}.rg-drawer{position:fixed;right:8px;top:8px;bottom:8px;width:min(500px,95vw);height:calc(100dvh - 16px);max-height:none;z-index:40;box-shadow:-15px 0 30px #534b7040}.rg-heading{align-items:flex-start}.rg-heading h1{font-size:22px}.rg-heading p{max-width:300px}}
@media(max-width:760px){body.admin-grid-mode #main{padding:0 8px 10px}.rg-layout{grid-template-columns:minmax(0,1fr);gap:10px}.rg-sidebar{position:static;display:flex;flex-direction:row;overflow-x:auto;max-width:100%;padding:6px;align-items:center}.rg-sidebar h2{display:none}.rg-sidebar button,.rg-sidebar a{white-space:nowrap;flex-shrink:0;margin:0;font-size:11px}.rg-heading{flex-wrap:wrap;gap:10px}.rg-heading p{max-width:none;font-size:11px}.rg-actions{width:100%}.rg-tools{gap:7px}.rg-tools>input{max-width:none!important;flex-basis:100%}.rg-tools select{width:calc(50% - 4px)}.rg-tools label{font-size:11px}.rg-scroll{min-height:280px;max-height:62dvh}.rg-bottom{position:static;flex-wrap:wrap;padding:8px}.rg-bottom>div{width:100%;justify-content:flex-end}.rg-table .rg-col-name{left:44px}.rg-channel{grid-template-columns:1fr 1fr}.rg-channel [data-channel=url]{grid-column:1/-1;grid-row:2}.rg-pagination{flex-wrap:wrap}.rg-mode{font-size:10px}.rg-pop-body{padding:13px}.rg-pop-bottom{padding:10px 13px}.rg-pop-head{padding:10px 13px}.rg-pop-head h2{font-size:16px}}
@media(max-width:760px){.rg-row-actions{gap:4px}.rg-row-actions button{font-size:10px!important;padding:5px 6px!important}}
.rg-channel-source{display:flex;flex-direction:column;gap:6px;font-weight:600}.rg-channel-source input{width:100%}

.rg-sidebar .rg-nav-link{margin:0;text-align:left;font-size:12px;padding:9px 10px;border:1px solid transparent;border-radius:4px;font-weight:600;color:inherit;text-decoration:none}.rg-sidebar .rg-nav-link:hover{background:#f4e8fa}.rg-sidebar .rg-nav-link.active{background:linear-gradient(110deg,#ffe3f3,#f8d3ec);border-color:#edafd2;color:#8c396b}
