:root{font-family:Microsoft YaHei,PingFang SC,Noto Sans SC,sans-serif;color:#1f2a37;background:#eef2f7;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-page,.module-select-page{min-height:100vh;padding:48px;background:radial-gradient(circle at top left,rgba(41,98,255,.18),transparent 32%),linear-gradient(135deg,#f8fbff,#e7edf6)}.login-card{width:min(920px,100%);min-height:520px;margin:40px auto;padding:56px;display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;background:#ffffffe6;border:1px solid rgba(148,163,184,.3);border-radius:28px;box-shadow:0 24px 80px #0f172a24}.eyebrow{margin:0 0 8px;color:#2f63d7;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}h1,h2{margin:0}.login-card h1,.simple-header h1{font-size:clamp(36px,6vw,62px);color:#0f172a}.login-subtitle{max-width:420px;color:#64748b;font-size:18px;line-height:1.8}.select-subtitle{max-width:680px;margin:16px 0 0;color:#64748b;font-size:17px;line-height:1.8}.login-form,.form-grid,.filter-row{display:grid;gap:18px}label{display:grid;gap:8px;color:#475569;font-size:14px;font-weight:700}input,select,textarea{width:100%;padding:0 13px;border:1px solid #cbd5e1;border-radius:10px;outline:none;background:#fff;color:#0f172a}input,select{height:42px}textarea{min-height:120px;padding-top:12px;resize:vertical;line-height:1.7}input:focus,select:focus,textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.primary-btn,.secondary-btn,.plain-btn{min-height:40px;padding:0 18px;border-radius:10px;border:0;font-weight:800}.primary-btn{color:#fff;background:linear-gradient(135deg,#1e40af,#2563eb);box-shadow:0 12px 28px #2563eb47}.secondary-btn{color:#1e40af;background:#dbeafe}.plain-btn{color:#475569;background:#f1f5f9}.primary-btn:disabled,.link-btn:disabled{opacity:.55;cursor:not-allowed}.error-text{margin:0;color:#dc2626}.simple-header,.topbar,.section-title{display:flex;justify-content:space-between;gap:20px;align-items:center}.section-hint{max-width:760px;margin:8px 0 0;color:#64748b;line-height:1.7}.notice-card,.module-card,.page-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 16px 42px #0f172a14}.notice-card{margin:28px 0;padding:22px;display:flex;justify-content:space-between;gap:24px;align-items:center}.notice-card p{margin:8px 0 0;color:#64748b}.module-grid{margin-top:32px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.module-card{min-height:260px;padding:30px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}.module-card:after{content:"";position:absolute;right:-36px;top:-36px;width:130px;height:130px;border-radius:999px;background:#2563eb1a}.module-card:hover{transform:translateY(-4px);box-shadow:0 22px 58px #0f172a24}.module-card-top{display:flex;justify-content:space-between;gap:16px;align-items:center}.module-card-top span{color:#2563eb;font-size:13px;font-weight:800}.module-card-top strong{padding:6px 10px;border-radius:999px;color:#1e40af;background:#dbeafe;font-size:12px}.module-card h2{margin-top:26px;font-size:clamp(30px,4vw,44px);color:#0f172a}.module-card p,.empty-hint{color:#64748b;line-height:1.7}.module-enter-btn{width:100%;min-height:44px;margin-top:24px;border:0;border-radius:12px;color:#fff;background:#152238;font-weight:900}.module-card:hover .module-enter-btn{background:linear-gradient(135deg,#1e40af,#2563eb)}.app-shell{min-height:100vh;display:grid;grid-template-columns:248px 1fr;background:#eef2f7}.sidebar{padding:22px;background:#152238;color:#fff}.brand{display:flex;gap:12px;align-items:center;padding-bottom:22px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#f8fafc;color:#1e40af;font-weight:900}.brand small{display:block;margin-top:4px;color:#a8b3c7}nav{display:grid;gap:8px;margin-top:22px}.menu-item{width:100%;padding:12px 14px;text-align:left;color:#d6deea;background:transparent;border:0;border-radius:10px;font-weight:700}.menu-item.active,.menu-item:hover{color:#fff;background:#60a5fa38}.workspace{padding:24px;overflow:auto}.topbar{margin-bottom:20px;padding:18px 22px;background:#fff;border-radius:18px;border:1px solid #e2e8f0}.top-actions{display:flex;gap:12px;align-items:center}.user-pill{padding:9px 13px;border-radius:999px;background:#eff6ff;color:#1e40af;font-weight:800}.switch-module-btn{min-height:40px;padding:0 18px;border:0;border-radius:10px;color:#fff;background:#152238;font-weight:900}.toast{margin:0 0 16px;padding:12px 14px;border-radius:12px;color:#92400e;background:#fffbeb;border:1px solid #fde68a}.page-card{padding:24px}.metric-grid{margin-top:22px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric-card{padding:20px;border-radius:16px;background:linear-gradient(135deg,#f8fafc,#eaf2ff);border:1px solid #dbeafe}.metric-card span{color:#64748b;font-weight:700}.metric-card strong{display:block;margin-top:12px;color:#0f172a;font-size:30px}.info-strip{margin-top:20px;padding:16px;display:grid;gap:8px;color:#475569;border-radius:14px;background:#f8fafc}.form-grid{margin-top:22px;grid-template-columns:1fr 180px 1.4fr auto;align-items:end}.user-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.role-form-grid{grid-template-columns:1fr 1fr 1.4fr auto}.user-form-grid .form-action,.role-form-grid .form-action{align-self:end}.check-panel{display:flex;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}.check-panel>span{width:100%;color:#475569;font-size:14px;font-weight:800}.check-item{display:inline-flex;width:auto;grid-template-columns:auto auto;gap:6px;align-items:center;padding:6px 9px;border-radius:999px;background:#fff}.check-item input{width:auto;height:auto}.wide{grid-column:span 2}.filter-row{margin-top:22px;grid-template-columns:280px auto auto 1fr;align-items:end}.user-filter-row{grid-template-columns:repeat(4,minmax(0,1fr)) auto auto}.compact-filter-row{margin-top:0;grid-template-columns:1fr auto}.tab-row{margin-top:18px;display:flex;flex-wrap:wrap;gap:10px}.tab-row button{min-height:38px;padding:0 18px;border:1px solid #cbd5e1;border-radius:999px;color:#475569;background:#fff;font-weight:900}.tab-row button.active{color:#fff;border-color:#2563eb;background:#2563eb;box-shadow:0 10px 24px #2563eb38}.table-wrap{margin-top:18px;overflow-x:auto;border:1px solid #e2e8f0;border-radius:14px}.pager-row{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;align-items:center}.pager-row span{padding:8px 10px;color:#475569;font-size:13px;font-weight:800}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:13px 14px;border-bottom:1px solid #e2e8f0;text-align:left;white-space:nowrap}th{color:#475569;background:#f8fafc;font-size:13px}.status-badge{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800}.status-badge.ok{color:#047857;background:#d1fae5}.status-badge.muted{color:#64748b;background:#e2e8f0}.link-btn{padding:0 8px;border:0;color:#2563eb;background:transparent;font-weight:800}.link-btn.danger{color:#dc2626}.link-btn.success{color:#047857}.empty-cell{color:#94a3b8;text-align:center}.placeholder-card{min-height:280px;display:grid;align-content:center;justify-items:center;text-align:center}.placeholder-card p:last-child{max-width:520px;color:#64748b;line-height:1.8}.permission-layout{margin-top:22px;display:grid;grid-template-columns:1fr;gap:20px}.role-panel,.function-panel{padding:18px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.role-list{display:grid;gap:10px;margin-top:16px}.role-list-item{padding:14px;display:grid;gap:6px;text-align:left;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.role-list-item.active{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.role-list-item span{color:#64748b;font-size:13px}.role-list-item em{justify-self:start;margin-right:10px;color:#2563eb;font-style:normal;font-weight:800}.mini-title h2{font-size:20px}.function-grid{margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.function-card{padding:14px;display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.function-card input{width:auto;height:auto;margin-top:4px}.function-card strong,.function-card small{display:block}.function-card small{margin-top:4px;color:#64748b}.category-layout{margin-top:22px;display:grid;grid-template-columns:1fr;gap:20px}.category-tree-panel,.category-editor-panel{padding:18px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.tree-header{display:flex;justify-content:space-between;gap:14px;align-items:center}.category-tree-list{display:grid;gap:8px;margin-top:16px}.category-tree-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.category-tree-row.active{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.tree-name-btn{padding:11px 0;display:flex;justify-content:space-between;gap:12px;border:0;background:transparent;color:#0f172a;text-align:left;font-weight:800}.tree-name-btn small{color:#94a3b8;font-weight:700}.category-form-grid{grid-template-columns:1fr 1fr 140px auto}.kb-form-grid{grid-template-columns:1fr 260px 1.4fr auto}.kb-filter-row{grid-template-columns:repeat(4,minmax(0,1fr)) auto auto}.capacity-strip{margin-top:20px;padding:16px;display:flex;flex-wrap:wrap;gap:12px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#f8fafc)}.capacity-strip span{padding:8px 12px;border-radius:999px;color:#475569;background:#fff;font-size:13px;font-weight:800}.capacity-strip strong{color:#1e40af}.library-form-grid{grid-template-columns:220px 260px 1fr 1fr}.library-form-grid .form-action{justify-self:end}.library-form-grid small{color:#64748b;font-weight:500}.library-filter-row{grid-template-columns:1.2fr 220px 260px 180px auto auto}.material-filter-row{grid-template-columns:repeat(3,minmax(0,1fr)) auto auto}.material-upload-grid{grid-template-columns:1fr 1fr 1.5fr auto}.material-upload-grid small{color:#64748b;font-weight:500}.material-form-grid{grid-template-columns:1fr 1.5fr auto auto}.operation-log-filter-row{grid-template-columns:1.2fr 220px 220px 1fr auto auto}.log-request-cell{max-width:360px;overflow:hidden;color:#64748b;font-size:12px;text-overflow:ellipsis}.section-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;padding:28px;display:grid;place-items:center;background:#0f172a7a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-card{width:min(980px,100%);max-height:calc(100vh - 56px);overflow:auto;padding:24px;border:1px solid rgba(226,232,240,.9);border-radius:22px;background:#fff;box-shadow:0 28px 80px #0f172a47}.modal-head,.modal-actions{display:flex;justify-content:space-between;gap:16px;align-items:center}.modal-actions{justify-content:flex-end;margin-top:18px}.user-modal-card,.role-modal-card,.category-modal-card,.kb-modal-card,.material-modal-card{width:min(860px,100%)}.role-function-modal-card,.library-modal-card{width:min(1040px,100%)}.modal-form-grid{margin-top:18px}.role-form-grid.modal-form-grid{grid-template-columns:1fr 1fr}.category-form-grid.modal-form-grid{grid-template-columns:1fr 1fr 140px}.kb-form-grid.modal-form-grid{grid-template-columns:1fr 260px}.library-form-grid.modal-form-grid,.material-upload-grid.modal-form-grid{grid-template-columns:1fr 1fr}.material-form-grid.modal-form-grid{grid-template-columns:1fr 1.5fr}.modal-function-grid{max-height:58vh;overflow:auto}.job-modal-card{width:min(1120px,100%)}.job-form-grid{margin-top:18px;grid-template-columns:1fr 1.4fr 120px 120px}.job-rich-label{margin-top:16px}.rich-toolbar{margin-top:8px;padding:8px;display:flex;flex-wrap:wrap;gap:8px;border:1px solid #cbd5e1;border-bottom:0;border-radius:12px 12px 0 0;background:#f8fafc}.rich-toolbar button{min-height:32px;padding:0 10px;border:1px solid #dbeafe;border-radius:8px;color:#1e40af;background:#eff6ff;font-size:12px;font-weight:900}.rich-toolbar button:hover{border-color:#93c5fd;background:#dbeafe}.rich-editor{min-height:320px;padding:14px;border:1px solid #cbd5e1;border-radius:0 0 12px 12px;background:#fff;color:#0f172a;line-height:1.8;outline:none;overflow:auto}.rich-editor:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.rich-editor:empty:before{color:#94a3b8;content:attr(data-placeholder)}.rich-editor img,.rich-content img{max-width:100%;height:auto;border-radius:12px}.rich-editor blockquote,.rich-content blockquote{margin:12px 0;padding:10px 14px;border-left:4px solid #2563eb;border-radius:10px;background:#eff6ff;color:#1e3a8a}.hidden-input{display:none}.job-attachment-grid{grid-template-columns:1fr auto auto}.job-layout{margin-top:20px;display:grid;grid-template-columns:420px 1fr;gap:20px}.job-list-panel,.job-detail-panel{padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.job-list-panel{display:grid;gap:12px;align-content:start}.job-list-item{padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.job-title-btn{width:100%;display:flex;justify-content:space-between;gap:10px;border:0;background:transparent;color:#0f172a;text-align:left}.job-title-btn strong,.job-title-btn small{display:block}.job-title-btn i,.view-count-inline{margin-left:8px;padding:3px 7px;border-radius:999px;color:#64748b;background:#f1f5f9;font-size:12px;font-style:normal;font-weight:900;white-space:nowrap}.job-title-btn small{margin-top:6px;color:#64748b;line-height:1.5}.job-title-btn em,.job-tag-group span{align-self:start;padding:5px 8px;border-radius:999px;color:#1e40af;background:#dbeafe;font-size:12px;font-style:normal;font-weight:900}.job-meta-row,.job-action-row{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}.job-meta-row span{color:#64748b;font-size:12px;font-weight:700}.job-detail-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.job-detail-head p:last-child{color:#64748b;line-height:1.7}.job-tag-group{display:flex;gap:8px}.rich-content{margin-top:18px;padding:18px;border-radius:14px;background:#fff;color:#1f2a37;line-height:1.9}.job-attachments{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.job-attachments strong{width:100%;color:#0f172a}.attachment-chip{min-height:34px;padding:0 12px;border:1px solid #bfdbfe;border-radius:999px;color:#1e40af;background:#eff6ff;font-weight:800}.link-title-btn{padding:0;border:0;color:#1e40af;background:transparent;font-weight:900;text-align:left}.summary-cell{min-width:260px;max-width:460px;color:#475569;line-height:1.7;white-space:normal}.status-badge.danger-badge{color:#b91c1c;background:#fee2e2}.error-inline{display:block;max-width:420px;margin-top:6px;color:#b91c1c;font-size:12px;white-space:normal}.qa-page-card{min-height:calc(100vh - 140px)}.qa-layout{margin-top:22px;display:grid;grid-template-columns:340px 1fr;gap:20px}.qa-config-panel,.qa-chat-panel{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}.qa-config-panel{padding:18px}.qa-config-panel h3{margin:0;color:#0f172a}.qa-config-panel p,.qa-file-field small{color:#64748b;line-height:1.7}.qa-kb-list{display:grid;gap:10px;margin:16px 0 18px}.qa-kb-item{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.qa-kb-item input{width:auto;height:auto;margin-top:4px}.qa-kb-item strong,.qa-kb-item small{display:block}.qa-kb-item small{margin-top:4px;color:#64748b;font-weight:600}.qa-chat-panel{padding:16px;display:grid;grid-template-rows:minmax(360px,1fr) auto;gap:16px}.qa-dialog-window{min-height:360px;max-height:620px;overflow:auto;display:grid;gap:14px;align-content:start;padding:4px}.qa-message-card{padding:16px;border:1px solid #dbeafe;border-radius:16px;background:#fff}.qa-question,.qa-answer{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}.qa-answer{margin-top:14px}.qa-question span,.qa-answer span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#152238;font-weight:900}.qa-answer span{background:#2563eb}.qa-question p,.qa-answer p{margin:0;color:#1f2a37;line-height:1.8;white-space:pre-wrap}.qa-meta-row{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}.qa-meta-row span{padding:5px 9px;border-radius:999px;color:#475569;background:#f1f5f9;font-size:12px;font-weight:800}.qa-citation-box{margin-top:14px;padding:12px;border-radius:12px;background:#eff6ff}.qa-citation-box strong{color:#1e40af}.qa-citation-box ul{margin:8px 0 0;padding-left:20px;color:#475569;line-height:1.7}.qa-citation-box p,.qa-empty-state p{margin:8px 0 0;color:#64748b;line-height:1.7}.qa-empty-state{min-height:320px;display:grid;align-content:center;justify-items:center;text-align:center;color:#0f172a}.qa-input-panel{display:grid;grid-template-columns:1fr 140px;gap:12px;align-items:end}.subtle-line{display:block;margin-top:5px;color:#64748b;font-size:12px}.mono-cell{max-width:220px;overflow:hidden;color:#475569;font-family:Consolas,Courier New,monospace;text-overflow:ellipsis}@media(max-width:900px){.login-page,.module-select-page{padding:22px}.login-card,.app-shell{grid-template-columns:1fr}.sidebar{position:static}.module-grid,.metric-grid,.form-grid,.filter-row,.permission-layout,.function-grid,.category-layout,.qa-layout,.qa-input-panel,.job-layout{grid-template-columns:1fr}.wide{grid-column:span 1}.topbar,.notice-card,.simple-header{align-items:flex-start;flex-direction:column}.top-actions{width:100%;flex-wrap:wrap}.pager-row{justify-content:flex-start}.section-actions,.modal-head,.modal-actions{width:100%;align-items:stretch;flex-direction:column}.modal-mask{padding:12px}.modal-card{max-height:calc(100vh - 24px);padding:18px}.rich-editor{min-height:260px}}
