.content-toolbar { justify-content: space-between; }
.content-toolbar p { max-width: 620px; margin: 0; color: #8b887f; text-align: right; }

.content-filter-workspace { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.content-search-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fbfaf6; }
.content-search-box { display: flex; align-items: center; gap: 8px; width: min(720px, 100%); }
.content-search-box > span { display: grid; place-items: center; width: 38px; height: 38px; color: #8f6a00; font-size: 23px; }
.content-search-box input { flex: 1; max-width: none; min-width: 180px; margin: 0; background: #fff; }
.content-search-box .clear-search { border: 0; background: transparent; color: #8b887f; }
.reset-filter { flex: 0 0 auto; color: #765800; }

.category-tier { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; padding: 18px 20px; border-bottom: 1px solid #eeeae2; }
.category-tier:last-child { border-bottom: 0; }
.tier-heading { display: grid; grid-template-columns: 34px 1fr; align-content: start; column-gap: 9px; padding-top: 4px; }
.tier-heading > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #1b1b19; color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .5px; }
.tier-heading b { line-height: 1.2; }
.tier-heading small { margin-top: 3px; color: #aaa69c; font-size: 11px; }
.category-options { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.category-options button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-color: #e3dfd5; border-radius: 9px; background: #fff; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.category-options button:hover { border-color: #d8aa16; transform: translateY(-1px); }
.category-options button.active { border-color: var(--yellow); background: var(--yellow); font-weight: 800; box-shadow: 0 5px 14px #ffc92826; }
.category-options button.disabled { color: #8d8980; }
.category-options button.disabled::after { content: '停用'; color: #b94a4a; font-size: 10px; font-weight: 700; }
.category-options em { color: #aaa69c; font-size: 10px; font-style: normal; font-weight: 500; }
.category-options button.active em { color: #735500; }

.filter-reveal-enter-active, .filter-reveal-leave-active { transition: opacity .18s ease, transform .18s ease; }
.filter-reveal-enter-from, .filter-reveal-leave-to { opacity: 0; transform: translateY(-5px); }

.result-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 2px 12px; }
.result-summary div > span, .result-summary div > b, .result-summary div > small { display: block; }
.result-summary div > span { color: #9b978e; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.result-summary div > b { margin-top: 2px; font-size: 17px; }
.result-summary div > small { margin-top: 2px; color: #9b978e; }
.result-summary strong { font-size: 28px; line-height: 1; }
.result-summary strong small { color: #8b887f; font-size: 12px; }

.asset-cover { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #eee; }
.category-path { font-weight: 700; color: #765800; }
.badge.published { background: #e9f8ef; color: var(--green); }
.badge.hidden { background: #eee; color: #777; }
.content-table { min-height: 420px; }
.content-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 0 4px; }
.content-pagination span { color: #77736b; }
.content-pagination b { color: #171716; }

.category-panel { margin-top: 18px; padding: 0 20px 20px; }
.category-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; }
.category-panel summary span, .category-help { color: #999; font-size: 12px; }
.category-help { margin: -8px 0 14px; }
.category-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.category-item { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid #eeeae2; }
.category-item small { display: none; color: #999; }
.category-item em { color: #999; font-size: 12px; font-style: normal; }
.category-item button { padding: 5px 8px; }
.category-item.level-2 { padding-left: 24px; }
.category-item.level-3 { padding-left: 36px; }
.level-tag { color: #a37400; font-size: 11px; font-weight: 800; }

@media (max-width: 1100px) {
  .category-list { grid-template-columns: repeat(2, 1fr); }
  .category-tier { grid-template-columns: 145px minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 760px) {
  .content-toolbar { align-items: stretch; }
  .content-toolbar p { font-size: 12px; text-align: left; }
  .content-search-row { align-items: stretch; flex-direction: column; padding: 14px; }
  .content-search-box { flex-wrap: wrap; }
  .content-search-box > span { display: none; }
  .content-search-box input { flex-basis: 100%; }
  .reset-filter { width: 100%; }
  .category-tier { grid-template-columns: 1fr; gap: 11px; padding: 15px 14px; }
  .tier-heading { grid-template-columns: 34px 1fr; }
  .category-options { flex-wrap: nowrap; margin-right: -14px; padding-right: 14px; overflow-x: auto; }
  .category-options button { flex: 0 0 auto; }
  .result-summary { align-items: flex-start; }
  .result-summary strong { font-size: 23px; }
  .category-list { grid-template-columns: 1fr; }
}
