:root{--web3-ink:#17202a;--web3-muted:#7d8790;--web3-line:#e3e8eb;--web3-accent:#28636b}
.trm-banner{min-height:65vh;max-height:78vh}
.trm-banner .trm-banner-content{min-height:65vh}
.trm-banner-cover.is-video-failed{display:none}
.trm-menu-btn{appearance:none;border:0;background:transparent;padding:0}
.web3-content{position:relative;isolation:isolate;background:#fbfcfc;overflow:visible}
/* 主题的正文容器小于视口，节点层必须主动扩展到全屏宽度，否则两侧留白会被父容器裁掉。 */
.web3-network{position:absolute;top:0;bottom:0;left:50%;width:100vw;z-index:0;pointer-events:none;opacity:.065;transform:translateX(-50%);background-image:url('../img/web3-network.svg'),url('../img/web3-network.svg');background-repeat:no-repeat;background-position:left -4rem top 2rem,right -5rem center;background-size:min(32vw,500px) auto,min(29vw,440px) auto}
.web3-content-inner{position:relative;z-index:1;max-width:1030px;margin:0 auto;padding:clamp(3rem,8vw,7rem) 2rem 6rem}
.content-nav{display:flex;gap:1.6rem;margin-bottom:4rem}
.content-nav a{color:var(--web3-muted);font-size:.82rem;text-decoration:none}
.content-nav a:hover,.content-nav a.is-active{color:var(--web3-ink)}
.content-nav a.is-active{border-bottom:1px solid var(--web3-accent);padding-bottom:.3rem}
.post-year{position:relative;margin-bottom:4rem}
.post-year-label{position:absolute;left:-.2rem;top:-2.1rem;margin:0;color:#e8edef;font-size:clamp(4rem,10vw,8rem);font-weight:700;line-height:1;z-index:-1}
.post-list{border-top:1px solid var(--web3-line)}
.post-row{display:grid;grid-template-columns:7rem 1fr auto;gap:1.5rem;align-items:baseline;padding:1.15rem 0;border-bottom:1px solid var(--web3-line);color:var(--web3-ink);text-decoration:none}
.post-row:hover .post-title{color:var(--web3-accent);transform:translateX(3px)}
.post-category{font-size:.72rem;color:var(--web3-muted)}
.post-title{font-size:1.05rem;transition:color .2s,transform .2s}
.post-row time{font-size:.75rem;color:var(--web3-muted);white-space:nowrap}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dark .web3-content{background:#12171a}
.dark .web3-network{opacity:.04}
.dark .post-year-label{color:#20292d}
.dark .post-row{color:#e5eaec;border-color:#283136}
.dark .post-list{border-color:#283136}
/* 正文独立于 Hero 和卡片系统，限制行宽是为了保证中英文长文的扫描效率。 */
.post-shell{min-height:100vh;background:#fbfcfc;padding:9rem 1.5rem 4rem;color:var(--web3-ink)}
.post-shell-inner{width:min(100%,780px);margin:0 auto}
.post-heading{margin-bottom:3rem;padding-bottom:1.8rem;border-bottom:1px solid var(--web3-line)}
.post-heading h1{margin:0 0 1.2rem;font-size:2.35rem;line-height:1.28;letter-spacing:0}
.post-meta{display:flex;flex-wrap:wrap;gap:.65rem 1.2rem;color:var(--web3-muted);font-size:.78rem}
.post-toc-aside{position:fixed;top:9rem;left:calc(50% + 420px);width:220px;max-height:calc(100vh - 12rem);overflow:auto;font-size:.76rem;line-height:1.65}
.post-toc-aside a{color:var(--web3-muted);text-decoration:none}
.post-toc-aside a:hover{color:var(--web3-accent)}
.post-toc-aside ol{margin:.3rem 0;padding-left:1.1rem}
.post-mobile-toc{display:none;margin:0 0 2rem;border-top:1px solid var(--web3-line);border-bottom:1px solid var(--web3-line);padding:.8rem 0}
.post-mobile-toc summary{cursor:pointer;color:var(--web3-muted);font-size:.82rem}
.post-reading-surface{background:transparent}
.post-reading-surface .trm-publication{font-size:1rem;line-height:1.85}
.post-reading-surface .trm-publication p,.post-reading-surface .trm-publication li{line-height:1.85}
.post-reading-surface .trm-publication img{height:auto;max-width:100%}
.post-reading-surface .trm-publication table{display:block;max-width:100%;overflow-x:auto}
.post-reading-surface figure.highlight{max-width:100%;overflow-x:auto}
.post-reading-surface pre{overflow-x:auto}
.post-reading-surface blockquote{margin:1.8rem 0;border-left:3px solid var(--web3-accent);background:transparent}
.post-reading-surface .trm-post-copyright{border-top:1px solid var(--web3-line);border-bottom:1px solid var(--web3-line)}
.collection-summary{margin:0 0 4rem;color:var(--web3-muted);font-size:.85rem}
.dark .post-shell{background:#12171a;color:#e5eaec}
.dark .post-heading{border-color:#283136}
.dark .post-reading-surface .trm-publication{color:#d7dde0}
@media(max-width:640px){.trm-banner,.trm-banner .trm-banner-content{min-height:48vh;max-height:60vh}
.web3-content-inner{padding:3rem 1.25rem}
.content-nav{gap:1rem;flex-wrap:wrap;margin-bottom:3rem}
.post-row{grid-template-columns:5rem 1fr;gap:.45rem .8rem}
.post-row time{grid-column:2}
.post-title{font-size:.98rem}
.web3-network{background-image:url('../img/web3-network.svg');background-position:right -8rem top 3rem;background-size:90vw auto;opacity:.035}
.post-shell{padding:7rem 1.2rem 3rem}
.post-heading h1{font-size:1.85rem}
.post-toc-aside{display:none}
.post-mobile-toc{display:block}
}
@media(min-width:641px) and (max-width:1279px){.post-toc-aside{display:none}.post-mobile-toc{display:block}}
@media(prefers-reduced-motion:reduce){.post-title{transition:none}
}
