/* ==========================================================================
   磁力万象 wanxiang.mimaomvp.com - 主题样式（零 JS 依赖，所有内容由 PHP 直出）
   设计基调：浅色底 + 靛蓝主色 + 青绿点缀，卡片化栏目，移动端优先
   ========================================================================== */

:root {
  --ink: #18203a;
  --ink-2: #4d5877;
  --ink-3: #78829c;
  --line: #e5e8f2;
  --line-2: #eef0f7;
  --bg: #f4f6fb;
  --card: #ffffff;
  --brand: #27357f;
  --brand-2: #3a5bd9;
  --brand-3: #6f8cf0;
  --accent: #10b3a3;
  --accent-soft: #e6f7f4;
  --warn: #d97706;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(24, 32, 58, .05), 0 8px 24px -16px rgba(24, 32, 58, .28);
  --grad: linear-gradient(135deg, #232f74 0%, #3450bd 55%, #2f8fb0 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: .2px; }
p { margin: 0 0 10px; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; background: #f1f3f9; padding: 1px 5px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main-col { padding-top: 18px; padding-bottom: 26px; }

.sr-only {
  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 {
  position: absolute; left: 12px; top: -48px; z-index: 99;
  background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 0 0 8px 8px;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------ 顶栏 ------------------------------ */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar-in {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: 0 6px 16px -8px rgba(39, 53, 127, .9);
}
.brand-img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.brand-txt { display: inline-flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: .6px; }

.topsearch {
  margin-left: auto; display: flex; align-items: center;
  background: #f4f6fb; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 4px 3px 14px; max-width: 340px; flex: 1 1 220px;
}
.topsearch input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 13px; color: var(--ink); font-family: inherit; height: 30px;
}
.topsearch input::placeholder { color: #9aa3bb; }
.topsearch button {
  border: 0; background: var(--brand); color: #fff; width: 32px; height: 32px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex: 0 0 auto;
}
.topsearch button:hover { background: var(--brand-2); }
.topbar-link { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.topbar-link:hover { color: var(--brand-2); }

/* ------------------------------ 分类条 ------------------------------ */
.catbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 62px; z-index: 25;
}
.cb-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0; }
.cb-in::-webkit-scrollbar { display: none; }
.cb-item {
  flex: 0 0 auto; padding: 11px 14px; font-size: 14px; color: var(--ink-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.cb-item:hover { color: var(--brand-2); }
.cb-item.is-active { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand-2); }

/* ------------------------------ 首页搜索区 ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad);
  border-radius: var(--radius);
  padding: 34px 24px 26px;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px -28px rgba(35, 47, 116, .9);
}
.hero-glow {
  position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(111, 214, 255, .35), transparent 62%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.hero-title { font-size: 27px; letter-spacing: .6px; }
.hero-sub { margin: 10px 0 20px; font-size: 14px; color: rgba(255, 255, 255, .82); }

.hero-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 12px; padding: 6px 6px 6px 16px;
  box-shadow: 0 10px 26px -16px rgba(0, 0, 0, .55);
}
.hero-search .hs-input {
  flex: 1; min-width: 0; border: 0; outline: none; font-size: 15px; height: 40px;
  color: var(--ink); font-family: inherit; background: transparent;
}
.hero-search .hs-input::placeholder { color: #98a1b8; }
.hero-search .hs-btn {
  flex: 0 0 auto; border: 0; cursor: pointer; height: 40px; padding: 0 24px;
  border-radius: 9px; background: linear-gradient(135deg, #1f9d8f, #12857a);
  color: #fff; font-size: 15px; font-weight: 700; font-family: inherit;
}
.hero-search .hs-btn:hover { filter: brightness(1.06); }

.hero-tags { margin-top: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.ht-label { margin-right: 4px; }
.ht-item {
  display: inline-block; margin: 3px 6px 3px 0; padding: 2px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff;
}
.ht-item:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ------------------------------ 区块 ------------------------------ */
.mod {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.mod-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.mod-title { font-size: 18px; display: inline-flex; align-items: center; gap: 7px; }
.mod-title::before {
  content: ""; width: 4px; height: 17px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--accent));
}
.mod-ico { font-size: 16px; }
.mod-sub { font-size: 12.5px; color: var(--ink-3); }
.mod-more { margin-left: auto; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.mod-more:hover { color: var(--brand-2); }

.mod-pills { padding: 14px 0 6px; }
.pills-label { font-size: 12.5px; color: var(--ink-3); display: block; margin-bottom: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 13px;
  background: #f3f5fb; color: var(--ink-2); border: 1px solid var(--line);
}
.pill:hover { background: #fff; border-color: var(--brand-3); color: var(--brand); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

.mod-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 4px; }
.mod-tab {
  font-size: 13px; padding: 4px 12px; border-radius: 999px;
  background: #f4f6fb; color: var(--ink-2); border: 1px solid transparent;
}
.mod-tab:hover { color: var(--brand); border-color: var(--line); }
.mod-tab.is-on { background: var(--accent-soft); color: #0b7a6e; border-color: #bfeae3; font-weight: 600; }
.mod-body { padding-top: 6px; }

/* 磁力站卡片 */
.magnet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; }
.magnet-card {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.magnet-card:hover {
  border-color: var(--brand-3); box-shadow: 0 8px 20px -14px rgba(58, 91, 217, .8);
  transform: translateY(-1px); color: inherit;
}
.mc-icon { flex: 0 0 auto; }
.mc-body { display: flex; flex-direction: column; min-width: 0; }
.mc-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mc-desc {
  font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.mc-go { margin-left: auto; color: #c3cbe0; font-size: 18px; flex: 0 0 auto; }

/* 分类条目单元格 */
.cell-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 14px; }
.cell {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fbfcff; transition: border-color .15s ease, background .15s ease;
}
.cell:hover { border-color: #cdd7f3; background: #fff; color: inherit; }
.cell-ico { flex: 0 0 auto; }
.cell-txt { display: flex; flex-direction: column; min-width: 0; }
.cell-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cell-desc {
  font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}

/* 图标 */
.cell-ico img, .mc-icon img, .nl-icon img, .nc-icon img, .sd-logo img {
  width: 24px; height: 24px; border-radius: 6px; object-fit: cover; display: block;
}
.ico-char {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: #eef1fa; color: var(--brand); line-height: 1;
}
.magnet-card:hover .ico-char, .cell:hover .ico-char { background: #e4e9fb; }

/* 分类导航卡片（/nav 页） */
.nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nav-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px 16px; box-shadow: var(--shadow); }
.nc-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.nc-icon { flex: 0 0 auto; }
.nc-title { font-size: 16px; }
.nc-count { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.nc-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 10px; }
.nc-link { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.nc-link:hover { background: #f6f8fe; color: inherit; }
.nl-icon { flex: 0 0 auto; }
.nl-body { display: flex; flex-direction: column; min-width: 0; }
.nl-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nl-desc {
  font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 100%;
}

/* ------------------------------ 文章 ------------------------------ */
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 0 4px; }
.art-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.art-card:hover { border-color: #cdd7f3; box-shadow: 0 10px 24px -18px rgba(24, 32, 58, .6); }
.art-card-link { display: flex; flex-direction: column; height: 100%; padding: 13px 14px; }
.art-card-link:hover { color: inherit; }
.art-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.badge-cat {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: #0b7a6e; font-size: 11.5px; font-weight: 600;
}
.badge-cat:hover { color: #0b7a6e; }
.art-date { color: var(--ink-3); }
.art-card-title {
  font-size: 15px; margin: 8px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-card-sum {
  font-size: 12.5px; color: var(--ink-2); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-badge {
  display: inline-block; padding: 1px 8px; border-radius: 6px;
  background: #f3f5fb; color: var(--ink-2); font-size: 11.5px; border: 1px solid var(--line-2);
}
a.tag-badge:hover { background: #fff; border-color: var(--brand-3); color: var(--brand); }
.tag-badge.on { background: var(--accent-soft); color: #0b7a6e; border-color: #bfeae3; }
.art-views { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

/* ------------------------------ 通用内容块 ------------------------------ */
.content-section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.sec-head { padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.sec-title { font-size: 19px; display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gradient-text { background: linear-gradient(90deg, var(--brand), #2f8fb0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-sub { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.sec-page { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.sec-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-more {
  display: inline-block; padding: 6px 14px; border-radius: 8px; font-size: 13px;
  background: #f3f5fb; color: var(--ink-2); border: 1px solid var(--line);
}
.btn-more:hover { background: #fff; border-color: var(--brand-3); color: var(--brand); }
.empty { padding: 18px; text-align: center; color: var(--ink-3); font-size: 13.5px; background: #fafbff; border: 1px dashed var(--line); border-radius: var(--radius-sm); }

.seo-text p { color: var(--ink-2); font-size: 14px; }
.seo-h2 { font-size: 16px; margin: 16px 0 8px; }
.seo-h3 { font-size: 15px; margin: 14px 0 6px; }
.seo-list { padding-left: 2px; }
.seo-list li { position: relative; padding-left: 16px; margin: 6px 0; font-size: 14px; color: var(--ink-2); }
.seo-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}

/* ------------------------------ 磁力页 / 使用说明 ------------------------------ */
.howto-box { margin-top: 18px; border: 1px dashed #cdd7f3; border-radius: var(--radius); padding: 14px 16px; background: #fbfcff; }
.box-title { font-size: 15px; margin-bottom: 10px; }
.howto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.howto-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.hi-num {
  width: 24px; height: 24px; border-radius: 7px; background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.hi-title { font-size: 14px; margin: 8px 0 4px; }
.hi-desc { font-size: 12.5px; color: var(--ink-2); margin: 0; }

/* ------------------------------ 站点详情 ------------------------------ */
.site-detail { display: flex; gap: 18px; align-items: flex-start; }
.sd-side { flex: 0 0 108px; text-align: center; }
.sd-logo-box {
  width: 96px; height: 96px; border-radius: 20px; background: #f4f6fb;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.sd-logo .ico-char { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
.sd-logo img { width: 52px; height: 52px; border-radius: 14px; }
.sd-badges { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.sd-badge { font-size: 11.5px; color: var(--ink-2); background: #f3f5fb; border-radius: 999px; padding: 2px 8px; }
.sd-main { flex: 1; min-width: 0; }
.sd-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-name { font-size: 22px; }
.sd-cat { font-size: 12px; color: #0b7a6e; background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.sd-desc { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.sd-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 14px 0; padding: 10px 12px; background: #fafbff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.sd-meta div { display: flex; gap: 6px; font-size: 13px; }
.sd-meta dt { color: var(--ink-3); }
.sd-meta dd { color: var(--ink); font-weight: 600; }
.sd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.sd-tags-label { color: var(--ink-3); }
.sd-tag { padding: 2px 9px; border-radius: 999px; background: #f3f5fb; color: var(--ink-2); font-size: 12px; }
.sd-tag:hover { background: #fff; border: 1px solid var(--brand-3); color: var(--brand); }
.sd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
.btn-sd-go {
  display: inline-block; padding: 10px 26px; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, #1f9d8f, #12857a); color: #fff;
  box-shadow: 0 10px 22px -14px rgba(16, 179, 163, .95);
}
.btn-sd-go:hover { color: #fff; filter: brightness(1.06); }
.btn-sd-ghost {
  display: inline-block; padding: 10px 20px; border-radius: 10px; font-size: 14px;
  background: #f4f6fb; color: var(--ink-2); border: 1px solid var(--line);
}
.btn-sd-ghost:hover { background: #fff; border-color: var(--brand-3); color: var(--brand); }
.sd-note { font-size: 12px; color: var(--ink-3); margin: 0; }

/* ------------------------------ 文章详情 ------------------------------ */
.art-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.art-head { border-bottom: 1px solid var(--line-2); padding-bottom: 14px; margin-bottom: 16px; }
.art-title { font-size: 23px; line-height: 1.4; }
.art-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.art-content { font-size: 15px; color: #2a3350; line-height: 1.85; }
.art-content h2 { font-size: 18px; margin: 22px 0 10px; padding-left: 10px; border-left: 4px solid var(--brand-2); }
.art-content h3 { font-size: 16px; margin: 18px 0 8px; }
.art-content p { margin: 0 0 12px; }
.art-content a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.art-content ul, .art-content ol { margin: 0 0 12px; padding-left: 20px; }
.art-content li { list-style: disc; margin: 4px 0; }
.art-content blockquote { margin: 14px 0; padding: 10px 14px; background: #f6f8fe; border-left: 3px solid var(--brand-3); color: var(--ink-2); font-size: 14px; }
.art-content img { border-radius: var(--radius-sm); display: block; margin: 12px 0; }
.art-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.art-content th, .art-content td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.art-content th { background: #f6f8fe; }
.art-keywords { font-size: 13px; color: var(--ink-3); }
.art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.art-tags-label { font-size: 12.5px; color: var(--ink-3); }
.art-nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ------------------------------ 面包屑 / 分页 ------------------------------ */
.breadcrumb { margin-bottom: 12px; font-size: 12.5px; color: var(--ink-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: #c3cbe0; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb [aria-current] span { color: var(--ink-3); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; margin: 18px 0 4px; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px;
}
.pg-btn:hover { border-color: var(--brand-3); color: var(--brand); }
.pg-btn.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pg-btn.disabled { color: #c3cbe0; background: #fafbff; cursor: not-allowed; }
.pg-gap { color: #c3cbe0; padding: 0 2px; }
.pg-info { font-size: 12.5px; color: var(--ink-3); margin-left: 6px; }

/* ------------------------------ 404 ------------------------------ */
.notfound { text-align: center; padding: 30px 10px; }
.notfound-icon { font-size: 40px; }
.notfound h1 { font-size: 20px; margin: 10px 0 8px; }
.notfound p { color: var(--ink-3); font-size: 14px; margin-bottom: 14px; }

/* ------------------------------ 页脚 ------------------------------ */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 0 18px; margin-top: 8px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; }
.foot-title { font-size: 14px; margin: 0 0 8px; color: var(--ink); }
.foot-about p { font-size: 12.5px; color: var(--ink-3); margin: 0 0 8px; line-height: 1.75; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.foot-links a { font-size: 12.5px; color: var(--ink-2); }
.foot-links a:hover { color: var(--brand-2); }
.foot-bottom { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 12px; text-align: center; }
.footer-copyright { font-size: 12.5px; color: var(--ink-2); margin: 0 0 4px; }
.footer-statement { font-size: 12px; color: var(--ink-3); margin: 0 0 4px; }
.footer-icp { font-size: 12px; margin: 0; }
.footer-icp a { color: var(--ink-3); }
.footer-icp a:hover { color: var(--brand-2); }

.fab-top {
  position: fixed; right: 18px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 8px 20px -12px rgba(24, 32, 58, .6);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 40;
}
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top:hover { color: var(--brand); border-color: var(--brand-3); }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1024px) {
  .cell-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-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; }
  .foot-cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .topbar-in { flex-wrap: wrap; gap: 8px; padding: 8px 0; min-height: 0; }
  .topsearch { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; min-width: 0; }
  .topbar-link { margin-left: auto; }
  .catbar { position: static; }
  .hero { padding: 24px 16px 20px; border-radius: 12px; }
  .hero-in { width: 100%; }
  .hero-title { font-size: 20px; overflow-wrap: anywhere; word-break: break-word; }
  .hero-sub { font-size: 13px; margin: 8px 0 14px; overflow-wrap: anywhere; }
  .hero-search { flex-wrap: wrap; padding: 8px; gap: 8px; width: 100%; }
  .hero-search .hs-input { flex: 1 1 100%; width: 100%; height: 36px; padding: 0 6px; }
  .hero-search .hs-btn { flex: 1 1 100%; height: 38px; }
  .mod { padding: 14px 13px 15px; border-radius: 12px; }
  .mod-title { font-size: 16px; }
  .mod-more { font-size: 12.5px; }
  .magnet-grid, .cell-grid, .art-grid, .howto-grid, .nc-body { grid-template-columns: 1fr; }
  .site-detail { flex-direction: column; }
  .sd-side { flex: none; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; }
  .sd-logo-box { margin: 0; width: 64px; height: 64px; border-radius: 16px; }
  .sd-badges { flex-direction: row; margin-top: 0; flex-wrap: wrap; }
  .sd-name { font-size: 19px; }
  .art-detail { padding: 16px; }
  .art-title { font-size: 19px; }
  .content-section { padding: 15px 14px; border-radius: 12px; }
  .sec-title { font-size: 17px; }
  .btn-sd-go, .btn-sd-ghost { flex: 1 1 auto; text-align: center; }
}
