/*
 Theme Name: yitb
 Theme URI: https://yitb.com
 Description: 龙虾官网 - OpenClaw 龙虾AI生态平台主题
 Version: 3.0
 Author: LongXia Team
*/

/* ===== DESIGN SYSTEM ===== */
:root {
  --primary: #f04d5a;
  --primary-dark: #d93d4a;
  --accent: #6366f1;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --header-h: 56px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.logo-icon { font-size: 24px; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--bg-alt); }
.site-nav a.active { color: var(--primary); font-weight: 600; }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ===== HERO ===== */
.hero-section {
  background: var(--bg-alt);
  padding: 48px 24px 36px;
  text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-inner h1 { font-size: 28px; font-weight: 800; line-height: 1.3; letter-spacing: -0.5px; }
.hero-sub { color: var(--text-secondary); font-size: 15px; margin: 8px 0 20px; }
.search-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }
.search-form input {
  flex: 1; padding: 10px 16px; font-size: 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); outline: none;
  transition: border-color 0.2s;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
  padding: 10px 20px; background: var(--primary); color: #fff; border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; cursor: pointer;
  transition: background 0.2s; font-size: 14px;
}
.search-form button:hover { background: var(--primary-dark); }
.hero-stats { display: flex; gap: 24px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.hero-stats strong { color: var(--text); font-size: 18px; font-weight: 800; }

/* ===== MAIN LAYOUT ===== */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.content { min-width: 0; }

/* ===== CARD BASE ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.card-header h2 { font-size: 16px; font-weight: 700; }
.card-link { font-size: 13px; color: var(--primary); font-weight: 500; }
.card-link:hover { text-decoration: underline; }

/* ===== NEWS FEED (The Verge style) ===== */
.news-feed { padding: 0; }

.news-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.news-lead-img {
  display: block;
  overflow: hidden;
}
.news-lead-img .cover {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-lead-img:hover .cover { transform: scale(1.04); }
.news-lead-img .cover-bg {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.news-lead-img:hover .cover-bg { transform: scale(1.04); }

.news-lead-text {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-lead-text .tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-lead-text h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.news-lead-text h3 a { color: var(--text); }
.news-lead-text h3 a:hover { color: var(--primary); }
.news-lead-text .excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-lead-text time { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* 新闻列表项 */
.news-item {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
  align-items: center;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg-alt); }

.news-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.news-meta { flex: 1; min-width: 0; }
.news-meta h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta h4 a { color: var(--text); }
.news-meta h4 a:hover { color: var(--primary); }
.news-meta time { font-size: 12px; color: var(--text-muted); }
.news-meta .cat-label { font-size: 11px; color: var(--accent); font-weight: 600; margin-right: 8px; }

/* ===== 三栏内容 ===== */
.triple-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dual-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.col-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.col-card .card-header {
  background: var(--bg-alt);
}

.col-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.col-item:last-child { border-bottom: none; }
.col-item:hover { background: var(--bg-alt); }
.col-item h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.col-item time { font-size: 11px; color: var(--text-muted); }

/* Model排行 */
.model-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.model-row:last-child { border-bottom: none; }
.model-row.top3 { background: var(--bg-alt); }
.model-rank { font-size: 14px; width: 28px; text-align: center; flex-shrink: 0; }
.model-info { flex: 1; }
.model-info strong { font-size: 13px; }
.model-info small { color: var(--text-muted); font-size: 11px; margin-left: 6px; }
.model-elo { font-weight: 700; color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ===== 生态导航 ===== */
.eco-section { padding: 20px; }
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.eco-group { margin-bottom: 20px; }
.eco-group:last-child { margin-bottom: 0; }
.eco-group-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  color: var(--text);
}

.eco-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s;
  border: 1px solid transparent;
}
.eco-item:hover { background: var(--bg-alt); border-color: var(--border); color: var(--text); }

.link-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  margin-left: 4px;
}

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar .card { margin-bottom: 16px; }
.sidebar .card-header h3 { font-size: 14px; font-weight: 700; }
.sidebar-item {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { color: var(--primary); }
.sidebar-item strong { color: var(--text); }

/* ===== POST DETAIL ===== */
.post-content { padding: 24px; font-size: 16px; line-height: 1.8; }
.post-content h1 { font-size: 28px; font-weight: 800; margin: 24px 0 8px; }
.post-content h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.post-content h3 { font-size: 18px; font-weight: 600; margin: 20px 0 8px; }
.post-content p { margin: 12px 0; }
.post-content img { border-radius: var(--radius); margin: 16px 0; }
.post-content pre { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 13px; line-height: 1.6; }
.post-content code { font-family: "SF Mono", Menlo, Monaco, monospace; font-size: 0.9em; }
.post-content p code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; color: var(--primary-dark); }
.post-content ul, .post-content ol { padding-left: 24px; margin: 8px 0; }
.post-content li { margin: 4px 0; }
.post-content blockquote { border-left: 3px solid var(--primary); padding: 12px 16px; background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.post-content th, .post-content td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; font-size: 14px; }
.post-content th { background: var(--bg-alt); font-weight: 600; }
.post-content a { color: var(--primary); }
.post-content a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer { background: var(--text); color: #cbd5e1; padding: 40px 24px 20px; margin-top: 48px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; padding: 3px 0; color: #94a3b8; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width); margin: 20px auto 0; padding-top: 16px;
  border-top: 1px solid #334155; font-size: 12px; color: #64748b; text-align: center;
}

/* ===== EMPTY & MISC ===== */
.empty-msg { padding: 20px; text-align: center; color: var(--text-muted); font-size: 14px; }
.see-all { text-align: center; padding: 12px; }
.see-all a { color: var(--primary); font-size: 13px; font-weight: 500; }

/* ===== PAGINATION ===== */
.post-nav { display: flex; justify-content: space-between; padding: 20px; border-top: 1px solid var(--border); margin-top: 8px; }
.post-nav a { color: var(--primary); font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main { grid-template-columns: 1fr; padding: 16px; }
  .sidebar { display: none; }
  .news-lead { grid-template-columns: 1fr; }
  .news-lead-img .cover, .news-lead-img .cover-bg { min-height: 200px; }
  .news-lead-text { padding: 20px 16px; }
  .news-lead-text h3 { font-size: 18px; }
  .triple-cols { grid-template-columns: 1fr; }
  .dual-cols { grid-template-columns: 1fr; }
  .news-thumb { width: 88px; height: 60px; }
  .news-item { padding: 12px 16px; }
  .header-inner { padding: 0 16px; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 8px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-inner h1 { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-section { padding: 32px 16px 24px; }
  .hero-stats { gap: 16px; }
  .hero-stats strong { font-size: 16px; }
  .eco-grid { grid-template-columns: 1fr; }
}

/* ===== SIDEBAR RANKINGS ===== */
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.side-card h3 {
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.side-list { padding: 4px 0; }
.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.side-item:last-child { border-bottom: none; }
.side-item.side-top3 { background: var(--bg-alt); }
.side-rank {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 4px;
  flex-shrink: 0;
}
.side-name { flex: 1; font-weight: 500; color: var(--text); }
.side-score { font-size: 12px; color: var(--accent); font-weight: 600; flex-shrink: 0; }
.quick-links { padding: 8px 0; }
.quick-links a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.15s;
}
.quick-links a:last-child { border-bottom: none; }
.quick-links a:hover { color: var(--primary); background: var(--bg-alt); }

/* ===== ARCHIVE / CATEGORY LIST ===== */
.post-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.post-item:last-child { border-bottom: none; }
.post-date { width: 48px; text-align: center; flex-shrink: 0; }
.post-date .day { display: block; font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; }
.post-date .month { font-size: 11px; color: var(--text-muted); }
.post-info h3 { font-size: 15px; font-weight: 500; line-height: 1.5; }
.post-info h3 a { color: var(--text); }
.post-info h3 a:hover { color: var(--primary); }

/* ===== RANKING PAGES ===== */
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th { background: var(--bg-alt); padding: 10px 16px; font-size: 13px; font-weight: 600; text-align: left; border-bottom: 2px solid var(--border); }
.ranking-table td { padding: 10px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.ranking-table tr:hover { background: var(--bg-alt); }

/* ===== LINK GRID (eco pages) ===== */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; }
.link-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.link-card {
  display: block;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.link-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.link-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.link-card p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.link-card.compact { padding: 10px 12px; }
.link-card.compact h4 { font-size: 13px; }

@media (max-width: 768px) {
  .link-grid, .link-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .link-grid, .link-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ===== ARCHIVE / CATEGORY PAGE ===== */
.archive-hero {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.archive-hero h1 { font-size: 24px; font-weight: 800; }
.archive-sub { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

.archive-list { padding: 0; }
.archive-item {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  align-items: center;
}
.archive-item:last-child { border-bottom: none; }
.archive-item:hover { background: var(--bg-alt); }

.archive-cover {
  width: 160px;
  height: 100px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.archive-info { flex: 1; min-width: 0; }
.archive-info h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-excerpt {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.archive-meta { display: flex; gap: 12px; align-items: center; }
.archive-meta time { font-size: 12px; color: var(--text-muted); }
.archive-cat {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  background: rgba(240,77,90,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.archive-pager { padding: 16px 20px; border-top: 1px solid var(--border); }
.archive-pager .page-navigator { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.archive-pager .page-navigator a, .archive-pager .page-navigator span {
  padding: 6px 14px; border-radius: 6px; font-size: 13px; text-decoration: none;
  background: var(--bg-alt); color: var(--text-secondary); border: 1px solid var(--border);
}
.archive-pager .page-navigator a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.archive-pager .page-navigator .current { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (max-width: 768px) {
  .archive-cover { width: 100px; height: 68px; }
  .archive-item { padding: 12px 16px; }
  .archive-info h2 { font-size: 15px; }
}
@media (max-width: 480px) {
  .archive-cover { width: 80px; height: 56px; }
  .archive-hero { padding: 20px 16px 16px; }
  .archive-hero h1 { font-size: 20px; }
}

/* ===== RANKING PAGES MOBILE FIX ===== */
.ranking-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ranking-wrapper table { min-width: 600px; }

@media (max-width: 768px) {
  .page-card { padding: 16px !important; border-radius: 12px !important; }
  .page-card h1 { font-size: 22px !important; }
  .page-card .ranking-table td,
  .page-card .ranking-table th { padding: 8px 10px !important; font-size: 12px !important; }
  .page-card .ranking-table td:nth-child(n+4),
  .page-card .ranking-table th:nth-child(n+4) { display: none; }
}

/* ===== 首页6大板块导航 hub-grid ===== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 4px 2px;
}
.hub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.hub-item::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 14px;
}
.hub-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: transparent;
}
.hub-item:hover::before { opacity: 1; }
.hub-claw::before { background: linear-gradient(135deg, rgba(240,77,90,0.08), rgba(240,77,90,0.03)); }
.hub-claw:hover { box-shadow: 0 8px 24px rgba(240,77,90,0.18); }
.hub-model::before { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(99,102,241,0.03)); }
.hub-model:hover { box-shadow: 0 8px 24px rgba(99,102,241,0.18); }
.hub-skill::before { background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.03)); }
.hub-skill:hover { box-shadow: 0 8px 24px rgba(16,185,129,0.18); }
.hub-news::before { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.03)); }
.hub-news:hover { box-shadow: 0 8px 24px rgba(245,158,11,0.18); }
.hub-guide::before { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.03)); }
.hub-guide:hover { box-shadow: 0 8px 24px rgba(59,130,246,0.18); }
.hub-mcp::before { background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(139,92,246,0.03)); }
.hub-mcp:hover { box-shadow: 0 8px 24px rgba(139,92,246,0.18); }
.hub-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.hub-body { flex: 1; min-width: 0; }
.hub-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.hub-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-count {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.hub-claw .hub-count { background: #fef2f2; color: #e74c3c; border-color: #fecaca; }
.hub-model .hub-count { background: #eef2ff; color: #6366f1; border-color: #c7d2fe; }
.hub-skill .hub-count { background: #f0fdf4; color: #10b981; border-color: #bbf7d0; }
.hub-news .hub-count { background: #fffbeb; color: #f59e0b; border-color: #fde68a; }
.hub-guide .hub-count { background: #eff6ff; color: #3b82f6; border-color: #bfdbfe; }
.hub-mcp .hub-count { background: #f5f3ff; color: #8b5cf6; border-color: #ddd6fe; }
@media(max-width:768px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hub-item { padding: 14px 14px; gap: 10px; }
  .hub-icon { font-size: 26px; }
  .hub-title { font-size: 14px; }
  .hub-desc { display: none; }
}
@media(max-width:480px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
}
