/* ==========================================
   index.html 内联 <style> 提取（阶段 10.1）
   移动端分类网格样式；装饰性多色图标保留字面 hex（不令牌化）
   断点 992px（max-width: 992px）
   ========================================== */

.mobile-category-entry {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-category-entry {
        display: block !important;
        margin: 6px 0 12px;
    }

    .mobile-category-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px 2px;
        padding: 12px 6px;
        border: 1px solid #f0f1f5;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 6px 14px rgba(29, 33, 41, 0.05);
    }

    .mobile-category-item {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: #202124;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-category-icon {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: #fff2dc;
        color: #ff6a21;
        font-size: 17px;
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.65);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .mobile-category-item:active .mobile-category-icon {
        transform: scale(0.94);
        box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.04);
    }

    .mobile-category-name {
        display: block;
        width: 100%;
        overflow: hidden;
        color: #1f2329;
        font-size: 12px;
        font-weight: 500;
        line-height: 16px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-category-item:nth-child(10n+2) .mobile-category-icon {
        background: #e7f1ff;
        color: #1f73d6;
    }

    .mobile-category-item:nth-child(10n+3) .mobile-category-icon {
        background: #f5eaff;
        color: #8c45e8;
    }

    .mobile-category-item:nth-child(10n+4) .mobile-category-icon {
        background: #def8e8;
        color: #16a867;
    }

    .mobile-category-item:nth-child(10n+5) .mobile-category-icon {
        background: #ffe9e8;
        color: #ed4646;
    }

    .mobile-category-item:nth-child(10n+6) .mobile-category-icon {
        background: #fff6cf;
        color: #c98a00;
    }

    .mobile-category-item:nth-child(10n+7) .mobile-category-icon {
        background: #ecebff;
        color: #6556ec;
    }

    .mobile-category-item:nth-child(10n+8) .mobile-category-icon {
        background: #dcfbf8;
        color: #0097a7;
    }

    .mobile-category-item:nth-child(10n+9) .mobile-category-icon {
        background: #ffe8fa;
        color: #d938b7;
    }

    .mobile-category-item:nth-child(10n) .mobile-category-icon {
        background: #e2f8ea;
        color: #08a574;
    }
}
