/* ===== 网址收藏 · 与博客页统一风格 ===== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #1f2d3d;
  background: #f7f8fa;
  line-height: 1.7;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

/* 顶部导航（与博客页一致） */
.fav-header {
  background: #fff;
  border-bottom: 1px solid #eceef2;
  position: sticky;
  top: 0;
  z-index: 10;
}
.fav-head-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fav-brand { font-size: 17px; font-weight: 700; color: #1f2d3d; }
.fav-nav { display: flex; gap: 18px; font-size: 14px; }
.fav-nav a { color: #667085; }
.fav-nav a:hover { color: #2563eb; }

/* 主体 */
.fav-main { padding: 28px 0 40px; }
.fav-empty { color: #9aa3b2; padding: 30px 0; }

/* 分类分组 */
.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;
}

/* 收藏卡片：PC 与移动端统一两列网格 */
.fav-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.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 { border-top: 1px solid #eceef2; background: #fff; color: #9aa3b2; font-size: 13px; padding: 18px 0; text-align: center; }
.fav-footer a { color: #9aa3b2; }

/* 响应式：PC 与移动端均保持两列，仅微调间距 */
@media (max-width: 640px) {
  .fav-list { gap: 10px; }
  .fav-nav { gap: 12px; }
  .fav-card { padding: 12px; }
  .fav-card-logo { width: 36px; height: 36px; }
  .fav-card-title { font-size: 15px; }
}
