/* 字包风格覆盖 zibao.net —— 注入 new-api 前端 */
:root{
  --primary: oklch(0.6 0.13 155);
  --primary-foreground: oklch(1 0 0);
  --ring: oklch(0.6 0.13 155);
  --chart-1: oklch(0.6 0.13 155);
  --sidebar-primary: oklch(0.6 0.13 155);
  --background: oklch(0.975 0.008 95);
}
body{font-weight:400;}
b, strong, th, .font-bold, .font-semibold, .font-medium{font-weight:400 !important;}
h1{font-weight:500 !important;}
h2, h3{font-weight:400 !important;}

/* ===== 模型广场：四区分类（低价/平价/旗舰/官转）由 JS 搬到顶部工具栏 ===== */
.zb-tagbar{
  padding:0 !important;
  border:none !important;
  margin:0 !important;
  flex:1 1 auto;
  min-width:0;
}
/* 工具栏整体：缩小间距，保证一行放下 */
.zb-tagbar ~ div:last-child{ flex-wrap:nowrap !important; }
.zb-tagbar button{
  padding:2px 8px;
  gap:3px !important;
  border-radius:7px;
  border:1px solid oklch(0.6 0.13 155 / 0.35);
  background:oklch(0.6 0.13 155 / 0.06);
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
}
/* 数字徽章压缩 */
.zb-tagbar button > span:last-child{
  padding:0 4px !important;
  font-size:11px !important;
}
.zb-tagbar button:hover{
  background:oklch(0.6 0.13 155 / 0.14);
}
.zb-tagbar button[data-state="active"],
.zb-tagbar button[aria-pressed="true"]{
  background:oklch(0.6 0.13 155);
  color:#fff;
  border-color:oklch(0.6 0.13 155);
}

/* ===== 侧栏：端点类型（文字/图片/视频）提到筛选组最上面 ===== */
aside > div:nth-child(2){ display:flex; flex-direction:column; }
aside > div:nth-child(2) > div:nth-child(3){ order:-1; }
aside > div:nth-child(2) > div:nth-child(4){ order:-2; }
/* 端点类型按钮加绿描边突出 */
aside > div:nth-child(2) > div:nth-child(4) > div > div > button{
  border:1px solid oklch(0.6 0.13 155 / 0.3);
  background:oklch(0.6 0.13 155 / 0.05);
}
aside > div:nth-child(2) > div:nth-child(4) > div > div > button[aria-pressed="true"],
aside > div:nth-child(2) > div:nth-child(4) > div > div > button[data-state="active"]{
  background:oklch(0.6 0.13 155);
  color:#fff;
}
