
/* esboo8 category portal design system */
:root{--cp-radius:16px;--cp-line:#e6e8ee;--cp-muted:#6b7280;--cp-ink:#111827;--cp-bg:#f7f8fb}
.post-type-archive-company,.tax-company_cat,.tax-company_tag,.post-type-archive-company_update{background:var(--cp-bg)}

/* HERO band */
.post-type-archive-company .wp-block-query-title,.tax-company_cat .wp-block-query-title,
.post-type-archive-company .wp-block-post-title:first-of-type,.tax-company_cat h1,.post-type-archive-company h1{
  position:relative;display:block;max-width:none;margin:0 0 8px;padding:48px 32px;border-radius:0 0 var(--cp-radius) var(--cp-radius);
  color:#fff!important;background:linear-gradient(135deg,#1f2937,#374151 55%,#4b5563);letter-spacing:.5px;
  box-shadow:0 12px 30px rgba(17,24,39,.16)}
.post-type-archive-company .wp-block-query-title::after,.tax-company_cat h1::after,.post-type-archive-company h1::after{
  display:block;margin-top:6px;font-size:.92rem;font-weight:400;color:rgba(255,255,255,.75);letter-spacing:2px;text-transform:uppercase;content:"COMPANY DATABASE"}
body.tax-company_cat .wp-block-query-title::after{content:"CATEGORY"}
body.term-mahjong .wp-block-query-title,body.term-mahjong h1{background:linear-gradient(135deg,#065f46,#059669 60%,#10b981)}
body.term-mahjong .wp-block-query-title::after,body.term-mahjong h1::after{content:"MAHJONG"}
body.term-poker .wp-block-query-title,body.term-poker h1{background:linear-gradient(135deg,#7f1d1d,#b91c1c 60%,#dc2626)}
body.term-poker .wp-block-query-title::after,body.term-poker h1::after{content:"POKER"}
body.term-cardgame .wp-block-query-title,body.term-cardgame h1{background:linear-gradient(135deg,#1e3a8a,#2563eb 60%,#3b82f6)}
body.term-cardgame .wp-block-query-title::after,body.term-cardgame h1::after{content:"CARD & BOARD GAMES"}
body.term-tablegame .wp-block-query-title,body.term-tablegame h1{background:linear-gradient(135deg,#4c1d95,#6d28d9 60%,#8b5cf6)}
body.term-lottery .wp-block-query-title,body.term-lottery h1{background:linear-gradient(135deg,#9a3412,#ea580c 60%,#f97316)}
body.term-sport .wp-block-query-title,body.term-sport h1{background:linear-gradient(135deg,#14532d,#16a34a 60%,#22c55e)}
body.term-videogame .wp-block-query-title,body.term-videogame h1{background:linear-gradient(135deg,#0c4a6e,#0284c7 60%,#0ea5e9)}
body.term-supplier .wp-block-query-title,body.term-supplier h1{background:linear-gradient(135deg,#374151,#6b7280 60%,#9ca3af)}
body.term-data-service .wp-block-query-title,body.term-data-service h1{background:linear-gradient(135deg,#134e4a,#0d9488 60%,#14b8a6)}
body.term-company-brand .wp-block-query-title,body.term-company-brand h1{background:linear-gradient(135deg,#312e81,#4338ca 60%,#6366f1)}

/* archive description */
.post-type-archive-company .wp-block-term-description,.tax-company_cat .wp-block-term-description{
  max-width:1100px;margin:0 auto 6px;padding:0 4px;color:#4b5563;font-size:.98rem;line-height:1.7}

/* FILTER strip (auto-built from child categories) */
.cp-filterbar{max-width:1180px;margin:18px auto 0;padding:0 4px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cp-filterbar .cp-fb-label{font-size:.82rem;color:var(--cp-muted);margin-right:4px}
.cp-filterbar a{display:inline-block;padding:7px 14px;border-radius:999px;background:#fff;border:1px solid var(--cp-line);color:#374151;text-decoration:none;font-size:.86rem;transition:.15s}
.cp-filterbar a:hover{border-color:#c9cede;transform:translateY(-1px)}
.cp-filterbar a.cp-on{background:var(--cp-ink);color:#fff;border-color:var(--cp-ink)}

/* CARD GRID */
.post-type-archive-company .wp-block-post-template,.tax-company_cat .wp-block-post-template,.tax-company_tag .wp-block-post-template{
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px;list-style:none;padding:0;margin:26px 0 0;max-width:1180px;margin-left:auto;margin-right:auto}
.post-type-archive-company .wp-block-post-template li,.tax-company_cat .wp-block-post-template li,.tax-company_tag .wp-block-post-template li{
  position:relative;background:#fff;border:1px solid var(--cp-line);border-radius:var(--cp-radius);padding:20px;box-sizing:border-box;
  box-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 22px rgba(16,24,40,.06);transition:transform .16s ease,box-shadow .16s ease;margin:0;display:flex;flex-direction:column}
.post-type-archive-company .wp-block-post-template li:hover,.tax-company_cat .wp-block-post-template li:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(16,24,40,.12)}
.cz-card-logo,.cd-card-logo,.cp-card-logo{height:74px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;background:#fbfcfe;border:1px solid #eef0f5;border-radius:12px;overflow:hidden}
.cz-card-logo img,.cp-card-logo img{max-width:82%;max-height:58px;width:auto;height:auto;object-fit:contain}
.cz-card-logo span,.cp-card-logo span{font-weight:800;font-size:1.35rem;color:#111827;letter-spacing:1px}
.cz-card-meta,.cp-card-meta{margin:0 0 8px;display:flex;flex-wrap:wrap;gap:6px}
.cz-card-sum,.cp-card-sum{color:var(--cp-muted);font-size:.88rem;line-height:1.6;margin:0 0 12px;flex:1 1 auto}
.post-type-archive-company .wp-block-post-title,.tax-company_cat .wp-block-post-title{font-size:1.06rem;margin:0 0 8px}
.post-type-archive-company .wp-block-post-title a,.tax-company_cat .wp-block-post-title a{color:var(--cp-ink);text-decoration:none}
.post-type-archive-company .wp-block-post-template li::after,.tax-company_cat .wp-block-post-template li::after{
  content:"查看详情 →";display:inline-block;margin-top:2px;font-size:.86rem;color:var(--cp-ink);font-weight:600;border-top:1px solid #eef0f5;padding-top:10px}

/* BADGES */
.cz-chip,.cd-chip,.cp-badge{display:inline-block;margin:0;padding:4px 11px;border-radius:999px;background:#f1f3f8;color:#374151;font-size:.78rem;white-space:nowrap}
.cz-card-meta .cz-chip,.cp-card-meta .cp-badge{background:#eef2ff;color:#3730a3}

/* PAGINATION */
.wp-block-query-pagination,.navigation.pagination{max-width:1180px;margin:34px auto;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.wp-block-query-pagination a,.page-numbers{padding:8px 14px;border:1px solid var(--cp-line);border-radius:10px;text-decoration:none;background:#fff;color:#374151}
.page-numbers.current{background:var(--cp-ink);color:#fff;border-color:var(--cp-ink)}

/* MOBILE */
@media (max-width:780px){
  .post-type-archive-company .wp-block-query-title,.tax-company_cat h1,.post-type-archive-company h1{padding:32px 20px;border-radius:0 0 12px 12px;font-size:1.5rem}
  .post-type-archive-company .wp-block-post-template,.tax-company_cat .wp-block-post-template{grid-template-columns:1fr!important;gap:16px}
  .cp-filterbar{padding:0 2px}
}
@media (min-width:781px) and (max-width:1100px){
  .post-type-archive-company .wp-block-post-template,.tax-company_cat .wp-block-post-template{grid-template-columns:repeat(2,1fr)!important}
}
