/* ============================================================
   AI工具宝库 · v4 流金翡翠版
   暖黑底 + 流金/翡翠双色系统 + 粒子星链 + 鼠标光效
   (全站零蓝紫/零青色)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:          #080a07;   /* 暖黑(微绿意) */
    --bg-deep:     #050604;
    --card:        rgba(255, 255, 255, .035);
    --card-hover:  rgba(255, 255, 255, .068);
    --border:      rgba(255, 255, 255, .10);
    --border-soft: rgba(255, 255, 255, .06);
    --text:        #f2f5ee;
    --text-dim:    #a8b3a2;
    --text-faint:  #6f7c6a;
    --gold:        #ffc24d;   /* 流金 */
    --gold-deep:   #e8962e;
    --emerald:     #1fd98a;   /* 翡翠 */
    --emerald-deep:#0fae6b;
    --radius:      18px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(232, 150, 46, .12), transparent 60%),
        radial-gradient(900px 620px at 4% 20%,   rgba(31, 217, 138, .07), transparent 60%),
        radial-gradient(1100px 700px at 50% 118%, rgba(255, 194, 77, .06), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 点阵网格底纹(上浓下隐) ---------- */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 246, 220, .05) 1px, transparent 1.4px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 62%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 62%);
}

/* ---------- 噪点纹理(提升质感) ---------- */
body::after {
    content: "";
    position: fixed; inset: 0; z-index: 9999; pointer-events: none;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 顶部流金能量线 ---------- */
.beam {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(255, 194, 77, 0), rgba(255, 194, 77, .95) 22%,
        rgba(31, 217, 138, .95) 50%, rgba(255, 194, 77, .95) 78%,
        rgba(255, 194, 77, 0));
    background-size: 220% 100%;
    animation: beamflow 9s linear infinite;
}
@keyframes beamflow { to { background-position: 220% 0; } }

/* ---------- 粒子画布 ---------- */
#particles {
    position: fixed; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* ---------- 光标辉光(金绿) ---------- */
#cursorGlow {
    position: fixed; left: 0; top: 0; z-index: 3;
    width: 460px; height: 460px;
    margin: -230px 0 0 -230px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(closest-side,
        rgba(255, 194, 77, .11), rgba(31, 217, 138, .06) 45%, transparent 72%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity .4s;
    will-change: transform;
}
@media (hover: none), (pointer: coarse) { #cursorGlow { display: none; } }
body.cursor-active #cursorGlow { opacity: 1; }

/* ---------- 滚动条 / 选区 / 焦点 ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--emerald));
    border-radius: 6px; border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffd27a, #3ce89e); }
::selection { background: rgba(255, 194, 77, .32); color: #fff; }
a:focus-visible, button:focus-visible {
    outline: 2px solid rgba(31, 217, 138, .7); outline-offset: 2px;
}

/* v9: 自适应宽屏 — 小屏贴边, 大屏渐增至1760px上限, 两侧仅留小空白 */
.wrap { max-width: 1760px; margin-inline: auto; padding-inline: clamp(16px, 2vw, 34px); position: relative; z-index: 2; }
a { color: inherit; }

/* ============ 页眉 ============ */
.site-header {
    position: relative; z-index: 10;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(8, 10, 7, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep) 45%, var(--emerald));
    box-shadow: 0 0 22px rgba(255, 180, 60, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.logo-text {
    font-size: 21px; font-weight: 800; letter-spacing: .5px;
    background: linear-gradient(92deg, #fff 30%, #ffe3ad 70%, #ffd98f);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--text);
}
.header-nav { display: flex; gap: 4px; }
.header-nav a {
    font-size: 13.5px; color: var(--text-dim); text-decoration: none;
    padding: 8px 13px; border-radius: 9px; transition: all .2s;
}
.header-nav a:hover { color: var(--gold); background: rgba(255, 194, 77, .08); }

/* ============ v10 搜索带(唯一首屏区: 搜索+热搜词+一行统计) ============ */
.search-band {
    position: relative; z-index: 2;
    padding: 34px 0 26px;
    text-align: center;
}
.search-band .wrap {
    display: flex; flex-direction: column; align-items: center; gap: 13px;
}

/* ---------- 搜索框 ---------- */
.search-wrap { width: min(640px, 100%); margin: 0; }
.search-box {
    display: flex; align-items: center; gap: 10px;
    height: 54px; padding: 0 18px; border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within {
    border-color: rgba(31, 217, 138, .55);
    box-shadow: 0 0 0 4px rgba(31, 217, 138, .12), 0 10px 32px -12px rgba(31, 217, 138, .3);
}
.search-box svg { color: var(--text-faint); flex: none; transition: color .25s; }
.search-box:focus-within svg { color: var(--emerald); }
#searchInput {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 14.5px; font-family: inherit; min-width: 0;
}
#searchInput::placeholder { color: var(--text-faint); }
.search-clear {
    display: none; flex: none; width: 26px; height: 26px;
    border: none; border-radius: 8px; cursor: pointer;
    background: rgba(255, 255, 255, .08); color: var(--text-dim);
    font-size: 16px; line-height: 1; transition: all .2s;
}
.search-clear:hover { background: rgba(255, 194, 77, .2); color: var(--gold); }
.search-tip { margin-top: 11px; text-align: center; font-size: 12.5px; color: var(--gold); min-height: 18px; }

/* ---------- 热搜关键词chips ---------- */
.kw-chips {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    flex-wrap: wrap; max-width: 880px;
}
.kw-label { font-size: 12px; color: var(--text-faint); letter-spacing: 2.5px; flex: none; font-weight: 700; }
.kw-chip {
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text-dim); font-size: 12.5px; font-family: inherit;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.kw-chip:hover {
    color: var(--gold); border-color: rgba(255, 194, 77, .5);
    background: rgba(255, 194, 77, .08); transform: translateY(-1px);
}

/* ---------- 一行统计 ---------- */
.mini-stats { font-size: 12.5px; color: var(--text-faint); letter-spacing: .4px; margin: 0; }
.mini-stats b { color: var(--gold); font-weight: 700; font-size: 13.5px; }

/* ============ 通用节标题 ============ */
.section-title {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; font-size: 21px; font-weight: 800;
}
.section-title .count { font-size: 12px; color: var(--text-faint); font-weight: 400; letter-spacing: .5px; }
.section-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 194, 77, .4), transparent); }

/* ============ 热门徽章(v10: 热门推荐节标题用) ============ */
.hot-pill {
    padding: 3px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
    color: #3d2600;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    box-shadow: 0 4px 14px -4px rgba(255, 170, 50, .55);
    flex: none;
}

/* ============ 分类导航(吸顶) ============ */
.cat-nav {
    position: sticky; top: 0; z-index: 40;
    margin-top: 16px; padding: 10px 0;
    background: rgba(8, 10, 7, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.cat-pills {
    display: flex; gap: 8px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    padding: 2px 0;
}
.cat-pills::-webkit-scrollbar { display: none; }
.pill {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text-dim); font-size: 13px; text-decoration: none;
    transition: border-color .22s, color .22s, background .22s, box-shadow .22s;
    white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc1); box-shadow: 0 0 8px var(--pc1); flex: none; }
.pill:hover { border-color: rgba(var(--pcrgb), .6); color: var(--text); }
.pill.active {
    background: linear-gradient(135deg, var(--pc1), var(--pc2));
    border-color: transparent; color: #10130d; font-weight: 700;
    box-shadow: 0 4px 16px -4px rgba(var(--pcrgb), .6);
}
.pill.active .dot { background: rgba(16, 19, 13, .8); box-shadow: none; }

/* ============ 分类列表 ============ */
.main-list { padding: 14px 0 30px; }
.category { margin: 42px 0; scroll-margin-top: 72px; }
/* v10: 热门推荐为主区第一个节, 顶部间距收紧 */
.category.hot-first { margin-top: 16px; }
.category .section-title .badge {
    width: 36px; height: 36px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 800; color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 6px 18px -5px rgba(var(--crgb), .6);
}
.category .section-title .line { background: linear-gradient(90deg, rgba(var(--crgb), .5), transparent); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
    gap: 14px;
}

/* ============ 工具卡片 ============ */
.card {
    position: relative; display: flex; align-items: flex-start; gap: 13px;
    padding: 17px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    text-decoration: none; color: var(--text);
    overflow: hidden;
    transition: transform .2s ease, border-color .25s, box-shadow .3s, background-color .25s;
}
.card:hover {
    border-color: rgba(var(--crgb), .55);
    background: var(--card-hover);
    box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .65), 0 0 26px -10px rgba(var(--crgb), .4);
}

/* 鼠标聚光灯(JS写入--mx/--my, 无JS时静止在中心) */
.card::after {
    content: ""; position: absolute; inset: 0;
    border-radius: inherit; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(var(--crgb), .17), transparent 62%);
    opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }

/* ---------- 图标位 ---------- */
.avatar {
    position: relative; flex: none;
    width: 54px; height: 54px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .09);
    transition: border-color .25s, box-shadow .25s;
    overflow: hidden;
}
.avatar img { width: 33px; height: 33px; object-fit: contain; transition: transform .3s; }
.card:hover .avatar {
    border-color: rgba(var(--crgb), .5);
    box-shadow: 0 0 18px -6px rgba(var(--crgb), .5);
}
.card:hover .avatar img { transform: scale(1.1); }

/* 无图标兜底: 分类渐变字母块(与本地图标同一容器, 视觉统一) */
.avatar.noimg::after {
    content: attr(data-letter); position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
}
.avatar.noimg img { display: none; }

/* ---------- 卡片内容 ---------- */
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.name { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 700; }
.mini-hot {
    padding: 1px 6px; border-radius: 5px; flex: none;
    font-size: 9px; font-weight: 800; letter-spacing: 1px;
    color: #3d2600;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid; line-height: 1.5; white-space: nowrap; }
.tag-free     { background: rgba(31, 217, 138, .12);  color: #6fe3ae; border-color: rgba(31, 217, 138, .28); }
.tag-freemium { background: rgba(255, 194, 77, .12);  color: #ffcf7d; border-color: rgba(255, 194, 77, .3); }
.tag-paid     { background: rgba(255, 95, 110, .12);  color: #ff8d95; border-color: rgba(255, 95, 110, .28); }
.tag-magic    { background: rgba(255, 138, 61, .13);  color: #ffb07d; border-color: rgba(255, 138, 61, .3); }
.desc {
    font-size: 12.5px; color: var(--text-dim); line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 访问按钮 ---------- */
.go {
    flex: none; width: 30px; height: 30px; border-radius: 10px; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); color: var(--text-faint);
    transition: all .25s;
}
.card:hover .go {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    border-color: transparent; color: #10130d;
    transform: translateX(2px);
}

/* ---------- 滚动浮现(用translate/scale属性, 与3D倾斜的transform互不冲突) ---------- */
.js .card { opacity: 0; translate: 0 18px; scale: .98; }
.js .card.visible {
    opacity: 1; translate: 0 0; scale: 1;
    transition: opacity .55s ease, translate .55s cubic-bezier(.22, .8, .32, 1.08), scale .55s ease;
}

/* ============ 搜索无结果 ============ */
.empty {
    display: none; margin: 54px auto; padding: 46px 20px;
    text-align: center; max-width: 520px;
    border: 1px dashed var(--border); border-radius: 18px;
    background: rgba(255, 255, 255, .02); color: var(--text-faint);
}
.empty svg { color: rgba(255, 194, 77, .55); margin-bottom: 12px; }
.empty b { display: block; color: var(--text-dim); font-size: 16px; margin-bottom: 6px; }

/* ============ 广告位 ============ */
.ad-slot {
    margin: 28px auto; padding: 26px 16px;
    text-align: center; font-size: 12.5px; color: var(--text-faint);
    border: 1.5px dashed rgba(255, 194, 77, .3);
    border-radius: 14px;
    background: rgba(255, 194, 77, .03);
}
.ad-slot b { color: rgba(255, 207, 125, .85); margin-right: 6px; letter-spacing: 1.5px; }

/* ============ 页脚 ============ */
.site-footer {
    position: relative; z-index: 2;
    border-top: 1px solid var(--border-soft);
    padding: 30px 20px 36px;
    text-align: center; color: var(--text-faint); font-size: 12.5px;
}
.footer-brand { color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }
.footer-brand, .site-footer p { margin-top: 0; }
.site-footer p { margin: 4px 0; }

/* ============ 返回顶部 ============ */
.back-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 50;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 194, 77, .45);
    background: rgba(10, 13, 9, .88); color: var(--gold);
    cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, visibility .3s, transform .3s, background .2s;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #3d2600; border-color: transparent;
    box-shadow: 0 8px 22px -8px rgba(255, 170, 50, .6);
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .site-header .wrap { height: 56px; }
    .logo-mark { width: 33px; height: 33px; border-radius: 10px; }
    .logo-text { font-size: 18px; }
    .header-nav a { font-size: 12.5px; padding: 6px 9px; }
    .search-band { padding: 24px 0 18px; }
    .search-box { height: 48px; }
    .kw-chips { gap: 6px; }
    .kw-chip { padding: 5px 11px; font-size: 12px; }
    .kw-label { display: none; }
    .main-list { padding: 12px 0 24px; }
    .layout { padding: 0 14px; }
    .category { margin: 30px 0; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
    .card { padding: 13px 12px; gap: 10px; }
    .avatar { width: 46px; height: 46px; border-radius: 12px; }
    .avatar img { width: 28px; height: 28px; }
    .avatar.noimg::after { font-size: 19px; }
    .info { gap: 4px; }
    .name { font-size: 14px; }
    .desc { font-size: 11.5px; -webkit-line-clamp: 2; }
    .go { width: 26px; height: 26px; border-radius: 8px; }
    .section-title { font-size: 18px; }
    .category .section-title .badge { width: 31px; height: 31px; font-size: 15px; border-radius: 9px; }
    .ad-slot { margin: 20px auto; padding: 20px 12px; }
}
@media (max-width: 400px) {
    .grid { grid-template-columns: 1fr; }
    .header-nav { gap: 0; }
}

/* ============ 减少动态(无障碍) ============ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .beam { animation: none; }
    .js .card { opacity: 1; translate: none; scale: none; }
    .card, .card::after { transition: none; }
}

/* ============ v10 本站自建轻量入口条 ============ */
.slim-promo {
    display: flex; align-items: center; gap: 15px; flex-wrap: wrap;
    margin: 26px 0; padding: 15px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(31, 217, 138, .26);
    background:
        linear-gradient(rgba(13, 16, 12, .94), rgba(13, 16, 12, .94)) padding-box,
        linear-gradient(120deg, rgba(31, 217, 138, .5), rgba(255, 194, 77, .38)) border-box;
    position: relative; overflow: hidden;
}
.sp-ico {
    flex: none; width: 44px; height: 44px; border-radius: 13px;
    display: grid; place-items: center;
    background: rgba(31, 217, 138, .12);
    border: 1px solid rgba(31, 217, 138, .35);
    box-shadow: 0 0 18px -8px rgba(31, 217, 138, .55);
    color: var(--emerald);
}
.sp-ico svg { width: 22px; height: 22px; }
.sp-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-body b { font-size: 15px; font-weight: 800; }
.sp-body i { font-style: normal; font-size: 12px; color: var(--text-dim); line-height: 1.55; }
.sp-links { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sp-links a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text-dim); font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all .2s; white-space: nowrap;
}
.sp-links a i {
    font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 6px;
    background: rgba(255, 255, 255, .07); color: var(--text-faint); letter-spacing: .5px;
}
.sp-links a:hover {
    color: #6fe3ae; border-color: rgba(31, 217, 138, .45);
    background: rgba(31, 217, 138, .08); transform: translateY(-1px);
}
.sp-links a.sp-hot { color: var(--gold); border-color: rgba(255, 194, 77, .35); }
.sp-links a.sp-hot i { background: rgba(255, 194, 77, .15); color: var(--gold); }

/* 本站自建标签(卡片角标) */
.tag-self {
    background: rgba(31, 217, 138, .16);
    color: #5feeb2;
    border-color: rgba(31, 217, 138, .4);
}

/* 内链工具卡片: 翡翠描边微光 */
.card.self { border-color: rgba(31, 217, 138, .3); }
.card.self:hover {
    border-color: rgba(31, 217, 138, .65);
    box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .65), 0 0 26px -10px rgba(31, 217, 138, .45);
}
.card.self .go { color: rgba(111, 227, 174, .8); border-color: rgba(31, 217, 138, .3); }

/* v10: 自建轻量条窄屏: 入口chips换行铺满 */
@media (max-width: 768px) {
    .slim-promo { padding: 13px 14px; gap: 11px; }
    .sp-ico { width: 38px; height: 38px; border-radius: 11px; }
    .sp-ico svg { width: 19px; height: 19px; }
    .sp-body b { font-size: 14px; }
    .sp-body i { font-size: 11px; }
    .sp-links { margin-left: 0; width: 100%; }
    .sp-links a { flex: 1; justify-content: center; padding: 7px 10px; font-size: 12px; }
    .header-nav { justify-content: center; }
}

/* ============ v7 搜索快捷键提示(/ 聚焦搜索) ============ */
.kbd-tip {
    flex: none; margin-right: 2px;
    font-size: 11px; font-weight: 800; line-height: 1;
    color: var(--text-faint);
    border: 1px solid var(--border); border-bottom-width: 2px;
    border-radius: 5px; padding: 3px 7px;
    pointer-events: none; user-select: none;
    transition: color .25s, border-color .25s;
}
.search-box:focus-within .kbd-tip { display: none; }
@media (hover: none), (pointer: coarse) { .kbd-tip { display: none; } }

/* ============ v7 左侧分类侧边栏(桌面端) + 双栏布局 ============ */
/* v9: 布局随视口自适应放宽至1760px */
.layout {
    max-width: 1760px; margin-inline: auto; padding-inline: clamp(16px, 2vw, 34px);
    display: grid; grid-template-columns: 212px minmax(0, 1fr);
    gap: 28px; align-items: start;
    position: relative; z-index: 2;
}
.side-nav {
    display: none;
    position: sticky; top: 14px;
    max-height: calc(100vh - 28px);
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 13px 11px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    background: rgba(10, 13, 9, .8);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .7);
}
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255, 194, 77, .25); border: none; border-radius: 4px; }
.side-title {
    margin: 12px 9px 7px; padding-top: 2px;
    font-size: 11px; font-weight: 800; letter-spacing: 2.5px;
    color: var(--text-faint); user-select: none;
}
.side-title.side-gap { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border-soft); }
.side-item {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px; border-radius: 10px;
    font-size: 13.5px; color: var(--text-dim); text-decoration: none;
    transition: background .18s, color .18s, box-shadow .18s;
}
.side-item .dot {
    width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: var(--pc1); box-shadow: 0 0 8px var(--pc1);
    opacity: .75; transition: opacity .18s, box-shadow .18s;
}
.side-item .s-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item .s-count {
    flex: none; font-size: 11px; font-weight: 700; line-height: 1;
    color: var(--text-faint);
    background: rgba(255, 255, 255, .05);
    border-radius: 999px; padding: 4px 8px;
    transition: color .18s, background .18s;
}
.side-item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.side-item:hover .dot { opacity: 1; }
.side-item.active {
    background: linear-gradient(90deg, rgba(var(--pcrgb), .2), rgba(var(--pcrgb), .03));
    color: #fff; font-weight: 600;
    box-shadow: inset 3px 0 0 var(--pc1);
}
.side-item.active .dot { opacity: 1; box-shadow: 0 0 10px var(--pc1); }
.side-item.active .s-count { color: #10130d; background: linear-gradient(135deg, var(--pc1), var(--pc2)); }
.side-item.side-hot { color: var(--gold); margin-bottom: 2px; }
.side-item.side-hot svg { flex: none; }
.side-item.side-hot:hover { background: rgba(255, 194, 77, .1); }
.side-item.side-mini svg { flex: none; color: var(--emerald); opacity: .9; }

/* 搜索时无结果分类的导航项置灰(侧栏与胶囊同步) */
.side-item.dim, .pill.dim { opacity: .32; pointer-events: none; filter: saturate(.4); }

/* 桌面端(≥1101px): 显示左侧侧边栏, 隐藏横向胶囊; 窄屏反之 */
@media (min-width: 1101px) {
    .cat-nav { display: none; }
    .side-nav { display: block; }
    .category { scroll-margin-top: 20px; }
}
@media (max-width: 1100px) {
    .layout { display: block; max-width: 1200px; }
    .side-nav { display: none; }
}



/* ============================================================
 * v12: 热度徽章 + 长分类折叠 (千款级扩容配套)
 * ============================================================ */
.tag.heat {
    background: rgba(217, 194, 46, .12);
    color: #e6cf6e;
    border-color: rgba(217, 194, 46, .38);
    font-weight: 700;
    letter-spacing: .3px;
}
.tag.heat-top {
    background: rgba(255, 158, 63, .16);
    color: #ffb07d;
    border-color: rgba(255, 158, 63, .45);
}
.card.fold { display: none; }
.category.expanded .card.fold { display: flex; }
/* 搜索进行中: 解除折叠限制, 全量参与匹配 */
body.searching .card.fold { display: flex; }
body.searching .fold-bar { display: none; }
.fold-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 2px 0 6px;
}
.fold-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 22px;
    border-radius: 999px;
    border: 1px solid rgba(217, 194, 46, .4);
    background: rgba(217, 194, 46, .07);
    color: #e6cf6e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.fold-btn:hover {
    background: rgba(217, 194, 46, .16);
    border-color: rgba(217, 194, 46, .7);
    color: #f3e29a;
}
.fold-btn svg { transition: transform .25s ease; }
.fold-btn.open svg { transform: rotate(180deg); }
