/* Qixing knowledge workspace — navigation, reading and responsive layout */
:root{--blue:#153a71;--ink:#172b49;--muted:#697a91;--border:#e2e8ef;--bg:#f4f6f9;--gold:#b18a48;--red:#c72c38}
body{background:var(--bg);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
aside{width:258px;background:#102b50;color:#d9e4f2;border:0;padding:27px 16px 20px;box-shadow:8px 0 30px #132b4b0a}
.main-shell{margin-left:258px;width:calc(100% - 258px)}
.brand{padding:0 9px;color:#fff;font-size:19px;letter-spacing:.04em;gap:12px}
.brandmark{width:40px;height:40px;border-radius:12px;background:#f9fafc;color:#c52c3a;box-shadow:none;font-size:25px}
.brand small{color:#98adc7;letter-spacing:1.5px;font-size:9px}
.workspace{margin:30px 0 25px;background:#ffffff0a;border-color:#ffffff18;border-radius:11px;color:#edf3fa;padding:11px}
.workspace-icon{background:#d3af6c;color:#162d4a;border-radius:8px;font-weight:700}.workspace small{color:#9db0c9}.private{color:#bfd0e2;border-color:#ffffff30}
.nav-label{color:#91a6c0;font-size:10px;letter-spacing:1.5px;padding-left:13px}.nav-label span{background:#ffffff12;color:#b8c8d9}
nav button,.view-link{color:#bfcde0;border-radius:9px;margin-bottom:3px;padding:10px 13px;font-size:13px;transition:background .16s,color .16s}
nav button>span,.view-link>span{color:#a5bdd9}nav button b,.view-link b{background:#ffffff0c;color:#bdcde0}
nav button:hover,.view-link:hover{background:#ffffff12;color:#fff}nav button.active,.view-link.active{background:#f5f8fc;color:#163e75;box-shadow:0 4px 14px #071a3526}
nav button.active>span,.view-link.active>span{color:#bd3440}nav button.active b{background:#e9eff7;color:#254b7b}
.sidebar-foot{border-top:1px solid #ffffff18;color:#9eb2c9;margin-top:22px;padding-top:19px}.sidebar-foot small,.sidebar-foot p{color:#819ab7}.green-dot{background:#a4cbb7}
header{height:72px;background:#ffffffd9;border-bottom:1px solid #e3e8ef;padding:0 44px;backdrop-filter:blur(10px)}
.crumb{font-size:12px;color:#7d8ca0}.crumb strong{color:#273e5d;font-weight:650}.header-right{color:#6b7f96}.avatar{background:#e8eef6;color:#173c70;font-weight:700}
main{max-width:1360px;padding:38px 44px 28px}.intro{align-items:flex-end;gap:24px;margin-bottom:27px;padding:0}
.eyebrow{display:flex;align-items:center;gap:9px;color:#a67b38;font-size:10px;font-weight:700;letter-spacing:2.1px;margin-bottom:12px}.eyebrow:before{content:"";width:24px;height:2px;background:#c83b45}
h1{font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:32px;line-height:1.25;font-weight:750;letter-spacing:.04em;color:#142c4b;margin:0 0 10px}.intro p{font-size:13px;color:#6b7c92;line-height:1.8}
.button{border-radius:9px;padding:11px 16px;min-height:41px;font-size:12px;font-weight:650}.button.primary{background:#173e76;box-shadow:0 5px 14px #173e7620}.button.primary:hover{background:#24548d}.button.light{background:#fff;border-color:#dce4ed;color:#4d617a}.button.light:hover{background:#f5f8fc;color:#173e76}
.overview{background:#fff;border:1px solid #e1e7ef;border-radius:14px;box-shadow:0 6px 24px #1d345409;padding:20px 24px;gap:36px;margin-bottom:18px}.overview>div{gap:12px}.metric-icon{background:#edf2f8;color:#45638b;border-radius:10px;padding:10px}.overview strong{font-size:23px;color:#18385f}.overview small{font-size:11px;color:#7b8a9d}.overview .purpose{border-color:#e6ebf1}.purpose span{color:#a48652}.purpose strong{color:#415c7d;font-size:12px}
.module-overview{gap:12px;margin-bottom:22px}.module-overview button{position:relative;background:#fff;border:1px solid #e2e8ef;border-top:3px solid #c7a765;border-radius:12px;padding:17px 18px;min-height:120px;transition:transform .18s,box-shadow .18s,border-color .18s}.module-overview button:hover{transform:translateY(-3px);box-shadow:0 10px 24px #1b365616;border-color:#c9d7e8;border-top-color:#bd3643}.module-overview strong{font-size:14px;color:#193a64}.module-overview small{font-size:12px;color:#72839a;margin:7px 0 12px}.module-overview span{font-size:11px;color:#a37b3d;font-weight:650}
.search-panel{border-radius:13px;border:1px solid #e0e7ef;background:#fff;padding:15px 17px 13px;box-shadow:0 5px 20px #1d345408;margin-bottom:25px}.search-wrap{background:#f6f8fb;border-color:#e8edf3;border-radius:9px;padding:11px 14px}.search-wrap:focus-within{background:#fff;border-color:#8ea8ca;box-shadow:0 0 0 3px #456b9c15}.search-wrap>span{color:#55739a}.search-wrap input{font-size:13px}.filters{gap:8px;margin-top:12px}.filters select{background:#f4f6f9;color:#52657e;border:1px solid #edf1f5;border-radius:7px;padding:7px 9px;font-size:11px}.result-count{color:#75869a}.text-button{color:#6a7e97}
.section-head{margin-bottom:13px}.section-head h2{font-size:13px;color:#536782}.section-head h2:before{height:14px;background:#c23844}.section-head span{font-size:11px;color:#8b99ab}
.knowledge-card{background:#fff;border:1px solid #e1e7ee;border-radius:14px;padding:25px 29px;margin-bottom:14px;box-shadow:0 4px 20px #1f355309;transition:border-color .18s,box-shadow .18s}.knowledge-card:hover{border-color:#cad8e8;box-shadow:0 10px 30px #1f355312}
.card-top{margin-bottom:14px;gap:9px}.card-id{font-size:10px;color:#8394a8;letter-spacing:.08em}.status{border-radius:20px;background:#edf2f7;color:#586c83;font-size:10px;padding:4px 9px}.status.review{background:#fbf1df;color:#95651f}.status.audio{background:#f2edf9;color:#795a9a}.status.approved{background:#e8f4ed;color:#327e5e}
.card-actions{gap:7px}.card-actions button{color:#70839c}.card-actions .edit-button{background:#f0f4fa;color:#31557e;border:1px solid #e1eaf4;border-radius:7px}.basket-button{border-color:#e1e8f1!important;border-radius:7px!important;color:#526e90!important}.basket-button.chosen{color:#327d5e!important}.card-actions .star.on{color:#b18a48}
.card-title{font-size:18px;color:#172f50;line-height:1.55;margin:0 0 13px;gap:12px}.item-number{color:#bc9b61;font-size:12px;min-width:22px;font-weight:700}.card-body{max-width:95ch;font-size:14px;line-height:2.05;color:#354b65;white-space:pre-wrap}.quote-box{background:#f8f5ef;border-left-color:#c7a45f;color:#5b4a35;border-radius:0 8px 8px 0}
.tags{gap:6px;margin-top:17px}.tag{background:#f3f6f9;color:#71849c;border-radius:6px;padding:5px 9px;font-size:10px}.tag:hover{background:#e8eff8;color:#234e7d}
.card-bottom{border-top-color:#edf1f5;margin-top:18px;padding-top:13px}.source-links>span{color:#8899ad}.source-button{color:#4c709a;font-size:11px;line-height:1.7}.copy-button{background:#edf3fa;color:#244f7d;border-radius:7px;font-weight:650}.evidence-line,.usage{color:#8695a8;font-size:11px}
.standard-answer{background:#f5f8fc;color:#476582;border:1px solid #e9eef4;border-radius:8px}.notice{border-radius:10px}.source-card{border-radius:12px;border-color:#e1e7ee;padding:20px}.source-card h3{font-size:14px}.source-card p{font-size:11px}.source-card .file-icon{background:#edf3fa;color:#55779e}
dialog{border-radius:16px;border-color:#dce5ef;box-shadow:0 30px 90px #10264640}dialog::backdrop{background:#10274375}#inlineEditor{border-radius:14px;border-color:#cbd9e9;box-shadow:0 8px 30px #16375b10}
footer{border-color:#e1e7ee;color:#8998aa;font-size:11px}
@media(max-width:1100px){main{padding:30px 28px}header{padding:0 28px}.overview{gap:22px}.intro{align-items:flex-start;flex-direction:column}.intro-actions{justify-content:flex-start}}
@media(max-width:760px){aside{width:258px}.main-shell{margin:0;width:100%}header{height:62px;padding:0 16px}.mobile{color:#234d7f}main{padding:25px 16px}.intro{gap:17px}.intro-actions{gap:7px}.intro-actions .button{padding:10px 11px;font-size:11px}.overview{gap:12px;padding:16px}.overview strong{font-size:20px}.overview small{font-size:10px}.module-overview{gap:8px}.module-overview button{min-height:110px;padding:13px}.module-overview small{font-size:11px}.knowledge-card{padding:19px 17px}.card-top{align-items:flex-start}.card-actions{width:100%;margin-left:0;justify-content:flex-end}.card-title{font-size:16px}.card-body{font-size:14px;line-height:1.95}.card-bottom{align-items:flex-start}.source-links{max-width:72%}.filters select{max-width:100%}h1{font-size:27px}}
@media(max-width:390px){.intro-actions .button{flex:1 1 auto}.overview{gap:8px}.filters select{font-size:10px}.card-actions{justify-content:flex-start;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* 新版长正文：保留全文，分段和小标题帮助定位 */
.card-body{white-space:normal}.card-body p{margin:0 0 16px;white-space:pre-wrap}.card-body p:last-child{margin-bottom:0}.body-subhead{display:block;color:#203e63;font-size:13px;letter-spacing:.02em;margin-bottom:5px;font-weight:700}.status.history{background:#f3efe7;color:#8b744c}
