.cate-list-page {
  padding: 24px 0 48px;
}

.cate-list-nav-toggle {
  display: none;
}

.cate-list-shell {
  max-width: 100%;
}

.cate-list-sticky-top {
  margin-bottom: 20px;
}

.cate-list-shell .site-banner {
  margin-top: 0;
}

.cate-list-sticky-head {
  margin-bottom: 0;
}

.cate-list-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cate-list-breadcrumb {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding: 12px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  border-bottom: 1px solid #e8e8e8;
}

.cate-list-breadcrumb__label {
  color: #666;
}

.cate-list-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.cate-list-breadcrumb a:hover {
  color: #3b82f6;
}

.cate-list-breadcrumb__sep {
  margin: 0 8px;
  color: #999;
}

.cate-list-breadcrumb__current {
  color: #333;
  font-weight: 700;
}

.cate-list-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.cate-list-sidebar {
  background: #fff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.cate-list-sidebar__head {
  padding: 18px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #333;
  letter-spacing: 2px;
}

.cate-list-nav {
  display: flex;
  flex-direction: column;
}

.cate-list-nav__group + .cate-list-nav__group {
  border-top: 1px solid #e8e8e8;
}

.cate-list-nav__item {
  display: block;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.2s ease, color 0.2s ease;
}

.cate-list-nav__item:last-child {
  border-bottom: none;
}

.cate-list-nav__item:hover {
  background: #f0f0f0;
  color: #333;
}

.cate-list-nav__item.is-active {
  background: #3b82f6;
  color: #fff;
  font-weight: 500;
}

.cate-list-nav__item--child {
  padding-left: 32px;
  font-size: 13px;
}

.cate-list-main {
  background: #fff;
  border: 1px solid #e0e0e0;
  min-height: 320px;
  min-width: 0;
}

.cate-list-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

.cate-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  min-width: 0;
  max-width: 100%;
}

.cate-list-row:last-child {
  border-bottom: none;
}

.cate-list-row__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.cate-list-row__title a {
  color: #333;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cate-list-row__title a:hover {
  color: #3b82f6;
}

.cate-list-row__time {
  flex-shrink: 0;
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

.cate-list-empty {
  padding: 60px 24px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.cate-list-pagination {
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f0f0;
}

.cate-list-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cate-list-pagination .pagination li {
  display: inline-block;
}

.cate-list-pagination .pagination a,
.cate-list-pagination .pagination span {
  display: inline-block;
  min-width: 36px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #374151;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
}

.cate-list-pagination .pagination .active span {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.cate-detail {
  padding: 24px 28px;
}

.cate-detail__head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.cate-detail__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.cate-detail__meta {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cate-detail__content {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  word-break: break-word;
}

.cate-detail__content img {
  max-width: 100%;
  height: auto;
}

.cate-detail__content p {
  margin: 0 0 12px;
}

.cate-detail__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .cate-list-layout {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .cate-list-page {
    padding: 12px 0 32px;
    min-width: 0;
    overflow-x: clip;
  }

  .cate-list-page .container {
    padding: 0 12px;
    min-width: 0;
    max-width: 100%;
  }

  .cate-list-sticky-top {
    position: sticky;
    top: var(--site-header-height);
    z-index: 900;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    background: #f5f7fa;
  }

  .cate-list-shell .site-banner,
  .cate-list-shell .site-carousel,
  .cate-list-shell .bx-wrapper {
    max-width: 100%;
  }

  .cate-list-shell .site-banner {
    position: relative;
    top: auto;
    z-index: auto;
    margin-top: 0;
  }

  .cate-list-sticky-head {
    position: relative;
    top: auto;
    z-index: auto;
    margin-bottom: 0;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    background: #fff;
    box-shadow: 0 1px 0 #eef2f7;
  }

  .cate-list-sticky-head .container {
    padding: 0 12px;
  }

  .cate-list-head-row {
    gap: 10px;
    padding: 10px 0;
    min-height: 44px;
  }

  .cate-list-breadcrumb {
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cate-list-breadcrumb__label {
    display: none;
  }

  .cate-list-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
  }

  .cate-list-nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: #333;
    transition: transform 0.25s, opacity 0.25s;
  }

  .cate-list-nav-toggle.is-active .cate-list-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .cate-list-nav-toggle.is-active .cate-list-nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .cate-list-nav-toggle.is-active .cate-list-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .cate-list-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 902;
    background: rgba(15, 23, 42, 0.35);
  }

  .cate-list-nav-backdrop[hidden] {
    display: none !important;
  }

  .cate-list-layout {
    gap: 0;
  }

  .cate-list-sidebar {
    display: none;
    position: fixed;
    top: var(--cate-nav-panel-top, var(--site-header-height));
    left: 0;
    right: 0;
    z-index: 903;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    background: #fff;
    border: none;
    border-top: 1px solid #f0f2f5;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  }

  .cate-list-sidebar.mobile-active {
    display: block;
  }

  .cate-list-sidebar__head {
    display: none;
  }

  .cate-list-nav__item {
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #f5f7fa;
    font-size: 15px;
  }

  .cate-list-nav__item--child {
    padding-left: 32px;
    font-size: 14px;
    color: #64748b;
  }

  .cate-list-nav__item.is-active {
    background: #f0f7ff;
    color: #2563eb;
    font-weight: 600;
  }

  .cate-list-nav__group + .cate-list-nav__group {
    border-top: none;
  }

  .cate-list-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .cate-list-row__title {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: unset;
  }

  .cate-list-row__time {
    font-size: 12px;
    padding-top: 2px;
  }

  .cate-list-main {
    border-radius: 10px;
    overflow: hidden;
  }

  .cate-list-pagination {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cate-detail {
    padding: 16px;
  }

  .cate-detail__title {
    font-size: 20px;
  }

  body.cate-nav-open {
    overflow: hidden;
  }
}
