/* 全站设计变量：浅色工作台与书页式品牌标识。 */
:root{--paper:#fff;--canvas:#f4f7fa;--ink:#182c3d;--muted:#65798a;--line:#e2e9ee;--brand:#137c71;--brand-light:#e6f3ef;--danger:#b73f45;--radius:14px;--shadow:0 12px 40px #2033470d;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #66aea5}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button,input,select,textarea{border:1px solid var(--line);border-radius:8px}input,select,textarea{padding:10px 12px;background:white;color:var(--ink);min-width:0}textarea{resize:vertical;min-height:88px}button{padding:9px 14px;background:white;color:var(--ink);font-weight:600}button:hover{background:#f0f5f7}h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.3;letter-spacing:-.6px;margin-bottom:8px}h2{font-size:18px;line-height:1.5}h3{font-size:15px}p{margin-bottom:12px}.muted{color:var(--muted)}.small{font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;border:1px solid var(--line);border-radius:8px;background:white;font-weight:600;line-height:1.6}.button.primary,button.primary{background:var(--brand);border-color:var(--brand);color:white}.button.primary:hover,button.primary:hover{background:#0d675e}.button.quiet,button.quiet{border-color:transparent;background:transparent;color:var(--muted)}.danger{color:var(--danger)}.button.danger,button.danger{border-color:#efd1d4;background:#fff7f7}.skip-link{position:fixed;left:12px;top:-70px;background:var(--ink);color:white;padding:10px 18px;z-index:100}.skip-link:focus{top:10px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.inline-form{display:inline-flex;margin:0}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.space-between{justify-content:space-between}.stack{display:grid;gap:16px}.field{display:grid;gap:6px;font-weight:600}.field>small{font-weight:400;color:var(--muted)}.field input,.field textarea,.field select{width:100%;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.span-all{grid-column:1/-1}.checkbox{display:flex;align-items:center;gap:8px;font-weight:400}.checkbox input{width:16px;height:16px;accent-color:var(--brand)}
body.drawer-open{overflow:hidden}
/* 顶部保留首页、搜索和设置入口，首页地址由登录状态决定。 */
.site-header{height:76px;background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;gap:32px;position:sticky;top:0;z-index:20}.brand{font-family:"Songti SC","SimSun",serif;font-size:24px;font-weight:700;white-space:nowrap;display:flex;align-items:center;gap:13px;letter-spacing:1px}.brand-mark{width:25px;height:30px;border-radius:4px 8px 4px 4px;background:var(--brand);transform:rotate(-7deg);box-shadow:5px 4px 0 #cae5dd;position:relative;margin-right:4px}.brand-mark:after{content:"";position:absolute;width:12px;height:2px;background:#b3ded4;left:6px;top:10px;box-shadow:0 5px 0 #b3ded4}.header-tabs{display:flex;gap:6px;height:100%;align-items:center}.header-tabs a{padding:9px 14px;color:var(--muted);border-radius:8px;font-weight:600}.header-tabs a.active{background:var(--brand-light);color:var(--brand)}.header-account{margin-left:auto;display:flex;gap:12px;align-items:center}.account-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-menu{display:none;padding:6px 10px;font-size:18px}
/* 主导航布局：侧栏分类保持可读宽度，卡片按可用空间自动排布。 */
.workspace{display:grid;grid-template-columns:224px minmax(0,1fr);max-width:1700px;margin:0 auto}.sidebar{padding:28px 18px 28px 24px;border-right:1px solid var(--line);min-height:calc(100vh - 76px);position:sticky;top:76px;align-self:start;height:calc(100vh - 76px);overflow-y:auto}.sidebar-label{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:700;color:var(--muted);padding:0 13px;margin:0 0 12px}.category-list{display:grid;gap:5px}.category-link{display:flex;align-items:center;gap:10px;min-height:42px;padding:10px 12px;border-radius:8px;color:#4d6477;position:relative}.category-link:hover{background:#eaf0f4}.category-link.active{background:var(--brand-light);color:var(--brand);font-weight:700}.category-link.active:before{content:"";position:absolute;width:3px;height:18px;left:0;border-radius:4px;background:var(--brand)}.category-dot{width:23px;height:23px;flex:none;display:grid;place-items:center;background:#e8eef2;border-radius:6px;font-size:12px;color:#5a7185}.category-link.active .category-dot{background:#cce8df;color:var(--brand)}.sidebar-footer{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;display:grid;gap:8px}.sidebar-footer a,.sidebar-footer button{text-align:left;padding:8px 12px}.sidebar-close{display:none}.main-content{padding:30px 34px 60px;min-width:0}.search-form{display:flex;gap:9px;background:white;padding:7px;border:1px solid var(--line);border-radius:12px;max-width:850px;margin-bottom:30px;box-shadow:0 3px 12px #20334704}.search-form input{flex:1;border:0;background:transparent;padding:7px 11px;width:100%}.search-form button{padding:9px 25px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px}.page-eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--brand);margin-bottom:9px}.page-description{color:var(--muted);max-width:700px;margin:0}.nav-group{margin-bottom:30px}.group-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:15px}.group-heading h2{margin:0;display:flex;align-items:center;gap:10px}.group-count{font-size:12px;font-weight:400;color:var(--muted);background:#e9eef3;padding:1px 8px;border-radius:20px}.more-button{font-size:12px;padding:4px 0;border:0;background:transparent;color:var(--brand)}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(222px,1fr));gap:14px}.link-card{background:white;border:1px solid var(--line);border-radius:var(--radius);min-width:0;position:relative;transition:transform .16s,border-color .16s,box-shadow .16s;overflow:hidden}.link-card:hover{transform:translateY(-2px);border-color:#bddbd4;box-shadow:var(--shadow)}.card-link{display:block;padding:19px;min-height:133px}.card-top{display:flex;gap:11px;align-items:center;margin-bottom:12px}.site-icon{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--brand-light);color:var(--brand);font-size:17px;font-weight:700}.link-card:nth-child(3n+2) .site-icon{background:#e9effb;color:#526aa1}.link-card:nth-child(3n+3) .site-icon{background:#f4eee2;color:#9b793b}.card-title{font-size:14px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.external-mark{margin-left:auto;color:#94a5b2;font-size:14px}.card-description{color:var(--muted);font-size:12px;margin:0;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:40px}.card-controls{border-top:1px solid #edf1f4;padding:7px 10px;display:flex;gap:7px;align-items:center}.card-controls button{padding:3px 7px;font-size:12px;border:0;color:var(--brand)}.card-controls .delete-link{margin-left:auto;color:var(--danger)}.pin-badge{position:absolute;right:12px;top:4px;font-size:10px;color:var(--brand)}.card-copy{position:absolute;right:9px;bottom:7px;background:white;border:0;font-size:11px;color:var(--brand);padding:2px 6px}.link-card:has(.card-copy) .card-link{padding-bottom:30px}.empty-state{text-align:center;border:1px dashed #cfdce4;border-radius:16px;padding:58px 22px;background:#ffffff80}.empty-state .empty-icon{font-size:33px;color:var(--brand);margin-bottom:14px}.empty-state h2{margin-bottom:8px}.bulk-bar{background:var(--brand-light);border:1px solid #c7e0d7;border-radius:10px;padding:12px 15px;display:flex;align-items:center;gap:12px;margin-bottom:22px;flex-wrap:wrap}.edit-hint{color:var(--muted);font-size:12px}.drawer-backdrop{display:none}.public-notice{background:#eaf2f8;color:#476984;padding:12px 16px;border-radius:10px;font-size:13px;margin-bottom:22px}
/* 对话框与消息保留操作上下文，服务端错误不清空输入。 */
dialog{border:1px solid var(--line);border-radius:18px;padding:0;max-width:600px;width:calc(100% - 32px);max-height:90vh;color:var(--ink);box-shadow:0 24px 100px #122d3c35}dialog::backdrop{background:#18324760;backdrop-filter:blur(2px)}.dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0;font-size:19px}.dialog-close{border:0;font-size:23px;padding:0 7px;background:transparent;color:var(--muted)}.dialog-body{padding:24px;max-height:65vh;overflow:auto}.dialog-actions{border-top:1px solid var(--line);padding:16px 24px;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.notice{padding:12px 15px;background:var(--brand-light);color:#176254;border:1px solid #c8e3d8;border-radius:9px;margin-bottom:18px;overflow-wrap:anywhere}.notice.error{background:#fff1f2;border-color:#ebcdd0;color:#963c43}.notice.warning{background:#fff7e8;border-color:#edddbb;color:#856632}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:80;max-width:calc(100% - 32px);padding:12px 20px;border-radius:10px;background:var(--ink);color:white;box-shadow:var(--shadow)}.manage-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.manage-row{border:1px solid var(--line);border-radius:9px;padding:11px 12px;display:flex;align-items:center;gap:8px;min-width:0}.manage-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.manage-row button{font-size:12px;padding:4px 8px;white-space:nowrap}.initialization{max-width:760px;margin:20px auto}.choice-panel{border:1px solid var(--line);border-radius:16px;background:white;padding:24px}.choice-panel h2{margin-bottom:8px}.initialization-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.check-list{display:grid;gap:10px;margin:18px 0}.check-list .checkbox{padding:10px 12px;border:1px solid var(--line);border-radius:8px}.divider{height:1px;background:var(--line);border:0;margin:22px 0}
/* 后台独立分页表格，窄屏表格在容器内横向滚动。 */
.admin-layout{max-width:1450px;margin:0 auto;display:grid;grid-template-columns:205px minmax(0,1fr)}.admin-main{padding:30px 32px;min-width:0}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:0 3px 15px #20334703}.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:20px}.filters .field{font-size:12px;flex:1;min-width:150px}.filters .field input,.filters .field select{min-height:42px}.filters .search-filter{flex:2}.table-wrap{overflow-x:auto;min-height:120px}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{background:#f6f8fa;color:var(--muted);font-size:12px;font-weight:600}td,th{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:middle}td .cell-title{font-weight:600;display:block;max-width:390px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}td .cell-subtitle{display:block;max-width:390px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}.table-actions{display:flex;gap:6px;white-space:nowrap}.table-actions button{font-size:12px;padding:4px 8px}.badge{padding:3px 8px;border-radius:15px;font-size:11px;white-space:nowrap;background:#edf0f3;color:#5f6d7b}.badge.good{background:var(--brand-light);color:var(--brand)}.badge.bad{background:#fae9ec;color:#a84b55}.pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:20px;flex-wrap:wrap}.pagination select{padding:5px 8px}.page-controls{display:flex;align-items:center;gap:10px}.page-controls button{padding:5px 11px;font-size:12px}.settings-width{max-width:780px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.result-item{background:#f5f8fa;padding:15px;border-radius:8px}.result-item strong{display:block;font-size:24px;color:var(--brand)}.code-panel{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8fa;padding:14px;border-radius:8px;font-family:Consolas,monospace;font-size:12px;max-height:280px;overflow:auto}
/* 账号页沿用书页品牌，所有表单在无 JavaScript 时仍可提交。 */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(300px,1fr) minmax(420px,1fr);background:white}.auth-story{background:#e9f2f0;padding:50px 10%;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story:after{content:"";position:absolute;width:260px;height:340px;right:-80px;bottom:90px;border:1px solid #c7ddd7;border-radius:12px;transform:rotate(-18deg);box-shadow:-25px 20px 0 #dfebe7,-50px 40px 0 #d5e5df}.auth-story-content{max-width:400px;position:relative;z-index:1}.auth-story h1{font-size:42px;line-height:1.5;font-weight:650;margin-bottom:20px}.auth-story p{font-size:15px;color:#5a7772;line-height:2}.auth-story-footer{font-size:12px;color:#73938a}.auth-content{display:flex;align-items:center;justify-content:center;padding:48px 30px}.auth-card{width:100%;max-width:370px}.auth-card h1{font-size:27px}.auth-card .stack{margin-top:25px}.auth-footer{text-align:center;margin-top:24px;color:var(--muted);font-size:13px}.text-link{color:var(--brand);text-decoration:underline;text-underline-offset:3px}.auth-card .primary{width:100%;padding:12px}.error-page{min-height:100vh;display:grid;place-items:center;padding:25px}.error-card{max-width:540px;text-align:center}.error-number{font-family:Consolas,monospace;font-size:72px;font-weight:700;color:#bdd3d0;line-height:1;margin-bottom:25px}
/* 移动端抽屉、触屏目标与减少动画偏好。 */
@media(min-width:1500px){.card-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}}
@media(max-width:1000px){.site-header{padding:0 22px;gap:20px}.header-tabs a{padding:8px 10px}.main-content{padding:25px 22px}.workspace{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding-left:14px;padding-right:12px}.account-name{max-width:95px}.auth-story{padding:40px 9%}.auth-story h1{font-size:33px}}
@media(max-width:760px){.site-header{height:64px;padding:0 15px;gap:12px}.brand{font-size:20px;gap:9px}.brand-mark{width:21px;height:25px}.header-tabs{display:none}.header-account{gap:7px;font-size:12px}.header-account .button{padding:6px 10px}.account-name{display:none}.mobile-menu{display:block}.workspace,.admin-layout{display:block}.sidebar{position:fixed;top:0;left:0;width:260px;height:100dvh;min-height:100vh;z-index:50;background:var(--paper);padding:24px 18px;transform:translateX(-100%);transition:transform .2s;box-shadow:var(--shadow)}.drawer-open .sidebar{transform:translateX(0)}.sidebar-close{display:block;margin-left:auto;margin-bottom:18px}.drawer-open .drawer-backdrop{display:block;position:fixed;inset:0;background:#16314466;z-index:40}.main-content,.admin-main{padding:22px 16px 45px}.search-form{margin-bottom:24px}.search-form button{padding:8px 15px}.page-heading{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:23px}h1{font-size:25px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card-link{padding:14px;min-height:145px}.card-top{gap:8px}.site-icon{width:29px;height:29px;font-size:14px;border-radius:9px}.card-title{font-size:13px}.external-mark{display:none}.card-description{font-size:11px}.card-controls{flex-wrap:wrap;padding:6px}.card-controls button{padding:5px 6px}.group-heading h2{font-size:16px}.initialization-grid{grid-template-columns:1fr}.choice-panel,.panel{padding:20px}.form-grid{grid-template-columns:1fr}.auth-shell{display:block;min-height:100vh;background:var(--canvas)}.auth-story{min-height:155px;padding:25px}.auth-story-content,.auth-story-footer{display:none}.auth-story:after{height:160px;width:110px;bottom:-110px;right:45px}.auth-content{padding:32px 24px;background:white;margin:-28px 16px 25px;border:1px solid var(--line);border-radius:16px;position:relative}.auth-card{max-width:420px}.result-grid{grid-template-columns:1fr}.dialog-head{padding:17px 20px}.dialog-body{padding:20px}.dialog-actions{padding:14px 20px}.filters .field{min-width:130px}.pagination{font-size:12px}.table-wrap{margin:0 -8px}.mobile-nav-links{display:grid}}
@media(max-width:370px){.card-grid{grid-template-columns:1fr}.site-header{gap:7px}.header-account{gap:4px}.brand{font-size:18px}.card-link{min-height:125px}}
@media(max-width:760px){.admin-label{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* 两级导航视觉：淡蓝灰底、一级侧栏、标题旁标签与紧凑网站名片。 */
:root{--canvas:#f5f6fc;--ink:#253148;--muted:#78829a;--line:#e7eaf4;--brand:#5965d9;--brand-light:#eef0ff;--radius:12px;--shadow:0 8px 26px #47548c0b}
.site-header{height:66px;gap:24px;padding:0 25px;background:#fffffffa}
.brand{min-width:164px;font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:22px;letter-spacing:.2px;gap:11px}
.brand-mark{width:25px;height:29px;box-shadow:4px 3px 0 #dfe3ff}
.brand-mark:after{background:#d7dcff;box-shadow:0 5px 0 #d7dcff}
.header-home{color:var(--brand);font-weight:600;white-space:nowrap;padding:18px 0;border-bottom:2px solid var(--brand)}
.header-current{color:var(--brand);font-weight:600}
.header-search{margin:0 0 0 auto;padding:4px;box-shadow:none;max-width:440px;width:35%;min-width:240px;border-radius:9px;background:#f7f8fd;gap:4px}
.header-search input{padding:5px 9px;font-size:12px}
.header-search button{padding:6px 17px;font-size:12px}
.navigation-page .header-account{margin-left:0;gap:12px;white-space:nowrap;font-size:12px}
.account-name{max-width:95px}
.navigation-page .header-account .button,.navigation-page .header-account button{padding:6px 9px;font-size:12px}
.account-menu{position:relative;display:inline-flex;align-items:center}.account-trigger{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:96px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 35px #28345d17;padding:6px;z-index:70;opacity:0;visibility:hidden;transform:translateY(-4px);pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s ease}.account-menu:hover .account-dropdown,.account-menu:focus-within .account-dropdown{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.account-dropdown .inline-form{display:block;width:100%}.account-menu-item{width:100%;border:0;background:transparent;text-align:left;color:var(--ink);border-radius:7px;padding:7px 10px!important;font-size:12px!important}.account-menu-item:hover{background:#f2f4ff;color:var(--brand)}
.button.primary:hover,button.primary:hover{background:#4853c3}
.workspace{grid-template-columns:208px minmax(0,1fr);max-width:none}
.sidebar{background:white;top:66px;height:calc(100vh - 66px);min-height:calc(100vh - 66px);padding:25px 14px;display:flex;flex-direction:column}
.sidebar-label{font-size:10px;letter-spacing:1px;color:#939bb1}
.category-list{gap:7px}.category-link{border:1px solid transparent;min-height:43px;font-size:13px;border-radius:8px;padding:9px 12px}
.category-link.active{background:#f9faff;border-color:#dfe3fc}.category-link.active:before{display:none}
.category-link:hover{background:#f5f6fc}.category-dot{background:transparent!important;color:#7f88a1;font-size:16px;width:21px}
.category-link.active .category-dot{color:var(--brand)}
.sidebar-footer{margin-top:auto;padding-top:18px;border-top:1px solid #edf0f7}
.sidebar-footer a,.sidebar-footer button{font-size:12px}.sidebar-footer p{font-size:11px}
.main-content{padding:25px 30px 55px}.page-heading{margin-bottom:27px;gap:14px}.page-heading h1{font-size:23px;letter-spacing:0;margin-bottom:5px}.page-description{font-size:12px}
.page-heading .row{gap:8px}.page-heading button{padding:8px 12px;font-size:12px}
.nav-group{margin-bottom:30px;scroll-margin-top:85px}.group-heading{justify-content:flex-start;gap:17px;min-height:30px;margin-bottom:13px;flex-wrap:wrap}
.group-heading h2{font-size:15px;white-space:nowrap;gap:7px;padding-left:11px;border-left:3px solid var(--brand);line-height:1.5}
.group-count{padding:0;background:transparent;color:#929bb0;font-size:11px;font-weight:400}
.subcategory-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.subcategory-tab{font-size:12px;color:var(--muted);padding:4px 10px;border:1px solid transparent;border-radius:6px;white-space:nowrap}
.subcategory-tab:hover{color:var(--brand);background:white}.subcategory-tab.active{color:var(--brand);background:white;border-color:#e0e4fc;font-weight:600}
.more-button{margin-left:auto;font-size:12px;white-space:nowrap}.group-empty{padding:17px;background:#ffffff9c;border-radius:10px;font-size:12px;margin-top:0}
.card-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:15px}
.link-card{border:1px solid #f0f1f9;box-shadow:0 3px 15px #56618b03}
.link-card:hover{border-color:#d7dcfc;box-shadow:0 8px 23px #5764960c;transform:translateY(-2px)}
.card-link{display:flex;align-items:center;gap:13px;padding:16px;min-height:108px}
.site-icon{width:42px;height:42px;position:relative;border-radius:10px;background:#eef0ff!important;color:var(--brand)!important;overflow:hidden;font-size:19px}
.site-icon-fallback{display:grid;place-items:center;width:100%;height:100%}
.site-logo-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:white;border-radius:9px}
.card-copy-text{display:block;min-width:0;flex:1}.card-title{display:block;font-size:13px;font-weight:650;line-height:1.5}
.card-domain{display:block;font-family:Consolas,"SFMono-Regular",monospace;color:#929ab0;font-size:10px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-description{display:block;min-height:0;font-size:11px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.card-category{display:block;color:var(--brand);font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pin-badge{top:2px;right:8px;font-size:9px}.card-copy{background:#fafbff;font-size:10px;right:8px;bottom:5px}
.link-card:has(.card-copy) .card-link{padding-bottom:25px}.card-controls{padding:6px 8px;gap:4px}.card-controls button{padding:3px 6px;font-size:11px}
.bulk-bar{background:#eff1ff;border-color:#dfe3fc}.empty-state{border-color:#dce1f3;padding:45px 20px}
.admin-layout{max-width:none;grid-template-columns:208px minmax(0,1fr)}.admin-main{padding:28px 30px}.admin-main .page-heading h1{font-size:24px}
.settings-width{max-width:820px}.notice{background:#f0f2ff;border-color:#dce2fb;color:#4553a5}
.url-input-row{display:flex;gap:8px;align-items:stretch}.url-input-row input{flex:1;min-width:0}.url-input-row .metadata-button{flex:none;min-width:68px;font-size:12px;color:var(--brand)}
.metadata-status{font-weight:400;color:var(--muted);line-height:1.6;min-height:1em}
.logo-preview{display:flex;align-items:center;gap:11px;background:#f8f9fd;padding:10px;border:1px dashed #dfe4f1;border-radius:8px;min-height:60px;font-weight:400}
.logo-preview img,.logo-preview>.site-icon-fallback{width:38px;height:38px;flex:none;object-fit:contain;background:white;border-radius:8px;color:var(--brand);font-size:20px}
.logo-preview>span:last-child{min-width:0}.field input[type=number]{font-variant-numeric:tabular-nums}
.category-logo-image{width:100%;height:100%;object-fit:contain;border-radius:6px;background:white}
.category-icon-field{display:flex;align-items:flex-start;gap:14px;background:#f8f9fd;border:1px solid #e6e9f5;border-radius:12px;padding:12px}
.category-icon-preview{width:44px;height:44px;flex:none;border-radius:12px;background:white!important;box-shadow:inset 0 0 0 1px #e7eaf4;color:var(--brand);font-size:22px;overflow:hidden;white-space:nowrap}
.category-icon-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:1;min-width:0}
.category-icon-controls .field{margin:0}.category-icon-controls>small{grid-column:1/-1;line-height:1.6}
/* 公共分类编辑器以真实导航卡片预览连接后台字段与前台显示。 */
.category-editor-dialog{max-width:920px;overflow:hidden}.category-editor-dialog>form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:90vh}.category-editor-dialog .dialog-body{padding:0;max-height:none;min-height:0;overflow:auto}.category-editor-dialog .dialog-actions{background:#fff;position:relative;z-index:2}
.category-editor{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:560px}.category-editor-preview{padding:30px 24px;background:#edf6f3;border-right:1px solid #d6e7e1;position:sticky;top:0;align-self:start;min-height:560px}
.category-editor-kicker{margin:0 0 14px;color:var(--brand);font-size:11px;font-weight:750;letter-spacing:1.8px}.category-preview-card{position:relative;background:#fff;border:1px solid #cfe1db;border-radius:16px;padding:18px;box-shadow:0 14px 30px #18453b12;overflow:hidden}.category-preview-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--brand)}
.category-preview-top{display:flex;align-items:center;gap:12px;min-width:0}.category-preview-icon{width:42px;height:42px;border-radius:11px;background:#dcefe9!important;color:var(--brand);font-size:20px}.category-preview-copy{display:grid;min-width:0}.category-preview-name{font-family:"Songti SC","SimSun",serif;font-size:17px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-preview-level{color:var(--muted);font-size:11px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-preview-description{color:#526b61;font-size:12px;line-height:1.7;margin:15px 0 13px;min-height:41px;overflow-wrap:anywhere}.category-preview-path{display:block;padding:7px 9px;background:#f4f8f7;border-radius:7px;color:#527068;font:10px/1.45 Consolas,"SFMono-Regular",monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-preview-status{display:inline-flex;margin-top:12px}.category-preview-note{color:#648078;font-size:11px;line-height:1.7;margin:15px 2px 0}
.category-editor-fields{padding:28px 30px;display:grid;gap:28px}.category-editor-section{display:grid;gap:16px}.category-editor-section+.category-editor-section{padding-top:26px;border-top:1px solid var(--line)}.category-editor-section-head h3{font-size:15px;margin:0 0 3px}.category-editor-section-head p{color:var(--muted);font-size:12px;margin:0}.category-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 16px}.category-editor-grid textarea{min-height:82px}.category-editor-warning{margin:0;padding:10px 12px;border-radius:8px;background:#fff7e8;border:1px solid #edddbb;color:#856632;font-size:12px}
.category-editor-section .category-icon-field{grid-column:auto;padding:16px;background:#f7faf9;border-color:#dfe9e5}.category-editor-section .category-icon-preview{width:52px;height:52px;border-radius:14px;font-size:24px}.category-editor-seo{border:1px solid var(--line);border-radius:12px;background:#fbfcfd;overflow:hidden}.category-editor-seo summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 17px;cursor:pointer;list-style:none}.category-editor-seo summary::-webkit-details-marker{display:none}.category-editor-seo summary:before{content:"＋";order:3;color:var(--brand);font-size:18px;line-height:1}.category-editor-seo[open] summary:before{content:"−"}.category-editor-seo summary>span:first-of-type{display:grid}.category-editor-seo summary strong{font-size:13px}.category-editor-seo summary small{color:var(--muted);font-size:11px;font-weight:400}.category-editor-optional{font-size:11px;color:var(--muted);background:#eef2f4;border-radius:999px;padding:2px 8px;margin-left:auto}.category-editor-optional.is-filled{color:var(--brand);background:var(--brand-light)}.category-editor-seo-grid{padding:3px 17px 18px;border-top:1px solid var(--line);padding-top:17px}
.manage-line{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.manage-icon{width:24px;height:24px;flex:none}
.manage-name{min-width:0;flex:1}.manage-controls{display:flex;gap:7px;align-items:center;margin-left:auto}
.drag-handle{display:inline-grid;place-items:center;flex:none;width:28px;min-height:28px;border-radius:7px;color:#8b94aa;cursor:grab;user-select:none;touch-action:none}
.drag-handle:hover{background:#eef0ff;color:var(--brand)}.drag-row,.link-card{transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}.dragging{opacity:.55;cursor:grabbing;box-shadow:0 12px 30px #57649624!important}.drag-list{display:grid;gap:7px}.category-drag-list{padding-left:0}.nested-manage-list{margin:7px 0 0 38px;padding-left:12px;border-left:1px dashed #dfe3f4}
.category-manage-row{display:block;padding:8px}.category-manage-row>.manage-line{min-height:38px}
/* 后台完整排序面板沿用个人导航的拖拽手柄和让位动画，保存时明确锁定。 */
.admin-sort-dialog{max-width:720px}.admin-sort-list .drag-row{background:#fff;min-height:64px}.admin-sort-list .cell-title,.admin-sort-list .cell-subtitle{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-sort-list .cell-title{font-size:14px;font-weight:600}.admin-sort-list .cell-subtitle{font-size:11px;color:var(--muted);margin-top:3px}.admin-sort-list.sort-saving{opacity:.65}.admin-sort-list .drag-handle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.admin-sort-list .drag-handle:disabled{cursor:wait}.delete-url{overflow-wrap:anywhere}
.card-drag-handle{width:22px;min-height:22px;font-size:12px}.editing-links .link-card{cursor:default}.editing-links .link-card:hover{transform:none}.editing-links .card-drag-handle{cursor:grab}
@media(min-width:1500px){.card-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}}
@media(max-width:1100px){.site-header{gap:17px;padding:0 20px}.brand{min-width:155px;font-size:20px}.header-search{min-width:210px;max-width:350px}.account-name{display:none}.workspace,.admin-layout{grid-template-columns:185px minmax(0,1fr)}.main-content,.admin-main{padding:24px 22px}.sidebar{padding:23px 10px}.card-grid{gap:12px;grid-template-columns:repeat(auto-fill,minmax(205px,1fr))}.card-link{padding:14px;gap:10px}}
@media(max-width:760px){.site-header{min-height:64px;height:auto;gap:11px;padding:11px 15px;flex-wrap:wrap}.brand{font-size:19px;min-width:0;gap:9px}.brand-mark{width:21px;height:25px}.header-home{font-size:12px;padding:7px 0;border-bottom-width:2px}.navigation-page .header-account{margin-left:auto;gap:6px}.header-account{font-size:12px}.navigation-page .header-account .button,.navigation-page .header-account button{padding:5px 6px}.header-search{order:10;width:100%;max-width:none;min-width:0;margin:0}.header-search input{font-size:12px}.header-search button{padding:6px 18px}.workspace,.admin-layout{display:block}.sidebar{top:0;height:100dvh;min-height:100vh;width:260px;padding:22px 18px}.main-content,.admin-main{padding:22px 16px 42px}.page-heading{gap:12px;margin-bottom:24px}.page-heading h1{font-size:21px}.page-description{font-size:12px}.group-heading{gap:9px 12px}.group-heading h2{font-size:14px}.subcategory-tabs{order:3;flex-basis:100%;gap:5px;padding-left:12px}.subcategory-tab{font-size:11px;padding:4px 9px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.card-link{gap:11px;min-height:102px;padding:13px}.site-icon{width:36px;height:36px;font-size:17px}.card-title{font-size:12px}.card-domain{font-size:9px}.card-description{font-size:10px}.card-category{font-size:9px}.nav-group{margin-bottom:26px}.sidebar-footer{margin-top:28px}.logo-preview{gap:8px}}
@media(max-width:760px){.drawer-open .sidebar{transform:translateX(0)}.drawer-open .drawer-backdrop{display:block;position:fixed;inset:0;background:#16314466;z-index:40}}
@media(max-width:760px){.category-editor-dialog{width:calc(100% - 20px);max-height:94vh}.category-editor-dialog>form{max-height:94vh}.category-editor{display:block;min-height:0}.category-editor-preview{position:static;min-height:0;padding:18px 20px;border-right:0;border-bottom:1px solid #d6e7e1}.category-editor-kicker{margin-bottom:9px}.category-preview-card{padding:14px}.category-preview-description,.category-preview-note{display:none}.category-preview-status{position:absolute;right:13px;bottom:12px;margin:0}.category-preview-path{margin-top:11px;padding-right:62px}.category-editor-fields{padding:22px 20px;gap:22px}.category-editor-section+.category-editor-section{padding-top:21px}.category-editor-grid{grid-template-columns:1fr}.category-editor-seo-grid{padding:16px}.category-editor-dialog .dialog-actions{padding:12px 20px}}
@media(max-width:580px){.card-grid{grid-template-columns:1fr}.card-link{padding:15px 17px;min-height:96px;gap:14px}.site-icon{width:42px;height:42px}.card-title{font-size:14px}.card-description{font-size:12px}.card-domain{font-size:10px}.card-category{font-size:10px}.card-controls{padding:7px 12px}.card-controls button{font-size:12px}.navigation-page .header-home{display:none}}
@media(max-width:580px){.category-icon-field{display:block}.category-icon-preview{margin-bottom:10px}.category-icon-controls{grid-template-columns:1fr}}
@media(max-width:370px){.site-header{gap:7px;padding-left:10px;padding-right:10px}.brand{font-size:17px}.navigation-page .header-account{gap:2px}.mobile-menu{padding:4px 8px}}
