/* ════════════════════════════════
   wikiHow 资讯站 —— 在原模板基础上补充的样式
   ════════════════════════════════ */

/* 顶部 tagline（替换原新闻站的"日期"横条，指南内容没有时效性） */
.hd-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3px;
  color: var(--mid);
}

/* 无配图时的占位块，保持卡片/网格布局不塌陷 */
.no-img {
  background: var(--border);
  width: 100%;
}
.no-img.strip-img,
.no-img.grid-img,
.no-img.lcard-thumb,
.no-img.art-thumb,
.no-img.rel-thumb {
  display: block;
}
.no-img.hero-img,
.no-img.art-feat-img,
.no-img.det-img {
  aspect-ratio: 16 / 9;
}

/* 详情页：浏览量 / 更新时间 / 步骤数 —— guide meta 徽标行 */
.det-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
}
.det-stat {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mid);
}
.det-stat b { color: var(--dark); }

/* 详情页：方法分段标题（多方法文章显示 "Method N" 徽标） */
.det-method {
  background: var(--white);
  padding: 18px 16px 4px;
}
.det-method-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.det-method-ttl {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.32;
}

/* 详情页：单个步骤 —— 编号徽标 + 文字 + 配图 组成一张 guide-step 卡片 */
.det-step {
  display: flex;
  gap: 12px;
  background: var(--white);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.det-step-num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.det-step-body { flex: 1; min-width: 0; }
.det-step-text {
  font-size: 15px;
  line-height: 1.68;
  color: #222;
}
.det-step-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  margin-top: 10px;
}

/* 无步骤配图时留白略窄，避免卡片显得空旷 */
.det-step:last-child { border-bottom: none; }

/* 首页：分类快捷入口网格 */
.cat-quicklinks {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  background: var(--white);
  padding: 12px 16px 16px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.cat-quicklinks::-webkit-scrollbar { display: none; }
.cat-quicklink {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 40px;
  white-space: nowrap;
}

/* 首页：Spotlight 大卡片区块（复用 art-card.featured 的样式） */
.spotlight-wrap {
  background: var(--white);
}

/* 首页：Rank 排行榜区块（纯文字，不带图） */
.rank-list {
  background: var(--white);
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.rank-item:nth-child(odd) { background: var(--light); }
.rank-item:last-child { border-bottom: none; }
.rank-num {
  flex: 0 0 34px;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--red);
  border: none;
  border-right: 2px solid var(--red);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 10px;
}
.rank-item:nth-child(-n+3) .rank-num {
  background: none;
  color: var(--red);
  border-color: var(--red);
  font-size: 30px;
}
.rank-ttl {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.36;
}
.rank-item:active .rank-ttl,
.rank-item:hover .rank-ttl { color: var(--red); }

/* ════════════════════════════════
   视觉美化：卡片化区块 + 统一圆角 + 轻交互反馈
   ════════════════════════════════ */

/* 各板块从"通栏白条"改为带圆角、带阴影的悬浮卡片，body 灰底更有层次感 */
.s-hero,
.s-strip,
.s-grid,
.s-list,
.cat-quicklinks,
.cat-banner {
  margin: 0 12px 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.det-fig { overflow: hidden; }

/* 统一缩略图圆角（原来 lcard/art-thumb 是直角，风格不统一） */
.lcard-thumb,
.art-thumb {
  border-radius: var(--r);
}

/* 卡片轻交互反馈：点按时轻微缩放，提升"可点击"的触感 */
.grid-card,
.lcard,
.art-card,
.rank-item,
.rel-item,
.strip-card,
.cat-quicklink,
.hero-link {
  transition: transform .12s ease, opacity .12s ease;
}
.grid-card:active,
.lcard:active,
.art-card:active,
.rank-item:active,
.rel-item:active,
.strip-card:active,
.cat-quicklink:active,
.hero-link:active {
  transform: scale(0.98);
  opacity: .92;
}

/* 分类标签徽标：直角改为轻微圆角，更柔和 */
.tag { border-radius: 3px; }

/* 导航胶囊 hover 反馈（桌面端用鼠标浏览时更明确） */
.hd-nav a:hover:not(.active) { background: var(--border); color: var(--red); }
.sec-more:hover { text-decoration: underline; }

/* 分类快捷入口 / 排行榜 hover 主题色强化 */
.cat-quicklink:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }

/* 详情页步骤区块之间用主题色细线分隔，呼应步骤编号色 */
.det-step + .det-step { border-top: 1px solid rgba(193,68,14,.15); }

/* 分类计数文字加一点主题色重量感 */
.cat-count b,
.cat-count strong { color: var(--red); }
