@import url("./column-header.css?v=20260843");
:root{--pc-container-width:100%;--pc-container-padding:16px;--pc-reading-width:100%;--pc-grid-gap:20px;}@media (min-width:1200px){:root{--pc-container-width:1000px;--pc-reading-width:780px;}}html{background:#f4f6fb;}
/* ===== 网址收藏 · 与博客页统一风格 ===== */
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #1f2d3d;
  background: #f7f8fa;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--pc-container-width);
}
/* 主体撑满剩余高度，使页脚始终贴页面底部 */
main { flex: 1 0 auto; width: 100%; }
.container { max-width: var(--pc-container-width); margin: 0 auto; padding: 0 var(--pc-container-padding); }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

/* 顶部导航 / 空状态 见 column-header.css（@import 引入，各栏目共享） */
/* 主体 */
/* 左右内边距用变量，避免 shorthand 覆盖 .container 的左右留白（与博客/相册保持一致） */
.fav-main { padding: 28px var(--pc-container-padding) 40px; }

/* 分类分组 */
.fav-group { margin-bottom: 26px; }
.fav-group-title {
  font-size: 18px;
  color: #1f2d3d;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 4px solid #2563eb;
  line-height: 1.4;
}
.fav-group-count {
  font-size: 13px;
  font-weight: 400;
  color: #9aa3b2;
  margin-left: 8px;
}

/* 收藏卡片：宽屏 3 列，中等宽度 2 列，移动端 1 列 */
.fav-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .fav-list { grid-template-columns: repeat(2, 1fr); } }
.fav-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 14px 16px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.fav-card:hover { box-shadow: 0 8px 24px rgba(31,45,61,.08); transform: translateY(-2px); }
.fav-card-head { display: flex; align-items: center; gap: 12px; }
.fav-card-logo {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4a7bf7, #6f5bf7);
  overflow: hidden;
}
/* 自动获取的网站图标：加载成功覆盖首字母底色，失败则移除、回退首字母 */
.fav-ico {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}
.fav-card-titles { min-width: 0; }
.fav-card-title { font-size: 16px; margin: 0; color: #1f2d3d; line-height: 1.4; }
.fav-card:hover .fav-card-title { color: #2563eb; }
.fav-card-host {
  font-size: 12px;
  color: #9aa3b2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 底部（与博客页一致） */
.fav-footer { width: 100%; max-width: var(--pc-container-width); margin: 36px auto 0; background: #1f2d3d; color: #c4ccd8; font-size: 13px; padding: 18px 0; text-align: center; flex-shrink: 0; }
.fav-footer a { color: #c4ccd8; }

/* 响应式：移动端单列，微调间距 */
@media (max-width: 640px) {
  .fav-list { grid-template-columns: 1fr; gap: 10px; }
  .fav-card { padding: 12px; }
  .fav-card-logo { width: 36px; height: 36px; }
  .fav-card-title { font-size: 15px; }
}
