/* =========================================================
   站群导航 · 前台主题（default）
   纯手写 CSS，无外部依赖，支持亮/暗主题切换
   ========================================================= */

:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-2: #fbfdff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e5eaf2;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-soft: #e8f0ff;
  --ok: #0f9d76;
  --bad: #e2564c;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 18px -6px rgba(15, 23, 42, .18);
  --shadow-lg: 0 22px 45px -22px rgba(15, 23, 42, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1000px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0e1729;
  --surface: #121c2e;
  --surface-2: #162136;
  --text: #e8edf7;
  --text-2: #cbd5e1;
  --muted: #93a3b8;
  --border: #22304a;
  --accent: #5b9cff;
  --accent-2: #38bdf8;
  --accent-soft: #17294a;
  --ok: #34d399;
  --bad: #fb7185;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 24px -10px rgba(0, 0, 0, .65);
  --shadow-lg: 0 26px 50px -24px rgba(0, 0, 0, .75);
}

/* ---------------- 配色主题 ----------------
   46 套配色（26 浅色 + 20 深色）不再写死在这里：由 App\Theme::paletteCss()
   按强调色与模式实时派生（强调色 / 次强调色 / 浅色强调底 / 背景 / 卡片底色 /
   描边 / 文字色 --text/--text-2/--muted），在模板 <head> 里以内联 <style> 输出。
   浅色配色：:root 浅底深字 + :root[data-theme="dark"] 深色一套；
   深色配色：:root 直接就是深底浅字，另给 :root[data-theme="light"] 一套浅色版。
   上面的 :root 变量是「没有配色时」的兜底。
------------------------------------------------------------------ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

/* 背景光晕 */
.bg-glow {
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(760px 320px at 12% -10%, var(--glow-1, rgba(37, 99, 235, .16)), transparent 70%),
    radial-gradient(680px 300px at 88% -20%, var(--glow-2, rgba(14, 165, 233, .14)), transparent 70%);
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent-strong, var(--accent)), var(--accent-2));
  box-shadow: var(--shadow-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: .2px; }
.brand-text small { font-size: 11px; color: var(--muted); }

.top-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  max-width: 420px;
  padding: 0 12px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s;
}
.top-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.top-search svg { width: 16px; height: 16px; fill: var(--muted); flex-shrink: 0; }
.top-search input { flex: 1; border: 0; background: transparent; outline: 0; color: var(--text); font-size: 13px; }
.top-search kbd {
  font-size: 11px; color: var(--muted); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; background: var(--surface);
}

.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent-strong, var(--accent)), var(--accent-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .8);
}
.btn.ghost { background: transparent; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon svg { width: 17px; height: 17px; fill: var(--text-2); }

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
  padding: 54px 0 34px;
}

.eyebrow {
  font-size: 11px; letter-spacing: .22em; color: var(--accent);
  font-weight: 600; margin: 0 0 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc { margin: 0 0 16px; color: var(--muted); font-size: 15px; max-width: 480px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--muted); }
.hero-meta strong { color: var(--text); font-size: 15px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

.hero-search { display: flex; flex-direction: column; gap: 14px; }

.search-box {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 6px 20px;
  height: 60px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.search-box svg { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; }
.search-box input {
  flex: 1; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--text);
}
.search-box input::placeholder { color: var(--muted); }

.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  height: 30px; padding: 0 12px;
  border-radius: 999px; font-size: 12.5px;
  transition: all .18s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* 广告 */
.ad-slot { display: block; }
.ad-link img { border-radius: var(--radius-sm); width: 100%; }
.ad-header, .ad-footer, .ad-list { margin: 0 0 22px; }
/* 分类之间插入的广告（链接分类间 / 友链分类间）：上下留白，和分类块区分开 */
.ad-gap {
  margin: 0 0 26px;
  padding: 0;
}
/* 友链分类块自身只有 margin-top，广告紧跟其后会贴在一起，这里单独补上方间距 */
.fh-block + .ad-gap { margin-top: 26px; }
/* 广告之后再接友链分类时，用广告的下边距即可，别再叠一层 */
.ad-gap + .fh-block { margin-top: 0; }
.ad-gap .ad-link { display: block; }
.ad-gap .ad-link img { max-height: 120px; object-fit: cover; }
.ad-gap .ad-text {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2, rgba(255, 255, 255, .05));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
}
.ad-gap .ad-text::before {
  content: "广告";
  flex: none;
  font-size: 11px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--accent);
  background: var(--accent-soft);
}
.ad-text { color: var(--muted); font-size: 13px; }

/* ---------------- 主体布局 ---------------- */
.layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 30px;
}

.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 10px;
}

.cate-list { display: flex; flex-direction: column; gap: 2px; }
.cate-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 9px; font-size: 13.5px; color: var(--text-2);
  transition: background .16s, color .16s;
}
.cate-list a:hover { background: var(--accent-soft); color: var(--accent); }
.cate-list b {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border-radius: 6px; padding: 1px 7px;
}
/* 侧栏分类表：友链分类紧跟在链接管理分类后面，中间一条虚线隔开，其余样式保持一致 */
.cate-list a:not([data-friendly]) + a[data-friendly] {
  border-top: 1px dashed var(--border); border-radius: 0 0 9px 9px;
  margin-top: 4px; padding-top: 10px;
}

.stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; border-bottom: 1px dashed var(--border);
  font-size: 13px; color: var(--muted);
}
.stat-row:last-of-type { border-bottom: 0; }
.stat-row strong { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-hint { margin-top: 10px; font-size: 12px; color: var(--muted); }

.content { min-width: 0; }

.cat-block { margin-bottom: 30px; scroll-margin-top: 90px; }

.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cat-head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.cat-count { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; }
.line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

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

.link-card {
  display: flex; gap: 10px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.link-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.link-card:hover::after { transform: scaleX(1); }

.logo {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h) 72% 58%), hsl(calc(var(--h) + 26) 76% 46%));
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.logo img { width: 20px; height: 20px; object-fit: contain; position: absolute; }
.logo img + i { opacity: 0; }
.logo img:not([src=""]) { background: #fff; }

.body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row strong {
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.go { width: 14px; height: 14px; fill: var(--muted); flex-shrink: 0; opacity: 0; transition: opacity .2s, transform .2s; }
.link-card:hover .go { opacity: 1; transform: translate(2px, -2px); fill: var(--accent); }
.desc {
  font-size: 12.5px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.host { font-size: 11px; color: var(--muted); opacity: .8; letter-spacing: .02em; }

/* 收录申请入口（v1.6：友情链接移到 /apply.php，首页只留入口） */
.apply-panel .apply-text { margin: 0 0 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.apply-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 26px 0 4px; padding: 14px 16px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--surface); font-size: 13px; color: var(--muted);
}
.apply-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* 友链（申请收录页与后台仍在用） */
.friend-block { margin: 34px 0 10px; scroll-margin-top: 90px; }
.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.friend-item {
  display: block; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  border-radius: var(--radius-sm);
  transition: transform .18s, box-shadow .18s;
}
.friend-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.friend-item strong { display: block; font-size: 13.5px; }
.friend-item span { font-size: 12px; color: var(--muted); }

.friend-form {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px 18px;
  box-shadow: var(--shadow-sm);
}
.friend-form summary {
  cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; list-style: none;
}
.friend-form summary::-webkit-details-marker { display: none; }
.friend-form summary span { font-weight: 400; font-size: 12px; color: var(--muted); }
.friend-form summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 18px; }
.friend-form[open] summary::after { content: "−"; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.friend-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.friend-form input, .friend-form textarea {
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 9px; padding: 9px 11px; font-size: 13px; color: var(--text); outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.friend-form input:focus, .friend-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.friend-form .full { margin-top: 12px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted); }

.flash {
  margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; font-size: 13.5px;
  border: 1px solid var(--border); background: var(--surface);
}
.flash.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.flash.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }

.empty-panel, .empty-search {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 46px 24px; text-align: center;
}
.empty-panel h3, .empty-search h3 { margin: 0 0 6px; font-size: 16px; }
.empty-panel p, .empty-search p { margin: 0; font-size: 13px; color: var(--muted); }

/* 页脚 */
.footer { border-top: 1px solid var(--border); margin-top: 30px; padding: 26px 0 34px; background: var(--surface); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.sep { width: 1px; height: 12px; background: var(--border); }
.footer-row a { color: var(--muted); }

/* 404 */
.not-found-body { display: grid; place-items: center; min-height: 100vh; }
.not-found { max-width: 520px; text-align: center; padding: 40px; }
.nf-code {
  display: inline-block; font-size: 64px; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.not-found h1 { margin: 6px 0 10px; font-size: 22px; }
.not-found p { color: var(--muted); font-size: 14px; }
.nf-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

/* 响应式 */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 38px 0 26px; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side .panel { flex: 1 1 220px; }
  .cate-nav { flex-basis: 100%; }
  .cate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-inner { gap: 10px; }
  .top-search { display: none; }
  .brand-text small { display: none; }
  .top-actions .ghost { display: none; }
  .hero h1 { font-size: 30px; }
  .search-box { height: 54px; border-radius: 16px; padding-left: 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: center; gap: 6px; }
  .sep { display: none; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
/* ---------------- 首页「友情链接」分类区块（v1.7，与链接管理分类同层级） ---------------- */
.fh-block { margin-top: 26px; scroll-margin-top: 90px; }
.fh-block:first-of-type { margin-top: 22px; }
.fh-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fh-head h2 { margin: 0; font-size: 16px; letter-spacing: .01em; color: var(--text); }
.fh-count { font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); font-variant-numeric: tabular-nums; }
.fh-line { flex: 1; height: 1px; background: var(--border); }
.fh-more { font-size: 12.5px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.fh-more:hover { text-decoration: underline; }
.fh-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.fh-item {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.fh-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.fh-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-host { font-size: 11.5px; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .fh-block { margin-top: 20px; }
  .fh-head h2 { font-size: 15px; }
  .fh-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
/* ========== 首页底部「最新文章」链接块（v1.7.15） ==========
   由 themes/parts/home_articles.php 输出；跟随主题配色变量。
   隐藏模式用 inline 的 clip 容器，这里只管可见模式的观感。 */
.hf-arts {
  max-width: var(--uw, 1200px);
  margin: 26px auto 0;
  padding: 0 16px;
}
.hf-arts-inner {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.hf-arts-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: .02em;
  margin: 0 0 10px;
}
.hf-arts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hf-arts-list li { font-size: 13px; line-height: 1.7; }
.hf-arts-list a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.hf-arts-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (max-width: 640px) {
  .hf-arts { margin-top: 18px; padding: 0 12px; }
  .hf-arts-list { flex-direction: column; gap: 4px; }
}
/* 隐藏模式：不占版面（inline 样式已做裁剪，这里兜底） */
.hf-arts-sr, .hf-arts-sr * { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* ===== 本站永久域名（v1.7.20）：后台「绑定列表」里指定的那条，顶栏加粗展示 ===== */
.perma {
  display: inline-flex; flex-direction: column; gap: 2px; justify-content: center;
  margin-left: 14px; padding: 5px 12px 6px;
  border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  flex-shrink: 0; min-width: 0; max-width: 260px;
}
.perma small {
  font-size: 10.5px; line-height: 1; letter-spacing: .06em;
  color: var(--muted); white-space: nowrap;
}
.perma b {
  font-size: 15px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
  color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 980px) {
  .perma { margin-left: 8px; padding: 4px 9px 5px; max-width: 190px; }
  .perma b { font-size: 13.5px; }
}
@media (max-width: 700px) {
  .perma { max-width: 150px; padding: 3px 8px 4px; }
  .perma small { display: none; }
  .perma b { font-size: 12.5px; }
}
/* ================= v1.7.24：只出名称 + 卡片更矮（default / 友链） ================= */
.link-card .desc, .link-card .host { display: none; }
.link-card { padding: 8px 10px; gap: 9px; align-items: center; }
.logo { width: 30px; height: 30px; border-radius: 8px; }
.logo img { width: 18px; height: 18px; }
.logo i { font-size: 14px; }
.fh-item { padding: 6px 9px; gap: 0; }
.fh-item .fh-host { display: none; }
.fh-item .fh-name { font-size: 13px; }