/* 首页 mainContent —— 金沙河版式（与 ks_exam_catalog / 全站金色主题一致） */
/* 隐藏羿文原始模块 —— 仅在自定义内容就绪后由 JS 添加此 class */
.indexPage .mainContent.ks-ready > .entradBox,
.indexPage .mainContent.ks-ready > .consultationBox,
.indexPage .mainContent.ks-ready > .spikeBox {
  display: none !important;
}

.ksHomeMain {
  width: 1200px;
  margin: 28px auto 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

/* 与 ksExamFeatured 一致 */
.ksHomeMain .feat {
  margin-bottom: 20px;
}
.ksHomeMain .feat .label {
  font-size: 15px;
  font-weight: 600;
  color: #c28d13;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ksHomeMain .feat .label::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(-90deg, #c28d13, #bd8a13);
  border-radius: 2px;
}
.ksHomeMain .feat .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ksHomeMain .feat .chip {
  display: block;
  background: #fff;
  border: 1px solid #ead9a6;
  border-radius: 8px;
  padding: 14px 12px;
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ksHomeMain .feat .chip:hover {
  border-color: #c28d13;
  box-shadow: 0 4px 12px rgba(194, 141, 19, 0.15);
}
.ksHomeMain .feat .chip .t {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
.ksHomeMain .feat .chip .sub {
  font-size: 12px;
  color: #999;
}
.ksHomeMain .feat .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;
}

/* 与全站 entradBox.entranceBox 一致 */
.ksHomeMain .split {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.ksHomeMain .quick {
  flex: 1;
  min-width: 0;
}
.ksHomeMain .entranceBox {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  background: rgba(203, 148, 20, 0.1);
  padding: 10px;
  height: 152px;
  box-sizing: border-box;
}
.ksHomeMain .entranceItem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50%;
  width: 25%;
  font-size: 12px;
  font-weight: 400;
  color: #9e7410;
  text-decoration: none;
  box-sizing: border-box;
}
.ksHomeMain .entranceItem img {
  width: 28px;
  margin-bottom: 8px;
}
.ksHomeMain .entranceItem:hover {
  color: #c28d13;
}
.ksHomeMain .entranceItem::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 50px;
  height: 1px;
  background: rgba(203, 148, 20, 0.5);
}
.ksHomeMain .entranceItem::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -25px;
  width: 1px;
  height: 50px;
  background: rgba(203, 148, 20, 0.5);
}
.ksHomeMain .entranceItem:nth-of-type(n + 5)::after {
  display: none;
}
.ksHomeMain .entranceItem:nth-of-type(4n)::before {
  display: none;
}

/* 与 consultationList 一致 */
.ksHomeMain .news {
  width: 282px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e4e4;
  min-height: 152px;
  box-sizing: border-box;
}
.ksHomeMain .news .topTitle {
  display: flex;
  justify-content: space-between;
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid #d7d7d7;
  padding: 0 10px;
  flex-shrink: 0;
}
.ksHomeMain .news .topTitle span {
  position: relative;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  padding-left: 10px;
}
.ksHomeMain .news .topTitle span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -10px;
  width: 4px;
  height: 20px;
  background: #d99e15;
  border-radius: 2px;
}
.ksHomeMain .news .topTitle a {
  position: relative;
  padding-right: 10px;
  font-size: 12px;
  color: #747474;
  text-decoration: none;
}
.ksHomeMain .news .topTitle a::after {
  content: ">";
  position: absolute;
  right: 0;
  font-family: monospace;
}
.ksHomeMain .news .topTitle a:hover {
  color: #c28d13;
}
.ksHomeMain .news .listContent {
  flex: 1;
  padding: 4px 10px 8px;
  overflow: hidden;
}
.ksHomeMain .news .listContent a {
  position: relative;
  display: block;
  padding-left: 12px;
  font-size: 12px;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 400;
  color: #555;
  line-height: 32px;
  height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.ksHomeMain .news .listContent a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -2px;
  width: 4px;
  height: 4px;
  background: #d99e15;
  border-radius: 50%;
}
.ksHomeMain .news .listContent a:hover {
  color: #649cf0;
}

@media (max-width: 900px) {
  .ksHomeMain { width: 100%; padding: 0 12px; }
  .ksHomeMain .feat .row { grid-template-columns: 1fr 1fr; }
  .ksHomeMain .split { flex-direction: column; }
  .ksHomeMain .news { width: 100%; }
  .ksHomeMain .entranceBox { height: auto; min-height: 152px; }
  .ksHomeMain .entranceItem { width: 25%; min-height: 76px; }
}
