:root{--primary-color:#3498db;--secondary-color:#2980b9;--text-color:#2c3e50;--text-muted:#7f8c8d;--background-light:#ffffff;--background-gradient:linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);--shadow:0 4px 12px rgba(0, 0, 0, 0.1);--border-color:#e1e8ed;--header-bg-image:url('/images/header-bg.jpg');--code-bg:#f0f4ff;--pre-bg:#2e3440;--pre-text:#d8dee9;--smallcode-background-color:#fff5f5}[data-theme=dark]{--primary-color:#66b3ff;--secondary-color:#4a9eff;--text-color:#e4e4e4;--text-muted:#a0a0a0;--background-light:#2d2d2d;--background-gradient:linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);--shadow:0 4px 12px rgba(0, 0, 0, 0.3);--border-color:#404040;--header-bg-image:linear-gradient(135deg, #2d2d2d 0%, #404040 100%);--code-bg:#404040;--pre-bg:#1e1e1e;--pre-text:#e4e4e4;--smallcode-background-color:#363636}html{overflow-y:scroll;overflow-x:hidden;width:100%}body{font-family:-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,pingfang sc,sans-serif;margin:0;padding:0;min-height:100vh;color:var(--text-color);display:flex;flex-direction:column;background-size:cover;background-color:var(--background-light);transition:background-color .3s ease,color .3s ease;width:100%;overflow-x:hidden}header{position:fixed;top:0;left:0;width:100%;background-image:var(--header-bg-image);color:var(--text-color);padding:.5em 0;z-index:999;box-shadow:var(--shadow);height:65px;transition:all .3s ease}.header-container{max-width:1400px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:0 1em}header h1{margin:0}header h1 a{color:var(--text-color);text-decoration:none;font-size:1em;transition:color .3s ease}.site-subtitle{font-size:.8em;color:var(--text-muted);margin:.2em 0 0;transition:color .3s ease}nav ul{list-style:none;padding:0;margin:0;display:flex;gap:1.5em;align-items:center}nav ul li a{color:var(--text-color);text-decoration:none;font-weight:600;transition:color .3s ease}nav ul li a:hover{color:var(--primary-color)}.theme-toggle{background:var(--primary-color);color:var(--background-light);border:none;padding:8px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;width:36px;height:36px;transition:all .3s ease;position:relative;overflow:hidden}.theme-toggle:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.2);background:var(--secondary-color)}.theme-toggle::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.theme-toggle:hover::before{left:100%}.icon{width:16px;height:16px;transition:opacity .3s ease,transform .3s ease;position:absolute}.sun-icon,.moon-icon{transition:opacity .3s ease,transform .3s ease}[data-theme=dark] .sun-icon{opacity:0;transform:rotate(180deg)}[data-theme=light] .moon-icon,:root:not([data-theme]) .moon-icon{opacity:0;transform:rotate(-180deg)}[data-theme=dark] .moon-icon{opacity:1;transform:rotate(0)}[data-theme=light] .sun-icon,:root:not([data-theme]) .sun-icon{opacity:1;transform:rotate(0)}main{width:100%;max-width:1200px;margin:10px auto 0;padding:85px 1em 60px;flex:1;overflow-x:hidden;box-sizing:border-box}footer{background:var(--background-gradient);color:var(--text-color);text-align:center;position:fixed;bottom:0;width:100%;padding:.2em 0;box-shadow:var(--shadow);transition:all .3s ease}footer a{color:var(--primary-color);text-decoration:none;transition:color .3s ease}footer a:hover{color:var(--secondary-color);font-weight:700}.search-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);z-index:10000;display:none;justify-content:center;align-items:flex-start}.search-overlay.show{display:flex}.search-popup{max-width:1400px;width:90%;max-height:640px;height:70%;margin:120px auto;padding:20px;background-color:#fff;background:var(--background-gradient);border-radius:10px;box-shadow:0 4px 15px rgba(0,0,0,.2);border:1px solid var(--border-color);transition:all .3s ease}.search-item{max-width:100%;padding:10px 0;border-bottom:1px solid #eee}.search-item h4{margin:0 0 5px;font-size:20px}.search-item p{margin:0;color:#666;font-size:16px}.search-item a{text-decoration:none;color:#0284c7}.search-item a:hover{color:#0ea5e9}.search-results{width:100%;margin-top:10px;max-height:520px;overflow-y:auto;margin-top:10px;padding-right:5px}.search-results *{word-break:break-all;overflow-wrap:break-word}.search-results::-webkit-scrollbar{width:6px}.search-results::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:3px}.search-results::-webkit-scrollbar-track{background-color:rgba(0,0,0,5%)}.search-header{text-align:center;margin-bottom:20px}.search-title{font-size:22px;font-weight:600;color:var(--text-color);margin:0 0 8px;transition:color .3s ease}.search-subtitle{font-size:14px;color:var(--text-muted);margin:0;transition:color .3s ease}.search-input-container{position:relative;margin-bottom:20px}#search-input{width:100%;padding:12px 40px 12px 16px;font-size:16px;border:2px solid var(--border-color);border-radius:8px;outline:none;transition:border-color .3s ease,background-color .3s ease,color .3s ease;background:var(--background-light);color:var(--text-color);box-sizing:border-box}#search-input::placeholder{color:var(--text-muted);transition:color .3s ease}#search-input:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px rgba(102,179,255,.1)}.search-icon{position:relative;top:50%;transform:translateY(-50%);width:20px;height:20px;opacity:.5;margin-top:30px;pointer-events:none;filter:var(--text-color)}.search-engines{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.search-engine{flex:1;min-width:80px;padding:10px;border:2px solid var(--border-color);border-radius:8px;background:var(--background-light);cursor:pointer;transition:all .2s ease;text-align:center;font-size:13px;font-weight:500;color:var(--text-color)}.search-engine:hover{border-color:var(--primary-color);background:var(--background-light)}.search-engine.active{border-color:var(--primary-color);background:var(--primary-color);color:var(--background-light)}.search-actions{display:flex;gap:12px;justify-content:flex-end}.search-btn{padding:10px 20px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.search-btn-primary{background:var(--primary-color);color:var(--background-light)}.search-btn-primary:hover{background:var(--secondary-color)}.search-btn-secondary{background:var(--border-color);color:var(--text-muted)}.search-btn-secondary:hover{background:var(--text-muted);color:var(--background-light)}.search-tips{margin-top:16px;padding:12px;background:var(--background-light);border-radius:8px;font-size:12px;color:var(--text-muted);border-left:3px solid var(--primary-color);transition:all .3s ease}.search-button{background:0 0;border:none;padding:0;cursor:pointer}.search-button img{width:24px;height:24px;filter:grayscale(30%);transition:filter .25s ease}.search-button:hover img,.search-button:focus img{filter:grayscale(0%);outline:none}.index-list{display:flex;flex-direction:column;gap:1rem;width:100%;box-sizing:border-box}.index-card{display:flex;justify-content:space-between;align-items:center;background:var(--background-gradient);border-radius:.75rem;overflow:hidden;transition:background .3s,box-shadow .3s;padding:.75rem 1rem;gap:1rem;cursor:pointer;text-decoration:none;box-shadow:var(--shadow);border:1px solid var(--border-color)}.index-card:hover{background:var(--background-light);box-shadow:0 6px 12px rgba(0,0,0,.15)}.index-thumbnail{flex-shrink:0;width:250px;height:160px;object-fit:cover;border-radius:.5rem;background:var(--border-color)}.index-content{flex:1;display:flex;flex-direction:column;justify-content:start;padding:10px;min-width:0;height:160px;box-sizing:border-box}.index-title{font-size:1.2rem;font-weight:600;color:var(--text-color);max-height:2.8em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;transition:color .3s ease}.index-meta{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:var(--text-muted);margin-top:4px;transition:color .3s ease}.index-category{color:var(--primary-color);font-weight:500;transition:color .3s ease}.index-date{font-size:.85rem;color:var(--text-muted);transition:color .3s ease}.index-summary{font-size:.95rem;color:var(--text-muted);line-height:1.5;margin-top:6px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;transition:color .3s ease}.pagination{display:flex;justify-content:center;gap:.5rem;margin:1rem 0;flex-wrap:wrap}.pagination a,.pagination span{padding:.3rem .6rem;border-radius:.25rem;text-decoration:none;background:var(--background-gradient);color:var(--text-color);border:1px solid var(--border-color);transition:all .3s ease}.pagination a:hover{background:var(--background-light);box-shadow:var(--shadow)}.pagination .current{background:var(--primary-color);color:var(--background-light);border-color:var(--primary-color)}.pagination .disabled{background:var(--border-color);color:var(--text-muted);cursor:not-allowed}.post-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:.3em;width:100%;box-sizing:border-box}.post-list li{padding:.8em;background:var(--background-gradient);border-radius:.75rem;transition:background .2s ease,transform .2s ease;box-shadow:var(--shadow);border:1px solid var(--border-color)}.post-list li:hover{background:var(--background-light);transform:scale(1.02)}.item-row{display:flex;justify-content:space-between;align-items:center;width:100%}.item-row a{color:var(--text-color);text-decoration:none;font-weight:700;flex:1;padding-left:1em;transition:color .3s ease}.item-row a:hover{color:var(--primary-color)}.item-row .date{color:var(--text-muted);font-size:.9em;white-space:nowrap;padding-right:1em;transition:color .3s ease}.container{max-width:100%;width:100%;box-sizing:border-box;overflow-x:hidden}.single-title{text-align:center;font-size:2rem;color:var(--text-color);transition:color .3s ease}.single-date{font-size:.9em;color:var(--text-muted);text-align:center;transition:color .3s ease}pre{background:var(--pre-bg);color:var(--pre-text);padding:1em;border-radius:8px;overflow-x:auto;font-size:.9em;line-height:1.5;border:1px solid var(--border-color);transition:all .3s ease;box-sizing:border-box;max-width:100%}code{font-family:Consolas,Monaco,courier new,monospace}.content p code{background-color:var(--smallcode-background-color);color:#ff502c;padding:.2em .4em;border-radius:4px;font-size:.95em;transition:all .3s ease}.content{word-wrap:break-word;overflow-wrap:break-word;max-width:100%;color:var(--text-color);transition:color .3s ease;box-sizing:border-box;overflow-x:hidden}.content img{height:auto;display:block;border-radius:8px;border:1px solid #eee;box-shadow:0 2px 4px rgba(0,0,0,5%);margin:12px auto;padding:4px;background-color:#fafafa}.content img.size-scale{width:75%}.content img.size-portrait{width:auto}.content a{color:#00e;text-decoration:none}img.zoomable{cursor:zoom-in;transition:transform .2s ease}img.zoomable:active{transform:scale(.98)}#imageModal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:9999}#imageModal img{max-width:90%;max-height:90%;box-shadow:var(--shadow);border-radius:8px}#imageModal.hidden{display:none}.post-tags{text-align:left;margin:0 0 .8em;font-size:1em}.post-tags strong{color:var(--text-color);transition:color .3s ease}.post-tags .tag{display:inline-block;background:var(--background-gradient);color:var(--text-color);padding:.3em .6em;margin:.2em .3em .2em 0;border-radius:999px;text-decoration:none;font-size:1em;border:1px solid var(--border-color);transition:all .3s ease}.post-tags .tag:hover{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}#toc{position:fixed;top:120px;right:30px;width:350px;max-height:70vh;overflow-y:auto;background:var(--background-gradient);padding:1em;border-radius:8px;box-shadow:var(--shadow);z-index:1000;font-size:.9em}#toc h3{margin:0 0 .5em;font-size:1.1em;color:var(--text-color)}#toc nav{margin-top:.3em}#toc ul{list-style:none;padding:0;margin:0;display:block !important}#toc li{margin:5px 0;display:list-item !important}#toc a{text-decoration:none;color:var(--text-color);transition:color .2s}#toc a:hover{color:var(--primary-color)}#toc ul ul{padding-left:15px}.terms-container{width:100%;max-width:1200px;margin:1rem auto;padding:0 1em}.terms-container h1{font-size:2rem;font-weight:700;text-align:center;margin-bottom:2rem;color:var(--text-color)}.terms-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;padding:0;margin:0;list-style:none}.terms-list li a{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:var(--background-gradient);border:1px solid var(--border-color);border-radius:.75rem;padding:1.5rem;text-decoration:none;color:var(--text-color);font-size:1rem;transition:background .25s ease,box-shadow .25s ease,transform .2s ease;min-height:100px}.terms-list li a:hover{background:var(--background-light);box-shadow:var(--shadow);transform:translateY(-3px)}.terms-list li a span.count{color:var(--text-muted);font-size:.9rem;margin-top:.5rem}@media(max-width:768px){main{padding:70px 1em;box-sizing:border-box;width:100%}.content img.size-scale{width:100%}.index-card{flex-direction:column;align-items:flex-start}.index-thumbnail{width:100%;height:auto}.item-row{flex-direction:column;align-items:flex-start;padding:0}.item-row .date{margin-top:.5em;padding-right:0}#toc{position:static;width:100%;max-height:none;margin:1em 0}.terms-list{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.mobile-hidden{display:none}}@media(max-width:480px){header{height:110px}.header-container{flex-direction:column;align-items:flex-start;padding:.5em 1em}.index-list{padding:20px 0}nav ul{margin-top:.5em;flex-wrap:wrap;gap:1em}main{padding:110px 1em 70px;box-sizing:border-box;width:100%}.content img.size-scale{width:100%}.search-popup{min-width:90vw;margin-top:10vh;padding:16px}.search-engines{flex-direction:column}.search-engine{min-width:auto}.search-actions{flex-direction:column-reverse}.search-btn{width:100%}.terms-list{grid-template-columns:1fr}.mobile-hidden{display:none}}