:root{--csl-topbar-height: 80px;--csl-logo-left: 60px;--csl-logo-top: 24px;--csl-logo-width: 96px;--csl-topbar-bg: rgba(255, 255, 255, .75);--csl-topbar-shadow: 0 1px 8px rgba(0, 0, 0, .08);--text-primary: rgba(22, 47, 74, .9);--text-secondary: rgba(22, 47, 74, .6);--text-tertiary: rgba(22, 47, 74, .4);--text-accent-primary: rgba(15, 63, 102, .9);--text-accent-secondary: rgba(15, 63, 102, .6);--text-accent-tertiary: rgba(15, 63, 102, .4);--text-inverse-primary: rgba(255, 255, 255, .9);--text-inverse-secondary: rgba(255, 255, 255, .6);--text-inverse-tertiary: rgba(255, 255, 255, .4);--text-success-primary: rgba(25, 135, 84, .9);--text-warning-primary: rgba(138, 90, 20, .9);--text-info-primary: rgba(11, 118, 183, .9)}html,body,#app{min-height:100%}html,body{-ms-overflow-style:none;scrollbar-width:none}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}#app{min-height:100vh}#app>div{min-height:100vh;display:flex;flex-direction:column}.site-logo{position:fixed;top:var(--csl-logo-top);left:var(--csl-logo-left);width:var(--csl-logo-width);height:auto;object-fit:contain;z-index:30}.site-header.scrolled,.profile-page .site-header,.wiki-page .site-header.scrolled{left:0;top:0;width:100%;height:var(--csl-topbar-height);border-radius:0;background:var(--csl-topbar-bg);box-shadow:var(--csl-topbar-shadow);z-index:20}.profile-page .site-header,.wiki-page .site-header{position:fixed}.site-header-user{position:absolute;right:24px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:30px;opacity:0;pointer-events:none;transition:opacity .2s ease}.site-header.scrolled .site-header-user{opacity:1;pointer-events:auto}.site-header-inner{max-width:1260px;height:100%;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:24px}.header-center{flex:1;display:flex;align-items:center;justify-content:flex-start;max-width:none;margin-left:0;padding-left:0;height:100%}.header-right{display:flex;align-items:center;gap:10px}.header-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 10px #0000001f}.header-avatar-btn{padding:0;border:none;background:transparent;border-radius:50%;cursor:pointer}.header-name{font-size:14px;color:var(--text-secondary)}.avatar-trigger{width:46px;height:46px;border:2px solid rgba(255,255,255,.9);border-radius:50%;padding:0;background:#fff;box-shadow:0 2px 10px #0000001f;overflow:hidden;cursor:pointer;transition:transform .2s ease}.avatar-trigger img{width:100%;height:100%;object-fit:cover}.avatar-trigger:hover{transform:scale(1.14)}.avatar-pop{position:absolute;right:0;top:calc(100% + 8px);min-width:144px;background:#fff;border-radius:10px;box-shadow:0 8px 24px #00000024;padding:10px 12px;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.avatar-pop:before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}.avatar-trigger:hover+.avatar-pop,.site-header-user:hover .avatar-pop,.site-header-user.is-popover-open .avatar-pop,.avatar-pop:hover,.avatar-trigger:focus+.avatar-pop,.avatar-trigger:focus-visible+.avatar-pop,.avatar-pop:focus-within{opacity:1;transform:translateY(0);pointer-events:auto}.avatar-pop p{font-size:13px;color:var(--text-secondary);margin-bottom:8px}.avatar-preview{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a121cb8;display:grid;place-items:center;padding:24px;z-index:120}.avatar-preview-image{display:block;width:min(88vw,720px);max-height:min(88vh,720px);object-fit:contain;border-radius:8px;background:#fff;box-shadow:0 18px 40px #0000004d}.avatar-preview-close{position:absolute;top:18px;right:18px;width:40px;height:40px;padding:0;border-radius:8px;background:#ffffff1f;color:var(--text-inverse-primary);font-size:28px;line-height:1}.wiki-page{min-height:100vh;display:flex;flex-direction:column}.site-footer{width:100%;background:#172230;color:var(--text-inverse-secondary);padding:44px 24px 20px;margin-top:auto}.site-footer-inner{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:20px}.footer-top{min-height:10px;display:flex;gap:48px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.footer-column{min-width:180px}.footer-bottom{min-height:0}.footer-title{font-size:1rem;font-weight:700;color:var(--text-inverse-primary);margin-bottom:10px}.site-footer h2,.site-footer p{margin:0}.footer-links{display:flex;gap:14px;flex-wrap:wrap;margin:0}.footer-links a{color:var(--text-inverse-primary);text-decoration:none}.footer-links a:hover{text-decoration:underline}.footer-brand-link{color:var(--text-inverse-primary);text-decoration:none}.footer-brand-link:hover{text-decoration:underline}.footer-divider{width:100%;height:1px;background:#ffffff59}.footer-meta+.footer-meta{margin-top:6px}.footer-meta{color:var(--text-inverse-tertiary);font-size:.82rem}@media(max-width:768px){:root{--csl-topbar-height: 60px;--csl-logo-left: 14px;--csl-logo-top: 13px;--csl-logo-width: 72px}.site-header-inner{padding:0 12px;gap:12px}.site-header-user{right:12px;gap:8px}.avatar-trigger,.header-avatar{width:36px;height:36px}.header-name{max-width:86px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.footer-top{gap:20px}.footer-column{min-width:0;width:100%}}.edit-page .site-header.has-center-slot .site-header-inner{width:min(calc(var(--wiki-sidebar-width, 280px) + var(--wiki-layout-gap, 28px) + var(--wiki-main-width, 860px)),calc(100vw - 96px));max-width:none;padding:0;display:grid;grid-template-columns:var(--wiki-sidebar-width, 280px) minmax(0,var(--wiki-main-width, 860px));column-gap:var(--wiki-layout-gap, 28px);justify-content:center;position:relative}.edit-page .site-header.has-center-slot .header-center{grid-column:2;min-width:0;width:100%;justify-content:stretch}.edit-page .site-header.has-center-slot .site-header-user{position:fixed;right:24px;top:40px;transform:translateY(-50%);opacity:1;pointer-events:auto}@media(max-width:980px){.edit-page .site-header.has-center-slot .site-header-inner{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;padding:0 12px 0 calc(var(--csl-logo-left) + var(--csl-logo-width) + 12px);column-gap:0}.edit-page .site-header.has-center-slot .header-center{grid-column:auto;min-width:0}.edit-page .site-header.has-center-slot .site-header-user{grid-column:auto;position:static;transform:none;justify-self:end}}@media(max-width:560px){.edit-page .site-header.has-center-slot{height:auto;min-height:96px}.edit-page .site-header.has-center-slot .site-header-inner{min-height:96px;grid-template-columns:1fr auto;grid-template-rows:38px minmax(42px,auto);align-content:center;row-gap:4px;padding:6px 10px}.edit-page .site-header.has-center-slot .header-center{grid-column:1 / -1;grid-row:2;width:100%}.edit-page .site-header.has-center-slot .site-header-user{grid-column:2;grid-row:1;align-self:center}.edit-page .site-header.has-center-slot+.container,.edit-page .container{margin-top:116px}}.avatar-action,.avatar-logout{display:inline-block;width:100%;text-align:center;font-size:13px;font-weight:700;border-radius:8px;padding:7px 10px;box-sizing:border-box}.avatar-action{text-decoration:none;color:var(--text-inverse-primary);background:#0b76b7}.avatar-logout{margin-top:8px;border:1px solid #d9e4f2;background:#fff;color:var(--text-secondary);cursor:pointer}.avatar-logout[hidden]{display:none!important}.header-btn{border:1px solid #d8e4ef;background:#fff;color:var(--text-secondary);border-radius:8px;padding:8px 12px;font-size:14px;cursor:pointer}.primary-btn{margin-top:4px;border:none;border-radius:8px;padding:12px 16px;font-size:1rem;font-weight:700;color:var(--text-inverse-primary);background:linear-gradient(135deg,#0b76b7,#095e92);cursor:pointer}.primary-btn:hover{filter:brightness(1.04)}.secondary-btn{border:1px solid #cfe0ef;border-radius:8px;padding:11px 14px;font-size:.95rem;font-weight:600;color:var(--text-accent-primary);background:#fff;cursor:pointer}.action-btn{border:1px solid #cfe0ef;background:#fff;color:var(--text-accent-primary);border-radius:8px;padding:8px 12px;font-size:13px;cursor:pointer;text-decoration:none}.secondary-btn:disabled,.primary-btn:disabled,.action-btn:disabled{opacity:.6;cursor:not-allowed}.create-entry-btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;border:1px solid #b8d5ee;background:#fff;color:var(--text-accent-primary);text-decoration:none;font-size:14px;font-weight:600;line-height:1;white-space:nowrap}.create-entry-btn:hover{background:#edf6ff}.cover-upload-box{width:100%;min-height:84px;border:1px dashed #a8c4dd;background:#f8fbff;color:var(--text-accent-primary);border-radius:10px}.cover-upload-box:hover{background:#eef6ff}.toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%) translateY(18px);opacity:0;padding:10px 14px;border-radius:10px;background:#102c46f2;color:var(--text-inverse-primary);font-size:14px;transition:opacity .2s ease,transform .2s ease;z-index:40;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%) translateY(0)}.toast.error{background:#8c1e2bf2}.auth-toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%) translateY(18px);opacity:0;background:#0f1d2deb;color:var(--text-inverse-primary);padding:10px 14px;border-radius:10px;font-size:.92rem;pointer-events:none;transition:opacity .2s ease,transform .2s ease}.auth-toast.show{opacity:1;transform:translate(-50%) translateY(0)}.auth-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:grid;place-items:center;z-index:120}.auth-overlay[hidden]{display:none}.auth-modal{width:min(440px,calc(100vw - 24px));background:#fff;border-radius:16px;overflow:hidden;position:relative;box-shadow:0 20px 60px #10274433;transform-origin:center center;will-change:transform;transition:transform .38s cubic-bezier(.22,1,.36,1)}.auth-modal[data-view=login]{transform:translateY(18px)}.auth-modal[data-view=register]{transform:translateY(-10px)}.auth-close{position:absolute;top:10px;right:10px;z-index:2;border:none;width:30px;height:30px;border-radius:50%;cursor:pointer;background:#ffffffe6;font-size:20px;line-height:1}.auth-shell{width:100%;display:block}.auth-card{width:100%;background:#fff}.form-panel{background:#fff;padding:28px 24px}.form-wrap{width:min(360px,100%);margin:0 auto;position:relative}.auth-form{display:none;opacity:0}.auth-form.active{display:grid;gap:14px;opacity:1}.register-step{display:none;gap:14px}.register-step.active{display:grid}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a18296b;display:grid;place-items:center;z-index:80;padding:0}.modal-overlay[hidden]{display:none}.modal-card{width:min(440px,calc(100% - 24px));background:#fff;border:0;border-radius:16px;box-shadow:0 20px 60px #10274433;padding:28px 24px}.modal-title{margin:0 0 8px;font-size:2rem;color:var(--text-accent-primary)}.modal-subtitle{margin:0;color:var(--text-secondary);font-size:.92rem}.modal-form{margin-top:12px;display:grid;gap:14px}.modal-actions{margin-top:4px;display:flex;justify-content:flex-end;gap:10px}.publish-modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a18288c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;z-index:80;animation:modalFadeIn .2s ease}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}.publish-modal[hidden]{display:none}.publish-dialog{width:min(520px,calc(100vw - 32px));background:#fff;border:none;border-radius:16px;padding:28px 28px 24px;display:grid;gap:16px;box-shadow:0 24px 80px #1027442e,0 8px 24px #1027441a;animation:modalSlideIn .25s cubic-bezier(.22,1,.36,1)}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.publish-dialog h2{margin:0;font-size:22px;font-weight:800;line-height:1.2;color:var(--text-accent-primary);letter-spacing:-.01em}.publish-dialog textarea{min-height:96px}.publish-readonly-grid{display:grid;gap:12px}.publish-readonly-grid input[readonly]{background:#f4f8fc;color:var(--text-secondary);cursor:default;border-color:transparent}.cover-preview-section{display:grid;gap:10px}.cover-label{font-size:14px;font-weight:600;color:var(--text-secondary)}.cover-preview-wrapper{position:relative;width:100%;border-radius:12px;overflow:hidden;border:2px dashed #d7e5f4;background:#f8fafc;transition:border-color .2s ease}.cover-preview-wrapper:hover{border-color:#b8d5ee}.cover-preview-img{width:100%;height:180px;object-fit:cover;display:block}.cover-replace-btn{position:absolute;bottom:10px;right:10px;padding:6px 14px;border-radius:999px;background:#fffffff2;color:var(--text-accent-primary);font-size:12px;font-weight:600;border:1px solid #d7e5f4;box-shadow:0 4px 12px #162f4a1f;cursor:pointer;transition:all .15s ease}.cover-replace-btn:hover{background:#fff;box-shadow:0 6px 16px #162f4a29;transform:translateY(-1px)}.cover-remove-btn{position:absolute;bottom:10px;right:100px;padding:6px 14px;border-radius:999px;background:#fffffff2;color:#b45309e6;font-size:12px;font-weight:600;border:1px solid #d7e5f4;box-shadow:0 4px 12px #162f4a1f;cursor:pointer;transition:all .15s ease}.cover-remove-btn:hover{background:#fff;box-shadow:0 6px 16px #162f4a29;transform:translateY(-1px)}.cover-preview-hint{position:absolute;top:10px;left:10px;padding:4px 12px;border-radius:999px;background:#1275b2e6;color:#fff;font-size:11px;font-weight:600;letter-spacing:.02em}.cover-upload-box{width:100%;height:180px;border-radius:12px;border:2px dashed #d7e5f4;background:#f8fafc;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.cover-upload-box:hover{border-color:#2b88c7;background:#edf6ff}.cover-upload-placeholder{display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none}.cover-upload-icon{font-size:36px;line-height:1;color:#b8d5ee;font-weight:300}.cover-upload-text{font-size:14px;color:var(--text-secondary);font-weight:500}.publish-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:8px;border-top:1px solid #f0f4f8}
