/* Knowledge library layout H1.3. Preserve six projects and the original detail frames. */
:root{color-scheme:dark;--kb-gold:#e4c78c;--kb-muted:#a5b4a9;--kb-line:rgba(221,199,149,.19)}
.knowledge-layout{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.65;color:#f3eee2}
.knowledge-layout::before{background:linear-gradient(110deg,rgba(7,18,14,.96),rgba(7,18,14,.92) 55%,rgba(7,18,14,.87)),url('/header-golden-dragon.jpg') center/cover no-repeat}
button,input,a{-webkit-tap-highlight-color:transparent}
.kb-topbar{max-width:1248px;min-height:98px;margin:auto;padding:22px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--kb-line)}
.kb-brand{display:flex;align-items:center;gap:13px;flex:none}
.kb-seal{width:44px;height:44px;display:grid;place-items:center;border:1px solid #c4a365;border-radius:12px;font:700 29px/1 "Songti SC",serif;color:#f0d79c;background:linear-gradient(135deg,#314c3a,#101e17);box-shadow:inset 0 0 15px #d1a6550c}
.kb-brand b{display:block;font:700 20px/1.4 "Songti SC",serif;letter-spacing:3px;color:#f0dfb9}
.kb-brand small{display:block;font-size:12px;letter-spacing:2px;color:#a4ad9e;margin-top:2px}
.kb-topbar nav{display:flex;gap:8px;align-items:center;font-size:14px}
.kb-topbar nav>*{min-height:42px;display:flex;align-items:center;padding:8px 15px;border-radius:8px;color:#b3beb2}
.kb-topbar nav>.top-home{background:#ffffff07;color:#ead09a}
.kb-topbar nav>*:hover{background:#ffffff0b;color:#fff2cf}
.kb-page-shell{max-width:1248px;margin:0 auto;padding:0 40px}
.kb-hero{position:relative;isolation:isolate;overflow:hidden;min-height:330px;margin-top:30px;border:1px solid #c7aa682b;border-radius:20px;background:#101e16;display:flex;align-items:center}
.hero-copy{position:relative;z-index:1;padding:38px 44px;width:65%}
.hero-eyebrow{font-size:11px;letter-spacing:3.1px;color:#ceb782!important;margin:0 0 17px!important;line-height:1.5}
.kb-hero h1{font:500 clamp(32px,3.4vw,48px)/1.3 "Songti SC","STSong","Noto Serif SC",serif;letter-spacing:3px;color:#f7eed9}
.kb-hero h1 em{font-style:normal;color:#e3c58a}
.hero-description{font-size:15px;color:#b7c1b3!important;margin-top:17px!important;line-height:1.8}
.hero-caption{display:flex;align-items:center;gap:10px;margin-top:23px;font-size:12px;letter-spacing:2px;color:#b4a783}
.caption-line{height:1px;width:28px;background:#c6a669}
.hero-art{position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,#101e16 0%,#101e16ee 30%,#101e1660 60%,#101e160c),url('/header-golden-dragon.jpg') right 43%/auto 122% no-repeat;opacity:.8}
.kb-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:20px 0 35px}
.shortcut-label{font-size:13px;color:#93a795;margin-right:5px}
.kb-shortcuts button{font-size:14px;min-height:38px;padding:6px 13px;color:#cfd5c4;background:#ffffff04;border:1px solid #ffffff12;border-radius:7px}
.kb-shortcuts button:hover{border-color:#bda36a88;color:#f2dcaf;background:#c6ab6c0c}
.projects-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.section-kicker{font-size:11px;letter-spacing:2px;color:#9caa98;margin-bottom:5px}
.projects-heading h2{font:500 26px/1.5 "Songti SC","STSong",serif;letter-spacing:1px;color:#f3ead5;display:flex;align-items:center;gap:12px}
.project-count{font:400 13px/1 sans-serif;display:grid;place-items:center;width:25px;height:25px;border:1px solid #9ea88e40;border-radius:50%;color:#c9c6ad}
.project-search{display:flex;align-items:center;gap:10px;border:1px solid #d2c39825;border-radius:9px;padding:0 14px;background:#10201899;width:240px;min-height:43px;color:#91a28c}
.project-search svg{width:17px;height:17px;flex:none}
.project-search input{width:100%;min-width:0;padding:10px 0;border:0;background:transparent;color:#f3ebd5;outline:0;font:inherit;font-size:14px}
.project-search:focus-within{border-color:#c9af70}
.project-search input::placeholder{color:#92a38f}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.project-card{min-width:0;display:flex;flex-direction:column;text-align:left;padding:25px 25px 18px;border:1px solid #e4d3a927;border-radius:14px;background:linear-gradient(130deg,#1a2d23e8,#112018ed);box-shadow:0 8px 28px #0000000c;transition:background .18s,border-color .18s,transform .18s}
.project-card:hover{border-color:#c4a96788;background:linear-gradient(130deg,#243d2ee8,#16271ced);transform:translateY(-3px)}
.project-card:active{transform:translateY(0)}
.project-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-bottom:19px}
.project-icon{display:grid;place-items:center;width:44px;height:44px;color:#e3c78d;border:1px solid #cfb5743d;border-radius:12px;background:#c4a3590b}
.project-icon svg{width:24px;height:24px}
.project-tag{font-size:11px;letter-spacing:1px;color:#acb9a6}
.project-card strong{font:600 23px/1.4 "Songti SC","STSong",serif;color:#f2e6c6;letter-spacing:1px}
.project-description{display:block;font-size:14px;line-height:1.9;color:#a8b6a5;margin:10px 0 23px;min-height:50px}
.project-card-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;width:100%;padding-top:14px;border-top:1px solid #dfca9620;margin-top:auto;font-size:11px;color:#8e9e89}
.project-enter{color:#d9c18f;font-size:12px}
.project-empty{padding:35px 15px;text-align:center;color:var(--kb-muted);border:1px dashed var(--kb-line);border-radius:12px}
.knowledge-layout .entry-status{max-width:none;margin:22px 0 0;padding:11px 0;color:#8fa08b;font-size:12px;line-height:1.9;text-shadow:none;border-top:1px solid var(--kb-line)}
.kb-site-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 28px;font-size:11px;letter-spacing:.6px;color:#81917e}
.kb-site-footer span:first-child{color:#adad91}
.project-breadcrumb{display:flex;align-items:center;gap:12px;margin:25px 0 16px;color:#c5cbb9;font-size:14px}
.project-breadcrumb button{padding:5px 0;color:#d9be84}
.project-breadcrumb>span[aria-hidden]{color:#60745f}
.project-selected .entry-status{margin:0 0 20px;border-top:0;padding:0;font-size:12px}
.knowledge-layout .approved-project-branches{margin:0;padding:0 0 32px;grid-template-columns:minmax(0,400px)}
.knowledge-layout .source-dialog{width:min(760px,100%);max-height:100dvh;padding:18px}
.knowledge-layout .source-dialog .approved-directory-frame{width:100%;max-height:calc(100dvh - 36px)}
.knowledge-layout .source-dialog .club-frame-body{font-size:16px;line-height:1.9;padding:22px;white-space:normal}
.knowledge-layout .source-dialog .kb-doc{white-space:normal}
.knowledge-layout .source-dialog .club-frame-head{min-height:94px}
.knowledge-layout .source-dialog .club-frame-signature{height:70px;min-height:70px}
.knowledge-layout .source-dialog .kb-meta{font-size:12px;line-height:1.8;padding:12px;background:#ffffff05;border:1px solid #ffffff0b;border-radius:7px;color:#b7bea9}
@media(min-width:1100px){.kb-hero{min-height:345px}.hero-copy{padding:40px 48px}.hero-description{font-size:16px}}
@media(max-width:900px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kb-topbar{padding:20px 28px}.kb-page-shell{padding:0 28px}.hero-copy{padding:32px;width:70%}.kb-hero{min-height:300px}.hero-art{background-position:center,right center;background-size:auto,auto 115%}}
@media(max-width:600px){.kb-topbar{min-height:83px;padding:17px 20px;gap:10px}.kb-seal{width:37px;height:40px;font-size:25px;border-radius:9px}.kb-brand{gap:10px}.kb-brand b{font-size:17px;letter-spacing:2px}.kb-brand small{font-size:10px;letter-spacing:1.5px}.kb-topbar nav{gap:2px;font-size:12px}.kb-topbar nav>*{padding:7px 9px;min-height:38px}.kb-page-shell{padding:0 20px}.kb-hero{margin-top:20px;min-height:288px;border-radius:14px}.hero-copy{padding:28px 24px;width:100%}.hero-eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:18px!important}.kb-hero h1{font-size:34px;letter-spacing:2px}.hero-description{font-size:14px;max-width:215px;margin-top:13px!important}.hero-caption{font-size:10px;margin-top:20px;letter-spacing:1px}.hero-art{background:linear-gradient(90deg,#101e16ed,#101e16c9 30%,#101e1655 70%,#101e1640),url('/header-golden-dragon.jpg') 62% center/auto 110% no-repeat;opacity:.75}.kb-shortcuts{gap:8px;margin:16px 0 30px}.shortcut-label{flex-basis:100%;font-size:11px;margin:0 0 1px}.kb-shortcuts button{font-size:14px;padding:6px 10px;min-height:34px}.projects-heading{align-items:flex-end;gap:12px;margin-bottom:15px}.section-kicker{font-size:10px;letter-spacing:1.5px}.projects-heading h2{font-size:23px;gap:8px}.project-count{width:23px;height:23px;font-size:11px}.project-search{width:138px;min-height:38px;padding:0 10px;gap:7px}.project-search input{font-size:14px;padding:8px 0}.project-search svg{width:14px;height:14px}.project-grid{grid-template-columns:1fr;gap:12px}.project-card{padding:20px 20px 15px;border-radius:12px}.project-card-top{margin-bottom:12px}.project-icon{width:39px;height:39px;border-radius:10px}.project-icon svg{width:22px;height:22px}.project-tag{font-size:11px}.project-card strong{font-size:22px}.project-description{margin:8px 0 15px;min-height:0;font-size:14px}.project-card-bottom{padding-top:12px}.kb-site-footer{align-items:flex-start;flex-direction:column;gap:5px;font-size:10px;padding:12px 0 24px}.knowledge-layout .entry-status{font-size:11px;margin-top:19px}.knowledge-layout .approved-project-branches{padding-bottom:16px}.knowledge-layout .source-dialog{padding:10px}.knowledge-layout .source-dialog .approved-directory-frame{max-height:calc(100dvh - 20px)}.knowledge-layout .source-dialog .club-frame-body{padding:18px}.project-selected .entry-status{margin:0 0 18px}}
@media(max-width:350px){.kb-page-shell{padding:0 14px}.kb-topbar{padding:15px 14px}.kb-topbar nav>*{padding:7px}.kb-brand small{letter-spacing:1px}.hero-copy{padding:25px 20px}.kb-hero h1{font-size:31px}.projects-heading h2{font-size:21px}.project-search{width:125px}}
@media(prefers-reduced-motion:reduce){.project-card{transition:none}.project-card:hover{transform:none}}
