/*
Theme Name: 屌软件 Discover
Theme URI: https://www.nihendiao.com/
Author: 屌软件
Description: 为免费软件与 GitHub 开源项目而设计的轻量发现主题。内置主题设置、SEO、广告、收藏、分享及软件信息。
Version: 1.3.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diao-discover
Tags: blog, news, two-columns, three-columns, custom-logo, custom-menu, featured-images, threaded-comments
*/
:root{--brand-accent:#b4553d;--accent:var(--brand-accent);--on-accent:#fffaf5;--bg:#f2f3ee;--surface:#fafbf7;--soft:#e8ece5;--ink:#303c34;--muted:#5e6f63;--body:#526157;--line:#d9e0d7;--warm:#f2e7dc;--tint-surface:#e7ece4;--tint-ink:#465c4c;--shadow:0 12px 36px #26372b0b;--radius:12px;color-scheme:light}
[data-theme=dark]{--accent:#e2a080;--accent:color-mix(in srgb,var(--brand-accent) 55%,#f5dec5);--on-accent:#292b22;--bg:#232b26;--surface:#2b352e;--soft:#354137;--ink:#e0e8dd;--muted:#a2b5a5;--body:#c0cebf;--line:#47584a;--warm:#433c30;--tint-surface:#303e33;--tint-ink:#cedcc7;--shadow:0 12px 36px #111a1426;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none;transition:color .15s,background .15s,border-color .15s}button,input,select,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button{color:inherit}img{max-width:100%;height:auto;vertical-align:middle}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{line-height:1.4}button,input,select,textarea{outline-offset:4px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}a:hover{color:var(--accent)}.icon{flex-shrink:0;vertical-align:-4px}.sr-only,.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:20px;z-index:1000;padding:12px;background:var(--ink);color:var(--bg)}.skip-link:focus{top:10px}[hidden]{display:none!important}
.site-header{height:88px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:40}.header-inner{height:100%;max-width:1520px;padding:0 42px;margin:auto;display:flex;align-items:center;gap:36px}.brand{display:flex;align-items:center;gap:10px;flex-shrink:0;font-weight:850;font-size:24px;letter-spacing:-1px}.brand small{display:block;letter-spacing:1.7px;font-size:8px;font-weight:700;color:var(--muted);margin-top:-2px}.brand-mark{height:42px;width:42px;display:grid;place-items:center;border-radius:13px;background:var(--accent);color:white;box-shadow:0 4px 12px #ef603d22}.brand-mark .icon{height:27px;width:27px;stroke-width:2.3}.brand-image{max-height:48px;width:auto;max-width:190px}.primary-menu{display:flex;list-style:none;gap:28px;padding:0;margin:0;font-size:14px;font-weight:600;white-space:nowrap}.primary-menu a{display:block;padding:31px 0;position:relative}.primary-menu a.active,.primary-menu .current-menu-item>a{color:var(--accent)}.primary-menu a.active:after,.primary-menu .current-menu-item>a:after{position:absolute;content:"";height:3px;background:var(--accent);bottom:0;left:0;right:0;border-radius:2px}.primary-menu .menu-item-has-children{position:relative}.primary-menu .sub-menu{display:none;position:absolute;top:100%;left:-15px;min-width:170px;list-style:none;margin:0;padding:8px 16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.primary-menu .sub-menu a{padding:10px 0}.primary-menu li:hover>.sub-menu,.primary-menu li:focus-within>.sub-menu{display:block}.header-search{margin-left:auto;display:flex;align-items:center;gap:10px;background:var(--soft);border:1px solid var(--line);padding:9px 12px;border-radius:8px;width:245px;color:var(--muted)}.header-search input{min-width:0;width:100%;background:none;border:0;font-size:12px;color:var(--ink);outline:none}.header-search .icon{width:17px}.header-search kbd{border:1px solid var(--line);background:var(--surface);border-radius:4px;padding:0 6px;font-size:11px}.header-actions{display:flex;gap:15px;align-items:center}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;height:36px;min-width:36px;padding:8px;border-radius:8px;color:var(--muted)}.icon-button:hover{background:var(--soft);color:var(--accent)}.submit-button,.button{background:var(--accent);border:1px solid transparent;border-radius:8px;padding:10px 16px;color:var(--on-accent);display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.5;font-size:13px;font-weight:600;white-space:nowrap}.submit-button:hover,.button:hover{color:var(--on-accent);filter:brightness(.96)}.submit-button .icon{width:16px;height:16px}.button.secondary{background:var(--surface);border-color:var(--line);color:var(--body)}.button.secondary:hover{border-color:var(--accent);color:var(--accent)}.mobile-toggle{display:none}.mobile-panel{position:fixed;top:88px;left:0;right:0;padding:20px;background:var(--surface);box-shadow:var(--shadow);z-index:50;border-bottom:1px solid var(--line);max-height:calc(100dvh - 88px);overflow:auto}.mobile-panel .primary-menu{flex-direction:column;gap:0}.mobile-panel .primary-menu a{padding:10px}.mobile-panel form{display:flex;margin:15px 0;gap:8px}.mobile-panel input{min-width:0;flex:1;border:1px solid var(--line);background:var(--soft);padding:10px;border-radius:8px}
.site-layout{display:grid;grid-template-columns:190px minmax(0,1fr) 280px;gap:35px;max-width:1480px;padding:36px 42px 60px;margin:auto}.left-rail{min-width:0}.rail-sticky{position:sticky;top:122px;max-height:calc(100dvh - 140px);overflow:auto;scrollbar-width:none}.rail-label{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:1px;margin:3px 0 12px 12px}.rail-nav{display:flex;flex-direction:column;gap:3px}.rail-nav>a{display:flex;align-items:center;gap:12px;min-height:42px;padding:9px 13px;color:var(--body);border-radius:8px;font-size:13px}.rail-nav>a:hover{background:var(--soft);color:var(--ink)}.rail-nav>a.selected{background:var(--warm);color:var(--accent);font-weight:700}.rail-nav .icon{width:18px;height:18px;stroke-width:1.6}.nav-dot{height:6px;width:6px;border-radius:50%;margin-left:auto;background:var(--accent)}.saved-count{font-size:10px;margin-left:auto;background:var(--soft);padding:0 6px;border-radius:4px;color:var(--muted)}.rail-divider{border-top:1px solid var(--line);margin:22px 12px}.category-nav>a{min-height:38px}.rail-toolbox{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:14px 12px;margin-top:25px;font-size:12px}.rail-toolbox>.icon:first-child{color:var(--accent)}.rail-toolbox>.icon:last-child{margin-left:auto;width:14px}.rail-toolbox small{font-size:10px;display:block;color:var(--muted)}.rail-bottom{font-size:10px;line-height:2;color:var(--muted);padding:22px 12px 0}.rail-bottom span{font-size:9px;letter-spacing:.2px}
.discovery-main{min-width:0}.hero{position:relative;background:linear-gradient(115deg,var(--warm),var(--surface));border:1px solid #ef603d17;border-radius:14px;padding:30px 28px 25px;overflow:hidden;min-height:220px;margin-bottom:28px}.hero-copy{position:relative;z-index:2}.hero-eyebrow{font-size:10px;letter-spacing:.8px;color:var(--accent);display:flex;gap:7px;align-items:center;margin:0 0 14px}.hero-eyebrow>span{height:5px;width:5px;background:var(--accent);border-radius:50%}.hero h1{font-size:30px;letter-spacing:-1.2px;font-weight:800;margin-bottom:12px;max-width:86%}.hero p{font-size:12px;color:var(--body);max-width:75%;margin:0 0 25px;line-height:1.9}.hero-bottom{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--body)}.tiny-code{display:inline-flex;align-items:center;justify-content:center;font-weight:800;background:var(--surface);border:1px solid var(--line);color:var(--accent);width:24px;height:24px;border-radius:6px;font-family:monospace}.hero-line{height:1px;width:24px;background:var(--line);margin:0 2px}.hero-bottom small{font-size:8px;letter-spacing:.7px;color:var(--muted)}.hero-art{position:absolute;right:-10px;bottom:5px;width:185px;height:185px;transform:rotate(-16deg);pointer-events:none;opacity:.9}.hero-code{position:absolute;display:grid;place-items:center;width:85px;height:85px;top:54px;left:45px;background:var(--surface);border:1px solid #ef603d33;box-shadow:6px 10px 0 #ef603d10,0 10px 30px #ef603d08;border-radius:20px;font-size:37px;font-weight:850;color:var(--accent);font-family:monospace;transform:rotate(8deg)}.orbit{position:absolute;width:175px;height:175px;border:1px solid #ef603d22;border-radius:50%;top:10px;left:0}.orbit-two{width:140px;height:140px;top:27px;left:17px;border-style:dashed}.art-star{position:absolute;right:8px;top:20px;color:#ef9b45;font-size:30px;font-style:normal}.art-dot{position:absolute;height:12px;width:12px;left:5px;bottom:25px;background:#ffd4bc;border:3px solid var(--surface);border-radius:50%}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.section-heading h2{font-size:15px;margin:0;font-weight:700;display:flex;gap:7px;align-items:center}.section-heading h2 .icon{color:var(--accent);width:17px}.section-caption{color:var(--muted);font-size:10px;margin-bottom:0}.featured-section{margin-bottom:30px}.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.featured-card{border:1px solid var(--line);padding:16px 15px;border-radius:10px;background:var(--surface);transition:transform .15s,border-color .15s}.featured-card:hover{border-color:#ef603d66;transform:translateY(-3px);box-shadow:var(--shadow)}.featured-top{display:flex;justify-content:space-between;align-items:flex-start;gap:4px}.featured-top>span:last-child{font-size:8px;line-height:1.5;background:var(--warm);color:var(--accent);padding:3px 5px;border-radius:4px}.product-icon{height:62px;width:62px;flex-shrink:0;border-radius:14px;background:var(--tile,#e4ecf6);display:inline-flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;color:#353947;overflow:hidden;letter-spacing:-1px}.product-icon img{width:100%;height:100%;object-fit:cover}.featured-card .product-icon{width:38px;height:38px;border-radius:10px;font-size:22px}.featured-card h3{font-size:14px;color:var(--ink);margin:12px 0 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.featured-card p{font-size:10px;color:var(--body);line-height:1.9;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feed-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:15px}.feed-title h2{font-size:20px;letter-spacing:-.5px;display:flex;align-items:center;gap:9px;margin:0}.feed-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);margin-left:2px}.feed-sort{display:flex;gap:3px;padding:3px;background:var(--soft);border-radius:7px;flex-shrink:0}.feed-sort a{padding:5px 10px;font-size:10px;color:var(--muted);border:1px solid transparent;border-radius:5px}.feed-sort a.selected{color:var(--ink);background:var(--surface);border-color:var(--line);box-shadow:0 1px 3px #00000005}.category-chips{display:flex;gap:7px;padding:17px 0 13px;flex-wrap:wrap}.category-chips a{font-size:10px;color:var(--body);padding:4px 10px;border-radius:6px;background:var(--soft);border:1px solid transparent}.category-chips a.selected{background:var(--warm);color:var(--accent);border-color:#ef603d22}.category-chips a:hover{border-color:var(--line);color:var(--accent)}.product-row{display:flex;gap:17px;align-items:center;min-height:120px;padding:23px 2px;border-bottom:1px solid var(--line);position:relative}.product-row:hover{background:linear-gradient(90deg,transparent,var(--soft),transparent)}.product-content{flex:1;min-width:0}.product-heading{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.product-heading h2{font-size:16px;line-height:1.5;letter-spacing:-.3px;margin:0;font-weight:750;overflow-wrap:anywhere}.mini-badge{font-size:8px;color:var(--accent);background:var(--warm);padding:1px 5px;border-radius:4px;white-space:nowrap}.product-summary{font-size:12px;line-height:1.8;color:var(--body);margin:5px 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-meta{display:flex;gap:11px;align-items:center;color:var(--muted);font-size:9px;flex-wrap:wrap}.product-meta>a:first-child{background:var(--soft);padding:1px 6px;border-radius:4px;color:var(--body)}.product-meta .icon{height:12px;width:12px;vertical-align:-2px;margin-right:3px}.product-meta .star-meta .icon{color:#bb9959}.product-meta time{margin-left:auto;font-variant-numeric:tabular-nums}.platform-meta{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-actions{display:flex;align-items:center;gap:10px;margin-left:1px}.bookmark-button{min-width:28px;width:28px;padding:4px;opacity:.45}.product-row:hover .bookmark-button,.bookmark-button:focus-visible,.bookmark-button.is-active{opacity:1}.is-active[data-bookmark]{color:var(--accent)}.is-active[data-bookmark] .icon{fill:var(--warm)}.vote-button{width:51px;min-height:56px;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:var(--surface);font-size:11px;font-weight:650;flex-shrink:0}.vote-button .icon{height:17px;width:17px;fill:currentColor;stroke-width:1}.vote-button:hover,.vote-button.is-active{border-color:var(--accent);color:var(--accent);background:var(--warm)}.pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:30px 0}.pagination .page-numbers{padding:7px 12px;border:1px solid var(--line);border-radius:6px;font-size:12px}.pagination .current{border-color:var(--accent);color:var(--accent);background:var(--warm)}
.right-sidebar{min-width:0;border-left:1px solid var(--line);padding-left:28px}.sidebar-card{border-radius:12px;position:relative;overflow:hidden;padding:23px}.manifesto{background:var(--tint-surface);min-height:270px;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:1.4px;font-weight:600;color:var(--muted)}.manifesto .eyebrow{font-size:7px;letter-spacing:.8px;color:var(--muted)}.manifesto h2{font-size:23px;line-height:1.6;letter-spacing:-.8px;margin:15px 0 12px;color:var(--tint-ink)}.manifesto h2>span{color:var(--accent)}.manifesto p{font-size:10px;color:var(--body);line-height:2;margin-bottom:19px}.manifesto>a{position:relative;z-index:2;font-size:10px;color:var(--tint-ink);display:flex;gap:5px;align-items:center}.manifesto>a .icon{width:13px}.manifesto-art{width:90px;height:90px;position:absolute;bottom:5px;right:-10px;transform:rotate(-15deg);opacity:.55}.manifesto-art>span{font:600 37px monospace;position:absolute;top:15px;left:0;color:#99a8ca}.manifesto-art i{font-size:23px;font-style:normal;color:#f4b57a;position:absolute;right:7px;top:5px}.manifesto-art b{position:absolute;bottom:5px;left:-15px;font-size:20px;color:#bbc2d6}.sidebar-section{margin-bottom:27px}.sidebar-section>.section-heading{margin-bottom:5px}.sidebar-section .section-heading h2{font-size:13px}.sidebar-section .section-heading>.icon{width:15px;height:15px;color:var(--muted)}.sidebar-section .section-caption{font-size:9px}.mini-list{margin-top:13px}.mini-list>a{display:flex;gap:10px;align-items:center;padding:11px 0}.mini-list .product-icon{height:36px;width:36px;border-radius:9px;font-size:19px}.mini-list>a>span{min-width:0}.mini-list strong{display:block;font-size:11px;color:var(--ink);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:155px}.mini-list small{display:block;font-size:9px;color:var(--muted);margin-top:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:165px}.mini-list>a>.icon{height:12px;width:12px;color:var(--muted);margin-left:auto;opacity:.5}.topic-cloud{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.topic-cloud a{display:inline-flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;color:var(--body);font-size:10px}.topic-cloud span{font-size:8px;color:var(--muted);font-variant-numeric:tabular-nums}.community-card{border-top:1px solid var(--line);padding-top:25px}.community-card>.icon{color:var(--muted);height:24px;width:24px;margin-bottom:10px}.community-card h3{font-size:12px;font-weight:650;margin-bottom:8px}.community-card p{font-size:10px;line-height:1.9;color:var(--muted);margin-bottom:12px}.community-card a{font-size:10px;color:var(--body);display:flex;gap:6px;align-items:center}.community-card a .icon{width:12px;height:12px}
.site-footer{max-width:1396px;margin:0 auto;border-top:1px solid var(--line);padding:27px 0 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:10px}.footer-brand{font-size:16px;font-weight:750;color:var(--ink)}.footer-brand span{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:400;margin-left:6px}.site-footer p{font-size:10px;margin:7px 0 0}.footer-links{display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:flex-end}.footer-links ul{display:flex;gap:15px;list-style:none;margin:0;padding:0}.archive-intro{padding:20px 0 28px}.archive-intro h1{font-size:30px;margin:10px 0}.archive-intro p{color:var(--muted);font-size:12px;margin:0}.empty-state{text-align:center;padding:65px 20px;border-bottom:1px solid var(--line)}.empty-state>.icon{color:var(--accent);width:36px;height:36px;margin-bottom:20px}.empty-state h2{font-size:20px}.empty-state p{font-size:13px;color:var(--muted);margin-bottom:25px}
.ad-slot{position:relative;margin:20px 0;padding:19px 12px 12px;background:var(--soft);border:1px solid var(--line);border-radius:8px;min-width:0;overflow:hidden}.ad-slot img{width:100%;height:auto;border-radius:5px}.ad-label{position:absolute;top:2px;right:8px;font-size:8px;color:var(--muted);letter-spacing:.5px}.ad-footer{max-width:1396px;margin:0 auto 25px}.ad-feed{margin:15px 0}.ad-slot iframe{max-width:100%}
.reading-layout{grid-template-columns:190px minmax(0,1fr) 280px}.reading-main{min-width:0}.breadcrumbs{display:flex;gap:10px;font-size:11px;color:var(--muted);margin-bottom:27px;flex-wrap:wrap}.article-header{padding-bottom:25px;border-bottom:1px solid var(--line);margin-bottom:25px}.article-top{display:flex;align-items:center;gap:18px}.article-top .product-icon{width:75px;height:75px;font-size:38px;border-radius:18px}.article-header h1{font-size:29px;letter-spacing:-.7px;margin:5px 0 0;overflow-wrap:anywhere}.article-summary{font-size:15px;color:var(--body);line-height:1.9;margin:22px 0 0}.article-byline{display:flex;align-items:center;gap:15px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin:20px 0}.article-byline .icon{width:13px;height:13px}.article-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.article-actions .button{font-size:11px;padding:9px 11px}.article-actions .button .icon{width:15px;height:15px}.article-actions .vote-button{min-height:36px;flex-direction:row;width:auto;padding:7px 12px;margin-left:auto}.software-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));padding:19px 18px;background:var(--soft);gap:18px;border-radius:9px;margin:25px 0 0}.software-facts dt{font-size:10px;color:var(--muted);margin-bottom:5px}.software-facts dd{font-size:12px;margin:0;font-weight:600}.software-facts .icon{height:14px;width:14px;color:#b59863}.entry-content{font-size:15px;line-height:1.95;color:var(--body);overflow-wrap:anywhere}.entry-content>*{max-width:100%}.entry-content h2{font-size:23px;margin:38px 0 17px;color:var(--ink);letter-spacing:-.5px}.entry-content h3{font-size:19px;margin:30px 0 14px;color:var(--ink)}.entry-content h4{font-size:16px;color:var(--ink);margin:25px 0 12px}.entry-content p{margin-bottom:20px}.entry-content strong{color:var(--ink)}.entry-content a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.entry-content img{height:auto;border-radius:9px}.entry-content figure{margin:25px 0}.entry-content figcaption{font-size:11px;color:var(--muted);text-align:center}.entry-content blockquote{border-left:3px solid var(--accent);background:var(--warm);margin:25px 0;padding:20px 24px;border-radius:0 8px 8px 0}.entry-content blockquote p:last-child{margin:0}.entry-content table{border-collapse:collapse;width:100%;font-size:13px}.entry-content th,.entry-content td{padding:11px 14px;border:1px solid var(--line);text-align:left}.entry-content th{background:var(--soft);color:var(--ink)}.entry-content .wp-block-table{overflow-x:auto}.entry-content pre{background:#252b35;color:#e0e6ef;border-radius:10px;padding:22px 20px;overflow:auto;position:relative;font-size:12px;line-height:1.8}.entry-content code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.entry-content :not(pre)>code{font-size:.9em;background:var(--soft);padding:3px 5px;border-radius:4px;color:var(--accent)}.entry-content iframe,.entry-content video{max-width:100%}.copy-code{position:absolute;top:8px;right:8px;font-size:10px;background:#ffffff18;color:#e0e6ef;border:1px solid #ffffff20;border-radius:4px;padding:2px 8px}.toc{border:1px solid var(--line);padding:15px 20px;border-radius:9px;background:var(--soft);margin-bottom:25px}.toc summary{font-size:13px;font-weight:600;cursor:pointer}.toc nav{display:flex;flex-direction:column;gap:6px;margin-top:12px;font-size:12px;color:var(--body)}.toc a.level-3{padding-left:15px;color:var(--muted)}.cache-note{font-size:10px;color:var(--muted);padding:15px 0}.article-tags{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0}.article-tags a{font-size:11px;padding:4px 9px;border-radius:6px;background:var(--soft);color:var(--body)}.share-bar{padding:22px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.share-bar strong{font-size:13px}.share-bar>div{display:flex;gap:7px}.share-bar .button{font-size:10px;padding:7px 10px}.post-navigation{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;margin:20px 0 35px}.post-navigation>div:last-child{text-align:right}.post-navigation small{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}.post-navigation a{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.related-posts{margin-bottom:40px}.related-posts .product-row{min-height:95px}.related-posts .product-icon{height:48px;width:48px;font-size:24px}.related-posts .product-heading h2{font-size:14px}.comments-section{border-top:1px solid var(--line);padding-top:30px;margin-top:30px}.comments-section h2{font-size:20px;margin-bottom:10px}.comments-section h2>span{font-size:12px;font-weight:400;color:var(--muted);margin-left:10px}.comment-list{list-style:none;padding:0;margin:30px 0}.comment-list .children{padding-left:22px;list-style:none}.comment-body{padding:18px 0;border-bottom:1px solid var(--line);font-size:13px}.comment-author{display:flex;align-items:center;gap:10px;font-size:12px}.comment-author img{border-radius:50%}.comment-author .says{display:none}.comment-metadata{font-size:10px;color:var(--muted);margin:8px 0 10px}.comment-content{color:var(--body)}.reply{font-size:10px;color:var(--accent)}.comment-reply-title{font-size:17px;margin:30px 0 10px}.comment-reply-title small{margin-left:10px;font-size:11px}.comment-form label{display:block;margin-bottom:7px;font-size:12px;color:var(--body)}.comment-form input:not([type=checkbox]):not([type=submit]),.comment-form textarea{width:100%;padding:11px 13px;background:var(--surface);border:1px solid var(--line);border-radius:7px;color:var(--ink)}.comment-form .comment-form-cookies-consent{display:flex;gap:8px;align-items:flex-start}.comment-form-cookies-consent input{margin-top:6px}.logged-in-as{font-size:11px;color:var(--muted)}.page-content{padding:20px 0}.page-content>h1{font-size:34px;margin:15px 0 30px}.not-found{text-align:center;max-width:650px;padding:60px 20px 90px;margin:0 auto}.error-number{font-size:120px;font-weight:850;letter-spacing:-8px;color:var(--accent);line-height:1.3}.not-found h1{font-size:25px}.not-found p{font-size:14px;color:var(--muted)}.error-search{display:flex;gap:8px;margin:30px auto;max-width:440px}.error-search input{min-width:0;flex:1;background:var(--soft);border:1px solid var(--line);padding:10px;border-radius:8px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 30px);border-radius:9px;background:var(--ink);color:var(--bg);padding:12px 22px;box-shadow:var(--shadow);z-index:99;font-size:13px;text-align:center}.aligncenter{display:block;margin-left:auto;margin-right:auto}.alignleft{float:left;margin:0 20px 20px 0}.alignright{float:right;margin:0 0 20px 20px}.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{font-size:12px;color:var(--muted)}.bypostauthor>.comment-body{border-left:2px solid var(--accent);padding-left:14px}.sticky .product-heading h2:before{content:"置顶";font-size:9px;margin-right:7px;color:var(--accent);font-weight:400}.admin-bar .site-header{top:32px}.admin-bar .rail-sticky{top:154px}
@media(min-width:1600px){.site-layout{padding-top:42px}.hero{min-height:240px;padding:34px}.hero h1{font-size:34px}.hero p{font-size:13px}.product-row{min-height:126px}.product-heading h2{font-size:17px}.product-summary{font-size:13px}}
@media(max-width:1300px){.header-inner{gap:25px;padding:0 28px}.primary-menu{gap:20px;font-size:12px}.header-search{width:205px}.site-layout,.reading-layout{grid-template-columns:162px minmax(0,1fr) 240px;gap:25px;padding-left:28px;padding-right:28px}.right-sidebar{padding-left:22px}.hero{padding:25px}.hero h1{font-size:27px;max-width:90%}.hero-art{right:-35px;opacity:.65}.hero p{max-width:75%;font-size:11px}.featured-card{padding:13px 11px}.featured-top>span:last-child{font-size:7px}.featured-card p{font-size:9px}.rail-nav>a{font-size:12px;padding-left:10px;gap:10px}.platform-meta{display:none}.site-footer{margin-left:28px;margin-right:28px}.ad-footer{margin-left:28px;margin-right:28px}.row-actions{gap:3px}.manifesto{padding:20px;min-height:260px}.manifesto h2{font-size:21px}.mini-list strong{max-width:130px}.mini-list small{max-width:135px}.header-actions{gap:9px}.submit-button{font-size:11px;padding:10px 12px}.article-header h1{font-size:25px}}
@media(max-width:1100px){.desktop-nav .primary-menu{gap:16px}.header-search{width:185px}.header-search input{font-size:11px}.site-layout,.reading-layout{grid-template-columns:150px minmax(0,1fr);max-width:1000px;gap:30px}.right-sidebar{display:none}.header-inner{gap:25px}.brand{font-size:22px}.brand-mark{width:36px;height:36px}.hero h1{font-size:32px}.hero-art{right:5px}.hero p{font-size:12px}.site-footer{font-size:9px}.featured-card p{font-size:11px}.featured-top>span:last-child{font-size:8px}.product-summary{font-size:13px}.platform-meta{display:inline}.submit-button .icon{display:none}}
@media(max-width:900px){.header-inner{gap:20px}.desktop-nav{display:none}.header-search{max-width:300px;width:auto;flex:1}.mobile-toggle{display:inline-flex}.site-layout,.reading-layout{grid-template-columns:145px minmax(0,1fr);gap:22px;padding-left:22px;padding-right:22px}.hero h1{font-size:29px}.hero-art{right:-35px}.hero p{max-width:76%;font-size:11px}.hero-bottom small{display:none}.featured-grid{gap:9px}.featured-top>span:last-child{font-size:7px}.featured-card{padding:13px 10px}.featured-card p{font-size:10px}.product-row{gap:12px}.product-icon{width:55px;height:55px;font-size:26px}.row-actions{gap:0}.vote-button{width:43px;min-height:50px}.product-heading h2{font-size:15px}.product-summary{font-size:12px}.product-meta{gap:8px}.platform-meta{display:none}.site-footer{align-items:flex-start}.footer-links{gap:10px}.submit-button{font-size:12px}.submit-button .icon{display:block}}
@media(max-width:680px){.site-header{height:70px}.header-inner{padding:0 18px;gap:12px}.brand{font-size:22px;gap:8px}.brand-mark{width:35px;height:35px;border-radius:10px}.brand small{font-size:7px;letter-spacing:1px}.header-search{display:none}.header-actions{margin-left:auto;gap:4px}.submit-button{font-size:10px;padding:8px 9px;gap:5px;border-radius:6px}.submit-button .icon{display:none}.header-actions>.icon-button{min-width:32px;width:32px;padding:6px}.mobile-panel{top:70px;max-height:calc(100dvh - 70px)}.site-layout,.reading-layout{display:block;padding:22px 18px 40px}.left-rail{display:none}.hero{padding:24px 21px;min-height:207px;margin-bottom:25px}.hero h1{font-size:27px;letter-spacing:-1px;max-width:92%;margin-bottom:12px}.hero-eyebrow{font-size:9px;letter-spacing:0;margin-bottom:13px}.hero p{font-size:11px;max-width:81%;margin-bottom:22px;line-height:1.9}.hero-art{right:-60px;bottom:-15px;width:180px;height:180px;opacity:.4}.hero-code{height:70px;width:70px;font-size:30px;left:50px}.hero-bottom{font-size:9px}.hero-bottom small{display:block;font-size:6px;letter-spacing:.1px}.featured-section{margin-bottom:26px}.section-heading h2{font-size:13px}.section-heading>.section-caption{font-size:9px}.featured-grid{gap:8px}.featured-card{padding:12px 10px}.featured-card .product-icon{height:33px;width:33px;font-size:20px;border-radius:9px}.featured-top>span:last-child{display:none}.featured-card h3{font-size:12px;margin:11px 0 4px}.featured-card p{font-size:9px;line-height:1.9}.feed-title h2{font-size:19px}.feed-sort a{padding:4px 7px;font-size:9px}.category-chips{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none;padding:15px 0}.category-chips a{font-size:10px;flex-shrink:0;padding:4px 9px}.product-row{gap:12px;min-height:127px;padding:21px 0;align-items:flex-start}.product-icon{height:49px;width:49px;font-size:25px;border-radius:12px}.product-icon-link{padding-top:3px}.product-heading h2{font-size:15px;line-height:1.55}.mini-badge{font-size:7px}.product-summary{font-size:11px;margin:5px 0 9px;line-height:1.8;-webkit-line-clamp:2}.product-meta{gap:8px;font-size:8px}.product-meta .icon{width:10px;height:10px}.product-meta time{display:none}.row-actions{flex-direction:column-reverse;gap:3px;margin-top:4px}.vote-button{width:40px;min-height:46px;border-radius:7px;font-size:10px}.vote-button .icon{width:14px;height:14px}.bookmark-button{height:25px;opacity:.55}.bookmark-button .icon{width:16px;height:16px}.product-meta>a:first-child{font-size:8px;padding:1px 5px}.site-footer{display:block;margin:0 18px;padding:24px 0}.site-footer p{font-size:9px}.footer-links{justify-content:flex-start;font-size:9px;margin-top:20px;gap:15px}.archive-intro{padding:10px 0 28px}.archive-intro h1{font-size:26px}.archive-intro p{font-size:11px}.breadcrumbs{font-size:10px;margin-bottom:23px}.article-top{align-items:flex-start;gap:14px}.article-top .product-icon{height:58px;width:58px;font-size:29px;border-radius:14px}.article-header h1{font-size:23px;line-height:1.55;margin-top:3px}.article-top .eyebrow{font-size:8px;letter-spacing:.7px}.article-summary{font-size:13px;margin-top:18px}.article-byline{gap:10px;font-size:9px;margin:18px 0}.article-actions{gap:7px}.article-actions .button{font-size:10px;padding:8px 10px}.article-actions .vote-button{margin-left:0}.software-facts{grid-template-columns:repeat(2,minmax(0,1fr));padding:15px;gap:17px}.software-facts dd{font-size:11px}.entry-content{font-size:14px;line-height:1.95}.entry-content h2{font-size:21px}.entry-content h3{font-size:18px}.entry-content table{min-width:460px;font-size:12px}.entry-content pre{font-size:11px}.share-bar{display:block}.share-bar>div{margin-top:14px}.post-navigation{gap:18px}.post-navigation a{font-size:11px}.related-posts .product-heading h2{font-size:13px}.related-posts .product-icon{height:42px;width:42px}.comments-section h2{font-size:18px}.comments-section .section-caption{font-size:11px}.comment-list .children{padding-left:12px}.ad-footer{margin:0 18px 20px}.not-found{padding:50px 20px 70px}.not-found h1{font-size:22px}.error-search .button{font-size:11px}.admin-bar .site-header{top:46px}.admin-bar .mobile-panel{top:116px}}
.mobile-panel .sub-menu{position:static;display:block;box-shadow:none;border:0;padding-left:20px}.mobile-categories{border-top:1px solid var(--line);margin-top:10px;padding:12px 10px;font-size:13px}.mobile-categories summary{cursor:pointer;font-weight:600}.mobile-categories>div{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.mobile-categories a{background:var(--soft);padding:5px 10px;border-radius:6px;font-size:12px}.submission-page{padding:25px 0 40px}.submission-page h1{font-size:30px;letter-spacing:-.8px;margin:15px 0 18px}.submission-lead{font-size:14px;color:var(--body);line-height:2;margin-bottom:35px}.submission-form label{display:block;margin-bottom:8px;font-size:12px;font-weight:600}.submission-form input,.submission-form textarea{width:100%;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:7px;color:var(--ink);font-size:13px}.submission-form p{margin-bottom:22px}.submission-form .section-caption{font-size:11px}.submission-form>.button{margin-top:8px}.submission-success{padding:35px 25px;background:var(--soft);border:1px solid var(--line);border-radius:12px}.submission-success>.icon{color:var(--accent);width:35px;height:35px;margin-bottom:15px}.submission-success h2{font-size:22px;margin-bottom:12px}.submission-success p{font-size:13px;color:var(--body);line-height:1.9;margin-bottom:25px}.submission-error{padding:13px 16px;background:var(--warm);color:var(--accent);border:1px solid #ef603d33;border-radius:7px;font-size:12px}.submission-success .secondary{margin-left:8px}@media(max-width:680px){.submission-page{padding-top:12px}.submission-page h1{font-size:26px}.submission-lead{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}@media print{.site-header,.left-rail,.right-sidebar,.site-footer,.article-actions,.ad-slot,.share-bar,.post-navigation,.related-posts,.comments-section,.toast{display:none!important}.site-layout{display:block;padding:0}.entry-content{color:#000}.entry-content a{color:#000;text-decoration:underline}.entry-content pre{white-space:pre-wrap;color:#000;background:#eee}}

/* 1.1: editorial widgets and guest submission. */
.submission-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}.editorial-list{list-style:none;margin:8px 0 0;padding:0}.editorial-list li{padding:12px 0;border-bottom:1px solid var(--line)}.editorial-list li:last-child{border-bottom:0}.editorial-list a{display:block;font-size:12px;line-height:1.9;color:var(--body)}.editorial-list a:hover{color:var(--accent)}.editorial-list time{display:block;font-size:9px;color:var(--muted);margin-top:5px}.editorial-more{display:block;font-size:10px;color:var(--accent);margin-top:12px}.dh-widget .section-heading h2{font-size:14px}.dh-widget{overflow-wrap:anywhere}

/* 1.2: restful reading palettes and explicit social sharing. */
.featured-card,.product-row:hover{box-shadow:none}.featured-card{background:var(--surface)}.entry-content pre{background:#253229;color:#d8e2d4}.copy-code{background:#dce8d412;color:#d8e2d4;border-color:#dce8d426}.brand-mark{color:var(--on-accent)}.hero{background:linear-gradient(115deg,var(--warm),var(--surface));border-color:var(--line)}.manifesto-art{opacity:.42}.hero-code{box-shadow:5px 8px 0 #a66b3510,0 10px 30px #78492308}.mini-badge,.category-chips a.selected{border-color:var(--line)}.product-meta,.section-caption,.eyebrow,.cache-note{color:var(--muted)}
[data-theme=dark] .product-icon{background:color-mix(in srgb,var(--tile) 25%,var(--surface));color:var(--ink)}[data-theme=dark] .product-icon img{filter:brightness(.82) saturate(.78)}[data-theme=dark] .entry-content pre{background:#1e2821;color:#c8d8c7}[data-theme=dark] .manifesto-art>span{color:#8fa68e}[data-theme=dark] .art-star{color:#c7a47b}[data-theme=dark] .software-facts dd .icon{color:#d0ae7e}
.has-share-dialog{overflow:hidden}.social-share-dialog{position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:27px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 22px 80px #182b2440}.social-share-dialog::backdrop{background:#16221b85;backdrop-filter:blur(4px)}.share-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.share-dialog-heading h2{font-size:22px;margin:9px 0 0;letter-spacing:-.5px}.share-dialog-heading .eyebrow{font-size:8px}.share-dialog-title{font-size:13px;color:var(--body);margin:20px 0 23px;overflow-wrap:anywhere}.social-share-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.social-share-grid>a,.social-share-grid>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:100px;border:1px solid var(--line);background:var(--bg);border-radius:11px;color:var(--body);font-size:12px;padding:12px 5px}.social-share-grid span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--soft);color:var(--accent);font-size:18px;font-weight:700}.social-share-grid>a:hover,.social-share-grid>button:hover{border-color:var(--accent);background:var(--warm);color:var(--accent)}.share-dialog-bottom{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;display:flex;align-items:center;gap:12px}.share-dialog-bottom p{font-size:11px;color:var(--muted);margin:0;line-height:1.9}.share-dialog-bottom .button{font-size:11px;padding:8px 10px;flex-shrink:0}@media(max-width:480px){.social-share-dialog{padding:22px}.share-dialog-heading h2{font-size:20px}.social-share-grid{gap:8px}.social-share-grid>a,.social-share-grid>button{font-size:11px;min-height:94px}.share-dialog-bottom{display:block}.share-dialog-bottom .button{width:100%;margin-top:13px}}@media print{.social-share-dialog{display:none!important}}

.share-bar>div:only-child{margin-left:auto}
