/* ==========================================================
   问题指南 Hub（/problems/）
   仅此页与 6 个分类索引页使用，类名统一 pr- 前缀，避免与站内样式冲突
   ========================================================== */

.pr-shell{max-width:1400px;margin:0 auto;padding:0 32px}

/* ---------- 区块标题 ---------- */
.pr-head{
  display:flex;align-items:center;gap:12px;
  margin:0 0 16px;
}
.pr-head h2{
  margin:0;font-size:1.28rem;font-weight:800;color:#16233a;letter-spacing:-.3px;
  display:flex;align-items:center;gap:10px;
}
.pr-head h2 i{color:#1E5AFE;font-size:1.02rem}
.pr-head .pr-head-sub{margin-left:auto;font-size:.84rem;color:#8394ab;font-weight:600}

/* ---------- 分类卡片 ---------- */
.pr-cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pr-cat{
  position:relative;display:flex;align-items:center;gap:16px;
  padding:22px 22px 22px 24px;
  background:#fff;border:1px solid #e8edf6;border-radius:16px;
  text-decoration:none;color:inherit;overflow:hidden;
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
.pr-cat::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:4px;
  background:var(--ac);opacity:.9;
}
.pr-cat:hover{
  transform:translateY(-4px);border-color:#d3e2ff;
  box-shadow:0 22px 40px -30px rgba(30,90,254,.6);text-decoration:none;
}
.pr-cat-ic{
  flex:0 0 52px;width:52px;height:52px;border-radius:14px;
  display:grid;place-items:center;font-size:1.18rem;
  background:var(--acbg);color:var(--ac);
  transition:transform .2s;
}
.pr-cat:hover .pr-cat-ic{transform:scale(1.06)}
.pr-cat-bd{min-width:0;flex:1 1 auto}
.pr-cat-bd b{
  display:block;font-size:1.06rem;font-weight:800;color:#16233a;letter-spacing:-.2px;
}
.pr-cat-bd em{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  margin-top:5px;font-style:normal;font-size:.82rem;line-height:1.5;color:#6b7a92;
}
.pr-cat-n{
  flex:0 0 auto;align-self:flex-start;
  min-width:36px;padding:3px 10px;border-radius:20px;
  font-size:.75rem;font-weight:800;color:var(--ac);background:var(--acbg);
  text-align:center;white-space:nowrap;
}

/* ---------- 主体两栏 ---------- */
.pr-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 356px;gap:24px;
  align-items:start;margin-top:28px;
}
.pr-main{display:flex;flex-direction:column;gap:22px;min-width:0}
.pr-side{display:flex;flex-direction:column;gap:22px;min-width:0}

/* ---------- 分类文章分组 ---------- */
.pr-group{
  background:#fff;border:1px solid #e8edf6;border-radius:18px;
  padding:26px 28px 24px;min-width:0;
}
.pr-group-hd{
  display:flex;align-items:center;gap:12px;
  padding-bottom:15px;margin-bottom:16px;border-bottom:1px solid #eef2f8;
}
.pr-group-hd .pr-ic{
  flex:0 0 34px;width:34px;height:34px;border-radius:10px;
  display:grid;place-items:center;font-size:.9rem;
  background:var(--acbg);color:var(--ac);
}
.pr-group-hd h3{
  margin:0;font-size:1.06rem;font-weight:800;color:#16233a;
  display:flex;align-items:center;gap:9px;
}
.pr-group-hd h3 span{font-size:.78rem;font-weight:700;color:#93a2b8;background:#f2f6fc;border-radius:20px;padding:2px 9px}
.pr-group-hd .pr-more{
  margin-left:auto;font-size:.82rem;font-weight:700;color:var(--ac);
  text-decoration:none;white-space:nowrap;display:flex;align-items:center;gap:5px;
}
.pr-group-hd .pr-more:hover{text-decoration:underline}

.pr-arts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
.pr-art{
  display:flex;align-items:flex-start;gap:9px;min-width:0;
  padding:10px 0;border-bottom:1px dashed #eef2f8;
  font-size:.9rem;line-height:1.5;color:#3d4d66;text-decoration:none;
  transition:color .16s;
}
.pr-art i{flex:0 0 auto;margin-top:5px;font-size:.72rem;color:#c3d1e6;transition:color .16s,transform .16s}
.pr-art span{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;
}
.pr-art:hover{color:var(--ac);text-decoration:none}
.pr-art:hover i{color:var(--ac);transform:translateX(2px)}

/* ---------- 侧栏卡片 ---------- */
.pr-card{
  background:#fff;border:1px solid #e8edf6;border-radius:18px;
  padding:22px 22px 20px;min-width:0;
}
.pr-card > h3{
  margin:0 0 14px;font-size:1.04rem;font-weight:800;color:#16233a;
  display:flex;align-items:center;gap:9px;
}
.pr-card > h3 i{color:#1E5AFE;font-size:.94rem}

.pr-hot{list-style:none;margin:0;padding:0}
.pr-hot li + li{border-top:1px dashed #eef2f8}
.pr-hot a{display:flex;align-items:flex-start;gap:11px;padding:11px 0;text-decoration:none;color:inherit}
.pr-hot .n{
  flex:0 0 22px;width:22px;height:22px;border-radius:7px;margin-top:1px;
  display:grid;place-items:center;font-size:.72rem;font-weight:800;
  background:#f0f4fa;color:#8b9ab0;
}
.pr-hot li:nth-child(1) .n{background:linear-gradient(135deg,#ff9a4d,#f0562a);color:#fff}
.pr-hot li:nth-child(2) .n{background:linear-gradient(135deg,#ffb96b,#ff8f3d);color:#fff}
.pr-hot li:nth-child(3) .n{background:linear-gradient(135deg,#ffd08a,#ffab52);color:#fff}
.pr-hot .t{
  font-size:.875rem;line-height:1.5;color:#3d4d66;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;
}
.pr-hot a:hover .t{color:#1E5AFE}
.pr-hot .m{margin-top:4px;font-size:.72rem;color:#93a2b8}

/* 侧栏分类快捷 */
.pr-chips{display:flex;flex-wrap:wrap;gap:9px}
.pr-chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 13px;border-radius:10px;
  background:#f6f9fe;border:1px solid #e8eef8;
  font-size:.83rem;font-weight:700;color:#3d4d66;text-decoration:none;
  transition:background .16s,border-color .16s,color .16s;
}
.pr-chip i{font-size:.78rem;color:var(--ac)}
.pr-chip:hover{background:#fff;border-color:#cfe0ff;color:#1E5AFE;text-decoration:none}

/* CTA 卡片 */
.pr-cta{
  background:linear-gradient(135deg,#1E5AFE 0%,#3C7BFF 100%);
  border:0;border-radius:18px;padding:24px 24px 22px;color:#fff;
  box-shadow:0 22px 44px -30px rgba(30,90,254,.9);
}
.pr-cta h3{margin:0 0 8px;font-size:1.04rem;font-weight:800;color:#fff;display:flex;align-items:center;gap:9px}
.pr-cta p{margin:0;font-size:.85rem;line-height:1.75;color:rgba(255,255,255,.9)}
.pr-cta a{
  display:flex;align-items:center;justify-content:center;gap:7px;
  margin-top:15px;padding:11px;border-radius:12px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.38);
  color:#fff;font-size:.85rem;font-weight:700;text-decoration:none;
  transition:background .16s;
}
.pr-cta a:hover{background:rgba(255,255,255,.28);text-decoration:none;color:#fff}

/* ---------- 响应式 ---------- */
@media (max-width:1180px){
  .pr-layout{grid-template-columns:minmax(0,1fr)}
  .pr-side{flex-direction:row;flex-wrap:wrap}
  .pr-side > *{flex:1 1 300px}
}
@media (max-width:980px){
  .pr-cats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .pr-shell{padding:0 14px}
  .pr-cats{grid-template-columns:minmax(0,1fr)}
  .pr-arts{grid-template-columns:minmax(0,1fr)}
  .pr-group{padding:20px 18px 18px}
  .pr-side{flex-direction:column}
}

/* ==========================================================
   分类索引页（/problems/{install,howto,fix,compare,security,tips}/）
   这些页面原先 .art-item / .cat-mini 完全没有样式，列表塌成一行
   ========================================================== */

/* ---------- 文章列表 ---------- */
.art-item{
  display:flex;align-items:center;gap:14px;min-width:0;
  padding:14px 16px;margin-bottom:10px;
  background:#fbfdff;border:1px solid #eef2f8;border-radius:12px;
  text-decoration:none;color:inherit;
  transition:transform .16s,background .16s,border-color .16s,box-shadow .16s;
}
.art-item:last-child{margin-bottom:0}
.art-item:hover{
  transform:translateX(3px);background:#fff;border-color:#d3e2ff;
  box-shadow:0 14px 26px -22px rgba(30,90,254,.7);text-decoration:none;
}
.art-idx{
  flex:0 0 28px;width:28px;height:28px;border-radius:9px;
  display:grid;place-items:center;font-size:.76rem;font-weight:800;
  background:#eef4ff;color:#1E5AFE;
}
.art-info{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.art-info strong{font-size:.95rem;font-weight:700;color:#16233a;line-height:1.5;min-width:0}
.art-date{font-size:.74rem;font-weight:600;color:#93a2b8;white-space:nowrap;margin-left:auto}
.art-arrow{flex:0 0 auto;color:#c3d1e6;font-size:.95rem;transition:color .16s,transform .16s}
.art-item:hover .art-arrow{color:#1E5AFE;transform:translateX(3px)}

/* ---------- 侧栏其他分类 ---------- */
.cat-mini{
  display:flex;align-items:center;gap:10px;
  padding:11px 14px;margin-bottom:9px;border-radius:11px;
  background:#f6f9fe;border:1px solid #e8eef8;
  font-size:.88rem;font-weight:700;color:#3d4d66;text-decoration:none;
  transition:background .16s,border-color .16s,color .16s;
}
.cat-mini i{color:#1E5AFE;font-size:.85rem;width:16px;text-align:center}
.cat-mini:last-child{margin-bottom:0}
.cat-mini:hover{background:#fff;border-color:#cfe0ff;color:#1E5AFE;text-decoration:none}

/* 这些页的 .section-card 有 hover 上浮，作为列表容器会晃，去掉 */
.detail-container .section-card:hover{transform:none;box-shadow:0 4px 12px rgba(0,0,0,.02)}

@media (max-width:640px){
  .art-item{padding:12px 13px;gap:11px}
  .art-info{gap:6px}
  .art-info strong{font-size:.9rem}
}