@charset "UTF-8";
/* ==========================================================================
   clm26.com 磁力猫 - 前端样式（版式参考 ecy.de5.net 浅色导航站）
   浅灰底 + 白色圆角卡片 + 药丸分类条 + 图标/描述双行卡片网格。
   手写组件样式，零构建、零 JS 依赖；内容不依赖 JS 渲染。
   ========================================================================== */

:root {
    --brand:      #4f6ef7;
    --brand-2:    #7c5cff;
    --brand-bg:   #eef2ff;
    --bg:         #f4f5f7;
    --card:       #ffffff;
    --text:       #1f2330;
    --text-2:     #6b7280;
    --text-3:     #9ca3af;
    --line:       #eceef2;
    --line-2:     #f0f1f5;
    --radius:     14px;
    --radius-sm:  10px;
    --shadow:     0 1px 2px rgba(16, 24, 40, .04);
    --shadow-hov: 0 6px 18px rgba(79, 110, 247, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; font-size: inherit; font-weight: inherit; }
p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d8dce4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c3c9d4; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.sr-only, .skip-link {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: .5rem; left: .5rem; width: auto; height: auto;
    margin: 0; padding: .5rem 1rem; clip: auto; z-index: 200;
    background: var(--brand); color: #fff; border-radius: 999px;
}

/* ==================== 顶部卡片头 ==================== */
.site-header { padding-top: 14px; }

.hd-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--card); border-radius: var(--radius);
    padding: 10px 14px; box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.logo-mark {
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    background: linear-gradient(135deg, #7c9bff, var(--brand) 55%, var(--brand-2));
    color: #fff; font-size: 18px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(79, 110, 247, .25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-title { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.logo-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; }

.hd-search {
    flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; height: 44px; padding: 0 5px 0 12px;
    background: #fbfbfc; border: 1px solid var(--line); border-radius: 999px;
    transition: border-color .18s ease, background-color .18s ease;
}
.hd-search:focus-within { border-color: #c7d2fe; background: #fff; box-shadow: 0 0 0 3px rgba(79, 110, 247, .08); }

.hs-engine { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.hs-engine select {
    appearance: none; -webkit-appearance: none;
    border: 0; background: transparent; color: var(--text-2);
    font-size: 13px; padding: 0 18px 0 2px; height: 28px; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%239ca3af' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 2px center;
}
.hs-engine::after {
    content: ""; width: 1px; height: 16px; background: var(--line); margin-left: 8px;
}
.hs-input {
    flex: 1 1 auto; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    font-size: 14px; color: var(--text); padding: 0 10px;
}
.hs-input::placeholder { color: #b3b9c5; }
.hs-btn {
    width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff;
    transition: background-color .18s ease;
}
.hs-btn:hover { background: #3f5ce0; }

.hd-btn {
    flex: 0 0 auto; display: flex; align-items: center; height: 40px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; color: var(--text-2); background: #fff;
}
.hd-btn:hover { border-color: #c7d2fe; color: var(--brand); background: var(--brand-bg); }

/* ==================== 分类条（吸顶） ==================== */
.catbar { margin-top: 10px; position: sticky; top: 0; z-index: 50; padding: 0; }
.cb-card {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 7px 10px; box-shadow: var(--shadow);
}
.cb-label { flex: 0 0 auto; font-size: 13px; color: var(--text-3); padding: 0 6px 0 4px; }
.cb-links {
    display: flex; align-items: center; gap: 0;
    flex: 1 1 auto; min-width: 0;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    padding: 1px 0;
}
.cb-links::-webkit-scrollbar { display: none; }
.cb-item {
    flex: 0 0 auto; padding: 6px 10px; border-radius: 999px;
    font-size: 13px; color: var(--text-2); white-space: nowrap;
}
.cb-item:hover { background: #f6f7f9; color: var(--text); }
.cb-item.active { background: #f2f3f5; color: var(--text); font-weight: 600; }

/* ==================== 主列 ==================== */
.main-col { padding-top: 12px; padding-bottom: 16px; flex: 1 1 auto; }

.page-lead { padding: 2px 4px 10px; }
.page-h1 { font-size: 16px; font-weight: 600; color: var(--text); }
.page-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* 分类区块卡片 */
.mod {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 13px 15px 15px; margin-bottom: 12px;
}
.mod-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mod-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.mod-sub { font-size: 12px; color: var(--text-3); }
.mod-more { margin-left: auto; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.mod-more:hover { color: var(--brand); }

.mod-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 9px 0 11px; }
.mod-tab {
    font-size: 12px; color: var(--text-2); padding: 3px 10px;
    border-radius: 999px; background: #f6f7f9;
}
.mod-tab:hover { color: var(--brand); background: var(--brand-bg); }

.mod-body { margin-top: 10px; }

/* ==================== 条目网格（图标 + 名称 + 描述） ==================== */
.cell-grid {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
.cell {
    display: flex; align-items: center; gap: 9px; min-width: 0;
    padding: 9px 10px; background: #fff;
    border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.cell:hover { border-color: #d5dcfb; box-shadow: var(--shadow-hov); }
.cell-ico {
    width: 30px; height: 30px; flex: 0 0 auto; overflow: hidden;
    border-radius: 8px; background: #eef4ff; color: #3b82f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
}
.cell-ico img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.ico-char { display: block; font-size: 14px; line-height: 1; }
.cell-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cell-name {
    font-size: 13px; color: var(--text); line-height: 1.45;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cell-desc {
    font-size: 11px; color: var(--text-3); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 图标底色循环，视觉更接近真实 favicon 配色 */
.cell:nth-child(6n+1) .cell-ico { background: #eef4ff; color: #3b82f6; }
.cell:nth-child(6n+2) .cell-ico { background: #fff1f0; color: #f1663f; }
.cell:nth-child(6n+3) .cell-ico { background: #f0fdf4; color: #22a06b; }
.cell:nth-child(6n+4) .cell-ico { background: #fef6e7; color: #d9900a; }
.cell:nth-child(6n+5) .cell-ico { background: #f4f0ff; color: #7c5cff; }
.cell:nth-child(6n+6) .cell-ico { background: #eafaff; color: #0ea5c6; }

/* ==================== 通用内容卡片（列表页 / 详情页） ==================== */
.content-section {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px 18px; margin-bottom: 12px;
}
.sec-head { margin-bottom: 13px; }
.sec-title { font-size: 17px; font-weight: 600; color: var(--text); }
.sec-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.sec-page { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
.gradient-text { color: var(--text); }

.empty { font-size: 13px; color: var(--text-3); padding: 14px 0; }
.sec-more { margin-top: 12px; }
.btn-more {
    display: inline-block; padding: 7px 16px; margin: 0 6px 6px 0;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 12.5px; color: var(--text-2); background: #fff;
}
.btn-more:hover { border-color: #c7d2fe; color: var(--brand); background: var(--brand-bg); }

/* ==================== 磁力专区卡片 ==================== */
.magnet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.magnet-card {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    background: #fff;
}
.magnet-card:hover { border-color: #d5dcfb; box-shadow: var(--shadow-hov); }
.mc-icon {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px;
    background: var(--brand-bg); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
}
.mc-icon img { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
.mc-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-desc {
    font-size: 11px; color: var(--text-3);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-go { margin-left: auto; color: #cbd2e0; font-size: 16px; }

/* ==================== 网址导航分类卡 ==================== */
.nav-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nav-card { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 13px; background: #fff; }
.nc-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.nc-icon {
    width: 26px; height: 26px; border-radius: 7px; background: var(--brand-bg); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 13px; overflow: hidden;
}
.nc-icon img { width: 18px; height: 18px; object-fit: contain; }
.nc-title { font-size: 13.5px; font-weight: 600; }
.nc-count { margin-left: auto; font-size: 11px; color: var(--text-3); }
.nc-body { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nc-link { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; }
.nc-link:hover { background: #f8f9fc; }
.nl-icon {
    width: 22px; height: 22px; flex: 0 0 auto; border-radius: 6px; overflow: hidden;
    background: #f4f6fb; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-2);
}
.nl-icon img { width: 16px; height: 16px; object-fit: contain; }
.nl-body { min-width: 0; display: flex; flex-direction: column; }
.nl-name { font-size: 12.5px; color: var(--text); }
.nl-desc { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==================== 文章卡片 / 列表 ==================== */
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.art-card { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; }
.art-card:hover { border-color: #d5dcfb; box-shadow: var(--shadow-hov); }
.art-card-link { display: block; padding: 12px 14px 13px; height: 100%; }
.art-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.badge-cat {
    font-size: 11px; color: var(--brand); background: var(--brand-bg);
    padding: 2px 8px; border-radius: 999px;
}
.art-card-title {
    font-size: 13.5px; font-weight: 600; line-height: 1.55; margin: 7px 0 5px; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-card:hover .art-card-title { color: var(--brand); }
.art-card-sum {
    font-size: 12px; color: var(--text-2); line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-badge {
    font-size: 11px; color: var(--text-2); background: #f6f7f9;
    padding: 2px 8px; border-radius: 999px;
}
.tag-badge:hover, .tag-badge.on { color: var(--brand); background: var(--brand-bg); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.art-views { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ==================== 文章详情 ==================== */
.art-detail {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 12px;
}
.art-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.art-title { font-size: 21px; font-weight: 600; line-height: 1.45; }
.art-head .art-meta { margin-top: 9px; font-size: 12px; }
.art-head .art-date { color: var(--text-3); }
.art-content { font-size: 14px; color: #333a48; line-height: 1.95; }
.art-content h2 { font-size: 17px; font-weight: 600; color: var(--text); margin: 22px 0 9px; padding-left: 10px; border-left: 3px solid var(--brand); }
.art-content h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 18px 0 7px; }
.art-content p { margin: 0 0 11px; }
.art-content ul, .art-content ol { margin: 0 0 12px; padding-left: 20px; }
.art-content ul { list-style: disc; }
.art-content ol { list-style: decimal; }
.art-content li { margin-bottom: 5px; }
.art-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.art-content strong { color: var(--text); }
.art-content img { border-radius: 8px; margin: 10px 0; }
.art-keywords { color: var(--text-2); font-size: 13px; }
.art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.art-tags-label { font-size: 12.5px; color: var(--text-3); }
.art-nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ==================== 站点详情 ==================== */
.site-detail {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px;
}
.sd-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.sd-logo-box {
    width: 62px; height: 62px; border-radius: 16px; background: var(--brand-bg);
    display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--brand); overflow: hidden;
}
.sd-logo-box img { width: 40px; height: 40px; object-fit: contain; }
.sd-logo .ico-char { font-size: 26px; }
.sd-badges { display: flex; flex-direction: column; gap: 4px; }
.sd-badge { font-size: 11px; color: var(--text-3); background: #f6f7f9; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.sd-main { min-width: 0; flex: 1 1 auto; }
.sd-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-name { font-size: 20px; font-weight: 600; }
.sd-broken { font-size: 12px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.sd-broken:hover { color: #e05252; border-color: #f6d5d5; }
.sd-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.85; margin-top: 8px; }
.sd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.sd-tags-label { font-size: 12px; color: var(--text-3); }
.sd-tag { font-size: 12px; color: var(--text-2); background: #f6f7f9; padding: 3px 10px; border-radius: 999px; }
.sd-tag:hover { color: var(--brand); background: var(--brand-bg); }
.sd-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.btn-sd-go {
    display: inline-block; padding: 9px 22px; border-radius: 999px;
    background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 500;
}
.btn-sd-go:hover { background: #3f5ce0; }
.btn-sd-ghost {
    display: inline-block; padding: 9px 20px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; background: #fff;
}
.btn-sd-ghost:hover { border-color: #c7d2fe; color: var(--brand); }
.sd-note { font-size: 12px; color: var(--text-3); line-height: 1.8; margin-top: 12px; }

/* ==================== 使用说明 / SEO 文本 ==================== */
.howto-box { margin-top: 16px; background: #f8f9fc; border-radius: var(--radius-sm); padding: 14px 16px; }
.box-title { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.howto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.howto-item { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; }
.hi-num {
    width: 22px; height: 22px; border-radius: 50%; background: var(--brand-bg); color: var(--brand);
    font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-bottom: 7px;
}
.hi-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.hi-desc { font-size: 12px; color: var(--text-2); line-height: 1.75; }

.seo-text { font-size: 13px; color: var(--text-2); line-height: 1.95; }
.seo-text p { margin-bottom: 9px; }
.seo-text a { color: var(--brand); }
.seo-h2 { font-size: 14px; font-weight: 600; color: var(--text); margin: 14px 0 7px; }
.seo-list { padding-left: 18px; list-style: disc; }
.seo-list li { margin-bottom: 5px; }
.seo-list strong { color: var(--text); }

/* ==================== 面包屑 ==================== */
.breadcrumb { margin-bottom: 10px; padding: 0 3px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; font-size: 12px; color: var(--text-3); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 6px; color: #d5d9e2; }
.breadcrumb a:hover { color: var(--brand); }

/* ==================== 分页 ==================== */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.pg-btn {
    min-width: 32px; height: 32px; padding: 0 12px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); background: #fff;
}
.pg-btn:hover { border-color: #c7d2fe; color: var(--brand); }
.pg-btn.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pg-btn.disabled { color: #c9ced8; background: #fafbfc; }
.pg-gap { color: var(--text-3); font-size: 12px; padding: 0 2px; }
.pg-info { margin-left: 6px; font-size: 12px; color: var(--text-3); }

/* ==================== 404 ==================== */
.notfound { text-align: center; padding: 46px 10px; }
.notfound-icon { font-size: 40px; margin-bottom: 10px; }
.notfound h1 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.notfound p { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }

/* ==================== 页脚 ==================== */
.site-footer { margin-top: 4px; }
.about-box {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; margin-bottom: 12px;
}
.ab-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ab-sub { font-size: 13px; font-weight: 600; margin: 14px 0 7px; }
.ab-text { font-size: 12.5px; color: var(--text-2); line-height: 1.9; margin-bottom: 5px; }
.ab-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.ab-links a:hover { color: var(--brand); }
.foot-bottom { text-align: center; font-size: 12px; color: var(--text-3); padding: 4px 0 22px; line-height: 1.9; }
.footer-copyright { color: var(--text-2); }
.footer-icp a:hover { color: var(--brand); }

/* ==================== 回到顶部 ==================== */
.fab-top {
    position: fixed; right: 22px; bottom: 26px; z-index: 60;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2); font-size: 16px; box-shadow: 0 4px 14px rgba(16, 24, 40, .1);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.fab-top.show { opacity: 1; visibility: visible; }
.fab-top:hover { color: var(--brand); border-color: #c7d2fe; }

/* ==================== 响应式 ==================== */
@media (max-width: 1080px) {
    .cell-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .magnet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .cell-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logo-sub { display: none; }
    .hd-btn { display: none; }
    .howto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .site-header { padding-top: 10px; }
    .hd-card { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
    .logo { flex: 1 1 auto; }
    .hd-search { flex: 1 1 100%; order: 3; height: 40px; }
    .catbar { margin-top: 8px; }
    .cb-label { display: none; }
    .cb-item { padding: 6px 11px; font-size: 13px; }
    .cell-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .magnet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-grid { grid-template-columns: 1fr; }
    .art-grid { grid-template-columns: 1fr; }
    .content-section, .mod { padding: 13px 13px 14px; border-radius: 12px; }
    .art-detail, .site-detail { padding: 16px 14px; border-radius: 12px; }
    .site-detail { flex-direction: column; align-items: center; text-align: left; }
    .art-title { font-size: 18px; }
}

@media (max-width: 400px) {
    .cell-desc { display: none; }
    .cell { padding: 8px; }
}
