/* ==========================================================================
   Shadowrocket官方下载 · home.css(首页专属)
   只补 components.css 未覆盖的首页局部:深色大卡内的分块与事实胶囊行、
   深色底上白卡的文字色补回、区块尾部次级链接。不重复定义共享组件样式。
   ========================================================================== */

/* ---------- 深色大卡内的白卡:补回继承色与景深 ---------- */
.slab .device-card{
  color:var(--text);
  box-shadow:var(--shadow-lift);
}

/* 白卡里的设备名是 h3,会被 components.css 的 .slab h3{color:var(--bg)} 压成白字 */
.slab .device-card h3,
.slab .device-card .device-name{
  color:var(--text);
}

/* 白卡里的正文会被 components.css 的 .slab p{color:var(--on-dark-72)} 压成白字,补回浅底文字色 */
.slab .device-card p{
  color:var(--text-muted);
}

/* ---------- 深色大卡内的小标题区 ---------- */
.slab-head{
  max-width:72ch;
  margin-bottom:26px;
}

.slab-head h2{
  margin-bottom:12px;
}

/* ---------- 细网格上的发光事实胶囊行 ---------- */
.fact-capsules{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  min-width:0;
  margin:0 0 30px;
  padding:0;
  list-style:none;
}

.fact-capsules li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  overflow:hidden;
  padding:7px 14px;
  border:1px solid var(--accent-55);
  border-radius:var(--r-pill);
  background:var(--accent-10);
  box-shadow:0 0 0 4px var(--accent-06);
  font-family:var(--font-mono);
  font-size:12px;
  line-height:1.5;
  letter-spacing:.01em;
  color:var(--bg);
  white-space:nowrap;
}

.fact-capsules svg{
  width:13px;
  height:13px;
  flex:0 0 auto;
  color:var(--success);
}

/* ---------- 深色大卡内的分块 ---------- */
.slab-block{
  min-width:0;
  padding:20px 22px;
  border:1px solid var(--on-dark-16);
  border-radius:var(--r-card);
  background:var(--on-dark-06);
}

.slab-block h3{
  margin:0 0 8px;
  font-size:17px;
}

.slab-block p{
  margin:0;
  font-size:15px;
  line-height:1.72;
}

.slab-block--wide{
  grid-column:1 / -1;
}

/* ---------- 深色大卡内的补充说明与按钮行 ---------- */
.slab-note{
  margin:24px 0 0;
  max-width:72ch;
  font-size:15px;
}

.slab-cta-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px 26px;
  margin-top:28px;
}

/* ---------- 区块尾部的次级链接 ---------- */
.section-foot{
  margin:32px 0 0;
}

/* ---------- 小标题区里的 eyebrow 不要吃到段落上边距 ---------- */
.section-head .eyebrow{
  margin-top:0;
}

/* ---------- 问答答案里的站内链接 ---------- */
.faq-a a{
  color:var(--accent-dark);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}

.faq-a a:hover{
  color:var(--accent-mid);
}

/* ---------- 窄屏 ---------- */
@media (max-width:640px){
  .slab-head{
    margin-bottom:20px;
  }

  .fact-capsules{
    gap:8px;
    margin-bottom:24px;
  }

  .fact-capsules li{
    padding:6px 11px;
    font-size:11.5px;
  }

  .slab-block{
    padding:18px;
  }

  .slab-cta-row{
    gap:14px;
    margin-top:22px;
  }

  .section-foot{
    margin-top:26px;
  }
}