/* 知识分类：总览页 + 聚合页 */

.channel-hero {
  background: linear-gradient(135deg, #0b3d6b 0%, #1565a8 45%, #1a7a4a 100%);
  color: #fff;
  padding: 44px 0 36px;
  margin-bottom: 0;
}
.channel-hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
}
.channel-hero .lead {
  font-size: 17px;
  opacity: 0.95;
  max-width: 720px;
  line-height: 1.55;
}
.channel-hero .sub {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.88;
  max-width: 800px;
  line-height: 1.6;
}
.channel-hero .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 22px;
  font-size: 14px;
}
.channel-hero .stats span {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
}

.channel-body {
  background: #eef2f7;
  padding: 28px 0 56px;
}

.channel-l1-strip-wrap {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: linear-gradient(180deg, #eef2f7 0%, #e8ecf3 100%);
  border-bottom: 1px solid #d8dee9;
  padding: 12px 0 10px;
  margin: 0 0 20px;
}
.channel-l1-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.channel-l1-strip::-webkit-scrollbar {
  height: 6px;
}
.channel-l1-strip::-webkit-scrollbar-thumb {
  background: #c5cdd9;
  border-radius: 4px;
}
.channel-l1-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.channel-l1-pill:hover {
  border-color: #0f4c81;
  color: #0f4c81;
}
.channel-l1-pill.is-active {
  background: #0f4c81;
  color: #fff;
  border-color: #0f4c81;
}

.channel-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
  padding: 22px 22px 26px;
  border: 1px solid #e2e8f0;
}
.channel-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1bf18;
}
.channel-panel-head h2 {
  font-size: 22px;
  color: #0f4c81;
  margin: 0;
}
.channel-panel-head .cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0f4c81;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.channel-panel-head .cta:hover {
  background: #0a3a7a;
}

.channel-l2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.channel-l2-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 16px 14px;
  background: #fafbfc;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.channel-l2-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.channel-l2-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.35;
}
.channel-l2-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}
.channel-l2-metrics strong {
  color: #0f4c81;
  font-weight: 700;
}
.channel-l2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.channel-l2-actions a.primary {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #2c7a4a;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.channel-l2-actions a.primary:hover {
  background: #276749;
}
.channel-l3-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.channel-l3-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.channel-l3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.channel-l3-chips a {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
}
.channel-l3-chips a:hover {
  border-color: #0f4c81;
  color: #0f4c81;
}

/* 聚合页 */
.channel-topic-wrap {
  padding-top: 12px;
  padding-bottom: 48px;
}
.channel-breadcrumb {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}
.channel-breadcrumb a {
  color: #0f4c81;
  text-decoration: none;
}
.channel-breadcrumb a:hover {
  text-decoration: underline;
}
.channel-breadcrumb .sep {
  margin: 0 6px;
  color: #cbd5e1;
}

.channel-topic-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
}
.channel-topic-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #0f172a;
}
.channel-topic-hero .sub {
  margin: 0;
  font-size: 15px;
  color: #64748b;
}

.channel-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 1100px) {
  .channel-topic-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

.channel-topic-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.channel-topic-col h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 16px;
  color: #fff;
  background: #0f4c81;
}
.channel-topic-col.is-library h2 {
  background: #2c5282;
}
.channel-topic-col.is-tools h2 {
  background: #276749;
}
.channel-topic-col .col-meta {
  padding: 8px 16px 0;
  font-size: 12px;
  color: #64748b;
}
.channel-topic-list {
  padding: 12px 14px 16px;
}
.channel-topic-item {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f5f9;
}
.channel-topic-item:last-child {
  border-bottom: none;
}
.channel-topic-item:hover {
  background: #f8fafc;
}
.channel-topic-item .t {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 4px;
}
.channel-topic-item .channel-topic-stars {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #c9a227;
  margin-bottom: 4px;
}
.channel-topic-item .d {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.channel-topic-item .m {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.channel-empty {
  padding: 20px 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.channel-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 10px 12px 14px;
  border-top: 1px solid #f1f5f9;
}
.channel-pagination a,
.channel-pagination span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #475569;
}
.channel-pagination a:hover {
  border-color: #0f4c81;
  color: #0f4c81;
}
.channel-pagination span.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.channel-pagination a.active {
  background: #0f4c81;
  color: #fff;
  border-color: #0f4c81;
}

@media (max-width: 768px) {
  .channel-l1-strip-wrap {
    top: 60px;
  }
  .channel-hero h1 {
    font-size: 24px;
  }
}
