.category-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:var(--category-icon-size,22px);height:var(--category-icon-size,22px);flex:none;margin-inline-end:0;line-height:1;font-size:var(--category-icon-size,22px)}
.category-icon>img{display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;border:0;border-radius:4px;margin:0;position:static!important;inset:auto!important;box-shadow:none;filter:none;transform:none}

/* Align category artwork with the template's own label typography. */
body.theme-hongmeng a:has(>.category-icon){display:inline-flex;align-items:center;column-gap:6px;vertical-align:middle}
body.theme-hongmeng .category-label{min-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.4}
body.theme-hongmeng .cate-box>p{display:flex;align-items:center;justify-content:center;gap:6px}

/* Category artwork and text occupy separate columns. */
body.theme-hongmeng .main .cate .cate-box{display:inline-flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;min-height:67px;height:auto;padding:12px 16px}
body.theme-hongmeng .main .cate .cate-box>.category-icon{width:28px;height:28px;margin:0}
body.theme-hongmeng .main .cate .category-copy{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;text-align:left}
body.theme-hongmeng .main .cate .category-copy>.category-label{font-size:12px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
body.theme-hongmeng .main .cate .category-count{font-size:11px;line-height:1.4;color:var(--sub);white-space:nowrap}
body.theme-hongmeng .main .cate .cate-box-select .category-copy{color:#fff}
body.theme-hongmeng .main .cate .cate-box-select .category-count{color:rgb(255 255 255 / .88)}
body.theme-hongmeng .main .cate{display:flex;flex-wrap:wrap;gap:10px}
body.theme-hongmeng .main .cate .cate-box{min-width:174px;margin:0}
@media(max-width:767px){body.theme-hongmeng .main .cate{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.theme-hongmeng .main .cate .cate-box{min-width:0;width:auto;padding:10px 12px;gap:8px}body.theme-hongmeng .main .cate .cate-box>.category-icon{width:24px;height:24px}}

/* Only the official logo grows into the reserved right-hand area on selection. */
body.theme-hongmeng .main .cate .cate-box.category-default-logo.cate-box-select{isolation:isolate;padding:10px 72px 10px 12px}
body.theme-hongmeng .main .cate .cate-box.category-default-logo.cate-box-select>.category-icon{position:absolute;right:10px;top:50%;width:52px;height:52px;z-index:0;opacity:.85;pointer-events:none;filter:drop-shadow(0 2px 2px rgb(10 40 70 / .12));transform:translateY(-50%);animation:category-logo-reveal .22s ease-out both,category-logo-float 3.2s .22s ease-in-out infinite}
body.theme-hongmeng .main .cate .cate-box.category-default-logo.cate-box-select>.category-copy{position:relative;z-index:1;flex:1;min-width:0;align-items:flex-start;text-align:left}
@keyframes category-logo-reveal{from{transform:translateY(-50%) scale(.75);opacity:0}to{transform:translateY(-50%) scale(1);opacity:.85}}
@keyframes category-logo-float{0%,100%{transform:translateY(-50%)}50%{transform:translateY(calc(-50% - 2px))}}
@media(max-width:767px){body.theme-hongmeng .main .cate .cate-box.category-default-logo.cate-box-select{padding:8px 52px 8px 10px}body.theme-hongmeng .main .cate .cate-box.category-default-logo.cate-box-select>.category-icon{right:8px;width:36px;height:36px}body.theme-hongmeng .main .cate .category-count{font-size:10px}}
@media(max-width:360px){body.theme-hongmeng .main .cate{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){body.theme-hongmeng .main .cate .cate-box.category-default-logo.cate-box-select>.category-icon{animation:none;transform:translateY(-50%);opacity:.85}}
