/* ==========================================================================
   智作坊 BrainyBuilds · 扩展页专属样式
   --------------------------------------------------------------------------
   仅 extension.html 引用，需在 css/site.css 之后加载。
   只放扩展卡片相关规则（.ext-* / .badge-*），公共样式一律改 site.css。
   ========================================================================== */

/* ── extensions ── */
  .ext-cards{grid-template-columns:repeat(3,1fr);gap:var(--s200)}
  .ext{display:flex;flex-direction:column;padding:var(--s300)}
  .ext-top{display:flex;align-items:center;justify-content:space-between;gap:var(--s100)}
  .ext-top .icon{margin-bottom:var(--s200)}
  .ext h3{
    margin:0;font-size:20px;line-height:28px;font-weight:600;
    display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--s75);
  }
  .ext h3 code{
    font-family:var(--mono);font-size:12px;line-height:16px;font-weight:500;
    color:var(--muted);background:var(--surface);border-radius:var(--s50);
    padding:var(--s25) var(--s50);
  }
  .ext > p{margin:var(--s100) 0 0;font-size:16px;line-height:24px;color:var(--muted)}
  .ext-list{margin:var(--s200) 0 0;padding:0;list-style:none;display:grid;gap:var(--s50)}
  .ext-list li{
    position:relative;padding-left:var(--s200);
    font-size:14px;line-height:20px;color:var(--muted);
  }
  .ext-list li::before{
    content:"";position:absolute;left:0;top:8px;width:4px;height:4px;border-radius:50%;
    background:var(--accent);
  }
  .ext-foot{
    margin-top:auto;padding-top:var(--s300);
    display:flex;align-items:center;justify-content:space-between;gap:var(--s100);
  }
  .badge{
    font-size:12px;line-height:16px;font-weight:500;
    padding:var(--s50) var(--s75);border-radius:var(--r-sm);white-space:nowrap;
  }
  .badge-ok{background:var(--accent-soft);color:var(--accent)}
  .badge-plan{background:var(--surface-2);color:var(--muted)}

/* 移动端：本文件在 site.css 之后加载，会覆盖 site.css 里的 .cards 断点，
   这里必须重新声明为单列，否则三列在窄屏横向溢出。 */
@media (max-width:760px){
  .ext-cards{grid-template-columns:1fr}
}
