/* Joint identity: source SVGs displayed in white, originals preserved. */
.topbar,.resource-header{background:#0852ff;border-bottom:0;color:#fff;height:auto;min-height:88px}
.topbar .top-inner,.resource-header .bar{min-height:88px;padding-top:16px;padding-bottom:16px}
.dc-brand{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;flex-shrink:0;text-decoration:none;color:white;width:288px}
.dc-brand-row{display:flex;align-items:center;justify-content:flex-start;gap:11.2px;width:100%;height:35.2px}
.dc-brand .dc-hina{width:147.2px;height:30.4px;object-fit:contain;filter:brightness(0) invert(1)}
.dc-brand .dc-miaozhao{width:106.4px;height:45.6px;object-fit:contain;filter:brightness(0) invert(1)}
.dc-cross{font-size:18.4px;font-weight:400;line-height:1;color:#a5c1ff}
.dc-brand-subtitle{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:9px;font-weight:600;letter-spacing:1.3px;line-height:1.2;color:#a5c1ff;white-space:nowrap}
.topbar .internal-label,.topbar .quiet-button,.resource-header .back{color:#d9e5ff}
.topbar .internal-label:before{background:#b8d4ff}
.topbar .button.small{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);color:white}
.topbar .button.small:hover{background:rgba(255,255,255,.2)}
.topbar a:focus-visible,.topbar button:focus-visible,.resource-header a:focus-visible{outline:3px solid #b9d2ff;outline-offset:4px}
@media(max-width:600px){.topbar,.resource-header{min-height:80px}.topbar .top-inner,.resource-header .bar{min-height:80px;padding:12px 20px;gap:12px}.dc-brand{width:228px;gap:10px}.dc-brand-row{height:28px;gap:8px}.dc-brand .dc-hina{width:116px;height:24px}.dc-brand .dc-miaozhao{width:84px;height:36px}.dc-cross{font-size:17px}.dc-brand-subtitle{font-size:8px;letter-spacing:1px}.resource-header .back{font-size:11px;white-space:nowrap}}

/* Compact home: count sits beside search, without a repeated title block. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.portal-compact main{padding-top:32px}
.toolbar-summary{display:flex;align-items:center;gap:20px;margin-left:auto}
.published-count{display:flex;align-items:baseline;gap:5px;white-space:nowrap;color:var(--muted);font-size:12px}
.published-count strong{font-size:14px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.toolbar-summary .search{width:280px}
@media(max-width:1000px){.toolbar-summary{width:100%;margin-left:0;gap:16px}.toolbar-summary .search{flex:1;width:auto;min-width:0;max-width:none}}
@media(max-width:600px){.portal-compact main{padding-top:24px}.published-count{font-size:11px}.published-count strong{font-size:12px}}

button.dc-brand{border:0;background:transparent;padding:0;font:inherit;cursor:pointer}button.dc-brand:hover{opacity:.9}button.dc-brand:active{opacity:.8}

/* Centered header and a single compact controls row. */
.portal-compact .top-inner{position:relative;justify-content:flex-start}
.portal-compact .top-actions{position:absolute;right:48px;top:50%;transform:translateY(-50%)}
.portal-compact .toolbar{border-bottom:0;padding-bottom:0;margin-bottom:20px}
.toolbar-summary .sort-label{white-space:nowrap;flex-shrink:0}
@media(max-width:600px){.portal-compact .top-actions{right:20px}.portal-compact .toolbar{margin-bottom:18px}.toolbar-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px}.toolbar-summary .sort-label{justify-self:end}.toolbar-summary .search{grid-column:1/-1;width:100%}}

/* Brand and browsing controls share the navigation bar. */
.portal-compact .top-inner{gap:24px;flex-wrap:nowrap}
.portal-compact .dc-brand{width:220px;gap:8px}
.portal-compact .dc-brand-row{height:27px;gap:8px}
.portal-compact .dc-hina{width:112px;height:23.1px}
.portal-compact .dc-miaozhao{width:81px;height:34.7px}
.portal-compact .dc-cross{font-size:14px}
.portal-compact .dc-brand-subtitle{font-size:8px;letter-spacing:1px}
.portal-compact .topbar .toolbar{display:flex;flex:1;align-items:center;gap:14px;margin:0;padding:0;border:0;min-width:0;flex-wrap:nowrap}
.portal-compact .topbar .filters{gap:2px;flex-shrink:0}
.portal-compact .topbar .filter{color:#d5e2ff;padding:8px 9px;font-size:12px;white-space:nowrap}
.portal-compact .topbar .filter small{color:#a9c5ff;font-size:10px}
.portal-compact .topbar .filter:hover{background:rgba(255,255,255,.1);color:#fff}
.portal-compact .topbar .filter[aria-pressed=true]{background:rgba(255,255,255,.18);color:white}
.portal-compact .topbar .filter[aria-pressed=true] small{color:white}
.portal-compact .topbar .toolbar-summary{display:flex;width:auto;gap:12px;margin-left:auto;min-width:0}
.portal-compact .topbar .published-count,.portal-compact .topbar .sort-label{color:#d5e2ff;font-size:11px}
.portal-compact .topbar .published-count strong{color:white;font-size:12px}
.portal-compact .topbar .sort-label{gap:6px}
.portal-compact .topbar select{color:white;background:transparent;font-size:11px}
.portal-compact .topbar select option{color:#344257;background:white}
.portal-compact .topbar .search{width:190px;max-width:none;min-width:120px;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#d5e2ff}
.portal-compact .topbar .search input{color:white;font-size:12px;background:transparent}
.portal-compact .topbar .search input::placeholder{color:#d5e2ff}
.portal-compact .topbar .search kbd{display:none}
.portal-compact main{padding-top:24px}
@media(max-width:1100px){.portal-compact .top-inner{flex-wrap:wrap;gap:18px}.portal-compact .topbar .toolbar{flex-basis:100%;width:100%}.portal-compact .topbar .search{width:220px}}
@media(max-width:700px){.portal-compact .topbar .toolbar{flex-direction:column;align-items:stretch;gap:14px}.portal-compact .topbar .filters{flex-wrap:wrap}.portal-compact .topbar .toolbar-summary{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;gap:12px}.portal-compact .topbar .sort-label{justify-self:end}.portal-compact .topbar .search{grid-column:1/-1;width:100%;min-width:0}.portal-compact main{padding-top:18px}}

/* Right-aligned navigation and consistent quiet controls. */
.portal-compact .topbar .toolbar{justify-content:flex-end;gap:22px}
.portal-compact .topbar .toolbar-summary{margin-left:0;flex-shrink:0;gap:12px}
.portal-compact .topbar .sort-label{position:relative;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:rgba(255,255,255,.09)}
.portal-compact .topbar .sort-label:after{content:"";position:absolute;right:12px;top:14px;width:6px;height:6px;border-right:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:rotate(45deg);pointer-events:none}
.portal-compact .topbar .sort-label select{appearance:none;max-width:none;height:100%;padding:0 30px 0 12px;font-size:12px;outline-offset:3px}
.portal-compact .topbar .search{height:38px;border-radius:8px;background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.2);gap:9px;transition:background .15s,border-color .15s}
.portal-compact .topbar .search svg{width:16px;height:16px;flex:none;color:#d5e2ff}
.portal-compact .topbar .search:focus-within{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.65)}
.portal-compact .topbar .sort-label:hover{background:rgba(255,255,255,.16)}
.entry-thumbnail.type-icon{background:#f1f6ff;border-color:#e4ecf8;color:#5385cc}
.entry-thumbnail.type-icon svg{width:29px;height:29px}
.entry-thumbnail.type-web{color:#3483e8;background:#edf5ff}
@media(max-width:700px){.portal-compact .topbar .filters{justify-content:flex-end}.portal-compact .topbar .toolbar{gap:14px}.entry-thumbnail.type-icon svg{width:24px;height:24px}}

/* Shared category navigation across the directory and all content pages. */
.portal-compact .topbar .filter{display:inline-flex;align-items:center;justify-content:center;gap:7px}.portal-compact .topbar .filter small{display:none}.portal-compact .topbar .filter::before{content:"";display:block;width:15px;height:15px;flex-shrink:0;background:currentColor;mask:var(--category-icon) center/contain no-repeat;-webkit-mask:var(--category-icon) center/contain no-repeat}
[data-category="全部"]{--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3C%2Fsvg%3E")}
[data-category="交互原型"]{--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%209h18m-11%204-3%202%203%202m4-4%203%202-3%202%22%2F%3E%3C%2Fsvg%3E")}
[data-category="设计文档"]{--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h8l4%204v14H6zM14%203v5h4M9%2012h6m-6%204h6%22%2F%3E%3C%2Fsvg%3E")}
[data-category="工具插件"]{--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%203v5m6-5v5M6%208h12v3a6%206%200%200%201-12%200V8Zm6%209v4%22%2F%3E%3C%2Fsvg%3E")}
