/* 考试目录页 —— 建考帮独立版式（非羿文 ant-tabs 资讯列表） */
.ksExamCatalog {
  min-height: calc(100vh - 270px);
  background: #f5f6f8;
  padding: 28px 0 48px;
}
.ksExamCatalog .wrap {
  width: 1200px;
  margin: 0 auto;
}
.ksExamCatalog .hero {
  background: linear-gradient(135deg, #fffdf6 0%, #fff 60%);
  border: 1px solid #f0e6c8;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 20px;
}
.ksExamCatalog .hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  color: #333;
}
.ksExamCatalog .hero p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}
.ksExamCatalog .searchRow {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
}
.ksExamCatalog .searchRow input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}
.ksExamCatalog .searchRow input:focus {
  border-color: #c28d13;
  box-shadow: 0 0 0 2px rgba(194, 141, 19, .15);
}
.ksExamCatalog .searchRow span {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
}

/* 主推：安全员考试 */
.ksExamFeatured {
  margin-bottom: 20px;
}
.ksExamFeatured .label {
  font-size: 15px;
  font-weight: 600;
  color: #c28d13;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ksExamFeatured .label::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(-90deg, #c28d13, #bd8a13);
  border-radius: 2px;
}
.ksExamFeatured .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ksExamFeatured .chip {
  display: block;
  background: #fff;
  border: 1px solid #ead9a6;
  border-radius: 8px;
  padding: 14px 12px;
  text-decoration: none;
  color: #333;
  transition: border-color .2s, box-shadow .2s;
}
.ksExamFeatured .chip:hover {
  border-color: #c28d13;
  box-shadow: 0 4px 12px rgba(194, 141, 19, .15);
}
.ksExamFeatured .chip .t {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
.ksExamFeatured .chip .sub {
  font-size: 12px;
  color: #999;
}
.ksExamFeatured .chip .badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: linear-gradient(-90deg, #c28d13, #bd8a13);
  color: #fff;
}
.ksExamFeatured .chip .badge.wait {
  background: #f0f0f0;
  color: #999;
}

/* 主体：侧栏 + 网格 */
.ksExamBody {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.ksExamSide {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px 0;
  position: sticky;
  top: 12px;
}
.ksExamSide .item {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.ksExamSide .item:hover {
  background: #faf8f3;
  color: #c28d13;
}
.ksExamSide .item.on {
  background: #fff8e6;
  color: #c28d13;
  font-weight: 600;
  border-left-color: #c28d13;
}
.ksExamSide .item .cnt {
  font-size: 12px;
  color: #bbb;
  font-weight: normal;
}

.ksExamMain {
  flex: 1;
  min-width: 0;
}
.ksExamMain .catTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.ksExamGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ksExamCard {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ksExamCard:hover {
  border-color: #d4b76a;
  box-shadow: 0 6px 18px rgba(194, 141, 19, .12);
  transform: translateY(-2px);
}
.ksExamCard .name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.45;
  margin-bottom: 10px;
  min-height: 44px;
}
.ksExamCard .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.ksExamCard .tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #999;
}
.ksExamCard .tag.live {
  background: #fff8e6;
  color: #c28d13;
  border: 1px solid #ead9a6;
}
.ksExamCard .arrow {
  color: #c28d13;
}
.ksExamEmpty {
  padding: 48px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ── 移动端：考试目录页 ── */
@media (max-width: 768px) {
  .ksExamCatalog {
    min-height: 0;
    padding: 12px 0 24px;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .ksExamCatalog .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .ksExamCatalog .hero {
    padding: 18px 16px;
    margin-bottom: 14px;
  }

  .ksExamCatalog .hero h1 {
    font-size: 20px;
  }

  .ksExamCatalog .hero p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .ksExamCatalog .searchRow {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    gap: 8px;
  }

  .ksExamCatalog .searchRow span {
    white-space: normal;
  }

  .ksExamFeatured .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ksExamBody {
    flex-direction: column;
    gap: 12px;
  }

  .ksExamSide {
    width: 100%;
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px;
    scrollbar-width: none;
  }

  .ksExamSide::-webkit-scrollbar {
    display: none;
  }

  .ksExamSide .item {
    flex-shrink: 0;
    padding: 10px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .ksExamSide .item.on {
    border-left-color: transparent;
    border-bottom-color: #c28d13;
  }

  .ksExamMain .catTitle {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .ksExamGrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ksExamCard {
    padding: 14px 12px;
  }

  .ksExamCard .name {
    min-height: 0;
    font-size: 14px;
  }

  html.ks-mobile-app .ksExamCatalog {
    padding-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .ksExamFeatured .row {
    grid-template-columns: 1fr;
  }
}
