/* ============================================================
   精选页 featured（渐变封面双列瀑布流）+ 知识卡片只读统计栏 + 书架状态筛选
   统一 H5 蓝色体系（--accent var(--accent)），零 Emoji，线性 SVG 1.75px
   ============================================================ */

/* ---------- 精选页：双列瀑布流（复用 .masonry / .xhs-card 视觉） ---------- */
.feat-masonry { margin-top: 2px; }
.feat-gc { scroll-margin-top: 74px; }

.feat-cover .cover-kicker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 70%;
}
.feat-cover .cover-kicker svg { flex-shrink: 0; }

.feat-cover-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--on-accent);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .14);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-cover .cover-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 未读热度微标：覆盖 .read-pill 默认绿色底，已读仍用默认绿色 */
.feat-pill-new { background: rgba(59, 102, 245, .94) !important; }
.feat-pill-hot { background: rgba(255, 90, 54, .94) !important; }
.feat-pill-hotfav { background: rgba(217, 119, 6, .95) !important; }

.feat-xhs-summary {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.58;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 精选页：卷首寄语质感卡片（柔雾米白 + 深海军蓝竖条） ---------- */
.feat-intro {
  position: relative;
  margin: 2px 0 14px;
  padding: 16px 16px 16px 19px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(26, 29, 36, 0.05);
  overflow: hidden;
}
.feat-intro-bar {
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--text);
}
.feat-intro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.feat-intro-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text);
}
.feat-intro-title svg { color: var(--text); }
.feat-intro-badge {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--accent-soft-2);
  padding: 4px 10px;
  border-radius: 999px;
}
.feat-intro-body p {
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
.feat-intro-body p:last-child { margin-bottom: 0; }

/* ---------- 精选卡片：清爽底部阅读提示（左侧时长 + 右侧线性箭头） ---------- */
.feat-gc-foot {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feat-gc-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-3);
}
.feat-gc-go {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- 精选页：限量收尾提示 ---------- */
.feat-end-tip {
  margin: 6px 2px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.7;
}
.feat-end-tip svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ---------- 知识卡片双列：底部只读统计栏（纯展示，无按钮） ---------- */
.card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
}
.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1;
}
.card-stat b { font-weight: 600; color: var(--text-2); }
.card-stat.is-fav { color: var(--accent); }
.card-stat.is-fav b { color: var(--accent); }

/* ---------- 书架：阅读状态筛选条（与来源分类组合） ---------- */
.shelf-status-bar {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 11px;
  padding: 4px;
  margin: 10px 0 12px;
}
.shelf-status-pill {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.shelf-status-pill.is-active {
  background: var(--card);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(26, 29, 36, .1);
}
.shelf-status-count { font-size: 11px; opacity: .75; }

.shelf-tags { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.shelf-read-flag {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-3);
}
.shelf-read-flag.is-read { background: var(--green-soft); color: var(--green); }

/* ---------- 详情页：加入书架按钮（清晰易点） ---------- */
.detail-head .detail-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.detail-head .detail-fav-btn:active { transform: scale(.96); }
.detail-head .detail-fav-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 12px rgba(26, 29, 36, 0.16);
}

/* 勾选框内 SVG 居中 */
.check-box { display: inline-flex; align-items: center; justify-content: center; }
.check-box svg { display: block; }

/* 窄屏适配：瀑布流封面标题与摘要更紧凑 */
@media (max-width: 360px) {
  .feat-cover-title { font-size: 14px; }
  .feat-xhs-summary { font-size: 11.5px; }
}

/* 文本内联 SVG 图标对齐（全站统一 1.75px 线性图标） */
.node-link,
.content-arrow,
.success-line,
.next-label span:last-child,
.next-footer span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.acc-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.code-icon { display: inline-flex; align-items: center; }
.success-line { justify-content: flex-start; }
.node-link svg,
.content-arrow svg,
.acc-back svg,
.success-line svg,
.next-label svg,
.next-footer svg { flex-shrink: 0; }
