/*
  PaperMod v8+
  License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
  Copyright (c) 2020 nanxiaobei and adityatelange
  Copyright (c) 2021-2025 adityatelange
*/
:root{--gap:24px;--content-gap:20px;--nav-width:1024px;--main-width:720px;--header-height:60px;--footer-height:60px;--radius:8px;--theme:rgb(255, 255, 255);--entry:rgb(255, 255, 255);--primary:rgb(30, 30, 30);--secondary:rgb(108, 108, 108);--tertiary:rgb(214, 214, 214);--content:rgb(31, 31, 31);--code-block-bg:rgb(28, 29, 33);--code-bg:rgb(245, 245, 245);--border:rgb(238, 238, 238)}.dark{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--code-block-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51)}.list{background:var(--code-bg)}.dark.list{background:var(--theme)}*,::after,::before{box-sizing:border-box}html{-webkit-tap-highlight-color:transparent;overflow-y:scroll;-webkit-text-size-adjust:100%;text-size-adjust:100%}a,button,body,h1,h2,h3,h4,h5,h6{color:var(--primary)}body{font-family:-apple-system,BlinkMacSystemFont,segoe ui,Roboto,Oxygen,Ubuntu,Cantarell,open sans,helvetica neue,sans-serif;font-size:18px;line-height:2;word-break:break-word;background:var(--theme)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section,table{display:block}h1,h2,h3,h4,h5,h6{line-height:1}h1,h2,h3,h4,h5,h6,p{margin-top:0;margin-bottom:0}ul{padding:0}a{text-decoration:none}body,figure,ul{margin:0}table{width:100%;border-collapse:collapse;border-spacing:0;overflow-x:auto;word-break:keep-all}button,input,textarea{padding:0;font:inherit;background:0 0;border:0}input,textarea{outline:0}button,input[type=button],input[type=submit]{cursor:pointer}input:-webkit-autofill,textarea:-webkit-autofill{box-shadow:0 0 0 50px var(--theme)inset}img{display:block;max-width:100%}.not-found{position:absolute;left:0;right:0;display:flex;align-items:center;justify-content:center;height:80%;font-size:160px;font-weight:700}.archive-posts{width:100%;font-size:16px}.archive-year{margin-top:40px}.archive-year:not(:last-of-type){border-bottom:2px solid var(--border)}.archive-month{display:flex;align-items:flex-start;padding:10px 0}.archive-month-header{margin:25px 0;width:200px}.archive-month:not(:last-of-type){border-bottom:1px solid var(--border)}.archive-entry{position:relative;padding:5px;margin:10px 0}.archive-entry-title{margin:5px 0;font-weight:400}.archive-count,.archive-meta{color:var(--secondary);font-size:14px}.footer,.top-link{font-size:12px;color:var(--secondary)}.footer{max-width:calc(var(--main-width) + var(--gap) * 2);margin:auto;padding:calc((var(--footer-height) - var(--gap))/2)var(--gap);text-align:center;line-height:24px}.footer span{margin-inline-start:1px;margin-inline-end:1px}.footer span:last-child{white-space:nowrap}.footer a{color:inherit;border-bottom:1px solid var(--secondary)}.footer a:hover{border-bottom:1px solid var(--primary)}.top-link{visibility:hidden;position:fixed;bottom:60px;right:30px;z-index:99;background:var(--tertiary);width:42px;height:42px;padding:12px;border-radius:64px;transition:visibility .5s,opacity .8s linear}.top-link,.top-link svg{filter:drop-shadow(0 0 0 var(--theme))}.footer a:hover,.top-link:hover{color:var(--primary)}.top-link:focus,#theme-toggle:focus{outline:0}.nav{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:calc(var(--nav-width) + var(--gap) * 2);margin-inline-start:auto;margin-inline-end:auto;line-height:var(--header-height)}.nav a{display:block}.logo,#menu{display:flex;margin:auto var(--gap)}.logo{flex-wrap:inherit}.logo a{font-size:24px;font-weight:700}.logo a img,.logo a svg{display:inline;vertical-align:middle;pointer-events:none;transform:translate(0,-10%);border-radius:6px;margin-inline-end:8px}button#theme-toggle{font-size:26px;margin:auto 4px}body.dark #moon{vertical-align:middle;display:none}body:not(.dark) #sun{display:none}#menu{list-style:none;word-break:keep-all;overflow-x:auto;white-space:nowrap}#menu li+li{margin-inline-start:var(--gap)}#menu a{font-size:16px}#menu .active{font-weight:500;border-bottom:2px solid}.lang-switch li,.lang-switch ul,.logo-switches{display:inline-flex;margin:auto 4px}.lang-switch{display:flex;flex-wrap:inherit}.lang-switch a{margin:auto 3px;font-size:16px;font-weight:500}.logo-switches{flex-wrap:inherit}.main{position:relative;min-height:calc(100vh - var(--header-height) - var(--footer-height));max-width:calc(var(--main-width) + var(--gap) * 2);margin:auto;padding:var(--gap)}.page-header h1{font-size:40px}.pagination{display:flex}.pagination a{color:var(--theme);font-size:13px;line-height:36px;background:var(--primary);border-radius:calc(36px/2);padding:0 16px}.pagination .next{margin-inline-start:auto}.social-icons a{display:inline-flex;padding:10px}.social-icons a svg{height:26px;width:26px}code{direction:ltr}div.highlight,pre{position:relative}.copy-code{display:none;position:absolute;top:4px;right:4px;color:rgba(255,255,255,.8);background:rgba(78,78,78,.8);border-radius:var(--radius);padding:0 5px;font-size:14px;user-select:none}div.highlight:hover .copy-code,pre:hover .copy-code{display:block}.first-entry{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:320px;margin:var(--gap)0 calc(var(--gap) * 2)}.first-entry .entry-header{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.first-entry .entry-header h1{font-size:34px;line-height:1}.first-entry .entry-content{margin:14px 0;font-size:16px;-webkit-line-clamp:3}.first-entry .entry-footer{font-size:14px}.home-info .entry-content{-webkit-line-clamp:unset}.post-entry{position:relative;margin-bottom:var(--gap);padding:var(--gap);background:var(--entry);border-radius:var(--radius);transition:transform .1s;border:1px solid var(--border)}.post-entry:active{transform:scale(1)}.tag-entry .entry-cover{display:none}.entry-header h2{font-size:24px;line-height:1}.entry-content{margin:8px 0;color:var(--secondary);font-size:14px;line-height:2;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.entry-footer{color:var(--secondary);font-size:13px}.entry-link{position:absolute;left:0;right:0;top:0;bottom:0}.entry-hint{color:var(--secondary)}.entry-hint-parent{display:flex;justify-content:space-between}.entry-cover{font-size:14px;margin-bottom:var(--gap);text-align:center}.entry-cover img{border-radius:var(--radius);width:100%;height:auto}.entry-cover a{color:var(--secondary);box-shadow:0 1px 0 var(--primary)}.page-header,.post-header{margin:24px auto var(--content-gap)}.post-title{margin-bottom:2px;font-size:40px}.post-description{margin-top:10px;margin-bottom:5px}.post-meta,.breadcrumbs{color:var(--secondary);font-size:14px;display:flex;flex-wrap:wrap;align-items:center}.post-meta .i18n_list li{display:inline-flex;list-style:none;margin:auto 3px;box-shadow:0 1px 0 var(--secondary)}.breadcrumbs a{font-size:16px}.post-content{color:var(--content)}.post-content h3,.post-content h4,.post-content h5,.post-content h6{margin:24px 0 16px}.post-content h1{margin:40px auto 32px;font-size:40px}.post-content h2{margin:32px auto 24px;font-size:32px}.post-content h3{font-size:24px}.post-content h4{font-size:16px}.post-content h5{font-size:14px}.post-content h6{font-size:12px}.post-content a,.toc a:hover{box-shadow:0 1px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.post-content a code{margin:auto 0;border-radius:0;box-shadow:0 -1px 0 var(--primary)inset}.post-content del{text-decoration:line-through}.post-content dl,.post-content ol,.post-content p,.post-content figure,.post-content ul{margin-bottom:var(--content-gap)}.post-content ol,.post-content ul{padding-inline-start:20px}.post-content li{margin-top:5px}.post-content li p{margin-bottom:0}.post-content dl{display:flex;flex-wrap:wrap;margin:0}.post-content dt{width:25%;font-weight:700}.post-content dd{width:75%;margin-inline-start:0;padding-inline-start:10px}.post-content dd~dd,.post-content dt~dt{margin-top:10px}.post-content table{margin-bottom:var(--content-gap)}.post-content table th,.post-content table:not(.highlighttable,.highlight table,.gist .highlight) td{min-width:80px;padding:8px 5px;line-height:2;border-bottom:1px solid var(--border)}.post-content table th{text-align:start}.post-content table:not(.highlighttable) td code:only-child{margin:auto 0}.post-content .highlight table{border-radius:var(--radius)}.post-content .highlight:not(table){margin:10px auto;background:var(--code-block-bg) !important;border-radius:var(--radius);direction:ltr}.post-content li>.highlight{margin-inline-end:0}.post-content ul pre{margin-inline-start:calc(var(--gap) * -2)}.post-content .highlight pre{margin:0}.post-content .highlighttable{table-layout:fixed}.post-content .highlighttable td:first-child{width:40px}.post-content .highlighttable td .linenodiv{padding-inline-end:0 !important}.post-content .highlighttable td .highlight,.post-content .highlighttable td .linenodiv pre{margin-bottom:0}.post-content code{margin:auto 4px;padding:4px 6px;font-size:.8em;line-height:2;background:var(--code-bg);border-radius:2px}.post-content pre code{display:grid;margin:auto 0;padding:10px;color:#d5d5d6;background:var(--code-block-bg) !important;border-radius:var(--radius);overflow-x:auto;word-break:break-all}.post-content blockquote{margin:20px 0;padding:0 14px;border-inline-start:3px solid var(--primary)}.post-content hr{margin:30px 0;height:2px;background:var(--tertiary);border:0}.post-content iframe{max-width:100%}.post-content img{border-radius:4px;margin:1rem 0}.post-content img[src*="#center"]{margin:1rem auto}.post-content figure.align-center{text-align:center}.post-content figure>figcaption{color:var(--primary);font-size:16px;font-weight:700;margin:8px 0 16px}.post-content figure>figcaption>p{color:var(--secondary);font-size:14px;font-weight:400}.toc{margin:0 2px 40px;border:1px solid var(--border);background:var(--code-bg);border-radius:var(--radius);padding:.4em}.dark .toc{background:var(--entry)}.toc details summary{cursor:zoom-in;margin-inline-start:10px;user-select:none}.toc details[open] summary{cursor:zoom-out}.toc .details{display:inline;font-weight:500}.toc .inner{margin:5px 20px 0;padding:0 10px;opacity:.9}.toc li ul{margin-inline-start:var(--gap)}.toc summary:focus{outline:0}.post-footer{margin-top:56px}.post-footer>*{margin-bottom:10px}.post-tags{display:flex;flex-wrap:wrap;gap:10px}.post-tags li{display:inline-block}.post-tags a,.share-buttons,.paginav{border-radius:var(--radius);background:var(--code-bg);border:1px solid var(--border)}.post-tags a{display:block;padding:0 14px;color:var(--secondary);font-size:14px;line-height:34px;background:var(--code-bg)}.post-tags a:hover,.paginav a:hover{background:var(--border)}.share-buttons{padding:10px;display:flex;justify-content:center;overflow-x:auto;gap:10px}.share-buttons li,.share-buttons a{display:inline-flex}.share-buttons a:not(:last-of-type){margin-inline-end:12px}h1:hover .anchor,h2:hover .anchor,h3:hover .anchor,h4:hover .anchor,h5:hover .anchor,h6:hover .anchor{display:inline-flex;color:var(--secondary);margin-inline-start:8px;font-weight:500;user-select:none}.paginav{display:flex;line-height:30px}.paginav a{padding-inline-start:14px;padding-inline-end:14px;border-radius:var(--radius)}.paginav .title{letter-spacing:1px;text-transform:uppercase;font-size:small;color:var(--secondary)}.paginav .prev,.paginav .next{width:50%}.paginav span:hover:not(.title){box-shadow:0 1px}.paginav .next{margin-inline-start:auto;text-align:right}[dir=rtl] .paginav .next{text-align:left}h1>a>svg{display:inline}img.in-text{display:inline;margin:auto}.buttons,.main .profile{display:flex;justify-content:center}.main .profile{align-items:center;min-height:calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));text-align:center}.profile .profile_inner{display:flex;flex-direction:column;align-items:center;gap:10px}.profile img{border-radius:50%}.buttons{flex-wrap:wrap;max-width:400px}.button{background:var(--tertiary);border-radius:var(--radius);margin:8px;padding:6px;transition:transform .1s}.button-inner{padding:0 8px}.button:active{transform:scale(1)}#searchbox input{padding:4px 10px;width:100%;color:var(--primary);font-weight:700;border:2px solid var(--tertiary);border-radius:var(--radius)}#searchbox input:focus{border-color:var(--secondary)}#searchResults li{list-style:none;border-radius:var(--radius);padding:10px;margin:10px 0;position:relative;font-weight:500}#searchResults{margin:10px 0;width:100%}#searchResults li:active{transition:transform .1s;transform:scale(1)}#searchResults a{position:absolute;width:100%;height:100%;top:0;left:0;outline:none}#searchResults .focus{transform:scale(1);border:2px solid var(--tertiary)}.terms-tags li{display:inline-block;margin:10px;font-weight:500}.terms-tags a{display:block;padding:3px 10px;background:var(--tertiary);border-radius:6px;transition:transform .1s}.terms-tags a:active{background:var(--tertiary);transform:scale(1)}.bg{color:#cad3f5;background-color:#24273a}.chroma{color:#cad3f5;background-color:#24273a}.chroma .x{}.chroma .err{color:#ed8796}.chroma .cl{}.chroma .lnlinks{outline:none;text-decoration:none;color:inherit}.chroma .lntd{vertical-align:top;padding:0;margin:0;border:0}.chroma .lntable{border-spacing:0;padding:0;margin:0;border:0}.chroma .hl{background-color:#474733}.chroma .lnt{white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#8087a2}.chroma .ln{white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#8087a2}.chroma .line{display:flex}.chroma .k{color:#c6a0f6}.chroma .kc{color:#f5a97f}.chroma .kd{color:#ed8796}.chroma .kn{color:#8bd5ca}.chroma .kp{color:#c6a0f6}.chroma .kr{color:#c6a0f6}.chroma .kt{color:#ed8796}.chroma .n{}.chroma .na{color:#8aadf4}.chroma .nb{color:#91d7e3}.chroma .bp{color:#91d7e3}.chroma .nc{color:#eed49f}.chroma .no{color:#eed49f}.chroma .nd{color:#8aadf4;font-weight:700}.chroma .ni{color:#8bd5ca}.chroma .ne{color:#f5a97f}.chroma .nf{color:#8aadf4}.chroma .fm{color:#8aadf4}.chroma .nl{color:#91d7e3}.chroma .nn{color:#f5a97f}.chroma .nx{}.chroma .py{color:#f5a97f}.chroma .nt{color:#c6a0f6}.chroma .nv{color:#f4dbd6}.chroma .vc{color:#f4dbd6}.chroma .vg{color:#f4dbd6}.chroma .vi{color:#f4dbd6}.chroma .vm{color:#f4dbd6}.chroma .l{}.chroma .ld{}.chroma .s{color:#a6da95}.chroma .sa{color:#ed8796}.chroma .sb{color:#a6da95}.chroma .sc{color:#a6da95}.chroma .dl{color:#8aadf4}.chroma .sd{color:#6e738d}.chroma .s2{color:#a6da95}.chroma .se{color:#8aadf4}.chroma .sh{color:#6e738d}.chroma .si{color:#a6da95}.chroma .sx{color:#a6da95}.chroma .sr{color:#8bd5ca}.chroma .s1{color:#a6da95}.chroma .ss{color:#a6da95}.chroma .m{color:#f5a97f}.chroma .mb{color:#f5a97f}.chroma .mf{color:#f5a97f}.chroma .mh{color:#f5a97f}.chroma .mi{color:#f5a97f}.chroma .il{color:#f5a97f}.chroma .mo{color:#f5a97f}.chroma .o{color:#91d7e3;font-weight:700}.chroma .ow{color:#91d7e3;font-weight:700}.chroma .p{}.chroma .c{color:#6e738d;font-style:italic}.chroma .ch{color:#6e738d;font-style:italic}.chroma .cm{color:#6e738d;font-style:italic}.chroma .c1{color:#6e738d;font-style:italic}.chroma .cs{color:#6e738d;font-style:italic}.chroma .cp{color:#6e738d;font-style:italic}.chroma .cpf{color:#6e738d;font-weight:700;font-style:italic}.chroma .g{}.chroma .gd{color:#ed8796;background-color:#363a4f}.chroma .ge{font-style:italic}.chroma .gr{color:#ed8796}.chroma .gh{color:#f5a97f;font-weight:700}.chroma .gi{color:#a6da95;background-color:#363a4f}.chroma .go{}.chroma .gp{}.chroma .gs{font-weight:700}.chroma .gu{color:#f5a97f;font-weight:700}.chroma .gt{color:#ed8796}.chroma .gl{text-decoration:underline}.chroma .w{}.chroma{background-color:unset !important}.chroma .hl{display:flex}.chroma .lnt{padding:0 0 0 12px}.highlight pre.chroma code{padding:8px 0}.highlight pre.chroma .line .cl,.chroma .ln{padding:0 10px}.chroma .lntd:last-of-type{width:100%}::-webkit-scrollbar-track{background:0 0}.list:not(.dark)::-webkit-scrollbar-track{background:var(--code-bg)}::-webkit-scrollbar-thumb{background:var(--tertiary);border:5px solid var(--theme);border-radius:var(--radius)}.list:not(.dark)::-webkit-scrollbar-thumb{border:5px solid var(--code-bg)}::-webkit-scrollbar-thumb:hover{background:var(--secondary)}::-webkit-scrollbar:not(.highlighttable,.highlight table,.gist .highlight){background:var(--theme)}.post-content .highlighttable td .highlight pre code::-webkit-scrollbar{display:none}.post-content :not(table) ::-webkit-scrollbar-thumb{border:2px solid var(--code-block-bg);background:#717175}.post-content :not(table) ::-webkit-scrollbar-thumb:hover{background:#a3a3a5}.gist table::-webkit-scrollbar-thumb{border:2px solid #fff;background:#adadad}.gist table::-webkit-scrollbar-thumb:hover{background:#707070}.post-content table::-webkit-scrollbar-thumb{border-width:2px}@media screen and (min-width:768px){::-webkit-scrollbar{width:19px;height:11px}}@media screen and (max-width:768px){:root{--gap:14px}.profile img{transform:scale(.9)}.first-entry{min-height:260px}.archive-month{flex-direction:column}.archive-year{margin-top:20px}.footer{padding:calc((var(--footer-height) - var(--gap) - 10px)/2)var(--gap)}}@media screen and (max-width:900px){.list .top-link{transform:translateY(-5rem)}}@media screen and (max-width:340px){.share-buttons{justify-content:unset}}@media(prefers-reduced-motion){.terms-tags a:active,.button:active,.post-entry:active,.top-link,#searchResults .focus,#searchResults li:active{transform:none}}:root{--font-code:'SF Mono', 'Cascadia Code', 'Fira Code', 'Roboto Mono', 'Courier New', monospace;--font-heading:'PT Sans', 'Roboto', 'Source Serif Pro', 'Georgia', serif;--font-primary:'PT Sans', 'Roboto', 'Noto Sans', 'Arial', sans-serif}body{font-family:var(--font-primary);font-size:clamp(16px,3vw,18px);line-height:2;transition:background-color .3s ease,color .3s ease}h1,.post-title{font-family:var(--font-heading);font-size:clamp(32px,5vw,42px);font-weight:700;line-height:1;margin:2rem 0 1rem;transition:color .3s ease}h2{font-family:var(--font-heading);font-size:clamp(28px,4vw,36px);font-weight:600;line-height:1;margin:.9rem 0 .5rem;margin:1rem 0 .8rem;transition:color .3s ease}h3{font-family:var(--font-heading);font-size:clamp(24px,4vw,28px);font-weight:600;line-height:1;margin:.8rem 0 .4rem;margin:1rem 0 .5rem;transition:color .3s ease}h4,h5,h6{font-family:var(--font-heading);font-size:clamp(18px,3vw,22px);font-weight:600;line-height:1;margin:.9rem 0 .5rem;transition:color .3s ease}html{scroll-behavior:smooth}*,*::before,*::after{transition:background-color .3s ease,color .3s ease,border-color .3s ease}a,button,.copy-code,.highlight{transition:all .3s ease}.table-wrapper{border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.1);margin:2rem 0;overflow-x:auto}table{background:var(--entry);border-collapse:collapse;font-size:14px;font-size:clamp(14px,2vw,16px);transition:background-color .3s ease;width:100%}table th,table td{border-bottom:1px solid var(--border);padding:.8rem 1rem;text-align:left;transition:background-color .3s ease}table th{background:var(--theme);color:var(--primary);font-weight:600}table tr:hover{background:var(--code-bg)}@media(max-width:768px){.table-wrapper{margin:1rem -1rem}table th,table td{padding:.5rem .8rem}}.highlight.hugo-paper-light{background:#fafafa;border-radius:8px;border:1px solid #e1e5e9;box-shadow:0 2px 8px rgba(0,0,0,8%);font-family:var(--font-code);margin:2rem 0;overflow:hidden;position:relative;transition:box-shadow .3s ease}.highlight.hugo-paper-light:hover{box-shadow:0 4px 12px rgba(0,0,0,.1)}.highlight.hugo-paper-light pre{background:#fafafa;border-radius:0;border:none;color:#24292f;font-size:clamp(14px,2vw,16px);font-weight:400;line-height:2;margin:0;overflow-x:auto;padding:1rem 2rem}body:not(.dark) .highlight{background:#fafafa;border-radius:8px;border:1px solid #e1e5e9;box-shadow:0 2px 8px rgba(0,0,0,8%);transition:box-shadow .3s ease}body:not(.dark) .highlight:hover{box-shadow:0 4px 12px rgba(0,0,0,.1)}.copy-code{background:#fff;border-radius:6px;border:1px solid #e1e5e9;color:#586069;cursor:pointer;font-size:.8rem;font-weight:500;padding:.5rem .8rem;position:absolute;right:.8rem;top:.8rem;transition:all .3s ease;z-index:10}.copy-code:hover{background:#fff;border-color:#d0d7de;box-shadow:0 4px 8px rgba(0,0,0,.1);color:#24292f;transform:translateY(-1px)}.copy-code.success{background:#28a745;border-color:#28a745;color:#fff}.copy-code.error{background:#dc3545;border-color:#dc3545;color:#fff}body.dark .copy-code{background:#21262d;border:1px solid #30363d;color:#e6edf3}body.dark .copy-code:hover{background:#21262d;box-shadow:0 4px 8px rgba(0,0,0,.3)}@media(max-width:480px){body{font-size:16px}.copy-code{font-size:12px;padding:.4rem .5rem;right:.5rem;top:.5rem}}a:focus,button:focus,.copy-code:focus{border-radius:4px;outline-offset:2px;outline:2px solid var(--accent)}.highlight .nb,.highlight .nf,.highlight .fm{color:#2563eb;font-weight:600}body.dark .highlight .nb,body.dark .highlight .nf,body.dark .highlight .fm{color:#79c0ff;font-weight:600}.terminal-block{background:#1e1e1e;border-left:4px solid #0f0;border-radius:8px;color:#0f0;font-family:var(--font-code);margin:2rem 0;padding:1rem}.warning-block{background:#fff3cd;border-left:4px solid #ffc107;border-radius:8px;color:#856404;margin:2rem 0;padding:1rem}body.dark .warning-block{background:#2d2a1f;color:#f4d03f}@media(max-width:768px){.highlight{border-radius:8px 8px 0 0;margin:1rem -.5rem}.highlight pre{padding:1rem}h1,.post-title{margin:1rem 0 .8rem}}@media(max-width:480px){.highlight pre{.mermaid {; body:not(.dark) .highlight pre {; font-size: 12px; font-size: 14px; min-height: 250px; padding: 0.875rem; } } .highlight pre { scrollbar-color: #d0d7de #fafafa; scrollbar-width: thin; } .highlight pre::-webkit-scrollbar { height: 8px; } .highlight pre::-webkit-scrollbar-track { background: #fafafa; } .highlight pre::-webkit-scrollbar-thumb { background: #d0d7de; border-radius: 4px; } .highlight pre::-webkit-scrollbar-thumb:hover { background: #bcc3ce; } body.dark .highlight pre { scrollbar-color: #6a737d #21262d; } body.dark .highlight pre::-webkit-scrollbar-track { background: #21262d; } body.dark .highlight pre::-webkit-scrollbar-thumb { background: #6a737d; } .post-content ul, .post-content ol { margin: 1rem 0; padding-left: 1.5rem; } .post-content li { line-height: 1.6; margin: 0.25rem 0; } blockquote { border-left: 4px solid var(--accent); color: var(--secondary); font-style: italic; margin: 1.5rem 0; padding-left: 1.5rem; transition: border-color 0.3s ease, color 0.3s ease; } code:not([class]) { background: var(--code-bg); border-radius: 4px; color: var(--accent); font-family: var(--font-code); font-size: 0.875em; padding: 0.125rem 0.25rem; transition: background-color 0.3s ease, color 0.3s ease; } hr { background: linear-gradient(90deg, transparent, var(--border), transparent); border: none; height: 1px; margin: 2rem 0; } .highlight.hugo-paper-light .c, .highlight.hugo-paper-light .c1, .highlight.hugo-paper-light .cm, .highlight.hugo-paper-light .cp { color: #6a737d; font-style: italic; } .highlight.hugo-paper-light .s, .highlight.hugo-paper-light .s1, .highlight.hugo-paper-light .s2, .highlight.hugo-paper-light .se, .highlight.hugo-paper-light .sa { color: #032f62; } .highlight.hugo-paper-light .k, .highlight.hugo-paper-light .kd, .highlight.hugo-paper-light .kn, .highlight.hugo-paper-light .kt, .highlight.hugo-paper-light .kc { color: #d73a49; font-weight: 600; } .highlight.hugo-paper-light .nf, .highlight.hugo-paper-light .fm, .highlight.hugo-paper-light .nb { color: #6f42c1; font-weight: 500; } .highlight.hugo-paper-light .n, .highlight.hugo-paper-light .nv, .highlight.hugo-paper-light .nc { color: #24292f; } .highlight.hugo-paper-light .m, .highlight.hugo-paper-light .mi, .highlight.hugo-paper-light .mf, .highlight.hugo-paper-light .mo { color: #005cc5; } .highlight.hugo-paper-light .o, .highlight.hugo-paper-light .ow { color: #d73a49; } .highlight.hugo-paper-light .p { color: #24292f; } .highlight.hugo-paper-light .nt { color: #22863a; font-weight: 600; } .highlight.hugo-paper-light .na { color: #6f42c1; } body:not(.dark) .highlight { background: #f8f9fa; border-radius: 8px; border: 1px solid #dee2e6; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } body:not(.dark) .highlight pre { background: #f8f9fa; background: #faf8f4 ; ; border: none; color: #212529; color: #3d3a35 ; ; font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Fira Code', monospace; font-size: 13px; font-size: 14px; line-height: 1.5; line-height: 1.6; margin: 0; overflow-x: auto; padding: 1.25rem 1.5rem; padding: 1rem; } body:not(.dark) .highlight pre code { background: transparent; border: none; color: #212529; color: #3d3a35 ; ; color: #3d3a35 ; ; font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Fira Code', 'Roboto Mono', monospace; padding: 0; } body:not(.dark) .highlight .c, body:not(.dark) .highlight .c1, body:not(.dark) .highlight .cm, body:not(.dark) .highlight .cp, body:not(.dark) .highlight .cs { color: #6c757d; font-style: italic; } body:not(.dark) .highlight .s, body:not(.dark) .highlight .s1, body:not(.dark) .highlight .s2, body:not(.dark) .highlight .se, body:not(.dark) .highlight .sa, body:not(.dark) .highlight .sb, body:not(.dark) .highlight .sc, body:not(.dark) .highlight .sd, body:not(.dark) .highlight .sh, body:not(.dark) .highlight .si, body:not(.dark) .highlight .sx { color: #198754; font-weight: 500; } body:not(.dark) .highlight .k, body:not(.dark) .highlight .kd, body:not(.dark) .highlight .kn, body:not(.dark) .highlight .kt, body:not(.dark) .highlight .kc, body:not(.dark) .highlight .kp, body:not(.dark) .highlight .kr { color: #0d6efd; font-weight: 600; } body:not(.dark) .highlight .nb, body:not(.dark) .highlight .nf, body:not(.dark) .highlight .fm, body:not(.dark) .highlight .nl { color: #0a58ca; font-weight: 600; } body:not(.dark) .highlight .n, body:not(.dark) .highlight .nv, body:not(.dark) .highlight .nc, body:not(.dark) .highlight .nd, body:not(.dark) .highlight .ni, body:not(.dark) .highlight .ne { color: #495057; } body:not(.dark) .highlight .m, body:not(.dark) .highlight .mi, body:not(.dark) .highlight .mf, body:not(.dark) .highlight .mo, body:not(.dark) .highlight .mh { color: #fd7e14; font-weight: 500; } body:not(.dark) .highlight .o, body:not(.dark) .highlight .ow, body:not(.dark) .highlight .p { color: #dc3545; } body:not(.dark) .highlight .nt { color: #20c997; font-weight: 600; } body:not(.dark) .highlight .na, body:not(.dark) .highlight .nx { color: #6f42c1; } body:not(.dark) .highlight .gi, body:not(.dark) .highlight .gd, body:not(.dark) .highlight .go, body:not(.dark) .highlight .gp, body:not(.dark) .highlight .gs, body:not(.dark) .highlight .gu, body:not(.dark) .highlight .gt { color: #6c757d; } body:not(.dark) .copy-code { background: rgba(255, 255, 255, 0.95); border-radius: 6px; border: 1px solid #dee2e6; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); color: #495057; cursor: pointer; font-size: 0.75rem; font-weight: 500; padding: 0.375rem 0.75rem; position: absolute; right: 0.75rem; top: 0.75rem; transition: all 0.2s ease; z-index: 10; } body:not(.dark) .copy-code:hover { background: #ffffff; border-color: #adb5bd; border-color: #d4c4a8 ; ; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); box-shadow: 0 4px 8px rgba(139, 117, 93, 0.2) ; ; color: #212529; color: #3d3a35 ; ; transform: translateY(-1px); } body:not(.dark) .copy-code.success { background: #198754; background: #2e7d32 ; ; border-color: #198754; border-color: #2e7d32; color: white; } body:not(.dark) .copy-code.error { background: #c62828 ; ; background: #dc3545; border-color: #c62828; border-color: #dc3545; color: white; } @media (max-width: 768px) { body:not(.dark) .highlight {; border-left: none; border-radius: 8px; border-right: none; margin: 1rem -0.5rem; } body:not(.dark) .copy-code { font-size: 0.65rem; font-size: 0.7rem; padding: 0.25rem 0.5rem; padding: 0.2rem 0.4rem; right: 0.5rem; top: 0.5rem; } } body:not(.dark) .highlight pre { scrollbar-color: #dee2e6 #f8f9fa; scrollbar-width: thin; } body:not(.dark) .highlight pre::-webkit-scrollbar { background: #f8f9fa; background: #faf8f4 ; ; height: 8px; } body:not(.dark) .highlight pre::-webkit-scrollbar-track { background: #f8f9fa; background: #faf8f4 ; ; border-radius: 4px; } body:not(.dark) .highlight pre::-webkit-scrollbar-thumb { background: #dee2e6; background: #e8e4dc ; ; border-radius: 4px; } body:not(.dark) .highlight pre::-webkit-scrollbar-thumb:hover { background: #adb5bd; background: #d4c4a8 ; ; } body:not(.dark) .highlight pre::selection, body:not(.dark) .highlight pre code::selection { background: rgba(13, 110, 253, 0.2); color: inherit; } body:not(.dark) code:not([class]) { background: #e9ecef; border-radius: 4px; border: 1px solid #dee2e6; color: #495057; font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace; font-size: 0.875em; padding: 0.125rem 0.375rem; } body:not(.dark) .highlight .language-bash::before, body:not(.dark) .highlight .language-shell::before { background: #6c757d; border-radius: 3px; color: white; content: "BASH"; font-size: 0.7rem; font-weight: 600; left: 1rem; padding: 0.125rem 0.375rem; position: absolute; text-transform: uppercase; top: 0.5rem; } body:not(.dark) .highlight[data-lang="yaml"] { border-left: 4px solid #6f42c1; } body:not(.dark) .highlight[data-lang="json"] { border-left: 4px solid #fd7e14; } body:not(.dark) .highlight[data-lang="bash"], body:not(.dark) .highlight[data-lang="shell"] { border-left: 4px solid #198754; } body:not(.dark) .highlight[data-lang="docker"], body:not(.dark) .highlight[data-lang="dockerfile"] { border-left: 4px solid #0d6efd; } body:not(.dark) .highlight .w { color: #495057 ; ; } body:not(.dark) .highlight .err { background: rgba(220, 53, 69, 0.1); color: #dc3545 ; ; } body:not(.dark) .highlight .x { color: #495057 ; ; } body:not(.dark) { background-color: #fefcf8 ; ; color: #2d2a26 ; ; } body:not(.dark) .main, body:not(.dark) .post, body:not(.dark) .entry, body:not(.dark) article { background-color: #fefcf8; } body:not(.dark) .highlight { background: #faf8f4 ; ; border-radius: 8px; border: 1px solid #e8e4dc ; ; box-shadow: 0 2px 8px rgba(139, 117, 93, 0.1) ; ; margin: 1.5rem 0; overflow: hidden; position: relative; } body:not(.dark) .highlight .language-bash::before, body:not(.dark) .highlight .language-shell::before, body:not(.dark) .highlight[data-lang]::before { display: none ; ; } body:not(.dark) .highlight .nb, body:not(.dark) .highlight .nf, body:not(.dark) .highlight .fm { color: #2c5aa0 ; ; font-weight: 600; } body:not(.dark) .highlight .s, body:not(.dark) .highlight .s1, body:not(.dark) .highlight .s2, body:not(.dark) .highlight .se, body:not(.dark) .highlight .sa { color: #2d7d32 ; ; font-weight: 500; } body:not(.dark) .highlight .c, body:not(.dark) .highlight .c1, body:not(.dark) .highlight .cm, body:not(.dark) .highlight .cp { color: #8d7053 ; ; font-style: italic; } body:not(.dark) .highlight .k, body:not(.dark) .highlight .kd, body:not(.dark) .highlight .kn, body:not(.dark) .highlight .kt, body:not(.dark) .highlight .kc { color: #1e4976 ; ; font-weight: 600; } body:not(.dark) .highlight .m, body:not(.dark) .highlight .mi, body:not(.dark) .highlight .mf, body:not(.dark) .highlight .mo { color: #e65100 ; ; font-weight: 500; } body:not(.dark) .highlight .o, body:not(.dark) .highlight .ow, body:not(.dark) .highlight .p { color: #c62828 ; ; } body:not(.dark) .highlight .n, body:not(.dark) .highlight .nv, body:not(.dark) .highlight .nc { color: #4a453e ; ; } body:not(.dark) .highlight .nt { color: #2e7d32 ; ; font-weight: 600; } body:not(.dark) .highlight .na { color: #6a1b9a ; ; } body:not(.dark) .copy-code { background: rgba(254, 252, 248, 0.95) ; ; border-radius: 6px; border: 1px solid #e8e4dc ; ; box-shadow: 0 2px 4px rgba(139, 117, 93, 0.15) ; ; color: #5d4e37 ; ; cursor: pointer; font-size: 0.75rem; font-weight: 500; padding: 0.375rem 0.75rem; position: absolute; right: 0.75rem; top: 0.75rem; transition: all 0.2s ease; z-index: 10; } body:not(.dark) code:not([class]) { background: #f0ede6 ; ; border-radius: 4px; border: 1px solid #e8e4dc ; ; color: #5d4e37 ; ; font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace; font-size: 0.875em; padding: 0.125rem 0.375rem; } body:not(.dark) h1, body:not(.dark) h2, body:not(.dark) h3, body:not(.dark) h4, body:not(.dark) h5, body:not(.dark) h6, body:not(.dark) .post-title { color: #3d3a35 ; ; } body:not(.dark) a { color: #2c5aa0 ; ; } body:not(.dark) a:hover { color: #1e4976 ; ; } body:not(.dark) .highlight pre { scrollbar-color: #e8e4dc #faf8f4 ; ; scrollbar-width: thin; } body:not(.dark) .highlight pre::selection, body:not(.dark) .highlight pre code::selection { background: rgba(44, 90, 160, 0.2) ; ; color: inherit; } body:not(.dark) ::selection { background: rgba(44, 90, 160, 0.15) ; ; color: inherit; } body:not(.dark) hr { background: linear-gradient(90deg, transparent, #e8e4dc, transparent) ; ; border: none; height: 1px; margin: 2rem 0; } body:not(.dark) blockquote { background: rgba(250, 248, 244, 0.5) ; ; border-left: 4px solid #d4c4a8 ; ; } body:not(.dark) .header, body:not(.dark) nav, body:not(.dark) .menu { background-color: #fefcf8 ; ; border-bottom: 1px solid #e8e4dc ; ; } @media (max-width: 768px) { body:not(.dark) .highlight {; border-left: none; border-right: none; margin: 1rem -0.5rem; } } body:not(.dark) table { background: #fefcf8; border: 1px solid #e8e4dc; } body:not(.dark) table th { background: #f0ede6 ; ; color: #3d3a35; } body:not(.dark) table td { border-bottom: 1px solid #e8e4dc ; ; } body:not(.dark) table tr:hover { background: #f5f2ea ; ; } body:not(.dark) button, body:not(.dark) .button { background: #f0ede6; border: 1px solid #e8e4dc; color: #3d3a35; } body:not(.dark) button:hover, body:not(.dark) .button:hover { background: #e8e4dc; color: #2d2a26; } body:not(.dark) .highlight[data-lang="bash"] span, body:not(.dark) .highlight[data-lang="shell"] span, body:not(.dark) .highlight.language-bash span, body:not(.dark) .highlight.language-shell span { color: #3d3a35 ; ; font-weight: normal; } body:not(.dark) .highlight[data-lang="bash"] .nb, body:not(.dark) .highlight[data-lang="shell"] .nb, body:not(.dark) .highlight.language-bash .nb, body:not(.dark) .highlight.language-shell .nb { color: #2c5aa0 ; ; font-weight: 600; } body:not(.dark) .highlight[data-lang="bash"] .s1, body:not(.dark) .highlight[data-lang="bash"] .s2, body:not(.dark) .highlight.language-bash .s1, body:not(.dark) .highlight.language-bash .s2 { color: #2d7d32 ; ; font-weight: 500; } body:not(.dark) .highlight[data-lang="bash"] .c, body:not(.dark) .highlight[data-lang="bash"] .c1, body:not(.dark) .highlight.language-bash .c, body:not(.dark) .highlight.language-bash .c1 { color: #8d7053 ; ; font-style: italic; } body:not(.dark) .highlight[data-lang="bash"] .nv, body:not(.dark) .highlight.language-bash .nv { color: #1e4976 ; ; font-weight: 500; } body:not(.dark) .highlight[data-lang="bash"] .k, body:not(.dark) .highlight[data-lang="bash"] .kd, body:not(.dark) .highlight.language-bash .k, body:not(.dark) .highlight.language-bash .kd { color: #1e4976 ; ; font-weight: 600; } body:not(.dark) .highlight[data-lang="bash"] .m, body:not(.dark) .highlight[data-lang="bash"] .mi, body:not(.dark) .highlight.language-bash .m, body:not(.dark) .highlight.language-bash .mi { color: #e65100 ; ; font-weight: 500; } body:not(.dark) .highlight[data-lang="bash"] .s:not(.s1):not(.s2), body:not(.dark) .highlight.language-bash .s:not(.s1):not(.s2) { color: #3d3a35 ; ; font-weight: normal; } body:not(.dark) .highlight[data-lang="bash"] .n, body:not(.dark) .highlight.language-bash .n { color: #3d3a35 ; ; font-weight: normal; } body:not(.dark) .highlight[data-lang="bash"] .p, body:not(.dark) .highlight.language-bash .p { color: #3d3a35 ; ; font-weight: normal; } body:not(.dark) .highlight .nb:contains("echo") ~ span:not(.s1):not(.s2) { color: #3d3a35; } body:not(.dark) .highlight span.nb + span.s { color: #3d3a35 ; ; } body:not(.dark) .highlight span.nb + span.s1, body:not(.dark) .highlight span.nb + span.s2 { color: #2d7d32 ; ; } body:not(.dark) .highlight pre code * { color: inherit; } body:not(.dark) .highlight pre code .nb { color: #2c5aa0 ; font-weight: 600; } body:not(.dark) .highlight pre code .s1 { color: #2d7d32 ; font-weight: 500; } body:not(.dark) .highlight pre code .s2 { color: #2d7d32 ; font-weight: 500; } body:not(.dark) .highlight pre code .c { color: #8d7053 ; font-style: italic; } body:not(.dark) .highlight pre code .c1 { color: #8d7053 ; font-style: italic; } body:not(.dark) .highlight pre code .nv { color: #1e4976 ; font-weight: 500; } body:not(.dark) .highlight pre code .k { color: #1e4976 ; font-weight: 600; } body:not(.dark) .highlight pre code .m { color: #e65100 ; font-weight: 500; } body:not(.dark) .highlight pre code .mi { color: #e65100 ; font-weight: 500; } .mermaid { backface-visibility: hidden; background: transparent; font-family: 'PT Sans', 'Roboto', sans-serif; margin: 2rem 0; max-width: 100%; min-height: 400px; perspective: 1000px; text-align: center; transform: translateZ(0) ; ; width: 100%; } .mermaid svg { border-radius: 8px; height: auto; max-width: 100%; min-height: 350px; shape-rendering: geometricPrecision; text-rendering: geometricPrecision; transform: translateZ(0); transition: none ; ; } .post-content .mermaid { background: var(--entry); border-radius: 12px; border: 1px solid var(--border); min-height: 450px; overflow: visible ; ; padding: 2rem ; ; transition: none; } .post-content .mermaid:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transform: none ; ; } .mermaid .node, .mermaid .nodeLabel, .mermaid .cluster, .mermaid .edgePath, .mermaid .edgeLabel { transform: translateZ(0); transition: none; } .mermaid text { fill: currentColor; font-family: 'PT Sans', 'Roboto', sans-serif; font-size: 14px; shape-rendering: geometricPrecision; text-rendering: geometricPrecision; transition: none; } .mermaid rect, .mermaid circle, .mermaid ellipse, .mermaid polygon { transform: translateZ(0); transition: none; } .mermaid path, .mermaid line { shape-rendering: geometricPrecision; stroke-width: 2px; transition: none; } @media (max-width: 768px) { .mermaid {; font-size: 12px; margin: 1.5rem -1rem; min-height: 300px; padding: 1rem; } .mermaid svg { background: transparent; display: block; height: auto; margin: 0 auto; max-height: 500px; max-width: 100%; max-width: calc(100vw - 2rem); min-height: 200px; min-height: 250px; overflow: visible; width: auto; } .post-content .mermaid { min-height: 300px; min-height: 350px; padding: 1.5rem; padding: 1rem; } .mermaid text { font-size: 12px; } } @media (max-width: 480px) { .mermaid {; font-size: 11px; margin: 1rem -0.5rem; min-height: 250px; padding: 0.75rem; } .mermaid text { font-size: 10px; } } body:not(.dark) .mermaid { background: #fefcf8 ; ; } body:not(.dark) .mermaid svg { filter: none ; ; } body.dark .mermaid { background: var(--entry); } body.dark .mermaid svg { filter: none ; ; } .mermaid[data-processed] { opacity: 1; visibility: visible; } .mermaid:not([data-processed]) { min-height: 400px; opacity: 0.5; } .mermaid .mermaid-loading { display: none; } .mermaid *, .mermaid *::before, .mermaid *::after { animation: none; transform: translateZ(0); transition: none; } .mermaid *:hover { animation: none; transform: translateZ(0); transition: none; } .mermaid .flowchart { height: auto; width: 100%; } .mermaid .sequence { overflow-x: auto; width: 100%; } .mermaid .gantt { overflow-x: auto; width: 100%; } .mermaid .graph { height: auto; width: 100%; } .mermaid { -webkit-backface-visibility: hidden; -webkit-perspective: 1000px; -webkit-transform: translateZ(0); } .mermaid { -moz-backface-visibility: hidden; -moz-transform: translateZ(0); } .mermaid { contain: layout style paint ; ; will-change: auto ; ; } .mermaid { contain: layout style paint; min-height: 400px; position: relative; transform: translateZ(0); transition: opacity 0.3s ease; width: 100%; } .mermaid:not([data-processed]) { &::before {; ); 45deg,; background: repeating-linear-gradient(; color: var(--secondary); content: "⏳ Загрузка диаграммы..."; font-size: 14px; left: 50%; opacity: 0.7; position: absolute; rgba(0,0,0,0.03) 16px; rgba(0,0,0,0.03) 8px,; top: 50%; transform: translate(-50%, -50%); transparent 8px,; transparent,; z-index: 1; } } .mermaid[data-processed] { &::before {; background: none; display: none; opacity: 1; } } .mermaid[data-processing] { pointer-events: none; user-select: none; } .mermaid svg { height: auto; max-width: 100%; shape-rendering: geometricPrecision; text-rendering: optimizeLegibility; transform: translateZ(0); transition: none; } body:not(.dark) .mermaid { background-color: transparent; } body:not(.dark) .mermaid[data-processed] { background: var(--entry, #fefcf8); } body.dark .mermaid { background-color: transparent; } body.dark .mermaid[data-processed] { background: var(--entry, #1a1a1a); } .mermaid .mermaid-error { background: linear-gradient(135deg, #fff5f5, #fed7d7); border-radius: 12px; border: 2px dashed #fc8181; box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15); color: #c53030; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 1rem 0; padding: 2rem; } .mermaid .mermaid-error h4 { color: #c53030; font-size: 1.1rem; font-size: 1.2rem; font-size: 1rem; margin: 0 0 1rem 0; } .mermaid .mermaid-error p { line-height: 1.5; margin: 0.5rem 0; } .mermaid .mermaid-error details { background: rgba(255, 255, 255, 0.8); border-radius: 8px; border: 1px solid #fc8181; margin-top: 1rem; padding: 1rem; } .mermaid .mermaid-error summary { background: rgba(252, 129, 129, 0.1); border-radius: 4px; cursor: pointer; font-weight: 600; padding: 0.5rem; transition: background-color 0.2s ease; } .mermaid .mermaid-error summary:hover { background: rgba(252, 129, 129, 0.2); } .mermaid .mermaid-error pre { background: #f7fafc; border-radius: 6px; border: 1px solid #e2e8f0; color: #2d3748; font-size: 0.75rem; font-size: 0.875rem; font-size: 0.8rem; line-height: 1.4; margin: 0.5rem 0 0 0; overflow-x: auto; padding: 0.75rem; padding: 1rem; } body.dark .mermaid .mermaid-error { background: linear-gradient(135deg, #2d1b1b, #3c1f1f); border-color: #fc8181; color: #fed7d7; } body.dark .mermaid .mermaid-error h4 { color: #fed7d7; } body.dark .mermaid .mermaid-error details { background: rgba(0, 0, 0, 0.3); border-color: #fc8181; } body.dark .mermaid .mermaid-error pre { background: #1a202c; border-color: #4a5568; color: #e2e8f0; } @media (max-width: 768px) { .mermaid {; margin: 1rem -0.5rem; min-height: 300px; } .mermaid .mermaid-error { border-radius: 0; margin: 1rem -0.5rem; padding: 1.5rem; padding: 1rem; } } .mermaid { align-items: center; background: var(--entry); border-radius: 12px; border: 1px solid var(--border); display: flex; justify-content: center; margin: 2rem 0; min-height: 400px; padding: 2rem; } .mermaid .nodeLabel, .mermaid .node text { fill: #000; font-family: 'PT Sans', Arial, sans-serif; font-size: 14px; opacity: 1; visibility: visible; } .mermaid .edgePath path { fill: none; opacity: 1; stroke-width: 2px; stroke: #333; visibility: visible; } .mermaid .arrowheadPath { fill: #333; opacity: 1; visibility: visible; } body.dark .mermaid .nodeLabel, body.dark .mermaid .node text { fill: #fff; } body.dark .mermaid .edgePath path, body.dark .mermaid .arrowheadPath { fill: #fff; stroke: #fff; } .mermaid * { display: initial; opacity: 1; visibility: visible; } .mermaid .node rect { fill: #bbdefb; stroke-width: 2px; stroke: #1976d2; } .mermaid .node:nth-child(2) rect { fill: #c8e6c9; stroke: #388e3c; } .mermaid .node:nth-child(3) rect { fill: #ffcdd2; stroke: #d32f2f; } .mermaid .node:nth-child(4) rect { fill: #f8bbd9; stroke: #c2185b; } .mermaid .node:nth-child(5) rect { fill: #d1c4e9; stroke: #7b1fa2; } .mermaid .node:nth-child(6) rect { fill: #ffecb3; stroke: #f57c00; } .mermaid .nodeLabel, .mermaid .node text { fill: #000; font-family: 'PT Sans', Arial, sans-serif; font-size: 14px; font-weight: 600; text-anchor: middle; } .mermaid .edgePath path { fill: none; stroke-width: 2px; stroke: #333; } .mermaid .arrowheadPath { fill: #333; fill: #333333; opacity: 1; stroke: #333; visibility: visible; } .mermaid .edge-pattern-dotted path { stroke-dasharray: 5,5; } body.dark .mermaid .nodeLabel, body.dark .mermaid .node text { fill: #fff; } body.dark .mermaid .edgePath path, body.dark .mermaid .arrowheadPath { fill: #fff; stroke: #fff; } .mermaid g { display: block; visibility: visible; } .mermaid .node rect, .mermaid .node circle, .mermaid .node ellipse, .mermaid .node polygon { fill: #bbdefb ; ; opacity: 1; stroke-width: 2px; stroke: #1976d2 ; ; visibility: visible; } .mermaid .nodeLabel, .mermaid .node text, .mermaid text { fill: #000000 ; ; font-family: 'PT Sans', 'Roboto', Arial, sans-serif; font-size: 14px; opacity: 1; visibility: visible; } .mermaid .edgePath path { fill: none; opacity: 1; stroke-width: 2px; stroke: #333333 ; ; visibility: visible; } .mermaid { display: flex; justify-content: center; align-items: center; min-height: 200px; overflow-x: auto; overflow-y: hidden; padding: 1rem; } .mermaid svg { display: block; height: auto; max-width: 100%; margin: 0 auto; } :root { --bg-primary: #ffffff; --bg-secondary: #f8fafc; --bg-tertiary: #f1f5f9; --text-primary: #1a202c; --text-secondary: #4a5568; --text-muted: #718096; --border-primary: #e2e8f0; --border-secondary: #cbd5e0; --accent-primary: #3b82f6; --accent-secondary: #10b981; --accent-warning: #f59e0b; --accent-error: #ef4444; --code-bg: #f8fafc; --code-border: #e2e8f0; --code-text: #2d3748; --inline-code-bg: #f1f5f9; --inline-code-text: #1e293b; --inline-code-border: #cbd5e0; } [data-theme="dark"], .dark { --bg-primary: #0f172a; --bg-secondary: #1e293b; --bg-tertiary: #334155; --text-primary: #f1f5f9; --text-secondary: #cbd5e0; --text-muted: #94a3b8; --border-primary: #334155; --border-secondary: #475569; --accent-primary: #60a5fa; --accent-secondary: #34d399; --accent-warning: #fbbf24; --accent-error: #f87171; --code-bg: #0d1117; --code-border: #30363d; --code-text: #f0f6fc; --inline-code-bg: #161b22; --inline-code-text: #f0f6fc; --inline-code-border: #30363d; } .highlight { background: var(--code-bg) !important; border: 1px solid var(--code-border) !important; border-radius: 12px !important; margin: 1.5rem 0 !important; overflow: hidden !important; position: relative !important; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; } [data-theme="dark"] .highlight, .dark .highlight { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2) !important; } pre { background: var(--code-bg) !important; color: var(--code-text) !important; border: none !important; border-radius: 0 !important; padding: 1.5rem !important; overflow-x: auto !important; margin: 0 !important; line-height: 1.7 !important; font-size: 0.9rem !important; font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace !important; font-weight: 400 !important; } pre code { background: transparent !important; color: var(--code-text) !important; border: none !important; padding: 0 !important; font-size: inherit !important; font-family: inherit !important; white-space: pre !important; word-break: normal !important; word-wrap: normal !important; } code:not(pre code) { background: var(--inline-code-bg) !important; color: var(--inline-code-text) !important; border: 1px solid var(--inline-code-border) !important; border-radius: 6px !important; padding: 3px 8px !important; font-size: 0.875rem !important; font-weight: 600 !important; font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace !important; word-break: break-word !important; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; } [data-theme="dark"] code:not(pre code), .dark code:not(pre code) { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3) !important; } [data-theme="dark"] .highlight .c, [data-theme="dark"] .highlight .c1, [data-theme="dark"] .highlight .cm, .dark .highlight .c, .dark .highlight .c1, .dark .highlight .cm { color: #8b949e !important; font-style: italic !important; } [data-theme="dark"] .highlight .s, [data-theme="dark"] .highlight .s1, [data-theme="dark"] .highlight .s2, [data-theme="dark"] .highlight .se, .dark .highlight .s, .dark .highlight .s1, .dark .highlight .s2, .dark .highlight .se { color: #a5d6ff !important; font-weight: 500 !important; } [data-theme="dark"] .highlight .k, [data-theme="dark"] .highlight .kd, [data-theme="dark"] .highlight .kn, [data-theme="dark"] .highlight .kt, .dark .highlight .k, .dark .highlight .kd, .dark .highlight .kn, .dark .highlight .kt { color: #ff7b72 !important; font-weight: 600 !important; } [data-theme="dark"] .highlight .m, [data-theme="dark"] .highlight .mi, [data-theme="dark"] .highlight .mf, .dark .highlight .m, .dark .highlight .mi, .dark .highlight .mf { color: #79c0ff !important; font-weight: 500 !important; } [data-theme="dark"] .highlight .n, [data-theme="dark"] .highlight .nv, [data-theme="dark"] .highlight .nb, .dark .highlight .n, .dark .highlight .nv, .dark .highlight .nb { color: #f0f6fc !important; } [data-theme="dark"] .highlight .nf, .dark .highlight .nf { color: #d2a8ff !important; font-weight: 500 !important; } [data-theme="dark"] .highlight .o, [data-theme="dark"] .highlight .ow, .dark .highlight .o, .dark .highlight .ow { color: #ff7b72 !important; } [data-theme="dark"] .highlight .p, .dark .highlight .p { color: #f0f6fc !important; } .highlight { position: relative; } .highlight .copy-code { position: absolute !important; top: 12px !important; right: 12px !important; background: rgba(255, 255, 255, 0.9) !important; color: #374151 !important; border: 1px solid rgba(0, 0, 0, 0.1) !important; border-radius: 8px !important; padding: 6px 12px !important; font-size: 0.75rem !important; font-weight: 600 !important; cursor: pointer !important; opacity: 0 !important; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; z-index: 10 !important; backdrop-filter: blur(8px) !important; user-select: none !important; } .highlight:hover .copy-code { opacity: 1 !important; } .highlight .copy-code:hover { background: rgba(255, 255, 255, 1) !important; transform: translateY(-1px) !important; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important; } [data-theme="dark"] .highlight .copy-code, .dark .highlight .copy-code { background: rgba(13, 17, 23, 0.9) !important; color: #f0f6fc !important; border: 1px solid rgba(48, 54, 61, 0.8) !important; } [data-theme="dark"] .highlight .copy-code:hover, .dark .highlight .copy-code:hover { background: rgba(13, 17, 23, 1) !important; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important; } .highlight[data-lang]::before { content: attr(data-lang) !important; display: block !important; background: var(--bg-tertiary) !important; color: var(--text-secondary) !important; padding: 8px 16px !important; font-size: 0.75rem !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; border-bottom: 1px solid var(--border-primary) !important; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; } .language-bash .highlight, .language-shell .highlight, .language-cmd .highlight, .language-terminal .highlight { background: #1a1a1a !important; border: 1px solid #404040 !important; } .language-bash pre, .language-shell pre, .language-cmd pre, .language-terminal pre { background: #1a1a1a !important; color: #ffffff !important; } .language-bash pre code, .language-shell pre code, .language-cmd pre code, .language-terminal pre code { color: #ffffff !important; } @media screen and (max-width: 768px) { .highlight { margin: 1rem -0.5rem !important; border-radius: 8px !important; border-left: none !important; border-right: none !important; } pre { font-size: 0.8rem !important; padding: 1rem !important; line-height: 1.6 !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; } code:not(pre code) { font-size: 0.8rem !important; padding: 2px 6px !important; font-weight: 700 !important; } .highlight .copy-code { top: 8px !important; right: 8px !important; padding: 4px 8px !important; font-size: 0.7rem !important; } } @media screen and (max-width: 480px) { pre { font-size: 0.75rem !important; padding: 0.75rem !important; } code:not(pre code) { font-size: 0.75rem !important; font-weight: 800 !important; } } pre::-webkit-scrollbar { height: 8px !important; } pre::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1) !important; border-radius: 4px !important; } pre::-webkit-scrollbar-thumb { background: var(--border-secondary) !important; border-radius: 4px !important; } pre::-webkit-scrollbar-thumb:hover { background: var(--text-muted) !important; } [data-theme="dark"] pre::-webkit-scrollbar-track, .dark pre::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1) !important; } pre code::selection { background: rgba(59, 130, 246, 0.3) !important; color: inherit !important; } pre code::-moz-selection { background: rgba(59, 130, 246, 0.3) !important; color: inherit !important; } [data-theme="dark"] pre code::selection, .dark pre code::selection { background: rgba(96, 165, 250, 0.4) !important; } [data-theme="dark"] pre code::-moz-selection, .dark pre code::-moz-selection { background: rgba(96, 165, 250, 0.4) !important; } pre, pre code, code { -webkit-font-smoothing: antialiased !important; -moz-osx-font-smoothing: grayscale !important; text-rendering: optimizeLegibility !important; } .diagram-wrapper { margin: 2rem 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--theme); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); transition: all 0.3s ease; } .diagram-wrapper:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } .diagram-controls { display: flex; justify-content: center; gap: 0.5rem; padding: 1rem; background: var(--code-bg); border-bottom: 1px solid var(--border); flex-wrap: wrap; } .diagram-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--primary); color: var(--primary-text, white); border: none; border-radius: 6px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; } .diagram-btn:hover { background: var(--primary-hover, #3b82f6); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } .mermaid { text-align: center; margin: 2rem auto; padding: 1.5rem; background: var(--entry, #ffffff); border: 1px solid var(--border, #e1e5e9); border-radius: 12px; max-width: 100%; overflow: visible; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); position: relative; } .mermaid:not([data-processed]) { min-height: 200px; display: flex; align-items: center; justify-content: center; background: linear-gradient(90deg, var(--code-bg, #f8f9fa) 25%, rgba(255,255,255,0.8) 50%, var(--code-bg, #f8f9fa) 75%); background-size: 200% 100%; animation: shimmer 2s infinite; } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } .mermaid svg { width: 100% !important; height: auto !important; max-width: 100% !important; display: block !important; margin: 0 auto !important; font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif !important; } .mermaid style, .mermaid svg style { display: none !important; } .mermaid .node rect, .mermaid .node circle, .mermaid .node ellipse, .mermaid .node polygon { fill: #e3f2fd !important; stroke: #1976d2 !important; stroke-width: 2px !important; } .mermaid .nodeLabel, .mermaid .node text, .mermaid text { fill: #1a1a1a !important; font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif !important; font-size: 14px !important; font-weight: 500 !important; text-anchor: middle !important; dominant-baseline: middle !important; } .mermaid .edgePath path { stroke: #424242 !important; stroke-width: 2px !important; fill: none !important; } .mermaid .arrowheadPath { fill: #424242 !important; stroke: #424242 !important; } .mermaid .node:nth-child(1) rect, .mermaid .node:nth-child(1) circle, .mermaid .node:nth-child(1) ellipse { fill: #e3f2fd !important; stroke: #1976d2 !important; } .mermaid .node:nth-child(2) rect, .mermaid .node:nth-child(2) circle, .mermaid .node:nth-child(2) ellipse { fill: #e8f5e8 !important; stroke: #2e7d32 !important; } .mermaid .node:nth-child(3) rect, .mermaid .node:nth-child(3) circle, .mermaid .node:nth-child(3) ellipse { fill: #fff3e0 !important; stroke: #f57c00 !important; } .mermaid .node:nth-child(4) rect, .mermaid .node:nth-child(4) circle, .mermaid .node:nth-child(4) ellipse { fill: #fce4ec !important; stroke: #c2185b !important; } .mermaid .node:nth-child(5) rect, .mermaid .node:nth-child(5) circle, .mermaid .node:nth-child(5) ellipse { fill: #f3e5f5 !important; stroke: #7b1fa2 !important; } [data-theme="dark"] .diagram-wrapper, .dark .diagram-wrapper { border-color: var(--border); background: var(--theme); } [data-theme="dark"] .diagram-controls, .dark .diagram-controls { background: var(--code-bg); border-color: var(--border); } [data-theme="dark"] .mermaid, .dark .mermaid { background: var(--entry, #1a1a1a); border-color: var(--border, #404040); } [data-theme="dark"] .mermaid:not([data-processed]), .dark .mermaid:not([data-processed]) { background: linear-gradient(90deg, var(--code-bg, #161b22) 25%, rgba(255,255,255,0.1) 50%, var(--code-bg, #161b22) 75%); } [data-theme="dark"] .mermaid .node rect, [data-theme="dark"] .mermaid .node circle, [data-theme="dark"] .mermaid .node ellipse, [data-theme="dark"] .mermaid .node polygon, .dark .mermaid .node rect, .dark .mermaid .node circle, .dark .mermaid .node ellipse, .dark .mermaid .node polygon { fill: #263238 !important; stroke: #00bcd4 !important; } [data-theme="dark"] .mermaid .nodeLabel, [data-theme="dark"] .mermaid .node text, [data-theme="dark"] .mermaid text, .dark .mermaid .nodeLabel, .dark .mermaid .node text, .dark .mermaid text { fill: #ffffff !important; } [data-theme="dark"] .mermaid .edgePath path, [data-theme="dark"] .mermaid .arrowheadPath, .dark .mermaid .edgePath path, .dark .mermaid .arrowheadPath { stroke: #ffffff !important; fill: #ffffff !important; } @media (max-width: 768px) { .diagram-wrapper { margin: 1rem -1rem; border-radius: 0; border-left: none; border-right: none; } .diagram-controls { padding: 0.75rem; gap: 0.25rem; } .diagram-btn { padding: 0.375rem 0.75rem; font-size: 0.8rem; } .mermaid { margin: 1.5rem -1rem; padding: 1rem; border-radius: 0; border-left: none; border-right: none; } .mermaid .nodeLabel, .mermaid .node text, .mermaid text { font-size: 12px !important; } .mermaid .edgePath path { stroke-width: 1.5px !important; } } @media (max-width: 480px) { .diagram-controls { flex-direction: column; align-items: stretch; } .diagram-btn { justify-content: center; width: 100%; } .mermaid .nodeLabel, .mermaid .node text, .mermaid text { font-size: 11px !important; } } @media print { .diagram-controls { display: none; } .diagram-wrapper, .mermaid { box-shadow: none; border: 1px solid #000; break-inside: avoid; page-break-inside: avoid; } .mermaid .node rect, .mermaid .node circle, .mermaid .node ellipse, .mermaid .node polygon { fill: #ffffff !important; stroke: #000000 !important; stroke-width: 2px !important; } .mermaid .nodeLabel, .mermaid .node text, .mermaid text { fill: #000000 !important; } .mermaid .edgePath path, .mermaid .arrowheadPath { stroke: #000000 !important; fill: #000000 !important; } } .diagram-container-inner { position: relative; background: var(--theme); min-height: 400px; } .diagram-svg { width: 100%; height: 500px; display: block; cursor: grab; background: transparent; } .diagram-svg:active { cursor: grabbing; } .diagram-info { position: absolute; top: 1rem; right: 1rem; background: var(--theme); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; max-width: 280px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); z-index: 10; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .zoom-indicator { position: absolute; bottom: 1rem; left: 1rem; background: rgba(0, 0, 0, 0.8); color: white; padding: 0.5rem 0.75rem; border-radius: 6px; font-family: var(--font-mono, monospace); font-size: 0.75rem; font-weight: 500; z-index: 10; pointer-events: none; user-select: none; } .mermaid .node:hover rect, .mermaid .node:hover circle, .mermaid .node:hover ellipse, .mermaid .node:hover polygon { filter: brightness(1.1) !important; transition: filter 0.2s ease !important; } .diagram-wrapper, .mermaid { animation: slideUp 0.5s ease-out; } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @media (prefers-reduced-motion: reduce) { .diagram-wrapper, .mermaid, .node, .link, .diagram-btn { animation: none !important; transition: none !important; } .mermaid:not([data-processed]) { animation: none; } } .MathJax { font-size: 1.1em !important; line-height: 1.2 !important; } .MathJax_Display { margin: 20px 0 !important; padding: 16px 20px !important; background: var(--code-bg, #f8f9fa) !important; border-radius: 8px !important; border-left: 4px solid var(--theme, #007bff) !important; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important; overflow-x: auto !important; } [data-theme="dark"] .MathJax_Display, .dark .MathJax_Display { background: rgba(255, 255, 255, 0.05) !important; border-left-color: var(--theme, #6366f1) !important; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important; } .MathJax_Preview { color: var(--primary, #1f2937) !important; font-style: italic !important; } [data-theme="dark"] .MathJax_Preview, .dark .MathJax_Preview { color: var(--primary, #f9fafb) !important; } mjx-container[jax="CHTML"] { line-height: 1.2 !important; display: inline-block !important; } mjx-container[jax="CHTML"][display="true"] { display: block !important; text-align: center !important; margin: 1em 0 !important; } mjx-math { font-variant: normal !important; } .MathJax_Error { color: #dc2626 !important; background: #fef2f2 !important; padding: 4px 8px !important; border-radius: 4px !important; border: 1px solid #fca5a5 !important; font-family: monospace !important; } [data-theme="dark"] .MathJax_Error, .dark .MathJax_Error { color: #fca5a5 !important; background: rgba(220, 38, 38, 0.1) !important; border-color: #dc2626 !important; } @media (max-width: 768px) { .MathJax { font-size: 1em !important; } .MathJax_Display { margin: 15px -10px !important; padding: 12px 15px !important; border-radius: 0 !important; border-left: 4px solid var(--theme, #007bff) !important; border-right: none !important; } mjx-container[jax="CHTML"][display="true"] { overflow-x: auto !important; overflow-y: hidden !important; max-width: 100% !important; padding-bottom: 5px !important; } } @media (max-width: 480px) { .MathJax { font-size: 0.9em !important; } .MathJax_Display { padding: 10px 12px !important; margin: 12px -15px !important; } } .MathJax_Display { opacity: 0; animation: mathFadeIn 0.3s ease-in-out forwards; } @keyframes mathFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .MathJax_Processing { position: relative !important; } .MathJax_Processing::after { content: "Загружается..." !important; position: absolute !important; top: 0 !important; left: 0 !important; background: var(--theme, #007bff) !important; color: white !important; padding: 2px 6px !important; border-radius: 3px !important; font-size: 0.7em !important; font-weight: 600 !important; z-index: 1000 !important; } @media print { .MathJax_Display { background: transparent !important; box-shadow: none !important; border: 1px solid #000 !important; border-radius: 0 !important; page-break-inside: avoid !important; } .MathJax { font-size: 12pt !important; } } @media (prefers-contrast: high) { .MathJax_Display { border-width: 3px !important; box-shadow: none !important; } .MathJax { font-weight: 600 !important; } } @media (prefers-reduced-motion: reduce) { .MathJax_Display { animation: none !important; } @keyframes mathFadeIn { from, to { opacity: 1; transform: none; } } }}}